jodit 4.7.8 → 4.8.1

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 (1672) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE.txt +1 -1
  3. package/es2015/jodit.css +449 -63
  4. package/es2015/jodit.fat.min.css +1 -1
  5. package/es2015/jodit.fat.min.js +16 -16
  6. package/es2015/jodit.js +1154 -750
  7. package/es2015/jodit.min.css +1 -1
  8. package/es2015/jodit.min.js +15 -15
  9. package/es2015/plugins/debug/debug.css +1 -1
  10. package/es2015/plugins/debug/debug.js +2 -2
  11. package/es2015/plugins/debug/debug.min.js +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.js +35 -35
  14. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  15. package/es2018/jodit.fat.min.css +1 -1
  16. package/es2018/jodit.fat.min.js +15 -15
  17. package/es2018/jodit.min.css +1 -1
  18. package/es2018/jodit.min.js +24 -24
  19. package/es2018/plugins/debug/debug.min.js +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  21. package/es2021/jodit.css +449 -63
  22. package/es2021/jodit.fat.min.css +1 -1
  23. package/es2021/jodit.fat.min.js +21 -21
  24. package/es2021/jodit.js +1008 -642
  25. package/es2021/jodit.min.css +1 -1
  26. package/es2021/jodit.min.js +26 -26
  27. package/es2021/plugins/debug/debug.css +1 -1
  28. package/es2021/plugins/debug/debug.js +2 -2
  29. package/es2021/plugins/debug/debug.min.js +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.js +32 -32
  32. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  33. package/es2021.en/jodit.css +449 -63
  34. package/es2021.en/jodit.fat.min.css +1 -1
  35. package/es2021.en/jodit.fat.min.js +50 -50
  36. package/es2021.en/jodit.js +919 -553
  37. package/es2021.en/jodit.min.css +1 -1
  38. package/es2021.en/jodit.min.js +21 -21
  39. package/es2021.en/plugins/debug/debug.css +1 -1
  40. package/es2021.en/plugins/debug/debug.js +2 -2
  41. package/es2021.en/plugins/debug/debug.min.js +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.js +9 -9
  44. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  45. package/es5/jodit.css +465 -65
  46. package/es5/jodit.fat.min.css +1 -1
  47. package/es5/jodit.fat.min.js +2 -2
  48. package/es5/jodit.js +2557 -1475
  49. package/es5/jodit.min.css +3 -3
  50. package/es5/jodit.min.js +2 -2
  51. package/es5/plugins/debug/debug.css +1 -1
  52. package/es5/plugins/debug/debug.js +2 -2
  53. package/es5/plugins/debug/debug.min.js +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.js +35 -35
  56. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  57. package/es5/polyfills.fat.min.js +2 -2
  58. package/es5/polyfills.js +231 -77
  59. package/es5/polyfills.min.js +2 -2
  60. package/esm/config.js +1 -1
  61. package/esm/core/async/async.d.ts +1 -1
  62. package/esm/core/async/async.js +1 -1
  63. package/esm/core/async/index.d.ts +1 -1
  64. package/esm/core/async/index.js +1 -1
  65. package/esm/core/component/component.d.ts +1 -1
  66. package/esm/core/component/component.js +1 -1
  67. package/esm/core/component/index.d.ts +1 -1
  68. package/esm/core/component/index.js +1 -1
  69. package/esm/core/component/statuses.d.ts +1 -1
  70. package/esm/core/component/statuses.js +1 -1
  71. package/esm/core/component/view-component.d.ts +1 -1
  72. package/esm/core/component/view-component.js +1 -1
  73. package/esm/core/constants.d.ts +1 -1
  74. package/esm/core/constants.js +2 -2
  75. package/esm/core/create/create.d.ts +1 -1
  76. package/esm/core/create/create.js +1 -1
  77. package/esm/core/create/index.d.ts +1 -1
  78. package/esm/core/create/index.js +1 -1
  79. package/esm/core/decorators/autobind/autobind.d.ts +1 -1
  80. package/esm/core/decorators/autobind/autobind.js +1 -1
  81. package/esm/core/decorators/cache/cache.d.ts +1 -1
  82. package/esm/core/decorators/cache/cache.js +1 -7
  83. package/esm/core/decorators/component/component.d.ts +1 -1
  84. package/esm/core/decorators/component/component.js +1 -1
  85. package/esm/core/decorators/debounce/debounce.d.ts +1 -1
  86. package/esm/core/decorators/debounce/debounce.js +1 -1
  87. package/esm/core/decorators/derive/derive.d.ts +1 -1
  88. package/esm/core/decorators/derive/derive.js +1 -1
  89. package/esm/core/decorators/hook/hook.d.ts +1 -1
  90. package/esm/core/decorators/hook/hook.js +1 -1
  91. package/esm/core/decorators/idle/idle.d.ts +1 -1
  92. package/esm/core/decorators/idle/idle.js +1 -1
  93. package/esm/core/decorators/index.d.ts +1 -1
  94. package/esm/core/decorators/index.js +1 -1
  95. package/esm/core/decorators/nonenumerable/nonenumerable.d.ts +1 -1
  96. package/esm/core/decorators/nonenumerable/nonenumerable.js +1 -1
  97. package/esm/core/decorators/persistent/persistent.d.ts +1 -1
  98. package/esm/core/decorators/persistent/persistent.js +1 -1
  99. package/esm/core/decorators/wait/wait.d.ts +1 -1
  100. package/esm/core/decorators/wait/wait.js +1 -1
  101. package/esm/core/decorators/watch/watch.d.ts +1 -1
  102. package/esm/core/decorators/watch/watch.js +1 -1
  103. package/esm/core/dom/dom.d.ts +1 -1
  104. package/esm/core/dom/dom.js +1 -1
  105. package/esm/core/dom/index.d.ts +1 -1
  106. package/esm/core/dom/index.js +1 -1
  107. package/esm/core/dom/lazy-walker.d.ts +1 -1
  108. package/esm/core/dom/lazy-walker.js +1 -1
  109. package/esm/core/event-emitter/event-emitter.d.ts +1 -1
  110. package/esm/core/event-emitter/event-emitter.js +1 -1
  111. package/esm/core/event-emitter/eventify.d.ts +1 -1
  112. package/esm/core/event-emitter/eventify.js +1 -1
  113. package/esm/core/event-emitter/index.d.ts +1 -1
  114. package/esm/core/event-emitter/index.js +1 -1
  115. package/esm/core/event-emitter/observable.d.ts +1 -1
  116. package/esm/core/event-emitter/observable.js +1 -1
  117. package/esm/core/event-emitter/store.d.ts +1 -1
  118. package/esm/core/event-emitter/store.js +1 -1
  119. package/esm/core/global.d.ts +1 -1
  120. package/esm/core/global.js +1 -1
  121. package/esm/core/helpers/array/as-array.d.ts +1 -1
  122. package/esm/core/helpers/array/as-array.js +1 -1
  123. package/esm/core/helpers/array/index.d.ts +1 -1
  124. package/esm/core/helpers/array/index.js +1 -1
  125. package/esm/core/helpers/array/split-array.d.ts +1 -1
  126. package/esm/core/helpers/array/split-array.js +1 -1
  127. package/esm/core/helpers/array/to-array.d.ts +1 -1
  128. package/esm/core/helpers/array/to-array.js +1 -1
  129. package/esm/core/helpers/async/index.d.ts +1 -1
  130. package/esm/core/helpers/async/index.js +1 -1
  131. package/esm/core/helpers/async/set-timeout.d.ts +1 -1
  132. package/esm/core/helpers/async/set-timeout.js +1 -1
  133. package/esm/core/helpers/checker/has-browser-color-picker.d.ts +1 -1
  134. package/esm/core/helpers/checker/has-browser-color-picker.js +1 -1
  135. package/esm/core/helpers/checker/index.d.ts +1 -1
  136. package/esm/core/helpers/checker/index.js +1 -1
  137. package/esm/core/helpers/checker/is-abort-error.d.ts +1 -1
  138. package/esm/core/helpers/checker/is-abort-error.js +1 -1
  139. package/esm/core/helpers/checker/is-array.d.ts +1 -1
  140. package/esm/core/helpers/checker/is-array.js +1 -1
  141. package/esm/core/helpers/checker/is-boolean.d.ts +1 -1
  142. package/esm/core/helpers/checker/is-boolean.js +1 -1
  143. package/esm/core/helpers/checker/is-equal.d.ts +1 -1
  144. package/esm/core/helpers/checker/is-equal.js +1 -1
  145. package/esm/core/helpers/checker/is-function.d.ts +1 -1
  146. package/esm/core/helpers/checker/is-function.js +1 -1
  147. package/esm/core/helpers/checker/is-html-from-word.d.ts +1 -1
  148. package/esm/core/helpers/checker/is-html-from-word.js +1 -1
  149. package/esm/core/helpers/checker/is-html.d.ts +1 -1
  150. package/esm/core/helpers/checker/is-html.js +1 -1
  151. package/esm/core/helpers/checker/is-imp-interface.d.ts +1 -1
  152. package/esm/core/helpers/checker/is-imp-interface.js +1 -1
  153. package/esm/core/helpers/checker/is-int.d.ts +1 -1
  154. package/esm/core/helpers/checker/is-int.js +1 -1
  155. package/esm/core/helpers/checker/is-jodit-object.d.ts +1 -1
  156. package/esm/core/helpers/checker/is-jodit-object.js +1 -1
  157. package/esm/core/helpers/checker/is-license.d.ts +1 -1
  158. package/esm/core/helpers/checker/is-license.js +1 -1
  159. package/esm/core/helpers/checker/is-marker.d.ts +1 -1
  160. package/esm/core/helpers/checker/is-marker.js +1 -1
  161. package/esm/core/helpers/checker/is-native-function.d.ts +1 -1
  162. package/esm/core/helpers/checker/is-native-function.js +1 -1
  163. package/esm/core/helpers/checker/is-number.d.ts +1 -1
  164. package/esm/core/helpers/checker/is-number.js +1 -1
  165. package/esm/core/helpers/checker/is-numeric.d.ts +1 -1
  166. package/esm/core/helpers/checker/is-numeric.js +1 -1
  167. package/esm/core/helpers/checker/is-plain-object.d.ts +1 -1
  168. package/esm/core/helpers/checker/is-plain-object.js +1 -1
  169. package/esm/core/helpers/checker/is-promise.d.ts +1 -1
  170. package/esm/core/helpers/checker/is-promise.js +1 -1
  171. package/esm/core/helpers/checker/is-set.d.ts +1 -1
  172. package/esm/core/helpers/checker/is-set.js +1 -1
  173. package/esm/core/helpers/checker/is-string.d.ts +1 -1
  174. package/esm/core/helpers/checker/is-string.js +1 -1
  175. package/esm/core/helpers/checker/is-url.d.ts +1 -1
  176. package/esm/core/helpers/checker/is-url.js +1 -1
  177. package/esm/core/helpers/checker/is-valid-name.d.ts +1 -1
  178. package/esm/core/helpers/checker/is-valid-name.js +1 -1
  179. package/esm/core/helpers/checker/is-view-object.d.ts +1 -1
  180. package/esm/core/helpers/checker/is-view-object.js +1 -1
  181. package/esm/core/helpers/checker/is-void.d.ts +1 -1
  182. package/esm/core/helpers/checker/is-void.js +1 -1
  183. package/esm/core/helpers/checker/is-window.d.ts +1 -1
  184. package/esm/core/helpers/checker/is-window.js +1 -1
  185. package/esm/core/helpers/color/color-to-hex.d.ts +1 -1
  186. package/esm/core/helpers/color/color-to-hex.js +1 -1
  187. package/esm/core/helpers/color/index.d.ts +1 -1
  188. package/esm/core/helpers/color/index.js +1 -1
  189. package/esm/core/helpers/html/apply-styles.d.ts +1 -1
  190. package/esm/core/helpers/html/apply-styles.js +1 -1
  191. package/esm/core/helpers/html/clean-from-word.d.ts +1 -1
  192. package/esm/core/helpers/html/clean-from-word.js +1 -1
  193. package/esm/core/helpers/html/htmlspecialchars.d.ts +1 -1
  194. package/esm/core/helpers/html/htmlspecialchars.js +1 -1
  195. package/esm/core/helpers/html/index.d.ts +1 -1
  196. package/esm/core/helpers/html/index.js +1 -1
  197. package/esm/core/helpers/html/nl2br.d.ts +1 -1
  198. package/esm/core/helpers/html/nl2br.js +1 -1
  199. package/esm/core/helpers/html/safe-html.d.ts +1 -1
  200. package/esm/core/helpers/html/safe-html.js +1 -1
  201. package/esm/core/helpers/html/strip-tags.d.ts +1 -1
  202. package/esm/core/helpers/html/strip-tags.js +1 -1
  203. package/esm/core/helpers/index.d.ts +1 -1
  204. package/esm/core/helpers/index.js +1 -1
  205. package/esm/core/helpers/normalize/index.d.ts +1 -1
  206. package/esm/core/helpers/normalize/index.js +1 -1
  207. package/esm/core/helpers/normalize/normalize-color.d.ts +1 -1
  208. package/esm/core/helpers/normalize/normalize-color.js +1 -1
  209. package/esm/core/helpers/normalize/normalize-css-value.d.ts +1 -1
  210. package/esm/core/helpers/normalize/normalize-css-value.js +1 -1
  211. package/esm/core/helpers/normalize/normalize-key-aliases.d.ts +1 -1
  212. package/esm/core/helpers/normalize/normalize-key-aliases.js +1 -1
  213. package/esm/core/helpers/normalize/normalize-license.d.ts +1 -1
  214. package/esm/core/helpers/normalize/normalize-license.js +1 -1
  215. package/esm/core/helpers/normalize/normalize-path.d.ts +1 -1
  216. package/esm/core/helpers/normalize/normalize-path.js +1 -1
  217. package/esm/core/helpers/normalize/normalize-relative-path.d.ts +1 -1
  218. package/esm/core/helpers/normalize/normalize-relative-path.js +1 -1
  219. package/esm/core/helpers/normalize/normalize-size.d.ts +1 -1
  220. package/esm/core/helpers/normalize/normalize-size.js +1 -1
  221. package/esm/core/helpers/normalize/normalize-url.d.ts +1 -1
  222. package/esm/core/helpers/normalize/normalize-url.js +1 -1
  223. package/esm/core/helpers/size/get-content-width.d.ts +1 -1
  224. package/esm/core/helpers/size/get-content-width.js +1 -1
  225. package/esm/core/helpers/size/get-scroll-parent.d.ts +1 -1
  226. package/esm/core/helpers/size/get-scroll-parent.js +1 -1
  227. package/esm/core/helpers/size/index.d.ts +1 -1
  228. package/esm/core/helpers/size/index.js +1 -1
  229. package/esm/core/helpers/size/inner-width.d.ts +1 -1
  230. package/esm/core/helpers/size/inner-width.js +1 -1
  231. package/esm/core/helpers/size/object-size.d.ts +1 -1
  232. package/esm/core/helpers/size/object-size.js +1 -1
  233. package/esm/core/helpers/size/offset.d.ts +1 -1
  234. package/esm/core/helpers/size/offset.js +1 -1
  235. package/esm/core/helpers/size/position.d.ts +1 -1
  236. package/esm/core/helpers/size/position.js +1 -1
  237. package/esm/core/helpers/string/camel-case.d.ts +1 -1
  238. package/esm/core/helpers/string/camel-case.js +1 -1
  239. package/esm/core/helpers/string/fuzzy-search-index.d.ts +1 -1
  240. package/esm/core/helpers/string/fuzzy-search-index.js +1 -1
  241. package/esm/core/helpers/string/i18n.d.ts +1 -1
  242. package/esm/core/helpers/string/i18n.js +1 -1
  243. package/esm/core/helpers/string/index.d.ts +1 -1
  244. package/esm/core/helpers/string/index.js +1 -1
  245. package/esm/core/helpers/string/kebab-case.d.ts +1 -1
  246. package/esm/core/helpers/string/kebab-case.js +1 -1
  247. package/esm/core/helpers/string/stringify.d.ts +1 -1
  248. package/esm/core/helpers/string/stringify.js +1 -1
  249. package/esm/core/helpers/string/trim.d.ts +1 -1
  250. package/esm/core/helpers/string/trim.js +1 -1
  251. package/esm/core/helpers/string/ucfirst.d.ts +1 -1
  252. package/esm/core/helpers/string/ucfirst.js +1 -1
  253. package/esm/core/helpers/utils/align.d.ts +1 -1
  254. package/esm/core/helpers/utils/align.js +1 -1
  255. package/esm/core/helpers/utils/append-script.d.ts +1 -1
  256. package/esm/core/helpers/utils/append-script.js +1 -1
  257. package/esm/core/helpers/utils/assert.d.ts +1 -1
  258. package/esm/core/helpers/utils/assert.js +1 -1
  259. package/esm/core/helpers/utils/attr.d.ts +1 -1
  260. package/esm/core/helpers/utils/attr.js +1 -1
  261. package/esm/core/helpers/utils/browser.d.ts +1 -1
  262. package/esm/core/helpers/utils/browser.js +1 -1
  263. package/esm/core/helpers/utils/build-query.d.ts +1 -1
  264. package/esm/core/helpers/utils/build-query.js +1 -1
  265. package/esm/core/helpers/utils/complete-url.d.ts +1 -1
  266. package/esm/core/helpers/utils/complete-url.js +1 -1
  267. package/esm/core/helpers/utils/config-proto.d.ts +1 -1
  268. package/esm/core/helpers/utils/config-proto.js +1 -1
  269. package/esm/core/helpers/utils/convert-media-url-to-video-embed.d.ts +1 -1
  270. package/esm/core/helpers/utils/convert-media-url-to-video-embed.js +1 -1
  271. package/esm/core/helpers/utils/css.d.ts +1 -1
  272. package/esm/core/helpers/utils/css.js +1 -1
  273. package/esm/core/helpers/utils/ctrl-key.d.ts +1 -1
  274. package/esm/core/helpers/utils/ctrl-key.js +1 -1
  275. package/esm/core/helpers/utils/data-bind.d.ts +1 -1
  276. package/esm/core/helpers/utils/data-bind.js +1 -1
  277. package/esm/core/helpers/utils/default-language.d.ts +1 -1
  278. package/esm/core/helpers/utils/default-language.js +1 -1
  279. package/esm/core/helpers/utils/error/error.d.ts +1 -1
  280. package/esm/core/helpers/utils/error/error.js +1 -1
  281. package/esm/core/helpers/utils/error/errors/abort-error.d.ts +1 -1
  282. package/esm/core/helpers/utils/error/errors/abort-error.js +1 -1
  283. package/esm/core/helpers/utils/error/errors/connection-error.d.ts +1 -1
  284. package/esm/core/helpers/utils/error/errors/connection-error.js +1 -1
  285. package/esm/core/helpers/utils/error/errors/index.d.ts +1 -1
  286. package/esm/core/helpers/utils/error/errors/index.js +1 -1
  287. package/esm/core/helpers/utils/error/errors/options-error.d.ts +1 -1
  288. package/esm/core/helpers/utils/error/errors/options-error.js +1 -1
  289. package/esm/core/helpers/utils/error/index.d.ts +1 -1
  290. package/esm/core/helpers/utils/error/index.js +1 -1
  291. package/esm/core/helpers/utils/extend.d.ts +1 -1
  292. package/esm/core/helpers/utils/extend.js +1 -1
  293. package/esm/core/helpers/utils/get-class-name.d.ts +1 -1
  294. package/esm/core/helpers/utils/get-class-name.js +1 -1
  295. package/esm/core/helpers/utils/get.d.ts +1 -1
  296. package/esm/core/helpers/utils/get.js +1 -1
  297. package/esm/core/helpers/utils/human-size-to-bytes.d.ts +1 -1
  298. package/esm/core/helpers/utils/human-size-to-bytes.js +1 -1
  299. package/esm/core/helpers/utils/index.d.ts +1 -1
  300. package/esm/core/helpers/utils/index.js +1 -1
  301. package/esm/core/helpers/utils/mark-deprecated.d.ts +1 -1
  302. package/esm/core/helpers/utils/mark-deprecated.js +1 -1
  303. package/esm/core/helpers/utils/parse-query.d.ts +1 -1
  304. package/esm/core/helpers/utils/parse-query.js +1 -1
  305. package/esm/core/helpers/utils/print.d.ts +1 -1
  306. package/esm/core/helpers/utils/print.js +1 -1
  307. package/esm/core/helpers/utils/reset.d.ts +1 -1
  308. package/esm/core/helpers/utils/reset.js +1 -1
  309. package/esm/core/helpers/utils/scroll-into-view.d.ts +1 -1
  310. package/esm/core/helpers/utils/scroll-into-view.js +1 -1
  311. package/esm/core/helpers/utils/selector.d.ts +1 -1
  312. package/esm/core/helpers/utils/selector.js +1 -1
  313. package/esm/core/helpers/utils/set.d.ts +1 -1
  314. package/esm/core/helpers/utils/set.js +1 -1
  315. package/esm/core/helpers/utils/stack.d.ts +1 -1
  316. package/esm/core/helpers/utils/stack.js +1 -1
  317. package/esm/core/helpers/utils/utils.d.ts +1 -1
  318. package/esm/core/helpers/utils/utils.js +1 -1
  319. package/esm/core/plugin/helpers/init-instance.d.ts +1 -1
  320. package/esm/core/plugin/helpers/init-instance.js +1 -1
  321. package/esm/core/plugin/helpers/load.d.ts +1 -1
  322. package/esm/core/plugin/helpers/load.js +1 -1
  323. package/esm/core/plugin/helpers/make-instance.d.ts +1 -1
  324. package/esm/core/plugin/helpers/make-instance.js +1 -1
  325. package/esm/core/plugin/helpers/utils.d.ts +1 -1
  326. package/esm/core/plugin/helpers/utils.js +1 -1
  327. package/esm/core/plugin/index.d.ts +1 -1
  328. package/esm/core/plugin/index.js +1 -1
  329. package/esm/core/plugin/interface.d.ts +1 -1
  330. package/esm/core/plugin/plugin-system.d.ts +1 -1
  331. package/esm/core/plugin/plugin-system.js +1 -1
  332. package/esm/core/plugin/plugin.d.ts +1 -1
  333. package/esm/core/plugin/plugin.js +1 -1
  334. package/esm/core/request/ajax.d.ts +1 -1
  335. package/esm/core/request/ajax.js +1 -1
  336. package/esm/core/request/config.d.ts +1 -1
  337. package/esm/core/request/config.js +1 -1
  338. package/esm/core/request/index.d.ts +1 -1
  339. package/esm/core/request/index.js +1 -1
  340. package/esm/core/request/response.d.ts +1 -1
  341. package/esm/core/request/response.js +1 -1
  342. package/esm/core/selection/helpers/index.d.ts +1 -1
  343. package/esm/core/selection/helpers/index.js +1 -1
  344. package/esm/core/selection/helpers/move-node-inside-start.d.ts +1 -1
  345. package/esm/core/selection/helpers/move-node-inside-start.js +1 -1
  346. package/esm/core/selection/helpers/move-the-node-along-the-edge-outward.d.ts +1 -1
  347. package/esm/core/selection/helpers/move-the-node-along-the-edge-outward.js +1 -1
  348. package/esm/core/selection/index.d.ts +1 -1
  349. package/esm/core/selection/index.js +1 -1
  350. package/esm/core/selection/interface.d.ts +1 -1
  351. package/esm/core/selection/interface.js +1 -1
  352. package/esm/core/selection/selection.d.ts +1 -1
  353. package/esm/core/selection/selection.js +1 -1
  354. package/esm/core/selection/style/api/extract.d.ts +1 -1
  355. package/esm/core/selection/style/api/extract.js +1 -1
  356. package/esm/core/selection/style/api/finite-state-machine.d.ts +1 -1
  357. package/esm/core/selection/style/api/finite-state-machine.js +1 -1
  358. package/esm/core/selection/style/api/get-suit-child.d.ts +1 -1
  359. package/esm/core/selection/style/api/get-suit-child.js +1 -1
  360. package/esm/core/selection/style/api/get-suit-parent.d.ts +1 -1
  361. package/esm/core/selection/style/api/get-suit-parent.js +1 -1
  362. package/esm/core/selection/style/api/has-same-style.d.ts +1 -1
  363. package/esm/core/selection/style/api/has-same-style.js +1 -1
  364. package/esm/core/selection/style/api/index.d.ts +1 -1
  365. package/esm/core/selection/style/api/index.js +1 -1
  366. package/esm/core/selection/style/api/is-inside-invisible-element.d.ts +1 -1
  367. package/esm/core/selection/style/api/is-inside-invisible-element.js +1 -1
  368. package/esm/core/selection/style/api/is-normal-node.d.ts +1 -1
  369. package/esm/core/selection/style/api/is-normal-node.js +1 -1
  370. package/esm/core/selection/style/api/is-same-attributes.d.ts +1 -1
  371. package/esm/core/selection/style/api/is-same-attributes.js +1 -1
  372. package/esm/core/selection/style/api/is-suit-element.d.ts +1 -1
  373. package/esm/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
  374. package/esm/core/selection/style/api/list/toggle-ordered-list.js +1 -1
  375. package/esm/core/selection/style/api/list/wrap-list.d.ts +1 -1
  376. package/esm/core/selection/style/api/list/wrap-list.js +1 -1
  377. package/esm/core/selection/style/api/toggle-attributes.d.ts +1 -1
  378. package/esm/core/selection/style/api/toggle-attributes.js +1 -1
  379. package/esm/core/selection/style/api/unwrap-children.d.ts +1 -1
  380. package/esm/core/selection/style/api/unwrap-children.js +1 -1
  381. package/esm/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
  382. package/esm/core/selection/style/api/wrap-unwrapped-text.js +1 -1
  383. package/esm/core/selection/style/api/wrap.d.ts +1 -1
  384. package/esm/core/selection/style/api/wrap.js +1 -1
  385. package/esm/core/selection/style/apply-style.d.ts +1 -1
  386. package/esm/core/selection/style/apply-style.js +1 -1
  387. package/esm/core/selection/style/commit-style.d.ts +1 -1
  388. package/esm/core/selection/style/commit-style.js +1 -1
  389. package/esm/core/selection/style/constants.d.ts +1 -1
  390. package/esm/core/selection/style/constants.js +1 -1
  391. package/esm/core/selection/style/transactions.d.ts +1 -1
  392. package/esm/core/selection/style/transactions.js +1 -1
  393. package/esm/core/storage/async-storage.d.ts +14 -0
  394. package/esm/core/storage/async-storage.js +64 -0
  395. package/esm/core/storage/engines/indexed-db-provider.d.ts +56 -0
  396. package/esm/core/storage/engines/indexed-db-provider.js +199 -0
  397. package/esm/core/storage/engines/local-storage-provider.d.ts +11 -8
  398. package/esm/core/storage/engines/local-storage-provider.js +28 -22
  399. package/esm/core/storage/engines/memory-storage-provider.d.ts +4 -4
  400. package/esm/core/storage/engines/memory-storage-provider.js +1 -1
  401. package/esm/core/storage/index.d.ts +3 -1
  402. package/esm/core/storage/index.js +3 -1
  403. package/esm/core/storage/storage.d.ts +6 -5
  404. package/esm/core/storage/storage.js +12 -4
  405. package/esm/core/traits/dlgs.d.ts +1 -1
  406. package/esm/core/traits/dlgs.js +1 -1
  407. package/esm/core/traits/elms.d.ts +1 -1
  408. package/esm/core/traits/elms.js +1 -1
  409. package/esm/core/traits/mods.d.ts +1 -1
  410. package/esm/core/traits/mods.js +1 -1
  411. package/esm/core/ui/button/button/button.d.ts +1 -1
  412. package/esm/core/ui/button/button/button.js +8 -3
  413. package/esm/core/ui/button/group/group.d.ts +1 -1
  414. package/esm/core/ui/button/group/group.js +1 -1
  415. package/esm/core/ui/button/index.d.ts +1 -1
  416. package/esm/core/ui/button/index.js +1 -1
  417. package/esm/core/ui/button/tooltip/tooltip.d.ts +1 -1
  418. package/esm/core/ui/button/tooltip/tooltip.js +1 -1
  419. package/esm/core/ui/element.d.ts +1 -1
  420. package/esm/core/ui/element.js +1 -1
  421. package/esm/core/ui/form/block/block.d.ts +1 -1
  422. package/esm/core/ui/form/block/block.js +1 -1
  423. package/esm/core/ui/form/form.d.ts +1 -1
  424. package/esm/core/ui/form/form.js +1 -1
  425. package/esm/core/ui/form/index.d.ts +1 -1
  426. package/esm/core/ui/form/index.js +1 -1
  427. package/esm/core/ui/form/inputs/area/area.d.ts +1 -1
  428. package/esm/core/ui/form/inputs/area/area.js +1 -1
  429. package/esm/core/ui/form/inputs/checkbox/checkbox.d.ts +1 -1
  430. package/esm/core/ui/form/inputs/checkbox/checkbox.js +1 -1
  431. package/esm/core/ui/form/inputs/file/file.d.ts +1 -1
  432. package/esm/core/ui/form/inputs/file/file.js +1 -1
  433. package/esm/core/ui/form/inputs/index.d.ts +1 -1
  434. package/esm/core/ui/form/inputs/index.js +1 -1
  435. package/esm/core/ui/form/inputs/input/input.d.ts +1 -1
  436. package/esm/core/ui/form/inputs/input/input.js +1 -1
  437. package/esm/core/ui/form/inputs/select/select.d.ts +1 -1
  438. package/esm/core/ui/form/inputs/select/select.js +1 -1
  439. package/esm/core/ui/form/validators/index.d.ts +1 -1
  440. package/esm/core/ui/form/validators/index.js +1 -1
  441. package/esm/core/ui/form/validators/input.d.ts +1 -1
  442. package/esm/core/ui/form/validators/input.js +1 -1
  443. package/esm/core/ui/form/validators/select.d.ts +1 -1
  444. package/esm/core/ui/form/validators/select.js +1 -1
  445. package/esm/core/ui/group/group.d.ts +2 -1
  446. package/esm/core/ui/group/group.js +6 -1
  447. package/esm/core/ui/group/index.d.ts +1 -1
  448. package/esm/core/ui/group/index.js +1 -1
  449. package/esm/core/ui/group/list.d.ts +1 -1
  450. package/esm/core/ui/group/list.js +1 -1
  451. package/esm/core/ui/group/separator.d.ts +1 -1
  452. package/esm/core/ui/group/separator.js +1 -1
  453. package/esm/core/ui/group/spacer.d.ts +1 -1
  454. package/esm/core/ui/group/spacer.js +1 -1
  455. package/esm/core/ui/helpers/buttons.d.ts +1 -1
  456. package/esm/core/ui/helpers/buttons.js +1 -1
  457. package/esm/core/ui/helpers/get-control-type.d.ts +1 -1
  458. package/esm/core/ui/helpers/get-control-type.js +1 -1
  459. package/esm/core/ui/helpers/get-strong-control-types.d.ts +1 -1
  460. package/esm/core/ui/helpers/get-strong-control-types.js +1 -1
  461. package/esm/core/ui/icon.d.ts +1 -1
  462. package/esm/core/ui/icon.js +1 -1
  463. package/esm/core/ui/index.d.ts +1 -1
  464. package/esm/core/ui/index.js +1 -1
  465. package/esm/core/ui/popup/index.d.ts +1 -1
  466. package/esm/core/ui/popup/index.js +1 -1
  467. package/esm/core/ui/popup/popup.d.ts +1 -1
  468. package/esm/core/ui/popup/popup.js +1 -1
  469. package/esm/core/ui/progress-bar/progress-bar.d.ts +1 -1
  470. package/esm/core/ui/progress-bar/progress-bar.js +1 -1
  471. package/esm/core/view/view-with-toolbar.d.ts +1 -1
  472. package/esm/core/view/view-with-toolbar.js +1 -1
  473. package/esm/core/view/view.d.ts +10 -5
  474. package/esm/core/view/view.js +38 -25
  475. package/esm/index.d.ts +1 -1
  476. package/esm/index.js +1 -1
  477. package/esm/jodit.d.ts +1 -1
  478. package/esm/jodit.js +26 -7
  479. package/esm/langs/ar.js +1 -1
  480. package/esm/langs/cs_cz.js +1 -1
  481. package/esm/langs/de.js +1 -1
  482. package/esm/langs/en.js +1 -1
  483. package/esm/langs/es.js +1 -1
  484. package/esm/langs/fa.js +1 -1
  485. package/esm/langs/fi.js +1 -1
  486. package/esm/langs/fr.js +1 -1
  487. package/esm/langs/he.js +1 -1
  488. package/esm/langs/hu.js +1 -1
  489. package/esm/langs/id.js +1 -1
  490. package/esm/langs/it.js +1 -1
  491. package/esm/langs/ja.js +1 -1
  492. package/esm/langs/keys.js +1 -1
  493. package/esm/langs/ko.js +1 -1
  494. package/esm/langs/mn.js +1 -1
  495. package/esm/langs/nl.js +1 -1
  496. package/esm/langs/no.js +1 -1
  497. package/esm/langs/pl.js +1 -1
  498. package/esm/langs/pt_br.js +1 -1
  499. package/esm/langs/ru.js +1 -1
  500. package/esm/langs/sv.js +1 -1
  501. package/esm/langs/tr.js +1 -1
  502. package/esm/langs/ua.js +1 -1
  503. package/esm/langs/zh_cn.js +1 -1
  504. package/esm/langs/zh_tw.js +1 -1
  505. package/esm/languages.d.ts +1 -1
  506. package/esm/languages.js +1 -1
  507. package/esm/modules/context-menu/context-menu.d.ts +1 -1
  508. package/esm/modules/context-menu/context-menu.js +1 -1
  509. package/esm/modules/dialog/alert.d.ts +1 -1
  510. package/esm/modules/dialog/alert.js +1 -1
  511. package/esm/modules/dialog/confirm.d.ts +1 -1
  512. package/esm/modules/dialog/confirm.js +1 -1
  513. package/esm/modules/dialog/dialog.d.ts +1 -1
  514. package/esm/modules/dialog/dialog.js +1 -1
  515. package/esm/modules/dialog/index.d.ts +1 -1
  516. package/esm/modules/dialog/index.js +1 -1
  517. package/esm/modules/dialog/prompt.d.ts +1 -1
  518. package/esm/modules/dialog/prompt.js +1 -1
  519. package/esm/modules/file-browser/builders/context-menu.d.ts +1 -1
  520. package/esm/modules/file-browser/builders/context-menu.js +1 -1
  521. package/esm/modules/file-browser/builders/elements-map.d.ts +1 -1
  522. package/esm/modules/file-browser/builders/elements-map.js +1 -1
  523. package/esm/modules/file-browser/builders/item.d.ts +1 -1
  524. package/esm/modules/file-browser/builders/item.js +1 -1
  525. package/esm/modules/file-browser/config.d.ts +1 -1
  526. package/esm/modules/file-browser/config.js +1 -1
  527. package/esm/modules/file-browser/data-provider.d.ts +1 -1
  528. package/esm/modules/file-browser/data-provider.js +1 -1
  529. package/esm/modules/file-browser/factories.d.ts +1 -1
  530. package/esm/modules/file-browser/factories.js +1 -1
  531. package/esm/modules/file-browser/fetch/delete-file.d.ts +1 -1
  532. package/esm/modules/file-browser/fetch/delete-file.js +1 -1
  533. package/esm/modules/file-browser/fetch/load-items.d.ts +1 -1
  534. package/esm/modules/file-browser/fetch/load-items.js +1 -1
  535. package/esm/modules/file-browser/fetch/load-tree.d.ts +1 -1
  536. package/esm/modules/file-browser/fetch/load-tree.js +1 -1
  537. package/esm/modules/file-browser/file-browser.d.ts +1 -1
  538. package/esm/modules/file-browser/file-browser.js +1 -1
  539. package/esm/modules/file-browser/index.d.ts +1 -1
  540. package/esm/modules/file-browser/index.js +1 -1
  541. package/esm/modules/file-browser/listeners/native-listeners.d.ts +1 -1
  542. package/esm/modules/file-browser/listeners/native-listeners.js +1 -1
  543. package/esm/modules/file-browser/listeners/self-listeners.d.ts +1 -1
  544. package/esm/modules/file-browser/listeners/self-listeners.js +1 -1
  545. package/esm/modules/file-browser/listeners/state-listeners.d.ts +1 -1
  546. package/esm/modules/file-browser/listeners/state-listeners.js +1 -1
  547. package/esm/modules/file-browser/ui/files/files.d.ts +1 -1
  548. package/esm/modules/file-browser/ui/files/files.js +1 -1
  549. package/esm/modules/file-browser/ui/index.d.ts +1 -1
  550. package/esm/modules/file-browser/ui/index.js +1 -1
  551. package/esm/modules/file-browser/ui/tree/tree.d.ts +1 -1
  552. package/esm/modules/file-browser/ui/tree/tree.js +1 -1
  553. package/esm/modules/history/command.d.ts +1 -1
  554. package/esm/modules/history/command.js +1 -1
  555. package/esm/modules/history/history.d.ts +1 -1
  556. package/esm/modules/history/history.js +1 -1
  557. package/esm/modules/history/snapshot.d.ts +1 -1
  558. package/esm/modules/history/snapshot.js +1 -1
  559. package/esm/modules/history/stack.d.ts +1 -1
  560. package/esm/modules/history/stack.js +1 -1
  561. package/esm/modules/image-editor/config.d.ts +1 -1
  562. package/esm/modules/image-editor/config.js +1 -1
  563. package/esm/modules/image-editor/image-editor.d.ts +1 -1
  564. package/esm/modules/image-editor/image-editor.js +1 -1
  565. package/esm/modules/image-editor/templates/form.d.ts +1 -1
  566. package/esm/modules/image-editor/templates/form.js +1 -1
  567. package/esm/modules/index.d.ts +2 -1
  568. package/esm/modules/index.js +2 -1
  569. package/esm/modules/messages/message.d.ts +1 -1
  570. package/esm/modules/messages/message.js +1 -1
  571. package/esm/modules/messages/messages.d.ts +1 -1
  572. package/esm/modules/messages/messages.js +1 -1
  573. package/esm/modules/status-bar/status-bar.d.ts +1 -1
  574. package/esm/modules/status-bar/status-bar.js +1 -1
  575. package/esm/modules/table/table.d.ts +1 -1
  576. package/esm/modules/table/table.js +1 -1
  577. package/esm/modules/toolbar/button/button.d.ts +1 -1
  578. package/esm/modules/toolbar/button/button.js +3 -3
  579. package/esm/modules/toolbar/button/content.d.ts +1 -1
  580. package/esm/modules/toolbar/button/content.js +1 -1
  581. package/esm/modules/toolbar/button/index.d.ts +1 -1
  582. package/esm/modules/toolbar/button/index.js +1 -1
  583. package/esm/modules/toolbar/button/select/select.d.ts +1 -1
  584. package/esm/modules/toolbar/button/select/select.js +1 -1
  585. package/esm/modules/toolbar/collection/collection.d.ts +1 -1
  586. package/esm/modules/toolbar/collection/collection.js +1 -1
  587. package/esm/modules/toolbar/collection/editor-collection.d.ts +1 -1
  588. package/esm/modules/toolbar/collection/editor-collection.js +1 -1
  589. package/esm/modules/toolbar/factory.d.ts +1 -1
  590. package/esm/modules/toolbar/factory.js +1 -1
  591. package/esm/modules/uploader/config.d.ts +1 -1
  592. package/esm/modules/uploader/config.js +1 -1
  593. package/esm/modules/uploader/helpers/build-data.d.ts +1 -1
  594. package/esm/modules/uploader/helpers/build-data.js +1 -1
  595. package/esm/modules/uploader/helpers/data-uri-to-blob.d.ts +1 -1
  596. package/esm/modules/uploader/helpers/data-uri-to-blob.js +1 -1
  597. package/esm/modules/uploader/helpers/index.d.ts +1 -1
  598. package/esm/modules/uploader/helpers/index.js +1 -1
  599. package/esm/modules/uploader/helpers/process-old-browser-drag.d.ts +1 -1
  600. package/esm/modules/uploader/helpers/process-old-browser-drag.js +1 -1
  601. package/esm/modules/uploader/helpers/send-files.d.ts +1 -1
  602. package/esm/modules/uploader/helpers/send-files.js +1 -1
  603. package/esm/modules/uploader/helpers/send.d.ts +1 -1
  604. package/esm/modules/uploader/helpers/send.js +1 -1
  605. package/esm/modules/uploader/uploader.d.ts +3 -2
  606. package/esm/modules/uploader/uploader.js +6 -1
  607. package/esm/modules/widget/color-picker/color-picker.d.ts +1 -1
  608. package/esm/modules/widget/color-picker/color-picker.js +1 -1
  609. package/esm/modules/widget/file-selector/file-selector.d.ts +1 -1
  610. package/esm/modules/widget/file-selector/file-selector.js +1 -1
  611. package/esm/modules/widget/index.d.ts +1 -1
  612. package/esm/modules/widget/index.js +1 -1
  613. package/esm/modules/widget/tabs/tabs.d.ts +1 -1
  614. package/esm/modules/widget/tabs/tabs.js +1 -1
  615. package/esm/plugins/about/about.d.ts +1 -1
  616. package/esm/plugins/about/about.js +1 -1
  617. package/esm/plugins/add-new-line/add-new-line.d.ts +1 -1
  618. package/esm/plugins/add-new-line/add-new-line.js +1 -1
  619. package/esm/plugins/add-new-line/config.d.ts +1 -1
  620. package/esm/plugins/add-new-line/config.js +1 -1
  621. package/esm/plugins/ai-assistant/ai-assistant.d.ts +1 -1
  622. package/esm/plugins/ai-assistant/ai-assistant.js +1 -1
  623. package/esm/plugins/ai-assistant/config.d.ts +31 -1
  624. package/esm/plugins/ai-assistant/config.js +32 -31
  625. package/esm/plugins/ai-assistant/interface.d.ts +1 -1
  626. package/esm/plugins/ai-assistant/interface.js +1 -1
  627. package/esm/plugins/ai-assistant/langs/en.js +1 -1
  628. package/esm/plugins/ai-assistant/langs/es.js +1 -1
  629. package/esm/plugins/ai-assistant/langs/index.d.ts +1 -1
  630. package/esm/plugins/ai-assistant/langs/index.js +1 -1
  631. package/esm/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +1 -1
  632. package/esm/plugins/ai-assistant/ui/ui-ai-assistant.js +1 -1
  633. package/esm/plugins/all.d.ts +1 -1
  634. package/esm/plugins/all.js +1 -1
  635. package/esm/plugins/backspace/backspace.d.ts +1 -1
  636. package/esm/plugins/backspace/backspace.js +1 -1
  637. package/esm/plugins/backspace/cases/check-join-neighbors.d.ts +1 -1
  638. package/esm/plugins/backspace/cases/check-join-neighbors.js +1 -1
  639. package/esm/plugins/backspace/cases/check-join-two-lists.d.ts +1 -1
  640. package/esm/plugins/backspace/cases/check-join-two-lists.js +1 -1
  641. package/esm/plugins/backspace/cases/check-not-collapsed.d.ts +1 -1
  642. package/esm/plugins/backspace/cases/check-not-collapsed.js +1 -1
  643. package/esm/plugins/backspace/cases/check-remove-char.d.ts +1 -1
  644. package/esm/plugins/backspace/cases/check-remove-char.js +1 -1
  645. package/esm/plugins/backspace/cases/check-remove-content-not-editable.d.ts +1 -1
  646. package/esm/plugins/backspace/cases/check-remove-content-not-editable.js +1 -1
  647. package/esm/plugins/backspace/cases/check-remove-empty-neighbor.d.ts +1 -1
  648. package/esm/plugins/backspace/cases/check-remove-empty-neighbor.js +1 -1
  649. package/esm/plugins/backspace/cases/check-remove-empty-parent.d.ts +1 -1
  650. package/esm/plugins/backspace/cases/check-remove-empty-parent.js +1 -1
  651. package/esm/plugins/backspace/cases/check-remove-unbreakable-element.d.ts +1 -1
  652. package/esm/plugins/backspace/cases/check-remove-unbreakable-element.js +1 -1
  653. package/esm/plugins/backspace/cases/check-table-cell.d.ts +1 -1
  654. package/esm/plugins/backspace/cases/check-table-cell.js +1 -1
  655. package/esm/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
  656. package/esm/plugins/backspace/cases/check-unwrap-first-list-item.js +1 -1
  657. package/esm/plugins/backspace/cases/index.d.ts +1 -1
  658. package/esm/plugins/backspace/cases/index.js +1 -1
  659. package/esm/plugins/backspace/config.d.ts +1 -1
  660. package/esm/plugins/backspace/config.js +1 -1
  661. package/esm/plugins/backspace/helpers.d.ts +1 -1
  662. package/esm/plugins/backspace/helpers.js +1 -1
  663. package/esm/plugins/backspace/interface.d.ts +1 -1
  664. package/esm/plugins/backspace/interface.js +1 -1
  665. package/esm/plugins/bold/bold.d.ts +1 -1
  666. package/esm/plugins/bold/bold.js +1 -1
  667. package/esm/plugins/bold/config.d.ts +1 -1
  668. package/esm/plugins/bold/config.js +1 -1
  669. package/esm/plugins/bold/interface.d.ts +1 -1
  670. package/esm/plugins/class-span/class-span.d.ts +1 -1
  671. package/esm/plugins/class-span/class-span.js +1 -1
  672. package/esm/plugins/clean-html/clean-html.d.ts +1 -1
  673. package/esm/plugins/clean-html/clean-html.js +1 -1
  674. package/esm/plugins/clean-html/config.d.ts +1 -1
  675. package/esm/plugins/clean-html/config.js +1 -1
  676. package/esm/plugins/clean-html/helpers/get-hash.d.ts +1 -1
  677. package/esm/plugins/clean-html/helpers/get-hash.js +1 -1
  678. package/esm/plugins/clean-html/helpers/index.d.ts +1 -1
  679. package/esm/plugins/clean-html/helpers/index.js +1 -1
  680. package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +1 -1
  681. package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.js +1 -1
  682. package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-selection.d.ts +1 -1
  683. package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-selection.js +1 -1
  684. package/esm/plugins/clean-html/helpers/visitor/filters/allow-attributes.d.ts +1 -1
  685. package/esm/plugins/clean-html/helpers/visitor/filters/allow-attributes.js +1 -1
  686. package/esm/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.d.ts +1 -1
  687. package/esm/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.js +1 -1
  688. package/esm/plugins/clean-html/helpers/visitor/filters/index.d.ts +1 -1
  689. package/esm/plugins/clean-html/helpers/visitor/filters/index.js +1 -1
  690. package/esm/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.d.ts +1 -1
  691. package/esm/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.js +1 -1
  692. package/esm/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.d.ts +1 -1
  693. package/esm/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.js +1 -1
  694. package/esm/plugins/clean-html/helpers/visitor/filters/replace-old-tags.d.ts +1 -1
  695. package/esm/plugins/clean-html/helpers/visitor/filters/replace-old-tags.js +1 -1
  696. package/esm/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.d.ts +1 -1
  697. package/esm/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.js +1 -1
  698. package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.d.ts +1 -1
  699. package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +1 -1
  700. package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
  701. package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.js +1 -1
  702. package/esm/plugins/clipboard/clipboard.d.ts +1 -1
  703. package/esm/plugins/clipboard/clipboard.js +1 -1
  704. package/esm/plugins/clipboard/config.d.ts +1 -1
  705. package/esm/plugins/clipboard/config.js +1 -1
  706. package/esm/plugins/color/color.d.ts +1 -1
  707. package/esm/plugins/color/color.js +1 -1
  708. package/esm/plugins/color/config.d.ts +1 -1
  709. package/esm/plugins/color/config.js +1 -1
  710. package/esm/plugins/copy-format/copy-format.d.ts +1 -1
  711. package/esm/plugins/copy-format/copy-format.js +1 -1
  712. package/esm/plugins/copy-format/langs/ar.js +1 -1
  713. package/esm/plugins/copy-format/langs/cs_cz.js +1 -1
  714. package/esm/plugins/copy-format/langs/de.js +1 -1
  715. package/esm/plugins/copy-format/langs/es.js +1 -1
  716. package/esm/plugins/copy-format/langs/fa.js +1 -1
  717. package/esm/plugins/copy-format/langs/fi.js +1 -1
  718. package/esm/plugins/copy-format/langs/fr.js +1 -1
  719. package/esm/plugins/copy-format/langs/he.js +1 -1
  720. package/esm/plugins/copy-format/langs/hu.js +1 -1
  721. package/esm/plugins/copy-format/langs/id.js +1 -1
  722. package/esm/plugins/copy-format/langs/index.d.ts +1 -1
  723. package/esm/plugins/copy-format/langs/index.js +1 -1
  724. package/esm/plugins/copy-format/langs/it.js +1 -1
  725. package/esm/plugins/copy-format/langs/ja.js +1 -1
  726. package/esm/plugins/copy-format/langs/ko.js +1 -1
  727. package/esm/plugins/copy-format/langs/mn.js +1 -1
  728. package/esm/plugins/copy-format/langs/nl.js +1 -1
  729. package/esm/plugins/copy-format/langs/pl.js +1 -1
  730. package/esm/plugins/copy-format/langs/pt_br.js +1 -1
  731. package/esm/plugins/copy-format/langs/ru.js +1 -1
  732. package/esm/plugins/copy-format/langs/tr.js +1 -1
  733. package/esm/plugins/copy-format/langs/zh_cn.js +1 -1
  734. package/esm/plugins/copy-format/langs/zh_tw.js +1 -1
  735. package/esm/plugins/debug/debug.d.ts +1 -1
  736. package/esm/plugins/delete/delete.d.ts +1 -1
  737. package/esm/plugins/delete/delete.js +1 -1
  738. package/esm/plugins/delete/interface.d.ts +1 -1
  739. package/esm/plugins/drag-and-drop/drag-and-drop.d.ts +1 -1
  740. package/esm/plugins/drag-and-drop/drag-and-drop.js +1 -1
  741. package/esm/plugins/drag-and-drop-element/config.d.ts +1 -1
  742. package/esm/plugins/drag-and-drop-element/config.js +1 -1
  743. package/esm/plugins/drag-and-drop-element/drag-and-drop-element.d.ts +1 -1
  744. package/esm/plugins/drag-and-drop-element/drag-and-drop-element.js +1 -1
  745. package/esm/plugins/dtd/after-insert/index.d.ts +1 -1
  746. package/esm/plugins/dtd/after-insert/index.js +1 -1
  747. package/esm/plugins/dtd/after-insert/remove-extra-br.d.ts +1 -1
  748. package/esm/plugins/dtd/after-insert/remove-extra-br.js +1 -1
  749. package/esm/plugins/dtd/before-insert/check-block-nesting.d.ts +1 -1
  750. package/esm/plugins/dtd/before-insert/check-block-nesting.js +1 -1
  751. package/esm/plugins/dtd/before-insert/index.d.ts +1 -1
  752. package/esm/plugins/dtd/before-insert/index.js +1 -1
  753. package/esm/plugins/dtd/config.d.ts +1 -1
  754. package/esm/plugins/dtd/config.js +1 -1
  755. package/esm/plugins/dtd/dtd.d.ts +1 -1
  756. package/esm/plugins/dtd/dtd.js +1 -1
  757. package/esm/plugins/enter/enter.d.ts +1 -1
  758. package/esm/plugins/enter/enter.js +1 -1
  759. package/esm/plugins/enter/helpers/check-br.d.ts +1 -1
  760. package/esm/plugins/enter/helpers/check-br.js +1 -1
  761. package/esm/plugins/enter/helpers/check-unsplittable-box.d.ts +1 -1
  762. package/esm/plugins/enter/helpers/check-unsplittable-box.js +1 -1
  763. package/esm/plugins/enter/helpers/get-block-wrapper.d.ts +1 -1
  764. package/esm/plugins/enter/helpers/get-block-wrapper.js +1 -1
  765. package/esm/plugins/enter/helpers/has-previous-block.d.ts +1 -1
  766. package/esm/plugins/enter/helpers/has-previous-block.js +1 -1
  767. package/esm/plugins/enter/helpers/index.d.ts +1 -1
  768. package/esm/plugins/enter/helpers/index.js +1 -1
  769. package/esm/plugins/enter/helpers/insert-paragraph.d.ts +1 -1
  770. package/esm/plugins/enter/helpers/insert-paragraph.js +1 -1
  771. package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
  772. package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.js +1 -1
  773. package/esm/plugins/enter/helpers/process-empty-li-leaf.d.ts +1 -1
  774. package/esm/plugins/enter/helpers/process-empty-li-leaf.js +1 -1
  775. package/esm/plugins/enter/helpers/split-fragment.d.ts +1 -1
  776. package/esm/plugins/enter/helpers/split-fragment.js +1 -1
  777. package/esm/plugins/enter/helpers/wrap-text.d.ts +1 -1
  778. package/esm/plugins/enter/helpers/wrap-text.js +1 -1
  779. package/esm/plugins/enter/interface.d.ts +1 -1
  780. package/esm/plugins/file/file.d.ts +1 -1
  781. package/esm/plugins/file/file.js +1 -1
  782. package/esm/plugins/focus/focus.d.ts +1 -1
  783. package/esm/plugins/focus/focus.js +1 -1
  784. package/esm/plugins/font/config.d.ts +1 -1
  785. package/esm/plugins/font/config.js +1 -1
  786. package/esm/plugins/font/font.d.ts +1 -1
  787. package/esm/plugins/font/font.js +1 -1
  788. package/esm/plugins/format-block/config.d.ts +1 -1
  789. package/esm/plugins/format-block/config.js +1 -1
  790. package/esm/plugins/format-block/format-block.d.ts +1 -1
  791. package/esm/plugins/format-block/format-block.js +1 -1
  792. package/esm/plugins/fullsize/config.d.ts +1 -1
  793. package/esm/plugins/fullsize/config.js +1 -1
  794. package/esm/plugins/fullsize/fullsize.d.ts +1 -1
  795. package/esm/plugins/fullsize/fullsize.js +1 -1
  796. package/esm/plugins/hotkeys/config.d.ts +1 -1
  797. package/esm/plugins/hotkeys/config.js +1 -1
  798. package/esm/plugins/hotkeys/hotkeys.d.ts +1 -1
  799. package/esm/plugins/hotkeys/hotkeys.js +1 -1
  800. package/esm/plugins/hr/hr.d.ts +1 -1
  801. package/esm/plugins/hr/hr.js +1 -1
  802. package/esm/plugins/iframe/config.d.ts +1 -1
  803. package/esm/plugins/iframe/config.js +1 -1
  804. package/esm/plugins/iframe/iframe.d.ts +1 -1
  805. package/esm/plugins/iframe/iframe.js +1 -1
  806. package/esm/plugins/image/image.d.ts +1 -1
  807. package/esm/plugins/image/image.js +1 -1
  808. package/esm/plugins/image-processor/config.d.ts +1 -1
  809. package/esm/plugins/image-processor/config.js +1 -1
  810. package/esm/plugins/image-processor/image-processor.d.ts +1 -1
  811. package/esm/plugins/image-processor/image-processor.js +1 -1
  812. package/esm/plugins/image-properties/config.d.ts +1 -1
  813. package/esm/plugins/image-properties/config.js +1 -1
  814. package/esm/plugins/image-properties/image-properties.d.ts +1 -1
  815. package/esm/plugins/image-properties/image-properties.js +1 -1
  816. package/esm/plugins/image-properties/interface.d.ts +1 -1
  817. package/esm/plugins/image-properties/readers/align.d.ts +1 -1
  818. package/esm/plugins/image-properties/readers/align.js +1 -1
  819. package/esm/plugins/image-properties/readers/index.d.ts +1 -1
  820. package/esm/plugins/image-properties/readers/index.js +1 -1
  821. package/esm/plugins/image-properties/readers/link.d.ts +1 -1
  822. package/esm/plugins/image-properties/readers/link.js +1 -1
  823. package/esm/plugins/image-properties/readers/margin.d.ts +1 -1
  824. package/esm/plugins/image-properties/readers/margin.js +1 -1
  825. package/esm/plugins/image-properties/readers/size.d.ts +1 -1
  826. package/esm/plugins/image-properties/readers/size.js +1 -1
  827. package/esm/plugins/image-properties/ui/ui-image-form.d.ts +1 -1
  828. package/esm/plugins/image-properties/ui/ui-image-form.js +1 -1
  829. package/esm/plugins/image-properties/ui/ui-image-main-tab.d.ts +1 -1
  830. package/esm/plugins/image-properties/ui/ui-image-main-tab.js +1 -1
  831. package/esm/plugins/image-properties/ui/ui-image-position-tab.d.ts +1 -1
  832. package/esm/plugins/image-properties/ui/ui-image-position-tab.js +1 -1
  833. package/esm/plugins/image-properties/utils/open-image-editor.d.ts +1 -1
  834. package/esm/plugins/image-properties/utils/open-image-editor.js +1 -1
  835. package/esm/plugins/image-properties/utils/open-image-popup.d.ts +1 -1
  836. package/esm/plugins/image-properties/utils/open-image-popup.js +1 -1
  837. package/esm/plugins/image-properties/utils/utils.d.ts +1 -1
  838. package/esm/plugins/image-properties/utils/utils.js +1 -1
  839. package/esm/plugins/image-properties/writers/index.d.ts +1 -1
  840. package/esm/plugins/image-properties/writers/index.js +1 -1
  841. package/esm/plugins/image-properties/writers/link.d.ts +1 -1
  842. package/esm/plugins/image-properties/writers/link.js +1 -1
  843. package/esm/plugins/image-properties/writers/margin.d.ts +1 -1
  844. package/esm/plugins/image-properties/writers/margin.js +1 -1
  845. package/esm/plugins/image-properties/writers/size.d.ts +1 -1
  846. package/esm/plugins/image-properties/writers/size.js +1 -1
  847. package/esm/plugins/indent/config.d.ts +1 -1
  848. package/esm/plugins/indent/config.js +1 -1
  849. package/esm/plugins/indent/helpers.d.ts +1 -1
  850. package/esm/plugins/indent/helpers.js +1 -1
  851. package/esm/plugins/indent/indent.d.ts +1 -1
  852. package/esm/plugins/indent/indent.js +1 -1
  853. package/esm/plugins/index.d.ts +1 -1
  854. package/esm/plugins/index.js +1 -1
  855. package/esm/plugins/inline-popup/config/config.d.ts +1 -1
  856. package/esm/plugins/inline-popup/config/config.js +1 -1
  857. package/esm/plugins/inline-popup/config/items/a.d.ts +1 -1
  858. package/esm/plugins/inline-popup/config/items/a.js +1 -1
  859. package/esm/plugins/inline-popup/config/items/cells.d.ts +1 -1
  860. package/esm/plugins/inline-popup/config/items/cells.js +1 -1
  861. package/esm/plugins/inline-popup/config/items/iframe.d.ts +1 -1
  862. package/esm/plugins/inline-popup/config/items/iframe.js +1 -1
  863. package/esm/plugins/inline-popup/config/items/img.d.ts +1 -1
  864. package/esm/plugins/inline-popup/config/items/img.js +1 -1
  865. package/esm/plugins/inline-popup/config/items/toolbar.d.ts +1 -1
  866. package/esm/plugins/inline-popup/config/items/toolbar.js +1 -1
  867. package/esm/plugins/inline-popup/inline-popup.d.ts +1 -1
  868. package/esm/plugins/inline-popup/inline-popup.js +1 -1
  869. package/esm/plugins/justify/justify.d.ts +1 -1
  870. package/esm/plugins/justify/justify.js +1 -1
  871. package/esm/plugins/key-arrow-outside/key-arrow-outside.d.ts +1 -1
  872. package/esm/plugins/key-arrow-outside/key-arrow-outside.js +1 -1
  873. package/esm/plugins/limit/config.d.ts +1 -1
  874. package/esm/plugins/limit/config.js +1 -1
  875. package/esm/plugins/limit/limit.d.ts +1 -1
  876. package/esm/plugins/limit/limit.js +1 -1
  877. package/esm/plugins/line-height/config.d.ts +1 -1
  878. package/esm/plugins/line-height/config.js +1 -1
  879. package/esm/plugins/line-height/langs/ar.js +1 -1
  880. package/esm/plugins/line-height/langs/cs_cz.js +1 -1
  881. package/esm/plugins/line-height/langs/de.js +1 -1
  882. package/esm/plugins/line-height/langs/es.js +1 -1
  883. package/esm/plugins/line-height/langs/fa.js +1 -1
  884. package/esm/plugins/line-height/langs/fi.js +1 -1
  885. package/esm/plugins/line-height/langs/fr.js +1 -1
  886. package/esm/plugins/line-height/langs/he.js +1 -1
  887. package/esm/plugins/line-height/langs/hu.js +1 -1
  888. package/esm/plugins/line-height/langs/id.js +1 -1
  889. package/esm/plugins/line-height/langs/index.d.ts +1 -1
  890. package/esm/plugins/line-height/langs/index.js +1 -1
  891. package/esm/plugins/line-height/langs/it.js +1 -1
  892. package/esm/plugins/line-height/langs/ja.js +1 -1
  893. package/esm/plugins/line-height/langs/ko.js +1 -1
  894. package/esm/plugins/line-height/langs/mn.js +1 -1
  895. package/esm/plugins/line-height/langs/nl.js +1 -1
  896. package/esm/plugins/line-height/langs/pl.js +1 -1
  897. package/esm/plugins/line-height/langs/pt_br.js +1 -1
  898. package/esm/plugins/line-height/langs/ru.js +1 -1
  899. package/esm/plugins/line-height/langs/tr.js +1 -1
  900. package/esm/plugins/line-height/langs/ua.js +1 -1
  901. package/esm/plugins/line-height/langs/zh_cn.js +1 -1
  902. package/esm/plugins/line-height/langs/zh_tw.js +1 -1
  903. package/esm/plugins/line-height/line-height.d.ts +1 -1
  904. package/esm/plugins/line-height/line-height.js +1 -1
  905. package/esm/plugins/link/config.d.ts +1 -1
  906. package/esm/plugins/link/config.js +1 -1
  907. package/esm/plugins/link/link.d.ts +1 -1
  908. package/esm/plugins/link/link.js +1 -1
  909. package/esm/plugins/link/template.d.ts +1 -1
  910. package/esm/plugins/link/template.js +1 -1
  911. package/esm/plugins/media/config.d.ts +1 -1
  912. package/esm/plugins/media/config.js +1 -1
  913. package/esm/plugins/media/media.d.ts +1 -1
  914. package/esm/plugins/media/media.js +1 -1
  915. package/esm/plugins/mobile/config.d.ts +1 -1
  916. package/esm/plugins/mobile/config.js +1 -1
  917. package/esm/plugins/mobile/mobile.d.ts +1 -1
  918. package/esm/plugins/mobile/mobile.js +1 -1
  919. package/esm/plugins/ordered-list/config.d.ts +1 -1
  920. package/esm/plugins/ordered-list/config.js +1 -1
  921. package/esm/plugins/ordered-list/ordered-list.d.ts +1 -1
  922. package/esm/plugins/ordered-list/ordered-list.js +1 -1
  923. package/esm/plugins/paste/config.d.ts +1 -1
  924. package/esm/plugins/paste/config.js +1 -1
  925. package/esm/plugins/paste/helpers.d.ts +1 -1
  926. package/esm/plugins/paste/helpers.js +1 -1
  927. package/esm/plugins/paste/interface.d.ts +1 -1
  928. package/esm/plugins/paste/interface.js +1 -1
  929. package/esm/plugins/paste/paste.d.ts +1 -1
  930. package/esm/plugins/paste/paste.js +1 -1
  931. package/esm/plugins/paste-from-word/config.d.ts +1 -1
  932. package/esm/plugins/paste-from-word/config.js +1 -1
  933. package/esm/plugins/paste-from-word/paste-from-word.d.ts +1 -1
  934. package/esm/plugins/paste-from-word/paste-from-word.js +1 -1
  935. package/esm/plugins/paste-storage/paste-storage.d.ts +1 -1
  936. package/esm/plugins/paste-storage/paste-storage.js +1 -1
  937. package/esm/plugins/placeholder/config.d.ts +1 -1
  938. package/esm/plugins/placeholder/config.js +1 -1
  939. package/esm/plugins/placeholder/placeholder.d.ts +1 -1
  940. package/esm/plugins/placeholder/placeholder.js +1 -1
  941. package/esm/plugins/powered-by-jodit/powered-by-jodit.d.ts +1 -1
  942. package/esm/plugins/powered-by-jodit/powered-by-jodit.js +1 -1
  943. package/esm/plugins/preview/preview.d.ts +1 -1
  944. package/esm/plugins/preview/preview.js +1 -1
  945. package/esm/plugins/print/lib/generate-critical-css.d.ts +1 -1
  946. package/esm/plugins/print/lib/generate-critical-css.js +1 -1
  947. package/esm/plugins/print/print.d.ts +1 -1
  948. package/esm/plugins/print/print.js +1 -1
  949. package/esm/plugins/redo-undo/redo-undo.d.ts +1 -1
  950. package/esm/plugins/redo-undo/redo-undo.js +1 -1
  951. package/esm/plugins/resize-cells/config.d.ts +1 -1
  952. package/esm/plugins/resize-cells/config.js +1 -1
  953. package/esm/plugins/resize-cells/resize-cells.d.ts +1 -1
  954. package/esm/plugins/resize-cells/resize-cells.js +1 -1
  955. package/esm/plugins/resize-handler/config.d.ts +1 -1
  956. package/esm/plugins/resize-handler/config.js +1 -1
  957. package/esm/plugins/resize-handler/resize-handler.d.ts +1 -1
  958. package/esm/plugins/resize-handler/resize-handler.js +1 -1
  959. package/esm/plugins/resizer/config.d.ts +1 -1
  960. package/esm/plugins/resizer/config.js +1 -1
  961. package/esm/plugins/resizer/resizer.d.ts +1 -1
  962. package/esm/plugins/resizer/resizer.js +1 -1
  963. package/esm/plugins/search/config.d.ts +1 -1
  964. package/esm/plugins/search/config.js +1 -1
  965. package/esm/plugins/search/helpers/highlight-text-ranges.d.ts +1 -1
  966. package/esm/plugins/search/helpers/highlight-text-ranges.js +1 -1
  967. package/esm/plugins/search/helpers/index.d.ts +1 -1
  968. package/esm/plugins/search/helpers/index.js +1 -1
  969. package/esm/plugins/search/helpers/sentence-finder.d.ts +1 -1
  970. package/esm/plugins/search/helpers/sentence-finder.js +1 -1
  971. package/esm/plugins/search/interface.d.ts +1 -1
  972. package/esm/plugins/search/search.d.ts +1 -1
  973. package/esm/plugins/search/search.js +1 -1
  974. package/esm/plugins/search/ui/search.d.ts +1 -1
  975. package/esm/plugins/search/ui/search.js +1 -1
  976. package/esm/plugins/select/config.d.ts +1 -1
  977. package/esm/plugins/select/config.js +1 -1
  978. package/esm/plugins/select/select.d.ts +1 -1
  979. package/esm/plugins/select/select.js +1 -1
  980. package/esm/plugins/select-cells/config.d.ts +1 -1
  981. package/esm/plugins/select-cells/config.js +1 -1
  982. package/esm/plugins/select-cells/select-cells.d.ts +1 -1
  983. package/esm/plugins/select-cells/select-cells.js +1 -1
  984. package/esm/plugins/size/config.d.ts +1 -1
  985. package/esm/plugins/size/config.js +1 -1
  986. package/esm/plugins/size/size.d.ts +1 -1
  987. package/esm/plugins/size/size.js +17 -5
  988. package/esm/plugins/source/config.d.ts +1 -1
  989. package/esm/plugins/source/config.js +1 -1
  990. package/esm/plugins/source/editor/engines/ace.d.ts +1 -1
  991. package/esm/plugins/source/editor/engines/ace.js +1 -1
  992. package/esm/plugins/source/editor/engines/area.d.ts +1 -1
  993. package/esm/plugins/source/editor/engines/area.js +1 -1
  994. package/esm/plugins/source/editor/engines/index.d.ts +1 -1
  995. package/esm/plugins/source/editor/engines/index.js +1 -1
  996. package/esm/plugins/source/editor/factory.d.ts +1 -1
  997. package/esm/plugins/source/editor/factory.js +1 -1
  998. package/esm/plugins/source/editor/sourceEditor.d.ts +1 -1
  999. package/esm/plugins/source/editor/sourceEditor.js +1 -1
  1000. package/esm/plugins/source/source.d.ts +1 -1
  1001. package/esm/plugins/source/source.js +1 -1
  1002. package/esm/plugins/speech-recognize/config.d.ts +1 -1
  1003. package/esm/plugins/speech-recognize/config.js +1 -1
  1004. package/esm/plugins/speech-recognize/constants.d.ts +1 -1
  1005. package/esm/plugins/speech-recognize/constants.js +1 -1
  1006. package/esm/plugins/speech-recognize/helpers/api.d.ts +1 -1
  1007. package/esm/plugins/speech-recognize/helpers/api.js +1 -1
  1008. package/esm/plugins/speech-recognize/helpers/exec-spell-command.d.ts +1 -1
  1009. package/esm/plugins/speech-recognize/helpers/exec-spell-command.js +1 -1
  1010. package/esm/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
  1011. package/esm/plugins/speech-recognize/helpers/recognize-manager.js +1 -1
  1012. package/esm/plugins/speech-recognize/helpers/sound.d.ts +1 -1
  1013. package/esm/plugins/speech-recognize/helpers/sound.js +1 -1
  1014. package/esm/plugins/speech-recognize/interface.d.ts +1 -1
  1015. package/esm/plugins/speech-recognize/interface.js +1 -1
  1016. package/esm/plugins/speech-recognize/langs/ar.js +1 -1
  1017. package/esm/plugins/speech-recognize/langs/cs_cz.js +1 -1
  1018. package/esm/plugins/speech-recognize/langs/de.js +1 -1
  1019. package/esm/plugins/speech-recognize/langs/es.js +1 -1
  1020. package/esm/plugins/speech-recognize/langs/fa.js +1 -1
  1021. package/esm/plugins/speech-recognize/langs/fi.js +1 -1
  1022. package/esm/plugins/speech-recognize/langs/fr.js +1 -1
  1023. package/esm/plugins/speech-recognize/langs/he.js +1 -1
  1024. package/esm/plugins/speech-recognize/langs/hu.js +1 -1
  1025. package/esm/plugins/speech-recognize/langs/id.js +1 -1
  1026. package/esm/plugins/speech-recognize/langs/index.d.ts +1 -1
  1027. package/esm/plugins/speech-recognize/langs/index.js +1 -1
  1028. package/esm/plugins/speech-recognize/langs/it.js +1 -1
  1029. package/esm/plugins/speech-recognize/langs/ja.js +1 -1
  1030. package/esm/plugins/speech-recognize/langs/ko.js +1 -1
  1031. package/esm/plugins/speech-recognize/langs/mn.js +1 -1
  1032. package/esm/plugins/speech-recognize/langs/nl.js +1 -1
  1033. package/esm/plugins/speech-recognize/langs/no.js +1 -1
  1034. package/esm/plugins/speech-recognize/langs/pl.js +1 -1
  1035. package/esm/plugins/speech-recognize/langs/pt_br.js +1 -1
  1036. package/esm/plugins/speech-recognize/langs/ru.js +1 -1
  1037. package/esm/plugins/speech-recognize/langs/tr.js +1 -1
  1038. package/esm/plugins/speech-recognize/langs/ua.js +1 -1
  1039. package/esm/plugins/speech-recognize/langs/zh_cn.js +1 -1
  1040. package/esm/plugins/speech-recognize/langs/zh_tw.js +1 -1
  1041. package/esm/plugins/speech-recognize/speech-recognize.d.ts +1 -1
  1042. package/esm/plugins/speech-recognize/speech-recognize.js +1 -1
  1043. package/esm/plugins/spellcheck/config.d.ts +1 -1
  1044. package/esm/plugins/spellcheck/config.js +1 -1
  1045. package/esm/plugins/spellcheck/langs/ar.js +1 -1
  1046. package/esm/plugins/spellcheck/langs/cs_cz.js +1 -1
  1047. package/esm/plugins/spellcheck/langs/de.js +1 -1
  1048. package/esm/plugins/spellcheck/langs/es.js +1 -1
  1049. package/esm/plugins/spellcheck/langs/fa.js +1 -1
  1050. package/esm/plugins/spellcheck/langs/fi.js +1 -1
  1051. package/esm/plugins/spellcheck/langs/fr.js +1 -1
  1052. package/esm/plugins/spellcheck/langs/he.js +1 -1
  1053. package/esm/plugins/spellcheck/langs/hu.js +1 -1
  1054. package/esm/plugins/spellcheck/langs/id.js +1 -1
  1055. package/esm/plugins/spellcheck/langs/index.d.ts +1 -1
  1056. package/esm/plugins/spellcheck/langs/index.js +1 -1
  1057. package/esm/plugins/spellcheck/langs/it.js +1 -1
  1058. package/esm/plugins/spellcheck/langs/ja.js +1 -1
  1059. package/esm/plugins/spellcheck/langs/ko.js +1 -1
  1060. package/esm/plugins/spellcheck/langs/mn.js +1 -1
  1061. package/esm/plugins/spellcheck/langs/nl.js +1 -1
  1062. package/esm/plugins/spellcheck/langs/no.js +1 -1
  1063. package/esm/plugins/spellcheck/langs/pl.js +1 -1
  1064. package/esm/plugins/spellcheck/langs/pt_br.js +1 -1
  1065. package/esm/plugins/spellcheck/langs/ru.js +1 -1
  1066. package/esm/plugins/spellcheck/langs/tr.js +1 -1
  1067. package/esm/plugins/spellcheck/langs/ua.js +1 -1
  1068. package/esm/plugins/spellcheck/langs/zh_cn.js +1 -1
  1069. package/esm/plugins/spellcheck/langs/zh_tw.js +1 -1
  1070. package/esm/plugins/spellcheck/spellcheck.d.ts +1 -1
  1071. package/esm/plugins/spellcheck/spellcheck.js +1 -1
  1072. package/esm/plugins/stat/config.d.ts +1 -1
  1073. package/esm/plugins/stat/config.js +1 -1
  1074. package/esm/plugins/stat/stat.d.ts +1 -1
  1075. package/esm/plugins/stat/stat.js +1 -1
  1076. package/esm/plugins/sticky/config.d.ts +1 -1
  1077. package/esm/plugins/sticky/config.js +1 -1
  1078. package/esm/plugins/sticky/sticky.d.ts +1 -1
  1079. package/esm/plugins/sticky/sticky.js +1 -1
  1080. package/esm/plugins/symbols/config.d.ts +1 -1
  1081. package/esm/plugins/symbols/config.js +1 -1
  1082. package/esm/plugins/symbols/langs/ar.js +1 -1
  1083. package/esm/plugins/symbols/langs/cs_cz.js +1 -1
  1084. package/esm/plugins/symbols/langs/de.js +1 -1
  1085. package/esm/plugins/symbols/langs/es.js +1 -1
  1086. package/esm/plugins/symbols/langs/fa.js +1 -1
  1087. package/esm/plugins/symbols/langs/fi.js +1 -1
  1088. package/esm/plugins/symbols/langs/fr.js +1 -1
  1089. package/esm/plugins/symbols/langs/he.js +1 -1
  1090. package/esm/plugins/symbols/langs/hu.js +1 -1
  1091. package/esm/plugins/symbols/langs/id.js +1 -1
  1092. package/esm/plugins/symbols/langs/index.d.ts +1 -1
  1093. package/esm/plugins/symbols/langs/index.js +1 -1
  1094. package/esm/plugins/symbols/langs/it.js +1 -1
  1095. package/esm/plugins/symbols/langs/ja.js +1 -1
  1096. package/esm/plugins/symbols/langs/ko.js +1 -1
  1097. package/esm/plugins/symbols/langs/mn.js +1 -1
  1098. package/esm/plugins/symbols/langs/nl.js +1 -1
  1099. package/esm/plugins/symbols/langs/pl.js +1 -1
  1100. package/esm/plugins/symbols/langs/pt_br.js +1 -1
  1101. package/esm/plugins/symbols/langs/ru.js +1 -1
  1102. package/esm/plugins/symbols/langs/tr.js +1 -1
  1103. package/esm/plugins/symbols/langs/ua.js +1 -1
  1104. package/esm/plugins/symbols/langs/zh_cn.js +1 -1
  1105. package/esm/plugins/symbols/langs/zh_tw.js +1 -1
  1106. package/esm/plugins/symbols/symbols.d.ts +1 -1
  1107. package/esm/plugins/symbols/symbols.js +1 -1
  1108. package/esm/plugins/tab/cases/index.d.ts +1 -1
  1109. package/esm/plugins/tab/cases/index.js +1 -1
  1110. package/esm/plugins/tab/cases/on-tab-inside-li.d.ts +1 -1
  1111. package/esm/plugins/tab/cases/on-tab-inside-li.js +1 -1
  1112. package/esm/plugins/tab/config.d.ts +1 -1
  1113. package/esm/plugins/tab/config.js +1 -1
  1114. package/esm/plugins/tab/tab.d.ts +1 -1
  1115. package/esm/plugins/tab/tab.js +1 -1
  1116. package/esm/plugins/table/config.d.ts +1 -1
  1117. package/esm/plugins/table/config.js +7 -2
  1118. package/esm/plugins/table/table.d.ts +1 -1
  1119. package/esm/plugins/table/table.js +1 -1
  1120. package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +1 -1
  1121. package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +1 -1
  1122. package/esm/plugins/video/config.d.ts +1 -1
  1123. package/esm/plugins/video/config.js +1 -1
  1124. package/esm/plugins/video/video.d.ts +1 -1
  1125. package/esm/plugins/video/video.js +1 -1
  1126. package/esm/plugins/wrap-nodes/config.d.ts +1 -1
  1127. package/esm/plugins/wrap-nodes/config.js +1 -1
  1128. package/esm/plugins/wrap-nodes/wrap-nodes.d.ts +1 -1
  1129. package/esm/plugins/wrap-nodes/wrap-nodes.js +1 -1
  1130. package/esm/plugins/xpath/config.d.ts +1 -1
  1131. package/esm/plugins/xpath/config.js +1 -1
  1132. package/esm/plugins/xpath/xpath.d.ts +1 -1
  1133. package/esm/plugins/xpath/xpath.js +1 -1
  1134. package/esm/styles/icons/index.d.ts +1 -1
  1135. package/esm/styles/icons/index.js +1 -1
  1136. package/esm/types/ajax.d.ts +1 -1
  1137. package/esm/types/async.d.ts +1 -1
  1138. package/esm/types/context.d.ts +1 -1
  1139. package/esm/types/core.d.ts +1 -1
  1140. package/esm/types/create.d.ts +1 -1
  1141. package/esm/types/dialog.d.ts +1 -1
  1142. package/esm/types/events.d.ts +1 -1
  1143. package/esm/types/file-browser.d.ts +1 -1
  1144. package/esm/types/form.d.ts +1 -1
  1145. package/esm/types/history.d.ts +1 -1
  1146. package/esm/types/index.d.ts +1 -1
  1147. package/esm/types/jodit.d.ts +8 -1
  1148. package/esm/types/messages.d.ts +1 -1
  1149. package/esm/types/plugin.d.ts +1 -1
  1150. package/esm/types/popup.d.ts +1 -1
  1151. package/esm/types/select.d.ts +1 -1
  1152. package/esm/types/source.d.ts +1 -1
  1153. package/esm/types/storage.d.ts +12 -4
  1154. package/esm/types/style.d.ts +1 -1
  1155. package/esm/types/toolbar.d.ts +1 -1
  1156. package/esm/types/traits.d.ts +1 -1
  1157. package/esm/types/types.d.ts +1 -1
  1158. package/esm/types/ui.d.ts +2 -1
  1159. package/esm/types/uploader.d.ts +2 -1
  1160. package/esm/types/view.d.ts +5 -2
  1161. package/esm/typings.d.ts +1 -1
  1162. package/examples/arabic.lang.html +1 -1
  1163. package/examples/assets/app.js +1 -1
  1164. package/examples/color-picker.html +1 -1
  1165. package/examples/custom-icons.html +1 -1
  1166. package/examples/custom-toolbar.html +1 -1
  1167. package/examples/example.default.html +1 -1
  1168. package/examples/fullsize.html +1 -1
  1169. package/examples/index.html +1 -1
  1170. package/examples/inline-mode.html +1 -1
  1171. package/examples/oneinstance.html +1 -1
  1172. package/examples/theme.html +1 -1
  1173. package/package.json +1 -1
  1174. package/types/core/async/async.d.ts +1 -1
  1175. package/types/core/async/index.d.ts +1 -1
  1176. package/types/core/component/component.d.ts +1 -1
  1177. package/types/core/component/index.d.ts +1 -1
  1178. package/types/core/component/statuses.d.ts +1 -1
  1179. package/types/core/component/view-component.d.ts +1 -1
  1180. package/types/core/constants.d.ts +1 -1
  1181. package/types/core/create/create.d.ts +1 -1
  1182. package/types/core/create/index.d.ts +1 -1
  1183. package/types/core/decorators/autobind/autobind.d.ts +1 -1
  1184. package/types/core/decorators/cache/cache.d.ts +1 -1
  1185. package/types/core/decorators/component/component.d.ts +1 -1
  1186. package/types/core/decorators/debounce/debounce.d.ts +1 -1
  1187. package/types/core/decorators/derive/derive.d.ts +1 -1
  1188. package/types/core/decorators/hook/hook.d.ts +1 -1
  1189. package/types/core/decorators/idle/idle.d.ts +1 -1
  1190. package/types/core/decorators/index.d.ts +1 -1
  1191. package/types/core/decorators/nonenumerable/nonenumerable.d.ts +1 -1
  1192. package/types/core/decorators/persistent/persistent.d.ts +1 -1
  1193. package/types/core/decorators/wait/wait.d.ts +1 -1
  1194. package/types/core/decorators/watch/watch.d.ts +1 -1
  1195. package/types/core/dom/dom.d.ts +1 -1
  1196. package/types/core/dom/index.d.ts +1 -1
  1197. package/types/core/dom/lazy-walker.d.ts +1 -1
  1198. package/types/core/event-emitter/event-emitter.d.ts +1 -1
  1199. package/types/core/event-emitter/eventify.d.ts +1 -1
  1200. package/types/core/event-emitter/index.d.ts +1 -1
  1201. package/types/core/event-emitter/observable.d.ts +1 -1
  1202. package/types/core/event-emitter/store.d.ts +1 -1
  1203. package/types/core/global.d.ts +1 -1
  1204. package/types/core/helpers/array/as-array.d.ts +1 -1
  1205. package/types/core/helpers/array/index.d.ts +1 -1
  1206. package/types/core/helpers/array/split-array.d.ts +1 -1
  1207. package/types/core/helpers/array/to-array.d.ts +1 -1
  1208. package/types/core/helpers/async/index.d.ts +1 -1
  1209. package/types/core/helpers/async/set-timeout.d.ts +1 -1
  1210. package/types/core/helpers/checker/has-browser-color-picker.d.ts +1 -1
  1211. package/types/core/helpers/checker/index.d.ts +1 -1
  1212. package/types/core/helpers/checker/is-abort-error.d.ts +1 -1
  1213. package/types/core/helpers/checker/is-array.d.ts +1 -1
  1214. package/types/core/helpers/checker/is-boolean.d.ts +1 -1
  1215. package/types/core/helpers/checker/is-equal.d.ts +1 -1
  1216. package/types/core/helpers/checker/is-function.d.ts +1 -1
  1217. package/types/core/helpers/checker/is-html-from-word.d.ts +1 -1
  1218. package/types/core/helpers/checker/is-html.d.ts +1 -1
  1219. package/types/core/helpers/checker/is-imp-interface.d.ts +1 -1
  1220. package/types/core/helpers/checker/is-int.d.ts +1 -1
  1221. package/types/core/helpers/checker/is-jodit-object.d.ts +1 -1
  1222. package/types/core/helpers/checker/is-license.d.ts +1 -1
  1223. package/types/core/helpers/checker/is-marker.d.ts +1 -1
  1224. package/types/core/helpers/checker/is-native-function.d.ts +1 -1
  1225. package/types/core/helpers/checker/is-number.d.ts +1 -1
  1226. package/types/core/helpers/checker/is-numeric.d.ts +1 -1
  1227. package/types/core/helpers/checker/is-plain-object.d.ts +1 -1
  1228. package/types/core/helpers/checker/is-promise.d.ts +1 -1
  1229. package/types/core/helpers/checker/is-set.d.ts +1 -1
  1230. package/types/core/helpers/checker/is-string.d.ts +1 -1
  1231. package/types/core/helpers/checker/is-url.d.ts +1 -1
  1232. package/types/core/helpers/checker/is-valid-name.d.ts +1 -1
  1233. package/types/core/helpers/checker/is-view-object.d.ts +1 -1
  1234. package/types/core/helpers/checker/is-void.d.ts +1 -1
  1235. package/types/core/helpers/checker/is-window.d.ts +1 -1
  1236. package/types/core/helpers/color/color-to-hex.d.ts +1 -1
  1237. package/types/core/helpers/color/index.d.ts +1 -1
  1238. package/types/core/helpers/html/apply-styles.d.ts +1 -1
  1239. package/types/core/helpers/html/clean-from-word.d.ts +1 -1
  1240. package/types/core/helpers/html/htmlspecialchars.d.ts +1 -1
  1241. package/types/core/helpers/html/index.d.ts +1 -1
  1242. package/types/core/helpers/html/nl2br.d.ts +1 -1
  1243. package/types/core/helpers/html/safe-html.d.ts +1 -1
  1244. package/types/core/helpers/html/strip-tags.d.ts +1 -1
  1245. package/types/core/helpers/index.d.ts +1 -1
  1246. package/types/core/helpers/normalize/index.d.ts +1 -1
  1247. package/types/core/helpers/normalize/normalize-color.d.ts +1 -1
  1248. package/types/core/helpers/normalize/normalize-css-value.d.ts +1 -1
  1249. package/types/core/helpers/normalize/normalize-key-aliases.d.ts +1 -1
  1250. package/types/core/helpers/normalize/normalize-license.d.ts +1 -1
  1251. package/types/core/helpers/normalize/normalize-path.d.ts +1 -1
  1252. package/types/core/helpers/normalize/normalize-relative-path.d.ts +1 -1
  1253. package/types/core/helpers/normalize/normalize-size.d.ts +1 -1
  1254. package/types/core/helpers/normalize/normalize-url.d.ts +1 -1
  1255. package/types/core/helpers/size/get-content-width.d.ts +1 -1
  1256. package/types/core/helpers/size/get-scroll-parent.d.ts +1 -1
  1257. package/types/core/helpers/size/index.d.ts +1 -1
  1258. package/types/core/helpers/size/inner-width.d.ts +1 -1
  1259. package/types/core/helpers/size/object-size.d.ts +1 -1
  1260. package/types/core/helpers/size/offset.d.ts +1 -1
  1261. package/types/core/helpers/size/position.d.ts +1 -1
  1262. package/types/core/helpers/string/camel-case.d.ts +1 -1
  1263. package/types/core/helpers/string/fuzzy-search-index.d.ts +1 -1
  1264. package/types/core/helpers/string/i18n.d.ts +1 -1
  1265. package/types/core/helpers/string/index.d.ts +1 -1
  1266. package/types/core/helpers/string/kebab-case.d.ts +1 -1
  1267. package/types/core/helpers/string/stringify.d.ts +1 -1
  1268. package/types/core/helpers/string/trim.d.ts +1 -1
  1269. package/types/core/helpers/string/ucfirst.d.ts +1 -1
  1270. package/types/core/helpers/utils/align.d.ts +1 -1
  1271. package/types/core/helpers/utils/append-script.d.ts +1 -1
  1272. package/types/core/helpers/utils/assert.d.ts +1 -1
  1273. package/types/core/helpers/utils/attr.d.ts +1 -1
  1274. package/types/core/helpers/utils/browser.d.ts +1 -1
  1275. package/types/core/helpers/utils/build-query.d.ts +1 -1
  1276. package/types/core/helpers/utils/complete-url.d.ts +1 -1
  1277. package/types/core/helpers/utils/config-proto.d.ts +1 -1
  1278. package/types/core/helpers/utils/convert-media-url-to-video-embed.d.ts +1 -1
  1279. package/types/core/helpers/utils/css.d.ts +1 -1
  1280. package/types/core/helpers/utils/ctrl-key.d.ts +1 -1
  1281. package/types/core/helpers/utils/data-bind.d.ts +1 -1
  1282. package/types/core/helpers/utils/default-language.d.ts +1 -1
  1283. package/types/core/helpers/utils/error/error.d.ts +1 -1
  1284. package/types/core/helpers/utils/error/errors/abort-error.d.ts +1 -1
  1285. package/types/core/helpers/utils/error/errors/connection-error.d.ts +1 -1
  1286. package/types/core/helpers/utils/error/errors/index.d.ts +1 -1
  1287. package/types/core/helpers/utils/error/errors/options-error.d.ts +1 -1
  1288. package/types/core/helpers/utils/error/index.d.ts +1 -1
  1289. package/types/core/helpers/utils/extend.d.ts +1 -1
  1290. package/types/core/helpers/utils/get-class-name.d.ts +1 -1
  1291. package/types/core/helpers/utils/get.d.ts +1 -1
  1292. package/types/core/helpers/utils/human-size-to-bytes.d.ts +1 -1
  1293. package/types/core/helpers/utils/index.d.ts +1 -1
  1294. package/types/core/helpers/utils/mark-deprecated.d.ts +1 -1
  1295. package/types/core/helpers/utils/parse-query.d.ts +1 -1
  1296. package/types/core/helpers/utils/print.d.ts +1 -1
  1297. package/types/core/helpers/utils/reset.d.ts +1 -1
  1298. package/types/core/helpers/utils/scroll-into-view.d.ts +1 -1
  1299. package/types/core/helpers/utils/selector.d.ts +1 -1
  1300. package/types/core/helpers/utils/set.d.ts +1 -1
  1301. package/types/core/helpers/utils/stack.d.ts +1 -1
  1302. package/types/core/helpers/utils/utils.d.ts +1 -1
  1303. package/types/core/plugin/helpers/init-instance.d.ts +1 -1
  1304. package/types/core/plugin/helpers/load.d.ts +1 -1
  1305. package/types/core/plugin/helpers/make-instance.d.ts +1 -1
  1306. package/types/core/plugin/helpers/utils.d.ts +1 -1
  1307. package/types/core/plugin/index.d.ts +1 -1
  1308. package/types/core/plugin/interface.d.ts +1 -1
  1309. package/types/core/plugin/plugin-system.d.ts +1 -1
  1310. package/types/core/plugin/plugin.d.ts +1 -1
  1311. package/types/core/request/ajax.d.ts +1 -1
  1312. package/types/core/request/config.d.ts +1 -1
  1313. package/types/core/request/index.d.ts +1 -1
  1314. package/types/core/request/response.d.ts +1 -1
  1315. package/types/core/selection/helpers/index.d.ts +1 -1
  1316. package/types/core/selection/helpers/move-node-inside-start.d.ts +1 -1
  1317. package/types/core/selection/helpers/move-the-node-along-the-edge-outward.d.ts +1 -1
  1318. package/types/core/selection/index.d.ts +1 -1
  1319. package/types/core/selection/interface.d.ts +1 -1
  1320. package/types/core/selection/selection.d.ts +1 -1
  1321. package/types/core/selection/style/api/extract.d.ts +1 -1
  1322. package/types/core/selection/style/api/finite-state-machine.d.ts +1 -1
  1323. package/types/core/selection/style/api/get-suit-child.d.ts +1 -1
  1324. package/types/core/selection/style/api/get-suit-parent.d.ts +1 -1
  1325. package/types/core/selection/style/api/has-same-style.d.ts +1 -1
  1326. package/types/core/selection/style/api/index.d.ts +1 -1
  1327. package/types/core/selection/style/api/is-inside-invisible-element.d.ts +1 -1
  1328. package/types/core/selection/style/api/is-normal-node.d.ts +1 -1
  1329. package/types/core/selection/style/api/is-same-attributes.d.ts +1 -1
  1330. package/types/core/selection/style/api/is-suit-element.d.ts +1 -1
  1331. package/types/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
  1332. package/types/core/selection/style/api/list/wrap-list.d.ts +1 -1
  1333. package/types/core/selection/style/api/toggle-attributes.d.ts +1 -1
  1334. package/types/core/selection/style/api/unwrap-children.d.ts +1 -1
  1335. package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
  1336. package/types/core/selection/style/api/wrap.d.ts +1 -1
  1337. package/types/core/selection/style/apply-style.d.ts +1 -1
  1338. package/types/core/selection/style/commit-style.d.ts +1 -1
  1339. package/types/core/selection/style/constants.d.ts +1 -1
  1340. package/types/core/selection/style/transactions.d.ts +1 -1
  1341. package/types/core/storage/async-storage.d.ts +14 -0
  1342. package/types/core/storage/engines/indexed-db-provider.d.ts +56 -0
  1343. package/types/core/storage/engines/local-storage-provider.d.ts +11 -8
  1344. package/types/core/storage/engines/memory-storage-provider.d.ts +4 -4
  1345. package/types/core/storage/index.d.ts +3 -1
  1346. package/types/core/storage/storage.d.ts +6 -5
  1347. package/types/core/traits/dlgs.d.ts +1 -1
  1348. package/types/core/traits/elms.d.ts +1 -1
  1349. package/types/core/traits/mods.d.ts +1 -1
  1350. package/types/core/ui/button/button/button.d.ts +1 -1
  1351. package/types/core/ui/button/group/group.d.ts +1 -1
  1352. package/types/core/ui/button/index.d.ts +1 -1
  1353. package/types/core/ui/button/tooltip/tooltip.d.ts +1 -1
  1354. package/types/core/ui/element.d.ts +1 -1
  1355. package/types/core/ui/form/block/block.d.ts +1 -1
  1356. package/types/core/ui/form/form.d.ts +1 -1
  1357. package/types/core/ui/form/index.d.ts +1 -1
  1358. package/types/core/ui/form/inputs/area/area.d.ts +1 -1
  1359. package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +1 -1
  1360. package/types/core/ui/form/inputs/file/file.d.ts +1 -1
  1361. package/types/core/ui/form/inputs/index.d.ts +1 -1
  1362. package/types/core/ui/form/inputs/input/input.d.ts +1 -1
  1363. package/types/core/ui/form/inputs/select/select.d.ts +1 -1
  1364. package/types/core/ui/form/validators/index.d.ts +1 -1
  1365. package/types/core/ui/form/validators/input.d.ts +1 -1
  1366. package/types/core/ui/form/validators/select.d.ts +1 -1
  1367. package/types/core/ui/group/group.d.ts +2 -1
  1368. package/types/core/ui/group/index.d.ts +1 -1
  1369. package/types/core/ui/group/list.d.ts +1 -1
  1370. package/types/core/ui/group/separator.d.ts +1 -1
  1371. package/types/core/ui/group/spacer.d.ts +1 -1
  1372. package/types/core/ui/helpers/buttons.d.ts +1 -1
  1373. package/types/core/ui/helpers/get-control-type.d.ts +1 -1
  1374. package/types/core/ui/helpers/get-strong-control-types.d.ts +1 -1
  1375. package/types/core/ui/icon.d.ts +1 -1
  1376. package/types/core/ui/index.d.ts +1 -1
  1377. package/types/core/ui/popup/index.d.ts +1 -1
  1378. package/types/core/ui/popup/popup.d.ts +1 -1
  1379. package/types/core/ui/progress-bar/progress-bar.d.ts +1 -1
  1380. package/types/core/view/view-with-toolbar.d.ts +1 -1
  1381. package/types/core/view/view.d.ts +10 -5
  1382. package/types/index.d.ts +1 -1
  1383. package/types/jodit.d.ts +1 -1
  1384. package/types/languages.d.ts +1 -1
  1385. package/types/modules/context-menu/context-menu.d.ts +1 -1
  1386. package/types/modules/dialog/alert.d.ts +1 -1
  1387. package/types/modules/dialog/confirm.d.ts +1 -1
  1388. package/types/modules/dialog/dialog.d.ts +1 -1
  1389. package/types/modules/dialog/index.d.ts +1 -1
  1390. package/types/modules/dialog/prompt.d.ts +1 -1
  1391. package/types/modules/file-browser/builders/context-menu.d.ts +1 -1
  1392. package/types/modules/file-browser/builders/elements-map.d.ts +1 -1
  1393. package/types/modules/file-browser/builders/item.d.ts +1 -1
  1394. package/types/modules/file-browser/config.d.ts +1 -1
  1395. package/types/modules/file-browser/data-provider.d.ts +1 -1
  1396. package/types/modules/file-browser/factories.d.ts +1 -1
  1397. package/types/modules/file-browser/fetch/delete-file.d.ts +1 -1
  1398. package/types/modules/file-browser/fetch/load-items.d.ts +1 -1
  1399. package/types/modules/file-browser/fetch/load-tree.d.ts +1 -1
  1400. package/types/modules/file-browser/file-browser.d.ts +1 -1
  1401. package/types/modules/file-browser/index.d.ts +1 -1
  1402. package/types/modules/file-browser/listeners/native-listeners.d.ts +1 -1
  1403. package/types/modules/file-browser/listeners/self-listeners.d.ts +1 -1
  1404. package/types/modules/file-browser/listeners/state-listeners.d.ts +1 -1
  1405. package/types/modules/file-browser/ui/files/files.d.ts +1 -1
  1406. package/types/modules/file-browser/ui/index.d.ts +1 -1
  1407. package/types/modules/file-browser/ui/tree/tree.d.ts +1 -1
  1408. package/types/modules/history/command.d.ts +1 -1
  1409. package/types/modules/history/history.d.ts +1 -1
  1410. package/types/modules/history/snapshot.d.ts +1 -1
  1411. package/types/modules/history/stack.d.ts +1 -1
  1412. package/types/modules/image-editor/config.d.ts +1 -1
  1413. package/types/modules/image-editor/image-editor.d.ts +1 -1
  1414. package/types/modules/image-editor/templates/form.d.ts +1 -1
  1415. package/types/modules/index.d.ts +2 -1
  1416. package/types/modules/messages/message.d.ts +1 -1
  1417. package/types/modules/messages/messages.d.ts +1 -1
  1418. package/types/modules/status-bar/status-bar.d.ts +1 -1
  1419. package/types/modules/table/table.d.ts +1 -1
  1420. package/types/modules/toolbar/button/button.d.ts +1 -1
  1421. package/types/modules/toolbar/button/content.d.ts +1 -1
  1422. package/types/modules/toolbar/button/index.d.ts +1 -1
  1423. package/types/modules/toolbar/button/select/select.d.ts +1 -1
  1424. package/types/modules/toolbar/collection/collection.d.ts +1 -1
  1425. package/types/modules/toolbar/collection/editor-collection.d.ts +1 -1
  1426. package/types/modules/toolbar/factory.d.ts +1 -1
  1427. package/types/modules/uploader/config.d.ts +1 -1
  1428. package/types/modules/uploader/helpers/build-data.d.ts +1 -1
  1429. package/types/modules/uploader/helpers/data-uri-to-blob.d.ts +1 -1
  1430. package/types/modules/uploader/helpers/index.d.ts +1 -1
  1431. package/types/modules/uploader/helpers/process-old-browser-drag.d.ts +1 -1
  1432. package/types/modules/uploader/helpers/send-files.d.ts +1 -1
  1433. package/types/modules/uploader/helpers/send.d.ts +1 -1
  1434. package/types/modules/uploader/uploader.d.ts +3 -2
  1435. package/types/modules/widget/color-picker/color-picker.d.ts +1 -1
  1436. package/types/modules/widget/file-selector/file-selector.d.ts +1 -1
  1437. package/types/modules/widget/index.d.ts +1 -1
  1438. package/types/modules/widget/tabs/tabs.d.ts +1 -1
  1439. package/types/plugins/about/about.d.ts +1 -1
  1440. package/types/plugins/add-new-line/add-new-line.d.ts +1 -1
  1441. package/types/plugins/add-new-line/config.d.ts +1 -1
  1442. package/types/plugins/ai-assistant/ai-assistant.d.ts +1 -1
  1443. package/types/plugins/ai-assistant/config.d.ts +31 -1
  1444. package/types/plugins/ai-assistant/interface.d.ts +1 -1
  1445. package/types/plugins/ai-assistant/langs/index.d.ts +1 -1
  1446. package/types/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +1 -1
  1447. package/types/plugins/backspace/backspace.d.ts +1 -1
  1448. package/types/plugins/backspace/cases/check-join-neighbors.d.ts +1 -1
  1449. package/types/plugins/backspace/cases/check-join-two-lists.d.ts +1 -1
  1450. package/types/plugins/backspace/cases/check-not-collapsed.d.ts +1 -1
  1451. package/types/plugins/backspace/cases/check-remove-char.d.ts +1 -1
  1452. package/types/plugins/backspace/cases/check-remove-content-not-editable.d.ts +1 -1
  1453. package/types/plugins/backspace/cases/check-remove-empty-neighbor.d.ts +1 -1
  1454. package/types/plugins/backspace/cases/check-remove-empty-parent.d.ts +1 -1
  1455. package/types/plugins/backspace/cases/check-remove-unbreakable-element.d.ts +1 -1
  1456. package/types/plugins/backspace/cases/check-table-cell.d.ts +1 -1
  1457. package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
  1458. package/types/plugins/backspace/cases/index.d.ts +1 -1
  1459. package/types/plugins/backspace/config.d.ts +1 -1
  1460. package/types/plugins/backspace/helpers.d.ts +1 -1
  1461. package/types/plugins/backspace/interface.d.ts +1 -1
  1462. package/types/plugins/bold/bold.d.ts +1 -1
  1463. package/types/plugins/bold/config.d.ts +1 -1
  1464. package/types/plugins/bold/interface.d.ts +1 -1
  1465. package/types/plugins/class-span/class-span.d.ts +1 -1
  1466. package/types/plugins/clean-html/clean-html.d.ts +1 -1
  1467. package/types/plugins/clean-html/config.d.ts +1 -1
  1468. package/types/plugins/clean-html/helpers/get-hash.d.ts +1 -1
  1469. package/types/plugins/clean-html/helpers/index.d.ts +1 -1
  1470. package/types/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +1 -1
  1471. package/types/plugins/clean-html/helpers/remove-format/remove-format-for-selection.d.ts +1 -1
  1472. package/types/plugins/clean-html/helpers/visitor/filters/allow-attributes.d.ts +1 -1
  1473. package/types/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.d.ts +1 -1
  1474. package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +1 -1
  1475. package/types/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.d.ts +1 -1
  1476. package/types/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.d.ts +1 -1
  1477. package/types/plugins/clean-html/helpers/visitor/filters/replace-old-tags.d.ts +1 -1
  1478. package/types/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.d.ts +1 -1
  1479. package/types/plugins/clean-html/helpers/visitor/filters/try-remove-node.d.ts +1 -1
  1480. package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
  1481. package/types/plugins/clipboard/clipboard.d.ts +1 -1
  1482. package/types/plugins/clipboard/config.d.ts +1 -1
  1483. package/types/plugins/color/color.d.ts +1 -1
  1484. package/types/plugins/color/config.d.ts +1 -1
  1485. package/types/plugins/copy-format/copy-format.d.ts +1 -1
  1486. package/types/plugins/copy-format/langs/index.d.ts +1 -1
  1487. package/types/plugins/debug/debug.d.ts +1 -1
  1488. package/types/plugins/delete/delete.d.ts +1 -1
  1489. package/types/plugins/delete/interface.d.ts +1 -1
  1490. package/types/plugins/drag-and-drop/drag-and-drop.d.ts +1 -1
  1491. package/types/plugins/drag-and-drop-element/config.d.ts +1 -1
  1492. package/types/plugins/drag-and-drop-element/drag-and-drop-element.d.ts +1 -1
  1493. package/types/plugins/dtd/after-insert/index.d.ts +1 -1
  1494. package/types/plugins/dtd/after-insert/remove-extra-br.d.ts +1 -1
  1495. package/types/plugins/dtd/before-insert/check-block-nesting.d.ts +1 -1
  1496. package/types/plugins/dtd/before-insert/index.d.ts +1 -1
  1497. package/types/plugins/dtd/config.d.ts +1 -1
  1498. package/types/plugins/dtd/dtd.d.ts +1 -1
  1499. package/types/plugins/enter/enter.d.ts +1 -1
  1500. package/types/plugins/enter/helpers/check-br.d.ts +1 -1
  1501. package/types/plugins/enter/helpers/check-unsplittable-box.d.ts +1 -1
  1502. package/types/plugins/enter/helpers/get-block-wrapper.d.ts +1 -1
  1503. package/types/plugins/enter/helpers/has-previous-block.d.ts +1 -1
  1504. package/types/plugins/enter/helpers/index.d.ts +1 -1
  1505. package/types/plugins/enter/helpers/insert-paragraph.d.ts +1 -1
  1506. package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
  1507. package/types/plugins/enter/helpers/process-empty-li-leaf.d.ts +1 -1
  1508. package/types/plugins/enter/helpers/split-fragment.d.ts +1 -1
  1509. package/types/plugins/enter/helpers/wrap-text.d.ts +1 -1
  1510. package/types/plugins/enter/interface.d.ts +1 -1
  1511. package/types/plugins/file/file.d.ts +1 -1
  1512. package/types/plugins/focus/focus.d.ts +1 -1
  1513. package/types/plugins/font/config.d.ts +1 -1
  1514. package/types/plugins/font/font.d.ts +1 -1
  1515. package/types/plugins/format-block/config.d.ts +1 -1
  1516. package/types/plugins/format-block/format-block.d.ts +1 -1
  1517. package/types/plugins/fullsize/config.d.ts +1 -1
  1518. package/types/plugins/fullsize/fullsize.d.ts +1 -1
  1519. package/types/plugins/hotkeys/config.d.ts +1 -1
  1520. package/types/plugins/hotkeys/hotkeys.d.ts +1 -1
  1521. package/types/plugins/hr/hr.d.ts +1 -1
  1522. package/types/plugins/iframe/config.d.ts +1 -1
  1523. package/types/plugins/iframe/iframe.d.ts +1 -1
  1524. package/types/plugins/image/image.d.ts +1 -1
  1525. package/types/plugins/image-processor/config.d.ts +1 -1
  1526. package/types/plugins/image-processor/image-processor.d.ts +1 -1
  1527. package/types/plugins/image-properties/config.d.ts +1 -1
  1528. package/types/plugins/image-properties/image-properties.d.ts +1 -1
  1529. package/types/plugins/image-properties/interface.d.ts +1 -1
  1530. package/types/plugins/image-properties/readers/align.d.ts +1 -1
  1531. package/types/plugins/image-properties/readers/index.d.ts +1 -1
  1532. package/types/plugins/image-properties/readers/link.d.ts +1 -1
  1533. package/types/plugins/image-properties/readers/margin.d.ts +1 -1
  1534. package/types/plugins/image-properties/readers/size.d.ts +1 -1
  1535. package/types/plugins/image-properties/ui/ui-image-form.d.ts +1 -1
  1536. package/types/plugins/image-properties/ui/ui-image-main-tab.d.ts +1 -1
  1537. package/types/plugins/image-properties/ui/ui-image-position-tab.d.ts +1 -1
  1538. package/types/plugins/image-properties/utils/open-image-editor.d.ts +1 -1
  1539. package/types/plugins/image-properties/utils/open-image-popup.d.ts +1 -1
  1540. package/types/plugins/image-properties/utils/utils.d.ts +1 -1
  1541. package/types/plugins/image-properties/writers/index.d.ts +1 -1
  1542. package/types/plugins/image-properties/writers/link.d.ts +1 -1
  1543. package/types/plugins/image-properties/writers/margin.d.ts +1 -1
  1544. package/types/plugins/image-properties/writers/size.d.ts +1 -1
  1545. package/types/plugins/indent/config.d.ts +1 -1
  1546. package/types/plugins/indent/helpers.d.ts +1 -1
  1547. package/types/plugins/indent/indent.d.ts +1 -1
  1548. package/types/plugins/index.d.ts +1 -1
  1549. package/types/plugins/inline-popup/config/config.d.ts +1 -1
  1550. package/types/plugins/inline-popup/config/items/a.d.ts +1 -1
  1551. package/types/plugins/inline-popup/config/items/cells.d.ts +1 -1
  1552. package/types/plugins/inline-popup/config/items/iframe.d.ts +1 -1
  1553. package/types/plugins/inline-popup/config/items/img.d.ts +1 -1
  1554. package/types/plugins/inline-popup/config/items/toolbar.d.ts +1 -1
  1555. package/types/plugins/inline-popup/inline-popup.d.ts +1 -1
  1556. package/types/plugins/justify/justify.d.ts +1 -1
  1557. package/types/plugins/key-arrow-outside/key-arrow-outside.d.ts +1 -1
  1558. package/types/plugins/limit/config.d.ts +1 -1
  1559. package/types/plugins/limit/limit.d.ts +1 -1
  1560. package/types/plugins/line-height/config.d.ts +1 -1
  1561. package/types/plugins/line-height/langs/index.d.ts +1 -1
  1562. package/types/plugins/line-height/line-height.d.ts +1 -1
  1563. package/types/plugins/link/config.d.ts +1 -1
  1564. package/types/plugins/link/link.d.ts +1 -1
  1565. package/types/plugins/link/template.d.ts +1 -1
  1566. package/types/plugins/media/config.d.ts +1 -1
  1567. package/types/plugins/media/media.d.ts +1 -1
  1568. package/types/plugins/mobile/config.d.ts +1 -1
  1569. package/types/plugins/mobile/mobile.d.ts +1 -1
  1570. package/types/plugins/ordered-list/config.d.ts +1 -1
  1571. package/types/plugins/ordered-list/ordered-list.d.ts +1 -1
  1572. package/types/plugins/paste/config.d.ts +1 -1
  1573. package/types/plugins/paste/helpers.d.ts +1 -1
  1574. package/types/plugins/paste/interface.d.ts +1 -1
  1575. package/types/plugins/paste/paste.d.ts +1 -1
  1576. package/types/plugins/paste-from-word/config.d.ts +1 -1
  1577. package/types/plugins/paste-from-word/paste-from-word.d.ts +1 -1
  1578. package/types/plugins/paste-storage/paste-storage.d.ts +1 -1
  1579. package/types/plugins/placeholder/config.d.ts +1 -1
  1580. package/types/plugins/placeholder/placeholder.d.ts +1 -1
  1581. package/types/plugins/powered-by-jodit/powered-by-jodit.d.ts +1 -1
  1582. package/types/plugins/preview/preview.d.ts +1 -1
  1583. package/types/plugins/print/lib/generate-critical-css.d.ts +1 -1
  1584. package/types/plugins/print/print.d.ts +1 -1
  1585. package/types/plugins/redo-undo/redo-undo.d.ts +1 -1
  1586. package/types/plugins/resize-cells/config.d.ts +1 -1
  1587. package/types/plugins/resize-cells/resize-cells.d.ts +1 -1
  1588. package/types/plugins/resize-handler/config.d.ts +1 -1
  1589. package/types/plugins/resize-handler/resize-handler.d.ts +1 -1
  1590. package/types/plugins/resizer/config.d.ts +1 -1
  1591. package/types/plugins/resizer/resizer.d.ts +1 -1
  1592. package/types/plugins/search/config.d.ts +1 -1
  1593. package/types/plugins/search/helpers/highlight-text-ranges.d.ts +1 -1
  1594. package/types/plugins/search/helpers/index.d.ts +1 -1
  1595. package/types/plugins/search/helpers/sentence-finder.d.ts +1 -1
  1596. package/types/plugins/search/interface.d.ts +1 -1
  1597. package/types/plugins/search/search.d.ts +1 -1
  1598. package/types/plugins/search/ui/search.d.ts +1 -1
  1599. package/types/plugins/select/config.d.ts +1 -1
  1600. package/types/plugins/select/select.d.ts +1 -1
  1601. package/types/plugins/select-cells/config.d.ts +1 -1
  1602. package/types/plugins/select-cells/select-cells.d.ts +1 -1
  1603. package/types/plugins/size/config.d.ts +1 -1
  1604. package/types/plugins/size/size.d.ts +1 -1
  1605. package/types/plugins/source/config.d.ts +1 -1
  1606. package/types/plugins/source/editor/engines/ace.d.ts +1 -1
  1607. package/types/plugins/source/editor/engines/area.d.ts +1 -1
  1608. package/types/plugins/source/editor/engines/index.d.ts +1 -1
  1609. package/types/plugins/source/editor/factory.d.ts +1 -1
  1610. package/types/plugins/source/editor/sourceEditor.d.ts +1 -1
  1611. package/types/plugins/source/source.d.ts +1 -1
  1612. package/types/plugins/speech-recognize/config.d.ts +1 -1
  1613. package/types/plugins/speech-recognize/constants.d.ts +1 -1
  1614. package/types/plugins/speech-recognize/helpers/api.d.ts +1 -1
  1615. package/types/plugins/speech-recognize/helpers/exec-spell-command.d.ts +1 -1
  1616. package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
  1617. package/types/plugins/speech-recognize/helpers/sound.d.ts +1 -1
  1618. package/types/plugins/speech-recognize/interface.d.ts +1 -1
  1619. package/types/plugins/speech-recognize/langs/index.d.ts +1 -1
  1620. package/types/plugins/speech-recognize/speech-recognize.d.ts +1 -1
  1621. package/types/plugins/spellcheck/config.d.ts +1 -1
  1622. package/types/plugins/spellcheck/langs/index.d.ts +1 -1
  1623. package/types/plugins/spellcheck/spellcheck.d.ts +1 -1
  1624. package/types/plugins/stat/config.d.ts +1 -1
  1625. package/types/plugins/stat/stat.d.ts +1 -1
  1626. package/types/plugins/sticky/config.d.ts +1 -1
  1627. package/types/plugins/sticky/sticky.d.ts +1 -1
  1628. package/types/plugins/symbols/config.d.ts +1 -1
  1629. package/types/plugins/symbols/langs/index.d.ts +1 -1
  1630. package/types/plugins/symbols/symbols.d.ts +1 -1
  1631. package/types/plugins/tab/cases/index.d.ts +1 -1
  1632. package/types/plugins/tab/cases/on-tab-inside-li.d.ts +1 -1
  1633. package/types/plugins/tab/config.d.ts +1 -1
  1634. package/types/plugins/tab/tab.d.ts +1 -1
  1635. package/types/plugins/table/config.d.ts +1 -1
  1636. package/types/plugins/table/table.d.ts +1 -1
  1637. package/types/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +1 -1
  1638. package/types/plugins/video/config.d.ts +1 -1
  1639. package/types/plugins/video/video.d.ts +1 -1
  1640. package/types/plugins/wrap-nodes/config.d.ts +1 -1
  1641. package/types/plugins/wrap-nodes/wrap-nodes.d.ts +1 -1
  1642. package/types/plugins/xpath/config.d.ts +1 -1
  1643. package/types/plugins/xpath/xpath.d.ts +1 -1
  1644. package/types/styles/icons/index.d.ts +1 -1
  1645. package/types/types/ajax.d.ts +1 -1
  1646. package/types/types/async.d.ts +1 -1
  1647. package/types/types/context.d.ts +1 -1
  1648. package/types/types/core.d.ts +1 -1
  1649. package/types/types/create.d.ts +1 -1
  1650. package/types/types/dialog.d.ts +1 -1
  1651. package/types/types/events.d.ts +1 -1
  1652. package/types/types/file-browser.d.ts +1 -1
  1653. package/types/types/form.d.ts +1 -1
  1654. package/types/types/history.d.ts +1 -1
  1655. package/types/types/index.d.ts +1 -1
  1656. package/types/types/jodit.d.ts +8 -1
  1657. package/types/types/messages.d.ts +1 -1
  1658. package/types/types/plugin.d.ts +1 -1
  1659. package/types/types/popup.d.ts +1 -1
  1660. package/types/types/select.d.ts +1 -1
  1661. package/types/types/source.d.ts +1 -1
  1662. package/types/types/storage.d.ts +12 -4
  1663. package/types/types/style.d.ts +1 -1
  1664. package/types/types/toolbar.d.ts +1 -1
  1665. package/types/types/traits.d.ts +1 -1
  1666. package/types/types/types.d.ts +1 -1
  1667. package/types/types/ui.d.ts +2 -1
  1668. package/types/types/uploader.d.ts +2 -1
  1669. package/types/types/view.d.ts +5 -2
  1670. package/types/typings.d.ts +1 -1
  1671. package/esm/tsconfig.json +0 -47
  1672. package/types/tsconfig.json +0 -47
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.7.8
4
+ * Version: v4.8.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -13,10 +13,10 @@
13
13
  href="https://xdsoft.net/jodit/">
14
14
  Powered by Jodit
15
15
  </a>`),!0)})})},223:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg>'},421:function(t,e,i){"use strict";i.d(e,{getClassName:function(){return s},keepNames:function(){return n}});var o=i(91565);let n=new Map,s=t=>{if((0,o.isFunction)(t.className))return t.className();let e=t.constructor?.originalConstructor||t.constructor;if(n.has(e))return n.get(e);if(e.name)return e.name;let i=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=e.toString().match(i);return s?s[1]:""}},466:function(t,e,i){"use strict";var o=i(75711);e.default=[{name:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},o.align]},670:function(t,e,i){"use strict";i.d(e,{openImagePopup:function(){return a}});var o=i(17312),n=i(23599),s=i(51116),r=i(18762);function a(t,e,i,a){let l=new s.Popup(e),c=()=>{l.close(),l.destruct()};l.setContent((0,r.FileSelectorWidget)(t,{upload(t){t.files&&t.files.length&&(i.values.imageSrc=t.baseurl+t.files[0]),c()},async filebrowser(t){t&&(0,o.isArray)(t.files)&&t.files.length&&(i.values.imageSrc=t.files[0],c())}},i.image,c)).open(()=>(0,n.position)(a))}},928:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg>'},1080:function(t,e,i){"use strict";i.d(e,{LazyWalker:function(){return l}});var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(60216);class l extends a.Eventify{setWork(t){return this.isWorked&&this.break(),this.workNodes=r.Dom.eachGen(t,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}__workPerform(){if(this.workNodes){this.isWorked=!0;let t=0,e=this.options.timeoutChunkSize??50;for(;!this.isFinished&&t<=e;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){return!!t&&(void 0===this.options.whatToShow||t.nodeType===this.options.whatToShow)&&(this.emit("visit",t)??!1)}constructor(t,e={}){super(),(0,o._)(this,"async",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"workNodes",void 0),(0,o._)(this,"hadAffect",void 0),(0,o._)(this,"isWorked",void 0),(0,o._)(this,"isFinished",void 0),(0,o._)(this,"idleId",void 0),(0,o._)(this,"__schedulerController",void 0),this.async=t,this.options=e,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0,this.__schedulerController=null}}(0,n.__decorate)([s.autobind],l.prototype,"__workPerform",null)},1277:function(t,e,i){"use strict";i.d(e,{cleanFromWord:function(){return a}});var o=i(81937),n=i(23211),s=i(88475),r=i(4040);function a(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let e="";try{let i=o.globalDocument.createElement("div");i.innerHTML=t;let r=[];i.firstChild&&n.Dom.each(i,t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":r.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":n.Dom.unwrap(t);break;default:(0,s.toArray)(t.attributes).forEach(e=>{-1===["src","href","rel","content"].indexOf(e.name.toLowerCase())&&t.removeAttribute(e.name)})}break;case Node.TEXT_NODE:break;default:r.push(t)}}),n.Dom.safeRemove.apply(null,r),e=i.innerHTML}catch(t){}return e&&(t=e),(t=t.split(/(\n)/).filter(r.trim).join(`
16
- `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},1305:function(t,e,i){"use strict";function o(t,e,i){return t.dataProvider.fileRemove(t.state.currentPath,e,i).then(i=>{t.status(i||t.i18n('File "%s" was deleted',e),!0)}).catch(t.status)}i.d(e,{deleteFile:function(){return o}})},1488:function(t,e,i){"use strict";function o(t){return t.files.setMod("active",!0),t.files.setMod("loading",!0),t.dataProvider.items(t.state.currentPath,t.state.currentSource,{sortBy:t.state.sortBy,onlyImages:t.state.onlyImages,filterWord:t.state.filterWord}).then(e=>{e&&(t.state.elements=e,t.state.activeElements=[])}).catch(t.status).finally(()=>t.files.setMod("loading",!1))}i.d(e,{loadItems:function(){return o}})},1496:function(t,e,i){"use strict";i.d(e,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return r.EventHandlersStore},Eventify:function(){return n.Eventify},defaultNameSpace:function(){return r.defaultNameSpace},observable:function(){return s.observable}});var o=i(93747),n=i(60216),s=i(70535),r=i(18869)},1916:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="scale(1.2 1.2) translate(-2 -0.5)"> <path d="M 22,12.5 A 1.49995,1.49995 0 0 0 20.50006,11 H 20 V 10 A 3,3 0 0 0 17,7 H 13 V 5.7226 a 2,2 0 1 0 -2,0 V 7 H 7 a 3,3 0 0 0 -3,3 v 1 H 3.49994 a 1.5,1.5 0 0 0 0,3 H 4 v 1 A 3.00128,3.00128 0 0 0 6.20251,17.89282 1.03113,1.03113 0 0 1 7,18.86975 v 0.716 a 0.99928,0.99928 0 0 0 1.00726,1.002 0.9792,0.9792 0 0 0 0.69983,-0.29486 l 2,-2 A 1,1 0 0 1 11.41425,18 H 17 a 3,3 0 0 0 3,-3 v -1 h 0.50006 A 1.49995,1.49995 0 0 0 22,12.5 Z M 19,15 a 2.00226,2.00226 0 0 1 -2,2 H 11.41425 A 1.987,1.987 0 0 0 10,17.58575 l -2,2 v -0.716 A 2.02082,2.02082 0 0 0 6.46771,16.92865 2.00439,2.00439 0 0 1 5,15 V 10 A 2.00226,2.00226 0 0 1 7,8 h 10 a 2.00222,2.00222 0 0 1 2,2 z M 10,12.5 A 1.5,1.5 0 1 1 8.5,11 1.5,1.5 0 0 1 10,12.5 Z m 7,0 A 1.5,1.5 0 1 1 15.5,11 1.5,1.5 0 0 1 17,12.5 Z"/> </g> </svg>'},2222:function(t,e,i){"use strict";i.d(e,{ViewWithToolbar:function(){return g}});var o=i(25045),n=i(31635),s=i(69364),r=i(49574),a=i(68616),l=i(23211),c=i(45664),u=i(85932),h=i(28723),d=i(4099),f=i(2496),p=i(35099),m=i(4274);class g extends p.View{get toolbarContainer(){return!this.o.fullsize&&((0,u.isString)(this.o.toolbar)||l.Dom.isHTMLElement(this.o.toolbar))?(0,h.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od):(this.o.toolbar&&l.Dom.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer)}setPanel(t){this.o.toolbar=t,this.buildToolbar()}buildToolbar(){if(!this.o.toolbar)return;let t=this.o.buttons?(0,c.splitArray)(this.o.buttons):[];this.toolbar?.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(t){this.registeredButtons.add(t);let e=t.group??"other";return this.groupToButtons[e]||(this.groupToButtons[e]=[]),null!=t.position?this.groupToButtons[e][t.position]=t.name:this.groupToButtons[e].push(t.name),this}unregisterButton(t){this.registeredButtons.delete(t);let e=t.group??"other",i=this.groupToButtons[e];if(i){let o=i.indexOf(t.name);-1!==o&&i.splice(o,1),0===i.length&&delete this.groupToButtons[e]}return this}beforeToolbarBuild(t){if(Object.keys(this.groupToButtons).length)return t.map(t=>(0,f.isButtonGroup)(t)&&t.group&&this.groupToButtons[t.group]?{group:t.group,buttons:[...t.buttons,...this.groupToButtons[t.group]]}:t)}destruct(){this.isDestructed||(this.setStatus(s.STATUSES.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}constructor(t,e=!1){super(t,e),(0,o._)(this,"toolbar",(0,m.makeCollection)(this)),(0,o._)(this,"__defaultToolbarContainer",this.c.div("jodit-toolbar__box")),(0,o._)(this,"registeredButtons",new Set),(0,o._)(this,"groupToButtons",{}),(0,o._)(this,"isJodit",!1),(0,o._)(this,"__tooltip",new d.UITooltip(this)),this.isJodit=e,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}}(0,n.__decorate)([(0,a.watch)(":rebuildToolbar")],g.prototype,"buildToolbar",null),(0,n.__decorate)([r.autobind],g.prototype,"beforeToolbarBuild",null)},2409:function(t,e,i){"use strict";i.d(e,{checkRemoveEmptyParent:function(){return r}});var o=i(81937),n=i(27795),s=i(80951);function r(t,e,i){let r=!1,{setCursorBefore:a,setCursorIn:l}=t.s,c=n.Dom.closest(e,n.Dom.isElement,t.editor);if(!c||!n.Dom.isEmpty(c))return!1;let u=n.Dom.findNotEmptyNeighbor(e,i,t.editor);do if(c&&n.Dom.isEmpty(c)&&!n.Dom.isCell(c)){n.Dom.after(c,e);let i=n.Dom.closest(c,t=>n.Dom.isElement(t)&&t!==c,t.editor);n.Dom.safeRemove(c),r=!0,c=i}else break;while(c)return!!(r&&(0,s.checkJoinTwoLists)(t,e,i))||(!u||n.Dom.isText(u)||n.Dom.isTag(u,o.INSEPARABLE_TAGS)?a(e):l(u,!i),r)}},2496:function(t,e,i){"use strict";i.d(e,{flatButtonsSet:function(){return s},isButtonGroup:function(){return n}});var o=i(17312);let n=t=>(0,o.isArray)(t.buttons);function s(t,e){let i=e.getRegisteredButtonGroups();return new Set(t.reduce((t,e)=>(n(e)?t=t.concat([...e.buttons,...i[e.group]??[]]):t.push(e),t),[]))}},2602:function(t,e,i){"use strict";i.d(e,{UICheckbox:function(){return n.UICheckbox},UIFileInput:function(){return s.UIFileInput},UIInput:function(){return r.UIInput},UISelect:function(){return a.UISelect},UITextArea:function(){return o.UITextArea}});var o=i(87329),n=i(24641),s=i(75587),r=i(65273),a=i(49999)},2756:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(91206),h=i(98803);i(69070);let d="table_processor_observer",f="onMoveTableSelectCell";class p extends u.Plugin{get __tableModule(){return this.j.getInstance(h.Table,this.j.o)}afterInit(t){t.o.tableAllowCellSelection&&t.e.on("keydown.select-cells",t=>{t.key===s.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(t=>t+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{let t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&this.j.s.sel?.removeAllRanges(),!1})}onStartSelection(t){if(this.j.o.readonly||(this.unselectCells(),t===this.j.editor))return;let e=a.Dom.closest(t,"table",this.j.editor);if(t&&e)return t.firstChild||t.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.on(e,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,e),{label:f,timeout:this.j.defaultTimeout/2})).on(e,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,e)),!1}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(t,e){if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(d))return;let i=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!i)return;let o=a.Dom.closest(i,["td","th"],t);if(!o||!this.__selectedCell)return;o!==this.__selectedCell&&this.j.lock(d),this.unselectCells();let n=this.__tableModule.getSelectedBound(t,[o,this.__selectedCell]),s=this.__tableModule.formalMatrix(t);for(let t=n[0][0];t<=n[1][0];t+=1)for(let e=n[0][1];e<=n[1][1];e+=1)this.__tableModule.addSelection(s[t][e]);this.__tableModule.getAllSelectedCells().length>1&&this.j.s.sel?.removeAllRanges(),this.j.e.fire("hidePopup"),e.stopPropagation();let r=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>');o.appendChild(r),this.j.async.setTimeout(()=>{r.parentNode?.removeChild(r)},this.j.defaultTimeout/5)}__onRemoveSelection(t){if(!t?.buffer?.actionTrigger&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(t,e){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let i=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!i)return;let o=a.Dom.closest(i,["td","th"],t);if(!o)return;let n=a.Dom.closest(o,"table",t);if(n&&n!==t)return;let s=this.__tableModule.getSelectedBound(t,[o,this.__selectedCell]),r=this.__tableModule.formalMatrix(t),l=r[s[1][0]][s[1][1]],u=r[s[0][0]][s[0][1]];this.j.e.fire("showPopup",t,()=>{let t=(0,c.position)(u,this.j),e=(0,c.position)(l,this.j);return{left:t.left,top:t.top,width:e.left-t.left+e.width,height:e.top-t.top+e.height}},"cells"),(0,c.$$)("table",this.j.editor).forEach(t=>{this.j.e.off(t,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(f)}unselectCells(t){let e=this.__tableModule,i=e.getAllSelectedCells();i.length&&i.forEach(i=>{t&&t===i||e.removeSelection(i)})}onExecCommand(t){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");let e=this.__tableModule.getAllSelectedCells();if(e.length){let[i]=e;if(!i)return;let o=a.Dom.closest(i,"table",this.j.editor);if(!o)return;switch(t){case"splitv":this.__tableModule.splitVertical(o);break;case"splitg":this.__tableModule.splitHorizontal(o);break;case"merge":this.__tableModule.mergeSelected(o);break;case"empty":e.forEach(t=>a.Dom.detach(t));break;case"bin":a.Dom.safeRemove(o);break;case"binrow":new Set(e.map(t=>t.parentNode)).forEach(t=>{this.__tableModule.removeRow(o,t.rowIndex)});break;case"bincolumn":{let t=new Set;e.reduce((e,i)=>(t.has(i.cellIndex)||(e.push(i),t.add(i.cellIndex)),e),[]).forEach(t=>{this.__tableModule.removeColumn(o,t.cellIndex)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(o,i,"addcolumnafter"===t);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(o,i.parentNode,"addrowafter"===t)}}return!1}}onAfterCommand(t){/^justify/.test(t)&&this.__tableModule.getAllSelectedCells().forEach(e=>(0,c.alignElement)(t,e))}beforeDestruct(t){this.__onRemoveSelection(),t.e.off(".select-cells")}constructor(...t){super(...t),(0,o._)(this,"__selectedCell",null),(0,o._)(this,"__isSelectionMode",!1)}}(0,o._)(p,"requires",["select"]),(0,n.__decorate)([r.autobind],p.prototype,"onStartSelection",null),(0,n.__decorate)([(0,r.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,n.__decorate)([(0,r.watch)(":change")],p.prototype,"onChange",null),(0,n.__decorate)([r.autobind],p.prototype,"__onRemoveSelection",null),(0,n.__decorate)([r.autobind],p.prototype,"__onStopSelection",null),(0,n.__decorate)([r.autobind],p.prototype,"onExecCommand",null),(0,n.__decorate)([r.autobind],p.prototype,"onAfterCommand",null),l.pluginSystem.add("selectCells",p)},2923:function(t,e,i){"use strict";i.d(e,{onTabInsideLi:function(){return o.onTabInsideLi}});var o=i(8837)},2952:function(t,e,i){"use strict";var o=i(27795),n=i(28077),s=i(29434),r=i(5266),a=i(89097),l=i.n(a);s.Icon.set("hr",l()),r.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},n.pluginSystem.add("hr",function(t){t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",()=>{let e=t.createInside.element("hr");t.s.insertNode(e,!1,!1);let i=o.Dom.closest(e.parentElement,o.Dom.isBlock,t.editor);i&&o.Dom.isEmpty(i)&&i!==t.editor&&(o.Dom.after(i,e),o.Dom.safeRemove(i));let n=o.Dom.next(e,o.Dom.isBlock,t.editor,!1);return n||(n=t.createInside.element(t.o.enter),o.Dom.after(e,n)),t.s.setCursorIn(n),!1})})},3050:function(t,e,i){"use strict";i.d(e,{loadExtras:function(){return u},loadStyle:function(){return l}});var o=i(81937),n=i(74264),s=i(47760),r=i(86189);let a=new Set;async function l(t,e){let i=c(t,e,!1);if(!a.has(i))return a.add(i),(0,s.appendStyleAsync)(t,i)}function c(t,e,i){e=(0,n.kebabCase)(e);let o=t.minified?".min":"";return t.basePath+"plugins/"+e+"/"+e+o+"."+(i?"js":"css")}function u(t,e,i,n){try{let o=i.filter(e=>!t.has((0,r.normalizeName)(e.name)));o.length&&o.map(t=>{let i=t.url||c(e,t.name,!0);return(0,s.appendScriptAsync)(e,i).then(n).catch(()=>null)})}catch(t){if(!o.IS_PROD)throw t}}},3213:function(t,e,i){"use strict";i.d(e,{isSet:function(){return n}});var o=i(91565);function n(t){return!!t&&(0,o.isFunction)(t.has)&&(0,o.isFunction)(t.add)&&(0,o.isFunction)(t.delete)}},3244:function(t,e,i){"use strict";var o=i(81937),n=i(65946),s=i(5266),r=i(42573),a=i(4274);s.Config.prototype.mobileTapTimeout=300,s.Config.prototype.toolbarAdaptive=!0,s.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},`
16
+ `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},1305:function(t,e,i){"use strict";function o(t,e,i){return t.dataProvider.fileRemove(t.state.currentPath,e,i).then(i=>{t.status(i||t.i18n('File "%s" was deleted',e),!0)}).catch(t.status)}i.d(e,{deleteFile:function(){return o}})},1488:function(t,e,i){"use strict";function o(t){return t.files.setMod("active",!0),t.files.setMod("loading",!0),t.dataProvider.items(t.state.currentPath,t.state.currentSource,{sortBy:t.state.sortBy,onlyImages:t.state.onlyImages,filterWord:t.state.filterWord}).then(e=>{e&&(t.state.elements=e,t.state.activeElements=[])}).catch(t.status).finally(()=>t.files.setMod("loading",!1))}i.d(e,{loadItems:function(){return o}})},1496:function(t,e,i){"use strict";i.d(e,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return r.EventHandlersStore},Eventify:function(){return n.Eventify},defaultNameSpace:function(){return r.defaultNameSpace},observable:function(){return s.observable}});var o=i(93747),n=i(60216),s=i(70535),r=i(18869)},1916:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="scale(1.2 1.2) translate(-2 -0.5)"> <path d="M 22,12.5 A 1.49995,1.49995 0 0 0 20.50006,11 H 20 V 10 A 3,3 0 0 0 17,7 H 13 V 5.7226 a 2,2 0 1 0 -2,0 V 7 H 7 a 3,3 0 0 0 -3,3 v 1 H 3.49994 a 1.5,1.5 0 0 0 0,3 H 4 v 1 A 3.00128,3.00128 0 0 0 6.20251,17.89282 1.03113,1.03113 0 0 1 7,18.86975 v 0.716 a 0.99928,0.99928 0 0 0 1.00726,1.002 0.9792,0.9792 0 0 0 0.69983,-0.29486 l 2,-2 A 1,1 0 0 1 11.41425,18 H 17 a 3,3 0 0 0 3,-3 v -1 h 0.50006 A 1.49995,1.49995 0 0 0 22,12.5 Z M 19,15 a 2.00226,2.00226 0 0 1 -2,2 H 11.41425 A 1.987,1.987 0 0 0 10,17.58575 l -2,2 v -0.716 A 2.02082,2.02082 0 0 0 6.46771,16.92865 2.00439,2.00439 0 0 1 5,15 V 10 A 2.00226,2.00226 0 0 1 7,8 h 10 a 2.00222,2.00222 0 0 1 2,2 z M 10,12.5 A 1.5,1.5 0 1 1 8.5,11 1.5,1.5 0 0 1 10,12.5 Z m 7,0 A 1.5,1.5 0 1 1 15.5,11 1.5,1.5 0 0 1 17,12.5 Z"/> </g> </svg>'},2222:function(t,e,i){"use strict";i.d(e,{ViewWithToolbar:function(){return g}});var o=i(25045),n=i(31635),s=i(69364),r=i(49574),a=i(68616),l=i(23211),c=i(45664),u=i(85932),h=i(28723),d=i(4099),f=i(2496),p=i(35099),m=i(4274);class g extends p.View{get toolbarContainer(){return!this.o.fullsize&&((0,u.isString)(this.o.toolbar)||l.Dom.isHTMLElement(this.o.toolbar))?(0,h.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od):(this.o.toolbar&&l.Dom.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer)}setPanel(t){this.o.toolbar=t,this.buildToolbar()}buildToolbar(){if(!this.o.toolbar)return;let t=this.o.buttons?(0,c.splitArray)(this.o.buttons):[];this.toolbar?.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(t){this.registeredButtons.add(t);let e=t.group??"other";return this.groupToButtons[e]||(this.groupToButtons[e]=[]),null!=t.position?this.groupToButtons[e][t.position]=t.name:this.groupToButtons[e].push(t.name),this}unregisterButton(t){this.registeredButtons.delete(t);let e=t.group??"other",i=this.groupToButtons[e];if(i){let o=i.indexOf(t.name);-1!==o&&i.splice(o,1),0===i.length&&delete this.groupToButtons[e]}return this}beforeToolbarBuild(t){if(Object.keys(this.groupToButtons).length)return t.map(t=>(0,f.isButtonGroup)(t)&&t.group&&this.groupToButtons[t.group]?{group:t.group,buttons:[...t.buttons,...this.groupToButtons[t.group]]}:t)}destruct(){this.isDestructed||(this.setStatus(s.STATUSES.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}constructor(t,e=!1){super(t,e),(0,o._)(this,"toolbar",(0,m.makeCollection)(this)),(0,o._)(this,"__defaultToolbarContainer",this.c.div("jodit-toolbar__box")),(0,o._)(this,"registeredButtons",new Set),(0,o._)(this,"groupToButtons",{}),(0,o._)(this,"isJodit",!1),(0,o._)(this,"__tooltip",new d.UITooltip(this)),this.isJodit=e,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}}(0,n.__decorate)([(0,a.watch)(":rebuildToolbar")],g.prototype,"buildToolbar",null),(0,n.__decorate)([r.autobind],g.prototype,"beforeToolbarBuild",null)},2409:function(t,e,i){"use strict";i.d(e,{checkRemoveEmptyParent:function(){return r}});var o=i(81937),n=i(27795),s=i(80951);function r(t,e,i){let r=!1,{setCursorBefore:a,setCursorIn:l}=t.s,c=n.Dom.closest(e,n.Dom.isElement,t.editor);if(!c||!n.Dom.isEmpty(c))return!1;let u=n.Dom.findNotEmptyNeighbor(e,i,t.editor);do if(c&&n.Dom.isEmpty(c)&&!n.Dom.isCell(c)){n.Dom.after(c,e);let i=n.Dom.closest(c,t=>n.Dom.isElement(t)&&t!==c,t.editor);n.Dom.safeRemove(c),r=!0,c=i}else break;while(c)return!!(r&&(0,s.checkJoinTwoLists)(t,e,i))||(!u||n.Dom.isText(u)||n.Dom.isTag(u,o.INSEPARABLE_TAGS)?a(e):l(u,!i),r)}},2496:function(t,e,i){"use strict";i.d(e,{flatButtonsSet:function(){return s},isButtonGroup:function(){return n}});var o=i(17312);let n=t=>(0,o.isArray)(t.buttons);function s(t,e){let i=e.getRegisteredButtonGroups();return new Set(t.reduce((t,e)=>(n(e)?t=t.concat([...e.buttons,...i[e.group]??[]]):t.push(e),t),[]))}},2602:function(t,e,i){"use strict";i.d(e,{UICheckbox:function(){return n.UICheckbox},UIFileInput:function(){return s.UIFileInput},UIInput:function(){return r.UIInput},UISelect:function(){return a.UISelect},UITextArea:function(){return o.UITextArea}});var o=i(87329),n=i(24641),s=i(75587),r=i(65273),a=i(49999)},2756:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(91206),h=i(98803);i(69070);let d="table_processor_observer",f="onMoveTableSelectCell";class p extends u.Plugin{get __tableModule(){return this.j.getInstance(h.Table,this.j.o)}afterInit(t){t.o.tableAllowCellSelection&&t.e.on("keydown.select-cells",t=>{t.key===s.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(t=>t+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{let t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&this.j.s.sel?.removeAllRanges(),!1})}onStartSelection(t){if(this.j.o.readonly||(this.unselectCells(),t===this.j.editor))return;let e=a.Dom.closest(t,"table",this.j.editor);if(t&&e)return t.firstChild||t.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.on(e,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,e),{label:f,timeout:this.j.defaultTimeout/2})).on(e,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,e)),!1}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(t,e){let i;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(d))return;let o=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!o)return;let n=a.Dom.closest(o,["td","th"],t);if(!n||!this.__selectedCell)return;n!==this.__selectedCell&&this.j.lock(d),this.unselectCells();let s=this.__tableModule.getSelectedBound(t,[n,this.__selectedCell]),r=this.__tableModule.formalMatrix(t);for(let t=s[0][0];t<=s[1][0];t+=1)for(let e=s[0][1];e<=s[1][1];e+=1)this.__tableModule.addSelection(r[t][e]);this.__tableModule.getAllSelectedCells().length>1&&this.j.s.sel?.removeAllRanges(),this.j.e.fire("hidePopup"),e.stopPropagation(),i=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>'),n.appendChild(i),this.j.async.setTimeout(()=>{i.parentNode?.removeChild(i)},this.j.defaultTimeout/5)}__onRemoveSelection(t){if(!t?.buffer?.actionTrigger&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(t,e){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let i=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!i)return;let o=a.Dom.closest(i,["td","th"],t);if(!o)return;let n=a.Dom.closest(o,"table",t);if(n&&n!==t)return;let s=this.__tableModule.getSelectedBound(t,[o,this.__selectedCell]),r=this.__tableModule.formalMatrix(t),l=r[s[1][0]][s[1][1]],u=r[s[0][0]][s[0][1]];this.j.e.fire("showPopup",t,()=>{let t=(0,c.position)(u,this.j),e=(0,c.position)(l,this.j);return{left:t.left,top:t.top,width:e.left-t.left+e.width,height:e.top-t.top+e.height}},"cells"),(0,c.$$)("table",this.j.editor).forEach(t=>{this.j.e.off(t,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(f)}unselectCells(t){let e=this.__tableModule,i=e.getAllSelectedCells();i.length&&i.forEach(i=>{t&&t===i||e.removeSelection(i)})}onExecCommand(t){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");let e=this.__tableModule.getAllSelectedCells();if(e.length){let[i]=e;if(!i)return;let o=a.Dom.closest(i,"table",this.j.editor);if(!o)return;switch(t){case"splitv":this.__tableModule.splitVertical(o);break;case"splitg":this.__tableModule.splitHorizontal(o);break;case"merge":this.__tableModule.mergeSelected(o);break;case"empty":e.forEach(t=>a.Dom.detach(t));break;case"bin":a.Dom.safeRemove(o);break;case"binrow":new Set(e.map(t=>t.parentNode)).forEach(t=>{this.__tableModule.removeRow(o,t.rowIndex)});break;case"bincolumn":{let t=new Set;e.reduce((e,i)=>(t.has(i.cellIndex)||(e.push(i),t.add(i.cellIndex)),e),[]).forEach(t=>{this.__tableModule.removeColumn(o,t.cellIndex)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(o,i,"addcolumnafter"===t);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(o,i.parentNode,"addrowafter"===t)}}return!1}}onAfterCommand(t){/^justify/.test(t)&&this.__tableModule.getAllSelectedCells().forEach(e=>(0,c.alignElement)(t,e))}beforeDestruct(t){this.__onRemoveSelection(),t.e.off(".select-cells")}constructor(...t){super(...t),(0,o._)(this,"__selectedCell",null),(0,o._)(this,"__isSelectionMode",!1)}}(0,o._)(p,"requires",["select"]),(0,n.__decorate)([r.autobind],p.prototype,"onStartSelection",null),(0,n.__decorate)([(0,r.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,n.__decorate)([(0,r.watch)(":change")],p.prototype,"onChange",null),(0,n.__decorate)([r.autobind],p.prototype,"__onRemoveSelection",null),(0,n.__decorate)([r.autobind],p.prototype,"__onStopSelection",null),(0,n.__decorate)([r.autobind],p.prototype,"onExecCommand",null),(0,n.__decorate)([r.autobind],p.prototype,"onAfterCommand",null),l.pluginSystem.add("selectCells",p)},2923:function(t,e,i){"use strict";i.d(e,{onTabInsideLi:function(){return o.onTabInsideLi}});var o=i(8837)},2952:function(t,e,i){"use strict";var o=i(27795),n=i(28077),s=i(29434),r=i(5266),a=i(89097),l=i.n(a);s.Icon.set("hr",l()),r.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},n.pluginSystem.add("hr",function(t){t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",()=>{let e=t.createInside.element("hr");t.s.insertNode(e,!1,!1);let i=o.Dom.closest(e.parentElement,o.Dom.isBlock,t.editor);i&&o.Dom.isEmpty(i)&&i!==t.editor&&(o.Dom.after(i,e),o.Dom.safeRemove(i));let n=o.Dom.next(e,o.Dom.isBlock,t.editor,!1);return n||(n=t.createInside.element(t.o.enter),o.Dom.after(e,n)),t.s.setCursorIn(n),!1})})},3050:function(t,e,i){"use strict";i.d(e,{loadExtras:function(){return u},loadStyle:function(){return l}});var o=i(81937),n=i(74264),s=i(47760),r=i(86189);let a=new Set;async function l(t,e){let i=c(t,e,!1);if(!a.has(i))return a.add(i),(0,s.appendStyleAsync)(t,i)}function c(t,e,i){e=(0,n.kebabCase)(e);let o=t.minified?".min":"";return t.basePath+"plugins/"+e+"/"+e+o+"."+(i?"js":"css")}function u(t,e,i,n){try{let o=i.filter(e=>!t.has((0,r.normalizeName)(e.name)));o.length&&o.map(t=>{let i=t.url||c(e,t.name,!0);return(0,s.appendScriptAsync)(e,i).then(n).catch(()=>null)})}catch(t){if(!o.IS_PROD)throw t}}},3213:function(t,e,i){"use strict";i.d(e,{isSet:function(){return n}});var o=i(91565);function n(t){return!!t&&(0,o.isFunction)(t.has)&&(0,o.isFunction)(t.add)&&(0,o.isFunction)(t.delete)}},3244:function(t,e,i){"use strict";var o=i(81937),n=i(65946),s=i(5266),r=i(42573),a=i(4274);s.Config.prototype.mobileTapTimeout=300,s.Config.prototype.toolbarAdaptive=!0,s.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},`
17
17
  `,{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],s.Config.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},`
18
18
  `,{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],s.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],s.Config.prototype.controls.dots={mode:o.MODE_SOURCE+o.MODE_WYSIWYG,popup(t,e,i,o){let s=o.control.data;return void 0===s&&(s={toolbar:(0,a.makeCollection)(t),rebuild(){if(o){let e=t.e.fire("getDiffButtons.mobile",o.closest(r.ToolbarCollection));if(e&&s){s.toolbar.build((0,n.splitArray)(e));let i=t.toolbar?.firstButton?.container.offsetWidth||36;s.toolbar.container.style.width=(i+4)*3+"px"}}}},o.control.data=s),s.rebuild(),s.toolbar},tooltip:"Show all"}},3347:function(t,e,i){"use strict";function o(t,e={}){if("object"!=typeof t)return t+"";let i=new Set(e.excludeKeys),n=new WeakMap;return JSON.stringify(t,(t,e)=>{if(!i.has(t)){if("object"==typeof e&&null!=e){if(n.get(e))return"[refObject]";n.set(e,!0)}return e}},e.prettify)}i.d(e,{stringify:function(){return o}})},3513:function(t,e,i){"use strict";function o(t){return null!=t&&t===t.window}i.d(e,{isWindow:function(){return o}})},3678:function(t,e,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(23211),a=i(28077),l=i(22289),c=i(18855),u=i(10918);class h extends c.Plugin{afterInit(t){let e=t.o.enter.toLowerCase(),i=e===n.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=i?n.PARAGRAPH:e),t.registerCommand("enter",(t,e,i={})=>this.onEnter(i))}onEnterKeyDown(t){if(t.key===n.KEY_ENTER){let e=this.j,i=e.e.fire("beforeEnter",t);return void 0!==i?i:(e.s.isCollapsed()||e.execCommand("Delete"),e.s.focus(),this.onEnter(t),e.e.fire("afterEnter",t),e.synchronizeValues(),!1)}}onEnter(t){let{jodit:e}=this,i=e.createInside.fake();try{r.Dom.safeInsertNode(e.s.range,i),(0,u.moveCursorOutFromSpecialTags)(e,i,["a"]);let o=(0,u.getBlockWrapper)(i,e),n=r.Dom.isLeaf(o);if((!n||t?.shiftKey)&&(0,u.checkBR)(i,e,t?.shiftKey))return!1;if(o||(0,u.hasPreviousBlock)(i,e)||(o=(0,u.wrapText)(i,e)),!o)return(0,u.insertParagraph)(i,e,n?"li":e.o.enter),!1;if(!(0,u.checkUnsplittableBox)(i,e,o))return!1;if(n&&this.__isEmptyListLeaf(o))return(0,u.processEmptyLILeaf)(i,e,o),!1;(0,u.splitFragment)(i,e,o)}finally{i.isConnected&&e.s.setCursorBefore(i),r.Dom.safeRemove(i)}}__isEmptyListLeaf(t){let e=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,l.isBoolean)(e)?e:r.Dom.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}(0,o.__decorate)([(0,s.watch)(":keydown.enter")],h.prototype,"onEnterKeyDown",null),a.pluginSystem.add("enter",h)},3843:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg>'},3856:function(t,e,i){"use strict";i.d(e,{convertMediaUrlToVideoEmbed:function(){return r}});var o=i(81937),n=i(91764),s=i(36310);let r=(t,{width:e=400,height:i=345}={})=>{if(!(0,n.isURL)(t))return t;let r=o.globalDocument.createElement("a"),a=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;r.href=t,e||(e=400),i||(i=345);let l=r.protocol||"";switch(r.hostname){case"www.vimeo.com":case"vimeo.com":return a.test(t)?t.replace(a,'<iframe width="'+e+'" height="'+i+'" src="'+l+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):t;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{let o=r.search?(0,s.parseQuery)(r.search):{v:r.pathname.substring(1)};return/^embed\/.*/.test(o.v)&&(o.v=o.v.substring(6)),o.v?'<iframe width="'+e+'" height="'+i+'" src="'+l+"//www.youtube.com/embed/"+o.v+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},4040:function(t,e,i){"use strict";i.d(e,{trim:function(){return n},trimChars:function(){return s},trimInv:function(){return r}});var o=i(81937);function n(t){return t.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function s(t,e){return t.replace(RegExp(`[${e}]+$`),"").replace(RegExp(`^[${e}]+`),"")}function r(t){return t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},4099:function(t,e,i){"use strict";i.d(e,{Button:function(){return o.Button},Icon:function(){return a.Icon},Popup:function(){return l.Popup},ProgressBar:function(){return c.ProgressBar},UIBlock:function(){return s.UIBlock},UIButton:function(){return o.UIButton},UIButtonGroup:function(){return o.UIButtonGroup},UIButtonState:function(){return o.UIButtonState},UICheckbox:function(){return s.UICheckbox},UIElement:function(){return n.UIElement},UIFileInput:function(){return s.UIFileInput},UIForm:function(){return s.UIForm},UIGroup:function(){return r.UIGroup},UIInput:function(){return s.UIInput},UIList:function(){return r.UIList},UISelect:function(){return s.UISelect},UISeparator:function(){return r.UISeparator},UISpacer:function(){return r.UISpacer},UITextArea:function(){return s.UITextArea},UITooltip:function(){return o.UITooltip}});var o=i(59400),n=i(96007),s=i(5658),r=i(64847),a=i(29434),l=i(56490),c=i(34396)},4274:function(t,e,i){"use strict";i.d(e,{makeButton:function(){return u},makeCollection:function(){return c},makeSelect:function(){return h}});var o=i(65946),n=i(22533),s=i(5772),r=i(61764),a=i(42573),l=i(6209);function c(t,e){let i=(0,o.isJoditObject)(t)?new l.ToolbarEditorCollection(t):new a.ToolbarCollection(t);return t.o.textIcons&&i.container.classList.add("jodit_text_icons"),e&&(i.parentElement=e),t.o.toolbarButtonSize&&(i.buttonSize=t.o.toolbarButtonSize),i}function u(t,e,i=null){if((0,o.isFunction)(e.getContent))return new s.ToolbarContent(t,e,i);let r=new n.ToolbarButton(t,e,i);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,r}function h(t,e,i=null){return new r.ToolbarSelect(t,e,i)}},4561:function(t,e,i){"use strict";i.d(e,{UIBlock:function(){return l}});var o=i(25045),n=i(31635),s=i(91672),r=i(93640),a=i(63468);class l extends a.UIGroup{className(){return"UIBlock"}constructor(t,e,i={align:"left"}){super(t,e),(0,o._)(this,"options",void 0),this.options=i,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,r.attr)(this.container,"data-ref",i.ref),(0,r.attr)(this.container,"ref",i.ref)}}l=(0,n.__decorate)([s.component],l)},5070:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},5266:function(t,e,i){"use strict";i.d(e,{Config:function(){return r}});var o=i(25045),n=i(81937);let s={};class r{static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}constructor(){(0,o._)(this,"cache",!0),(0,o._)(this,"defaultTimeout",100),(0,o._)(this,"namespace",""),(0,o._)(this,"safeMode",!1),(0,o._)(this,"width","auto"),(0,o._)(this,"height","auto"),(0,o._)(this,"safePluginsList",["about","enter","backspace","size","bold","hotkeys"]),(0,o._)(this,"commandToHotkeys",void 0),(0,o._)(this,"license",""),(0,o._)(this,"preset","custom"),(0,o._)(this,"presets",{inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}}),(0,o._)(this,"ownerDocument",n.globalDocument),(0,o._)(this,"ownerWindow",n.globalWindow),(0,o._)(this,"shadowRoot",null),(0,o._)(this,"zIndex",0),(0,o._)(this,"readonly",!1),(0,o._)(this,"disabled",!1),(0,o._)(this,"activeButtonsInReadOnly",["source","fullsize","print","about","dots","selectall"]),(0,o._)(this,"allowCommandsInReadOnly",["selectall","preview","print"]),(0,o._)(this,"toolbarButtonSize","middle"),(0,o._)(this,"allowTabNavigation",!1),(0,o._)(this,"inline",!1),(0,o._)(this,"theme","default"),(0,o._)(this,"saveModeInStorage",!1),(0,o._)(this,"editorClassName",!1),(0,o._)(this,"className",!1),(0,o._)(this,"style",!1),(0,o._)(this,"containerStyle",!1),(0,o._)(this,"styleValues",{}),(0,o._)(this,"triggerChangeEvent",!0),(0,o._)(this,"direction",""),(0,o._)(this,"language","auto"),(0,o._)(this,"debugLanguage",!1),(0,o._)(this,"i18n",!1),(0,o._)(this,"tabIndex",-1),(0,o._)(this,"toolbar",!0),(0,o._)(this,"statusbar",!0),(0,o._)(this,"showTooltip",!0),(0,o._)(this,"showTooltipDelay",200),(0,o._)(this,"useNativeTooltip",!1),(0,o._)(this,"defaultActionOnPaste",n.INSERT_AS_HTML),(0,o._)(this,"enter",n.PARAGRAPH),(0,o._)(this,"iframe",!1),(0,o._)(this,"editHTMLDocumentMode",!1),(0,o._)(this,"enterBlock","br"!==this.enter?this.enter:n.PARAGRAPH),(0,o._)(this,"defaultMode",n.MODE_WYSIWYG),(0,o._)(this,"useSplitMode",!1),(0,o._)(this,"colors",{greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]}),(0,o._)(this,"colorPickerDefaultTab","background"),(0,o._)(this,"imageDefaultWidth",300),(0,o._)(this,"removeButtons",[]),(0,o._)(this,"disablePlugins",[]),(0,o._)(this,"extraPlugins",[]),(0,o._)(this,"basePath",void 0),(0,o._)(this,"extraButtons",[]),(0,o._)(this,"extraIcons",{}),(0,o._)(this,"createAttributes",{table:{style:"border-collapse:collapse;width: 100%;"}}),(0,o._)(this,"sizeLG",900),(0,o._)(this,"sizeMD",700),(0,o._)(this,"sizeSM",400),(0,o._)(this,"buttons",[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},`
19
- `,{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}]),(0,o._)(this,"controls",void 0),(0,o._)(this,"events",{}),(0,o._)(this,"textIcons",!1),(0,o._)(this,"popupRoot",null),(0,o._)(this,"showBrowserColorPicker",!0),Object.assign(this,s)}}(0,o._)(r,"__defaultOptions",void 0),s=r.prototype,r.prototype.controls={}},5650:function(t,e,i){"use strict";i.d(e,{getHash:function(){return s}});var o=i(85932),n=i(4040);function s(t){let e=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,r={};return(0,o.isString)(t)?(t.split(i).map(t=>{t=(0,n.trim)(t);let o=e.exec(t),a={};if(o){let t=o[2].split(i);o[1]&&(t.forEach(t=>{t=(0,n.trim)(t);let e=s.exec(t);e?a[e[1]]=e[2]:a[t]=!0}),r[o[1].toUpperCase()]=a)}else r[t.toUpperCase()]=!0}),r):!!t&&(Object.keys(t).forEach(e=>{r[e.toUpperCase()]=t[e]}),r)}},5658:function(t,e,i){"use strict";i.d(e,{UIBlock:function(){return o.UIBlock},UICheckbox:function(){return s.UICheckbox},UIFileInput:function(){return s.UIFileInput},UIForm:function(){return n.UIForm},UIInput:function(){return s.UIInput},UISelect:function(){return s.UISelect},UITextArea:function(){return s.UITextArea}});var o=i(4561),n=i(98838),s=i(2602)},5771:function(t,e,i){"use strict";i.d(e,{checkRemoveEmptyNeighbor:function(){return n}});var o=i(23211);function n(t,e,i){let n=o.Dom.closest(e,o.Dom.isElement,t.editor);if(!n)return!1;let s=o.Dom.findNotEmptySibling(n,i);return!!(s&&o.Dom.isEmpty(s))&&(o.Dom.safeRemove(s),t.s.setCursorBefore(e),!0)}},5772:function(t,e,i){"use strict";i.d(e,{ToolbarContent:function(){return c}});var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(65946),l=i(59400);class c extends l.UIButton{className(){return"ToolbarContent"}update(){let t=this.control.getContent(this.j,this);((0,a.isString)(t)||t.parentNode!==this.container)&&(r.Dom.detach(this.container),this.container.appendChild((0,a.isString)(t)?this.j.create.fromHTML(t):t)),super.update()}createContainer(){return this.j.c.span(this.componentName)}constructor(t,e,i=null){super(t),(0,o._)(this,"control",void 0),(0,o._)(this,"target",void 0),this.control=e,this.target=i,this.container.classList.add(`${this.componentName}_${this.clearName(e.name)}`),(0,a.attr)(this.container,"role","content")}}c=(0,n.__decorate)([s.component],c)},6209:function(t,e,i){"use strict";i.d(e,{ToolbarEditorCollection:function(){return u}});var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(27795),l=i(65946),c=i(42573);class u extends c.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(t){let e=super.shouldBeDisabled(t);if(void 0!==e)return e;let i=void 0===t.control.mode?s.MODE_WYSIWYG:t.control.mode;return i!==s.MODE_SPLIT&&i!==this.j.getRealMode()}shouldBeActive(t){let e,i=super.shouldBeActive(t);if(void 0!==i)return i;let o=this.j.selection?this.j.s.current():null;if(!o)return!1;if(t.control.tags){let i=t.control.tags;if(e=o,a.Dom.up(e,t=>{if(t&&-1!==i.indexOf(t.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(t.control.css){let i=t.control.css;if(e=o,a.Dom.up(e,t=>{if(t&&!a.Dom.isText(t)&&!a.Dom.isComment(t))return this.checkActiveStatus(i,t)},this.j.editor))return!0}return!1}getTarget(t){return t.target||this.j.s.current()||null}prependInvisibleInput(t){let e=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});a.Dom.appendChildFirst(t,e)}showInline(t){this.jodit.e.fire("showInlineToolbar",t)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(t){super(t),(0,o._)(this,"checkActiveStatus",(t,e)=>{let i=0,o=0;return Object.keys(t).forEach(n=>{let s=t[n];(0,l.isFunction)(s)?s(this.j,(0,l.css)(e,n).toString())&&(i+=1):-1!==s.indexOf((0,l.css)(e,n).toString())&&(i+=1),o+=1}),o===i}),this.prependInvisibleInput(this.container)}}u=(0,n.__decorate)([r.component],u)},6490:function(t,e,i){"use strict";i.d(e,{required:function(){return n}});var o=i(4040);let n=function(t){return!!(0,o.trim)(t.value).length||(t.error="Please fill out this field",!1)}},6609:function(t,e,i){"use strict";i.d(e,{htmlspecialchars:function(){return n}});var o=i(81937);function n(t){let e=o.globalDocument.createElement("div");return e.textContent=t,e.innerHTML}},7018:function(t,e,i){"use strict";i.d(e,{colorToHex:function(){return o.colorToHex}});var o=i(93387)},7433:function(t,e,i){"use strict";var o=i(27795),n=i(4040),s=i(80991),r=i(29434),a=i(5266),l=i(48842),c=i.n(l),u=i(25501),h=i.n(u);a.Config.prototype.defaultFontSizePoints="px",r.Icon.set("font",c()).set("fontsize",h()),a.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise:(t,e)=>/pt$/i.test(t)&&"pt"===e.o.defaultFontSizePoints?t.replace(/pt$/i,""):t},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(t,e)=>e+t.o.defaultFontSizePoints,childTemplate:(t,e,i)=>`${i}${t.o.defaultFontSizePoints}`,tooltip:"Font size",value(t,e){let i=t.s.current();if(!i)return;let n=o.Dom.closest(i,o.Dom.isElement,t.editor);if(!n)return;let r=e.control,a=r.data?.cssRule||"font-size";return(0,s.css)(n,a).toString()},isChildActive(t,e){let i=e.state.value,o=e.control.data?.normalize??(t=>t);return!!(i&&e.control.args&&o(e.control.args[0].toString())===o(i.toString()))},isActive(t,e){let i=e.state.value;if(!i)return!1;let o=e.control.data?.normalize??(t=>t),n=e.control.data.cacheListSet;return n||(n=new Set(Object.keys(e.control.list).map(o)),e.control.data.cacheListSet=n),n.has(o(i.toString()))}},a.Config.prototype.controls.font={...a.Config.prototype.controls.fontsize,command:"fontname",textTemplate(t,e){let[i]=e.split(",");return(0,n.trimChars)(i,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(t,e,i){let o=!1;try{o=-1===e.indexOf("dings")&&document.fonts.check("16px "+e,i)}catch{}return`<span data-style="${e}" style="${o?`font-family: ${e}!important;`:""}">${i}</span>`},data:{cssRule:"font-family",normalize:t=>t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},tooltip:"Font family"}},7470:function(t,e,i){"use strict";i.d(e,{moveTheNodeAlongTheEdgeOutward:function(){return n}});var o=i(23211);function n(t,e,i){let n=t;for(;n&&n!==i&&!(o.Dom.findSibling(n,e)||o.Dom.isBlock(n.parentElement));)(n=n.parentElement)&&n!==i&&(e?o.Dom.before(n,t):o.Dom.after(n,t))}},7758:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(23211),r=i(28077),a=i(65946),l=i(18855),c=i(53681);class u extends l.Plugin{createDialog(){this.dialog=this.j.dlg();let t=(0,c.Button)(this.j,"paste","Paste","primary");t.onAction(this.paste);let e=(0,c.Button)(this.j,"","Cancel");e.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,e]),this.j.e.on(this.listBox,"click dblclick",t=>{let e=t.target;return s.Dom.isTag(e,"a")&&e.hasAttribute("data-index")&&this.selectIndex(parseInt((0,a.attr)(e,"-index")||"0",10)),"dblclick"===t.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",t=>{-1!==this.list.indexOf(t)&&this.list.splice(this.list.indexOf(t),1),this.list.unshift(t),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),s.Dom.safeRemove(this.previewBox),s.Dom.safeRemove(this.listBox),s.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(...t){super(...t),(0,o._)(this,"currentIndex",0),(0,o._)(this,"list",[]),(0,o._)(this,"container",null),(0,o._)(this,"listBox",null),(0,o._)(this,"previewBox",null),(0,o._)(this,"dialog",null),(0,o._)(this,"paste",()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let t=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=t}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")}),(0,o._)(this,"onKeyDown",t=>{let e=this.currentIndex;if(-1!==[n.KEY_UP,n.KEY_DOWN,n.KEY_ENTER].indexOf(t.key)){if(t.key===n.KEY_UP&&(0===e?e=this.list.length-1:e-=1),t.key===n.KEY_DOWN&&(e===this.list.length-1?e=0:e+=1),t.key===n.KEY_ENTER)return void this.paste();e!==this.currentIndex&&this.selectIndex(e),t.stopImmediatePropagation(),t.preventDefault()}}),(0,o._)(this,"selectIndex",t=>{this.listBox&&(0,a.toArray)(this.listBox.childNodes).forEach((e,i)=>{e.classList.remove("jodit_active"),t===i&&this.previewBox&&(e.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[t],e.focus())}),this.currentIndex=t}),(0,o._)(this,"showDialog",()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach((t,e)=>{let i=this.j.c.element("a");i.textContent=e+1+". "+t.replace((0,n.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,a.attr)(i,"href","#"),(0,a.attr)(i,"data-index",e.toString()),(0,a.attr)(i,"tab-index","-1"),this.listBox&&this.listBox.appendChild(i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))})}}r.pluginSystem.add("pasteStorage",u)},7909:function(t,e,i){"use strict";i.d(e,{attr:function(){return function t(e,i,r){if(!e||!(0,o.isFunction)(e.getAttribute))return null;if(!(0,o.isString)(i))return Object.keys(i).forEach(n=>{let r=i[n];(0,o.isPlainObject)(r)&&"style"===n?(0,s.css)(e,r):("className"===n&&(n="class"),t(e,n,r))}),null;let a=(0,n.CamelCaseToKebabCase)(i);if(/^-/.test(a)){let i=t(e,"data"+a);if(i)return i;a=a.substr(1)}if(void 0!==r)if(null==r)e.hasAttribute(a)&&e.removeAttribute(a);else{let t=r.toString();return"IMG"===e.nodeName&&("width"===a||"height"===a)&&(t=t.replace("px","")),e.setAttribute(a,t),t}return e.getAttribute(a)}}});var o=i(28686),n=i(74264),s=i(80991)},7994:function(t,e,i){"use strict";var o=i(28077);i(48290),o.pluginSystem.add("table",function(t){t.registerButton({name:"table",group:"insert"})})},8071:function(t,e,i){"use strict";var o=i(23211),n=i(65946),s=i(29434),r=i(5266),a=i(15753),l=i(45674),c=i.n(l);s.Icon.set("brush",c()),r.Config.prototype.controls.brushCell={isVisible:t=>!t.o.disablePlugins.includes("color"),icon:"brush",popup(t,e,i){if(!(0,n.isJoditObject)(t))return;let o=t.getInstance("Table",t.o).getAllSelectedCells();if(!o.length)return!1;let s=e=>(0,a.ColorPickerWidget)(t,s=>{o.forEach(t=>{(0,n.css)(t,e,s)}),t.lock(),t.synchronizeValues(),i(),t.unlock()},(0,n.css)(o[0],e));return(0,a.TabsWidget)(t,[{name:"Background",content:s("background-color")},{name:"Text",content:s("color")},{name:"Border",content:s("border-color")}])},tooltip:"Background"},r.Config.prototype.controls.brush={isVisible:t=>!t.o.disablePlugins.includes("color"),update(t,e){let i=(0,n.dataBind)(e,"color"),s=(i,o)=>{if(o&&o!==(0,n.css)(t.editor,i).toString()){e.state.icon.fill=o;return}};if(i){let t=(0,n.dataBind)(e,"color");s("color"===t?t:"background-color",i);return}let r=t.s.current();if(r&&!e.state.disabled){let e=o.Dom.closest(r,o.Dom.isElement,t.editor)||t.editor;s("color",(0,n.css)(e,"color").toString()),s("background-color",(0,n.css)(e,"background-color").toString())}e.state.icon.fill="",e.state.activated=!1},popup(t,e,i,s){let r="",l="",c=[],u=null;return e&&e!==t.editor&&o.Dom.isNode(e)&&(o.Dom.isElement(e)&&t.s.isCollapsed()&&!o.Dom.isTag(e,new Set(["br","hr"]))&&(u=e),o.Dom.up(e,t=>{if(o.Dom.isHTMLElement(t)){let e=(0,n.css)(t,"color",!0),i=(0,n.css)(t,"background-color",!0);if(e)return r=e.toString(),!0;if(i)return l=i.toString(),!0}},t.editor)),c=[{name:"Background",content:(0,a.ColorPickerWidget)(t,e=>{u?u.style.backgroundColor=e:t.execCommand("background",!1,e),(0,n.dataBind)(s,"color",e),(0,n.dataBind)(s,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(t,e=>{u?u.style.color=e:t.execCommand("forecolor",!1,e),(0,n.dataBind)(s,"color",e),(0,n.dataBind)(s,"color-mode","color"),i()},r)}],"background"!==t.o.colorPickerDefaultTab&&(c=c.reverse()),(0,a.TabsWidget)(t,c,u)},exec(t,e,{button:i}){let s=(0,n.dataBind)(i,"color-mode"),r=(0,n.dataBind)(i,"color");if(!s)return!1;if(e&&e!==t.editor&&o.Dom.isNode(e)&&o.Dom.isElement(e))switch(s){case"color":e.style.color=r;break;case"background":e.style.backgroundColor=r}else t.execCommand("background"===s?s:"forecolor",!1,r)},tooltip:"Fill color or set the text color"}},8105:function(t,e,i){"use strict";i.d(e,{AceEditor:function(){return o.AceEditor},TextAreaEditor:function(){return n.TextAreaEditor}});var o=i(94978),n=i(45844)},8136:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},8257:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.showPlaceholder=!0,o.Config.prototype.placeholder="Type something",o.Config.prototype.useInputsPlaceholder=!0},8524:function(t,e,i){"use strict";i.d(e,{checkUnsplittableBox:function(){return n}});var o=i(23211);function n(t,e,i){return!!o.Dom.canSplitBlock(i)||(o.Dom.before(t,e.createInside.element("br")),!1)}},8837:function(t,e,i){"use strict";i.d(e,{onTabInsideLi:function(){return s}});var o=i(23211),n=i(28712);function s(t,e=!1){if(!t.o.tab.tabInsideLiInsertNewList)return!1;let[i,r]=function(t){let e=t.createInside.fake(),i=t.createInside.fake(),o=t.s.range.cloneRange();o.collapse(!0),o.insertNode(e);let n=t.s.range.cloneRange();return n.collapse(!1),n.insertNode(i),[e,i]}(t);try{let s=function(t,e,i){let n=o.Dom.closest(e,"li",t.editor);return!!n&&(!!i||!!o.Dom.isLeaf(n.previousElementSibling))&&(!i||!!o.Dom.closest(n,"li",t.editor))&&n}(t,i,e);if(!s||!function(t,e,i){let n=o.Dom.closest(i,"li",e.editor);return!(!n||n!==t&&!t.contains(n))}(s,t,i))return!1;let r=o.Dom.closest(s,["ol","ul"],t.editor);if(!r||e&&!o.Dom.closest(r,"li",t.editor))return!1;return e?function(t,e,i){let s=o.Dom.closest(e,"li",t.editor);(0,n.assert)(s,"tab parent li is null");let r=Array.from(e.children).filter(t=>o.Dom.isLeaf(t));o.Dom.after(s,i);let a=r.indexOf(i);if((0===a||1===r.length)&&o.Dom.safeRemove(e),a!==r.length-1){let t=e.cloneNode();o.Dom.append(i,t);for(let e=a+1;e<r.length;e+=1)o.Dom.append(t,r[e])}}(t,r,s):function(t,e,i){let s=i.previousElementSibling;(0,n.assert)(s,"tab previousElementSibling is null");let r=s.lastElementChild,a=o.Dom.isTag(r,e.tagName)?r:t.createInside.element(e.tagName,Array.from(e.attributes).reduce((t,e)=>(t[e.name]=e.value,t),{}));a.appendChild(i),r!==a&&s.appendChild(a)}(t,r,s),!0}finally{let e=t.s.createRange();e.setStartAfter(i),e.setEndBefore(r),t.s.selectRange(e),o.Dom.safeRemove(i),o.Dom.safeRemove(r)}}},8838:function(t,e,i){"use strict";i.d(e,{Command:function(){return n}});var o=i(25045);class n{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(t,e,i,n){(0,o._)(this,"oldValue",void 0),(0,o._)(this,"newValue",void 0),(0,o._)(this,"history",void 0),(0,o._)(this,"tick",void 0),this.oldValue=t,this.newValue=e,this.history=i,this.tick=n}}},8908:function(t,e,i){"use strict";i.d(e,{form:function(){return a}});var o=i(4099);let n="jodit-image-editor",s=o.Icon.get.bind(o.Icon),r=(t,e="jodti-image-editor_active")=>t?e:"",a=(t,e)=>{let i=t.i18n.bind(t),o=(t,e,o=!0)=>`<div class="jodit-form__group">
19
+ `,{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}]),(0,o._)(this,"controls",void 0),(0,o._)(this,"events",{}),(0,o._)(this,"textIcons",!1),(0,o._)(this,"popupRoot",null),(0,o._)(this,"showBrowserColorPicker",!0),Object.assign(this,s)}}(0,o._)(r,"__defaultOptions",void 0),s=r.prototype,r.prototype.controls={}},5650:function(t,e,i){"use strict";i.d(e,{getHash:function(){return s}});var o=i(85932),n=i(4040);function s(t){let e=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,r={};return(0,o.isString)(t)?(t.split(i).map(t=>{t=(0,n.trim)(t);let o=e.exec(t),a={};if(o){let t=o[2].split(i);o[1]&&(t.forEach(t=>{t=(0,n.trim)(t);let e=s.exec(t);e?a[e[1]]=e[2]:a[t]=!0}),r[o[1].toUpperCase()]=a)}else r[t.toUpperCase()]=!0}),r):!!t&&(Object.keys(t).forEach(e=>{r[e.toUpperCase()]=t[e]}),r)}},5658:function(t,e,i){"use strict";i.d(e,{UIBlock:function(){return o.UIBlock},UICheckbox:function(){return s.UICheckbox},UIFileInput:function(){return s.UIFileInput},UIForm:function(){return n.UIForm},UIInput:function(){return s.UIInput},UISelect:function(){return s.UISelect},UITextArea:function(){return s.UITextArea}});var o=i(4561),n=i(98838),s=i(2602)},5771:function(t,e,i){"use strict";i.d(e,{checkRemoveEmptyNeighbor:function(){return n}});var o=i(23211);function n(t,e,i){let n=o.Dom.closest(e,o.Dom.isElement,t.editor);if(!n)return!1;let s=o.Dom.findNotEmptySibling(n,i);return!!(s&&o.Dom.isEmpty(s))&&(o.Dom.safeRemove(s),t.s.setCursorBefore(e),!0)}},5772:function(t,e,i){"use strict";i.d(e,{ToolbarContent:function(){return c}});var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(65946),l=i(59400);class c extends l.UIButton{className(){return"ToolbarContent"}update(){let t=this.control.getContent(this.j,this);((0,a.isString)(t)||t.parentNode!==this.container)&&(r.Dom.detach(this.container),this.container.appendChild((0,a.isString)(t)?this.j.create.fromHTML(t):t)),super.update()}createContainer(){return this.j.c.span(this.componentName)}constructor(t,e,i=null){super(t),(0,o._)(this,"control",void 0),(0,o._)(this,"target",void 0),this.control=e,this.target=i,this.container.classList.add(`${this.componentName}_${this.clearName(e.name)}`),(0,a.attr)(this.container,"role","content")}}c=(0,n.__decorate)([s.component],c)},6209:function(t,e,i){"use strict";i.d(e,{ToolbarEditorCollection:function(){return u}});var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(27795),l=i(65946),c=i(42573);class u extends c.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(t){let e=super.shouldBeDisabled(t);if(void 0!==e)return e;let i=void 0===t.control.mode?s.MODE_WYSIWYG:t.control.mode;return i!==s.MODE_SPLIT&&i!==this.j.getRealMode()}shouldBeActive(t){let e,i=super.shouldBeActive(t);if(void 0!==i)return i;let o=this.j.selection?this.j.s.current():null;if(!o)return!1;if(t.control.tags){let i=t.control.tags;if(e=o,a.Dom.up(e,t=>{if(t&&-1!==i.indexOf(t.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(t.control.css){let i=t.control.css;if(e=o,a.Dom.up(e,t=>{if(t&&!a.Dom.isText(t)&&!a.Dom.isComment(t))return this.checkActiveStatus(i,t)},this.j.editor))return!0}return!1}getTarget(t){return t.target||this.j.s.current()||null}prependInvisibleInput(t){let e=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});a.Dom.appendChildFirst(t,e)}showInline(t){this.jodit.e.fire("showInlineToolbar",t)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(t){super(t),(0,o._)(this,"checkActiveStatus",(t,e)=>{let i=0,o=0;return Object.keys(t).forEach(n=>{let s=t[n];(0,l.isFunction)(s)?s(this.j,(0,l.css)(e,n).toString())&&(i+=1):-1!==s.indexOf((0,l.css)(e,n).toString())&&(i+=1),o+=1}),o===i}),this.prependInvisibleInput(this.container)}}u=(0,n.__decorate)([r.component],u)},6490:function(t,e,i){"use strict";i.d(e,{required:function(){return n}});var o=i(4040);let n=function(t){return!!(0,o.trim)(t.value).length||(t.error="Please fill out this field",!1)}},6609:function(t,e,i){"use strict";i.d(e,{htmlspecialchars:function(){return n}});var o=i(81937);function n(t){let e=o.globalDocument.createElement("div");return e.textContent=t,e.innerHTML}},7018:function(t,e,i){"use strict";i.d(e,{colorToHex:function(){return o.colorToHex}});var o=i(93387)},7433:function(t,e,i){"use strict";var o=i(27795),n=i(4040),s=i(80991),r=i(29434),a=i(5266),l=i(48842),c=i.n(l),u=i(25501),h=i.n(u);a.Config.prototype.defaultFontSizePoints="px",r.Icon.set("font",c()).set("fontsize",h()),a.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise:(t,e)=>/pt$/i.test(t)&&"pt"===e.o.defaultFontSizePoints?t.replace(/pt$/i,""):t},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(t,e)=>e+t.o.defaultFontSizePoints,childTemplate:(t,e,i)=>`${i}${t.o.defaultFontSizePoints}`,tooltip:"Font size",value(t,e){let i=t.s.current();if(!i)return;let n=o.Dom.closest(i,o.Dom.isElement,t.editor);if(!n)return;let r=e.control,a=r.data?.cssRule||"font-size";return(0,s.css)(n,a).toString()},isChildActive(t,e){let i=e.state.value,o=e.control.data?.normalize??(t=>t);return!!(i&&e.control.args&&o(e.control.args[0].toString())===o(i.toString()))},isActive(t,e){let i=e.state.value;if(!i)return!1;let o=e.control.data?.normalize??(t=>t),n=e.control.data.cacheListSet;return n||(n=new Set(Object.keys(e.control.list).map(o)),e.control.data.cacheListSet=n),n.has(o(i.toString()))}},a.Config.prototype.controls.font={...a.Config.prototype.controls.fontsize,command:"fontname",textTemplate(t,e){let[i]=e.split(",");return(0,n.trimChars)(i,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(t,e,i){let o=!1;try{o=-1===e.indexOf("dings")&&document.fonts.check("16px "+e,i)}catch{}return`<span data-style="${e}" style="${o?`font-family: ${e}!important;`:""}">${i}</span>`},data:{cssRule:"font-family",normalize:t=>t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},tooltip:"Font family"}},7470:function(t,e,i){"use strict";i.d(e,{moveTheNodeAlongTheEdgeOutward:function(){return n}});var o=i(23211);function n(t,e,i){let n=t;for(;n&&n!==i&&!(o.Dom.findSibling(n,e)||o.Dom.isBlock(n.parentElement));)(n=n.parentElement)&&n!==i&&(e?o.Dom.before(n,t):o.Dom.after(n,t))}},7758:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(23211),r=i(28077),a=i(65946),l=i(18855),c=i(53681);class u extends l.Plugin{createDialog(){this.dialog=this.j.dlg();let t=(0,c.Button)(this.j,"paste","Paste","primary");t.onAction(this.paste);let e=(0,c.Button)(this.j,"","Cancel");e.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,e]),this.j.e.on(this.listBox,"click dblclick",t=>{let e=t.target;return s.Dom.isTag(e,"a")&&e.hasAttribute("data-index")&&this.selectIndex(parseInt((0,a.attr)(e,"-index")||"0",10)),"dblclick"===t.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",t=>{-1!==this.list.indexOf(t)&&this.list.splice(this.list.indexOf(t),1),this.list.unshift(t),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),s.Dom.safeRemove(this.previewBox),s.Dom.safeRemove(this.listBox),s.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(...t){super(...t),(0,o._)(this,"currentIndex",0),(0,o._)(this,"list",[]),(0,o._)(this,"container",null),(0,o._)(this,"listBox",null),(0,o._)(this,"previewBox",null),(0,o._)(this,"dialog",null),(0,o._)(this,"paste",()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let t=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=t}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")}),(0,o._)(this,"onKeyDown",t=>{let e=this.currentIndex;if(-1!==[n.KEY_UP,n.KEY_DOWN,n.KEY_ENTER].indexOf(t.key)){if(t.key===n.KEY_UP&&(0===e?e=this.list.length-1:e-=1),t.key===n.KEY_DOWN&&(e===this.list.length-1?e=0:e+=1),t.key===n.KEY_ENTER)return void this.paste();e!==this.currentIndex&&this.selectIndex(e),t.stopImmediatePropagation(),t.preventDefault()}}),(0,o._)(this,"selectIndex",t=>{this.listBox&&(0,a.toArray)(this.listBox.childNodes).forEach((e,i)=>{e.classList.remove("jodit_active"),t===i&&this.previewBox&&(e.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[t],e.focus())}),this.currentIndex=t}),(0,o._)(this,"showDialog",()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach((t,e)=>{let i=this.j.c.element("a");i.textContent=e+1+". "+t.replace((0,n.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,a.attr)(i,"href","#"),(0,a.attr)(i,"data-index",e.toString()),(0,a.attr)(i,"tab-index","-1"),this.listBox&&this.listBox.appendChild(i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))})}}r.pluginSystem.add("pasteStorage",u)},7909:function(t,e,i){"use strict";i.d(e,{attr:function(){return function t(e,i,r){if(!e||!(0,o.isFunction)(e.getAttribute))return null;if(!(0,o.isString)(i))return Object.keys(i).forEach(n=>{let r=i[n];(0,o.isPlainObject)(r)&&"style"===n?(0,s.css)(e,r):("className"===n&&(n="class"),t(e,n,r))}),null;let a=(0,n.CamelCaseToKebabCase)(i);if(/^-/.test(a)){let i=t(e,"data"+a);if(i)return i;a=a.substr(1)}if(void 0!==r)if(null==r)e.hasAttribute(a)&&e.removeAttribute(a);else{let t=r.toString();return"IMG"===e.nodeName&&("width"===a||"height"===a)&&(t=t.replace("px","")),e.setAttribute(a,t),t}return e.getAttribute(a)}}});var o=i(28686),n=i(74264),s=i(80991)},7994:function(t,e,i){"use strict";var o=i(28077);i(48290),o.pluginSystem.add("table",function(t){t.registerButton({name:"table",group:"insert"})})},8006:function(t,e,i){"use strict";i.d(e,{AsyncStorage:function(){return c}});var o=i(25045),n=i(57821),s=i(91162),r=i(59807),a=i(9505),l=i(24475);class c{async set(t,e){let i=await this.provider;return await i.set((0,n.camelCase)(this.prefix+t),e),this}async delete(t){let e=await this.provider;return await e.delete((0,n.camelCase)(this.prefix+t)),this}async get(t){return(await this.provider).get((0,n.camelCase)(this.prefix+t))}async exists(t){return(await this.provider).exists((0,n.camelCase)(this.prefix+t))}async clear(){let t=await this.provider;return await t.clear(),this}async close(){let t=await this.provider;"close"in t&&"function"==typeof t.close&&await t.close()}static makeStorage(t=!1,e){let i;return"localStorage"===t||"sessionStorage"===t?(0,r.canUsePersistentStorage)(t)&&(i=new r.LocalStorageProvider(l.StorageKey+(e||""),t)):("indexedDB"===t||!0===t)&&(i=(0,s.canUseIndexedDB)().then(t=>t?new s.IndexedDBProvider(l.StorageKey+(e||""),"keyValueStore"):new a.MemoryStorageProvider)),i||(i=new a.MemoryStorageProvider),new c(Promise.resolve(i),e)}constructor(t,e){(0,o._)(this,"provider",void 0),(0,o._)(this,"prefix",void 0),this.provider=t,this.prefix=l.StorageKey,e&&(this.prefix+=e)}}},8071:function(t,e,i){"use strict";var o=i(23211),n=i(65946),s=i(29434),r=i(5266),a=i(15753),l=i(45674),c=i.n(l);s.Icon.set("brush",c()),r.Config.prototype.controls.brushCell={isVisible:t=>!t.o.disablePlugins.includes("color"),icon:"brush",popup(t,e,i){if(!(0,n.isJoditObject)(t))return;let o=t.getInstance("Table",t.o).getAllSelectedCells();if(!o.length)return!1;let s=e=>(0,a.ColorPickerWidget)(t,s=>{o.forEach(t=>{(0,n.css)(t,e,s)}),t.lock(),t.synchronizeValues(),i(),t.unlock()},(0,n.css)(o[0],e));return(0,a.TabsWidget)(t,[{name:"Background",content:s("background-color")},{name:"Text",content:s("color")},{name:"Border",content:s("border-color")}])},tooltip:"Background"},r.Config.prototype.controls.brush={isVisible:t=>!t.o.disablePlugins.includes("color"),update(t,e){let i=(0,n.dataBind)(e,"color"),s=(i,o)=>{if(o&&o!==(0,n.css)(t.editor,i).toString()){e.state.icon.fill=o;return}};if(i){let t=(0,n.dataBind)(e,"color");s("color"===t?t:"background-color",i);return}let r=t.s.current();if(r&&!e.state.disabled){let e=o.Dom.closest(r,o.Dom.isElement,t.editor)||t.editor;s("color",(0,n.css)(e,"color").toString()),s("background-color",(0,n.css)(e,"background-color").toString())}e.state.icon.fill="",e.state.activated=!1},popup(t,e,i,s){let r="",l="",c=[],u=null;return e&&e!==t.editor&&o.Dom.isNode(e)&&(o.Dom.isElement(e)&&t.s.isCollapsed()&&!o.Dom.isTag(e,new Set(["br","hr"]))&&(u=e),o.Dom.up(e,t=>{if(o.Dom.isHTMLElement(t)){let e=(0,n.css)(t,"color",!0),i=(0,n.css)(t,"background-color",!0);if(e)return r=e.toString(),!0;if(i)return l=i.toString(),!0}},t.editor)),c=[{name:"Background",content:(0,a.ColorPickerWidget)(t,e=>{u?u.style.backgroundColor=e:t.execCommand("background",!1,e),(0,n.dataBind)(s,"color",e),(0,n.dataBind)(s,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(t,e=>{u?u.style.color=e:t.execCommand("forecolor",!1,e),(0,n.dataBind)(s,"color",e),(0,n.dataBind)(s,"color-mode","color"),i()},r)}],"background"!==t.o.colorPickerDefaultTab&&(c=c.reverse()),(0,a.TabsWidget)(t,c,u)},exec(t,e,{button:i}){let s=(0,n.dataBind)(i,"color-mode"),r=(0,n.dataBind)(i,"color");if(!s)return!1;if(e&&e!==t.editor&&o.Dom.isNode(e)&&o.Dom.isElement(e))switch(s){case"color":e.style.color=r;break;case"background":e.style.backgroundColor=r}else t.execCommand("background"===s?s:"forecolor",!1,r)},tooltip:"Fill color or set the text color"}},8105:function(t,e,i){"use strict";i.d(e,{AceEditor:function(){return o.AceEditor},TextAreaEditor:function(){return n.TextAreaEditor}});var o=i(94978),n=i(45844)},8136:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},8257:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.showPlaceholder=!0,o.Config.prototype.placeholder="Type something",o.Config.prototype.useInputsPlaceholder=!0},8524:function(t,e,i){"use strict";i.d(e,{checkUnsplittableBox:function(){return n}});var o=i(23211);function n(t,e,i){return!!o.Dom.canSplitBlock(i)||(o.Dom.before(t,e.createInside.element("br")),!1)}},8837:function(t,e,i){"use strict";i.d(e,{onTabInsideLi:function(){return s}});var o=i(23211),n=i(28712);function s(t,e=!1){let i,r,a,l;if(!t.o.tab.tabInsideLiInsertNewList)return!1;let[c,u]=(i=t.createInside.fake(),r=t.createInside.fake(),(a=t.s.range.cloneRange()).collapse(!0),a.insertNode(i),(l=t.s.range.cloneRange()).collapse(!1),l.insertNode(r),[i,r]);try{let i,s,r,a,l,u=!!(i=o.Dom.closest(c,"li",t.editor))&&(!!e||!!o.Dom.isLeaf(i.previousElementSibling))&&(!e||!!o.Dom.closest(i,"li",t.editor))&&i;if(!u||!(s=o.Dom.closest(c,"li",t.editor))||s!==u&&!u.contains(s))return!1;let h=o.Dom.closest(u,["ol","ul"],t.editor);if(!h||e&&!o.Dom.closest(h,"li",t.editor))return!1;return e?function(t,e,i){let s=o.Dom.closest(e,"li",t.editor);(0,n.assert)(s,"tab parent li is null");let r=Array.from(e.children).filter(t=>o.Dom.isLeaf(t));o.Dom.after(s,i);let a=r.indexOf(i);if((0===a||1===r.length)&&o.Dom.safeRemove(e),a!==r.length-1){let t=e.cloneNode();o.Dom.append(i,t);for(let e=a+1;e<r.length;e+=1)o.Dom.append(t,r[e])}}(t,h,u):(r=u.previousElementSibling,(0,n.assert)(r,"tab previousElementSibling is null"),a=r.lastElementChild,(l=o.Dom.isTag(a,h.tagName)?a:t.createInside.element(h.tagName,Array.from(h.attributes).reduce((t,e)=>(t[e.name]=e.value,t),{}))).appendChild(u),a!==l&&r.appendChild(l)),!0}finally{let e=t.s.createRange();e.setStartAfter(c),e.setEndBefore(u),t.s.selectRange(e),o.Dom.safeRemove(c),o.Dom.safeRemove(u)}}},8838:function(t,e,i){"use strict";i.d(e,{Command:function(){return n}});var o=i(25045);class n{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(t,e,i,n){(0,o._)(this,"oldValue",void 0),(0,o._)(this,"newValue",void 0),(0,o._)(this,"history",void 0),(0,o._)(this,"tick",void 0),this.oldValue=t,this.newValue=e,this.history=i,this.tick=n}}},8908:function(t,e,i){"use strict";i.d(e,{form:function(){return a}});var o=i(4099);let n="jodit-image-editor",s=o.Icon.get.bind(o.Icon),r=(t,e="jodti-image-editor_active")=>t?e:"",a=(t,e)=>{let i=t.i18n.bind(t),o=(t,e,o=!0)=>`<div class="jodit-form__group">
20
20
  <label class="jodit-switcher-wrapper">
21
21
  <span class='jodit-switcher'>
22
22
  <input ${r(o,"checked")} data-ref="${e}" type="checkbox"/>
@@ -96,10 +96,10 @@
96
96
  <div class="&__spinner"></div>
97
97
  </div>
98
98
  </div>
99
- </div>`}setPrompt(t){if(t){let{jodit:e}=this,i=e.o.aiAssistant[t],{aiCommonPrefixPrompt:o,aiCommonSuffixPrompt:n}=e.o.aiAssistant;this.promptInput.value=[o,(0,l.isString)(i)?i:"",n].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(t){this.setMod("loading",!1),a.Dom.detach(this.__results),this.__aiResult=t,this.__results.appendChild(this.jodit.c.fromHTML(t)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(t){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=t,a.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let e=this.getFullElName("","hide","true");this.__results.classList.add(e),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(t){this.__submitButton.state.disabled=t,this.__tryAgainButton.state.disabled=t}__toggleInsertButton(t){this.__insertButton.state.disabled=t,this.__insertAfterButton.state.disabled=t}constructor(t,{onInsert:e,onInsertAfter:i}){super(t),(0,o._)(this,"__body",void 0),(0,o._)(this,"__buttons",void 0),(0,o._)(this,"__results",void 0),(0,o._)(this,"__spinner",void 0),(0,o._)(this,"__error",void 0),(0,o._)(this,"promptInput",void 0),(0,o._)(this,"__insertAfterButton",void 0),(0,o._)(this,"__submitButton",void 0),(0,o._)(this,"__tryAgainButton",void 0),(0,o._)(this,"__insertButton",void 0),(0,o._)(this,"__formAiAssistant",void 0),(0,o._)(this,"__aiResult",""),this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,c.Button)(t,"","Insert","primary").onAction(()=>e(this.__aiResult)),this.__insertAfterButton=(0,c.Button)(t,"","Insert After","initial").onAction(()=>i(this.__aiResult));let n=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,c.Button)(t,"ai-assistant","").onAction(n),this.__tryAgainButton=(0,c.Button)(t,"update","","initial").onAction(n),this.promptInput=new c.UITextArea(t,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});let s=new c.UIBlock(t,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new c.UIForm(t,[new c.UIBlock(t,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(e=>{this.__error.textContent="",this.setMod("loading",!0),t.e.fire("invokeAiAssistant",e.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),a.Dom.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(s.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}}(0,n.__decorate)([(0,r.watch)(":ai-assistant-response")],h.prototype,"onAiAssistentResponse",null),(0,n.__decorate)([(0,r.watch)(":ai-assistant-error")],h.prototype,"onAiAssistentError",null),(0,n.__decorate)([(0,r.watch)("promptInput:change")],h.prototype,"onChangePromptValue",null),h=(0,n.__decorate)([s.component],h)},13564:function(t,e,i){"use strict";i.r(e),i.d(e,{angle_down:function(){return n.a},angle_left:function(){return r.a},angle_right:function(){return l.a},angle_up:function(){return u.a},bin:function(){return d.a},cancel:function(){return p.a},center:function(){return g.a},check:function(){return v.a},chevron:function(){return y.a},dots:function(){return S.a},eye:function(){return E.a},file:function(){return T.a},folder:function(){return x.a},info_circle:function(){return j.a},left:function(){return A.a},lock:function(){return N.a},ok:function(){return z.a},pencil:function(){return B.a},plus:function(){return q.a},resize_handler:function(){return H.a},right:function(){return W.a},save:function(){return $.a},settings:function(){return G.a},unlock:function(){return K.a},update:function(){return Z.a},upload:function(){return tt.a},valign:function(){return ti.a}});var o=i(88497),n=i.n(o),s=i(91882),r=i.n(s),a=i(14305),l=i.n(a),c=i(58446),u=i.n(c),h=i(39858),d=i.n(h),f=i(70881),p=i.n(f),m=i(60636),g=i.n(m),_=i(32013),v=i.n(_),b=i(45512),y=i.n(b),w=i(80347),S=i.n(w),C=i(95134),E=i.n(C),I=i(70697),T=i.n(I),D=i(49983),x=i.n(D),k=i(98964),j=i.n(k),L=i(8136),A=i.n(L),P=i(94806),N=i.n(P),M=i(31365),z=i.n(M),R=i(44636),B=i.n(R),O=i(36327),q=i.n(O),F=i(53328),H=i.n(F),U=i(98711),W=i.n(U),V=i(53808),$=i.n(V),Y=i(20784),G=i.n(Y),X=i(70999),K=i.n(X),J=i(45244),Z=i.n(J),Q=i(99876),tt=i.n(Q),te=i(14006),ti=i.n(te)},13810:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(91206);i(18929);var h=i(82495);class d extends u.Plugin{onInsertHTML(t){if(!this.j.o.readonly&&!this.j.isEditorMode())return this.sourceEditor?.insertRaw(t),this.toWYSIWYG(),!1}fromWYSIWYG(t=!1){if(!this.__lock||!0===t){this.__lock=!0;let t=this.j.getEditorValue(!1,s.SOURCE_CONSUMER);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let t=this.getMirrorValue();t!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=t,this.__lock=!1,this.__oldMirrorValue=t)}getNormalPosition(t,e){for(e=e.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,t=>{let e="";for(let i=0;i<t.length;i+=1)e+=s.INVISIBLE_SPACE;return e});t>0&&e[t]===s.INVISIBLE_SPACE;)t--;let i=t;for(;i>0;){if("<"===e[--i]&&void 0!==e[i+1]&&e[i+1].match(/[\w/]+/i))return i;if(">"===e[i])break}return t}clnInv(t){return t.replace(s.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(t){if("selectall"===t.toLowerCase()&&this.j.getRealMode()===s.MODE_SOURCE)return this.sourceEditor?.selectAll(),!1}getMirrorValue(){return this.sourceEditor?.getValue()||""}setMirrorValue(t){this.sourceEditor?.setValue(t)}setFocusToMirror(){this.sourceEditor?.focus()}saveSelection(){if(this.j.getRealMode()===s.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let t=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let e=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(t.substring(0,i)+this.clnInv(e.outerHTML)+t.substring(i))}else{let e=this.j.s.marker(!0),i=this.j.s.marker(!1),o=this.getNormalPosition(this.getSelectionStart(),t),n=this.getNormalPosition(this.getSelectionEnd(),t);this.setMirrorValue(t.slice(0,o)+this.clnInv(e.outerHTML)+t.slice(o,n)+this.clnInv(i.outerHTML)+t.slice(n))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===s.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let t=this.getMirrorValue(),e=0,i=0;try{if(t=t.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",t);(0,c.isString)(e)&&(t=e)}if(i=e=t.indexOf(this.tempMarkerStart),t=t.replace(this.tempMarkerStartReg,""),-1!==e){let e=t.indexOf(this.tempMarkerEnd);-1!==e&&(i=e)}t=t.replace(this.tempMarkerEndReg,"")}finally{t=t.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(t),this.setMirrorSelectionRange(e,i),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(t,e){this.sourceEditor?.setSelectionRange(t,e)}onReadonlyReact(){this.sourceEditor?.setReadOnly(this.j.o.readonly)}afterInit(t){if(this.mirrorContainer=t.c.div("jodit-source"),t.workplace.appendChild(this.mirrorContainer),t.e.on("afterAddPlace changePlace afterInit",()=>{t.workplace.appendChild(this.mirrorContainer)}),this.sourceEditor=(0,h.createSourceEditor)("area",t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),t.e.on(t.ow,"keydown",t=>{t.key===s.KEY_ESC&&this.sourceEditor?.isFocused&&this.sourceEditor.blur()}),this.onReadonlyReact(),t.e.on("placeholder.source",t=>{this.sourceEditor?.setPlaceHolder(t)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",t=>t),t.o.beautifyHTML){let e=()=>{if(t.isInDestruct)return!1;let e=t.ow.html_beautify;return!!e&&!t.isInDestruct&&(t.events?.off("beautifyHTML").on("beautifyHTML",t=>e(t)),!0)};e()||(0,c.loadNext)(t,t.o.beautifyHTMLCDNUrlsJS).then(e,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(t)}syncValueFromWYSIWYG(t=!1){let e=this.j;(e.getMode()===s.MODE_SPLIT||e.getMode()===s.MODE_SOURCE)&&this.fromWYSIWYG(t)}initSourceEditor(t){if("area"!==t.o.sourceEditor){let e=(0,h.createSourceEditor)(t.o.sourceEditor,t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);e.onReadyAlways(()=>{this.sourceEditor?.destruct(),this.sourceEditor=e,this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)})}else this.sourceEditor?.onReadyAlways(()=>{this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)})}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),a.Dom.safeRemove(this.mirrorContainer)}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"source",group:"source"}]),(0,o._)(this,"sourceEditor",void 0),(0,o._)(this,"mirrorContainer",void 0),(0,o._)(this,"__lock",!1),(0,o._)(this,"__oldMirrorValue",""),(0,o._)(this,"tempMarkerStart","{start-jodit-selection}"),(0,o._)(this,"tempMarkerStartReg",/{start-jodit-selection}/g),(0,o._)(this,"tempMarkerEnd","{end-jodit-selection}"),(0,o._)(this,"tempMarkerEndReg",/{end-jodit-selection}/g),(0,o._)(this,"getSelectionStart",()=>this.sourceEditor?.getSelectionStart()??0),(0,o._)(this,"getSelectionEnd",()=>this.sourceEditor?.getSelectionEnd()??0)}}(0,n.__decorate)([(0,r.watch)(":insertHTML.source")],d.prototype,"onInsertHTML",null),(0,n.__decorate)([r.autobind],d.prototype,"fromWYSIWYG",null),(0,n.__decorate)([r.autobind],d.prototype,"toWYSIWYG",null),(0,n.__decorate)([r.autobind],d.prototype,"getNormalPosition",null),(0,n.__decorate)([(0,r.watch)(":beforeCommand.source")],d.prototype,"onSelectAll",null),(0,n.__decorate)([(0,r.watch)(":beforeSetMode.source")],d.prototype,"saveSelection",null),(0,n.__decorate)([(0,r.watch)(":afterSetMode.source")],d.prototype,"removeSelection",null),(0,n.__decorate)([r.autobind],d.prototype,"setMirrorSelectionRange",null),(0,n.__decorate)([(0,r.watch)(":readonly.source")],d.prototype,"onReadonlyReact",null),(0,n.__decorate)([r.autobind],d.prototype,"syncValueFromWYSIWYG",null),l.pluginSystem.add("source",d)},14006:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg>'},14017:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},14228:function(t,e,i){"use strict";function o(t="Aborted"){return new DOMException(t,"AbortError")}i.d(e,{abort:function(){return o},isAbort:function(){return n}});let n=i(72068).isAbortError},14248:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(60936);i(51822);let h="table_processor_observer-resize";class d extends u.Plugin{get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout(()=>{a.Dom.safeRemove(this.resizeHandler)},{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(t){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=t.clientX,this.j.lock(h),this.resizeHandler.classList.add("jodit-table-resizer_moved");let e,i=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)i=this.workTable.parentNode.getBoundingClientRect(),this.minX=i.left,this.maxX=this.minX+i.width;else{let t=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,(i,o,n)=>{t[1]===n&&(e=i.getBoundingClientRect(),this.minX=Math.max(e.left+s.NEARBY/2,this.minX)),t[1]+(this.isRTL?-1:1)===n&&(e=i.getBoundingClientRect(),this.maxX=Math.min(e.left+e.width-s.NEARBY/2,this.maxX))})}return!1}onMouseMove(t){if(!this.drag)return;this.j.e.fire("closeAllPopups");let e=t.clientX,i=(0,c.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);e<this.minX&&(e=this.minX),e>this.maxX&&(e=this.maxX),this.resizeDelta=e-this.startX+(this.j.o.iframe?i.left:0),this.resizeHandler.style.left=e-(this.j.o.iframe?0:i.left)+"px";let o=this.j.s.sel;o&&o.removeAllRanges()}onMouseUp(t){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==t.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){let t=this.resizeDelta,e=[],i=this.module;i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,this.workCell,!0)[1],t,!0,e);let o=(0,c.call)(this.isRTL?a.Dom.prev:a.Dom.next,this.workCell,a.Dom.isCell,this.workCell.parentNode);i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,o)[1],-t,!1,e)}resizeTable(){let t=this.resizeDelta*(this.isRTL?-1:1),e=this.workTable.offsetWidth,i=(0,c.getContentWidth)(this.workTable.parentNode,this.j.ew),o=!this.wholeTable;if(this.isRTL?!o:o)this.workTable.style.width=(e+t)/i*100+"%";else{let o=this.isRTL?"marginRight":"marginLeft",n=parseInt(this.j.ew.getComputedStyle(this.workTable)[o]||"0",10);this.workTable.style.width=(e-t)/i*100+"%",this.workTable.style[o]=(n+t)/i*100+"%"}}setWorkCell(t,e=null){this.wholeTable=e,this.workCell=t,this.workTable=a.Dom.up(t,t=>a.Dom.isTag(t,"table"),this.j.editor)}calcHandlePosition(t,e,i=0,o=0){let n=(0,c.offset)(e,this.j,this.j.ed);if(i>s.NEARBY&&i<n.width-s.NEARBY)return void this.hideResizeHandle();let r=(0,c.offset)(this.j.workplace,this.j,this.j.od,!0),l=(0,c.offset)(t,this.j,this.j.ed);if(this.resizeHandler.style.left=(i<=s.NEARBY?n.left:n.left+n.width)-r.left+o+"px",Object.assign(this.resizeHandler.style,{height:l.height+"px",top:l.top-r.top+"px"}),this.showResizeHandle(),i<=s.NEARBY){let t=(0,c.call)(this.isRTL?a.Dom.next:a.Dom.prev,e,a.Dom.isCell,e.parentNode);this.setWorkCell(t||e,!t||null)}else{let t=(0,c.call)(this.isRTL?a.Dom.prev:a.Dom.next,e,a.Dom.isCell,e.parentNode);this.setWorkCell(e,!!t&&null)}}afterInit(t){t.o.tableAllowCellResize&&t.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",()=>{(0,c.$$)("table",t.editor).forEach(this.observe)}).on(this.j.ow,"scroll.resize-cells",()=>{if(!this.drag)return;let e=a.Dom.up(this.workCell,t=>a.Dom.isTag(t,"table"),t.editor);if(e){let t=e.getBoundingClientRect();this.resizeHandler.style.top=t.top+"px"}}).on("beforeSetMode.resize-cells",()=>{let e=this.module;e.getAllSelectedCells().forEach(i=>{e.removeSelection(i),e.normalizeTable(a.Dom.closest(i,"table",t.editor))})})}observe(t){(0,c.dataBind)(t,h)||((0,c.dataBind)(t,h,!0),this.j.e.on(t,"mouseleave.resize-cells",t=>{this.resizeHandler&&this.resizeHandler!==t.relatedTarget&&this.hideResizeHandle()}).on(t,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle(e=>{if(this.j.isLocked)return;let i=a.Dom.up(e.target,a.Dom.isCell,t);i&&this.calcHandlePosition(t,i,e.offsetX)},{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(t){t.events&&(t.e.off(this.j.ow,".resize-cells"),t.e.off(".resize-cells"))}constructor(...t){super(...t),(0,o._)(this,"selectMode",!1),(0,o._)(this,"resizeDelta",0),(0,o._)(this,"resizeHandler",void 0),(0,o._)(this,"createResizeHandle",()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",()=>{this.j.async.clearTimeout(this.hideTimeout)}))}),(0,o._)(this,"hideTimeout",0),(0,o._)(this,"drag",!1),(0,o._)(this,"wholeTable",void 0),(0,o._)(this,"workCell",void 0),(0,o._)(this,"workTable",void 0),(0,o._)(this,"minX",0),(0,o._)(this,"maxX",0),(0,o._)(this,"startX",0)}}(0,n.__decorate)([r.autobind],d.prototype,"onHandleMouseDown",null),(0,n.__decorate)([r.autobind],d.prototype,"onMouseMove",null),(0,n.__decorate)([r.autobind],d.prototype,"onMouseUp",null),(0,n.__decorate)([r.autobind],d.prototype,"observe",null),l.pluginSystem.add("resizeCells",d)},14282:function(t,e,i){"use strict";i.r(e),i.d(e,{checkBlockNesting:function(){return o.checkBlockNesting}});var o=i(34693)},14305:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},14774:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(51676),r=i(68616),a=i(28077),l=i(72068),c=i(18855);i(77227);var u=i(13030),h=i(44599);class d extends c.Plugin{get __dialog(){return this.jodit.dlg({buttons:["fullsize","dialog.close"],closeOnClickOverlay:!0,closeOnEsc:!0,resizable:!1,draggable:!0,minHeight:160})}get __container(){let{jodit:t,__dialog:e}=this;return new u.UiAiAssistant(t,{onInsertAfter(i){t.s.focus(),t.s.setCursorAfter(t.s.current()),t.s.insertHTML(i),e.close()},onInsert(i){t.s.focus(),t.s.insertHTML(i),e.close()}})}afterInit(){}onGenerateAiAssistantForm(t){this.__dialog.open(this.__container,"AI Assistant"),this.__container.setPrompt(t)}onInvokeAiAssistant(t){let{jodit:e}=this;e.s.focus();let i=e.s.html;e.async.promise(async(o,n)=>{try{let n=await e.o.aiAssistant.aiAssistantCallback(t,i);o(n)}catch(t){n(t)}}).then(t=>{e.e.fire("ai-assistant-response",t)}).catch(t=>{(0,l.isAbortError)(t)||(e.message.error(t.message),e.e.fire("ai-assistant-error",t.message))})}beforeDestruct(t){(0,s.cached)(this,"__container")?.destruct(),(0,s.cached)(this,"__dialog")?.destruct()}constructor(t){super(t),(0,o._)(this,"buttons",[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}]),(0,a.extendLang)(h)}}(0,n.__decorate)([s.cache],d.prototype,"__dialog",null),(0,n.__decorate)([s.cache],d.prototype,"__container",null),(0,n.__decorate)([(0,r.watch)(":generateAiAssistantForm.ai-assistant")],d.prototype,"onGenerateAiAssistantForm",null),(0,n.__decorate)([(0,r.watch)(":invokeAiAssistant")],d.prototype,"onInvokeAiAssistant",null),a.pluginSystem.add("ai-assistant",d)},14841:function(t,e,i){"use strict";i.d(e,{removeExtraBr:function(){return s}});var o=i(23211);let n=new Set(["table","pre","blockquote","code"]);function s(t,e){if(!t.o.dtd.removeExtraBr||o.Dom.isTag(e,"br"))return;let i=o.Dom.furthest(e,o.Dom.isBlock,t.editor);if(i&&!o.Dom.isTag(i,n)){let i=o.Dom.isTag(e,"br")?e:o.Dom.findNotEmptySibling(e,!1);if(!o.Dom.isTag(i,"br"))return;t.s.setCursorBefore(i),o.Dom.safeRemove(i)}}},14907:function(t,e,i){"use strict";i(5266).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},15200:function(t,e,i){"use strict";i.d(e,{findMostNestedNeighbor:function(){return n},getMoveFilter:function(){return s}});var o=i(27795);function n(t,e,i,s=!1){let r=t=>e?t.firstChild:t.lastChild,a=o.Dom.findNotEmptyNeighbor(t,!e,i);if(s&&o.Dom.isElement(a)&&!o.Dom.isInlineBlock(a))return null;if(a)do{if(!r(a))return a;a=r(a)}while(a)return null}function s(t){return e=>!0!==t.e.fire("backSpaceIsMovedIgnore",e)}},15367:function(t,e,i){"use strict";i.d(e,{UIButtonGroup:function(){return c}});var o=i(25045),n=i(31635),s=i(91672),r=i(28712),a=i(53681),l=i(63468);class c extends l.UIGroup{className(){return"UIButtonGroup"}render(t){return`<div>
99
+ </div>`}setPrompt(t){if(t){let{jodit:e}=this,i=e.o.aiAssistant[t],{aiCommonPrefixPrompt:o,aiCommonSuffixPrompt:n}=e.o.aiAssistant;this.promptInput.value=[o,(0,l.isString)(i)?i:"",n].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(t){this.setMod("loading",!1),a.Dom.detach(this.__results),this.__aiResult=t,this.__results.appendChild(this.jodit.c.fromHTML(t)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(t){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=t,a.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let e=this.getFullElName("","hide","true");this.__results.classList.add(e),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(t){this.__submitButton.state.disabled=t,this.__tryAgainButton.state.disabled=t}__toggleInsertButton(t){this.__insertButton.state.disabled=t,this.__insertAfterButton.state.disabled=t}constructor(t,{onInsert:e,onInsertAfter:i}){super(t),(0,o._)(this,"__body",void 0),(0,o._)(this,"__buttons",void 0),(0,o._)(this,"__results",void 0),(0,o._)(this,"__spinner",void 0),(0,o._)(this,"__error",void 0),(0,o._)(this,"promptInput",void 0),(0,o._)(this,"__insertAfterButton",void 0),(0,o._)(this,"__submitButton",void 0),(0,o._)(this,"__tryAgainButton",void 0),(0,o._)(this,"__insertButton",void 0),(0,o._)(this,"__formAiAssistant",void 0),(0,o._)(this,"__aiResult",""),this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,c.Button)(t,"","Insert","primary").onAction(()=>e(this.__aiResult)),this.__insertAfterButton=(0,c.Button)(t,"","Insert After","initial").onAction(()=>i(this.__aiResult));const n=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,c.Button)(t,"ai-assistant","").onAction(n),this.__tryAgainButton=(0,c.Button)(t,"update","","initial").onAction(n),this.promptInput=new c.UITextArea(t,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const s=new c.UIBlock(t,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new c.UIForm(t,[new c.UIBlock(t,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(e=>{this.__error.textContent="",this.setMod("loading",!0),t.e.fire("invokeAiAssistant",e.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),a.Dom.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(s.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}}(0,n.__decorate)([(0,r.watch)(":ai-assistant-response")],h.prototype,"onAiAssistentResponse",null),(0,n.__decorate)([(0,r.watch)(":ai-assistant-error")],h.prototype,"onAiAssistentError",null),(0,n.__decorate)([(0,r.watch)("promptInput:change")],h.prototype,"onChangePromptValue",null),h=(0,n.__decorate)([s.component],h)},13564:function(t,e,i){"use strict";i.r(e),i.d(e,{angle_down:function(){return n.a},angle_left:function(){return r.a},angle_right:function(){return l.a},angle_up:function(){return u.a},bin:function(){return d.a},cancel:function(){return p.a},center:function(){return g.a},check:function(){return v.a},chevron:function(){return y.a},dots:function(){return S.a},eye:function(){return E.a},file:function(){return T.a},folder:function(){return D.a},info_circle:function(){return j.a},left:function(){return P.a},lock:function(){return N.a},ok:function(){return z.a},pencil:function(){return B.a},plus:function(){return q.a},resize_handler:function(){return H.a},right:function(){return W.a},save:function(){return $.a},settings:function(){return G.a},unlock:function(){return X.a},update:function(){return Z.a},upload:function(){return tt.a},valign:function(){return ti.a}});var o=i(88497),n=i.n(o),s=i(91882),r=i.n(s),a=i(14305),l=i.n(a),c=i(58446),u=i.n(c),h=i(39858),d=i.n(h),f=i(70881),p=i.n(f),m=i(60636),g=i.n(m),_=i(32013),v=i.n(_),b=i(45512),y=i.n(b),w=i(80347),S=i.n(w),C=i(95134),E=i.n(C),I=i(70697),T=i.n(I),x=i(49983),D=i.n(x),k=i(98964),j=i.n(k),L=i(8136),P=i.n(L),A=i(94806),N=i.n(A),M=i(31365),z=i.n(M),R=i(44636),B=i.n(R),O=i(36327),q=i.n(O),F=i(53328),H=i.n(F),U=i(98711),W=i.n(U),V=i(53808),$=i.n(V),Y=i(20784),G=i.n(Y),K=i(70999),X=i.n(K),J=i(45244),Z=i.n(J),Q=i(99876),tt=i.n(Q),te=i(14006),ti=i.n(te)},13810:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(91206);i(18929);var h=i(82495);class d extends u.Plugin{onInsertHTML(t){if(!this.j.o.readonly&&!this.j.isEditorMode())return this.sourceEditor?.insertRaw(t),this.toWYSIWYG(),!1}fromWYSIWYG(t=!1){if(!this.__lock||!0===t){this.__lock=!0;let t=this.j.getEditorValue(!1,s.SOURCE_CONSUMER);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let t=this.getMirrorValue();t!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=t,this.__lock=!1,this.__oldMirrorValue=t)}getNormalPosition(t,e){for(e=e.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,t=>{let e="";for(let i=0;i<t.length;i+=1)e+=s.INVISIBLE_SPACE;return e});t>0&&e[t]===s.INVISIBLE_SPACE;)t--;let i=t;for(;i>0;){if("<"===e[--i]&&void 0!==e[i+1]&&e[i+1].match(/[\w/]+/i))return i;if(">"===e[i])break}return t}clnInv(t){return t.replace(s.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(t){if("selectall"===t.toLowerCase()&&this.j.getRealMode()===s.MODE_SOURCE)return this.sourceEditor?.selectAll(),!1}getMirrorValue(){return this.sourceEditor?.getValue()||""}setMirrorValue(t){this.sourceEditor?.setValue(t)}setFocusToMirror(){this.sourceEditor?.focus()}saveSelection(){if(this.j.getRealMode()===s.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let t=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let e=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(t.substring(0,i)+this.clnInv(e.outerHTML)+t.substring(i))}else{let e=this.j.s.marker(!0),i=this.j.s.marker(!1),o=this.getNormalPosition(this.getSelectionStart(),t),n=this.getNormalPosition(this.getSelectionEnd(),t);this.setMirrorValue(t.slice(0,o)+this.clnInv(e.outerHTML)+t.slice(o,n)+this.clnInv(i.outerHTML)+t.slice(n))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===s.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let t=this.getMirrorValue(),e=0,i=0;try{if(t=t.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",t);(0,c.isString)(e)&&(t=e)}if(i=e=t.indexOf(this.tempMarkerStart),t=t.replace(this.tempMarkerStartReg,""),-1!==e){let e=t.indexOf(this.tempMarkerEnd);-1!==e&&(i=e)}t=t.replace(this.tempMarkerEndReg,"")}finally{t=t.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(t),this.setMirrorSelectionRange(e,i),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(t,e){this.sourceEditor?.setSelectionRange(t,e)}onReadonlyReact(){this.sourceEditor?.setReadOnly(this.j.o.readonly)}afterInit(t){if(this.mirrorContainer=t.c.div("jodit-source"),t.workplace.appendChild(this.mirrorContainer),t.e.on("afterAddPlace changePlace afterInit",()=>{t.workplace.appendChild(this.mirrorContainer)}),this.sourceEditor=(0,h.createSourceEditor)("area",t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),t.e.on(t.ow,"keydown",t=>{t.key===s.KEY_ESC&&this.sourceEditor?.isFocused&&this.sourceEditor.blur()}),this.onReadonlyReact(),t.e.on("placeholder.source",t=>{this.sourceEditor?.setPlaceHolder(t)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",t=>t),t.o.beautifyHTML){let e=()=>{if(t.isInDestruct)return!1;let e=t.ow.html_beautify;return!!e&&!t.isInDestruct&&(t.events?.off("beautifyHTML").on("beautifyHTML",t=>e(t)),!0)};e()||(0,c.loadNext)(t,t.o.beautifyHTMLCDNUrlsJS).then(e,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(t)}syncValueFromWYSIWYG(t=!1){let e=this.j;(e.getMode()===s.MODE_SPLIT||e.getMode()===s.MODE_SOURCE)&&this.fromWYSIWYG(t)}initSourceEditor(t){if("area"!==t.o.sourceEditor){let e=(0,h.createSourceEditor)(t.o.sourceEditor,t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);e.onReadyAlways(()=>{this.sourceEditor?.destruct(),this.sourceEditor=e,this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)})}else this.sourceEditor?.onReadyAlways(()=>{this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)})}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),a.Dom.safeRemove(this.mirrorContainer)}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"source",group:"source"}]),(0,o._)(this,"sourceEditor",void 0),(0,o._)(this,"mirrorContainer",void 0),(0,o._)(this,"__lock",!1),(0,o._)(this,"__oldMirrorValue",""),(0,o._)(this,"tempMarkerStart","{start-jodit-selection}"),(0,o._)(this,"tempMarkerStartReg",/{start-jodit-selection}/g),(0,o._)(this,"tempMarkerEnd","{end-jodit-selection}"),(0,o._)(this,"tempMarkerEndReg",/{end-jodit-selection}/g),(0,o._)(this,"getSelectionStart",()=>this.sourceEditor?.getSelectionStart()??0),(0,o._)(this,"getSelectionEnd",()=>this.sourceEditor?.getSelectionEnd()??0)}}(0,n.__decorate)([(0,r.watch)(":insertHTML.source")],d.prototype,"onInsertHTML",null),(0,n.__decorate)([r.autobind],d.prototype,"fromWYSIWYG",null),(0,n.__decorate)([r.autobind],d.prototype,"toWYSIWYG",null),(0,n.__decorate)([r.autobind],d.prototype,"getNormalPosition",null),(0,n.__decorate)([(0,r.watch)(":beforeCommand.source")],d.prototype,"onSelectAll",null),(0,n.__decorate)([(0,r.watch)(":beforeSetMode.source")],d.prototype,"saveSelection",null),(0,n.__decorate)([(0,r.watch)(":afterSetMode.source")],d.prototype,"removeSelection",null),(0,n.__decorate)([r.autobind],d.prototype,"setMirrorSelectionRange",null),(0,n.__decorate)([(0,r.watch)(":readonly.source")],d.prototype,"onReadonlyReact",null),(0,n.__decorate)([r.autobind],d.prototype,"syncValueFromWYSIWYG",null),l.pluginSystem.add("source",d)},14006:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg>'},14017:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},14228:function(t,e,i){"use strict";function o(t="Aborted"){return new DOMException(t,"AbortError")}i.d(e,{abort:function(){return o},isAbort:function(){return n}});let n=i(72068).isAbortError},14248:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(60936);i(51822);let h="table_processor_observer-resize";class d extends u.Plugin{get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout(()=>{a.Dom.safeRemove(this.resizeHandler)},{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(t){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=t.clientX,this.j.lock(h),this.resizeHandler.classList.add("jodit-table-resizer_moved");let e,i=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)i=this.workTable.parentNode.getBoundingClientRect(),this.minX=i.left,this.maxX=this.minX+i.width;else{let t=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,(i,o,n)=>{t[1]===n&&(e=i.getBoundingClientRect(),this.minX=Math.max(e.left+s.NEARBY/2,this.minX)),t[1]+(this.isRTL?-1:1)===n&&(e=i.getBoundingClientRect(),this.maxX=Math.min(e.left+e.width-s.NEARBY/2,this.maxX))})}return!1}onMouseMove(t){if(!this.drag)return;this.j.e.fire("closeAllPopups");let e=t.clientX,i=(0,c.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);e<this.minX&&(e=this.minX),e>this.maxX&&(e=this.maxX),this.resizeDelta=e-this.startX+(this.j.o.iframe?i.left:0),this.resizeHandler.style.left=e-(this.j.o.iframe?0:i.left)+"px";let o=this.j.s.sel;o&&o.removeAllRanges()}onMouseUp(t){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==t.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){let t=this.resizeDelta,e=[],i=this.module;i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,this.workCell,!0)[1],t,!0,e);let o=(0,c.call)(this.isRTL?a.Dom.prev:a.Dom.next,this.workCell,a.Dom.isCell,this.workCell.parentNode);i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,o)[1],-t,!1,e)}resizeTable(){let t=this.resizeDelta*(this.isRTL?-1:1),e=this.workTable.offsetWidth,i=(0,c.getContentWidth)(this.workTable.parentNode,this.j.ew),o=!this.wholeTable;if(this.isRTL?!o:o)this.workTable.style.width=(e+t)/i*100+"%";else{let o=this.isRTL?"marginRight":"marginLeft",n=parseInt(this.j.ew.getComputedStyle(this.workTable)[o]||"0",10);this.workTable.style.width=(e-t)/i*100+"%",this.workTable.style[o]=(n+t)/i*100+"%"}}setWorkCell(t,e=null){this.wholeTable=e,this.workCell=t,this.workTable=a.Dom.up(t,t=>a.Dom.isTag(t,"table"),this.j.editor)}calcHandlePosition(t,e,i=0,o=0){let n=(0,c.offset)(e,this.j,this.j.ed);if(i>s.NEARBY&&i<n.width-s.NEARBY)return void this.hideResizeHandle();let r=(0,c.offset)(this.j.workplace,this.j,this.j.od,!0),l=(0,c.offset)(t,this.j,this.j.ed);if(this.resizeHandler.style.left=(i<=s.NEARBY?n.left:n.left+n.width)-r.left+o+"px",Object.assign(this.resizeHandler.style,{height:l.height+"px",top:l.top-r.top+"px"}),this.showResizeHandle(),i<=s.NEARBY){let t=(0,c.call)(this.isRTL?a.Dom.next:a.Dom.prev,e,a.Dom.isCell,e.parentNode);this.setWorkCell(t||e,!t||null)}else{let t=(0,c.call)(this.isRTL?a.Dom.prev:a.Dom.next,e,a.Dom.isCell,e.parentNode);this.setWorkCell(e,!!t&&null)}}afterInit(t){t.o.tableAllowCellResize&&t.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",()=>{(0,c.$$)("table",t.editor).forEach(this.observe)}).on(this.j.ow,"scroll.resize-cells",()=>{if(!this.drag)return;let e=a.Dom.up(this.workCell,t=>a.Dom.isTag(t,"table"),t.editor);if(e){let t=e.getBoundingClientRect();this.resizeHandler.style.top=t.top+"px"}}).on("beforeSetMode.resize-cells",()=>{let e=this.module;e.getAllSelectedCells().forEach(i=>{e.removeSelection(i),e.normalizeTable(a.Dom.closest(i,"table",t.editor))})})}observe(t){(0,c.dataBind)(t,h)||((0,c.dataBind)(t,h,!0),this.j.e.on(t,"mouseleave.resize-cells",t=>{this.resizeHandler&&this.resizeHandler!==t.relatedTarget&&this.hideResizeHandle()}).on(t,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle(e=>{if(this.j.isLocked)return;let i=a.Dom.up(e.target,a.Dom.isCell,t);i&&this.calcHandlePosition(t,i,e.offsetX)},{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(t){t.events&&(t.e.off(this.j.ow,".resize-cells"),t.e.off(".resize-cells"))}constructor(...t){super(...t),(0,o._)(this,"selectMode",!1),(0,o._)(this,"resizeDelta",0),(0,o._)(this,"resizeHandler",void 0),(0,o._)(this,"createResizeHandle",()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",()=>{this.j.async.clearTimeout(this.hideTimeout)}))}),(0,o._)(this,"hideTimeout",0),(0,o._)(this,"drag",!1),(0,o._)(this,"wholeTable",void 0),(0,o._)(this,"workCell",void 0),(0,o._)(this,"workTable",void 0),(0,o._)(this,"minX",0),(0,o._)(this,"maxX",0),(0,o._)(this,"startX",0)}}(0,n.__decorate)([r.autobind],d.prototype,"onHandleMouseDown",null),(0,n.__decorate)([r.autobind],d.prototype,"onMouseMove",null),(0,n.__decorate)([r.autobind],d.prototype,"onMouseUp",null),(0,n.__decorate)([r.autobind],d.prototype,"observe",null),l.pluginSystem.add("resizeCells",d)},14282:function(t,e,i){"use strict";i.r(e),i.d(e,{checkBlockNesting:function(){return o.checkBlockNesting}});var o=i(34693)},14305:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},14774:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(51676),r=i(68616),a=i(28077),l=i(72068),c=i(18855);i(77227);var u=i(13030),h=i(44599);class d extends c.Plugin{get __dialog(){return this.jodit.dlg({buttons:["fullsize","dialog.close"],closeOnClickOverlay:!0,closeOnEsc:!0,resizable:!1,draggable:!0,minHeight:160})}get __container(){let{jodit:t,__dialog:e}=this;return new u.UiAiAssistant(t,{onInsertAfter(i){t.s.focus(),t.s.setCursorAfter(t.s.current()),t.s.insertHTML(i),e.close()},onInsert(i){t.s.focus(),t.s.insertHTML(i),e.close()}})}afterInit(){}onGenerateAiAssistantForm(t){this.__dialog.open(this.__container,"AI Assistant"),this.__container.setPrompt(t)}onInvokeAiAssistant(t){let{jodit:e}=this;e.s.focus();let i=e.s.html;e.async.promise(async(o,n)=>{try{let n=await e.o.aiAssistant.aiAssistantCallback(t,i);o(n)}catch(t){n(t)}}).then(t=>{e.e.fire("ai-assistant-response",t)}).catch(t=>{(0,l.isAbortError)(t)||(e.message.error(t.message),e.e.fire("ai-assistant-error",t.message))})}beforeDestruct(t){(0,s.cached)(this,"__container")?.destruct(),(0,s.cached)(this,"__dialog")?.destruct()}constructor(t){super(t),(0,o._)(this,"buttons",[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}]),(0,a.extendLang)(h)}}(0,n.__decorate)([s.cache],d.prototype,"__dialog",null),(0,n.__decorate)([s.cache],d.prototype,"__container",null),(0,n.__decorate)([(0,r.watch)(":generateAiAssistantForm.ai-assistant")],d.prototype,"onGenerateAiAssistantForm",null),(0,n.__decorate)([(0,r.watch)(":invokeAiAssistant")],d.prototype,"onInvokeAiAssistant",null),a.pluginSystem.add("ai-assistant",d)},14841:function(t,e,i){"use strict";i.d(e,{removeExtraBr:function(){return s}});var o=i(23211);let n=new Set(["table","pre","blockquote","code"]);function s(t,e){if(!t.o.dtd.removeExtraBr||o.Dom.isTag(e,"br"))return;let i=o.Dom.furthest(e,o.Dom.isBlock,t.editor);if(i&&!o.Dom.isTag(i,n)){let i=o.Dom.isTag(e,"br")?e:o.Dom.findNotEmptySibling(e,!1);if(!o.Dom.isTag(i,"br"))return;t.s.setCursorBefore(i),o.Dom.safeRemove(i)}}},14907:function(t,e,i){"use strict";i(5266).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},15200:function(t,e,i){"use strict";i.d(e,{findMostNestedNeighbor:function(){return n},getMoveFilter:function(){return s}});var o=i(27795);function n(t,e,i,s=!1){let r=t=>e?t.firstChild:t.lastChild,a=o.Dom.findNotEmptyNeighbor(t,!e,i);if(s&&o.Dom.isElement(a)&&!o.Dom.isInlineBlock(a))return null;if(a)do{if(!r(a))return a;a=r(a)}while(a)return null}function s(t){return e=>!0!==t.e.fire("backSpaceIsMovedIgnore",e)}},15367:function(t,e,i){"use strict";i.d(e,{UIButtonGroup:function(){return c}});var o=i(25045),n=i(31635),s=i(91672),r=i(28712),a=i(53681),l=i(63468);class c extends l.UIGroup{className(){return"UIButtonGroup"}render(t){return`<div>
100
100
  <div class="&__label">~${t.label}~</div>
101
101
  <div class="&__options"></div>
102
- </div>`}appendChildToContainer(t){let e=this.getElm("options");(0,r.assert)(null!=e,"Options does not exist"),e.appendChild(t)}select(t){this.elements.forEach((e,i)=>{i===t||e.state.value===t?e.state.activated=!0:this.options.radio&&(e.state.activated=!1)});let e=this.elements.filter(t=>t.state.activated).map(t=>({text:t.state.text,value:t.state.value}));this.jodit.e.fire(this,"select",e),this.options.onChange?.(e)}constructor(t,e={radio:!0}){super(t,e.options?.map(e=>{let i=new a.UIButton(t,{text:e.text,value:e.value,variant:"primary"});return i.onAction(()=>{this.select(e.value)}),i}),e),(0,o._)(this,"options",void 0),this.options=e,this.select(e.value??0)}}c=(0,n.__decorate)([s.component],c)},15753:function(t,e,i){"use strict";i.d(e,{ColorPickerWidget:function(){return o.ColorPickerWidget},FileSelectorWidget:function(){return n.FileSelectorWidget},TabsWidget:function(){return s.TabsWidget}});var o=i(72348),n=i(18762),s=i(89636)},15982:function(t,e,i){"use strict";i.d(e,{findControlType:function(){return r},getControlType:function(){return s}});var o=i(65946),n=i(5266);function s(t,e){let i;return e||(e=n.Config.defaultOptions.controls),(0,o.isString)(t)?i=r(t,e)||{name:t,command:t,tooltip:t}:void 0!==e[(i={name:"empty",...(0,o.ConfigFlatten)(t)}).name]&&(i={...(0,o.ConfigFlatten)(e[i.name]),...(0,o.ConfigFlatten)(i)}),i}function r(t,e){let[i,n]=t.split(/\./),s=e;return null!=n?void 0!==e[i]&&(s=e[i]):n=i,s[n]?{name:n,...(0,o.ConfigFlatten)(s[n])}:void 0}},16849:function(t,e,i){"use strict";i.d(e,{alignElement:function(){return a},clearAlign:function(){return r},hAlignElement:function(){return s}});var o=i(27795),n=i(80991);function s(t,e){e&&"normal"!==e?"center"!==e?((0,n.css)(t,"float",e),(0,n.clearCenterAlign)(t)):(0,n.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,n.css)(t,"float")&&-1!==["right","left"].indexOf((0,n.css)(t,"float").toString().toLowerCase())&&(0,n.css)(t,"float",""),(0,n.clearCenterAlign)(t))}function r(t){o.Dom.each(t,t=>{o.Dom.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))})}function a(t,e){if(o.Dom.isNode(e)&&o.Dom.isElement(e))switch(r(e),t.toLowerCase()){case"justifyfull":e.style.textAlign="justify";break;case"justifyright":e.style.textAlign="right";break;case"justifyleft":e.style.textAlign="left";break;case"justifycenter":e.style.textAlign="center"}}},16964:function(t,e,i){"use strict";i.d(e,{Component:function(){return o.Component},STATUSES:function(){return n.STATUSES},ViewComponent:function(){return s.ViewComponent}});var o=i(80251),n=i(69364),s=i(59609)},17306:function(t,e,i){"use strict";i.d(e,{UIImagePositionTab:function(){return p}});var o=i(25045),n=i(31635),s=i(91672),r=i(29200),a=i(68616),l=i(65946),c=i(85932),u=i(7909),h=i(96007),d=i(29434),f=i(10808);class p extends h.UIElement{className(){return"UIImagePositionTab"}render({availableClasses:t}){return`<div class="jodit-form__group &__editMargins">
102
+ </div>`}appendChildToContainer(t){let e=this.getElm("options");(0,r.assert)(null!=e,"Options does not exist"),e.appendChild(t)}select(t){this.elements.forEach((e,i)=>{i===t||e.state.value===t?e.state.activated=!0:this.options.radio&&(e.state.activated=!1)});let e=this.elements.filter(t=>t.state.activated).map(t=>({text:t.state.text,value:t.state.value}));this.jodit.e.fire(this,"select",e),this.options.onChange?.(e)}constructor(t,e={radio:!0}){super(t,e.options?.map(e=>{let i=new a.UIButton(t,{text:e.text,value:e.value,variant:"primary"});return i.onAction(()=>{this.select(e.value)}),i}),e),(0,o._)(this,"options",void 0),this.options=e,this.select(e.value??0)}}c=(0,n.__decorate)([s.component],c)},15753:function(t,e,i){"use strict";i.d(e,{ColorPickerWidget:function(){return o.ColorPickerWidget},FileSelectorWidget:function(){return n.FileSelectorWidget},TabsWidget:function(){return s.TabsWidget}});var o=i(72348),n=i(18762),s=i(89636)},15982:function(t,e,i){"use strict";i.d(e,{findControlType:function(){return r},getControlType:function(){return s}});var o=i(65946),n=i(5266);function s(t,e){let i;return e||(e=n.Config.defaultOptions.controls),(0,o.isString)(t)?i=r(t,e)||{name:t,command:t,tooltip:t}:void 0!==e[(i={name:"empty",...(0,o.ConfigFlatten)(t)}).name]&&(i={...(0,o.ConfigFlatten)(e[i.name]),...(0,o.ConfigFlatten)(i)}),i}function r(t,e){let[i,n]=t.split(/\./),s=e;return null!=n?void 0!==e[i]&&(s=e[i]):n=i,s[n]?{name:n,...(0,o.ConfigFlatten)(s[n])}:void 0}},16849:function(t,e,i){"use strict";i.d(e,{alignElement:function(){return a},clearAlign:function(){return r},hAlignElement:function(){return s}});var o=i(27795),n=i(80991);function s(t,e){e&&"normal"!==e?"center"!==e?((0,n.css)(t,"float",e),(0,n.clearCenterAlign)(t)):(0,n.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,n.css)(t,"float")&&-1!==["right","left"].indexOf((0,n.css)(t,"float").toString().toLowerCase())&&(0,n.css)(t,"float",""),(0,n.clearCenterAlign)(t))}function r(t){o.Dom.each(t,t=>{o.Dom.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))})}function a(t,e){if(o.Dom.isNode(e)&&o.Dom.isElement(e))switch(r(e),t.toLowerCase()){case"justifyfull":e.style.textAlign="justify";break;case"justifyright":e.style.textAlign="right";break;case"justifyleft":e.style.textAlign="left";break;case"justifycenter":e.style.textAlign="center"}}},16964:function(t,e,i){"use strict";i.d(e,{Component:function(){return o.Component},STATUSES:function(){return n.STATUSES},ViewComponent:function(){return s.ViewComponent}});var o=i(80251),n=i(69364),s=i(59609)},17306:function(t,e,i){"use strict";i.d(e,{UIImagePositionTab:function(){return p}});var o=i(25045),n=i(31635),s=i(91672),r=i(29200),a=i(68616),l=i(65946),c=i(85932),u=i(7909),h=i(96007),d=i(29434),f=i(10808);class p extends h.UIElement{className(){return"UIImagePositionTab"}render({availableClasses:t}){let e;return`<div class="jodit-form__group &__editMargins">
103
103
  <label>~Margins~</label>
104
104
  <div class="jodit-grid jodit_vertical_middle">
105
105
  <input class="jodit_col-lg-1-5 jodit-input &__marginTop" type="text" placeholder="~top~"/>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
  <div class="jodit-form__group &__editClass">
126
126
  <label>~Classes~</label>
127
- ${(()=>{let e=[];return t&&t.length>0?(e.push('<select class="jodit-input jodit-select &__classes">'),t.forEach(t=>{(0,c.isString)(t)?e.push(`<option value="${t}">${t}</option>`):e.push(`<option value="${t[0]}">${t[1]}</option>`)}),e.push("</select>")):e.push('<input type="text" class="jodit-input &__classes"/>'),e.join("")})()}
127
+ ${e=[],t&&t.length>0?(e.push('<select class="jodit-input jodit-select &__classes">'),t.forEach(t=>{(0,c.isString)(t)?e.push(`<option value="${t}">${t}</option>`):e.push(`<option value="${t[0]}">${t[1]}</option>`)}),e.push("</select>")):e.push('<input type="text" class="jodit-input &__classes"/>'),e.join("")}
128
128
  </div>
129
129
  <div class="jodit-form__group &__editId">
130
130
  <label>Id</label>
@@ -136,7 +136,7 @@
136
136
  <label>~Border radius~</label>
137
137
  <input type="number" class="jodit-input &__borderRadius"/>
138
138
  </div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){let t=this.getElm("align");this.state.values.align=t.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){let t=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(t.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){let t=this.getElm("id");this.state.values.id=t.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){let t=this.getElm("style");this.state.values.style=t.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){let t=this.getElm("classes");this.state.values.classes=t.value}onLockMarginClick(t){this.state.marginIsLocked=!this.state.marginIsLocked,t.preventDefault()}onChangeMarginIsLocked(){let t=this.getElm("marginBottom"),e=this.getElm("marginRight"),i=this.getElm("marginLeft"),o=this.getElm("lockMargin");if([e,t,i].forEach(t=>{(0,u.attr)(t,"disabled",this.state.marginIsLocked||null)}),o.innerHTML=d.Icon.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){let t=this.state.values.marginTop;this.state.values.marginRight=t,this.state.values.marginBottom=t,this.state.values.marginLeft=t}}onStateValuesMarginChange(){let t=this.getElm("marginTop"),e=this.getElm("marginRight"),i=this.getElm("marginBottom"),o=this.getElm("marginLeft");t.value=this.state.values.marginTop.toString(),e.value=this.state.values.marginRight.toString(),i.value=this.state.values.marginBottom.toString(),o.value=this.state.values.marginLeft.toString()}onChangeMargin(){let t=this.getElm("marginTop"),e=this.getElm("marginRight"),i=this.getElm("marginBottom"),o=this.getElm("marginLeft");this.state.values.marginTop=(0,f.normalSizeFromString)(t.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,f.normalSizeFromString)(e.value),this.state.values.marginBottom=(0,f.normalSizeFromString)(i.value),this.state.values.marginLeft=(0,f.normalSizeFromString)(o.value))}hideFieldByOptions(){let t=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([e,i])=>{let o=this.getElm(i);(0,l.css)(o,"display",t[e]?null:"none")})}constructor(t,e,i){super(t,{availableClasses:t.o.image.availableClasses}),(0,o._)(this,"state",void 0),(0,o._)(this,"handlers",void 0),this.state=e,this.handlers=i}}(0,n.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.values.align")],p.prototype,"onStateAlignChange",null),(0,n.__decorate)([(0,a.watch)("align:change")],p.prototype,"onChangeAlign",null),(0,n.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.values.borderRadius")],p.prototype,"onStateValuesBorderRadiusChange",null),(0,n.__decorate)([(0,a.watch)("borderRadius:change")],p.prototype,"onChangeBorderRadius",null),(0,n.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.values.id")],p.prototype,"onStateValuesIdChange",null),(0,n.__decorate)([(0,a.watch)("id:change")],p.prototype,"onChangeId",null),(0,n.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.values.style")],p.prototype,"onStateValuesStyleChange",null),(0,n.__decorate)([(0,a.watch)("style:change")],p.prototype,"onChangeStyle",null),(0,n.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.values.classes")],p.prototype,"onStateValuesClassesChange",null),(0,n.__decorate)([(0,a.watch)("classes:change")],p.prototype,"onChangClasses",null),(0,n.__decorate)([(0,a.watch)("lockMargin:click")],p.prototype,"onLockMarginClick",null),(0,n.__decorate)([(0,r.hook)("ready"),(0,a.watch)("state.marginIsLocked")],p.prototype,"onChangeMarginIsLocked",null),(0,n.__decorate)([(0,r.hook)("ready"),(0,a.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],p.prototype,"onStateValuesMarginChange",null),(0,n.__decorate)([(0,a.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],p.prototype,"onChangeMargin",null),(0,n.__decorate)([(0,r.hook)("ready")],p.prototype,"hideFieldByOptions",null),p=(0,n.__decorate)([s.component],p)},17312:function(t,e,i){"use strict";function o(t){return Array.isArray(t)}i.d(e,{isArray:function(){return o}})},17326:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.iframeBaseUrl="",o.Config.prototype.iframeTitle="Jodit Editor",o.Config.prototype.iframeDoctype="<!DOCTYPE html>",o.Config.prototype.iframeDefaultSrc="about:blank",o.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',o.Config.prototype.iframeCSSLinks=[],o.Config.prototype.iframeSandbox=null},17338:function(t,e,i){"use strict";i.d(e,{Ajax:function(){return d}});var o=i(25045),n=i(31635),s=i(91231),r=i(81937),a=i(49574),l=i(65946),c=i(33201),u=i(5266);i(37102);var h=i(32855);class d{className(){return"Ajax"}__buildParams(t,e){return(0,l.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,l.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,e):(0,l.isString)(t)||t instanceof r.globalWindow.FormData||"object"==typeof t&&null!=t&&(0,l.isFunction)(t.append)?t:(0,l.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch{}return this}send(){this.__activated=!0;let{xhr:t,o:e}=this,i=this.prepareRequest();return this.__async.promise(async(o,n)=>{let s=()=>{this.__isFulfilled=!0,n(c.connection("Connection error"))},r=()=>{this.__isFulfilled=!0,o(new h.Response(i,t.status,t.statusText,!t.responseType?t.responseText:t.response))};t.onload=r,t.onabort=()=>{this.__isFulfilled=!0,n(c.abort("Abort connection"))},t.onerror=s,t.ontimeout=s,e.responseType&&(t.responseType=e.responseType),t.onprogress=t=>{let e=0;t.lengthComputable&&(e=t.loaded/t.total*100),this.options.onProgress?.(e)},t.onreadystatechange=()=>{this.options.onProgress?.(10),t.readyState===XMLHttpRequest.DONE&&(e.successStatuses.includes(t.status)?r():t.statusText&&(this.__isFulfilled=!0,n(c.connection(t.statusText))))},t.withCredentials=e.withCredentials??!1;let{url:a,data:u,method:d}=i;t.open(d,a,!0),e.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",e.contentType);let{headers:f}=e;(0,l.isFunction)(f)&&(f=await f.call(this)),f&&t.setRequestHeader&&Object.keys(f).forEach(e=>{t.setRequestHeader(e,f[e])}),this.__async.setTimeout(()=>{t.send(u?this.__buildParams(u):void 0)},0)})}prepareRequest(){if(!this.o.url)throw c.error("Need URL for AJAX request");let t=this.o.url,e=this.o.data,i=(this.o.method||"get").toLowerCase();if("get"===i&&e&&(0,l.isPlainObject)(e)){let i=t.indexOf("?");if(-1!==i){let o=(0,l.parseQuery)(t);t=t.substring(0,i)+"?"+(0,l.buildQuery)({...o,...e})}else t+="?"+(0,l.buildQuery)(this.o.data)}let o={url:t,method:i,data:e};return d.log.splice(100),d.log.push(o),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(t,e=u.Config.prototype.defaultAjaxOptions){(0,o._)(this,"__async",new s.Async),(0,o._)(this,"xhr",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"__isFulfilled",!1),(0,o._)(this,"__activated",!1),(0,o._)(this,"__isDestructed",!1),this.options=(0,l.ConfigProto)(t||{},e),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}(0,o._)(d,"log",[]),(0,n.__decorate)([a.autobind],d.prototype,"destruct",null)},17481:function(t,e,i){"use strict";i.d(e,{extractSelectedPart:function(){return a}});var o=i(23211),n=i(23175),s=i(4040),r=i(71125);function a(t,e,i){let o=i.s.createRange(),s=(0,n.isMarker)(e.previousSibling)?e.previousSibling:e;o.setStartBefore(t),o.setEndBefore(s),l(t,o,!0);let r=(0,n.isMarker)(e.nextSibling)?e.nextSibling:e;o.setStartAfter(r),o.setEndAfter(t),l(t,o,!1)}function l(t,e,i){let n=e.extractContents();n.textContent&&(0,s.trim)(n.textContent).length||!n.firstChild||o.Dom.unwrap(n.firstChild),t.parentNode&&(0,r.call)(i?o.Dom.before:o.Dom.after,t,n)}},17523:function(t,e,i){"use strict";i.d(e,{cases:function(){return d}});var o=i(26106),n=i(80951),s=i(58881),r=i(68709),a=i(5771),l=i(2409),c=i(93890),u=i(12443),h=i(10157);let d=[c.checkRemoveUnbreakableElement,r.checkRemoveContentNotEditable,s.checkRemoveChar,u.checkTableCell,l.checkRemoveEmptyParent,a.checkRemoveEmptyNeighbor,n.checkJoinTwoLists,o.checkJoinNeighbors,h.checkUnwrapFirstListItem]},17610:function(t,e,i){"use strict";i.d(e,{FileBrowser:function(){return o.FileBrowser}});var o=i(62623)},17780:function(t,e,i){"use strict";i.d(e,{DEFAULT_SOURCE_NAME:function(){return l},default:function(){return u}});var o=i(25045),n=i(81937),s=i(65946),r=i(73714),a=i(58664);let l="default",c=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class u{get o(){return this.options}get(t){let e=this.__ajaxInstances;if(e.has(t)){let i=e.get(t);i?.abort(),e.delete(t)}let i=(0,s.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,s.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));i.prepareData&&(i.data=i.prepareData.call(this,i.data));let o=new r.Ajax(i);e.set(t,o);let n=o.send();return n.finally(()=>{o.destruct(),e.delete(t),this.progressHandler(100)}).catch(()=>null),n.then(t=>t.json()).then(t=>{if(t&&!this.isSuccess(t))throw Error(this.getMessage(t));return t})}onProgress(t){this.progressHandler=t}async permissions(t,e){return this.o.permissions&&(this.o.permissions.data.path=t,this.o.permissions.data.source=e,this.o.permissions.url)?this.get("permissions").then(t=>{if(this.parent.isInDestruct)throw(0,s.abort)();let e=this.o.permissions.process;if(e||(e=this.o.ajax.process),e){let i=e.call(self,t);i.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,i.data.permissions),this.__currentPermissions=i.data.permissions)}return this.__currentPermissions}):null}canI(t){let e="allow"+t;if(!n.IS_PROD&&!c.has(e))throw(0,s.error)("Wrong action "+t);let i=this.o.permissionsPresets[e];return void 0!==i?i:null==this.__currentPermissions||void 0===this.__currentPermissions[e]||this.__currentPermissions[e]}__items(t,e,i,o){let n=this.options;return n.items?(n.items.data.path=t,n.items.data.source=e,n.items.data.mods=i,this.get("items").then(t=>{let e=this.o.items.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),o(t)})):Promise.reject(Error("Set Items api options"))}items(t,e,i={}){return this.__items(t,e,i,t=>this.generateItemsList(t.data.sources,i))}itemsEx(t,e,i={}){return this.__items(t,e,i,t=>({items:this.generateItemsList(t.data.sources,i),loadedTotal:t.data.sources.reduce((t,e)=>t+e.files.length,0)}))}generateItemsList(t,e={}){let i=[],o=t=>!e.filterWord?.length||void 0===this.o.filter||this.o.filter(t,e.filterWord);return t.forEach(t=>{if(t.files&&t.files.length){let{sort:n}=this.o;(0,s.isFunction)(n)&&e.sortBy&&t.files.sort((t,i)=>n(t,i,e.sortBy)),t.files.forEach(n=>{o(n)&&("folder"===n.type||!e.onlyImages||void 0===n.isImage||n.isImage)&&i.push(a.FileBrowserItem.create({...n,sourceName:t.name,source:t}))})}}),i}async tree(t,e){return(t=(0,s.normalizeRelativePath)(t),this.o.folder)?(await this.permissions(t,e),this.o.folder.data.path=t,this.o.folder.data.source=e,this.get("folder").then(t=>{let e=this.o.folder.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),t.data.sources})):Promise.reject(Error("Set Folder Api options"))}getPathByUrl(t){return(0,s.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then(t=>{if(this.isSuccess(t))return t.data;throw(0,s.error)(this.getMessage(t))})}createFolder(t,e,i){let{create:o}=this.o;if(!o)throw(0,s.error)("Set Create api options");return o.data.source=i,o.data.path=e,o.data.name=t,this.get("create").then(t=>{if(this.isSuccess(t))return!0;throw(0,s.error)(this.getMessage(t))})}move(t,e,i,o){let n=o?"fileMove":"folderMove",r=this.options[n];if(!r)throw(0,s.error)("Set Move api options");return r.data.from=t,r.data.path=e,r.data.source=i,this.get(n).then(t=>{if(this.isSuccess(t))return!0;throw(0,s.error)(this.getMessage(t))})}remove(t,e,i,o){let n=this.o[t];if(!n)throw(0,s.error)(`Set "${t}" api options`);return n.data.path=e,n.data.name=i,n.data.source=o,this.get(t).then(t=>(n.process&&(t=n.process.call(this,t)),this.getMessage(t)))}fileRemove(t,e,i){return this.remove("fileRemove",t,e,i)}folderRemove(t,e,i){return this.remove("folderRemove",t,e,i)}rename(t,e,i,o,n){let r=this.o[t];if(!r)throw(0,s.error)(`Set "${t}" api options`);return r.data.path=e,r.data.name=i,r.data.newname=o,r.data.source=n,this.get(t).then(t=>(r.process&&(t=r.process.call(self,t)),this.getMessage(t)))}folderRename(t,e,i,o){return this.rename("folderRename",t,e,i,o)}fileRename(t,e,i,o){return this.rename("fileRename",t,e,i,o)}changeImage(t,e,i,o,n,s){this.o[t]||(this.o[t]={data:{}});let r=this.o[t];return void 0===r.data&&(r.data={action:t}),r.data.newname=n||o,s&&(r.data.box=s),r.data.path=e,r.data.name=o,r.data.source=i,this.get(t).then(()=>!0)}crop(t,e,i,o,n){return this.changeImage("crop",t,e,i,o,n)}resize(t,e,i,o,n){return this.changeImage("resize",t,e,i,o,n)}getMessage(t){return this.options.getMessage(t)}isSuccess(t){return this.options.isSuccess(t)}destruct(){this.__ajaxInstances.forEach(t=>t.destruct()),this.__ajaxInstances.clear()}constructor(t,e){(0,o._)(this,"parent",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"__currentPermissions",void 0),(0,o._)(this,"__ajaxInstances",void 0),(0,o._)(this,"progressHandler",void 0),this.parent=t,this.options=e,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=t=>{}}}},17849:function(t,e,i){"use strict";var o=i(28686),n=i(80991);let s=t=>t.args&&(0,o.isString)(t.args[0])?t.args[0].toLowerCase():"";e.default=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(t,e,i)=>i,exec(t,e,{control:i}){let o=s(i);t.getInstance("Table",t.o).getAllSelectedCells().forEach(t=>{(0,n.css)(t,"vertical-align","normal"===o?"":o)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},`
139
- `,{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec(t,e,{control:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let n=s(i);t.execCommand(n,!1,e)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(t,e,{control:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let n=s(i);t.execCommand(n,!1,e)},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(t,e,{control:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let n=s(i);t.execCommand(n,!1,e),t.e.fire("hidePopup")},tooltip:"Delete"}]},17918:function(t){t.exports={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"}},17995:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},18073:function(t,e,i){"use strict";i.d(e,{size:function(){return n}});var o=i(28686);function n(t){return(0,o.isString)(t)||(0,o.isArray)(t)?t.length:(0,o.isPlainObject)(t)?Object.keys(t).length:0}},18080:function(t,e,i){"use strict";i.d(e,{i18n:function(){return c},sprintf:function(){return l}});var o=i(81937),n=i(85932),s=i(99436),r=i(93640),a=i(5266);let l=(t,e)=>{if(!e||!e.length)return t;let i=/%([sd])/g,o=i.exec(t),n=t,s=0;for(;o&&void 0!==e[s];)n=n.replace(o[0],e[s].toString()),s+=1,o=i.exec(t);return n};function c(t,e,i){if(!(0,n.isString)(t))throw(0,r.error)("i18n: Need string in first argument");if(!t.length)return t;let c=!!i?.debugLanguage,u={},h=t=>e&&e.length?l(t,e):t,d=(0,r.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),f=(0,r.defaultLanguage)(i?.language,d),p=e=>{if(!e)return;if((0,n.isString)(e[t]))return h(e[t]);let i=t.toLowerCase();if((0,n.isString)(e[i]))return h(e[i]);let o=(0,s.ucfirst)(t);if((0,n.isString)(e[o]))return h(e[o])};void 0!==o.lang[f]?u=o.lang[f]:c||(u=void 0!==o.lang[d]?o.lang[d]:o.lang.en);let m=i?.i18n;if(m&&m[f]){let t=p(m[f]);if(t)return t}return p(u)||(!c&&o.lang.en&&(0,n.isString)(o.lang.en[t])&&o.lang.en[t]?h(o.lang.en[t]):c?"{"+t+"}":(!o.IS_PROD,h(t)))}},18210:function(t,e,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(23211),a=i(28077),l=i(91206);class c extends l.Plugin{afterInit(t){}beforeDestruct(t){}onKeyDownArrow(t){if(t.key!==n.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:e,endOffset:i}=this.j.selection.range;if(r.Dom.isText(e)&&e.nodeValue?.length===i){let{parentNode:t}=e;r.Dom.isInlineBlock(t)&&!r.Dom.findNotEmptyNeighbor(t,!1,this.j.editor)&&r.Dom.after(t,this.j.createInside.text(n.NBSP_SPACE))}}}(0,o.__decorate)([(0,s.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",c)},18272:function(t,e,i){"use strict";i.d(e,{makeContextMenu:function(){return r},makeDataProvider:function(){return s}});var o=i(67399),n=i(17780);function s(t,e){return new n.default(t,e)}function r(t){return new o.ContextMenu(t)}},18303:function(t,e,i){"use strict";function o(t){return null==t}i.d(e,{isVoid:function(){return o}})},18377:function(t,e,i){"use strict";i.d(e,{normalizePath:function(){return n}});var o=i(4040);let n=(...t)=>t.filter(t=>(0,o.trim)(t).length).map((e,i)=>(e=e.replace(/([^:])[\\/]+/g,"$1/"),i&&(e=e.replace(/^\//,"")),i!==t.length-1&&(e=e.replace(/\/$/,"")),e)).join("/")},18380:function(t,e,i){"use strict";i.d(e,{readMargins:function(){return n}});var o=i(74264);function n(t,e,i){let n=!0,s=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let r=t.style.getPropertyValue((0,o.kebabCase)(i));if(!r){s=!0,e[i]=0;return}/^[0-9]+(px)?$/.test(r)&&(r=parseInt(r,10)),e[i]=r,(s&&e[i]||n&&"marginTop"!==i&&e[i]!==e.marginTop)&&(n=!1)}),i.marginIsLocked=n}},18605:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>'},18762:function(t,e,i){"use strict";i.d(e,{FileSelectorWidget:function(){return a}});var o=i(23211),n=i(65946),s=i(4099),r=i(89636);let a=(t,e,i,a,c=!0)=>{let u,h=[],d=t.o.uploader;if(e.upload&&(d.url||d.insertImageAsBase64URI||d.customUploadFunction)){let i=t.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${t.i18n(c?"Drop image":"Drop file")}</strong><span><br>${t.i18n("or click")}</span><input type="file" accept="${c?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);t.uploader.bind(i,i=>{let o=(0,n.isFunction)(e.upload)?e.upload:d.defaultHandlerSuccess;(0,n.isFunction)(o)&&o.call(t,i),t.e.fire("closeAllPopups")},e=>{t.message.error(e.message),t.e.fire("closeAllPopups")}),h.push({icon:"upload",name:"Upload",content:i})}if(e.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&h.push({icon:"folder",name:"Browse",content(){a&&a(),e.filebrowser&&t.filebrowser.open(e.filebrowser,c)}}),e.url){let r=new s.UIButton(t,{type:"submit",variant:"primary",text:"Insert"}),a=new s.UIForm(t,[new s.UIInput(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new s.UIInput(t,{name:"text",label:"Alternative text"}),new s.UIBlock(t,[r])]);u=null,i&&!o.Dom.isText(i)&&!o.Dom.isComment(i)&&(o.Dom.isTag(i,"img")||(0,n.$$)("img",i).length)&&(u="IMG"===i.tagName?i:(0,n.$$)("img",i)[0],l(a.container,"input[name=url]",(0,n.attr)(u,"src")),l(a.container,"input[name=text]",(0,n.attr)(u,"alt")),r.state.text="Update"),i&&o.Dom.isTag(i,"a")&&(l(a.container,"input[name=url]",(0,n.attr)(i,"href")),l(a.container,"input[name=text]",(0,n.attr)(i,"title")),r.state.text="Update"),a.onSubmit(i=>{(0,n.isFunction)(e.url)&&e.url.call(t,i.url,i.text)}),h.push({icon:"link",name:"URL",content:a.container})}return(0,r.TabsWidget)(t,h)};function l(t,e,i){let o=t.querySelector(e);return o?(i&&(o.value=i),o.value):""}},18855:function(t,e,i){"use strict";i.d(e,{Plugin:function(){return l}});var o=i(25045),n=i(31635),s=i(16964),r=i(84839),a=i(24497);class l extends s.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:t,buttons:e}=this;e&&(0,a.isJoditObject)(t)&&e.forEach(e=>{t.registerButton(e)})}__afterInit(){this.__inited=!0,this.setStatus(s.STATUSES.ready),this.afterInit(this.jodit)}init(t){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){if(this.isInDestruct)return;let{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(s.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,a.isJoditObject)(t)&&this.buttons?.forEach(e=>{t?.unregisterButton(e)}),this.beforeDestruct(this.j),super.destruct()}constructor(t){super(t),(0,o._)(this,"buttons",[]),(0,o._)(this,"hasStyle",!1),(0,o._)(this,"styles",void 0),(0,o._)(this,"__inited",!1),t.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,o._)(l,"requires",[]),(0,n.__decorate)([r.autobind],l.prototype,"__afterPluginSystemInit",null),(0,n.__decorate)([r.autobind],l.prototype,"__afterInit",null),(0,n.__decorate)([r.autobind],l.prototype,"__beforeDestruct",null)},18869:function(t,e,i){"use strict";i.d(e,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return r}});var o=i(25045),n=i(88475),s=i(28712);let r="JoditEventDefaultNamespace";class a{get(t,e){if(this.__store.has(e)){let i=this.__store.get(e);return(0,s.assert)(i,"-"),i[t]}}indexOf(t,e,i){let o=this.get(t,e);if(o){for(let t=0;t<o.length;t+=1)if(o[t].originalCallback===i)return t}return!1}namespaces(t=!1){let e=(0,n.toArray)(this.__store.keys());return t?e.filter(t=>t!==r):e}events(t){let e=this.__store.get(t);return e?Object.keys(e):[]}set(t,e,i,o=!1){let n=this.__store.get(e);n||(n={},this.__store.set(e,n)),void 0===n[t]&&(n[t]=[]),o?n[t].unshift(i):n[t].push(i)}clear(){this.__store.clear()}clearEvents(t,e){let i=this.__store.get(t);i&&i[e]&&(delete i[e],Object.keys(i).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){(0,o._)(this,"__store",new Map)}}},18929:function(t,e,i){"use strict";var o=i(81937),n=i(29434),s=i(5266),r=i(9103),a=i.n(r);s.Config.prototype.beautifyHTML=!o.IS_IE,s.Config.prototype.sourceEditor="ace",s.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},s.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],s.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],n.Icon.set("source",a()),s.Config.prototype.controls.source={mode:o.MODE_SPLIT,exec(t){t.toggleMode()},isActive:t=>t.getRealMode()===o.MODE_SOURCE,tooltip:"Change mode"}},18993:function(t,e,i){"use strict";var o=i(29434),n=i(5266),s=i(81875),r=i.n(s);n.Config.prototype.usePopupForSpecialCharacters=!1,n.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],o.Icon.set("symbols",r()),n.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,e,i){let o=t.e.fire("generateSpecialCharactersTable.symbols");if(o){if(t.o.usePopupForSpecialCharacters){let e=t.c.div();return e.classList.add("jodit-symbols"),e.appendChild(o),t.e.on(o,"close_dialog",i),e}t.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);let e=o.querySelector("a");e&&e.focus()}}}},19147:function(t,e,i){"use strict";i.d(e,{NUMBER_FIELDS_REG:function(){return a},normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var o=i(70222),n=i(18303),s=i(93387),r=i(74264);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(t,e){return!(0,n.isVoid)(e)&&a.test(t)&&(0,o.isNumeric)(e.toString())?parseInt(e.toString(),10)+"px":e}function c(t,e){if("font-weight"===(0,r.kebabCase)(t)){switch(e.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.isNumeric)(e)?Number(e):e}return/color/i.test(t)&&/^rgb/i.test(e.toString())&&(0,s.colorToHex)(e.toString())||e}},19213:function(t,e,i){"use strict";i.d(e,{clearSelectionWrappers:function(){return c},clearSelectionWrappersFromHTML:function(){return u},getSelectionWrappers:function(){return l},highlightTextRanges:function(){return a}});var o=i(81937),n=i(23211),s=i(28723);let r="jd-tmp-selection";function a(t,e,i,s,a){if(null==e.startContainer.nodeValue||null==e.endContainer.nodeValue||function(t,e,i){if(t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight){let o=new Highlight(...[e,...i].map(e=>{let i=t.selection.createRange();return i.setStart(e.startContainer,e.startOffset),i.setEnd(e.endContainer,e.endOffset),i}));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",o),i.length=0,!0}return!1}(t,e,i))return;let l=s.element("span",{[r]:!0});n.Dom.markTemporary(l),function(t,e,i){let o=t.startContainer.nodeValue,s=0;if(0!==t.startOffset){let e=i.text(o.substring(0,t.startOffset));t.startContainer.nodeValue=o.substring(t.startOffset),n.Dom.before(t.startContainer,e),t.startContainer===t.endContainer&&(s=t.startOffset,t.endOffset-=s),t.startOffset=0}let r=t.endContainer.nodeValue;if(t.endOffset!==r.length){let o=i.text(r.substring(t.endOffset));for(let i of(t.endContainer.nodeValue=r.substring(0,t.endOffset),n.Dom.after(t.endContainer,o),e))if(i.startContainer===t.endContainer)i.startContainer=o,i.startOffset=i.startOffset-t.endOffset-s,i.endContainer===t.endContainer&&(i.endContainer=o,i.endOffset=i.endOffset-t.endOffset-s);else break;t.endOffset=t.endContainer.nodeValue.length}}(e,i,s);let c=e.startContainer;do{var u;if(!c||(n.Dom.isText(c)&&(u=c.parentNode,!(n.Dom.isElement(u)&&u.hasAttribute(r)))&&n.Dom.wrap(c,l.cloneNode(),s),c===e.endContainer))break;let t=c.firstChild||c.nextSibling;if(!t){for(;c&&!c.nextSibling&&c!==a;)c=c.parentNode;t=c?.nextSibling}c=t}while(c&&c!==a)}function l(t){return(0,s.$$)(`[${r}]`,t)}function c(t){l(t.editor).forEach(t=>n.Dom.unwrap(t)),t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight&&CSS.highlights.clear()}function u(t){return t.replace(RegExp(`<span[^>]+${r}[^>]+>(.*?)</span>`,"g"),"$1")}},19549:function(t,e,i){"use strict";i.d(e,{getSuitParent:function(){return function t(e,i,r){let{parentNode:a}=i;return a===r||!o.Dom.isHTMLElement(a)||o.Dom.next(i,n.isNormalNode,a)||o.Dom.prev(i,n.isNormalNode,a)?null:e.isElementCommit&&e.elementIsBlock&&!o.Dom.isBlock(a)?t(e,a,r):(0,s.isSuitElement)(e,a,!1)&&(!o.Dom.isBlock(a)||e.elementIsBlock)?a:e.isElementCommit&&!o.Dom.isBlock(a)?t(e,a,r):null}}});var o=i(23211),n=i(83653),s=i(73019)},20784:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg>'},21132:function(t,e,i){"use strict";i.d(e,{applyMargin:function(){return s}});var o=i(80991),n=i(10808);function s(t,e,i,s,r,a,l){let c=[e,i,s,r],u=(t,e)=>{let i=(0,o.css)(a,t),s=(0,n.normalSizeToString)(e);i.toString()!==s.toString()&&(0,o.css)(a,t,s)};if(l)u("margin",e);else{let t=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((e,i)=>{u(t[i],e)})}}},21917:function(t){t.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},22289:function(t,e,i){"use strict";function o(t){return"boolean"==typeof t}i.d(e,{isBoolean:function(){return o}})},22533:function(t,e,i){"use strict";i.d(e,{ToolbarButton:function(){return m}});var o=i(25045),n=i(31635),s=i(69364),r=i(84839),a=i(27795),l=i(65946),c=i(59400),u=i(15982),h=i(29434),d=i(51116),f=i(42573),p=i(4274);class m extends c.UIButton{className(){return"ToolbarButton"}get toolbar(){return this.closest(f.ToolbarCollection)}update(){let{control:t,state:e}=this,i=this.closest(f.ToolbarCollection);if(!i)return;let o=t.value?.(i.jodit,this);void 0!==o&&(e.value=o),e.disabled=this.__calculateDisabledStatus(i),e.activated=this.__calculateActivatedStatus(i),t.update?.(i.jodit,this)}__calculateActivatedStatus(t){return(!(0,l.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(!!this.control.isActive?.(this.j,this)||!!(t&&t.shouldBeActive(this)))}__calculateDisabledStatus(t){return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||this.control.isDisabled?.(this.j,this))||!!(t&&t.shouldBeDisabled(this))}onChangeActivated(){(0,l.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,l.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,l.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let t=this.componentName,e=this.j.c.span(t),i=super.createContainer();(0,l.attr)(e,"role","listitem"),i.classList.remove(t),i.classList.add(t+"__button"),Object.defineProperty(i,"component",{value:this}),e.appendChild(i);let o=this.j.c.fromHTML(`<span role="trigger" class="${t}__trigger">${h.Icon.get("chevron")}</span>`);return i.appendChild(o),e}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):a.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let t=this.state.disabled?"disabled":null;(0,l.attr)(this.trigger,"disabled",t),(0,l.attr)(this.button,"disabled",t),(0,l.attr)(this.container,"disabled",t)}__initFromControl(){let{control:t,state:e}=this;this.updateSize(),e.name=t.name;let{textIcons:i}=this.j.o;if(!0===i||(0,l.isFunction)(i)&&i(t.name)||t.template)e.icon=(0,c.UIButtonState)().icon,e.text=t.text||t.name;else{if(t.iconURL)e.icon.iconURL=t.iconURL;else{let i=t.icon||t.name;e.icon.name=h.Icon.exists(i)||this.j.o.extraIcons?.[i]?i:""}t.iconURL||e.icon.name||(e.text=t.text||t.name)}t.tooltip&&(e.tooltip=this.j.i18n((0,l.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip)),e.hasTrigger=!!(t.list||t.popup&&t.exec)}onTriggerClick(t){if(this.openedPopup)return void this.__closePopup();let{control:e}=this;if(t.buffer={actionTrigger:this},e.list)return this.__openControlList(e);if((0,l.isFunction)(e.popup)){let t=this.openPopup();t.parentElement=this;try{if(!1!==this.j.e.fire((0,l.camelCase)(`before-${e.name}-open-popup`),this.target,e,t)){let i=this.toolbar?.getTarget(this)??this.target??null,o=e.popup(this.j,i,this.__closePopup,this);o?t.setContent((0,l.isString)(o)?this.j.c.fromHTML(o):o).open(()=>(0,l.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(t){throw this.__closePopup(),t}this.j.e.fire((0,l.camelCase)(`after-${e.name}-open-popup`),t.container)}}__openControlList(t){let e=this.jodit.options.controls??{},i=t=>(0,u.findControlType)(t,e),o=t.list,n=this.openPopup(),s=(0,p.makeCollection)(this.j);n.parentElement=this,s.parentElement=n,s.mode="vertical";let r=(e,o)=>{let n;if((0,l.isString)(o)&&i(o))return{name:o.toString(),...i(o)};if((0,l.isString)(e)&&i(e))return{name:e.toString(),...i(e),..."object"==typeof o?o:{}};n=e,(0,l.isPlainObject)(n)&&"title"in n&&"value"in n&&(o=e.value,e=e.title);let{childTemplate:s}=t,r={name:e.toString(),template:s&&((t,e,i)=>s(t,e,i,this)),exec:t.childExec?(e,i,o)=>t.childExec?.(e,i,{...o,parentControl:t}):t.exec,data:t.data,command:t.command,isActive:t.isChildActive,value:t.value,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],e,o]};return(0,l.isString)(o)&&(r.text=o),r};s.build((0,l.isArray)(o)?o.map(r):(0,l.keys)(o,!1).map(t=>r(t,o[t])),this.target),n.setContent(s).open(()=>(0,l.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&a.Dom.isNode(t.target)&&(a.Dom.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new d.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(t){let{control:e}=this;if((0,l.isFunction)(e.exec)){let i=this.toolbar?.getTarget(this)??this.target??null,o=e.exec(this.j,i,{control:e,originalEvent:t,button:this});if(!1!==o&&!0!==o&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==o)return}return e.list?this.__openControlList(e):(0,l.isFunction)(e.popup)?this.onTriggerClick(t):void((e.command||e.name)&&((0,l.call)((0,l.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),e.command||e.name,!1,e.args&&e.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(t,e,i=null){super(t),(0,o._)(this,"control",void 0),(0,o._)(this,"target",void 0),(0,o._)(this,"state",void 0),(0,o._)(this,"trigger",void 0),(0,o._)(this,"openedPopup",void 0),this.control=e,this.target=i,this.state={...(0,c.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;let n=this.getElm("button");(0,l.assert)(n,"Element button should exists"),this.button=n,Object.defineProperty(n,"component",{value:this,configurable:!0});let r=this.getElm("trigger");(0,l.assert)(r,"Element trigger should exists"),this.trigger=r,r.remove(),t.e.on([this.button,this.trigger],"mousedown",t=>t.preventDefault()),this.onAction(this.onClick),this.hookStatus(s.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),e.mods&&Object.keys(e.mods).forEach(t=>{e.mods&&this.setMod(t,e.mods[t])})}}(0,n.__decorate)([r.cacheHTML],m.prototype,"createContainer",null),(0,n.__decorate)([(0,r.watch)("state.hasTrigger",{immediately:!1})],m.prototype,"onChangeHasTrigger",null),(0,n.__decorate)([(0,r.watch)("trigger:click")],m.prototype,"onTriggerClick",null),(0,n.__decorate)([r.autobind],m.prototype,"onOutsideClick",null),(0,n.__decorate)([r.autobind],m.prototype,"__closePopup",null),m=(0,n.__decorate)([r.component],m)},22852:function(t,e,i){"use strict";i.d(e,{stripTags:function(){return function t(e,i=document,u=null){let h=i.createElement("div");return(0,n.isString)(e)?h.innerHTML=e:h.appendChild(e),(0,r.$$)("*",h).forEach(e=>{let n=e.parentNode;if(!n)return;if(u&&o.Dom.isTag(e,u)){let n=e.nodeName.toLowerCase(),s=o.Dom.isTag(e,c)?`%%%jodit-single-${n}%%%`:`%%%jodit-${n}%%%${t(e.innerHTML,i,u)}%%%/jodit-${n}%%%`;o.Dom.before(e,i.createTextNode(s)),o.Dom.safeRemove(e);return}if(o.Dom.isTag(e,l))return void o.Dom.safeRemove(e);if(!o.Dom.isTag(e,a))return;let s=e.nextSibling;!(o.Dom.isText(s)&&/^\s/.test(s.nodeValue||""))&&s&&n.insertBefore(i.createTextNode(" "),s)}),(0,s.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,e,i,o)=>`<${e?"/":""}${o}>`)}}});var o=i(23211),n=i(85932),s=i(4040),r=i(93640);let a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},22980:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(28077),l=i(85932),c=i(91206);i(86038);class u extends c.Plugin{afterInit(t){"br"!==t.o.enter.toLowerCase()&&t.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(t){t.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:t}=this;if(!t.isEditorMode())return;let e=t.editor.firstChild,i=!1;for(;e;){if(e=function(t,e){let i=t,o=t;do if(r.Dom.isElement(o)&&r.Dom.isLeaf(o)&&!r.Dom.isList(o.parentElement)){let t=r.Dom.findNotEmptySibling(o,!1);r.Dom.isTag(i,"ul")?i.appendChild(o):i=r.Dom.wrap(o,"ul",e.createInside),o=t}else break;while(o)return i}(e,t),this.isSuitableStart(e)){i||t.s.save(),i=!0;let o=t.createInside.element(t.o.enter);for(r.Dom.before(e,o);e&&this.isSuitable(e);){let t=e.nextSibling;o.appendChild(e),e=t}o.normalize(),e=o}e=e&&e.nextSibling}i&&(t.s.restore(),"afterInit"===t.e.current&&t.e.fire("internalChange"))}preprocessInput(){let{jodit:t}=this,e="afterInit"===t.e.current;if(!t.isEditorMode()||t.editor.firstChild||!t.o.wrapNodes.emptyBlockAfterInit&&e)return;let i=t.createInside.element(t.o.enter),o=t.createInside.element("br");r.Dom.append(i,o),r.Dom.append(t.editor,i),t.s.isFocused()&&t.s.setCursorBefore(o),t.e.fire("internalChange")}constructor(...t){super(...t),(0,o._)(this,"isSuitableStart",t=>r.Dom.isText(t)&&(0,l.isString)(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||t.parentNode?.firstChild===t&&this.isSuitable(t.nextSibling))||this.isNotWrapped(t)&&!r.Dom.isTemporary(t)),(0,o._)(this,"isSuitable",t=>r.Dom.isText(t)||this.isNotWrapped(t)),(0,o._)(this,"isNotWrapped",t=>r.Dom.isElement(t)&&!(r.Dom.isBlock(t)||r.Dom.isTag(t,this.j.o.wrapNodes.exclude)))}}(0,n.__decorate)([s.autobind],u.prototype,"postProcessSetEditorValue",null),(0,n.__decorate)([s.autobind],u.prototype,"preprocessInput",null),a.pluginSystem.add("wrapNodes",u)},23112:function(t,e,i){"use strict";function o(t){let e=atob(t.split(",")[1]),i=t.split(",")[0].split(":")[1].split(";")[0],o=new Uint8Array(new ArrayBuffer(e.length));for(let t=0;t<e.length;t+=1)o[t]=e.charCodeAt(t);return new Blob([o.buffer],{type:i})}i.d(e,{dataURItoBlob:function(){return o}})},23175:function(t,e,i){"use strict";i.d(e,{isMarker:function(){return s}});var o=i(81937),n=i(23211);function s(t){return n.Dom.isNode(t)&&n.Dom.isTag(t,"span")&&t.hasAttribute("data-"+o.MARKER_CLASS)}},23183:function(t,e,i){"use strict";i.d(e,{Elms:function(){return n}});var o=i(88475);class n{getElm(t){return this.container.querySelector("."+this.getFullElName(t))}getElms(t){return(0,o.toArray)(this.container.querySelectorAll("."+this.getFullElName(t)))}}},23211:function(t,e,i){"use strict";i.d(e,{Dom:function(){return l}});var o=i(81937),n=i(88475),s=i(28686),r=i(4040),a=i(93640);class l{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,e,i){let o,n=t;i.s.save();let s=!1;do s=!1,(o=n.nextSibling)&&!l.isBlock(o)&&!l.isTag(o,"br")&&(s=!0,n=o);while(s)return l.__wrapElements(e,i,t,n)}static __wrapElements(t,e,i,o){let n=(0,s.isString)(t)?e.createInside.element(t):t;i.parentNode&&i.parentNode.insertBefore(n,i);let r=i;for(;r&&(r=i.nextSibling,n.appendChild(i),i!==o&&r);)i=r;return e.s.restore(),n}static wrapInline(t,e,i){let o,n=t,s=t;i.s.save();let r=!1;do r=!1,(o=n.previousSibling)&&!l.isBlock(o)&&(r=!0,n=o);while(r)do r=!1,(o=s.nextSibling)&&!l.isBlock(o)&&(r=!0,s=o);while(r)return l.__wrapElements(e,i,n,s)}static wrap(t,e,i){let o=(0,s.isString)(e)?i.element(e):e;if(l.isNode(t)){if(!t.parentNode)throw(0,a.error)("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{let e=t.extractContents();t.insertNode(o),o.appendChild(e)}return o}static unwrap(t){let e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);l.safeRemove(t)}}static between(t,e,i){let o=t;for(;o&&o!==e&&!(t!==o&&i(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)o=o.parentNode;t=o?.nextSibling}o=t}}static replace(t,e,i,o=!1,r=!1){let c;if((0,s.isHTML)(e)&&((0,a.assert)(i,"Need create instance for new tag"),e=i.fromHTML(e)),(0,s.isString)(e)?((0,a.assert)(i,"Need create instance for new tag"),c=i.element(e)):c=e,!r)for(;t.firstChild;)c.appendChild(t.firstChild);return o&&l.isElement(t)&&l.isElement(c)&&(0,n.toArray)(t.attributes).forEach(t=>{c.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(c,t),c}static isEmptyTextNode(t){return l.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return l.each(t,t=>l.isEmptyTextNode(t))}static isContentEditable(t,e){return l.isNode(t)&&!l.closest(t,t=>l.isElement(t)&&"false"===t.getAttribute("contenteditable"),e)}static isEmpty(t,e=o.NO_EMPTY_TAGS){let i;if(!t)return!0;i=(0,s.isFunction)(e)?e:t=>e.has(t.nodeName.toLowerCase());let n=t=>null==t.nodeValue||0===(0,r.trim)(t.nodeValue).length;return l.isText(t)?n(t):!(l.isElement(t)&&i(t))&&l.each(t,t=>{if(l.isText(t)&&!n(t)||l.isElement(t)&&i(t))return!1})}static isNode(t){return!!(t&&(0,s.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,s.isFunction)(t.appendChild))}static isCell(t){return l.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return l.isTag(t,o.LIST_TAGS)}static isLeaf(t){return l.isTag(t,"li")}static isImage(t){return l.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,s.isVoid)(t)&&"object"==typeof t&&l.isNode(t)&&o.IS_BLOCK.test(t.nodeName)}static isText(t){return!!(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return!!(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){return!!l.isNode(t)&&!!(t.ownerDocument?.defaultView&&t.nodeType===Node.ELEMENT_NODE)}static isFragment(t){return!!l.isNode(t)&&!!(t.ownerDocument?.defaultView&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){if(!l.isNode(t))return!1;let e=t.ownerDocument?.defaultView;return!!(e&&t instanceof e.HTMLElement)}static isInlineBlock(t){return l.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,a.css)(t,"display").toString())}static canSplitBlock(t){return!(0,s.isVoid)(t)&&l.isHTMLElement(t)&&l.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static last(t,e){let i=t?.lastChild;if(!i)return null;do{if(e(i))return i;let o=i.lastChild;if(o||(o=i.previousSibling),!o&&i.parentNode!==t){do i=i.parentNode;while(i&&!i?.previousSibling&&i.parentNode!==t)o=i?.previousSibling}i=o}while(i)return null}static prev(t,e,i,o=!0){return l.find(t,e,i,!1,o)}static next(t,e,i,o=!0){return l.find(t,e,i,!0,o)}static prevWithClass(t,e){return l.prev(t,t=>l.isElement(t)&&t.classList.contains(e),t.parentNode)}static nextWithClass(t,e){return l.next(t,t=>l.isElement(t)&&t.classList.contains(e),t.parentNode)}static find(t,e,i,o=!0,n=!0){let s=this.nextGen(t,i,o,n),r=s.next();for(;!r.done;){if(e(r.value))return r.value;r=s.next()}return null}static*nextGen(t,e,i=!0,o=!0){let n=[],s=t;do{let e=i?s.nextSibling:s.previousSibling;for(;e;)n.unshift(e),e=i?e.nextSibling:e.previousSibling;yield*this.runInStack(t,n,i,o),s=s.parentNode}while(s&&s!==e)return null}static each(t,e,i=!0){let o=this.eachGen(t,i),n=o.next();for(;!n.done;){if(!1===e(n.value))return!1;n=o.next()}return!0}static eachGen(t,e=!0){return this.runInStack(t,[t],e)}static*runInStack(t,e,i,o=!0){for(;e.length;){let n=e.pop();if(o){let t=i?n.lastChild:n.firstChild;for(;t;)e.push(t),t=i?t.previousSibling:t.nextSibling}t!==n&&(yield n)}}static findWithCurrent(t,e,i,o="nextSibling",n="firstChild"){let s=t;do{if(e(s))return s||null;if(n&&s&&s[n]){let t=l.findWithCurrent(s[n],e,s,o,n);if(t)return t}for(;s&&!s[o]&&s!==i;)s=s.parentNode;s&&s[o]&&s!==i&&(s=s[o])}while(s&&s!==i)return null}static findSibling(t,e=!0,i=t=>!l.isEmptyTextNode(t)){let o=l.sibling(t,e);for(;o&&!i(o);)o=l.sibling(o,e);return o&&i(o)?o:null}static findNotEmptySibling(t,e){return l.findSibling(t,e,t=>!l.isEmptyTextNode(t)&&!!(!l.isText(t)||t.nodeValue?.length&&(0,r.trim)(t.nodeValue)))}static findNotEmptyNeighbor(t,e,i){return(0,a.call)(e?l.prev:l.next,t,t=>!!(t&&(!(l.isText(t)||l.isComment(t))||(0,r.trim)(t?.nodeValue||"").length)),i)}static sibling(t,e){return e?t.previousSibling:t.nextSibling}static up(t,e,i,o=!1){let n=t;if(!n)return null;do{if(e(n))return n;if(n===i||!n.parentNode)break;n=n.parentNode}while(n&&n!==i)return n===i&&o&&e(n)?n:null}static closest(t,e,i){let o,n=t=>t.toLowerCase();if((0,s.isFunction)(e))o=e;else if((0,s.isArray)(e)||(0,s.isSet)(e)){let t=(0,s.isSet)(e)?e:new Set(e.map(n));o=e=>!!(e&&t.has(n(e.nodeName)))}else o=t=>!!(t&&n(e)===n(t.nodeName));return l.up(t,o,i)}static furthest(t,e,i){let o=null,n=t?.parentElement;for(;n&&n!==i;)e(n)&&(o=n),n=n?.parentElement;return o}static appendChildFirst(t,e){let i=t.firstChild;i?i!==e&&t.insertBefore(e,i):t.appendChild(e)}static after(t,e){let{parentNode:i}=t;i&&(i.lastChild===t?i.appendChild(e):i.insertBefore(e,t.nextSibling))}static before(t,e){let{parentNode:i}=t;i&&i.insertBefore(e,t)}static prepend(t,e){t.insertBefore(e,t.firstChild)}static append(t,e){(0,s.isArray)(e)?e.forEach(e=>{this.append(t,e)}):t.appendChild(e)}static moveContent(t,e,i=!1,s=()=>!0){let r=(t.ownerDocument||o.globalDocument).createDocumentFragment();(0,n.toArray)(t.childNodes).filter(t=>!!s(t)||(l.safeRemove(t),!1)).forEach(t=>{r.appendChild(t)}),i&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}static isOrContains(t,e,i=!1){return t===e?!i:!!(e&&t&&this.up(e,e=>e===t,t,!0))}static safeRemove(...t){t.forEach(t=>l.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,e){t.collapsed||t.deleteContents();let i=l.isFragment(e)?e.lastChild:e;t.startContainer===t.endContainer&&t.collapsed&&l.isTag(t.startContainer,o.INSEPARABLE_TAGS)?l.after(t.startContainer,e):(t.insertNode(e),i&&t.setStartBefore(i)),t.collapse(!0),[e.nextSibling,e.previousSibling].forEach(t=>l.isText(t)&&!t.nodeValue&&l.safeRemove(t))}static hide(t){t&&((0,a.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let e=(0,a.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=e||"")}static isTag(t,e){if(!this.isElement(t))return!1;let i=t.tagName.toLowerCase(),o=t.tagName.toUpperCase();if(e instanceof Set)return e.has(i)||e.has(o);if(Array.isArray(e))throw TypeError("Dom.isTag does not support array");return i===e||o===e}static markTemporary(t,e){return e&&(0,a.attr)(t,e),(0,a.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!l.isElement(t)&&((0,s.isMarker)(t)||"true"===(0,a.attr)(t,o.TEMP_ATTR))}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,a.$$)(`[${o.TEMP_ATTR}]`,t)}constructor(){throw Error("Dom is static module")}}},23283:function(t,e,i){"use strict";function o(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(t+""))}i.d(e,{isNativeFunction:function(){return o}})},23422:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(18855);i(38187);var h=i(54308);class d extends u.Plugin{afterInit(t){t.e.on("paste.paste",this.onPaste).on("pasteStack.paste",t=>this.pasteStack.push(t)),t.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(t){t.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(t){try{if(!1===this.customPasteProcess(t)||!1===this.j.e.fire("beforePaste",t))return t.preventDefault(),!1;this.defaultPasteProcess(t)}finally{this.j.e.fire("afterPaste",t)}}customPasteProcess(t){if(!this.j.o.processPasteHTML)return;let e=(0,c.getDataTransfer)(t),i=[e?.getData(s.TEXT_PLAIN),e?.getData(s.TEXT_HTML),e?.getData(s.TEXT_RTF)];for(let e of i)if((0,c.isHTML)(e)&&(this.j.e.fire("processHTML",t,e,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(t,e)))return!1}defaultPasteProcess(t){let e=(0,c.getDataTransfer)(t),i=e?.getData(s.TEXT_HTML)||e?.getData(s.TEXT_PLAIN);if(e&&i&&""!==(0,c.trim)(i)){let o=this.j.e.fire("processPaste",t,i,(0,h.getAllTypes)(e));void 0!==o&&(i=o),((0,c.isString)(i)||a.Dom.isNode(i))&&this.__insertByType(t,i,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,e){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(t=>t.html===e);if(i)return this.__insertByType(t,e,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,h.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(t,e,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(t,e,i){if(this.pasteStack.push({html:e,action:i}),(0,c.isString)(e))switch(this.j.buffer.set(s.CLIPBOARD_ID,e),i){case s.INSERT_CLEAR_HTML:e=(0,c.cleanFromWord)(e);break;case s.INSERT_ONLY_TEXT:e=(0,c.stripTags)(e,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case s.INSERT_AS_TEXT:e=(0,c.htmlspecialchars)(e);break;default:{let o=this.j.e.fire("onCustomPasteHTMLOption",i,e,t);"string"==typeof o&&(e=o)}}(0,h.pasteInsertHtml)(t,this.j,e)}onProcessPasteReplaceNl2Br(t,e,i){if(i===s.TEXT_PLAIN+";"&&!(0,c.isHTML)(e))return(0,c.nl2br)(e)}constructor(...t){super(...t),(0,o._)(this,"pasteStack",new c.LimitedStack(20)),(0,o._)(this,"_isDialogOpened",!1)}}(0,n.__decorate)([r.autobind],d.prototype,"onPaste",null),(0,n.__decorate)([r.autobind],d.prototype,"onProcessPasteReplaceNl2Br",null),l.pluginSystem.add("paste",d)},23599:function(t,e,i){"use strict";i.d(e,{position:function(){return function t(e,i,n=!1){let s=e.getBoundingClientRect(),r=s.left,a=s.top;if((0,o.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(e)&&!n){let{left:e,top:o}=t(i.iframe,i,!0);r+=e,a+=o}return{left:Math.round(r),top:Math.round(a),width:Math.round(e.offsetWidth??s.width),height:Math.round(e.offsetHeight??s.height)}}}});var o=i(24497)},23602:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>'},24268:function(t,e,i){"use strict";var o=i(29434),n=i(5266),s=i(49989),r=i.n(s);n.Config.prototype.spellcheck=!1,o.Icon.set("spellcheck",r()),n.Config.prototype.controls.spellcheck={isActive:t=>t.o.spellcheck,icon:r(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},24475:function(t,e,i){"use strict";i.d(e,{Storage:function(){return l}});var o=i(25045),n=i(57821),s=i(59807),r=i(9505);let a="Jodit_";class l{set(t,e){return this.provider.set((0,n.camelCase)(this.prefix+t),e),this}delete(t){return this.provider.delete((0,n.camelCase)(this.prefix+t)),this}get(t){return this.provider.get((0,n.camelCase)(this.prefix+t))}exists(t){return this.provider.exists((0,n.camelCase)(this.prefix+t))}clear(){return this.provider.clear(),this}static makeStorage(t=!1,e){let i;return t&&(0,s.canUsePersistentStorage)()&&(i=new s.LocalStorageProvider(a+e)),i||(i=new r.MemoryStorageProvider),new l(i,e)}constructor(t,e){(0,o._)(this,"provider",void 0),(0,o._)(this,"prefix",void 0),this.provider=t,this.prefix=a,e&&(this.prefix+=e)}}},24497:function(t,e,i){"use strict";i.d(e,{isJoditObject:function(){return n}});var o=i(91565);function n(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&("undefined"!=typeof Jodit&&t instanceof Jodit||t.isJodit))}},24641:function(t,e,i){"use strict";i.d(e,{UICheckbox:function(){return l}});var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(65273);class l extends a.UIInput{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let t=this.getElm("switch-slider");this.state.switch?(t||(t=this.j.c.div(this.getFullElName("switch-slider"))),r.Dom.after(this.nativeInput,t)):r.Dom.safeRemove(t)}constructor(t,e){super(t,{...e,type:"checkbox"}),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e)}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,checked:!1,switch:!1}),(0,n.__decorate)([(0,s.watch)("state.checked"),(0,s.hook)("ready")],l.prototype,"onChangeChecked",null),(0,n.__decorate)([(0,s.watch)("nativeInput:change")],l.prototype,"onChangeNativeCheckBox",null),(0,n.__decorate)([(0,s.watch)("state.switch"),(0,s.hook)("ready")],l.prototype,"onChangeSwitch",null),l=(0,n.__decorate)([s.component],l)},24735:function(t,e,i){"use strict";i.d(e,{Async:function(){return m}});var o=i(25045),n=i(81937),s=i(61077),r=i(72068),a=i(91565),l=i(72412),c=i(62101),u=i(52100),h=i(85932),d=i(18303),f=i(28712),p=i(14228);class m{delay(t){return this.promise(e=>this.setTimeout(e,t))}setTimeout(t,e,...i){if(this.isDestructed)return 0;let o={};(0,d.isVoid)(e)&&(e=0),(0,l.isNumber)(e)||(e=(o=e).timeout||0),o.label&&this.clearLabel(o.label);let n=(0,s.setTimeout)(t,e,...i),r=o.label||n;return this.timers.set(r,n),this.__callbacks.set(r,t),n}updateTimeout(t,e){if((0,f.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let i=this.__callbacks.get(t);return(0,f.assert)((0,a.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:t,timeout:e})}clearLabel(t){t&&this.timers.has(t)&&((0,s.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,h.isString)(t))return this.clearLabel(t);(0,s.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,e,i=!1){let o=0,n=!1,l=[],h=(...e)=>{if(!n){o=0;let i=t(...e);if(n=!0,l.length){let t=()=>{l.forEach(t=>t()),l.length=0};(0,u.isPromise)(i)?i.finally(t):t()}}},d=(...r)=>{n=!1,e?(!o&&i&&h(...r),(0,s.clearTimeout)(o),o=this.setTimeout(()=>h(...r),(0,a.isFunction)(e)?e():e),this.timers.set(t,o)):h(...r)};return(0,c.isPlainObject)(e)&&e.promisify?(...t)=>{let e=this.promise(t=>{l.push(t)}).catch(t=>{if((0,r.isAbortError)(t))return null;throw t});return d(...t),e}:d}microDebounce(t,e=!1){let i,o=!1,n=!0;return(...s)=>{if(i=s,o){n=!0;return}n=!0,e&&(n=!1,t(...i)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&n&&t(...i)})}}throttle(t,e,i=!1){let o=null,n,s,r;return(...i)=>{if(n=!0,r=i,!e)return void t(...r);o||(s=()=>{n?(t(...r),n=!1,o=this.setTimeout(s,(0,a.isFunction)(e)?e():e),this.timers.set(s,o)):o=null})()}}promise(t){let e=()=>{},i=new Promise((i,o)=>{e=()=>o((0,p.abort)("Abort async")),this.promisesRejections.add(e),t(i,o)});return i.finally||"undefined"==typeof process||n.IS_ES_NEXT||(i.finally=t=>(i.then(t).catch(t),i)),i.finally(()=>{this.promisesRejections.delete(e)}).catch(()=>null),i.rejectCallback=e,i}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(e=>{t.then(t=>(e("fulfilled"),t),t=>{throw e("rejected"),t}),this.setTimeout(()=>{e("pending")},100)});let e={};return Promise.race([t,e]).then(t=>t===e?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,e={timeout:100}){let i=this.__requestIdleCallbackNative(t,e);return this.__requestsIdle.add(i),i}requestIdlePromise(t){return this.promise(e=>{let i=this.requestIdleCallback(()=>e(i),t)})}schedulerPostTask(t,e={delay:0,priority:"user-visible"}){let i=new AbortController;if(e.signal&&e.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(t,{...e,signal:i.signal});return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((o,n)=>{let s=this.setTimeout(()=>{try{o(t())}catch(t){n(t)}this.__controllers.delete(i)},e.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(i),n((0,p.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let e=requestAnimationFrame(t);return this.__requestsRaf.add(e),e}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,s.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){(0,o._)(this,"timers",new Map),(0,o._)(this,"__callbacks",new Map),(0,o._)(this,"__queueMicrotaskNative",queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve())),(0,o._)(this,"promisesRejections",new Set),(0,o._)(this,"__requestsIdle",new Set),(0,o._)(this,"__controllers",new Set),(0,o._)(this,"__requestsRaf",new Set),(0,o._)(this,"__requestIdleCallbackNative",window.requestIdleCallback?.bind(window)??((t,e)=>{let i=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},e?.timeout??1)})),(0,o._)(this,"__cancelIdleCallbackNative",window.cancelIdleCallback?.bind(window)??(t=>{this.clearTimeout(t)})),(0,o._)(this,"isDestructed",!1)}}},24772:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg>'},24968:function(t,e,i){"use strict";i.d(e,{derive:function(){return n}});var o=i(91565);function n(...t){return e=>{let i=e.prototype;for(let e=0;e<t.length;e++){let n=t[e],s=Object.getOwnPropertyNames(n.prototype);for(let t=0;t<s.length;t++){let e=s[t],r=Object.getOwnPropertyDescriptor(n.prototype,e);null!=r&&(0,o.isFunction)(r.value)&&!(0,o.isFunction)(i[e])&&Object.defineProperty(i,e,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return r.value.call(this,...t)}})}}}}},25045:function(t,e,i){"use strict";function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,{_:function(){return o}})},25222:function(t,e,i){"use strict";i.d(e,{Storage:function(){return o.Storage}}),i(59807);var o=i(24475)},25501:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg>'},25974:function(t,e,i){"use strict";i.d(e,{makeInstance:function(){return s}});var o=i(81937),n=i(91565);function s(t,e){try{try{return(0,n.isFunction)(e)?new e(t):e}catch(i){if((0,n.isFunction)(e)&&!e.prototype)return e(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},26106:function(t,e,i){"use strict";i.d(e,{checkJoinNeighbors:function(){return r}});var o=i(81937),n=i(23211),s=i(15200);function r(t,e,i){let s=e,r=s;for(;s&&!n.Dom.findNotEmptySibling(s,i)&&s.parentElement!==t.editor;)r=s=s.parentElement;if(n.Dom.isElement(r)&&n.Dom.isContentEditable(r,t.editor)){let s=n.Dom.findNotEmptySibling(r,i);if(s&&(function(t,e,i,s){let r=n.Dom.isTag(i,o.LIST_TAGS),l=n.Dom.isTag(e,o.LIST_TAGS),c=(t,e)=>e?t.firstElementChild:t.lastElementChild;return l?(i=t.createInside.element(t.o.enterBlock),n.Dom.before(e,i),a(t,c(e,s),i,s)):!!i&&!!r&&!l&&a(t,e,c(i,!s),s)}(t,r,s,i)||a(t,r,s,i)))return t.s.setCursorBefore(e),!0}return!1}function a(t,e,i,o){if(e&&n.Dom.isElement(i)){n.Dom.moveContent(e,i,!o,(0,s.getMoveFilter)(t));let r=e;for(;r&&r!==t.editor&&n.Dom.isEmpty(r);){let t=r.parentElement;n.Dom.safeRemove(r),r=t}return!0}return!1}},26136:function(t,e,i){"use strict";i.d(e,{browser:function(){return o}});let o=t=>{let e=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(e)||/(chrome)[\s/]([\w.]+)/.exec(e)||/(webkit)[\s/]([\w.]+)/.exec(e)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(e)||/(msie)[\s]([\w.]+)/.exec(e)||/(trident)\/([\w.]+)/.exec(e)||0>e.indexOf("compatible")||[];return"version"===t?i[2]:"webkit"===t?"chrome"===i[1]||"webkit"===i[1]:"ff"===t?"firefox"===i[1]:"msie"===t?"trident"===i[1]||"msie"===i[1]:i[1]===t}},26633:function(t,e,i){"use strict";i.d(e,{readAlign:function(){return n}});var o=i(80991);function n(t,e){t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?e.align=(0,o.css)(t,"float"):"block"===(0,o.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?e.align="center":e.align=""}},27137:function(t,e,i){"use strict";i.d(e,{UIImagePropertiesForm:function(){return f}});var o=i(25045),n=i(31635),s=i(84839),r=i(91672),a=i(65946),l=i(63468),c=i(29434),u=i(15753),h=i(29596),d=i(17306);class f extends l.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(t){let e=super.getElm(t);if(e)return e;for(let e of this.elements){let i=e.getElm(t);if(i)return i}return null}render(){return`<form>
139
+ `,{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec(t,e,{control:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let n=s(i);t.execCommand(n,!1,e)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(t,e,{control:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let n=s(i);t.execCommand(n,!1,e)},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(t,e,{control:i}){if(!(0,o.isJoditObject)(t))return;if(!i.args)return!1;let n=s(i);t.execCommand(n,!1,e),t.e.fire("hidePopup")},tooltip:"Delete"}]},17918:function(t){t.exports={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"}},17995:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},18073:function(t,e,i){"use strict";i.d(e,{size:function(){return n}});var o=i(28686);function n(t){return(0,o.isString)(t)||(0,o.isArray)(t)?t.length:(0,o.isPlainObject)(t)?Object.keys(t).length:0}},18080:function(t,e,i){"use strict";i.d(e,{i18n:function(){return c},sprintf:function(){return l}});var o=i(81937),n=i(85932),s=i(99436),r=i(93640),a=i(5266);let l=(t,e)=>{if(!e||!e.length)return t;let i=/%([sd])/g,o=i.exec(t),n=t,s=0;for(;o&&void 0!==e[s];)n=n.replace(o[0],e[s].toString()),s+=1,o=i.exec(t);return n};function c(t,e,i){if(!(0,n.isString)(t))throw(0,r.error)("i18n: Need string in first argument");if(!t.length)return t;let c=!!i?.debugLanguage,u={},h=t=>e&&e.length?l(t,e):t,d=(0,r.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),f=(0,r.defaultLanguage)(i?.language,d),p=e=>{if(!e)return;if((0,n.isString)(e[t]))return h(e[t]);let i=t.toLowerCase();if((0,n.isString)(e[i]))return h(e[i]);let o=(0,s.ucfirst)(t);if((0,n.isString)(e[o]))return h(e[o])};void 0!==o.lang[f]?u=o.lang[f]:c||(u=void 0!==o.lang[d]?o.lang[d]:o.lang.en);let m=i?.i18n;if(m&&m[f]){let t=p(m[f]);if(t)return t}return p(u)||(!c&&o.lang.en&&(0,n.isString)(o.lang.en[t])&&o.lang.en[t]?h(o.lang.en[t]):c?"{"+t+"}":(o.IS_PROD,h(t)))}},18210:function(t,e,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(23211),a=i(28077),l=i(91206);class c extends l.Plugin{afterInit(t){}beforeDestruct(t){}onKeyDownArrow(t){if(t.key!==n.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:e,endOffset:i}=this.j.selection.range;if(r.Dom.isText(e)&&e.nodeValue?.length===i){let{parentNode:t}=e;r.Dom.isInlineBlock(t)&&!r.Dom.findNotEmptyNeighbor(t,!1,this.j.editor)&&r.Dom.after(t,this.j.createInside.text(n.NBSP_SPACE))}}}(0,o.__decorate)([(0,s.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",c)},18272:function(t,e,i){"use strict";i.d(e,{makeContextMenu:function(){return r},makeDataProvider:function(){return s}});var o=i(67399),n=i(17780);function s(t,e){return new n.default(t,e)}function r(t){return new o.ContextMenu(t)}},18303:function(t,e,i){"use strict";function o(t){return null==t}i.d(e,{isVoid:function(){return o}})},18377:function(t,e,i){"use strict";i.d(e,{normalizePath:function(){return n}});var o=i(4040);let n=(...t)=>t.filter(t=>(0,o.trim)(t).length).map((e,i)=>(e=e.replace(/([^:])[\\/]+/g,"$1/"),i&&(e=e.replace(/^\//,"")),i!==t.length-1&&(e=e.replace(/\/$/,"")),e)).join("/")},18380:function(t,e,i){"use strict";i.d(e,{readMargins:function(){return n}});var o=i(74264);function n(t,e,i){let n=!0,s=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let r=t.style.getPropertyValue((0,o.kebabCase)(i));if(!r){s=!0,e[i]=0;return}/^[0-9]+(px)?$/.test(r)&&(r=parseInt(r,10)),e[i]=r,(s&&e[i]||n&&"marginTop"!==i&&e[i]!==e.marginTop)&&(n=!1)}),i.marginIsLocked=n}},18605:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg>'},18762:function(t,e,i){"use strict";i.d(e,{FileSelectorWidget:function(){return a}});var o=i(23211),n=i(65946),s=i(4099),r=i(89636);let a=(t,e,i,a,c=!0)=>{let u,h=[],d=t.o.uploader;if(e.upload&&(d.url||d.insertImageAsBase64URI||d.customUploadFunction)){let i=t.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${t.i18n(c?"Drop image":"Drop file")}</strong><span><br>${t.i18n("or click")}</span><input type="file" accept="${c?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);t.uploader.bind(i,i=>{let o=(0,n.isFunction)(e.upload)?e.upload:d.defaultHandlerSuccess;(0,n.isFunction)(o)&&o.call(t,i),t.e.fire("closeAllPopups")},e=>{t.message.error(e.message),t.e.fire("closeAllPopups")}),h.push({icon:"upload",name:"Upload",content:i})}if(e.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&h.push({icon:"folder",name:"Browse",content(){a&&a(),e.filebrowser&&t.filebrowser.open(e.filebrowser,c)}}),e.url){let r=new s.UIButton(t,{type:"submit",variant:"primary",text:"Insert"}),a=new s.UIForm(t,[new s.UIInput(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new s.UIInput(t,{name:"text",label:"Alternative text"}),new s.UIBlock(t,[r])]);u=null,i&&!o.Dom.isText(i)&&!o.Dom.isComment(i)&&(o.Dom.isTag(i,"img")||(0,n.$$)("img",i).length)&&(u="IMG"===i.tagName?i:(0,n.$$)("img",i)[0],l(a.container,"input[name=url]",(0,n.attr)(u,"src")),l(a.container,"input[name=text]",(0,n.attr)(u,"alt")),r.state.text="Update"),i&&o.Dom.isTag(i,"a")&&(l(a.container,"input[name=url]",(0,n.attr)(i,"href")),l(a.container,"input[name=text]",(0,n.attr)(i,"title")),r.state.text="Update"),a.onSubmit(i=>{(0,n.isFunction)(e.url)&&e.url.call(t,i.url,i.text)}),h.push({icon:"link",name:"URL",content:a.container})}return(0,r.TabsWidget)(t,h)};function l(t,e,i){let o=t.querySelector(e);return o?(i&&(o.value=i),o.value):""}},18855:function(t,e,i){"use strict";i.d(e,{Plugin:function(){return l}});var o=i(25045),n=i(31635),s=i(16964),r=i(84839),a=i(24497);class l extends s.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:t,buttons:e}=this;e&&(0,a.isJoditObject)(t)&&e.forEach(e=>{t.registerButton(e)})}__afterInit(){this.__inited=!0,this.setStatus(s.STATUSES.ready),this.afterInit(this.jodit)}init(t){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){if(this.isInDestruct)return;let{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(s.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,a.isJoditObject)(t)&&this.buttons?.forEach(e=>{t?.unregisterButton(e)}),this.beforeDestruct(this.j),super.destruct()}constructor(t){super(t),(0,o._)(this,"buttons",[]),(0,o._)(this,"hasStyle",!1),(0,o._)(this,"styles",void 0),(0,o._)(this,"__inited",!1),t.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}(0,o._)(l,"requires",[]),(0,n.__decorate)([r.autobind],l.prototype,"__afterPluginSystemInit",null),(0,n.__decorate)([r.autobind],l.prototype,"__afterInit",null),(0,n.__decorate)([r.autobind],l.prototype,"__beforeDestruct",null)},18869:function(t,e,i){"use strict";i.d(e,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return r}});var o=i(25045),n=i(88475),s=i(28712);let r="JoditEventDefaultNamespace";class a{get(t,e){if(this.__store.has(e)){let i=this.__store.get(e);return(0,s.assert)(i,"-"),i[t]}}indexOf(t,e,i){let o=this.get(t,e);if(o){for(let t=0;t<o.length;t+=1)if(o[t].originalCallback===i)return t}return!1}namespaces(t=!1){let e=(0,n.toArray)(this.__store.keys());return t?e.filter(t=>t!==r):e}events(t){let e=this.__store.get(t);return e?Object.keys(e):[]}set(t,e,i,o=!1){let n=this.__store.get(e);n||(n={},this.__store.set(e,n)),void 0===n[t]&&(n[t]=[]),o?n[t].unshift(i):n[t].push(i)}clear(){this.__store.clear()}clearEvents(t,e){let i=this.__store.get(t);i&&i[e]&&(delete i[e],Object.keys(i).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){(0,o._)(this,"__store",new Map)}}},18929:function(t,e,i){"use strict";var o=i(81937),n=i(29434),s=i(5266),r=i(9103),a=i.n(r);s.Config.prototype.beautifyHTML=!o.IS_IE,s.Config.prototype.sourceEditor="ace",s.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},s.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],s.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],n.Icon.set("source",a()),s.Config.prototype.controls.source={mode:o.MODE_SPLIT,exec(t){t.toggleMode()},isActive:t=>t.getRealMode()===o.MODE_SOURCE,tooltip:"Change mode"}},18993:function(t,e,i){"use strict";var o=i(29434),n=i(5266),s=i(81875),r=i.n(s);n.Config.prototype.usePopupForSpecialCharacters=!1,n.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],o.Icon.set("symbols",r()),n.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,e,i){let o=t.e.fire("generateSpecialCharactersTable.symbols");if(o){if(t.o.usePopupForSpecialCharacters){let e=t.c.div();return e.classList.add("jodit-symbols"),e.appendChild(o),t.e.on(o,"close_dialog",i),e}t.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);let e=o.querySelector("a");e&&e.focus()}}}},19147:function(t,e,i){"use strict";i.d(e,{NUMBER_FIELDS_REG:function(){return a},normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var o=i(70222),n=i(18303),s=i(93387),r=i(74264);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(t,e){return!(0,n.isVoid)(e)&&a.test(t)&&(0,o.isNumeric)(e.toString())?parseInt(e.toString(),10)+"px":e}function c(t,e){if("font-weight"===(0,r.kebabCase)(t)){switch(e.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.isNumeric)(e)?Number(e):e}return/color/i.test(t)&&/^rgb/i.test(e.toString())&&(0,s.colorToHex)(e.toString())||e}},19213:function(t,e,i){"use strict";i.d(e,{clearSelectionWrappers:function(){return c},clearSelectionWrappersFromHTML:function(){return u},getSelectionWrappers:function(){return l},highlightTextRanges:function(){return a}});var o=i(81937),n=i(23211),s=i(28723);let r="jd-tmp-selection";function a(t,e,i,s,a){if(null==e.startContainer.nodeValue||null==e.endContainer.nodeValue||function(t,e,i){if(t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight){let o=new Highlight(...[e,...i].map(e=>{let i=t.selection.createRange();return i.setStart(e.startContainer,e.startOffset),i.setEnd(e.endContainer,e.endOffset),i}));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",o),i.length=0,!0}return!1}(t,e,i))return;let l=s.element("span",{[r]:!0});n.Dom.markTemporary(l),function(t,e,i){let o=t.startContainer.nodeValue,s=0;if(0!==t.startOffset){let e=i.text(o.substring(0,t.startOffset));t.startContainer.nodeValue=o.substring(t.startOffset),n.Dom.before(t.startContainer,e),t.startContainer===t.endContainer&&(s=t.startOffset,t.endOffset-=s),t.startOffset=0}let r=t.endContainer.nodeValue;if(t.endOffset!==r.length){let o=i.text(r.substring(t.endOffset));for(let i of(t.endContainer.nodeValue=r.substring(0,t.endOffset),n.Dom.after(t.endContainer,o),e))if(i.startContainer===t.endContainer)i.startContainer=o,i.startOffset=i.startOffset-t.endOffset-s,i.endContainer===t.endContainer&&(i.endContainer=o,i.endOffset=i.endOffset-t.endOffset-s);else break;t.endOffset=t.endContainer.nodeValue.length}}(e,i,s);let c=e.startContainer;do{var u;if(!c||(n.Dom.isText(c)&&(u=c.parentNode,!(n.Dom.isElement(u)&&u.hasAttribute(r)))&&n.Dom.wrap(c,l.cloneNode(),s),c===e.endContainer))break;let t=c.firstChild||c.nextSibling;if(!t){for(;c&&!c.nextSibling&&c!==a;)c=c.parentNode;t=c?.nextSibling}c=t}while(c&&c!==a)}function l(t){return(0,s.$$)(`[${r}]`,t)}function c(t){l(t.editor).forEach(t=>n.Dom.unwrap(t)),t.o.search.useCustomHighlightAPI&&o.globalWindow&&void 0!==o.globalWindow.Highlight&&CSS.highlights.clear()}function u(t){return t.replace(RegExp(`<span[^>]+${r}[^>]+>(.*?)</span>`,"g"),"$1")}},19549:function(t,e,i){"use strict";i.d(e,{getSuitParent:function(){return function t(e,i,r){let{parentNode:a}=i;return a===r||!o.Dom.isHTMLElement(a)||o.Dom.next(i,n.isNormalNode,a)||o.Dom.prev(i,n.isNormalNode,a)?null:e.isElementCommit&&e.elementIsBlock&&!o.Dom.isBlock(a)?t(e,a,r):(0,s.isSuitElement)(e,a,!1)&&(!o.Dom.isBlock(a)||e.elementIsBlock)?a:e.isElementCommit&&!o.Dom.isBlock(a)?t(e,a,r):null}}});var o=i(23211),n=i(83653),s=i(73019)},20784:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg>'},21132:function(t,e,i){"use strict";i.d(e,{applyMargin:function(){return s}});var o=i(80991),n=i(10808);function s(t,e,i,s,r,a,l){let c=[e,i,s,r],u=(t,e)=>{let i=(0,o.css)(a,t),s=(0,n.normalSizeToString)(e);i.toString()!==s.toString()&&(0,o.css)(a,t,s)};if(l)u("margin",e);else{let t=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((e,i)=>{u(t[i],e)})}}},21917:function(t){t.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},22289:function(t,e,i){"use strict";function o(t){return"boolean"==typeof t}i.d(e,{isBoolean:function(){return o}})},22533:function(t,e,i){"use strict";i.d(e,{ToolbarButton:function(){return m}});var o=i(25045),n=i(31635),s=i(69364),r=i(84839),a=i(27795),l=i(65946),c=i(59400),u=i(15982),h=i(29434),d=i(51116),f=i(42573),p=i(4274);class m extends c.UIButton{className(){return"ToolbarButton"}get toolbar(){return this.closest(f.ToolbarCollection)}update(){let{control:t,state:e}=this,i=this.closest(f.ToolbarCollection);if(!i)return;let o=t.value?.(i.jodit,this);void 0!==o&&(e.value=o),e.disabled=this.__calculateDisabledStatus(i),e.activated=this.__calculateActivatedStatus(i),t.update?.(i.jodit,this)}__calculateActivatedStatus(t){return(!(0,l.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(!!this.control.isActive?.(this.j,this)||!!(t&&t.shouldBeActive(this)))}__calculateDisabledStatus(t){return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||this.control.isDisabled?.(this.j,this))||!!(t&&t.shouldBeDisabled(this))}onChangeActivated(){(0,l.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,l.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,l.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let t=this.componentName,e=this.j.c.span(t),i=super.createContainer();(0,l.attr)(e,"role","listitem"),i.classList.remove(t),i.classList.add(t+"__button"),Object.defineProperty(i,"component",{value:this}),e.appendChild(i);let o=this.j.c.fromHTML(`<span role="trigger" class="${t}__trigger">${h.Icon.get("chevron")}</span>`);return i.appendChild(o),e}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):a.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let t=this.state.disabled?"disabled":null;(0,l.attr)(this.trigger,"disabled",t),(0,l.attr)(this.button,"disabled",t),(0,l.attr)(this.container,"disabled",t)}__initFromControl(){let{control:t,state:e}=this;this.updateSize(),e.name=t.name;let{textIcons:i}=this.j.o;if(!0===i||(0,l.isFunction)(i)&&i(t.name)||t.template)e.icon=(0,c.UIButtonState)().icon,e.text=t.text||t.name;else{if(t.iconURL)e.icon.iconURL=t.iconURL;else{let i=t.icon||t.name;e.icon.name=h.Icon.exists(i)||this.j.o.extraIcons?.[i]?i:""}t.iconURL||e.icon.name||(e.text=t.text||t.name)}t.tooltip&&(e.tooltip=(0,l.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip),e.hasTrigger=!!(t.list||t.popup&&t.exec)}onTriggerClick(t){if(this.openedPopup)return void this.__closePopup();let{control:e}=this;if(t.buffer={actionTrigger:this},e.list)return this.__openControlList(e);if((0,l.isFunction)(e.popup)){let t=this.openPopup();t.parentElement=this;try{if(!1!==this.j.e.fire((0,l.camelCase)(`before-${e.name}-open-popup`),this.target,e,t)){let i=this.toolbar?.getTarget(this)??this.target??null,o=e.popup(this.j,i,this.__closePopup,this);o?t.setContent((0,l.isString)(o)?this.j.c.fromHTML(o):o).open(()=>(0,l.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(t){throw this.__closePopup(),t}this.j.e.fire((0,l.camelCase)(`after-${e.name}-open-popup`),t.container)}}__openControlList(t){let e=this.jodit.options.controls??{},i=t=>(0,u.findControlType)(t,e),o=t.list,n=this.openPopup(),s=(0,p.makeCollection)(this.j);n.parentElement=this,s.parentElement=n,s.mode="vertical";let r=(e,o)=>{let n;if((0,l.isString)(o)&&i(o))return{name:o.toString(),...i(o)};if((0,l.isString)(e)&&i(e))return{name:e.toString(),...i(e),..."object"==typeof o?o:{}};n=e,(0,l.isPlainObject)(n)&&"title"in n&&"value"in n&&(o=e.value,e=e.title);let{childTemplate:s}=t,r={name:e.toString(),template:s&&((t,e,i)=>s(t,e,i,this)),exec:t.childExec?(e,i,o)=>t.childExec?.(e,i,{...o,parentControl:t}):t.exec,data:t.data,command:t.command,isActive:t.isChildActive,value:t.value,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],e,o]};return(0,l.isString)(o)&&(r.text=o),r};s.build((0,l.isArray)(o)?o.map(r):(0,l.keys)(o,!1).map(t=>r(t,o[t])),this.target),n.setContent(s).open(()=>(0,l.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&a.Dom.isNode(t.target)&&(a.Dom.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new d.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}onClick(t){let{control:e}=this;if((0,l.isFunction)(e.exec)){let i=this.toolbar?.getTarget(this)??this.target??null,o=e.exec(this.j,i,{control:e,originalEvent:t,button:this});if(!1!==o&&!0!==o&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==o)return}return e.list?this.__openControlList(e):(0,l.isFunction)(e.popup)?this.onTriggerClick(t):void((e.command||e.name)&&((0,l.call)((0,l.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),e.command||e.name,!1,e.args&&e.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(t,e,i=null){super(t),(0,o._)(this,"control",void 0),(0,o._)(this,"target",void 0),(0,o._)(this,"state",void 0),(0,o._)(this,"trigger",void 0),(0,o._)(this,"openedPopup",void 0),this.control=e,this.target=i,this.state={...(0,c.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const n=this.getElm("button");(0,l.assert)(n,"Element button should exists"),this.button=n,Object.defineProperty(n,"component",{value:this,configurable:!0});const r=this.getElm("trigger");(0,l.assert)(r,"Element trigger should exists"),this.trigger=r,r.remove(),t.e.on([this.button,this.trigger],"mousedown",t=>t.preventDefault()),this.onAction(this.onClick),this.hookStatus(s.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),e.mods&&Object.keys(e.mods).forEach(t=>{e.mods&&this.setMod(t,e.mods[t])})}}(0,n.__decorate)([r.cacheHTML],m.prototype,"createContainer",null),(0,n.__decorate)([(0,r.watch)("state.hasTrigger",{immediately:!1})],m.prototype,"onChangeHasTrigger",null),(0,n.__decorate)([(0,r.watch)("trigger:click")],m.prototype,"onTriggerClick",null),(0,n.__decorate)([r.autobind],m.prototype,"onOutsideClick",null),(0,n.__decorate)([r.autobind],m.prototype,"__closePopup",null),m=(0,n.__decorate)([r.component],m)},22852:function(t,e,i){"use strict";i.d(e,{stripTags:function(){return function t(e,i=document,u=null){let h=i.createElement("div");return(0,n.isString)(e)?h.innerHTML=e:h.appendChild(e),(0,r.$$)("*",h).forEach(e=>{let n=e.parentNode;if(!n)return;if(u&&o.Dom.isTag(e,u)){let n=e.nodeName.toLowerCase(),s=o.Dom.isTag(e,c)?`%%%jodit-single-${n}%%%`:`%%%jodit-${n}%%%${t(e.innerHTML,i,u)}%%%/jodit-${n}%%%`;o.Dom.before(e,i.createTextNode(s)),o.Dom.safeRemove(e);return}if(o.Dom.isTag(e,l))return void o.Dom.safeRemove(e);if(!o.Dom.isTag(e,a))return;let s=e.nextSibling;!(o.Dom.isText(s)&&/^\s/.test(s.nodeValue||""))&&s&&n.insertBefore(i.createTextNode(" "),s)}),(0,s.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,e,i,o)=>`<${e?"/":""}${o}>`)}}});var o=i(23211),n=i(85932),s=i(4040),r=i(93640);let a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},22980:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(28077),l=i(85932),c=i(91206);i(86038);class u extends c.Plugin{afterInit(t){"br"!==t.o.enter.toLowerCase()&&t.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(t){t.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:t}=this;if(!t.isEditorMode())return;let e=t.editor.firstChild,i=!1;for(;e;){if(e=function(t,e){let i=t,o=t;do if(r.Dom.isElement(o)&&r.Dom.isLeaf(o)&&!r.Dom.isList(o.parentElement)){let t=r.Dom.findNotEmptySibling(o,!1);r.Dom.isTag(i,"ul")?i.appendChild(o):i=r.Dom.wrap(o,"ul",e.createInside),o=t}else break;while(o)return i}(e,t),this.isSuitableStart(e)){i||t.s.save(),i=!0;let o=t.createInside.element(t.o.enter);for(r.Dom.before(e,o);e&&this.isSuitable(e);){let t=e.nextSibling;o.appendChild(e),e=t}o.normalize(),e=o}e=e&&e.nextSibling}i&&(t.s.restore(),"afterInit"===t.e.current&&t.e.fire("internalChange"))}preprocessInput(){let{jodit:t}=this,e="afterInit"===t.e.current;if(!t.isEditorMode()||t.editor.firstChild||!t.o.wrapNodes.emptyBlockAfterInit&&e)return;let i=t.createInside.element(t.o.enter),o=t.createInside.element("br");r.Dom.append(i,o),r.Dom.append(t.editor,i),t.s.isFocused()&&t.s.setCursorBefore(o),t.e.fire("internalChange")}constructor(...t){super(...t),(0,o._)(this,"isSuitableStart",t=>r.Dom.isText(t)&&(0,l.isString)(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||t.parentNode?.firstChild===t&&this.isSuitable(t.nextSibling))||this.isNotWrapped(t)&&!r.Dom.isTemporary(t)),(0,o._)(this,"isSuitable",t=>r.Dom.isText(t)||this.isNotWrapped(t)),(0,o._)(this,"isNotWrapped",t=>r.Dom.isElement(t)&&!(r.Dom.isBlock(t)||r.Dom.isTag(t,this.j.o.wrapNodes.exclude)))}}(0,n.__decorate)([s.autobind],u.prototype,"postProcessSetEditorValue",null),(0,n.__decorate)([s.autobind],u.prototype,"preprocessInput",null),a.pluginSystem.add("wrapNodes",u)},23112:function(t,e,i){"use strict";function o(t){let e=atob(t.split(",")[1]),i=t.split(",")[0].split(":")[1].split(";")[0],o=new Uint8Array(new ArrayBuffer(e.length));for(let t=0;t<e.length;t+=1)o[t]=e.charCodeAt(t);return new Blob([o.buffer],{type:i})}i.d(e,{dataURItoBlob:function(){return o}})},23175:function(t,e,i){"use strict";i.d(e,{isMarker:function(){return s}});var o=i(81937),n=i(23211);function s(t){return n.Dom.isNode(t)&&n.Dom.isTag(t,"span")&&t.hasAttribute("data-"+o.MARKER_CLASS)}},23183:function(t,e,i){"use strict";i.d(e,{Elms:function(){return n}});var o=i(88475);class n{getElm(t){return this.container.querySelector("."+this.getFullElName(t))}getElms(t){return(0,o.toArray)(this.container.querySelectorAll("."+this.getFullElName(t)))}}},23211:function(t,e,i){"use strict";i.d(e,{Dom:function(){return l}});var o=i(81937),n=i(88475),s=i(28686),r=i(4040),a=i(93640);class l{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,e,i){let o,n=t;i.s.save();let s=!1;do s=!1,(o=n.nextSibling)&&!l.isBlock(o)&&!l.isTag(o,"br")&&(s=!0,n=o);while(s)return l.__wrapElements(e,i,t,n)}static __wrapElements(t,e,i,o){let n=(0,s.isString)(t)?e.createInside.element(t):t;i.parentNode&&i.parentNode.insertBefore(n,i);let r=i;for(;r&&(r=i.nextSibling,n.appendChild(i),i!==o&&r);)i=r;return e.s.restore(),n}static wrapInline(t,e,i){let o,n=t,s=t;i.s.save();let r=!1;do r=!1,(o=n.previousSibling)&&!l.isBlock(o)&&(r=!0,n=o);while(r)do r=!1,(o=s.nextSibling)&&!l.isBlock(o)&&(r=!0,s=o);while(r)return l.__wrapElements(e,i,n,s)}static wrap(t,e,i){let o=(0,s.isString)(e)?i.element(e):e;if(l.isNode(t)){if(!t.parentNode)throw(0,a.error)("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{let e=t.extractContents();t.insertNode(o),o.appendChild(e)}return o}static unwrap(t){let e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);l.safeRemove(t)}}static between(t,e,i){let o=t;for(;o&&o!==e&&!(t!==o&&i(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)o=o.parentNode;t=o?.nextSibling}o=t}}static replace(t,e,i,o=!1,r=!1){let c;if((0,s.isHTML)(e)&&((0,a.assert)(i,"Need create instance for new tag"),e=i.fromHTML(e)),(0,s.isString)(e)?((0,a.assert)(i,"Need create instance for new tag"),c=i.element(e)):c=e,!r)for(;t.firstChild;)c.appendChild(t.firstChild);return o&&l.isElement(t)&&l.isElement(c)&&(0,n.toArray)(t.attributes).forEach(t=>{c.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(c,t),c}static isEmptyTextNode(t){return l.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return l.each(t,t=>l.isEmptyTextNode(t))}static isContentEditable(t,e){return l.isNode(t)&&!l.closest(t,t=>l.isElement(t)&&"false"===t.getAttribute("contenteditable"),e)}static isEmpty(t,e=o.NO_EMPTY_TAGS){let i;if(!t)return!0;i=(0,s.isFunction)(e)?e:t=>e.has(t.nodeName.toLowerCase());let n=t=>null==t.nodeValue||0===(0,r.trim)(t.nodeValue).length;return l.isText(t)?n(t):!(l.isElement(t)&&i(t))&&l.each(t,t=>{if(l.isText(t)&&!n(t)||l.isElement(t)&&i(t))return!1})}static isNode(t){return!!(t&&(0,s.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,s.isFunction)(t.appendChild))}static isCell(t){return l.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return l.isTag(t,o.LIST_TAGS)}static isLeaf(t){return l.isTag(t,"li")}static isImage(t){return l.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,s.isVoid)(t)&&"object"==typeof t&&l.isNode(t)&&o.IS_BLOCK.test(t.nodeName)}static isText(t){return!!(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return!!(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){return!!l.isNode(t)&&!!(t.ownerDocument?.defaultView&&t.nodeType===Node.ELEMENT_NODE)}static isFragment(t){return!!l.isNode(t)&&!!(t.ownerDocument?.defaultView&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){if(!l.isNode(t))return!1;let e=t.ownerDocument?.defaultView;return!!(e&&t instanceof e.HTMLElement)}static isInlineBlock(t){return l.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,a.css)(t,"display").toString())}static canSplitBlock(t){return!(0,s.isVoid)(t)&&l.isHTMLElement(t)&&l.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static last(t,e){let i=t?.lastChild;if(!i)return null;do{if(e(i))return i;let o=i.lastChild;if(o||(o=i.previousSibling),!o&&i.parentNode!==t){do i=i.parentNode;while(i&&!i?.previousSibling&&i.parentNode!==t)o=i?.previousSibling}i=o}while(i)return null}static prev(t,e,i,o=!0){return l.find(t,e,i,!1,o)}static next(t,e,i,o=!0){return l.find(t,e,i,!0,o)}static prevWithClass(t,e){return l.prev(t,t=>l.isElement(t)&&t.classList.contains(e),t.parentNode)}static nextWithClass(t,e){return l.next(t,t=>l.isElement(t)&&t.classList.contains(e),t.parentNode)}static find(t,e,i,o=!0,n=!0){let s=this.nextGen(t,i,o,n),r=s.next();for(;!r.done;){if(e(r.value))return r.value;r=s.next()}return null}static*nextGen(t,e,i=!0,o=!0){let n=[],s=t;do{let e=i?s.nextSibling:s.previousSibling;for(;e;)n.unshift(e),e=i?e.nextSibling:e.previousSibling;yield*this.runInStack(t,n,i,o),s=s.parentNode}while(s&&s!==e)return null}static each(t,e,i=!0){let o=this.eachGen(t,i),n=o.next();for(;!n.done;){if(!1===e(n.value))return!1;n=o.next()}return!0}static eachGen(t,e=!0){return this.runInStack(t,[t],e)}static*runInStack(t,e,i,o=!0){for(;e.length;){let n=e.pop();if(o){let t=i?n.lastChild:n.firstChild;for(;t;)e.push(t),t=i?t.previousSibling:t.nextSibling}t!==n&&(yield n)}}static findWithCurrent(t,e,i,o="nextSibling",n="firstChild"){let s=t;do{if(e(s))return s||null;if(n&&s&&s[n]){let t=l.findWithCurrent(s[n],e,s,o,n);if(t)return t}for(;s&&!s[o]&&s!==i;)s=s.parentNode;s&&s[o]&&s!==i&&(s=s[o])}while(s&&s!==i)return null}static findSibling(t,e=!0,i=t=>!l.isEmptyTextNode(t)){let o=l.sibling(t,e);for(;o&&!i(o);)o=l.sibling(o,e);return o&&i(o)?o:null}static findNotEmptySibling(t,e){return l.findSibling(t,e,t=>!l.isEmptyTextNode(t)&&!!(!l.isText(t)||t.nodeValue?.length&&(0,r.trim)(t.nodeValue)))}static findNotEmptyNeighbor(t,e,i){return(0,a.call)(e?l.prev:l.next,t,t=>!!(t&&(!(l.isText(t)||l.isComment(t))||(0,r.trim)(t?.nodeValue||"").length)),i)}static sibling(t,e){return e?t.previousSibling:t.nextSibling}static up(t,e,i,o=!1){let n=t;if(!n)return null;do{if(e(n))return n;if(n===i||!n.parentNode)break;n=n.parentNode}while(n&&n!==i)return n===i&&o&&e(n)?n:null}static closest(t,e,i){let o,n=t=>t.toLowerCase();if((0,s.isFunction)(e))o=e;else if((0,s.isArray)(e)||(0,s.isSet)(e)){let t=(0,s.isSet)(e)?e:new Set(e.map(n));o=e=>!!(e&&t.has(n(e.nodeName)))}else o=t=>!!(t&&n(e)===n(t.nodeName));return l.up(t,o,i)}static furthest(t,e,i){let o=null,n=t?.parentElement;for(;n&&n!==i;)e(n)&&(o=n),n=n?.parentElement;return o}static appendChildFirst(t,e){let i=t.firstChild;i?i!==e&&t.insertBefore(e,i):t.appendChild(e)}static after(t,e){let{parentNode:i}=t;i&&(i.lastChild===t?i.appendChild(e):i.insertBefore(e,t.nextSibling))}static before(t,e){let{parentNode:i}=t;i&&i.insertBefore(e,t)}static prepend(t,e){t.insertBefore(e,t.firstChild)}static append(t,e){(0,s.isArray)(e)?e.forEach(e=>{this.append(t,e)}):t.appendChild(e)}static moveContent(t,e,i=!1,s=()=>!0){let r=(t.ownerDocument||o.globalDocument).createDocumentFragment();(0,n.toArray)(t.childNodes).filter(t=>!!s(t)||(l.safeRemove(t),!1)).forEach(t=>{r.appendChild(t)}),i&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}static isOrContains(t,e,i=!1){return t===e?!i:!!(e&&t&&this.up(e,e=>e===t,t,!0))}static safeRemove(...t){t.forEach(t=>l.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,e){t.collapsed||t.deleteContents();let i=l.isFragment(e)?e.lastChild:e;t.startContainer===t.endContainer&&t.collapsed&&l.isTag(t.startContainer,o.INSEPARABLE_TAGS)?l.after(t.startContainer,e):(t.insertNode(e),i&&t.setStartBefore(i)),t.collapse(!0),[e.nextSibling,e.previousSibling].forEach(t=>l.isText(t)&&!t.nodeValue&&l.safeRemove(t))}static hide(t){t&&((0,a.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let e=(0,a.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=e||"")}static isTag(t,e){if(!this.isElement(t))return!1;let i=t.tagName.toLowerCase(),o=t.tagName.toUpperCase();if(e instanceof Set)return e.has(i)||e.has(o);if(Array.isArray(e))throw TypeError("Dom.isTag does not support array");return i===e||o===e}static markTemporary(t,e){return e&&(0,a.attr)(t,e),(0,a.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!l.isElement(t)&&((0,s.isMarker)(t)||"true"===(0,a.attr)(t,o.TEMP_ATTR))}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,a.$$)(`[${o.TEMP_ATTR}]`,t)}constructor(){throw Error("Dom is static module")}}},23283:function(t,e,i){"use strict";function o(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(t+""))}i.d(e,{isNativeFunction:function(){return o}})},23422:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(18855);i(38187);var h=i(54308);class d extends u.Plugin{afterInit(t){t.e.on("paste.paste",this.onPaste).on("pasteStack.paste",t=>this.pasteStack.push(t)),t.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(t){t.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(t){try{if(!1===this.customPasteProcess(t)||!1===this.j.e.fire("beforePaste",t))return t.preventDefault(),!1;this.defaultPasteProcess(t)}finally{this.j.e.fire("afterPaste",t)}}customPasteProcess(t){if(!this.j.o.processPasteHTML)return;let e=(0,c.getDataTransfer)(t),i=[e?.getData(s.TEXT_PLAIN),e?.getData(s.TEXT_HTML),e?.getData(s.TEXT_RTF)];for(let e of i)if((0,c.isHTML)(e)&&(this.j.e.fire("processHTML",t,e,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(t,e)))return!1}defaultPasteProcess(t){let e=(0,c.getDataTransfer)(t),i=e?.getData(s.TEXT_HTML)||e?.getData(s.TEXT_PLAIN);if(e&&i&&""!==(0,c.trim)(i)){let o=this.j.e.fire("processPaste",t,i,(0,h.getAllTypes)(e));void 0!==o&&(i=o),((0,c.isString)(i)||a.Dom.isNode(i))&&this.__insertByType(t,i,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,e){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(t=>t.html===e);if(i)return this.__insertByType(t,e,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,h.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(t,e,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(t,e,i){if(this.pasteStack.push({html:e,action:i}),(0,c.isString)(e))switch(this.j.buffer.set(s.CLIPBOARD_ID,e),i){case s.INSERT_CLEAR_HTML:e=(0,c.cleanFromWord)(e);break;case s.INSERT_ONLY_TEXT:e=(0,c.stripTags)(e,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case s.INSERT_AS_TEXT:e=(0,c.htmlspecialchars)(e);break;default:{let o=this.j.e.fire("onCustomPasteHTMLOption",i,e,t);"string"==typeof o&&(e=o)}}(0,h.pasteInsertHtml)(t,this.j,e)}onProcessPasteReplaceNl2Br(t,e,i){if(i===s.TEXT_PLAIN+";"&&!(0,c.isHTML)(e))return(0,c.nl2br)(e)}constructor(...t){super(...t),(0,o._)(this,"pasteStack",new c.LimitedStack(20)),(0,o._)(this,"_isDialogOpened",!1)}}(0,n.__decorate)([r.autobind],d.prototype,"onPaste",null),(0,n.__decorate)([r.autobind],d.prototype,"onProcessPasteReplaceNl2Br",null),l.pluginSystem.add("paste",d)},23599:function(t,e,i){"use strict";i.d(e,{position:function(){return function t(e,i,n=!1){let s=e.getBoundingClientRect(),r=s.left,a=s.top;if((0,o.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(e)&&!n){let{left:e,top:o}=t(i.iframe,i,!0);r+=e,a+=o}return{left:Math.round(r),top:Math.round(a),width:Math.round(e.offsetWidth??s.width),height:Math.round(e.offsetHeight??s.height)}}}});var o=i(24497)},23602:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg>'},24268:function(t,e,i){"use strict";var o=i(29434),n=i(5266),s=i(49989),r=i.n(s);n.Config.prototype.spellcheck=!1,o.Icon.set("spellcheck",r()),n.Config.prototype.controls.spellcheck={isActive:t=>t.o.spellcheck,icon:r(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},24475:function(t,e,i){"use strict";i.d(e,{Storage:function(){return l},StorageKey:function(){return a}});var o=i(25045),n=i(57821),s=i(59807),r=i(9505);let a="Jodit_";class l{set(t,e){return this.provider.set((0,n.camelCase)(this.prefix+t),e),this}delete(t){return this.provider.delete((0,n.camelCase)(this.prefix+t)),this}get(t){return this.provider.get((0,n.camelCase)(this.prefix+t))}exists(t){return this.provider.exists((0,n.camelCase)(this.prefix+t))}clear(){return this.provider.clear(),this}static makeStorage(t=!1,e){let i;return"localStorage"===t||"sessionStorage"===t?(0,s.canUsePersistentStorage)(t)&&(i=new s.LocalStorageProvider(a+(e||""),t)):!0===t&&(0,s.canUsePersistentStorage)("localStorage")&&(i=new s.LocalStorageProvider(a+(e||""))),i||(i=new r.MemoryStorageProvider),new l(i,e)}constructor(t,e){(0,o._)(this,"provider",void 0),(0,o._)(this,"prefix",void 0),this.provider=t,this.prefix=a,e&&(this.prefix+=e)}}},24497:function(t,e,i){"use strict";i.d(e,{isJoditObject:function(){return n}});var o=i(91565);function n(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},24641:function(t,e,i){"use strict";i.d(e,{UICheckbox:function(){return l}});var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(65273);class l extends a.UIInput{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let t=this.getElm("switch-slider");this.state.switch?(t||(t=this.j.c.div(this.getFullElName("switch-slider"))),r.Dom.after(this.nativeInput,t)):r.Dom.safeRemove(t)}constructor(t,e){super(t,{...e,type:"checkbox"}),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e)}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,checked:!1,switch:!1}),(0,n.__decorate)([(0,s.watch)("state.checked"),(0,s.hook)("ready")],l.prototype,"onChangeChecked",null),(0,n.__decorate)([(0,s.watch)("nativeInput:change")],l.prototype,"onChangeNativeCheckBox",null),(0,n.__decorate)([(0,s.watch)("state.switch"),(0,s.hook)("ready")],l.prototype,"onChangeSwitch",null),l=(0,n.__decorate)([s.component],l)},24735:function(t,e,i){"use strict";i.d(e,{Async:function(){return m}});var o=i(25045),n=i(81937),s=i(61077),r=i(72068),a=i(91565),l=i(72412),c=i(62101),u=i(52100),h=i(85932),d=i(18303),f=i(28712),p=i(14228);class m{delay(t){return this.promise(e=>this.setTimeout(e,t))}setTimeout(t,e,...i){if(this.isDestructed)return 0;let o={};(0,d.isVoid)(e)&&(e=0),(0,l.isNumber)(e)||(e=(o=e).timeout||0),o.label&&this.clearLabel(o.label);let n=(0,s.setTimeout)(t,e,...i),r=o.label||n;return this.timers.set(r,n),this.__callbacks.set(r,t),n}updateTimeout(t,e){if((0,f.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let i=this.__callbacks.get(t);return(0,f.assert)((0,a.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:t,timeout:e})}clearLabel(t){t&&this.timers.has(t)&&((0,s.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,h.isString)(t))return this.clearLabel(t);(0,s.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,e,i=!1){let o=0,n=!1,l=[],h=(...e)=>{if(!n){o=0;let i=t(...e);if(n=!0,l.length){let t=()=>{l.forEach(t=>t()),l.length=0};(0,u.isPromise)(i)?i.finally(t):t()}}},d=(...r)=>{n=!1,e?(!o&&i&&h(...r),(0,s.clearTimeout)(o),o=this.setTimeout(()=>h(...r),(0,a.isFunction)(e)?e():e),this.timers.set(t,o)):h(...r)};return(0,c.isPlainObject)(e)&&e.promisify?(...t)=>{let e=this.promise(t=>{l.push(t)}).catch(t=>{if((0,r.isAbortError)(t))return null;throw t});return d(...t),e}:d}microDebounce(t,e=!1){let i,o=!1,n=!0;return(...s)=>{if(i=s,o){n=!0;return}n=!0,e&&(n=!1,t(...i)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&n&&t(...i)})}}throttle(t,e,i=!1){let o=null,n,s,r;return(...i)=>{(n=!0,r=i,e)?o||(s=()=>{n?(t(...r),n=!1,o=this.setTimeout(s,(0,a.isFunction)(e)?e():e),this.timers.set(s,o)):o=null})():t(...r)}}promise(t){let e=()=>{},i=new Promise((i,o)=>{e=()=>o((0,p.abort)("Abort async")),this.promisesRejections.add(e),t(i,o)});return!i.finally&&"u">typeof process&&!n.IS_ES_NEXT&&(i.finally=t=>(i.then(t).catch(t),i)),i.finally(()=>{this.promisesRejections.delete(e)}).catch(()=>null),i.rejectCallback=e,i}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(e=>{t.then(t=>(e("fulfilled"),t),t=>{throw e("rejected"),t}),this.setTimeout(()=>{e("pending")},100)});let e={};return Promise.race([t,e]).then(t=>t===e?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,e={timeout:100}){let i=this.__requestIdleCallbackNative(t,e);return this.__requestsIdle.add(i),i}requestIdlePromise(t){return this.promise(e=>{let i=this.requestIdleCallback(()=>e(i),t)})}schedulerPostTask(t,e={delay:0,priority:"user-visible"}){let i=new AbortController;if(e.signal&&e.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(t,{...e,signal:i.signal});return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((o,n)=>{let s=this.setTimeout(()=>{try{o(t())}catch(t){n(t)}this.__controllers.delete(i)},e.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(i),n((0,p.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let e=requestAnimationFrame(t);return this.__requestsRaf.add(e),e}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,s.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){(0,o._)(this,"timers",new Map),(0,o._)(this,"__callbacks",new Map),(0,o._)(this,"__queueMicrotaskNative",queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve())),(0,o._)(this,"promisesRejections",new Set),(0,o._)(this,"__requestsIdle",new Set),(0,o._)(this,"__controllers",new Set),(0,o._)(this,"__requestsRaf",new Set),(0,o._)(this,"__requestIdleCallbackNative",window.requestIdleCallback?.bind(window)??((t,e)=>{let i=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},e?.timeout??1)})),(0,o._)(this,"__cancelIdleCallbackNative",window.cancelIdleCallback?.bind(window)??(t=>{this.clearTimeout(t)})),(0,o._)(this,"isDestructed",!1)}}},24772:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg>'},24968:function(t,e,i){"use strict";i.d(e,{derive:function(){return n}});var o=i(91565);function n(...t){return e=>{let i=e.prototype;for(let e=0;e<t.length;e++){let n=t[e],s=Object.getOwnPropertyNames(n.prototype);for(let t=0;t<s.length;t++){let e=s[t],r=Object.getOwnPropertyDescriptor(n.prototype,e);null!=r&&(0,o.isFunction)(r.value)&&!(0,o.isFunction)(i[e])&&Object.defineProperty(i,e,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return r.value.call(this,...t)}})}}}}},25045:function(t,e,i){"use strict";function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,{_:function(){return o}})},25222:function(t,e,i){"use strict";i.d(e,{AsyncStorage:function(){return o.AsyncStorage},IndexedDBProvider:function(){return n.IndexedDBProvider},LocalStorageProvider:function(){return s.LocalStorageProvider},MemoryStorageProvider:function(){return r.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return a.StorageKey},canUseIndexedDB:function(){return n.canUseIndexedDB},canUsePersistentStorage:function(){return s.canUsePersistentStorage},clearUseIndexedDBCache:function(){return n.clearUseIndexedDBCache}});var o=i(8006),n=i(91162),s=i(59807),r=i(9505),a=i(24475)},25501:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg>'},25974:function(t,e,i){"use strict";i.d(e,{makeInstance:function(){return s}});var o=i(81937),n=i(91565);function s(t,e){try{try{return(0,n.isFunction)(e)?new e(t):e}catch(i){if((0,n.isFunction)(e)&&!e.prototype)return e(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},26106:function(t,e,i){"use strict";i.d(e,{checkJoinNeighbors:function(){return r}});var o=i(81937),n=i(23211),s=i(15200);function r(t,e,i){let s=e,r=s;for(;s&&!n.Dom.findNotEmptySibling(s,i)&&s.parentElement!==t.editor;)r=s=s.parentElement;if(n.Dom.isElement(r)&&n.Dom.isContentEditable(r,t.editor)){var l,c;let s,u,h,d=n.Dom.findNotEmptySibling(r,i);if(d&&(l=r,c=d,s=n.Dom.isTag(c,o.LIST_TAGS),u=n.Dom.isTag(l,o.LIST_TAGS),h=(t,e)=>e?t.firstElementChild:t.lastElementChild,(u?(c=t.createInside.element(t.o.enterBlock),n.Dom.before(l,c),a(t,h(l,i),c,i)):!!c&&!!s&&!u&&a(t,l,h(c,!i),i))||a(t,r,d,i)))return t.s.setCursorBefore(e),!0}return!1}function a(t,e,i,o){if(e&&n.Dom.isElement(i)){n.Dom.moveContent(e,i,!o,(0,s.getMoveFilter)(t));let r=e;for(;r&&r!==t.editor&&n.Dom.isEmpty(r);){let t=r.parentElement;n.Dom.safeRemove(r),r=t}return!0}return!1}},26136:function(t,e,i){"use strict";i.d(e,{browser:function(){return o}});let o=t=>{let e=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(e)||/(chrome)[\s/]([\w.]+)/.exec(e)||/(webkit)[\s/]([\w.]+)/.exec(e)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(e)||/(msie)[\s]([\w.]+)/.exec(e)||/(trident)\/([\w.]+)/.exec(e)||0>e.indexOf("compatible")||[];return"version"===t?i[2]:"webkit"===t?"chrome"===i[1]||"webkit"===i[1]:"ff"===t?"firefox"===i[1]:"msie"===t?"trident"===i[1]||"msie"===i[1]:i[1]===t}},26633:function(t,e,i){"use strict";i.d(e,{readAlign:function(){return n}});var o=i(80991);function n(t,e){t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?e.align=(0,o.css)(t,"float"):"block"===(0,o.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?e.align="center":e.align=""}},27137:function(t,e,i){"use strict";i.d(e,{UIImagePropertiesForm:function(){return f}});var o=i(25045),n=i(31635),s=i(84839),r=i(91672),a=i(65946),l=i(63468),c=i(29434),u=i(15753),h=i(29596),d=i(17306);class f extends l.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(t){let e=super.getElm(t);if(e)return e;for(let e of this.elements){let i=e.getElm(t);if(i)return i}return null}render(){return`<form>
140
140
  <div class="jodit-grid jodit-grid_xs-column">
141
141
  <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
142
142
  <div class="&__view-box">
@@ -152,7 +152,7 @@
152
152
  </div>
153
153
  <div class="jodit_col-lg-3-5 jodit_col-xs-5-5 &__tabsBox"></div>
154
154
  </div>
155
- </form>`}onChangeSizeIsLocked(){let t=this.getElm("lockSize"),e=this.getElm("imageWidth");t.innerHTML=c.Icon.get(this.state.sizeIsLocked?"lock":"unlock"),this.setMod("lock-size",this.state.sizeIsLocked),this.j.e.fire(e,"change")}onLockSizeClick(){this.state.sizeIsLocked=!this.state.sizeIsLocked}onStateValuesSizeChange(){let t=this.getElm("imageWidth"),e=this.getElm("imageHeight");t!==this.j.od.activeElement&&(t.value=this.state.values.imageWidth.toString()),e!==this.j.od.activeElement&&(e.value=this.state.values.imageHeight.toString())}onImageWidthChange(t){let e=this.getElm("imageWidth"),i=this.getElm("imageHeight");if(!this.state.sizeIsLocked||!(0,a.isNumeric)(e.value)||!(0,a.isNumeric)(i.value)){this.state.values.imageWidth=e.value,this.state.values.imageHeight=i.value;return}let o=parseFloat(e.value),n=parseFloat(i.value);t.target===e?(this.state.values.imageWidth=o,this.state.values.imageHeight=Math.round(o/this.state.ratio)):(this.state.values.imageWidth=Math.round(n*this.state.ratio),this.state.values.imageHeight=n)}onStateValuesImageSrcChange(){let{imageSrc:t}=this.state.values;if(!t)return;let e=this.getElm("imageViewSrc");(0,a.attr)(e,"src",t);let i=new Image;i.src=t,this.state.image=i}hideFieldByOptions(){let t=this.j.o.image;[["editSize","imageSizes"],["showPreview","imageView"]].forEach(([e,i])=>{let o=this.getElm(i);(0,a.css)(o,"display",t[e]?null:"none")})}constructor(t,e,i,n){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"handlers",void 0),(0,o._)(this,"__mainTab",void 0),(0,o._)(this,"__positionTab",void 0),this.state=e,this.handlers=n,this.__mainTab=new h.UIImageMainTab(this.jodit,this.state,this.handlers),this.__positionTab=new d.UIImagePositionTab(this.jodit,this.state,this.handlers),this.getElm("tabsBox").appendChild((0,u.TabsWidget)(t,[{name:"Image",content:this.__mainTab},{name:"Advanced",content:this.__positionTab}],i)),this.setMod("lock-size",this.state.sizeIsLocked),this.append(this.__mainTab).append(this.__positionTab)}}(0,n.__decorate)([(0,s.hook)("ready"),(0,s.watch)("state.sizeIsLocked")],f.prototype,"onChangeSizeIsLocked",null),(0,n.__decorate)([(0,s.watch)("lockSize:click")],f.prototype,"onLockSizeClick",null),(0,n.__decorate)([(0,s.hook)("ready"),(0,s.watch)(["state.values.imageWidth","state.values.imageHeight"])],f.prototype,"onStateValuesSizeChange",null),(0,n.__decorate)([(0,s.watch)(["imageWidth:change","imageHeight:change","imageWidth:keydown","imageHeight:keydown","imageWidth:mousedown","imageHeight:mousedown","imageWidth:paste","imageHeight:paste"]),(0,s.debounce)()],f.prototype,"onImageWidthChange",null),(0,n.__decorate)([(0,s.hook)("ready"),(0,s.watch)("state.values.imageSrc")],f.prototype,"onStateValuesImageSrcChange",null),(0,n.__decorate)([(0,s.hook)("ready")],f.prototype,"hideFieldByOptions",null),f=(0,n.__decorate)([r.component],f)},27611:function(t,e,i){"use strict";i.d(e,{tryRemoveNode:function(){return r}});var o=i(81937),n=i(23211),s=i(4040);function r(t,e,i,r,a,l){return!n.Dom.isText(e)&&(r&&!r[e.nodeName]||!r&&a&&a[e.nodeName])||t.o.cleanHTML.removeEmptyElements&&n.Dom.isElement(e)&&null!=e.nodeName.match(o.IS_INLINE)&&!n.Dom.isTemporary(e)&&0===(0,s.trimInv)(e.innerHTML).length&&(null==l||!n.Dom.isOrContains(e,l))?(n.Dom.safeRemove(e),!0):i}},27795:function(t,e,i){"use strict";i.d(e,{Dom:function(){return o.Dom},LazyWalker:function(){return n.LazyWalker}});var o=i(23211),n=i(1080)},27978:function(t,e,i){"use strict";i.d(e,{normalizeKeyAliases:function(){return s}});var o=i(81937),n=i(4040);function s(t){let e={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(t=>(0,n.trim)(t.toLowerCase())).map(t=>o.KEY_ALIASES[t]||t).sort((t,e)=>i[t]&&!i[e]?-1:!i[t]&&i[e]?1:i[t]&&i[e]?i[t]-i[e]:t>e?1:-1).filter(t=>!e[t]&&""!==t&&(e[t]=!0)).join("+")}},27987:function(t,e,i){"use strict";i.d(e,{UISpacer:function(){return r}});var o=i(31635),n=i(91672),s=i(96007);class r extends s.UIElement{className(){return"UISpacer"}}r=(0,o.__decorate)([n.component],r)},28077:function(t,e,i){"use strict";i.d(e,{eventEmitter:function(){return C},extendLang:function(){return b},getContainer:function(){return w},getPopupViewRoot:function(){return S},instances:function(){return f},modules:function(){return v},pluginSystem:function(){return _},uniqueUid:function(){return g}});var o=i(65946),n=i(24497),s=i(85932),r=i(31534),a=i(74264),l=i(421),c=i(85305),u=i(81937),h=i(27795),d=i(1496);let f={},p=1,m=new Set;function g(){function t(){return Math.round(p+=10*(Math.random()+1)).toString(16)}let e=t();for(;m.has(e);)e=t();return m.add(e),e}let _=new c.PluginSystem,v={},b=t=>{Object.keys(t).forEach(e=>{u.lang[e]?Object.assign(u.lang[e],t[e]):u.lang[e]=t[e]})},y=new WeakMap;function w(t,e,i="div",o=!1){let c=(0,s.isString)(e)?e:e?(0,l.getClassName)(e.prototype):"jodit-utils",u=y.get(t)||{},d=c+i,f=(0,r.isViewObject)(t)?t:t.j,p=null;if(!u[d]){let e=f.c;if(p=S(f.o,f.container,t.od.body),o&&(0,n.isJoditObject)(t)&&t.od!==t.ed){e=t.createInside;let o="style"===i?t.ed.head:t.ed.body;p=(0,n.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:o}let s=e.element(i,{className:`jodit jodit-${(0,a.kebabCase)(c)}-container jodit-box`});s.classList.add("jodit_theme_"+(f.o.theme||"default")),p.appendChild(s),u[d]=s,t.hookStatus("beforeDestruct",()=>{f.events.off(s),h.Dom.safeRemove(s),delete u[d],Object.keys(u).length&&y.delete(t)}),y.set(t,u),f.events.fire("getContainer",s)}return u[d].classList.remove("jodit_theme_default","jodit_theme_dark"),u[d].classList.add("jodit_theme_"+(f.o.theme||"default")),u[d]}function S(t,e,i){return t.popupRoot??t.shadowRoot??h.Dom.closest(e,t=>h.Dom.isHTMLElement(t)&&(h.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,o.css)(t,"position"))),i)??i}let C=new d.EventEmitter},28286:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(27795),r=i(28077),a=i(91565),l=i(91206),c=i(42259);i(33831);var u=i(89827),h=i(17523);class d extends l.Plugin{afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,e="char"){let i=this.j,o=i.selection;if(o.isFocused()||o.focus(),(0,u.checkNotCollapsed)(i))return!1;let r=o.range,l=i.createInside.text(n.INVISIBLE_SPACE);try{if(s.Dom.safeInsertNode(r,l),!s.Dom.isOrContains(i.editor,l))return;if(i.e.fire("backSpaceBeforeCases",t,l)||((0,c.moveNodeInsideStart)(i,l,t),h.cases.some(o=>{if((0,a.isFunction)(o)&&o(i,l,t,e))return!n.IS_PROD,!0})))return!1}catch(t){throw!n.IS_PROD,t}finally{i.e.fire("backSpaceAfterDelete",t,l),this.safeRemoveEmptyNode(l)}return!1}safeRemoveEmptyNode(t){let{range:e}=this.j.s;e.startContainer===t&&(t.previousSibling?s.Dom.isText(t.previousSibling)?e.setStart(t.previousSibling,t.previousSibling.nodeValue?.length??0):e.setStartAfter(t.previousSibling):t.nextSibling&&(s.Dom.isText(t.nextSibling)?e.setStart(t.nextSibling,0):e.setStartBefore(t.nextSibling)),e.collapse(!0),this.j.s.selectRange(e)),s.Dom.safeRemove(t)}}(0,o._)(d,"requires",["hotkeys"]),r.pluginSystem.add("backspace",d)},28346:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(23175),u=i(7909),h=i(80991),d=i(18855);i(8257);class f extends d.Plugin{afterInit(t){t.o.showPlaceholder&&(this.placeholderElm=t.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${t.i18n(t.o.placeholder)}</span>`),"rtl"===t.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),t.e.on("readonly",t=>{t?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let t=this.j;if(t.o.readonly)return;let e=0,i=0,o=t.s.current(),n=o&&a.Dom.closest(o,a.Dom.isBlock,t.editor)||t.editor,s=t.ew.getComputedStyle(n),r=t.ew.getComputedStyle(t.editor);t.workplace.appendChild(this.placeholderElm);let{firstChild:l}=t.editor;if(a.Dom.isElement(l)&&!(0,c.isMarker)(l)){let o=t.ew.getComputedStyle(l);e=parseInt(o.getPropertyValue("margin-top"),10),i=parseInt(o.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=o.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(s.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=s.getPropertyValue("line-height");(0,h.css)(this.placeholderElm,{display:"block",textAlign:s.getPropertyValue("text-align"),paddingTop:parseInt(r.paddingTop,10)+"px",paddingLeft:parseInt(r.paddingLeft,10)+"px",paddingRight:parseInt(r.paddingRight,10)+"px",marginTop:Math.max(parseInt(s.getPropertyValue("margin-top"),10),e),marginLeft:Math.max(parseInt(s.getPropertyValue("margin-left"),10),i)})}hide(){a.Dom.safeRemove(this.placeholderElm)}toggle(){let t=this.j;if(t.editor&&!t.isInDestruct){if(t.getRealMode()!==s.MODE_WYSIWYG)return void this.hide();!function(t){if(!t.firstChild)return!0;let e=t.firstChild;if(s.INSEPARABLE_TAGS.has(e.nodeName?.toLowerCase())||/^(TABLE)$/i.test(e.nodeName))return!1;let i=a.Dom.next(e,t=>t&&!a.Dom.isEmptyTextNode(t),t);return a.Dom.isText(e)&&!i?a.Dom.isEmptyTextNode(e):!i&&a.Dom.each(e,t=>!(a.Dom.isLeaf(t)||a.Dom.isList(t))&&(a.Dom.isEmpty(t)||a.Dom.isTag(t,"br")))}(t.editor)?this.hide():this.show()}}beforeDestruct(t){this.hide(),t.e.off(".placeholder").off(window,"load",this.toggle)}constructor(...t){super(...t),(0,o._)(this,"placeholderElm",void 0),(0,o._)(this,"addNativeListeners",()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)}),(0,o._)(this,"addEvents",()=>{let t=this.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,u.attr)(t.element,"placeholder")||""),t.e.fire("placeholder",this.placeholderElm.innerHTML),t.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()})}}(0,n.__decorate)([(0,r.debounce)(t=>t.defaultTimeout/10,!0)],f.prototype,"toggle",null),l.pluginSystem.add("placeholder",f)},28686:function(t,e,i){"use strict";i.d(e,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return n.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return r.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return d.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return p.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return _.isNumber},isNumeric:function(){return v.isNumeric},isPlainObject:function(){return b.isPlainObject},isPromise:function(){return y.isPromise},isSet:function(){return w.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return E.isValidName},isViewObject:function(){return I.isViewObject},isVoid:function(){return T.isVoid},isWindow:function(){return D.isWindow}});var o=i(98740),n=i(72068),s=i(17312),r=i(22289),a=i(94013),l=i(91565),c=i(46248),u=i(82166),h=i(52433),d=i(99732),f=i(24497),p=i(44998),m=i(23175),g=i(23283),_=i(72412),v=i(70222),b=i(62101),y=i(52100),w=i(3213),S=i(85932),C=i(91764),E=i(50083),I=i(31534),T=i(18303),D=i(3513)},28712:function(t){"use strict";t.exports={assert(){}}},28723:function(t,e,i){"use strict";i.d(e,{$$:function(){return u},cssPath:function(){return f},getXPathByElement:function(){return h},refs:function(){return d},resolveElement:function(){return p}});var o=i(81937),n=i(23211),s=i(88475),r=i(85932),a=i(57821),l=i(93640);let c=1;function u(t,e){let i;if(!o.IS_ES_NEXT&&/:scope/.test(t)&&o.IS_IE&&!(e&&e.nodeType===Node.DOCUMENT_NODE)){let o=e.id,n=o||"_selector_id_"+(Math.random()+"").slice(2)+ ++c;t=t.replace(/:scope/g,"#"+n),o||e.setAttribute("id",n),i=e.parentNode.querySelectorAll(t),o||e.removeAttribute("id")}else i=e.querySelectorAll(t);return[].slice.call(i)}let h=(t,e)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||e===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let i=[].filter.call(t.parentNode.childNodes,e=>e.nodeName===t.nodeName);return h(t.parentNode,e)+"/"+t.nodeName.toLowerCase()+(i.length>1?"["+((0,s.toArray)(i).indexOf(t)+1)+"]":"")},d=t=>("container"in t&&(t=t.container),u("[ref],[data-ref]",t).reduce((t,e)=>{let i=(0,l.attr)(e,"-ref");return i&&(0,r.isString)(i)&&(t[(0,a.camelCase)(i)]=e,t[i]=e),t},{})),f=t=>{if(!n.Dom.isElement(t))return null;let e=[],i=t;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let t=i.nodeName.toLowerCase();if(i.id){t+="#"+i.id,e.unshift(t);break}{let e=i,o=1;do(e=e.previousElementSibling)&&e.nodeName.toLowerCase()===t&&o++;while(e)t+=":nth-of-type("+o+")"}e.unshift(t),i=i.parentNode}return e.join(" > ")};function p(t,e){let i=t;if((0,r.isString)(t))try{i=e.querySelector(t)}catch{throw(0,l.error)('String "'+t+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!n.Dom.isElement(i)||!i.cloneNode)throw(0,l.error)('Element "'+t+'" should be string or HTMLElement instance');return i}},28771:function(t,e,i){"use strict";i.d(e,{openImageEditorDialog:function(){return r}});var o=i(85932),n=i(7909),s=i(43271);function r(t,e){let i=(0,n.attr)(e.image,"src")||"",r=t.c.element("a"),a=()=>{if(r.host!==location.host)return void t.confirm("You can only edit your own images. Download this image on the host?",i=>{i&&t.uploader&&t.uploader.uploadRemoteImage(r.href.toString(),i=>{t.alert("The image has been successfully uploaded to the host!",()=>{(0,o.isString)(i.newfilename)&&(e.values.imageSrc=i.baseurl+i.newfilename)})},e=>{t.alert("There was an error loading %s",e.message)})})};r.href=i,t.filebrowser.dataProvider.getPathByUrl(r.href.toString()).then(o=>{s.openImageEditor.call(t.filebrowser,r.href,o.name,o.path,o.source,()=>{let t=new Date().getTime();e.values.imageSrc=i+(-1!==i.indexOf("?")?"":"?")+"&_tmp="+t.toString()},e=>{t.alert(e.message)})}).catch(e=>{t.alert(e.message,a)})}},29200:function(t,e,i){"use strict";i.d(e,{hook:function(){return s}});var o=i(91565),n=i(33201);function s(t){return(e,i)=>{if(!(0,o.isFunction)(e[i]))throw(0,n.error)("Handler must be a Function");e.hookStatus(t,t=>{t[i].call(t)})}}},29348:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg>'},29433:function(t,e,i){"use strict";i.d(e,{StatusBar:function(){return u}});var o=i(25045),n=i(31635),s=i(16964),r=i(84839),a=i(23211),l=i(23183),c=i(81987);class u extends s.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){return this.container?.offsetHeight??0}findEmpty(t=!1){let e=this.getElms(t?"item-right":"item");for(let t=0;t<e.length;t+=1)if(!e[t].innerHTML.trim().length)return e[t]}append(t,e=!1){let i=this.findEmpty(e)||this.j.c.div(this.getFullElName("item"));e&&i.classList.add(this.getFullElName("item-right")),i.appendChild(t),this.container?.appendChild(i),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(s.STATUSES.beforeDestruct),a.Dom.safeRemove(this.container),super.destruct())}constructor(t,e){super(t),(0,o._)(this,"target",void 0),(0,o._)(this,"container",void 0),(0,o._)(this,"mods",void 0),this.target=e,this.mods={},this.container=t.c.div("jodit-status-bar"),e.appendChild(this.container),this.hide()}}u=(0,n.__decorate)([r.component,(0,r.derive)(c.Mods,l.Elms)],u)},29434:function(t,e,i){"use strict";i.d(e,{Icon:function(){return a}});var o=i(25045),n=i(81937),s=i(65946),r=i(80991);class a{static getIcon(t){if(/<svg/i.test(t))return t;let e=a.icons[t]||a.icons[t.replace(/-/g,"_")]||a.icons[t.replace(/_/g,"-")]||a.icons[(0,s.camelCase)(t)]||a.icons[(0,s.kebabCase)(t)]||a.icons[t.toLowerCase()];return!n.IS_PROD,e}static exists(t){return void 0!==this.getIcon(t)}static get(t,e="<span></span>"){return this.getIcon(t)||e}static set(t,e){return this.icons[t.replace("_","-")]=e,this}static makeIcon(t,e){let i,o;if(!e)return;let{name:n,iconURL:s,fill:l}=e,c=n.replace(/[^a-zA-Z0-9]/g,"_");/<svg/.test(n)||(o=t.o.getIcon?.(n,c));let u=`${n}${s}${l}${o??""}`;if(t.o.cache&&this.__cache.has(u))return this.__cache.get(u)?.cloneNode(!0);if(s)i=t.c.span(),(0,r.css)(i,"backgroundImage","url("+s.replace("{basePath}",t?.basePath||"")+")");else{let e=o||a.get(n,"")||t.o.extraIcons?.[n];e&&(i=t.c.fromHTML(e.trim()),/^<svg/i.test(n)||i.classList.add("jodit-icon_"+c))}return i&&(i.classList.add("jodit-icon"),i.style.fill=l,t.o.cache&&this.__cache.set(u,i.cloneNode(!0))),i}}(0,o._)(a,"icons",{}),(0,o._)(a,"__cache",new Map)},29596:function(t,e,i){"use strict";i.d(e,{UIImageMainTab:function(){return u}});var o=i(25045),n=i(31635),s=i(91672),r=i(29200),a=i(68616),l=i(65946),c=i(63468);class u extends c.UIGroup{className(){return"UIImageMainTab"}appendChildToContainer(){}render(){return`<div class="jodit-form__group &__editSrc">
155
+ </form>`}onChangeSizeIsLocked(){let t=this.getElm("lockSize"),e=this.getElm("imageWidth");t.innerHTML=c.Icon.get(this.state.sizeIsLocked?"lock":"unlock"),this.setMod("lock-size",this.state.sizeIsLocked),this.j.e.fire(e,"change")}onLockSizeClick(){this.state.sizeIsLocked=!this.state.sizeIsLocked}onStateValuesSizeChange(){let t=this.getElm("imageWidth"),e=this.getElm("imageHeight");t!==this.j.od.activeElement&&(t.value=this.state.values.imageWidth.toString()),e!==this.j.od.activeElement&&(e.value=this.state.values.imageHeight.toString())}onImageWidthChange(t){let e=this.getElm("imageWidth"),i=this.getElm("imageHeight");if(!this.state.sizeIsLocked||!(0,a.isNumeric)(e.value)||!(0,a.isNumeric)(i.value)){this.state.values.imageWidth=e.value,this.state.values.imageHeight=i.value;return}let o=parseFloat(e.value),n=parseFloat(i.value);t.target===e?(this.state.values.imageWidth=o,this.state.values.imageHeight=Math.round(o/this.state.ratio)):(this.state.values.imageWidth=Math.round(n*this.state.ratio),this.state.values.imageHeight=n)}onStateValuesImageSrcChange(){let{imageSrc:t}=this.state.values;if(!t)return;let e=this.getElm("imageViewSrc");(0,a.attr)(e,"src",t);let i=new Image;i.src=t,this.state.image=i}hideFieldByOptions(){let t=this.j.o.image;[["editSize","imageSizes"],["showPreview","imageView"]].forEach(([e,i])=>{let o=this.getElm(i);(0,a.css)(o,"display",t[e]?null:"none")})}constructor(t,e,i,n){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"handlers",void 0),(0,o._)(this,"__mainTab",void 0),(0,o._)(this,"__positionTab",void 0),this.state=e,this.handlers=n,this.__mainTab=new h.UIImageMainTab(this.jodit,this.state,this.handlers),this.__positionTab=new d.UIImagePositionTab(this.jodit,this.state,this.handlers),this.getElm("tabsBox").appendChild((0,u.TabsWidget)(t,[{name:"Image",content:this.__mainTab},{name:"Advanced",content:this.__positionTab}],i)),this.setMod("lock-size",this.state.sizeIsLocked),this.append(this.__mainTab).append(this.__positionTab)}}(0,n.__decorate)([(0,s.hook)("ready"),(0,s.watch)("state.sizeIsLocked")],f.prototype,"onChangeSizeIsLocked",null),(0,n.__decorate)([(0,s.watch)("lockSize:click")],f.prototype,"onLockSizeClick",null),(0,n.__decorate)([(0,s.hook)("ready"),(0,s.watch)(["state.values.imageWidth","state.values.imageHeight"])],f.prototype,"onStateValuesSizeChange",null),(0,n.__decorate)([(0,s.watch)(["imageWidth:change","imageHeight:change","imageWidth:keydown","imageHeight:keydown","imageWidth:mousedown","imageHeight:mousedown","imageWidth:paste","imageHeight:paste"]),(0,s.debounce)()],f.prototype,"onImageWidthChange",null),(0,n.__decorate)([(0,s.hook)("ready"),(0,s.watch)("state.values.imageSrc")],f.prototype,"onStateValuesImageSrcChange",null),(0,n.__decorate)([(0,s.hook)("ready")],f.prototype,"hideFieldByOptions",null),f=(0,n.__decorate)([r.component],f)},27611:function(t,e,i){"use strict";i.d(e,{tryRemoveNode:function(){return r}});var o=i(81937),n=i(23211),s=i(4040);function r(t,e,i,r,a,l){return!n.Dom.isText(e)&&(r&&!r[e.nodeName]||!r&&a&&a[e.nodeName])||t.o.cleanHTML.removeEmptyElements&&n.Dom.isElement(e)&&null!=e.nodeName.match(o.IS_INLINE)&&!n.Dom.isTemporary(e)&&0===(0,s.trimInv)(e.innerHTML).length&&(null==l||!n.Dom.isOrContains(e,l))?(n.Dom.safeRemove(e),!0):i}},27795:function(t,e,i){"use strict";i.d(e,{Dom:function(){return o.Dom},LazyWalker:function(){return n.LazyWalker}});var o=i(23211),n=i(1080)},27978:function(t,e,i){"use strict";i.d(e,{normalizeKeyAliases:function(){return s}});var o=i(81937),n=i(4040);function s(t){let e={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(t=>(0,n.trim)(t.toLowerCase())).map(t=>o.KEY_ALIASES[t]||t).sort((t,e)=>i[t]&&!i[e]?-1:!i[t]&&i[e]?1:i[t]&&i[e]?i[t]-i[e]:t>e?1:-1).filter(t=>!e[t]&&""!==t&&(e[t]=!0)).join("+")}},27987:function(t,e,i){"use strict";i.d(e,{UISpacer:function(){return r}});var o=i(31635),n=i(91672),s=i(96007);class r extends s.UIElement{className(){return"UISpacer"}}r=(0,o.__decorate)([n.component],r)},28077:function(t,e,i){"use strict";i.d(e,{eventEmitter:function(){return C},extendLang:function(){return b},getContainer:function(){return w},getPopupViewRoot:function(){return S},instances:function(){return f},modules:function(){return v},pluginSystem:function(){return _},uniqueUid:function(){return g}});var o=i(65946),n=i(24497),s=i(85932),r=i(31534),a=i(74264),l=i(421),c=i(85305),u=i(81937),h=i(27795),d=i(1496);let f={},p=1,m=new Set;function g(){function t(){return Math.round(p+=10*(Math.random()+1)).toString(16)}let e=t();for(;m.has(e);)e=t();return m.add(e),e}let _=new c.PluginSystem,v={},b=t=>{Object.keys(t).forEach(e=>{u.lang[e]?Object.assign(u.lang[e],t[e]):u.lang[e]=t[e]})},y=new WeakMap;function w(t,e,i="div",o=!1){let c=(0,s.isString)(e)?e:e?(0,l.getClassName)(e.prototype):"jodit-utils",u=y.get(t)||{},d=c+i,f=(0,r.isViewObject)(t)?t:t.j,p=null;if(!u[d]){let e=f.c;if(p=S(f.o,f.container,t.od.body),o&&(0,n.isJoditObject)(t)&&t.od!==t.ed){e=t.createInside;let o="style"===i?t.ed.head:t.ed.body;p=(0,n.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:o}let s=e.element(i,{className:`jodit jodit-${(0,a.kebabCase)(c)}-container jodit-box`});s.classList.add("jodit_theme_"+(f.o.theme||"default")),p.appendChild(s),u[d]=s,t.hookStatus("beforeDestruct",()=>{f.events.off(s),h.Dom.safeRemove(s),delete u[d],Object.keys(u).length&&y.delete(t)}),y.set(t,u),f.events.fire("getContainer",s)}return u[d].classList.remove("jodit_theme_default","jodit_theme_dark"),u[d].classList.add("jodit_theme_"+(f.o.theme||"default")),u[d]}function S(t,e,i){return t.popupRoot??t.shadowRoot??h.Dom.closest(e,t=>h.Dom.isHTMLElement(t)&&(h.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,o.css)(t,"position"))),i)??i}let C=new d.EventEmitter},28286:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(27795),r=i(28077),a=i(91565),l=i(91206),c=i(42259);i(33831);var u=i(89827),h=i(17523);class d extends l.Plugin{afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,e="char"){let i=this.j,o=i.selection;if(o.isFocused()||o.focus(),(0,u.checkNotCollapsed)(i))return!1;let r=o.range,l=i.createInside.text(n.INVISIBLE_SPACE);try{if(s.Dom.safeInsertNode(r,l),!s.Dom.isOrContains(i.editor,l))return;if(i.e.fire("backSpaceBeforeCases",t,l)||((0,c.moveNodeInsideStart)(i,l,t),h.cases.some(o=>{if((0,a.isFunction)(o)&&o(i,l,t,e))return n.IS_PROD,!0})))return!1}catch(t){throw n.IS_PROD,t}finally{i.e.fire("backSpaceAfterDelete",t,l),this.safeRemoveEmptyNode(l)}return!1}safeRemoveEmptyNode(t){let{range:e}=this.j.s;e.startContainer===t&&(t.previousSibling?s.Dom.isText(t.previousSibling)?e.setStart(t.previousSibling,t.previousSibling.nodeValue?.length??0):e.setStartAfter(t.previousSibling):t.nextSibling&&(s.Dom.isText(t.nextSibling)?e.setStart(t.nextSibling,0):e.setStartBefore(t.nextSibling)),e.collapse(!0),this.j.s.selectRange(e)),s.Dom.safeRemove(t)}}(0,o._)(d,"requires",["hotkeys"]),r.pluginSystem.add("backspace",d)},28346:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(23175),u=i(7909),h=i(80991),d=i(18855);i(8257);class f extends d.Plugin{afterInit(t){t.o.showPlaceholder&&(this.placeholderElm=t.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${t.i18n(t.o.placeholder)}</span>`),"rtl"===t.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),t.e.on("readonly",t=>{t?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let t=this.j;if(t.o.readonly)return;let e=0,i=0,o=t.s.current(),n=o&&a.Dom.closest(o,a.Dom.isBlock,t.editor)||t.editor,s=t.ew.getComputedStyle(n),r=t.ew.getComputedStyle(t.editor);t.workplace.appendChild(this.placeholderElm);let{firstChild:l}=t.editor;if(a.Dom.isElement(l)&&!(0,c.isMarker)(l)){let o=t.ew.getComputedStyle(l);e=parseInt(o.getPropertyValue("margin-top"),10),i=parseInt(o.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=o.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(s.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=s.getPropertyValue("line-height");(0,h.css)(this.placeholderElm,{display:"block",textAlign:s.getPropertyValue("text-align"),paddingTop:parseInt(r.paddingTop,10)+"px",paddingLeft:parseInt(r.paddingLeft,10)+"px",paddingRight:parseInt(r.paddingRight,10)+"px",marginTop:Math.max(parseInt(s.getPropertyValue("margin-top"),10),e),marginLeft:Math.max(parseInt(s.getPropertyValue("margin-left"),10),i)})}hide(){a.Dom.safeRemove(this.placeholderElm)}toggle(){let t=this.j;if(t.editor&&!t.isInDestruct){if(t.getRealMode()!==s.MODE_WYSIWYG)return void this.hide();!function(t){if(!t.firstChild)return!0;let e=t.firstChild;if(s.INSEPARABLE_TAGS.has(e.nodeName?.toLowerCase())||/^(TABLE)$/i.test(e.nodeName))return!1;let i=a.Dom.next(e,t=>t&&!a.Dom.isEmptyTextNode(t),t);return a.Dom.isText(e)&&!i?a.Dom.isEmptyTextNode(e):!i&&a.Dom.each(e,t=>!(a.Dom.isLeaf(t)||a.Dom.isList(t))&&(a.Dom.isEmpty(t)||a.Dom.isTag(t,"br")))}(t.editor)?this.hide():this.show()}}beforeDestruct(t){this.hide(),t.e.off(".placeholder").off(window,"load",this.toggle)}constructor(...t){super(...t),(0,o._)(this,"placeholderElm",void 0),(0,o._)(this,"addNativeListeners",()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)}),(0,o._)(this,"addEvents",()=>{let t=this.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,u.attr)(t.element,"placeholder")||""),t.e.fire("placeholder",this.placeholderElm.innerHTML),t.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()})}}(0,n.__decorate)([(0,r.debounce)(t=>t.defaultTimeout/10,!0)],f.prototype,"toggle",null),l.pluginSystem.add("placeholder",f)},28686:function(t,e,i){"use strict";i.d(e,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return n.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return r.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return d.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return p.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return _.isNumber},isNumeric:function(){return v.isNumeric},isPlainObject:function(){return b.isPlainObject},isPromise:function(){return y.isPromise},isSet:function(){return w.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return C.isURL},isValidName:function(){return E.isValidName},isViewObject:function(){return I.isViewObject},isVoid:function(){return T.isVoid},isWindow:function(){return x.isWindow}});var o=i(98740),n=i(72068),s=i(17312),r=i(22289),a=i(94013),l=i(91565),c=i(46248),u=i(82166),h=i(52433),d=i(99732),f=i(24497),p=i(44998),m=i(23175),g=i(23283),_=i(72412),v=i(70222),b=i(62101),y=i(52100),w=i(3213),S=i(85932),C=i(91764),E=i(50083),I=i(31534),T=i(18303),x=i(3513)},28712:function(t){"use strict";t.exports={assert(){}}},28723:function(t,e,i){"use strict";i.d(e,{$$:function(){return u},cssPath:function(){return f},getXPathByElement:function(){return h},refs:function(){return d},resolveElement:function(){return p}});var o=i(81937),n=i(23211),s=i(88475),r=i(85932),a=i(57821),l=i(93640);let c=1;function u(t,e){let i;if(!o.IS_ES_NEXT&&/:scope/.test(t)&&o.IS_IE&&!(e&&e.nodeType===Node.DOCUMENT_NODE)){let o=e.id,n=o||"_selector_id_"+(Math.random()+"").slice(2)+ ++c;t=t.replace(/:scope/g,"#"+n),o||e.setAttribute("id",n),i=e.parentNode.querySelectorAll(t),o||e.removeAttribute("id")}else i=e.querySelectorAll(t);return[].slice.call(i)}let h=(t,e)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||e===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let i=[].filter.call(t.parentNode.childNodes,e=>e.nodeName===t.nodeName);return h(t.parentNode,e)+"/"+t.nodeName.toLowerCase()+(i.length>1?"["+((0,s.toArray)(i).indexOf(t)+1)+"]":"")},d=t=>("container"in t&&(t=t.container),u("[ref],[data-ref]",t).reduce((t,e)=>{let i=(0,l.attr)(e,"-ref");return i&&(0,r.isString)(i)&&(t[(0,a.camelCase)(i)]=e,t[i]=e),t},{})),f=t=>{if(!n.Dom.isElement(t))return null;let e=[],i=t;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let t=i.nodeName.toLowerCase();if(i.id){t+="#"+i.id,e.unshift(t);break}{let e=i,o=1;do(e=e.previousElementSibling)&&e.nodeName.toLowerCase()===t&&o++;while(e)t+=":nth-of-type("+o+")"}e.unshift(t),i=i.parentNode}return e.join(" > ")};function p(t,e){let i=t;if((0,r.isString)(t))try{i=e.querySelector(t)}catch{throw(0,l.error)('String "'+t+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!n.Dom.isElement(i)||!i.cloneNode)throw(0,l.error)('Element "'+t+'" should be string or HTMLElement instance');return i}},28771:function(t,e,i){"use strict";i.d(e,{openImageEditorDialog:function(){return r}});var o=i(85932),n=i(7909),s=i(43271);function r(t,e){let i=(0,n.attr)(e.image,"src")||"",r=t.c.element("a"),a=()=>{if(r.host!==location.host)return void t.confirm("You can only edit your own images. Download this image on the host?",i=>{i&&t.uploader&&t.uploader.uploadRemoteImage(r.href.toString(),i=>{t.alert("The image has been successfully uploaded to the host!",()=>{(0,o.isString)(i.newfilename)&&(e.values.imageSrc=i.baseurl+i.newfilename)})},e=>{t.alert("There was an error loading %s",e.message)})})};r.href=i,t.filebrowser.dataProvider.getPathByUrl(r.href.toString()).then(o=>{s.openImageEditor.call(t.filebrowser,r.href,o.name,o.path,o.source,()=>{let t=new Date().getTime();e.values.imageSrc=i+(-1!==i.indexOf("?")?"":"?")+"&_tmp="+t.toString()},e=>{t.alert(e.message)})}).catch(e=>{t.alert(e.message,a)})}},29200:function(t,e,i){"use strict";i.d(e,{hook:function(){return s}});var o=i(91565),n=i(33201);function s(t){return(e,i)=>{if(!(0,o.isFunction)(e[i]))throw(0,n.error)("Handler must be a Function");e.hookStatus(t,t=>{t[i].call(t)})}}},29348:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg>'},29433:function(t,e,i){"use strict";i.d(e,{StatusBar:function(){return u}});var o=i(25045),n=i(31635),s=i(16964),r=i(84839),a=i(23211),l=i(23183),c=i(81987);class u extends s.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){return this.container?.offsetHeight??0}findEmpty(t=!1){let e=this.getElms(t?"item-right":"item");for(let t=0;t<e.length;t+=1)if(!e[t].innerHTML.trim().length)return e[t]}append(t,e=!1){let i=this.findEmpty(e)||this.j.c.div(this.getFullElName("item"));e&&i.classList.add(this.getFullElName("item-right")),i.appendChild(t),this.container?.appendChild(i),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(s.STATUSES.beforeDestruct),a.Dom.safeRemove(this.container),super.destruct())}constructor(t,e){super(t),(0,o._)(this,"target",void 0),(0,o._)(this,"container",void 0),(0,o._)(this,"mods",void 0),this.target=e,this.mods={},this.container=t.c.div("jodit-status-bar"),e.appendChild(this.container),this.hide()}}u=(0,n.__decorate)([r.component,(0,r.derive)(c.Mods,l.Elms)],u)},29434:function(t,e,i){"use strict";i.d(e,{Icon:function(){return a}});var o=i(25045),n=i(81937),s=i(65946),r=i(80991);class a{static getIcon(t){if(/<svg/i.test(t))return t;let e=a.icons[t]||a.icons[t.replace(/-/g,"_")]||a.icons[t.replace(/_/g,"-")]||a.icons[(0,s.camelCase)(t)]||a.icons[(0,s.kebabCase)(t)]||a.icons[t.toLowerCase()];return n.IS_PROD,e}static exists(t){return void 0!==this.getIcon(t)}static get(t,e="<span></span>"){return this.getIcon(t)||e}static set(t,e){return this.icons[t.replace("_","-")]=e,this}static makeIcon(t,e){let i,o;if(!e)return;let{name:n,iconURL:s,fill:l}=e,c=n.replace(/[^a-zA-Z0-9]/g,"_");/<svg/.test(n)||(o=t.o.getIcon?.(n,c));let u=`${n}${s}${l}${o??""}`;if(t.o.cache&&this.__cache.has(u))return this.__cache.get(u)?.cloneNode(!0);if(s)i=t.c.span(),(0,r.css)(i,"backgroundImage","url("+s.replace("{basePath}",t?.basePath||"")+")");else{let e=o||a.get(n,"")||t.o.extraIcons?.[n];e&&(i=t.c.fromHTML(e.trim()),/^<svg/i.test(n)||i.classList.add("jodit-icon_"+c))}return i&&(i.classList.add("jodit-icon"),i.style.fill=l,t.o.cache&&this.__cache.set(u,i.cloneNode(!0))),i}}(0,o._)(a,"icons",{}),(0,o._)(a,"__cache",new Map)},29596:function(t,e,i){"use strict";i.d(e,{UIImageMainTab:function(){return u}});var o=i(25045),n=i(31635),s=i(91672),r=i(29200),a=i(68616),l=i(65946),c=i(63468);class u extends c.UIGroup{className(){return"UIImageMainTab"}appendChildToContainer(){}render(){return`<div class="jodit-form__group &__editSrc">
156
156
  <label>~Src~</label>
157
157
  <div class="jodit-input_group">
158
158
  <input class="jodit-input &__imageSrc" type="text"/>
@@ -179,16 +179,16 @@
179
179
  <input type="checkbox" class="jodit-checkbox &__imageLinkOpenInNewTab"/>
180
180
  <span>~Open link in new tab~</span>
181
181
  </label>
182
- </div>`}async onStateImageSrcChange(){this.getElm("imageSrc").value=this.state.values.imageSrc}onImageSrcChange(){this.state.values.imageSrc=this.getElm("imageSrc").value}onEditImageClick(t){this.handlers.openImageEditor(),t.stopPropagation()}onChangeImageClick(t){this.handlers.openImagePopup(this.getElm("changeImage")),t.stopPropagation()}onStateTitleChange(){this.getElm("imageTitle").value=this.state.values.imageTitle}onTitleChange(){this.state.values.imageTitle=this.getElm("imageTitle").value}onStateAltChange(){this.getElm("imageAlt").value=this.state.values.imageAlt}onAltChange(){this.state.values.imageAlt=this.getElm("imageAlt").value}onStateImageLinkChange(){this.getElm("imageLink").value=this.state.values.imageLink}onImageLinkChange(){this.state.values.imageLink=this.getElm("imageLink").value}onStateImageLinkOpenInNewTabChange(){this.getElm("imageLinkOpenInNewTab").checked=this.state.values.imageLinkOpenInNewTab}onImageLinkOpenInNewTabChange(){this.state.values.imageLinkOpenInNewTab=this.getElm("imageLinkOpenInNewTab").checked}hideFieldByOptions(){let t=this.j.o,e=t.image;[["editSrc","editSrc"],["editTitle","editTitle"],["editAlt","editAlt"],["editLink","editLink"],["editLink","editLinkTarget"],["useImageEditor","editImage"]].forEach(([t,i])=>{let o=this.getElm(i);(0,l.css)(o,"display",e[t]?null:"none")});let i=this.getElm("changeImage"),o=!!(t.filebrowser.ajax.url||t.uploader.url);(0,l.css)(i,"display",o?null:"none");let n=this.getElm("editImage"),s=!!t.filebrowser.ajax.url&&e.useImageEditor;(0,l.css)(n,"display",s?null:"none");let r=this.getElm("fixImage");(0,l.css)(r,"display",o||s?null:"none")}constructor(t,e,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"handlers",void 0),this.state=e,this.handlers=i}}(0,n.__decorate)([(0,a.watch)("state.values.imageSrc")],u.prototype,"onStateImageSrcChange",null),(0,n.__decorate)([(0,a.watch)("imageSrc:change")],u.prototype,"onImageSrcChange",null),(0,n.__decorate)([(0,a.watch)("editImage:click")],u.prototype,"onEditImageClick",null),(0,n.__decorate)([(0,a.watch)("changeImage:click")],u.prototype,"onChangeImageClick",null),(0,n.__decorate)([(0,a.watch)("state.values.imageTitle")],u.prototype,"onStateTitleChange",null),(0,n.__decorate)([(0,a.watch)("imageTitle:change")],u.prototype,"onTitleChange",null),(0,n.__decorate)([(0,a.watch)("state.values.imageAlt")],u.prototype,"onStateAltChange",null),(0,n.__decorate)([(0,a.watch)("imageAlt:change")],u.prototype,"onAltChange",null),(0,n.__decorate)([(0,a.watch)("state.values.imageLink")],u.prototype,"onStateImageLinkChange",null),(0,n.__decorate)([(0,a.watch)("imageLink:change")],u.prototype,"onImageLinkChange",null),(0,n.__decorate)([(0,a.watch)("state.values.imageLinkOpenInNewTab")],u.prototype,"onStateImageLinkOpenInNewTabChange",null),(0,n.__decorate)([(0,a.watch)("imageLinkOpenInNewTab:change")],u.prototype,"onImageLinkOpenInNewTabChange",null),(0,n.__decorate)([(0,r.hook)("ready")],u.prototype,"hideFieldByOptions",null),u=(0,n.__decorate)([s.component],u)},29953:function(t,e,i){"use strict";i.d(e,{ConnectionError:function(){return n.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return o.abort},isAbort:function(){return o.isAbort}});var o=i(14228),n=i(58250),s=i(11080)},30062:function(t,e,i){"use strict";var o=i(23211),n=i(28077),s=i(80991),r=i(29434),a=i(5266),l=i(3843),c=i.n(l),u=i(38639);let h="copy-format",d=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],f=(t,e,i,o)=>{let n=(0,s.css)(i,e);return n===o[e]&&(n=i.parentNode&&i!==t.editor&&i.parentNode!==t.editor?f(t,e,i.parentNode,o):void 0),n};a.Config.prototype.controls.copyformat={exec(t,e,{button:i}){if(e){if(t.buffer.exists(h))t.buffer.delete(h),t.e.off(t.editor,"mouseup."+h);else{let i={},n=o.Dom.up(e,t=>t&&!o.Dom.isText(t),t.editor)||t.editor,r=t.createInside.span();t.editor.appendChild(r),d.forEach(t=>{i[t]=(0,s.css)(r,t)}),r!==t.editor&&o.Dom.safeRemove(r);let a=((t,e,i)=>{let o={};return e&&d.forEach(n=>{o[n]=f(t,n,e,i),n.match(/border(Style|Color)/)&&!o.borderWidth&&(o[n]=void 0)}),o})(t,n,i);t.e.on(t.editor,"mouseup."+h,()=>{t.buffer.delete(h);let e=t.s.current();e&&(o.Dom.isTag(e,"img")?(0,s.css)(e,a):t.s.commitStyle({attributes:{style:a}})),t.e.off(t.editor,"mouseup."+h)}),t.buffer.set(h,!0)}i.update()}},isActive:t=>t.buffer.exists(h),tooltip:"Paint format"},n.pluginSystem.add("copyformat",function(t){t.registerButton({name:"copyformat",group:"clipboard"}),(0,n.extendLang)(u)}),r.Icon.set("copyformat",c())},30110:function(t,e,i){"use strict";var o=i(81937),n=i(23211),s=i(28077),r=i(65946),a=i(98803);let l=new Set([o.KEY_TAB,o.KEY_LEFT,o.KEY_RIGHT,o.KEY_UP,o.KEY_DOWN]);s.pluginSystem.add("tableKeyboardNavigation",function(t){t.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",e=>{let{key:i}=e,s=function(t,e){if(!l.has(e))return;let i=t.s.current();if(!i)return;let s=n.Dom.up(i,n.Dom.isCell,t.editor);if(!s)return;let{range:a}=t.s;if(e!==o.KEY_TAB&&i!==s){let t=e===o.KEY_RIGHT||e===o.KEY_DOWN,l=(0,r.call)(t?n.Dom.next:n.Dom.prev,i,t=>e===o.KEY_UP||e===o.KEY_DOWN?n.Dom.isTag(t,"br"):!!t,s);if(!t&&(l||e!==o.KEY_UP&&n.Dom.isText(i)&&0!==a.startOffset)||t&&(l||e!==o.KEY_DOWN&&n.Dom.isText(i)&&i.nodeValue&&a.startOffset!==i.nodeValue.length))return}return s}(t,i);if(!s)return;let c=t.getInstance(a.Table,t.o),u=n.Dom.closest(s,"table",t.editor),h=null,d=i===o.KEY_LEFT||e.shiftKey,f=()=>(0,r.call)(d?n.Dom.prev:n.Dom.next,s,n.Dom.isCell,u);switch(i){case o.KEY_TAB:case o.KEY_LEFT:(h=f())||(c.appendRow(u,!!d&&u.querySelector("tr"),!d),h=f());break;case o.KEY_UP:case o.KEY_DOWN:{let t=c.formalMatrix(u),[e,n]=c.formalCoordinate(u,s);i===o.KEY_UP?void 0!==t[e-1]&&(h=t[e-1][n]):void 0!==t[e+1]&&(h=t[e+1][n])}}if(h){if(t.e.fire("hidePopup hideResizer"),h.firstChild)i===o.KEY_TAB?t.s.select(h,!0):t.s.setCursorIn(h,i===o.KEY_RIGHT||i===o.KEY_DOWN);else{let e=t.createInside.element("br");h.appendChild(e),t.s.setCursorBefore(e)}return t.synchronizeValues(),!1}})})},30500:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(27795),l=i(28077),c=i(65946),u=i(91206);i(12266);var h=i(87624),d=i(58317);class f extends u.Plugin{get ui(){return new d.UISearch(this.j)}async updateCounters(){this.ui.isOpened&&(this.ui.count=await this.calcCounts(this.ui.query))}onPressReplaceButton(){this.findAndReplace(this.ui.query),this.updateCounters()}tryScrollToElement(t){let e=a.Dom.closest(t,a.Dom.isElement,this.j.editor);e||(e=a.Dom.prev(t,a.Dom.isElement,this.j.editor)),e&&e!==this.j.editor&&(0,c.scrollIntoViewIfNeeded)(e,this.j.editor,this.j.ed)}async calcCounts(t){return(await this.findQueryBounds(t,"walkerCount")).length}async findQueryBounds(t,e){let i=this[e];return i&&i.break(),i=new a.LazyWalker(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout}),this[e]=i,this.find(i,t).catch(t=>(s.IS_PROD,[]))}async findAndReplace(t){let e=await this.findQueryBounds(t,"walker");if(!e.length)return!1;let i=this.findCurrentIndexInRanges(e,this.j.s.range);-1===i&&(i=0);let o=e[i];if(o){try{let e=this.j.ed.createRange();e.setStart(o.startContainer,o.startOffset),e.setEnd(o.endContainer,o.endOffset),e.deleteContents();let n=this.j.createInside.text(this.ui.replace);a.Dom.safeInsertNode(e,n),(0,h.clearSelectionWrappers)(this.j),this.j.s.setCursorAfter(n),this.tryScrollToElement(n),this.cache={},this.ui.currentIndex=i,await this.findAndSelect(t,!0).catch(t=>(s.IS_PROD,null))}finally{this.j.synchronizeValues()}return this.j.e.fire("afterFindAndReplace"),!0}return!1}async findAndSelect(t,e){let i=await this.findQueryBounds(t,"walker");if(!i.length)return!1;this.previousQuery===t&&(0,h.getSelectionWrappers)(this.j.editor).length||(this.drawPromise?.rejectCallback(),this.j.async.cancelAnimationFrame(this.wrapFrameRequest),(0,h.clearSelectionWrappers)(this.j),this.drawPromise=this.__drawSelectionRanges(i)),this.previousQuery=t;let o=this.ui.currentIndex-1;o=-1===o?0:e?o===i.length-1?0:o+1:0===o?i.length-1:o-1,this.ui.currentIndex=o+1;let n=i[o];if(n){let t=this.j.ed.createRange();try{t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),this.j.s.selectRange(t)}catch(t){s.IS_PROD}return this.tryScrollToElement(n.startContainer),await this.updateCounters(),await this.drawPromise,this.j.e.fire("afterFindAndSelect"),!0}return!1}findCurrentIndexInRanges(t,e){return t.findIndex(t=>t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.startContainer&&t.endOffset===e.endOffset)}async isValidCache(t){return(await t).every(t=>t.startContainer.isConnected&&t.startOffset<=(t.startContainer.nodeValue?.length??0)&&t.endContainer.isConnected&&t.endOffset<=(t.endContainer.nodeValue?.length??0))}async find(t,e){if(!e.length)return[];let i=this.cache[e];return i&&await this.isValidCache(i)?i:(this.cache[e]=this.j.async.promise(i=>{let o=new h.SentenceFinder(this.j.o.search.fuzzySearch);t.on("break",()=>{i([])}).on("visit",t=>(a.Dom.isText(t)&&o.add(t),!1)).on("end",()=>{i(o.ranges(e)??[])}).setWork(this.j.editor)}),this.cache[e])}__drawSelectionRanges(t){let{async:e,createInside:i,editor:o}=this.j;e.cancelAnimationFrame(this.wrapFrameRequest);let n=[...t],s,r=0;return e.promise(t=>{let a=()=>{do(s=n.shift())&&(0,h.highlightTextRanges)(this.j,s,n,i,o),r+=1;while(s&&r<=5)n.length?this.wrapFrameRequest=e.requestAnimationFrame(a):t()};a()})}onAfterGetValueFromEditor(t){t.value=(0,h.clearSelectionWrappersFromHTML)(t.value)}afterInit(t){if(t.o.useSearch){let e=this;t.e.on("beforeSetMode.search",()=>{this.ui.close()}).on(this.ui,"afterClose",()=>{(0,h.clearSelectionWrappers)(t),this.ui.currentIndex=0,this.ui.count=0,this.cache={},t.focus()}).on("click",()=>{this.ui.currentIndex=0,(0,h.clearSelectionWrappers)(t)}).on("change.search",()=>{this.cache={}}).on("keydown.search mousedown.search",t.async.debounce(()=>{this.ui.selInfo&&(t.s.removeMarkers(),this.ui.selInfo=null),this.ui.isOpened&&this.updateCounters()},t.defaultTimeout)).on("searchNext.search searchPrevious.search",()=>(this.ui.isOpened||this.ui.open(),e.findAndSelect(e.ui.query,"searchNext"===t.e.current).catch(t=>{s.IS_PROD}))).on("search.search",(t,i=!0)=>(this.ui.currentIndex=0,e.findAndSelect(t||"",i).catch(t=>{s.IS_PROD}))),t.registerCommand("search",{exec:(t,i,o=!0)=>(i&&e.findAndSelect(i,o).catch(t=>{s.IS_PROD}),!1)}).registerCommand("openSearchDialog",{exec:(t,i)=>(e.ui.open(i),!1),hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:(i,o,n)=>(t.o.readonly||e.ui.open(o,n,!0),!1),hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(t){(0,r.cached)(this,"ui")?.destruct(),t.e.off(".search")}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"find",group:"search"}]),(0,o._)(this,"previousQuery",""),(0,o._)(this,"drawPromise",null),(0,o._)(this,"walker",null),(0,o._)(this,"walkerCount",null),(0,o._)(this,"cache",{}),(0,o._)(this,"wrapFrameRequest",0)}}(0,n.__decorate)([r.cache],f.prototype,"ui",null),(0,n.__decorate)([(0,r.watch)("ui:needUpdateCounters")],f.prototype,"updateCounters",null),(0,n.__decorate)([(0,r.watch)("ui:pressReplaceButton")],f.prototype,"onPressReplaceButton",null),(0,n.__decorate)([r.autobind],f.prototype,"findQueryBounds",null),(0,n.__decorate)([r.autobind],f.prototype,"findAndReplace",null),(0,n.__decorate)([r.autobind],f.prototype,"findAndSelect",null),(0,n.__decorate)([r.autobind],f.prototype,"find",null),(0,n.__decorate)([(0,r.watch)(":afterGetValueFromEditor")],f.prototype,"onAfterGetValueFromEditor",null),l.pluginSystem.add("search",f)},30893:function(t,e,i){"use strict";i.d(e,{applyStyles:function(){return l}});var o=i(81937),n=i(23211),s=i(4040),r=i(28723);function a(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(t,e,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(e)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(e)).toFixed(0)+"px"}return t})}function l(t){if(-1===t.indexOf("<html "))return t;t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7);let e=o.globalDocument.createElement("iframe");e.style.display="none",o.globalDocument.body.appendChild(e);let i="";try{let l=e.contentDocument||(e.contentWindow?e.contentWindow.document:null);if(l){l.open(),l.write(t),l.close();try{for(let t=0;t<l.styleSheets.length;t+=1){let e=l.styleSheets[t].cssRules;for(let t=0;t<e.length;t+=1)""!==e[t].selectorText&&(0,r.$$)(e[t].selectorText,l.body).forEach(i=>{i.style.cssText=a(e[t].style.cssText+";"+i.style.cssText)})}}catch(t){if(!o.IS_PROD)throw t}n.Dom.each(l.body,t=>{if(n.Dom.isElement(t)){let e=t.getAttribute("style");e&&(t.style.cssText=a(e)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),i=l.firstChild?(0,s.trim)(l.body.innerHTML):""}}catch{}finally{n.Dom.safeRemove(e)}return i&&(t=i),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},31125:function(t,e,i){"use strict";i.d(e,{elementsMap:function(){return n}});let o=new WeakMap,n=t=>{let e=o.get(t);return e||(e={},o.set(t,e)),e}},31230:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg>'},31365:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg>'},31534:function(t,e,i){"use strict";i.d(e,{isViewObject:function(){return n}});var o=i(91565);function n(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&t.isView)}},31635:function(t,e,i){"use strict";function o(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r}i.d(e,{__decorate:function(){return o}}),"function"==typeof SuppressedError&&SuppressedError},32013:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg>'},32328:function(t,e,i){"use strict";function o(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}i.d(e,{splitArray:function(){return o}})},32855:function(t,e,i){"use strict";i.d(e,{Response:function(){return n}});var o=i(25045);class n{get url(){return this.request.url}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}constructor(t,e,i,n){(0,o._)(this,"status",void 0),(0,o._)(this,"statusText",void 0),(0,o._)(this,"request",void 0),(0,o._)(this,"body",void 0),this.request=t,this.status=e,this.statusText=i,this.body=n}}},33201:function(t,e,i){"use strict";i.d(e,{ConnectionError:function(){return n.ConnectionError},OptionsError:function(){return n.OptionsError},abort:function(){return n.abort},connection:function(){return o.connection},error:function(){return o.error},isAbort:function(){return n.isAbort},options:function(){return o.options}});var o=i(38027),n=i(29953)},33494:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},no:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},33511:function(t,e,i){"use strict";i.d(e,{Stack:function(){return n}});var o=i(25045);class n{get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(t){this.clearRedo(),this.commands.push(t),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(t){this.commands[this.stackPosition]=t}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.stackPosition<this.commands.length-1}constructor(t){(0,o._)(this,"size",void 0),(0,o._)(this,"commands",void 0),(0,o._)(this,"stackPosition",void 0),this.size=t,this.commands=[],this.stackPosition=-1}}},33831:function(t,e,i){"use strict";i(5266).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},33915:function(t,e,i){"use strict";i.r(e),i.d(e,{removeExtraBr:function(){return o.removeExtraBr}});var o=i(14841)},34027:function(t,e,i){"use strict";i.d(e,{getScrollParent:function(){return function t(e){if(!e)return null;let i=n.Dom.isHTMLElement(e),r=i&&(0,s.css)(e,"overflowY");return i&&"visible"!==r&&"hidden"!==r&&e.scrollHeight>=e.clientHeight?e:t(e.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=i(81937),n=i(23211),s=i(93640)},34045:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>'},34142:function(t,e,i){"use strict";var o=i(28077);i(48899),o.pluginSystem.add("video",function(t){t.registerButton({name:"video",group:"media"})})},34269:function(t,e,i){"use strict";i.d(e,{elementToItem:function(){return c},getItem:function(){return l},nativeListeners:function(){return u}});var o=i(27795),n=i(65946),s=i(61334),r=i(31125),a=i(53202);let l=(t,e,i="a")=>o.Dom.closest(t,t=>o.Dom.isTag(t,i),e),c=(t,e)=>{let{key:i}=t.dataset,{item:o}=e[i||""];return o};function u(){let t=!1,e=(0,r.elementsMap)(this),i=this;i.e.on(i.tree.container,"dragstart",e=>{let o=l(e.target,i.container);o&&i.o.moveFolder&&(t=o)}).on(i.tree.container,"drop",e=>{if((i.o.moveFile||i.o.moveFolder)&&t){let o=(0,n.attr)(t,"-path")||"";if(!i.o.moveFolder&&t.classList.contains(this.tree.getFullElName("item"))||t.classList.contains(this.files.getFullElName("item"))&&(o+=(0,n.attr)(t,"-name"),!i.o.moveFile))return!1;let s=l(e.target,i.container);s&&(i.dataProvider.move(o,(0,n.attr)(s,"-path")||"",(0,n.attr)(s,"-source")||"",t.classList.contains(this.files.getFullElName("item"))).then(()=>(0,a.loadTree)(this)).catch(i.status),t=!1)}}).on(i.files.container,"contextmenu",(0,s.default)(i)).on(i.files.container,"click",t=>{(0,n.ctrlKey)(t)||(this.state.activeElements=[])}).on(i.files.container,"click",t=>{let o=l(t.target,i.container);if(!o)return;let s=c(o,e);if(s)return(0,n.ctrlKey)(t)?i.state.activeElements=[...i.state.activeElements,s]:i.state.activeElements=[s],t.stopPropagation(),!1}).on(i.files.container,"dragstart",e=>{if(i.o.moveFile){let o=l(e.target,i.container);o&&(t=o)}}).on(i.container,"drop",t=>t.preventDefault())}},34287:function(t,e,i){"use strict";i.d(e,{checkBR:function(){return r}});var o=i(81937),n=i(23211),s=i(60898);function r(t,e,i){let r=!!n.Dom.closest(t,["pre","blockquote"],e.editor),l=!r&&n.Dom.closest(t,["td","th"],e.editor);if(e.o.enter.toLowerCase()===o.BR.toLowerCase()||l||i&&!r||!i&&r){if(r&&function(t){let e=a(a(t));return!!e&&(n.Dom.safeRemove(a(t)),n.Dom.safeRemove(e),!0)}(t))return!1;let i=e.createInside.element("br");if(n.Dom.before(t,i),!n.Dom.findNotEmptySibling(i,!1)){let e=i.cloneNode();n.Dom.after(i,e),n.Dom.before(e,t)}return(0,s.scrollIntoViewIfNeeded)(i,e.editor,e.ed),!0}return!1}function a(t){if(!t)return!1;let e=n.Dom.findSibling(t,!0);return!!e&&!!n.Dom.isTag(e,"br")&&e}},34396:function(t,e,i){"use strict";i.d(e,{ProgressBar:function(){return s}});var o=i(23211),n=i(96007);class s extends n.UIElement{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){return(this.j.workplace||this.j.container).appendChild(this.container),this}hide(){return o.Dom.safeRemove(this.container),this}progress(t){return this.container.style.width=t.toFixed(2)+"%",this}destruct(){return this.hide(),super.destruct()}}},34582:function(t,e,i){"use strict";i.d(e,{toggleOrderedList:function(){return c}});var o=i(23211),n=i(28712),s=i(17481),r=i(82794),a=i(98394),l=i(97110);function c(t,e,i,o){if(!e)return o;let n=e.parentElement;if(!n)return o;let s=i.e.fire(`${a._PREFIX}BeforeToggleList`,o,t,n);if(void 0!==s)return s;let c=i.e.fire.bind(i.e,`${a._PREFIX}AfterToggleList`);if(o!==a.UNWRAP){let s=(0,r.toggleAttributes)(t,e.parentElement,i,a.INITIAL,!0)===a.CHANGE;if(o===a.REPLACE||s||n.tagName.toLowerCase()!==t.element){let o=u(a.REPLACE,n,e,i,t),s=(0,l.wrapList)(t,o,i);return c(a.REPLACE,s,t),a.REPLACE}}let h=u(a.UNWRAP,n,e,i,t);return c(a.UNWRAP,h,t),a.UNWRAP}function u(t,e,i,r,l){let c=r.e.fire(`${a._PREFIX}BeforeUnwrapList`,t,e,l);return c?((0,n.assert)(o.Dom.isHTMLElement(c),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),c):((0,s.extractSelectedPart)(e,i,r),(0,n.assert)(o.Dom.isHTMLElement(i.parentElement),"Element should be inside the list"),o.Dom.unwrap(i.parentElement),o.Dom.replace(i,"br"!==r.o.enter.toLowerCase()?r.o.enter:r.createInside.fragment(),r.createInside))}},34672:function(t,e,i){"use strict";i.d(e,{processEmptyLILeaf:function(){return r}});var o=i(23211),n=i(28723),s=i(65710);function r(t,e,i){let r=o.Dom.closest(i,["ol","ul"],e.editor);if(!r)return;let a=r.parentElement,l=o.Dom.isLeaf(a),c=l?a:r,u=e.s.createRange();u.setStartAfter(i),u.setEndAfter(r);let h=u.extractContents();o.Dom.after(c,t),o.Dom.safeRemove(i),(0,n.$$)("li",r).length||o.Dom.safeRemove(r);let d=(0,s.insertParagraph)(t,e,l?"li":e.o.enter);h.querySelector("li")&&(l?d.appendChild(h):o.Dom.after(d,h))}},34689:function(t,e,i){"use strict";i(5266).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},34693:function(t,e,i){"use strict";i.d(e,{checkBlockNesting:function(){return n}});var o=i(23211);function n(t,e){if(o.Dom.isFragment(e)&&(e=e.firstChild),t.o.dtd.checkBlockNesting&&o.Dom.isBlock(e)){let e=o.Dom.furthest(t.s.current(),o.Dom.isBlock,t.editor);e&&!t.o.dtd.blockLimits[e.tagName.toLowerCase()]&&(t.s.setCursorAfter(e),o.Dom.isEmpty(e)&&o.Dom.safeRemove(e))}}},35099:function(t,e,i){"use strict";i.d(e,{View:function(){return S}});var o=i(25045),n=i(31635),s=i(16964),r=i(80251),a=i(69364),l=i(81937),c=i(76517),u=i(51676),h=i(24968),d=i(29200),f=i(27795),p=i(1496),m=i(28077),g=i(65946),_=i(24475),v=i(23183),b=i(81987),y=i(34396),w=i(10081);class S extends r.Component{get basePath(){return this.o.basePath?this.o.basePath:l.BASE_PATH}get minified(){return void 0!==this.o.minified?this.o.minified:l.BASE_PATH_IS_MIN}get defaultTimeout(){return(0,g.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get buffer(){return _.Storage.makeStorage()}get message(){return this.getMessageModule(this.container)}getMessageModule(t){return new w.UIMessages(this,t)}get storage(){return _.Storage.makeStorage(!0,this.id)}get c(){return this.create}get container(){return this.__container}set container(t){this.__container=t}get e(){return this.events}get progressbar(){return new y.ProgressBar(this)}get options(){return this.__options}set options(t){this.__options=t}get o(){return this.options}i18n(t,...e){return(0,g.i18n)(t,e,this.options)}toggleFullSize(t){void 0===t&&(t=!this.__isFullSize),t!==this.__isFullSize&&(this.__isFullSize=t,this.e.fire("toggleFullSize",t))}get isLocked(){return""!==this.__whoLocked}lock(t="any"){return!this.isLocked&&(this.__whoLocked=t,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return S.version}static getVersion(){return S.version}initOptions(t){this.options=(0,g.ConfigProto)(t||{},(0,g.ConfigProto)(this.options||{},S.defaultOptions))}initOwners(){this.ownerWindow=this.o.ownerWindow??window}attachEvents(t){if(!t)return;let e=t?.events;e&&Object.keys(e).forEach(t=>this.e.on(t,e[t]))}getInstance(t,e){let i=(0,g.isFunction)(t)?t.prototype.className():t,o=this.e.fire((0,g.camelCase)("getInstance_"+i),e);if(o)return o;let n=(0,g.isFunction)(t)?t:m.modules[i],r=this.__modulesInstances;if(!(0,g.isFunction)(n))throw(0,g.error)("Need real module name");if(!r.has(i)){let t=n.prototype instanceof s.ViewComponent?new n(this,e):new n(e);this.components.add(t),r.set(i,t)}return r.get(i)}addDisclaimer(t){this.container.appendChild(t)}beforeDestruct(){this.e.fire(a.STATUSES.beforeDestruct,this),this.components.forEach(t=>{(0,g.isDestructable)(t)&&!t.isInDestruct&&t.destruct()}),this.components.clear()}destruct(){this.isDestructed||((0,u.cached)(this,"progressbar")?.destruct(),(0,u.cached)(this,"message")?.destruct(),this.events&&(this.events.destruct(),this.events=void 0),(0,u.cached)(this,"buffer")?.clear(),f.Dom.safeRemove(this.container),super.destruct())}constructor(t,e=!1){super(),(0,o._)(this,"isJodit",void 0),(0,o._)(this,"isView",void 0),(0,o._)(this,"parent",void 0),(0,o._)(this,"mods",void 0),(0,o._)(this,"id",void 0),(0,o._)(this,"components",void 0),(0,o._)(this,"create",void 0),(0,o._)(this,"__container",void 0),(0,o._)(this,"events",void 0),(0,o._)(this,"OPTIONS",void 0),(0,o._)(this,"__options",void 0),(0,o._)(this,"__isFullSize",void 0),(0,o._)(this,"__whoLocked",void 0),(0,o._)(this,"isLockedNotBy",void 0),(0,o._)(this,"__modulesInstances",void 0),this.isJodit=e,this.isView=!0,this.parent=null,this.mods={},this.components=new Set,this.OPTIONS=S.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=t=>this.isLocked&&this.__whoLocked!==t,this.__modulesInstances=new Map,this.id=new Date().getTime().toString(),this.initOptions(t),this.initOwners(),this.events=new p.EventEmitter(this.od),this.create=new c.Create(this.od),this.__container=this.c.div("jodit "+this.componentName)}}(0,o._)(S,"ES",l.ES),(0,o._)(S,"version",l.APP_VERSION),(0,o._)(S,"esNext",l.IS_ES_NEXT),(0,o._)(S,"esModern",l.IS_ES_MODERN),(0,o._)(S,"defaultOptions",void 0),(0,n.__decorate)([u.cache],S.prototype,"buffer",null),(0,n.__decorate)([u.cache],S.prototype,"message",null),(0,n.__decorate)([u.cache],S.prototype,"storage",null),(0,n.__decorate)([u.cache],S.prototype,"c",null),(0,n.__decorate)([u.cache],S.prototype,"e",null),(0,n.__decorate)([u.cache],S.prototype,"progressbar",null),(0,n.__decorate)([(0,d.hook)(a.STATUSES.beforeDestruct)],S.prototype,"beforeDestruct",null),(S=(0,n.__decorate)([(0,h.derive)(b.Mods,v.Elms)],S)).defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"}},35104:function(t,e,i){"use strict";i.d(e,{replaceOldTags:function(){return n}});var o=i(23211);function n(t,e,i){let n=function(t,e,i){if(!i||!o.Dom.isHTMLElement(e))return e;let n=i[e.nodeName.toLowerCase()]||i[e.nodeName];return n?o.Dom.replace(e,n,t.createInside,!0,!1):e}(t,e,t.o.cleanHTML.replaceOldTags);return e!==n?(e=n,!0):i}},35676:function(t,e,i){"use strict";i.d(e,{UISeparator:function(){return r}});var o=i(31635),n=i(91672),s=i(96007);class r extends s.UIElement{className(){return"UISeparator"}}r=(0,o.__decorate)([n.component],r)},35718:function(t,e,i){"use strict";i.d(e,{idle:function(){return r}});var o=i(16964),n=i(91565),s=i(33201);function r(){return(t,e)=>{if(!(0,n.isFunction)(t[e]))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:i}=t,o=t[e];t[e]=(...e)=>i.requestIdleCallback(o.bind(t,...e))})}}},36310:function(t,e,i){"use strict";i.d(e,{parseQuery:function(){return o}});let o=t=>{let e={},i=t.substring(1).split("&");for(let t=0;t<i.length;t+=1){let o=i[t].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return e}},36327:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>'},36339:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg>'},36400:function(t,e,i){"use strict";i.d(e,{dataBind:function(){return s}});var o=i(31534);let n=new WeakMap,s=(t,e,i)=>{let s=n.get(t);if(!s){s={},n.set(t,s);let e=null;(0,o.isViewObject)(t.j)&&(e=t.j.e),(0,o.isViewObject)(t)&&(e=t.e),e&&e.on("beforeDestruct",()=>{n.delete(t)})}return void 0===i?s[e]:(s[e]=i,i)}},36664:function(t,e,i){"use strict";i.d(e,{selfListeners:function(){return u}});var o=i(65946),n=i(28686),s=i(17780),r=i(1305),a=i(1488),l=i(53202),c=i(43271);function u(){let t=this.state,e=this.dataProvider,i=this;i.e.on("view.filebrowser",e=>{e!==t.view&&(t.view=e)}).on("sort.filebrowser",e=>{e!==t.sortBy&&(t.sortBy=e,(0,a.loadItems)(i))}).on("filter.filebrowser",e=>{e!==t.filterWord&&(t.filterWord=e,(0,a.loadItems)(i))}).on("openFolder.filebrowser",t=>{let e;e=".."===t.name?t.path.split("/").filter(t=>t.length).slice(0,-1).join("/"):(0,o.normalizePath)(t.path,t.name),i.state.currentPath=e,i.state.currentSource="."===t.name?s.DEFAULT_SOURCE_NAME:t.source}).on("removeFolder.filebrowser",t=>{i.confirm("Are you sure?","Delete",o=>{o&&e.folderRemove(t.path,t.name,t.source).then(t=>(i.status(t,!0),(0,l.loadTree)(i))).catch(i.status)})}).on("renameFolder.filebrowser",t=>{i.prompt("Enter new name","Rename",o=>{if(!(0,n.isValidName)(o))return i.status(i.i18n("Enter new name")),!1;e.folderRename(t.path,t.name,o,t.source).then(t=>(i.state.activeElements=[],i.status(t,!0),(0,l.loadTree)(i))).catch(i.status)},"type name",t.name)}).on("addFolder.filebrowser",t=>{i.prompt("Enter Directory name","Create directory",o=>{e.createFolder(o,t.path,t.source).then(()=>(0,l.loadTree)(i)).catch(i.status)},"type name")}).on("fileRemove.filebrowser",()=>{i.state.activeElements.length&&i.confirm("Are you sure?","",t=>{if(t){let t=[];i.state.activeElements.forEach(e=>{t.push((0,r.deleteFile)(i,e.file||e.name||"",e.sourceName))}),i.state.activeElements=[],Promise.all(t).then(()=>(0,l.loadTree)(i).catch(i.status),i.status)}})}).on("edit.filebrowser",()=>{if(1===i.state.activeElements.length){let[t]=this.state.activeElements;c.openImageEditor.call(i,t.fileURL,t.file||"",t.path,t.sourceName)}}).on("fileRename.filebrowser",(t,o,s)=>{1===i.state.activeElements.length&&i.prompt("Enter new name","Rename",r=>{if(!(0,n.isValidName)(r))return i.status(i.i18n("Enter new name")),!1;e.fileRename(o,t,r,s).then(t=>{i.state.activeElements=[],i.status(t,!0),(0,a.loadItems)(i)}).catch(i.status)},"type name",t)}).on("update.filebrowser",()=>{(0,l.loadTree)(this).then(this.status,this.status)})}},36833:function(t,e,i){"use strict";i.d(e,{buildQuery:function(){return n}});var o=i(62101);let n=(t,e)=>{let i=[],s=encodeURIComponent;for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let a=e?e+"["+r+"]":r,l=t[r];i.push((0,o.isPlainObject)(l)?n(l,a):s(a)+"="+s(l))}return i.join("&")}},37102:function(t,e,i){"use strict";i(5266).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:()=>new XMLHttpRequest}},37333:function(t,e,i){"use strict";i.d(e,{Alert:function(){return o.Alert},Confirm:function(){return n.Confirm},Dialog:function(){return s.Dialog},Prompt:function(){return r.Prompt}});var o=i(91535),n=i(88329),s=i(76841),r=i(74103)},37427:function(t,e,i){"use strict";i.d(e,{humanSizeToBytes:function(){return o}});let o=t=>{if(/^[0-9.]+$/.test(t.toString()))return parseFloat(t);let e=t.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],o=parseFloat(t.substr(0,t.length-2));return -1!==i.indexOf(e)?o*Math.pow(1024,i.indexOf(e)+1):parseInt(t,10)}},37431:function(t,e,i){"use strict";i.d(e,{isInlineBlock:function(){return r},removeFormatForCollapsedSelection:function(){return s}});var o=i(81937),n=i(23211);function s(t,e){let{s:i}=t,o=e;if(!o){o=t.createInside.fake();let{range:e}=i;n.Dom.safeInsertNode(e,o),e.collapse()}let s=n.Dom.furthest(o,r,t.editor);if(s)if(i.cursorOnTheLeft(s))n.Dom.before(s,o);else if(i.cursorOnTheRight(s))n.Dom.after(s,o);else{let t=i.splitSelection(s);t&&n.Dom.after(t,o)}e||(i.setCursorBefore(o),n.Dom.safeRemove(o))}function r(t){return n.Dom.isInlineBlock(t)&&!n.Dom.isTag(t,o.INSEPARABLE_TAGS)}},38027:function(t,e,i){"use strict";i.d(e,{connection:function(){return s},error:function(){return n},options:function(){return r}});var o=i(29953);function n(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function r(t){return new o.OptionsError(t)}},38187:function(t,e,i){"use strict";var o=i(81937),n=i(5266),s=i(54308);n.Config.prototype.askBeforePasteHTML=!0,n.Config.prototype.processPasteHTML=!0,n.Config.prototype.scrollToPastedContent=!0,n.Config.prototype.pasteExcludeStripTags=["br","hr"],n.Config.prototype.pasteHTMLActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Insert as Text"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}],n.Config.prototype.memorizeChoiceWhenPasteFragment=!1,n.Config.prototype.nl2brInPlainText=!0;let r="pasteStorage";n.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(t,e,{control:i}){if(i.name===r)return void t.execCommand("showPasteStorage");t.s.focus();let n="",a=!0;if(navigator.clipboard){try{let t=await navigator.clipboard.read();if(t&&t.length){let e=await t[0].getType(o.TEXT_PLAIN);n=await new Response(e).text()}a=!1}catch(t){o.IS_PROD}if(a)try{n=await navigator.clipboard.readText(),a=!1}catch(t){o.IS_PROD}}a&&(a=0===(n=t.buffer.get(o.CLIPBOARD_ID)||"").length);let l=t.value;a?(t.ed.execCommand("paste"),(a=l===t.value)||t.e.fire("afterPaste")):n.length?((0,s.pasteInsertHtml)(null,t,n),t.e.fire("afterPaste")):a&&t.alert("Your browser doesn't support direct access to the clipboard.",()=>void t.s.focus())},list:{[r]:"Paste Storage"},isChildDisabled:t=>2>t.e.fire("pasteStorageList")}},38639:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return n.a},cs_cz:function(){return n.a},de:function(){return n.a},es:function(){return n.a},fa:function(){return n.a},fi:function(){return n.a},fr:function(){return n.a},he:function(){return n.a},hu:function(){return n.a},id:function(){return n.a},it:function(){return n.a},ja:function(){return n.a},ko:function(){return n.a},mn:function(){return n.a},nl:function(){return n.a},pl:function(){return n.a},pt_br:function(){return n.a},ru:function(){return n.a},tr:function(){return n.a},zh_cn:function(){return n.a},zh_tw:function(){return n.a}});var o=i(41324),n=i.n(o)},38681:function(t){t.exports='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg>'},39e3:function(t,e,i){"use strict";var o=i(81937),n=i(27795),s=i(28077),r=i(93640);i(42360);var a=i(11917);let l=(t,e,i,o)=>{if(!e||t.has(e))return;let n=(0,a.getKey)(i.o.direction,e);t.add(e);let s=e.style[n]?parseInt(e.style[n],10):0;s+=i.o.indentMargin*("outdent"===o?-1:1),e.style[n]=s>0?s+"px":"",(0,r.attr)(e,"style")||(0,r.attr)(e,"style",null)};s.pluginSystem.add("indent",function(t){t.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});let e=e=>{let i=new Set,{enter:s,enterBlock:a}=t.o,c=s.toLowerCase()===o.BR,u=t.s.current();return c&&t.s.isCollapsed()&&u?l(i,n.Dom.wrapNextInline(u,a,t),t,e):(t.s.eachSelection(o=>{t.s.save();let u=!!o&&n.Dom.up(o,n.Dom.isBlock,t.editor);if(!u&&o&&(u=(0,r.call)(c?n.Dom.wrapNextInline:n.Dom.wrapInline,o,c?a:s.toLowerCase(),t)),!u)return t.s.restore(),!1;l(i,u,t,e),t.s.restore()}),t.synchronizeValues()),!1};t.registerCommand("indent",{exec:e,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:e,hotkeys:["ctrl+[","cmd+["]})})},39188:function(t,e,i){"use strict";i.d(e,{fillEmptyParagraph:function(){return r}});var o=i(81937),n=i(23211);let s=new Set(["table","tbody","thead","tfoot","tr"]);function r(t,e,i){if(t.o.cleanHTML.fillEmptyParagraph&&n.Dom.isBlock(e)&&n.Dom.isEmpty(e,o.INSEPARABLE_TAGS)&&!n.Dom.isTag(e,s)){let i=t.createInside.element("br");return e.appendChild(i),!0}return i}},39199:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>'},39608:function(t,e,i){"use strict";i.d(e,{isInsideInvisibleElement:function(){return n}});var o=i(23211);function n(t,e){return!!o.Dom.closest(t,["style","script"],e)}},39709:function(t,e,i){"use strict";i.d(e,{ToolbarButton:function(){return o.ToolbarButton},ToolbarContent:function(){return n.ToolbarContent},ToolbarSelect:function(){return s.ToolbarSelect}});var o=i(22533),n=i(5772),s=i(61764)},39858:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg>'},39978:function(t,e,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(28077),a=i(65946),l=i(91206);i(51034);let c="__jodit_imageprocessor_binded",u=c+"blob-id";class h extends l.Plugin{afterInit(t){}beforeDestruct(t){let e=(0,s.cached)(t,"buffer"),i=e?.get(u);if(e&&i){for(let t of Object.keys(i))URL.revokeObjectURL(t);e.delete(u)}}onAfterGetValueFromEditor(t,e){if(e!==n.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){let{jodit:e}=this;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=e.buffer.get(u);if(i)for(let e of Object.keys(i))for(;t.value.includes(e);)t.value=t.value.replace(e,i[e])}async afterChange(t){let{jodit:e}=this;e.editor&&(0,a.$$)("img",e.editor).forEach(t=>{(0,a.dataBind)(t,c)||((0,a.dataBind)(t,c,!0),t.complete||e.e.on(t,"load",function i(){e.isInDestruct||e.e?.fire("resize"),e.e.off(t,"load",i)}),t.src&&/^data:/.test(t.src)&&function(t,e){if(!t.o.imageProcessor.replaceDataURIToBlobIdInView||"undefined"==typeof ArrayBuffer||"undefined"==typeof URL)return;let i=e.src,o=function(t){let e=atob(t.split(",")[1]),i=t.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(e.length),n=new Uint8Array(o);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return new Blob([o],{type:i})}(i);e.src=URL.createObjectURL(o),t.e.fire("internalUpdate");let{buffer:n}=t,s=n.get(u)||{};s[e.src]=i,t.buffer.set(u,s)}(e,t),e.e.on(t,"mousedown touchstart",()=>{e.s.select(t)}))})}}(0,o.__decorate)([(0,s.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),(0,o.__decorate)([(0,s.watch)(":beforeSetElementValue")],h.prototype,"onBeforeSetElementValue",null),(0,o.__decorate)([(0,s.watch)([":change",":afterInit",":changePlace"]),(0,s.debounce)()],h.prototype,"afterChange",null),r.pluginSystem.add("imageProcessor",h)},40013:function(t,e,i){"use strict";var o=i(17312),n=i(24497),s=i(5266);s.Config.prototype.enableDragAndDropFileToEditor=!0,s.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:t=>`files[${t}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:t=>t,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,o.isArray)(t.data.messages)?t.data.messages.join(" "):"",processFileName:(t,e,i)=>[t,e,i],process:t=>t.data,error(t){this.j.message.error(t.message,4e3)},getDisplayName:(t,e)=>t+e,defaultHandlerSuccess(t){let e=this.j||this;(0,n.isJoditObject)(e)&&t.files&&t.files.length&&t.files.forEach((i,o)=>{let[n,s]=t.isImages&&t.isImages[o]?["img","src"]:["a","href"],r=e.createInside.element(n);r.setAttribute(s,t.baseurl+i),"a"===n&&(r.textContent=e.o.uploader.getDisplayName.call(this,t.baseurl,i)),"img"===n?e.s.insertImage(r,null,e.o.imageDefaultWidth):e.s.insertNode(r)})},defaultHandlerError(t){this.j.message.error(t.message)},contentType(t){return(void 0===this.ow.FormData||"string"==typeof t)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},40037:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},40253:function(t,e,i){"use strict";i.d(e,{getStrongControlTypes:function(){return a}});var o=i(17312),n=i(93640),s=i(5266),r=i(15982);function a(t,e){return((0,o.isArray)(t)?t:(0,n.keys)(t,!1).map(e=>{let i=t[e]||{};return(0,n.ConfigProto)({name:e},i)})).map(t=>(0,r.getControlType)(t,e||s.Config.defaultOptions.controls))}},40291:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},o.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},o.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},o.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},o.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},o.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},41111:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg>'},41134:function(t,e,i){"use strict";var o=i(81937),n=i(27795),s=i(28077),r=i(97228),a=i(57075),l=i(29434),c=i(5266),u=i(81576),h=i(59827),d=i.n(h);l.Icon.set("print",d()),c.Config.prototype.controls.print={exec(t){let e=t.create.element("iframe");Object.assign(e.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),(0,s.getContainer)(t,c.Config).appendChild(e);let i=()=>{t.e.off(t.ow,"mousemove",i),n.Dom.safeRemove(e)},o=e.contentWindow;if(o){t.e.on(o,"onbeforeunload onafterprint",i).on(t.ow,"mousemove",i),t.o.iframe?(t.e.fire("generateDocumentStructure.iframe",o.document,t),o.document.body.innerHTML=t.value):(o.document.write('<!doctype html><html lang="'+(0,r.defaultLanguage)(t.o.language)+'"><head><title></title></head><style>'+(0,u.generateCriticalCSS)(t)+"</style><body></body></html>"),o.document.close(),(0,a.previewBox)(t,void 0,"px",o.document.body));let e=o.document.createElement("style");e.innerHTML=`@media print {
182
+ </div>`}async onStateImageSrcChange(){this.getElm("imageSrc").value=this.state.values.imageSrc}onImageSrcChange(){this.state.values.imageSrc=this.getElm("imageSrc").value}onEditImageClick(t){this.handlers.openImageEditor(),t.stopPropagation()}onChangeImageClick(t){this.handlers.openImagePopup(this.getElm("changeImage")),t.stopPropagation()}onStateTitleChange(){this.getElm("imageTitle").value=this.state.values.imageTitle}onTitleChange(){this.state.values.imageTitle=this.getElm("imageTitle").value}onStateAltChange(){this.getElm("imageAlt").value=this.state.values.imageAlt}onAltChange(){this.state.values.imageAlt=this.getElm("imageAlt").value}onStateImageLinkChange(){this.getElm("imageLink").value=this.state.values.imageLink}onImageLinkChange(){this.state.values.imageLink=this.getElm("imageLink").value}onStateImageLinkOpenInNewTabChange(){this.getElm("imageLinkOpenInNewTab").checked=this.state.values.imageLinkOpenInNewTab}onImageLinkOpenInNewTabChange(){this.state.values.imageLinkOpenInNewTab=this.getElm("imageLinkOpenInNewTab").checked}hideFieldByOptions(){let t=this.j.o,e=t.image;[["editSrc","editSrc"],["editTitle","editTitle"],["editAlt","editAlt"],["editLink","editLink"],["editLink","editLinkTarget"],["useImageEditor","editImage"]].forEach(([t,i])=>{let o=this.getElm(i);(0,l.css)(o,"display",e[t]?null:"none")});let i=this.getElm("changeImage"),o=!!(t.filebrowser.ajax.url||t.uploader.url);(0,l.css)(i,"display",o?null:"none");let n=this.getElm("editImage"),s=!!t.filebrowser.ajax.url&&e.useImageEditor;(0,l.css)(n,"display",s?null:"none");let r=this.getElm("fixImage");(0,l.css)(r,"display",o||s?null:"none")}constructor(t,e,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"handlers",void 0),this.state=e,this.handlers=i}}(0,n.__decorate)([(0,a.watch)("state.values.imageSrc")],u.prototype,"onStateImageSrcChange",null),(0,n.__decorate)([(0,a.watch)("imageSrc:change")],u.prototype,"onImageSrcChange",null),(0,n.__decorate)([(0,a.watch)("editImage:click")],u.prototype,"onEditImageClick",null),(0,n.__decorate)([(0,a.watch)("changeImage:click")],u.prototype,"onChangeImageClick",null),(0,n.__decorate)([(0,a.watch)("state.values.imageTitle")],u.prototype,"onStateTitleChange",null),(0,n.__decorate)([(0,a.watch)("imageTitle:change")],u.prototype,"onTitleChange",null),(0,n.__decorate)([(0,a.watch)("state.values.imageAlt")],u.prototype,"onStateAltChange",null),(0,n.__decorate)([(0,a.watch)("imageAlt:change")],u.prototype,"onAltChange",null),(0,n.__decorate)([(0,a.watch)("state.values.imageLink")],u.prototype,"onStateImageLinkChange",null),(0,n.__decorate)([(0,a.watch)("imageLink:change")],u.prototype,"onImageLinkChange",null),(0,n.__decorate)([(0,a.watch)("state.values.imageLinkOpenInNewTab")],u.prototype,"onStateImageLinkOpenInNewTabChange",null),(0,n.__decorate)([(0,a.watch)("imageLinkOpenInNewTab:change")],u.prototype,"onImageLinkOpenInNewTabChange",null),(0,n.__decorate)([(0,r.hook)("ready")],u.prototype,"hideFieldByOptions",null),u=(0,n.__decorate)([s.component],u)},29953:function(t,e,i){"use strict";i.d(e,{ConnectionError:function(){return n.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return o.abort},isAbort:function(){return o.isAbort}});var o=i(14228),n=i(58250),s=i(11080)},30062:function(t,e,i){"use strict";var o=i(23211),n=i(28077),s=i(80991),r=i(29434),a=i(5266),l=i(3843),c=i.n(l),u=i(38639);let h="copy-format",d=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],f=(t,e,i,o)=>{let n=(0,s.css)(i,e);return n===o[e]&&(n=i.parentNode&&i!==t.editor&&i.parentNode!==t.editor?f(t,e,i.parentNode,o):void 0),n};a.Config.prototype.controls.copyformat={exec(t,e,{button:i}){if(e){if(t.buffer.exists(h))t.buffer.delete(h),t.e.off(t.editor,"mouseup."+h);else{let i,n={},r=o.Dom.up(e,t=>t&&!o.Dom.isText(t),t.editor)||t.editor,a=t.createInside.span();t.editor.appendChild(a),d.forEach(t=>{n[t]=(0,s.css)(a,t)}),a!==t.editor&&o.Dom.safeRemove(a);let l=(i={},r&&d.forEach(e=>{i[e]=f(t,e,r,n),e.match(/border(Style|Color)/)&&!i.borderWidth&&(i[e]=void 0)}),i);t.e.on(t.editor,"mouseup."+h,()=>{t.buffer.delete(h);let e=t.s.current();e&&(o.Dom.isTag(e,"img")?(0,s.css)(e,l):t.s.commitStyle({attributes:{style:l}})),t.e.off(t.editor,"mouseup."+h)}),t.buffer.set(h,!0)}i.update()}},isActive:t=>t.buffer.exists(h),tooltip:"Paint format"},n.pluginSystem.add("copyformat",function(t){t.registerButton({name:"copyformat",group:"clipboard"}),(0,n.extendLang)(u)}),r.Icon.set("copyformat",c())},30110:function(t,e,i){"use strict";var o=i(81937),n=i(23211),s=i(28077),r=i(65946),a=i(98803);let l=new Set([o.KEY_TAB,o.KEY_LEFT,o.KEY_RIGHT,o.KEY_UP,o.KEY_DOWN]);s.pluginSystem.add("tableKeyboardNavigation",function(t){t.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",e=>{let{key:i}=e,s=function(t,e){if(!l.has(e))return;let i=t.s.current();if(!i)return;let s=n.Dom.up(i,n.Dom.isCell,t.editor);if(!s)return;let{range:a}=t.s;if(e!==o.KEY_TAB&&i!==s){let t=e===o.KEY_RIGHT||e===o.KEY_DOWN,l=(0,r.call)(t?n.Dom.next:n.Dom.prev,i,t=>e===o.KEY_UP||e===o.KEY_DOWN?n.Dom.isTag(t,"br"):!!t,s);if(!t&&(l||e!==o.KEY_UP&&n.Dom.isText(i)&&0!==a.startOffset)||t&&(l||e!==o.KEY_DOWN&&n.Dom.isText(i)&&i.nodeValue&&a.startOffset!==i.nodeValue.length))return}return s}(t,i);if(!s)return;let c=t.getInstance(a.Table,t.o),u=n.Dom.closest(s,"table",t.editor),h=null,d=i===o.KEY_LEFT||e.shiftKey,f=()=>(0,r.call)(d?n.Dom.prev:n.Dom.next,s,n.Dom.isCell,u);switch(i){case o.KEY_TAB:case o.KEY_LEFT:(h=f())||(c.appendRow(u,!!d&&u.querySelector("tr"),!d),h=f());break;case o.KEY_UP:case o.KEY_DOWN:{let t=c.formalMatrix(u),[e,n]=c.formalCoordinate(u,s);i===o.KEY_UP?void 0!==t[e-1]&&(h=t[e-1][n]):void 0!==t[e+1]&&(h=t[e+1][n])}}if(h){if(t.e.fire("hidePopup hideResizer"),h.firstChild)i===o.KEY_TAB?t.s.select(h,!0):t.s.setCursorIn(h,i===o.KEY_RIGHT||i===o.KEY_DOWN);else{let e=t.createInside.element("br");h.appendChild(e),t.s.setCursorBefore(e)}return t.synchronizeValues(),!1}})})},30500:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(27795),l=i(28077),c=i(65946),u=i(91206);i(12266);var h=i(87624),d=i(58317);class f extends u.Plugin{get ui(){return new d.UISearch(this.j)}async updateCounters(){this.ui.isOpened&&(this.ui.count=await this.calcCounts(this.ui.query))}onPressReplaceButton(){this.findAndReplace(this.ui.query),this.updateCounters()}tryScrollToElement(t){let e=a.Dom.closest(t,a.Dom.isElement,this.j.editor);e||(e=a.Dom.prev(t,a.Dom.isElement,this.j.editor)),e&&e!==this.j.editor&&(0,c.scrollIntoViewIfNeeded)(e,this.j.editor,this.j.ed)}async calcCounts(t){return(await this.findQueryBounds(t,"walkerCount")).length}async findQueryBounds(t,e){let i=this[e];return i&&i.break(),i=new a.LazyWalker(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout}),this[e]=i,this.find(i,t).catch(t=>(s.IS_PROD,[]))}async findAndReplace(t){let e=await this.findQueryBounds(t,"walker");if(!e.length)return!1;let i=this.findCurrentIndexInRanges(e,this.j.s.range);-1===i&&(i=0);let o=e[i];if(o){try{let e=this.j.ed.createRange();e.setStart(o.startContainer,o.startOffset),e.setEnd(o.endContainer,o.endOffset),e.deleteContents();let n=this.j.createInside.text(this.ui.replace);a.Dom.safeInsertNode(e,n),(0,h.clearSelectionWrappers)(this.j),this.j.s.setCursorAfter(n),this.tryScrollToElement(n),this.cache={},this.ui.currentIndex=i,await this.findAndSelect(t,!0).catch(t=>(s.IS_PROD,null))}finally{this.j.synchronizeValues()}return this.j.e.fire("afterFindAndReplace"),!0}return!1}async findAndSelect(t,e){let i=await this.findQueryBounds(t,"walker");if(!i.length)return!1;this.previousQuery===t&&(0,h.getSelectionWrappers)(this.j.editor).length||(this.drawPromise?.rejectCallback(),this.j.async.cancelAnimationFrame(this.wrapFrameRequest),(0,h.clearSelectionWrappers)(this.j),this.drawPromise=this.__drawSelectionRanges(i)),this.previousQuery=t;let o=this.ui.currentIndex-1;o=-1===o?0:e?o===i.length-1?0:o+1:0===o?i.length-1:o-1,this.ui.currentIndex=o+1;let n=i[o];if(n){let t=this.j.ed.createRange();try{t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),this.j.s.selectRange(t)}catch(t){s.IS_PROD}return this.tryScrollToElement(n.startContainer),await this.updateCounters(),await this.drawPromise,this.j.e.fire("afterFindAndSelect"),!0}return!1}findCurrentIndexInRanges(t,e){return t.findIndex(t=>t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.startContainer&&t.endOffset===e.endOffset)}async isValidCache(t){return(await t).every(t=>t.startContainer.isConnected&&t.startOffset<=(t.startContainer.nodeValue?.length??0)&&t.endContainer.isConnected&&t.endOffset<=(t.endContainer.nodeValue?.length??0))}async find(t,e){if(!e.length)return[];let i=this.cache[e];return i&&await this.isValidCache(i)?i:(this.cache[e]=this.j.async.promise(i=>{let o=new h.SentenceFinder(this.j.o.search.fuzzySearch);t.on("break",()=>{i([])}).on("visit",t=>(a.Dom.isText(t)&&o.add(t),!1)).on("end",()=>{i(o.ranges(e)??[])}).setWork(this.j.editor)}),this.cache[e])}__drawSelectionRanges(t){let{async:e,createInside:i,editor:o}=this.j;e.cancelAnimationFrame(this.wrapFrameRequest);let n=[...t],s,r=0;return e.promise(t=>{let a=()=>{do(s=n.shift())&&(0,h.highlightTextRanges)(this.j,s,n,i,o),r+=1;while(s&&r<=5)n.length?this.wrapFrameRequest=e.requestAnimationFrame(a):t()};a()})}onAfterGetValueFromEditor(t){t.value=(0,h.clearSelectionWrappersFromHTML)(t.value)}afterInit(t){if(t.o.useSearch){let e=this;t.e.on("beforeSetMode.search",()=>{this.ui.close()}).on(this.ui,"afterClose",()=>{(0,h.clearSelectionWrappers)(t),this.ui.currentIndex=0,this.ui.count=0,this.cache={},t.focus()}).on("click",()=>{this.ui.currentIndex=0,(0,h.clearSelectionWrappers)(t)}).on("change.search",()=>{this.cache={}}).on("keydown.search mousedown.search",t.async.debounce(()=>{this.ui.selInfo&&(t.s.removeMarkers(),this.ui.selInfo=null),this.ui.isOpened&&this.updateCounters()},t.defaultTimeout)).on("searchNext.search searchPrevious.search",()=>(this.ui.isOpened||this.ui.open(),e.findAndSelect(e.ui.query,"searchNext"===t.e.current).catch(t=>{s.IS_PROD}))).on("search.search",(t,i=!0)=>(this.ui.currentIndex=0,e.findAndSelect(t||"",i).catch(t=>{s.IS_PROD}))),t.registerCommand("search",{exec:(t,i,o=!0)=>(i&&e.findAndSelect(i,o).catch(t=>{s.IS_PROD}),!1)}).registerCommand("openSearchDialog",{exec:(t,i)=>(e.ui.open(i),!1),hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:(i,o,n)=>(t.o.readonly||e.ui.open(o,n,!0),!1),hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(t){(0,r.cached)(this,"ui")?.destruct(),t.e.off(".search")}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"find",group:"search"}]),(0,o._)(this,"previousQuery",""),(0,o._)(this,"drawPromise",null),(0,o._)(this,"walker",null),(0,o._)(this,"walkerCount",null),(0,o._)(this,"cache",{}),(0,o._)(this,"wrapFrameRequest",0)}}(0,n.__decorate)([r.cache],f.prototype,"ui",null),(0,n.__decorate)([(0,r.watch)("ui:needUpdateCounters")],f.prototype,"updateCounters",null),(0,n.__decorate)([(0,r.watch)("ui:pressReplaceButton")],f.prototype,"onPressReplaceButton",null),(0,n.__decorate)([r.autobind],f.prototype,"findQueryBounds",null),(0,n.__decorate)([r.autobind],f.prototype,"findAndReplace",null),(0,n.__decorate)([r.autobind],f.prototype,"findAndSelect",null),(0,n.__decorate)([r.autobind],f.prototype,"find",null),(0,n.__decorate)([(0,r.watch)(":afterGetValueFromEditor")],f.prototype,"onAfterGetValueFromEditor",null),l.pluginSystem.add("search",f)},30893:function(t,e,i){"use strict";i.d(e,{applyStyles:function(){return l}});var o=i(81937),n=i(23211),s=i(4040),r=i(28723);function a(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(t,e,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(e)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(e)).toFixed(0)+"px"}return t})}function l(t){if(-1===t.indexOf("<html "))return t;t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7);let e=o.globalDocument.createElement("iframe");e.style.display="none",o.globalDocument.body.appendChild(e);let i="";try{let l=e.contentDocument||(e.contentWindow?e.contentWindow.document:null);if(l){l.open(),l.write(t),l.close();try{for(let t=0;t<l.styleSheets.length;t+=1){let e=l.styleSheets[t].cssRules;for(let t=0;t<e.length;t+=1)""!==e[t].selectorText&&(0,r.$$)(e[t].selectorText,l.body).forEach(i=>{i.style.cssText=a(e[t].style.cssText+";"+i.style.cssText)})}}catch(t){if(!o.IS_PROD)throw t}n.Dom.each(l.body,t=>{if(n.Dom.isElement(t)){let e=t.getAttribute("style");e&&(t.style.cssText=a(e)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),i=l.firstChild?(0,s.trim)(l.body.innerHTML):""}}catch{}finally{n.Dom.safeRemove(e)}return i&&(t=i),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},31125:function(t,e,i){"use strict";i.d(e,{elementsMap:function(){return n}});let o=new WeakMap,n=t=>{let e=o.get(t);return e||(e={},o.set(t,e)),e}},31230:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg>'},31365:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg>'},31534:function(t,e,i){"use strict";i.d(e,{isViewObject:function(){return n}});var o=i(91565);function n(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&t.isView)}},31635:function(t,e,i){"use strict";function o(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r}i.d(e,{__decorate:function(){return o}}),"function"==typeof SuppressedError&&SuppressedError},32013:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg>'},32328:function(t,e,i){"use strict";function o(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}i.d(e,{splitArray:function(){return o}})},32855:function(t,e,i){"use strict";i.d(e,{Response:function(){return n}});var o=i(25045);class n{get url(){return this.request.url}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}constructor(t,e,i,n){(0,o._)(this,"status",void 0),(0,o._)(this,"statusText",void 0),(0,o._)(this,"request",void 0),(0,o._)(this,"body",void 0),this.request=t,this.status=e,this.statusText=i,this.body=n}}},33201:function(t,e,i){"use strict";i.d(e,{ConnectionError:function(){return n.ConnectionError},OptionsError:function(){return n.OptionsError},abort:function(){return n.abort},connection:function(){return o.connection},error:function(){return o.error},isAbort:function(){return n.isAbort},options:function(){return o.options}});var o=i(38027),n=i(29953)},33494:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},no:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},33511:function(t,e,i){"use strict";i.d(e,{Stack:function(){return n}});var o=i(25045);class n{get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(t){this.clearRedo(),this.commands.push(t),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(t){this.commands[this.stackPosition]=t}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.stackPosition<this.commands.length-1}constructor(t){(0,o._)(this,"size",void 0),(0,o._)(this,"commands",void 0),(0,o._)(this,"stackPosition",void 0),this.size=t,this.commands=[],this.stackPosition=-1}}},33831:function(t,e,i){"use strict";i(5266).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},33915:function(t,e,i){"use strict";i.r(e),i.d(e,{removeExtraBr:function(){return o.removeExtraBr}});var o=i(14841)},34027:function(t,e,i){"use strict";i.d(e,{getScrollParent:function(){return function t(e){if(!e)return null;let i=n.Dom.isHTMLElement(e),r=i&&(0,s.css)(e,"overflowY");return i&&"visible"!==r&&"hidden"!==r&&e.scrollHeight>=e.clientHeight?e:t(e.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=i(81937),n=i(23211),s=i(93640)},34045:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>'},34142:function(t,e,i){"use strict";var o=i(28077);i(48899),o.pluginSystem.add("video",function(t){t.registerButton({name:"video",group:"media"})})},34269:function(t,e,i){"use strict";i.d(e,{elementToItem:function(){return c},getItem:function(){return l},nativeListeners:function(){return u}});var o=i(27795),n=i(65946),s=i(61334),r=i(31125),a=i(53202);let l=(t,e,i="a")=>o.Dom.closest(t,t=>o.Dom.isTag(t,i),e),c=(t,e)=>{let{key:i}=t.dataset,{item:o}=e[i||""];return o};function u(){let t=!1,e=(0,r.elementsMap)(this),i=this;i.e.on(i.tree.container,"dragstart",e=>{let o=l(e.target,i.container);o&&i.o.moveFolder&&(t=o)}).on(i.tree.container,"drop",e=>{if((i.o.moveFile||i.o.moveFolder)&&t){let o=(0,n.attr)(t,"-path")||"";if(!i.o.moveFolder&&t.classList.contains(this.tree.getFullElName("item"))||t.classList.contains(this.files.getFullElName("item"))&&(o+=(0,n.attr)(t,"-name"),!i.o.moveFile))return!1;let s=l(e.target,i.container);s&&(i.dataProvider.move(o,(0,n.attr)(s,"-path")||"",(0,n.attr)(s,"-source")||"",t.classList.contains(this.files.getFullElName("item"))).then(()=>(0,a.loadTree)(this)).catch(i.status),t=!1)}}).on(i.files.container,"contextmenu",(0,s.default)(i)).on(i.files.container,"click",t=>{(0,n.ctrlKey)(t)||(this.state.activeElements=[])}).on(i.files.container,"click",t=>{let o=l(t.target,i.container);if(!o)return;let s=c(o,e);if(s)return(0,n.ctrlKey)(t)?i.state.activeElements=[...i.state.activeElements,s]:i.state.activeElements=[s],t.stopPropagation(),!1}).on(i.files.container,"dragstart",e=>{if(i.o.moveFile){let o=l(e.target,i.container);o&&(t=o)}}).on(i.container,"drop",t=>t.preventDefault())}},34287:function(t,e,i){"use strict";i.d(e,{checkBR:function(){return r}});var o=i(81937),n=i(23211),s=i(60898);function r(t,e,i){let r=!!n.Dom.closest(t,["pre","blockquote"],e.editor),l=!r&&n.Dom.closest(t,["td","th"],e.editor);if(e.o.enter.toLowerCase()===o.BR.toLowerCase()||l||i&&!r||!i&&r){var c;let i;if(r&&(i=a(a(c=t)))&&(n.Dom.safeRemove(a(c)),n.Dom.safeRemove(i),1))return!1;let o=e.createInside.element("br");if(n.Dom.before(t,o),!n.Dom.findNotEmptySibling(o,!1)){let e=o.cloneNode();n.Dom.after(o,e),n.Dom.before(e,t)}return(0,s.scrollIntoViewIfNeeded)(o,e.editor,e.ed),!0}return!1}function a(t){if(!t)return!1;let e=n.Dom.findSibling(t,!0);return!!e&&!!n.Dom.isTag(e,"br")&&e}},34396:function(t,e,i){"use strict";i.d(e,{ProgressBar:function(){return s}});var o=i(23211),n=i(96007);class s extends n.UIElement{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){return(this.j.workplace||this.j.container).appendChild(this.container),this}hide(){return o.Dom.safeRemove(this.container),this}progress(t){return this.container.style.width=t.toFixed(2)+"%",this}destruct(){return this.hide(),super.destruct()}}},34582:function(t,e,i){"use strict";i.d(e,{toggleOrderedList:function(){return c}});var o=i(23211),n=i(28712),s=i(17481),r=i(82794),a=i(98394),l=i(97110);function c(t,e,i,o){if(!e)return o;let n=e.parentElement;if(!n)return o;let s=i.e.fire(`${a._PREFIX}BeforeToggleList`,o,t,n);if(void 0!==s)return s;let c=i.e.fire.bind(i.e,`${a._PREFIX}AfterToggleList`);if(o!==a.UNWRAP){let s=(0,r.toggleAttributes)(t,e.parentElement,i,a.INITIAL,!0)===a.CHANGE;if(o===a.REPLACE||s||n.tagName.toLowerCase()!==t.element){let o=u(a.REPLACE,n,e,i,t),s=(0,l.wrapList)(t,o,i);return c(a.REPLACE,s,t),a.REPLACE}}let h=u(a.UNWRAP,n,e,i,t);return c(a.UNWRAP,h,t),a.UNWRAP}function u(t,e,i,r,l){let c=r.e.fire(`${a._PREFIX}BeforeUnwrapList`,t,e,l);return c?((0,n.assert)(o.Dom.isHTMLElement(c),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),c):((0,s.extractSelectedPart)(e,i,r),(0,n.assert)(o.Dom.isHTMLElement(i.parentElement),"Element should be inside the list"),o.Dom.unwrap(i.parentElement),o.Dom.replace(i,"br"!==r.o.enter.toLowerCase()?r.o.enter:r.createInside.fragment(),r.createInside))}},34672:function(t,e,i){"use strict";i.d(e,{processEmptyLILeaf:function(){return r}});var o=i(23211),n=i(28723),s=i(65710);function r(t,e,i){let r=o.Dom.closest(i,["ol","ul"],e.editor);if(!r)return;let a=r.parentElement,l=o.Dom.isLeaf(a),c=l?a:r,u=e.s.createRange();u.setStartAfter(i),u.setEndAfter(r);let h=u.extractContents();o.Dom.after(c,t),o.Dom.safeRemove(i),(0,n.$$)("li",r).length||o.Dom.safeRemove(r);let d=(0,s.insertParagraph)(t,e,l?"li":e.o.enter);h.querySelector("li")&&(l?d.appendChild(h):o.Dom.after(d,h))}},34689:function(t,e,i){"use strict";i(5266).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},34693:function(t,e,i){"use strict";i.d(e,{checkBlockNesting:function(){return n}});var o=i(23211);function n(t,e){if(o.Dom.isFragment(e)&&(e=e.firstChild),t.o.dtd.checkBlockNesting&&o.Dom.isBlock(e)){let e=o.Dom.furthest(t.s.current(),o.Dom.isBlock,t.editor);e&&!t.o.dtd.blockLimits[e.tagName.toLowerCase()]&&(t.s.setCursorAfter(e),o.Dom.isEmpty(e)&&o.Dom.safeRemove(e))}}},35099:function(t,e,i){"use strict";i.d(e,{View:function(){return C}});var o=i(25045),n=i(31635),s=i(16964),r=i(80251),a=i(69364),l=i(81937),c=i(76517),u=i(51676),h=i(24968),d=i(29200),f=i(27795),p=i(1496),m=i(28077),g=i(65946),_=i(8006),v=i(24475),b=i(23183),y=i(81987),w=i(34396),S=i(10081);class C extends r.Component{get basePath(){return this.o.basePath?this.o.basePath:l.BASE_PATH}get minified(){return void 0!==this.o.minified?this.o.minified:l.BASE_PATH_IS_MIN}get defaultTimeout(){return(0,g.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get buffer(){return v.Storage.makeStorage()}get message(){return this.getMessageModule(this.container)}getMessageModule(t){return new S.UIMessages(this,t)}get storage(){return v.Storage.makeStorage(!0,this.id)}get asyncStorage(){return _.AsyncStorage.makeStorage(!0,this.id)}get c(){return this.create}get container(){return this.__container}set container(t){this.__container=t}get e(){return this.events}get progressbar(){return new w.ProgressBar(this)}get options(){return this.__options}set options(t){this.__options=t}get o(){return this.options}i18n(t,...e){return(0,g.i18n)(t,e,this.options)}toggleFullSize(t){void 0===t&&(t=!this.__isFullSize),t!==this.__isFullSize&&(this.__isFullSize=t,this.e.fire("toggleFullSize",t))}get isLocked(){return""!==this.__whoLocked}lock(t="any"){return!this.isLocked&&(this.__whoLocked=t,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return C.version}static getVersion(){return C.version}initOptions(t){this.options=(0,g.ConfigProto)(t||{},(0,g.ConfigProto)(this.options||{},C.defaultOptions))}initOwners(){this.ownerWindow=this.o.ownerWindow??window}attachEvents(t){if(!t)return;let e=t?.events;e&&Object.keys(e).forEach(t=>this.e.on(t,e[t]))}getInstance(t,e){let i=(0,g.isFunction)(t)?t.prototype.className():t,o=this.e.fire((0,g.camelCase)("getInstance_"+i),e);if(o)return o;let n=(0,g.isFunction)(t)?t:m.modules[i],r=this.__modulesInstances;if(!(0,g.isFunction)(n))throw(0,g.error)("Need real module name");if(!r.has(i)){let t=n.prototype instanceof s.ViewComponent?new n(this,e):new n(e);this.components.add(t),r.set(i,t)}return r.get(i)}addDisclaimer(t){this.container.appendChild(t)}beforeDestruct(){this.e.fire(a.STATUSES.beforeDestruct,this),this.components.forEach(t=>{(0,g.isDestructable)(t)&&!t.isInDestruct&&t.destruct()}),this.components.clear()}destruct(){this.isDestructed||((0,u.cached)(this,"progressbar")?.destruct(),(0,u.cached)(this,"message")?.destruct(),(0,u.cached)(this,"asyncStorage")?.close(),this.events&&(this.events.destruct(),this.events=void 0),(0,u.cached)(this,"buffer")?.clear(),f.Dom.safeRemove(this.container),super.destruct())}constructor(t,e=!1){super(),(0,o._)(this,"isJodit",void 0),(0,o._)(this,"isView",void 0),(0,o._)(this,"parent",void 0),(0,o._)(this,"mods",void 0),(0,o._)(this,"id",void 0),(0,o._)(this,"components",void 0),(0,o._)(this,"events",void 0),(0,o._)(this,"create",void 0),(0,o._)(this,"__container",void 0),(0,o._)(this,"OPTIONS",void 0),(0,o._)(this,"__options",void 0),(0,o._)(this,"__isFullSize",void 0),(0,o._)(this,"__whoLocked",void 0),(0,o._)(this,"isLockedNotBy",void 0),(0,o._)(this,"__modulesInstances",void 0),this.isJodit=e,this.isView=!0,this.parent=null,this.mods={},this.components=new Set,this.OPTIONS=C.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=t=>this.isLocked&&this.__whoLocked!==t,this.__modulesInstances=new Map,this.id=new Date().getTime().toString(),this.initOptions(t),this.initOwners(),this.events=t?.eventEmmiter??new p.EventEmitter(this.od),this.create=new c.Create(this.od),this.__container=this.c.div("jodit "+this.componentName)}}(0,o._)(C,"ES",l.ES),(0,o._)(C,"version",l.APP_VERSION),(0,o._)(C,"esNext",l.IS_ES_NEXT),(0,o._)(C,"esModern",l.IS_ES_MODERN),(0,o._)(C,"defaultOptions",void 0),(0,n.__decorate)([u.cache],C.prototype,"buffer",null),(0,n.__decorate)([u.cache],C.prototype,"message",null),(0,n.__decorate)([u.cache],C.prototype,"storage",null),(0,n.__decorate)([u.cache],C.prototype,"asyncStorage",null),(0,n.__decorate)([u.cache],C.prototype,"c",null),(0,n.__decorate)([u.cache],C.prototype,"e",null),(0,n.__decorate)([u.cache],C.prototype,"progressbar",null),(0,n.__decorate)([(0,d.hook)(a.STATUSES.beforeDestruct)],C.prototype,"beforeDestruct",null),(C=(0,n.__decorate)([(0,h.derive)(y.Mods,b.Elms)],C)).defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"}},35104:function(t,e,i){"use strict";i.d(e,{replaceOldTags:function(){return n}});var o=i(23211);function n(t,e,i){let n=function(t,e,i){if(!i||!o.Dom.isHTMLElement(e))return e;let n=i[e.nodeName.toLowerCase()]||i[e.nodeName];return n?o.Dom.replace(e,n,t.createInside,!0,!1):e}(t,e,t.o.cleanHTML.replaceOldTags);return e!==n?(e=n,!0):i}},35676:function(t,e,i){"use strict";i.d(e,{UISeparator:function(){return r}});var o=i(31635),n=i(91672),s=i(96007);class r extends s.UIElement{className(){return"UISeparator"}}r=(0,o.__decorate)([n.component],r)},35718:function(t,e,i){"use strict";i.d(e,{idle:function(){return r}});var o=i(16964),n=i(91565),s=i(33201);function r(){return(t,e)=>{if(!(0,n.isFunction)(t[e]))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:i}=t,o=t[e];t[e]=(...e)=>i.requestIdleCallback(o.bind(t,...e))})}}},36310:function(t,e,i){"use strict";i.d(e,{parseQuery:function(){return o}});let o=t=>{let e={},i=t.substring(1).split("&");for(let t=0;t<i.length;t+=1){let o=i[t].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return e}},36327:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>'},36339:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg>'},36400:function(t,e,i){"use strict";i.d(e,{dataBind:function(){return s}});var o=i(31534);let n=new WeakMap,s=(t,e,i)=>{let s=n.get(t);if(!s){s={},n.set(t,s);let e=null;(0,o.isViewObject)(t.j)&&(e=t.j.e),(0,o.isViewObject)(t)&&(e=t.e),e&&e.on("beforeDestruct",()=>{n.delete(t)})}return void 0===i?s[e]:(s[e]=i,i)}},36664:function(t,e,i){"use strict";i.d(e,{selfListeners:function(){return u}});var o=i(65946),n=i(28686),s=i(17780),r=i(1305),a=i(1488),l=i(53202),c=i(43271);function u(){let t=this.state,e=this.dataProvider,i=this;i.e.on("view.filebrowser",e=>{e!==t.view&&(t.view=e)}).on("sort.filebrowser",e=>{e!==t.sortBy&&(t.sortBy=e,(0,a.loadItems)(i))}).on("filter.filebrowser",e=>{e!==t.filterWord&&(t.filterWord=e,(0,a.loadItems)(i))}).on("openFolder.filebrowser",t=>{let e;e=".."===t.name?t.path.split("/").filter(t=>t.length).slice(0,-1).join("/"):(0,o.normalizePath)(t.path,t.name),i.state.currentPath=e,i.state.currentSource="."===t.name?s.DEFAULT_SOURCE_NAME:t.source}).on("removeFolder.filebrowser",t=>{i.confirm("Are you sure?","Delete",o=>{o&&e.folderRemove(t.path,t.name,t.source).then(t=>(i.status(t,!0),(0,l.loadTree)(i))).catch(i.status)})}).on("renameFolder.filebrowser",t=>{i.prompt("Enter new name","Rename",o=>{if(!(0,n.isValidName)(o))return i.status(i.i18n("Enter new name")),!1;e.folderRename(t.path,t.name,o,t.source).then(t=>(i.state.activeElements=[],i.status(t,!0),(0,l.loadTree)(i))).catch(i.status)},"type name",t.name)}).on("addFolder.filebrowser",t=>{i.prompt("Enter Directory name","Create directory",o=>{e.createFolder(o,t.path,t.source).then(()=>(0,l.loadTree)(i)).catch(i.status)},"type name")}).on("fileRemove.filebrowser",()=>{i.state.activeElements.length&&i.confirm("Are you sure?","",t=>{if(t){let t=[];i.state.activeElements.forEach(e=>{t.push((0,r.deleteFile)(i,e.file||e.name||"",e.sourceName))}),i.state.activeElements=[],Promise.all(t).then(()=>(0,l.loadTree)(i).catch(i.status),i.status)}})}).on("edit.filebrowser",()=>{if(1===i.state.activeElements.length){let[t]=this.state.activeElements;c.openImageEditor.call(i,t.fileURL,t.file||"",t.path,t.sourceName)}}).on("fileRename.filebrowser",(t,o,s)=>{1===i.state.activeElements.length&&i.prompt("Enter new name","Rename",r=>{if(!(0,n.isValidName)(r))return i.status(i.i18n("Enter new name")),!1;e.fileRename(o,t,r,s).then(t=>{i.state.activeElements=[],i.status(t,!0),(0,a.loadItems)(i)}).catch(i.status)},"type name",t)}).on("update.filebrowser",()=>{(0,l.loadTree)(this).then(this.status,this.status)})}},36833:function(t,e,i){"use strict";i.d(e,{buildQuery:function(){return n}});var o=i(62101);let n=(t,e)=>{let i=[],s=encodeURIComponent;for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let a=e?e+"["+r+"]":r,l=t[r];i.push((0,o.isPlainObject)(l)?n(l,a):s(a)+"="+s(l))}return i.join("&")}},37102:function(t,e,i){"use strict";i(5266).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:()=>new XMLHttpRequest}},37333:function(t,e,i){"use strict";i.d(e,{Alert:function(){return o.Alert},Confirm:function(){return n.Confirm},Dialog:function(){return s.Dialog},Prompt:function(){return r.Prompt}});var o=i(91535),n=i(88329),s=i(76841),r=i(74103)},37427:function(t,e,i){"use strict";i.d(e,{humanSizeToBytes:function(){return o}});let o=t=>{if(/^[0-9.]+$/.test(t.toString()))return parseFloat(t);let e=t.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],o=parseFloat(t.substr(0,t.length-2));return -1!==i.indexOf(e)?o*Math.pow(1024,i.indexOf(e)+1):parseInt(t,10)}},37431:function(t,e,i){"use strict";i.d(e,{isInlineBlock:function(){return r},removeFormatForCollapsedSelection:function(){return s}});var o=i(81937),n=i(23211);function s(t,e){let{s:i}=t,o=e;if(!o){o=t.createInside.fake();let{range:e}=i;n.Dom.safeInsertNode(e,o),e.collapse()}let s=n.Dom.furthest(o,r,t.editor);if(s)if(i.cursorOnTheLeft(s))n.Dom.before(s,o);else if(i.cursorOnTheRight(s))n.Dom.after(s,o);else{let t=i.splitSelection(s);t&&n.Dom.after(t,o)}e||(i.setCursorBefore(o),n.Dom.safeRemove(o))}function r(t){return n.Dom.isInlineBlock(t)&&!n.Dom.isTag(t,o.INSEPARABLE_TAGS)}},38027:function(t,e,i){"use strict";i.d(e,{connection:function(){return s},error:function(){return n},options:function(){return r}});var o=i(29953);function n(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function r(t){return new o.OptionsError(t)}},38187:function(t,e,i){"use strict";var o=i(81937),n=i(5266),s=i(54308);n.Config.prototype.askBeforePasteHTML=!0,n.Config.prototype.processPasteHTML=!0,n.Config.prototype.scrollToPastedContent=!0,n.Config.prototype.pasteExcludeStripTags=["br","hr"],n.Config.prototype.pasteHTMLActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Insert as Text"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}],n.Config.prototype.memorizeChoiceWhenPasteFragment=!1,n.Config.prototype.nl2brInPlainText=!0;let r="pasteStorage";n.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(t,e,{control:i}){if(i.name===r)return void t.execCommand("showPasteStorage");t.s.focus();let n="",a=!0;if(navigator.clipboard){try{let t=await navigator.clipboard.read();if(t&&t.length){let e=await t[0].getType(o.TEXT_PLAIN);n=await new Response(e).text()}a=!1}catch(t){o.IS_PROD}if(a)try{n=await navigator.clipboard.readText(),a=!1}catch(t){o.IS_PROD}}a&&(a=0===(n=t.buffer.get(o.CLIPBOARD_ID)||"").length);let l=t.value;a?(t.ed.execCommand("paste"),(a=l===t.value)||t.e.fire("afterPaste")):n.length?((0,s.pasteInsertHtml)(null,t,n),t.e.fire("afterPaste")):a&&t.alert("Your browser doesn't support direct access to the clipboard.",()=>void t.s.focus())},list:{[r]:"Paste Storage"},isChildDisabled:t=>2>t.e.fire("pasteStorageList")}},38639:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return n.a},cs_cz:function(){return n.a},de:function(){return n.a},es:function(){return n.a},fa:function(){return n.a},fi:function(){return n.a},fr:function(){return n.a},he:function(){return n.a},hu:function(){return n.a},id:function(){return n.a},it:function(){return n.a},ja:function(){return n.a},ko:function(){return n.a},mn:function(){return n.a},nl:function(){return n.a},pl:function(){return n.a},pt_br:function(){return n.a},ru:function(){return n.a},tr:function(){return n.a},zh_cn:function(){return n.a},zh_tw:function(){return n.a}});var o=i(41324),n=i.n(o)},38681:function(t){t.exports='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg>'},39e3:function(t,e,i){"use strict";var o=i(81937),n=i(27795),s=i(28077),r=i(93640);i(42360);var a=i(11917);let l=(t,e,i,o)=>{if(!e||t.has(e))return;let n=(0,a.getKey)(i.o.direction,e);t.add(e);let s=e.style[n]?parseInt(e.style[n],10):0;s+=i.o.indentMargin*("outdent"===o?-1:1),e.style[n]=s>0?s+"px":"",(0,r.attr)(e,"style")||(0,r.attr)(e,"style",null)};s.pluginSystem.add("indent",function(t){t.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});let e=e=>{let i=new Set,{enter:s,enterBlock:a}=t.o,c=s.toLowerCase()===o.BR,u=t.s.current();return c&&t.s.isCollapsed()&&u?l(i,n.Dom.wrapNextInline(u,a,t),t,e):(t.s.eachSelection(o=>{t.s.save();let u=!!o&&n.Dom.up(o,n.Dom.isBlock,t.editor);if(!u&&o&&(u=(0,r.call)(c?n.Dom.wrapNextInline:n.Dom.wrapInline,o,c?a:s.toLowerCase(),t)),!u)return t.s.restore(),!1;l(i,u,t,e),t.s.restore()}),t.synchronizeValues()),!1};t.registerCommand("indent",{exec:e,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:e,hotkeys:["ctrl+[","cmd+["]})})},39188:function(t,e,i){"use strict";i.d(e,{fillEmptyParagraph:function(){return r}});var o=i(81937),n=i(23211);let s=new Set(["table","tbody","thead","tfoot","tr"]);function r(t,e,i){if(t.o.cleanHTML.fillEmptyParagraph&&n.Dom.isBlock(e)&&n.Dom.isEmpty(e,o.INSEPARABLE_TAGS)&&!n.Dom.isTag(e,s)){let i=t.createInside.element("br");return e.appendChild(i),!0}return i}},39199:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>'},39608:function(t,e,i){"use strict";i.d(e,{isInsideInvisibleElement:function(){return n}});var o=i(23211);function n(t,e){return!!o.Dom.closest(t,["style","script"],e)}},39709:function(t,e,i){"use strict";i.d(e,{ToolbarButton:function(){return o.ToolbarButton},ToolbarContent:function(){return n.ToolbarContent},ToolbarSelect:function(){return s.ToolbarSelect}});var o=i(22533),n=i(5772),s=i(61764)},39858:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg>'},39978:function(t,e,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(28077),a=i(65946),l=i(91206);i(51034);let c="__jodit_imageprocessor_binded",u=c+"blob-id";class h extends l.Plugin{afterInit(t){}beforeDestruct(t){let e=(0,s.cached)(t,"buffer"),i=e?.get(u);if(e&&i){for(let t of Object.keys(i))URL.revokeObjectURL(t);e.delete(u)}}onAfterGetValueFromEditor(t,e){if(e!==n.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){let{jodit:e}=this;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=e.buffer.get(u);if(i)for(let e of Object.keys(i))for(;t.value.includes(e);)t.value=t.value.replace(e,i[e])}async afterChange(t){let{jodit:e}=this;e.editor&&(0,a.$$)("img",e.editor).forEach(t=>{(0,a.dataBind)(t,c)||((0,a.dataBind)(t,c,!0),t.complete||e.e.on(t,"load",function i(){e.isInDestruct||e.e?.fire("resize"),e.e.off(t,"load",i)}),t.src&&/^data:/.test(t.src)&&function(t,e){if(!t.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let i=e.src,o=function(t){let e=atob(t.split(",")[1]),i=t.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(e.length),n=new Uint8Array(o);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return new Blob([o],{type:i})}(i);e.src=URL.createObjectURL(o),t.e.fire("internalUpdate");let{buffer:n}=t,s=n.get(u)||{};s[e.src]=i,t.buffer.set(u,s)}(e,t),e.e.on(t,"mousedown touchstart",()=>{e.s.select(t)}))})}}(0,o.__decorate)([(0,s.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),(0,o.__decorate)([(0,s.watch)(":beforeSetElementValue")],h.prototype,"onBeforeSetElementValue",null),(0,o.__decorate)([(0,s.watch)([":change",":afterInit",":changePlace"]),(0,s.debounce)()],h.prototype,"afterChange",null),r.pluginSystem.add("imageProcessor",h)},40013:function(t,e,i){"use strict";var o=i(17312),n=i(24497),s=i(5266);s.Config.prototype.enableDragAndDropFileToEditor=!0,s.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:t=>`files[${t}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:t=>t,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,o.isArray)(t.data.messages)?t.data.messages.join(" "):"",processFileName:(t,e,i)=>[t,e,i],process:t=>t.data,error(t){this.j.message.error(t.message,4e3)},getDisplayName:(t,e)=>t+e,defaultHandlerSuccess(t){let e=this.j||this;(0,n.isJoditObject)(e)&&t.files&&t.files.length&&t.files.forEach((i,o)=>{let[n,s]=t.isImages&&t.isImages[o]?["img","src"]:["a","href"],r=e.createInside.element(n);r.setAttribute(s,t.baseurl+i),"a"===n&&(r.textContent=e.o.uploader.getDisplayName.call(this,t.baseurl,i)),"img"===n?e.s.insertImage(r,null,e.o.imageDefaultWidth):e.s.insertNode(r)})},defaultHandlerError(t){this.j.message.error(t.message)},contentType(t){return(void 0===this.ow.FormData||"string"==typeof t)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},40037:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},40253:function(t,e,i){"use strict";i.d(e,{getStrongControlTypes:function(){return a}});var o=i(17312),n=i(93640),s=i(5266),r=i(15982);function a(t,e){return((0,o.isArray)(t)?t:(0,n.keys)(t,!1).map(e=>{let i=t[e]||{};return(0,n.ConfigProto)({name:e},i)})).map(t=>(0,r.getControlType)(t,e||s.Config.defaultOptions.controls))}},40291:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},o.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},o.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},o.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},o.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},o.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},41111:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg>'},41134:function(t,e,i){"use strict";var o=i(81937),n=i(27795),s=i(28077),r=i(97228),a=i(57075),l=i(29434),c=i(5266),u=i(81576),h=i(59827),d=i.n(h);l.Icon.set("print",d()),c.Config.prototype.controls.print={exec(t){let e=t.create.element("iframe");Object.assign(e.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),(0,s.getContainer)(t,c.Config).appendChild(e);let i=()=>{t.e.off(t.ow,"mousemove",i),n.Dom.safeRemove(e)},o=e.contentWindow;if(o){t.e.on(o,"onbeforeunload onafterprint",i).on(t.ow,"mousemove",i),t.o.iframe?(t.e.fire("generateDocumentStructure.iframe",o.document,t),o.document.body.innerHTML=t.value):(o.document.write('<!doctype html><html lang="'+(0,r.defaultLanguage)(t.o.language)+'"><head><title></title></head><style>'+(0,u.generateCriticalCSS)(t)+"</style><body></body></html>"),o.document.close(),(0,a.previewBox)(t,void 0,"px",o.document.body));let e=o.document.createElement("style");e.innerHTML=`@media print {
183
183
  body {
184
184
  -webkit-print-color-adjust: exact;
185
185
  }
186
- }`,o.document.head.appendChild(e),o.focus(),o.print()}},mode:o.MODE_SOURCE+o.MODE_WYSIWYG,tooltip:"Print"},s.pluginSystem.add("print",function(t){t.registerButton({name:"print"})})},41324:function(e){"use strict";e.exports=t},41360:function(t,e,i){"use strict";i.d(e,{nonenumerable:function(){return o}});let o=(t,e)=>{!1!==(Object.getOwnPropertyDescriptor(t,e)||{}).enumerable&&Object.defineProperty(t,e,{enumerable:!1,set(t){Object.defineProperty(this,e,{enumerable:!1,writable:!0,value:t})}})}},42259:function(t,e,i){"use strict";i.d(e,{cursorInTheEdgeOfString:function(){return r},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return s.moveNodeInsideStart}});var o=i(81937),n=i(23211),s=i(89817);function r(t,e,i,n){let s=t.nodeValue?.length?t.nodeValue:"";if(n&&s.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>e)return!0;let r=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(s);return i&&(r&&r[0].length<e||!r&&e>0)}function a(t,e,i,o,s,r){if((t=e.startContainer.childNodes[e.startOffset])||(t=e.startContainer.childNodes[e.startOffset-1],i=!0),t&&o&&!n.Dom.isText(t)){if(!i&&n.Dom.isText(t.previousSibling))t=t.previousSibling;else if(s){let e=r(t);for(;e;){if(e&&n.Dom.isText(e)){t=e;break}e=r(e)}}}if(t&&!o&&!n.Dom.isText(t)){let e=t,i=t;do e=e.firstChild,i=i.lastChild;while(e&&i&&!n.Dom.isText(e))e===i&&e&&n.Dom.isText(e)&&(t=e)}return{node:t,rightMode:i}}i(7470)},42360:function(t,e,i){"use strict";var o=i(27795),n=i(29434),s=i(5266),r=i(67176),a=i.n(r),l=i(14017),c=i.n(l),u=i(11917);n.Icon.set("indent",a()).set("outdent",c()),s.Config.prototype.controls.indent={tooltip:"Increase Indent"},s.Config.prototype.controls.outdent={isDisabled(t){let e=t.s.current();if(e){let i=o.Dom.closest(e,o.Dom.isBlock,t.editor);if(i){let e=(0,u.getKey)(t.o.direction,i);return!i.style[e]||0>=parseInt(i.style[e],10)}}return!0},tooltip:"Decrease Indent"},s.Config.prototype.indentMargin=10},42462:function(t,e,i){"use strict";var o=i(28077),n=i(65946);i(8071),o.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let e=(e,i,o)=>{let s=(0,n.normalizeColor)(o);switch(e){case"background":t.s.commitStyle({attributes:{style:{backgroundColor:s||""}}});break;case"forecolor":t.s.commitStyle({attributes:{style:{color:s||""}}})}return t.synchronizeValues(),!1};t.registerCommand("forecolor",e).registerCommand("background",e)})},42573:function(t,e,i){"use strict";i.d(e,{ToolbarCollection:function(){return c}});var o=i(25045),n=i(31635),s=i(84839),r=i(38027),a=i(4099),l=i(4274);class c extends a.UIList{className(){return"ToolbarCollection"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,e=null){return(0,l.makeButton)(this.j,t,e)}makeSelect(t,e=null){return(0,l.makeSelect)(this.j,t,e)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,r.error)("The method is not implemented for this class.")}build(t,e=null){let i=this.j.e.fire("beforeToolbarBuild",t);return i&&(t=i),super.build(t,e),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(t){super(t),(0,o._)(this,"__listenEvents","updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur")}}(0,n.__decorate)([s.autobind],c.prototype,"__immediateUpdate",null),(0,n.__decorate)([(0,s.debounce)(t=>t.j.defaultTimeout,!0)],c.prototype,"update",null),(0,n.__decorate)([(0,s.hook)("ready")],c.prototype,"__initEvents",null),c=(0,n.__decorate)([s.component],c)},42766:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(28077),a=i(65946),l=i(60936);i(10685);let c="addnewline";class u extends l.Plugin{__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}onLock(t){t&&this.__isShown&&this.__hideForce()}__hide(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(t){t.o.addNewLine&&(t.e.on(this.__line,"mousemove",t=>{t.stopPropagation()}).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",()=>{this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!0}).on(this.__line,"mouseleave",()=>{this.__lineInFocus=!1}).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}__addEventListeners(){let t=this.j;t.e.off(t.editor,"."+c).off(t.container,"."+c).off("."+c).on([t.ow,t.ew,t.editor],"scroll."+c,this.__hideForce).on("finishedCleanHTMLWorker."+c,this.__hideForce).on(t.editor,"click."+c,this.__hide).on(t.container,"mouseleave."+c,this.__hide).on(t.editor,"mousemove."+c,this.__onMouseMove)}onDblClickEditor(t){let e=this.j;if(!e.o.readonly&&e.o.addNewLineOnDBLClick&&t.target===e.editor&&e.s.isCollapsed()){let i=(0,a.offset)(e.editor,e,e.ed),o=t.pageY-e.ew.scrollX,n=e.createInside.element(e.o.enter);Math.abs(o-i.top)<Math.abs(o-(i.height+i.top))&&e.editor.firstChild?e.editor.insertBefore(n,e.editor.firstChild):e.editor.appendChild(n),e.s.setCursorIn(n),e.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__onMouseMove(t){let e=this.j,i=e.ed.elementFromPoint(t.clientX,t.clientY);if(!l.Dom.isHTMLElement(i)||!l.Dom.isOrContains(e.editor,i))return;if(e.editor===i||this.__isMatchedTag(i)||(i=l.Dom.closest(i,this.__isMatchedTag,e.editor)),!i)return void this.__hide();if(this.__isMatchedTag(i)){let t=l.Dom.up(i,l.Dom.isBlock,e.editor);t&&t!==e.editor&&(i=t)}let o=(0,a.position)(i,this.j),n=!1,{clientY:s,clientX:r}=t;if(this.j.iframe){let{top:t,left:e}=(0,a.position)(this.j.iframe,this.j,!0);s+=t,r+=e}let c=this.j.o.addNewLineDeltaShow;Math.abs(s-o.top)<=c?(n=o.top,this.__isBeforeContent=!0):Math.abs(s-(o.top+o.height))<=c&&(n=o.top+o.height,this.__isBeforeContent=!1);let u=e.editor===i;!1===n||(!u||this.__isBeforeContent)&&(u||(0,a.call)(this.__isBeforeContent?l.Dom.prev:l.Dom.next,i,this.__canGetFocus,e.editor))?(this.__current=!1,this.__hide()):(this.__line.style.top=n+"px",this.__current=i,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",r-o.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),l.Dom.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+c).off(this.j.container,"."+c).off("."+c)}constructor(...t){super(...t),(0,o._)(this,"__line",this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${l.Icon.get("enter")}</span></div>`)),(0,o._)(this,"__isMatchedTag",t=>!!(t&&this.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase()))),(0,o._)(this,"__timeout",void 0),(0,o._)(this,"__isBeforeContent",!1),(0,o._)(this,"__current",void 0),(0,o._)(this,"__lineInFocus",!1),(0,o._)(this,"__isShown",!1),(0,o._)(this,"__hideForce",()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,l.Dom.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))}),(0,o._)(this,"__canGetFocus",t=>null!=t&&l.Dom.isBlock(t)&&!/^(img|table|iframe|hr)$/i.test(t.nodeName)),(0,o._)(this,"__onClickLine",t=>{let e=this.j,i=e.createInside.element(e.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===e.editor?l.Dom.prepend(e.editor,i):this.__current.parentNode.insertBefore(i,this.__current):e.editor.appendChild(i),e.s.setCursorIn(i),(0,a.scrollIntoViewIfNeeded)(i,e.editor,e.ed),e.synchronizeValues(),this.__hideForce(),t.preventDefault()})}}(0,n.__decorate)([(0,s.watch)(":lock")],u.prototype,"onLock",null),(0,n.__decorate)([s.autobind],u.prototype,"__hide",null),(0,n.__decorate)([(0,s.watch)(":dblclick")],u.prototype,"onDblClickEditor",null),(0,n.__decorate)([(0,s.throttle)(t=>t.defaultTimeout)],u.prototype,"__onMouseMove",null),r.pluginSystem.add("addNewLine",u)},42820:function(t,e,i){"use strict";i.d(e,{LimitedStack:function(){return n}});var o=i(25045);class n{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){(0,o._)(this,"limit",void 0),(0,o._)(this,"stack",void 0),this.limit=t,this.stack=[]}}},43102:function(t,e,i){"use strict";var o,n=i(25045),s=i(31635),r=i(84839),a=i(27795),l=i(28077),c=i(65946),u=i(91206);i(65701);var h=((o=h||{})[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING",o);class d extends u.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,c.splitArray)(this.j.o.draggableTags).filter(Boolean).map(t=>t.toLowerCase()):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>0)return;let e=t.target;if(!this.dragList.length||!e)return;let i=t=>!!(t&&this.dragList.includes(t.nodeName.toLowerCase())),o=a.Dom.furthest(e,i,this.j.editor)||(i(e)?e:null);o&&(a.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,c.ctrlKey)(t),this.draggable=o.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",o),this.state=1,this.addDragListeners())}onDrag(t){if(!this.draggable||0===this.state)return;let e=t.clientX,i=t.clientY;if(!(1===this.state&&Math.sqrt(Math.pow(e-this.startX,2)+Math.pow(i-this.startY,2))<this.diffStep)){if(1===this.state&&(this.j.lock("drag-and-drop-element"),this.state=2),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let e=(0,c.dataBind)(this.draggable,"target");(0,c.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:e?.offsetWidth??100,height:e?.offsetHeight??100}),(0,l.getContainer)(this.j,d).appendChild(this.draggable)}(0,c.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=0,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<2)return void this.onDragEnd();let t=(0,c.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));let{parentElement:e}=t;this.j.s.insertNode(t,!0,!1),e&&a.Dom.isEmpty(e)&&!a.Dom.isCell(e)&&a.Dom.safeRemove(e),a.Dom.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}constructor(...t){super(...t),(0,n._)(this,"dragList",[]),(0,n._)(this,"draggable",null),(0,n._)(this,"isCopyMode",!1),(0,n._)(this,"diffStep",10),(0,n._)(this,"startX",0),(0,n._)(this,"startY",0),(0,n._)(this,"state",0)}}(0,s.__decorate)([r.autobind],d.prototype,"onDragStart",null),(0,s.__decorate)([(0,r.throttle)(t=>t.defaultTimeout/10)],d.prototype,"onDrag",null),(0,s.__decorate)([r.autobind],d.prototype,"onDragEnd",null),(0,s.__decorate)([r.autobind],d.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",d)},43218:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>'},43271:function(t,e,i){"use strict";i.d(e,{ImageEditor:function(){return m},openImageEditor:function(){return g}});var o=i(25045),n=i(31635),s=i(16964),r=i(84839),a=i(27795),l=i(65946),c=i(59400),u=i(5266);i(54500);var h=i(8908);let d="jodit-image-editor",f="resize",p="crop";class m extends s.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(t,e){return this.j.async.promise(i=>{let o=new Date().getTime();this.image=this.j.c.element("img"),(0,l.$$)("img,.jodit-icon_loader",this.resize_box).forEach(a.Dom.safeRemove),(0,l.$$)("img,.jodit-icon_loader",this.crop_box).forEach(a.Dom.safeRemove),(0,l.css)(this.cropHandler,"background","transparent"),this.onSave=e,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(t)?t+="&_tst="+o:t+="?_tst="+o,this.image.setAttribute("src",t),this._dialog.open();let{widthInput:n,heightInput:s}=(0,l.refs)(this.editor),r=()=>{this.isDestructed||(this.image.removeEventListener("load",r),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,n.value=this.naturalWidth.toString(),s.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),a.Dom.safeRemove.apply(null,(0,l.$$)(".jodit-icon_loader",this.editor)),this.activeTab===p&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),i(this._dialog))};this.image.addEventListener("load",r),this.image.complete&&r()})}onTitleModeClick(t){let e=t.target,i=e?.parentElement;if(!i)return;(0,l.$$)(`.${d}__slider,.${d}__area`,this.editor).forEach(t=>t.classList.remove(`${d}_active`)),i.classList.add(`${d}_active`),this.activeTab=(0,l.attr)(i,"-area")||f;let o=this.editor.querySelector(`.${d}__area.${d}__area_`+this.activeTab);o&&o.classList.add(`${d}_active`),this.activeTab===p&&this.showCrop()}onChangeSizeInput(t){let e,i=t.target,{widthInput:o,heightInput:n}=(0,l.refs)(this.editor),s="widthInput"===(0,l.attr)(i,"data-ref"),r=parseInt(i.value,10),a=s?this.o.min_width:this.o.min_height,c=s?this.o.min_height:this.o.min_width;r>a&&((0,l.css)(this.image,s?"width":"height",r),this.resizeUseRatio&&(e=s?Math.round(r/this.ratio):Math.round(r*this.ratio))>c&&((0,l.css)(this.image,s?"height":"width",e),s?n.value=e.toString():o.value=e.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){this.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),this.clicked=!0,this.start_x=t.clientX,this.start_y=t.clientY,this.activeTab===p?(this.top_x=(0,l.css)(this.cropHandler,"left"),this.top_y=(0,l.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(t){this.clicked&&(this.clicked=!1,t.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(t){if(!this.clicked)return;let{widthInput:e,heightInput:i}=(0,l.refs)(this.editor);this.diff_x=t.clientX-this.start_x,this.diff_y=t.clientY-this.start_y,this.activeTab===f&&this.resizeUseRatio||this.activeTab===p&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===f?(this.new_w>this.o.resizeMinWidth&&((0,l.css)(this.image,"width",this.new_w+"px"),e.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,l.css)(this.image,"height",this.new_h+"px"),i.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,l.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,l.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,l.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),a.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+d).off("."+d),super.destruct())}constructor(t){super(t),(0,o._)(this,"options",void 0),(0,o._)(this,"onSave",void 0),(0,o._)(this,"resizeUseRatio",!0),(0,o._)(this,"cropUseRatio",!0),(0,o._)(this,"_dialog",void 0),(0,o._)(this,"image",void 0),(0,o._)(this,"cropImage",void 0),(0,o._)(this,"clicked",!1),(0,o._)(this,"target",void 0),(0,o._)(this,"start_x",0),(0,o._)(this,"start_y",0),(0,o._)(this,"top_x",0),(0,o._)(this,"top_y",0),(0,o._)(this,"width",0),(0,o._)(this,"height",0),(0,o._)(this,"activeTab",f),(0,o._)(this,"naturalWidth",0),(0,o._)(this,"naturalHeight",0),(0,o._)(this,"ratio",0),(0,o._)(this,"new_h",0),(0,o._)(this,"new_w",0),(0,o._)(this,"diff_x",0),(0,o._)(this,"diff_y",0),(0,o._)(this,"buttons",void 0),(0,o._)(this,"editor",void 0),(0,o._)(this,"resize_box",void 0),(0,o._)(this,"crop_box",void 0),(0,o._)(this,"sizes",void 0),(0,o._)(this,"resizeHandler",void 0),(0,o._)(this,"cropHandler",void 0),(0,o._)(this,"cropBox",{x:0,y:0,w:0,h:0}),(0,o._)(this,"resizeBox",{w:0,h:0}),(0,o._)(this,"calcCropBox",()=>{let t=this.crop_box.parentNode,e=.8*t.offsetWidth,i=.8*t.offsetHeight,o=e,n=i,{naturalWidth:s,naturalHeight:r}=this;e>s&&i>r?(o=s,n=r):this.ratio>e/i?(o=e,n=e/s*r):(o=i/r*s,n=i),(0,l.css)(this.crop_box,{width:o,height:n})}),(0,o._)(this,"showCrop",()=>{if(!this.cropImage)return;this.calcCropBox();let t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=m.calcValueByPercent(t,this.o.cropDefaultWidth);let e=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=m.calcValueByPercent(e,this.o.cropDefaultHeight),(0,l.css)(this.cropHandler,{backgroundImage:"url("+(0,l.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:e/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")}),(0,o._)(this,"updateCropBox",()=>{if(!this.cropImage)return;let t=this.cropImage.offsetWidth/this.naturalWidth,e=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,l.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,l.css)(this.cropHandler,"top")/e,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/e,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)}),(0,o._)(this,"updateResizeBox",()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight}),(0,o._)(this,"setHandlers",()=>{let t=this,{widthInput:e,heightInput:i}=(0,l.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],"mousedown."+d,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+d,()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")}),t.j.e.on((0,l.toArray)(this.editor.querySelectorAll(`.${d}__slider-title`)),"click",this.onTitleModeClick).on([e,i],"input",this.onChangeSizeInput);let{keepAspectRatioResize:o,keepAspectRatioCrop:n}=(0,l.refs)(this.editor);o&&o.addEventListener("change",()=>{this.resizeUseRatio=o.checked}),n&&n.addEventListener("change",()=>{this.cropUseRatio=n.checked}),t.j.e.on(t.resizeHandler,"updatesize",()=>{(0,l.css)(t.resizeHandler,{top:0,left:0,width:t.image.offsetWidth||t.naturalWidth,height:t.image.offsetHeight||t.naturalHeight}),this.updateResizeBox()}).on(t.cropHandler,"updatesize",()=>{if(!t.cropImage)return;let e=(0,l.css)(t.cropHandler,"left"),i=(0,l.css)(t.cropHandler,"top"),o=t.cropHandler.offsetWidth,n=t.cropHandler.offsetHeight;e<0&&(e=0),i<0&&(i=0),e+o>t.cropImage.offsetWidth&&(o=t.cropImage.offsetWidth-e,t.cropUseRatio&&(n=o/t.ratio)),i+n>t.cropImage.offsetHeight&&(n=t.cropImage.offsetHeight-i,t.cropUseRatio&&(o=n*t.ratio)),(0,l.css)(t.cropHandler,{width:o,height:n,left:e,top:i,backgroundPosition:-e-1+"px "+(-i-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()}),Object.values(t.buttons).forEach(o=>{o.onAction(()=>{let n={action:t.activeTab,box:t.activeTab===f?t.resizeBox:t.cropBox};switch(o){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",e=>{if(!(0,l.trim)(e))return t.j.alert("The name should not be empty"),!1;t.onSave(e,n,t.hide,e=>{t.j.alert(e.message)})});break;case t.buttons.save:t.onSave(void 0,n,t.hide,e=>{t.j.alert(e.message)});break;case t.buttons.reset:t.activeTab===f?((0,l.css)(t.image,{width:null,height:null}),e.value=t.naturalWidth.toString(),i.value=t.naturalHeight.toString(),t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}})})}),this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:u.Config.defaultOptions.imageeditor;let e=this.options;this.resizeUseRatio=e.resizeUseRatio,this.cropUseRatio=e.cropUseRatio,this.buttons={reset:(0,c.Button)(this.j,"update","Reset"),save:(0,c.Button)(this.j,"save","Save"),saveas:(0,c.Button)(this.j,"save","Save as ...")},this.activeTab=e.resize?f:p,this.editor=(0,h.form)(this.j,this.options);let{resizeBox:i,cropBox:n}=(0,l.refs)(this.editor);this.resize_box=i,this.crop_box=n,this.sizes=this.editor.querySelector(`.${d}__area.${d}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${d}__resizer`),this.cropHandler=this.editor.querySelector(`.${d}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}}function g(t,e,i,o,n,s){return this.getInstance("ImageEditor",this.o).open(t,(t,r,a,c)=>(0,l.call)("resize"===r.action?this.dataProvider.resize:this.dataProvider.crop,i,o,e,t,r.box).then(t=>{t&&(a(),n&&n())}).catch(t=>{c(t),s&&s(t)}))}(0,o._)(m,"calcValueByPercent",(t,e)=>{let i,o=e.toString(),n=parseFloat(t.toString());return(i=/^[-+]?[0-9]+(px)?$/.exec(o))?parseInt(o,10):(i=/^([-+]?[0-9.]+)%$/.exec(o))?Math.round(n*(parseFloat(i[1])/100)):n||0}),(0,n.__decorate)([r.autobind],m.prototype,"hide",null),(0,n.__decorate)([r.autobind],m.prototype,"open",null),(0,n.__decorate)([r.autobind],m.prototype,"onTitleModeClick",null),(0,n.__decorate)([(0,r.debounce)(),r.autobind],m.prototype,"onChangeSizeInput",null),(0,n.__decorate)([r.autobind],m.prototype,"onResizeHandleMouseDown",null),(0,n.__decorate)([r.autobind],m.prototype,"onGlobalMouseUp",null),(0,n.__decorate)([(0,r.throttle)(10)],m.prototype,"onGlobalMouseMove",null),m=(0,n.__decorate)([r.component],m)},43354:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(51676),r=i(28077),a=i(65946);i(81008);class l{init(t){this.buttons?.forEach(e=>t.registerButton(e)),t.e.off(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`).on(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`,e=>{let i=t.s.html,o=(0,a.getDataTransfer)(e)||(0,a.getDataTransfer)(t.ew)||(0,a.getDataTransfer)(e.originalEvent);o&&(o.setData(n.TEXT_PLAIN,(0,a.stripTags)(i)),o.setData(n.TEXT_HTML,i)),t.buffer.set(n.CLIPBOARD_ID,i),t.e.fire("pasteStack",{html:i,action:t.o.defaultActionOnPaste||n.INSERT_AS_HTML}),"cut"===e.type&&(t.s.remove(),t.s.focus()),e.preventDefault(),t?.events?.fire("afterCopy",i)})}destruct(t){(0,s.cached)(t,"buffer")?.set(n.CLIPBOARD_ID,""),t?.events?.off("."+n.CLIPBOARD_ID)}constructor(){(0,o._)(this,"jodit",void 0),(0,o._)(this,"buttons",[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}])}}r.pluginSystem.add("clipboard",l)},43379:function(t,e,i){"use strict";i.d(e,{reset:function(){return a}});var o=i(81937),n=i(91565),s=i(89308);let r={};function a(t){if(!(t in r)){let e=o.globalDocument.createElement("iframe");try{if(e.src="about:blank",o.globalDocument.body.appendChild(e),!e.contentWindow)return null;let i=(0,s.get)(t,e.contentWindow),a=(0,s.get)(t.split(".").slice(0,-1).join("."),e.contentWindow);(0,n.isFunction)(i)&&(r[t]=i.bind(a))}catch(t){if(!o.IS_PROD)throw t}finally{e.parentNode?.removeChild(e)}}return r[t]??null}},44322:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(28077),a=i(72412),l=i(80991),c=i(18855);i(80202);class u extends c.Plugin{afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__initialize()}__initialize(){let{j:t}=this;if(t.o.inline)return;let{height:e}=t.o;if(t.o.saveHeightInStorage&&"auto"!==e){let i=t.storage.get("height");i&&(e=i)}(0,l.css)(t.editor,{minHeight:"100%"}),(0,l.css)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(e),this.__setWidth(t.o.width))}__setHeight(t){let{clientHeight:e,clientWidth:i}=this.j.container;if((0,a.isNumber)(t)){let{minHeight:e,maxHeight:i}=this.j.o;(0,a.isNumber)(e)&&e>t&&(t=e),(0,a.isNumber)(i)&&i<t&&(t=i)}(0,l.css)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd({clientHeight:e,clientWidth:i})}__setWidth(t){let{clientHeight:e,clientWidth:i}=this.j.container;if((0,a.isNumber)(t)){let{minWidth:e,maxWidth:i}=this.j.o;(0,a.isNumber)(e)&&e>t&&(t=e),(0,a.isNumber)(i)&&t>i&&(t=i)}(0,l.css)(this.j.container,"width",t),this.__resizeWorkspaceImd({clientHeight:e,clientWidth:i})}__getNotWorkHeight(){return(this.j.toolbarContainer?.offsetHeight||0)+(this.j.statusbar?.getHeight()||0)+2}__resizeWorkspaceImd({clientHeight:t,clientWidth:e}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,l.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,a.isNumber)(i)&&i>0&&([this.j.workplace,this.j.iframe,this.j.editor].map(t=>{t&&(0,l.css)(t,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,a.isNumber)(this.j.o.maxHeight)){let t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map(e=>{e&&(0,l.css)(e,"maxHeight",t)}),this.j.e.fire("setMaxHeight",t)}this.j.container&&(0,l.css)(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto");let{clientHeight:o,clientWidth:n}=this.j.container;(t!==o||e!==n)&&this.j.e.fire(this.j,"resize")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(...t){super(...t),(0,o._)(this,"__resizeWorkspaces",this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0))}}(0,n.__decorate)([(0,s.throttle)()],u.prototype,"__initialize",null),(0,n.__decorate)([s.autobind],u.prototype,"__setHeight",null),(0,n.__decorate)([s.autobind],u.prototype,"__setWidth",null),(0,n.__decorate)([s.autobind],u.prototype,"__resizeWorkspaceImd",null),r.pluginSystem.add("size",u)},44599:function(t,e,i){"use strict";i.r(e),i.d(e,{en:function(){return o},es:function(){return n}});var o=i(17918),n=i(41324)},44636:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>'},44998:function(t,e,i){"use strict";i.d(e,{isLicense:function(){return n}});var o=i(85932);let n=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},45062:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>'},45219:function(t,e,i){"use strict";i.d(e,{visitNodeWalker:function(){return r}});var o=i(81937),n=i(91560);let s=Object.keys(n);function r(t,e,i,r,a){let l=!1,c=t.o.cleanHTML.disableCleanFilter;for(let u of s){if(!(c&&c.has(u))){if(l=(0,n[u])(t,e,l,i,r,a),!o.IS_PROD,!e.isConnected)return!0}}return l}},45244:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>'},45512:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>'},45664:function(t,e,i){"use strict";i.d(e,{asArray:function(){return o.asArray},splitArray:function(){return n.splitArray},toArray:function(){return s.toArray}});var o=i(78982),n=i(32328),s=i(88475)},45674:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg>'},45778:function(t,e,i){"use strict";i.d(e,{formTemplate:function(){return s}});var o=i(59400),n=i(5658);let s=t=>{let{openInNewTabCheckbox:e,noFollowCheckbox:i,modeClassName:s,selectSizeClassName:r,selectMultipleClassName:a,selectOptionsClassName:l}=t.o.link;return new n.UIForm(t,[new n.UIBlock(t,[new n.UIInput(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new n.UIBlock(t,[new n.UIInput(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),s?new n.UIBlock(t,["input"===s?new n.UIInput(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===s?new n.UISelect(t,{name:"className",ref:"className_select",label:"Class name",size:r,multiple:a,options:l}):null]):null,e?new n.UICheckbox(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new n.UICheckbox(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new n.UIBlock(t,[new o.UIButton(t,{name:"unlink",variant:"default",text:"Unlink"}),new o.UIButton(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},45844:function(t,e,i){"use strict";i.d(e,{TextAreaEditor:function(){return a}});var o=i(25045),n=i(23211),s=i(80991),r=i(94193);class a extends r.SourceEditor{init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===t.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),t.e.on(this.instance,"mousedown keydown touchstart input",t.async.debounce(this.toWYSIWYG,t.defaultTimeout)).on("setMinHeight.source",t=>{(0,s.css)(this.instance,"minHeight",t)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",e=>{t.e.fire(e.type,e)}),this.autosize(),this.onReady()}destruct(){n.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){let e=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),o=this.getSelectionEnd();this.setValue(e.substring(0,i)+t+e.substring(o,e.length))}else this.setValue(e+t)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,e=t){this.instance.setSelectionRange(t,e)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){this.instance.setAttribute("placeholder",t)}setReadOnly(t){t?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){let{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",e=>{if((e.ctrlKey||e.metaKey)&&"z"===e.key)return e.shiftKey?t.redo():t.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(...t){super(...t),(0,o._)(this,"autosize",this.j.async.debounce(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout))}}},46248:function(t,e,i){"use strict";i.d(e,{isHTML:function(){return n}});var o=i(85932);let n=t=>(0,o.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},46303:function(t,e,i){"use strict";i.d(e,{splitFragment:function(){return r}});var o=i(23211),n=i(60898),s=i(65710);function r(t,e,i){let r=e.s,{enter:a}=e.o,l=a.toLowerCase(),c=o.Dom.isLeaf(i),u=i.tagName.toLowerCase()===l||c,h=r.cursorOnTheRight(i,t),d=r.cursorOnTheLeft(i,t);if(!u&&(h||d)){h?o.Dom.after(i,t):o.Dom.before(i,t),(0,s.insertParagraph)(t,e,l),d&&!h&&o.Dom.prepend(i,t);return}let f=r.splitSelection(i,t);(0,n.scrollIntoViewIfNeeded)(f,e.editor,e.ed)}},46363:function(t,e,i){"use strict";i.d(e,{Snapshot:function(){return a}});var o=i(25045),n=i(16964),s=i(81937),r=i(23211);class a extends n.ViewComponent{className(){return"Snapshot"}static equal(t,e){return t.html===e.html&&JSON.stringify(t.range)===JSON.stringify(e.range)}static countNodesBeforeInParent(t){if(!t.parentNode)return 0;let e=t.parentNode.childNodes,i=0,o=null;for(let n=0;n<e.length;n+=1){if(!o||this.isIgnoredNode(e[n])||r.Dom.isText(o)&&r.Dom.isText(e[n])||(i+=1),e[n]===t)return i;o=e[n]}return 0}static strokeOffset(t,e){for(;r.Dom.isText(t);)t=t.previousSibling,r.Dom.isText(t)&&t.nodeValue&&(e+=t.nodeValue.length);return e}calcHierarchyLadder(t){let e=[];if(!t||!t.parentNode||!r.Dom.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!a.isIgnoredNode(t)&&e.push(a.countNodesBeforeInParent(t)),t=t.parentNode;return e.reverse()}getElementByLadder(t){let e=this.j.editor,i;for(i=0;e&&i<t.length;i+=1)e=e.childNodes[t[i]];return e}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0),this.__levelOfTransaction+=1;try{t()}catch(t){if(!s.IS_PROD)throw t}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.__getCleanedEditorValue(this.j.editor);let e=this.j.s.sel;if(e&&e.rangeCount){let i=e.getRangeAt(0),o=this.calcHierarchyLadder(i.startContainer),n=this.calcHierarchyLadder(i.endContainer),s=a.strokeOffset(i.startContainer,i.startOffset),r=a.strokeOffset(i.endContainer,i.endOffset);o.length||i.startContainer===this.j.editor||(s=0),n.length||i.endContainer===this.j.editor||(r=0),t.range={startContainer:o,startOffset:s,endContainer:n,endOffset:r}}return t}restore(t){this.transaction(()=>{let e=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(e)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){let{j:e}=this,{ow:i}=e;i.scrollTo(i.scrollX,t[0]),e.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){let e=this.j.ed.createRange();e.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),e.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(e)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),s.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return r.Dom.isText(t)&&!t.nodeValue||r.Dom.isTemporary(t)}__getCleanedEditorValue(t){let e=t.cloneNode(!0);return r.Dom.temporaryList(e).forEach(r.Dom.unwrap),e.innerHTML}constructor(...t){super(...t),(0,o._)(this,"__isBlocked",!1),(0,o._)(this,"__levelOfTransaction",0)}}},46533:function(t,e,i){"use strict";i.d(e,{sendFiles:function(){return s}});var o=i(65946),n=i(77911);function s(t,e,i,s,r){if(!e)return Promise.reject((0,o.error)("Need files"));let{o:a}=t,l=(0,o.toArray)(e);if(!l.length)return Promise.reject((0,o.error)("Need files"));let c=[];if(a.insertImageAsBase64URI&&function(t,e,i,n,s,r){let a,l;for(l=0;l<t.length;l+=1)if((a=t[l])&&a.type){let c=a.type.match(/\/([a-z0-9]+)/i),u=c[1]?c[1].toLowerCase():"";if(!e.includes(u))continue;let h=new FileReader;i.push(n.j.async.promise((t,e)=>{h.onerror=e,h.onloadend=()=>{let e={baseurl:"",files:[h.result],isImages:[!0]};((0,o.isFunction)(s)?s:r).call(n,e),t(e)},h.readAsDataURL(a)})),t[l]=null}}(l,a.imagesExtensions,c,t,i,a.defaultHandlerSuccess),(l=l.filter(t=>t)).length){let e,u=new FormData;u.append(a.pathVariableName,t.path),u.append("source",t.source);for(let i=0;i<l.length;i+=1)if(e=l[i]){let o=/\.\w+$/.test(e.name),n=e.type.match(/\/([a-z0-9]+)/i),s=n&&n[1]?n[1].toLowerCase():"",r=l[i].name||Math.random().toString().replace(".","");if(!o&&s){let t=s;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(r)||(r+="."+s)}let[c,h,d]=a.processFileName.call(t,a.filesVariableName(i),l[i],r);u.append(c,h,d)}r&&r(u),a.data&&(0,o.isPlainObject)(a.data)&&Object.keys(a.data).forEach(t=>{u.append(t,a.data[t])}),a.prepareData.call(t,u),c.push((0,n.send)(t,u).then(e=>(a.isSuccess.call(t,e)?((0,o.isFunction)(i)?i:a.defaultHandlerSuccess).call(t,a.process.call(t,e)):((0,o.isFunction)(s)?s:a.defaultHandlerError).call(t,(0,o.error)(a.getMessage.call(t,e))),e)).then(()=>{t.j.events&&t.j.e.fire("filesWereUploaded")}))}return Promise.all(c)}},47670:function(t,e,i){"use strict";i(5266).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},47744:function(t,e,i){"use strict";i.d(e,{readValuesFromImage:function(){return l}});var o=i(7909),n=i(26633),s=i(79310),r=i(18380),a=i(57339);async function l(t,e){let{sourceImage:i,values:l}=e;return(0,n.readAlign)(i,l),l.borderRadius=parseInt(i.style.borderRadius||"0",10)||0,l.id=(0,o.attr)(i,"id")||"",l.imageTitle=(0,o.attr)(i,"title")||"",l.imageAlt=(0,o.attr)(i,"alt")||"",l.style=(0,o.attr)(i,"style")||"",l.classes=((0,o.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,r.readMargins)(i,l,e),(0,s.readLink)(e,t,l),l.imageSrc=(0,o.attr)(i,"src")||"",(0,a.readSizes)(i,l,e)}},47760:function(t,e,i){"use strict";i.d(e,{alreadyLoadedList:function(){return s},appendScriptAsync:function(){return a},appendStyleAsync:function(){return l},loadNext:function(){return function t(e,i,n=0){return(0,o.isString)(i[n])?a(e,i[n]).then(()=>t(e,i,n+1)):Promise.resolve()}},loadNextStyle:function(){return function t(e,i,n=0){return(0,o.isString)(i[n])?l(e,i[n]).then(()=>t(e,i,n+1)):Promise.resolve()}}});var o=i(85932),n=i(91321);let s=new Map,r=t=>(e,i)=>{if(s.has(i))return s.get(i);let o=t(e,i);return s.set(i,o),o},a=r((t,e)=>t.async.promise((i,o)=>{if(t.isInDestruct)return o();let s=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,n.completeUrl)(e)});t.e.one(s,"error",o).one(s,"load",i),t.od.body.appendChild(s)})),l=r((t,e)=>t.async.promise((i,o)=>{if(t.isInDestruct)return o();let s=t.c.element("link");s.rel="stylesheet",s.media="all",s.crossOrigin="anonymous",t.isInDestruct||t.e.on(s,"load",()=>i(s)).on(s,"error",o),s.href=(0,n.completeUrl)(e),t.o.shadowRoot?t.o.shadowRoot.appendChild(s):t.od.body.appendChild(s)}))},47919:function(t,e,i){"use strict";i.d(e,{moveCursorOutFromSpecialTags:function(){return n}});var o=i(23211);function n(t,e,i){let{s:n}=t,s=o.Dom.closest(e,i,t.editor);s&&(n.cursorOnTheRight(s,e)?o.Dom.after(s,e):n.cursorOnTheLeft(s,e)&&o.Dom.before(s,e))}},48007:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>'},48009:function(t,e,i){"use strict";i.d(e,{normalizeUrl:function(){return o}});let o=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},48155:function(t,e,i){"use strict";i.d(e,{safeHTML:function(){return s},sanitizeHTMLElement:function(){return r}});var o=i(23211),n=i(93640);function s(t,e){(o.Dom.isElement(t)||o.Dom.isFragment(t))&&(e.removeOnError&&(r(t),(0,n.$$)("[onerror]",t).forEach(t=>r(t,e))),e.safeJavaScriptLink&&(r(t),(0,n.$$)('a[href^="javascript"]',t).forEach(t=>r(t,e))))}function r(t,{safeJavaScriptLink:e,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let s=!1;i&&t.hasAttribute("onerror")&&((0,n.attr)(t,"onerror",null),s=!0);let a=t.getAttribute("href");return e&&a&&0===a.trim().indexOf("javascript")&&((0,n.attr)(t,"href",location.protocol+"//"+a),s=!0),s}},48290:function(t,e,i){"use strict";var o=i(27795),n=i(65946),s=i(93640),r=i(29434),a=i(5266),l=i(67447),c=i.n(l);a.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},r.Icon.set("table",c()),a.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup(t,e,i,r){t.editor.normalize();let a=t.history.snapshot.make(),l=r.control,c=l.data&&l.data.rows?l.data.rows:10,u=l.data&&l.data.cols?l.data.cols:10,h=t.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!t.o.table.useExtraClassesOptions)return"";let e=[];if(l.data){let t=l.data.classList;Object.keys(t).forEach(i=>{e.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${i}" type="checkbox"/>${t[i]}</label>`)})}return e.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),d=h.querySelectorAll("span")[0],f=h.querySelectorAll("span")[1],p=h.querySelector(".jodit-form__container"),m=h.querySelector(".jodit-form__options"),g=[],_=c*u;for(let e=0;e<_;e+=1)g[e]||g.push(t.c.element("span",{dataIndex:e}));if(t.e.on(p,"mousemove",(t,e)=>{let i=t.target;if(!o.Dom.isTag(i,"span"))return;let n=void 0===e||isNaN(e)?parseInt((0,s.attr)(i,"-index")||"0",10):e||0,r=Math.ceil((n+1)/u),a=n%u+1;for(let t=0;t<g.length;t+=1)a>=t%u+1&&r>=Math.ceil((t+1)/u)?g[t].className="jodit_hovered":g[t].className="";f.textContent=a.toString(),d.textContent=r.toString()}).on(p,"touchstart mousedown",e=>{let r=e.target;if(e.preventDefault(),e.stopImmediatePropagation(),!o.Dom.isTag(r,"span"))return;let l=parseInt((0,s.attr)(r,"-index")||"0",10),c=Math.ceil((l+1)/u),h=l%u+1,d=t.createInside,f=d.element("tbody"),p=d.element("table");p.appendChild(f);let g=null,_,v;for(let t=1;c>=t;t+=1){_=d.element("tr");for(let t=1;t<=h;t+=1)v=d.element("td"),g||(g=v),(0,n.css)(v,"width",(100/h).toFixed(4)+"%"),v.appendChild(d.element("br")),_.appendChild(d.text(`
186
+ }`,o.document.head.appendChild(e),o.focus(),o.print()}},mode:o.MODE_SOURCE+o.MODE_WYSIWYG,tooltip:"Print"},s.pluginSystem.add("print",function(t){t.registerButton({name:"print"})})},41324:function(e){"use strict";e.exports=t},41360:function(t,e,i){"use strict";i.d(e,{nonenumerable:function(){return o}});let o=(t,e)=>{!1!==(Object.getOwnPropertyDescriptor(t,e)||{}).enumerable&&Object.defineProperty(t,e,{enumerable:!1,set(t){Object.defineProperty(this,e,{enumerable:!1,writable:!0,value:t})}})}},42259:function(t,e,i){"use strict";i.d(e,{cursorInTheEdgeOfString:function(){return r},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return s.moveNodeInsideStart}});var o=i(81937),n=i(23211),s=i(89817);function r(t,e,i,n){let s=t.nodeValue?.length?t.nodeValue:"";if(n&&s.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>e)return!0;let r=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(s);return i&&(r&&r[0].length<e||!r&&e>0)}function a(t,e,i,o,s,r){if((t=e.startContainer.childNodes[e.startOffset])||(t=e.startContainer.childNodes[e.startOffset-1],i=!0),t&&o&&!n.Dom.isText(t)){if(!i&&n.Dom.isText(t.previousSibling))t=t.previousSibling;else if(s){let e=r(t);for(;e;){if(e&&n.Dom.isText(e)){t=e;break}e=r(e)}}}if(t&&!o&&!n.Dom.isText(t)){let e=t,i=t;do e=e.firstChild,i=i.lastChild;while(e&&i&&!n.Dom.isText(e))e===i&&e&&n.Dom.isText(e)&&(t=e)}return{node:t,rightMode:i}}i(7470)},42360:function(t,e,i){"use strict";var o=i(27795),n=i(29434),s=i(5266),r=i(67176),a=i.n(r),l=i(14017),c=i.n(l),u=i(11917);n.Icon.set("indent",a()).set("outdent",c()),s.Config.prototype.controls.indent={tooltip:"Increase Indent"},s.Config.prototype.controls.outdent={isDisabled(t){let e=t.s.current();if(e){let i=o.Dom.closest(e,o.Dom.isBlock,t.editor);if(i){let e=(0,u.getKey)(t.o.direction,i);return!i.style[e]||0>=parseInt(i.style[e],10)}}return!0},tooltip:"Decrease Indent"},s.Config.prototype.indentMargin=10},42462:function(t,e,i){"use strict";var o=i(28077),n=i(65946);i(8071),o.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let e=(e,i,o)=>{let s=(0,n.normalizeColor)(o);switch(e){case"background":t.s.commitStyle({attributes:{style:{backgroundColor:s||""}}});break;case"forecolor":t.s.commitStyle({attributes:{style:{color:s||""}}})}return t.synchronizeValues(),!1};t.registerCommand("forecolor",e).registerCommand("background",e)})},42573:function(t,e,i){"use strict";i.d(e,{ToolbarCollection:function(){return c}});var o=i(25045),n=i(31635),s=i(84839),r=i(38027),a=i(4099),l=i(4274);class c extends a.UIList{className(){return"ToolbarCollection"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,e=null){return(0,l.makeButton)(this.j,t,e)}makeSelect(t,e=null){return(0,l.makeSelect)(this.j,t,e)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,r.error)("The method is not implemented for this class.")}build(t,e=null){let i=this.j.e.fire("beforeToolbarBuild",t);return i&&(t=i),super.build(t,e),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(t){super(t),(0,o._)(this,"__listenEvents","updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur")}}(0,n.__decorate)([s.autobind],c.prototype,"__immediateUpdate",null),(0,n.__decorate)([(0,s.debounce)(t=>t.j.defaultTimeout,!0)],c.prototype,"update",null),(0,n.__decorate)([(0,s.hook)("ready")],c.prototype,"__initEvents",null),c=(0,n.__decorate)([s.component],c)},42766:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(28077),a=i(65946),l=i(60936);i(10685);let c="addnewline";class u extends l.Plugin{__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}onLock(t){t&&this.__isShown&&this.__hideForce()}__hide(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(t){t.o.addNewLine&&(t.e.on(this.__line,"mousemove",t=>{t.stopPropagation()}).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",()=>{this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!0}).on(this.__line,"mouseleave",()=>{this.__lineInFocus=!1}).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}__addEventListeners(){let t=this.j;t.e.off(t.editor,"."+c).off(t.container,"."+c).off("."+c).on([t.ow,t.ew,t.editor],"scroll."+c,this.__hideForce).on("finishedCleanHTMLWorker."+c,this.__hideForce).on(t.editor,"click."+c,this.__hide).on(t.container,"mouseleave."+c,this.__hide).on(t.editor,"mousemove."+c,this.__onMouseMove)}onDblClickEditor(t){let e=this.j;if(!e.o.readonly&&e.o.addNewLineOnDBLClick&&t.target===e.editor&&e.s.isCollapsed()){let i=(0,a.offset)(e.editor,e,e.ed),o=t.pageY-e.ew.scrollX,n=e.createInside.element(e.o.enter);Math.abs(o-i.top)<Math.abs(o-(i.height+i.top))&&e.editor.firstChild?e.editor.insertBefore(n,e.editor.firstChild):e.editor.appendChild(n),e.s.setCursorIn(n),e.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__onMouseMove(t){let e=this.j,i=e.ed.elementFromPoint(t.clientX,t.clientY);if(!l.Dom.isHTMLElement(i)||!l.Dom.isOrContains(e.editor,i))return;if(e.editor===i||this.__isMatchedTag(i)||(i=l.Dom.closest(i,this.__isMatchedTag,e.editor)),!i)return void this.__hide();if(this.__isMatchedTag(i)){let t=l.Dom.up(i,l.Dom.isBlock,e.editor);t&&t!==e.editor&&(i=t)}let o=(0,a.position)(i,this.j),n=!1,{clientY:s,clientX:r}=t;if(this.j.iframe){let{top:t,left:e}=(0,a.position)(this.j.iframe,this.j,!0);s+=t,r+=e}let c=this.j.o.addNewLineDeltaShow;Math.abs(s-o.top)<=c?(n=o.top,this.__isBeforeContent=!0):Math.abs(s-(o.top+o.height))<=c&&(n=o.top+o.height,this.__isBeforeContent=!1);let u=e.editor===i;!1===n||(!u||this.__isBeforeContent)&&(u||(0,a.call)(this.__isBeforeContent?l.Dom.prev:l.Dom.next,i,this.__canGetFocus,e.editor))?(this.__current=!1,this.__hide()):(this.__line.style.top=n+"px",this.__current=i,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",r-o.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),l.Dom.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+c).off(this.j.container,"."+c).off("."+c)}constructor(...t){super(...t),(0,o._)(this,"__line",this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${l.Icon.get("enter")}</span></div>`)),(0,o._)(this,"__isMatchedTag",t=>!!(t&&this.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase()))),(0,o._)(this,"__timeout",void 0),(0,o._)(this,"__isBeforeContent",!1),(0,o._)(this,"__current",void 0),(0,o._)(this,"__lineInFocus",!1),(0,o._)(this,"__isShown",!1),(0,o._)(this,"__hideForce",()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,l.Dom.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))}),(0,o._)(this,"__canGetFocus",t=>null!=t&&l.Dom.isBlock(t)&&!/^(img|table|iframe|hr)$/i.test(t.nodeName)),(0,o._)(this,"__onClickLine",t=>{let e=this.j,i=e.createInside.element(e.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===e.editor?l.Dom.prepend(e.editor,i):this.__current.parentNode.insertBefore(i,this.__current):e.editor.appendChild(i),e.s.setCursorIn(i),(0,a.scrollIntoViewIfNeeded)(i,e.editor,e.ed),e.synchronizeValues(),this.__hideForce(),t.preventDefault()})}}(0,n.__decorate)([(0,s.watch)(":lock")],u.prototype,"onLock",null),(0,n.__decorate)([s.autobind],u.prototype,"__hide",null),(0,n.__decorate)([(0,s.watch)(":dblclick")],u.prototype,"onDblClickEditor",null),(0,n.__decorate)([(0,s.throttle)(t=>t.defaultTimeout)],u.prototype,"__onMouseMove",null),r.pluginSystem.add("addNewLine",u)},42820:function(t,e,i){"use strict";i.d(e,{LimitedStack:function(){return n}});var o=i(25045);class n{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){(0,o._)(this,"limit",void 0),(0,o._)(this,"stack",void 0),this.limit=t,this.stack=[]}}},43102:function(t,e,i){"use strict";var o,n=i(25045),s=i(31635),r=i(84839),a=i(27795),l=i(28077),c=i(65946),u=i(91206);i(65701);var h=((o=h||{})[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING",o);class d extends u.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,c.splitArray)(this.j.o.draggableTags).filter(Boolean).map(t=>t.toLowerCase()):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>0)return;let e=t.target;if(!this.dragList.length||!e)return;let i=t=>!!(t&&this.dragList.includes(t.nodeName.toLowerCase())),o=a.Dom.furthest(e,i,this.j.editor)||(i(e)?e:null);o&&(a.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,c.ctrlKey)(t),this.draggable=o.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",o),this.state=1,this.addDragListeners())}onDrag(t){if(!this.draggable||0===this.state)return;let e=t.clientX,i=t.clientY;if(!(1===this.state&&Math.sqrt(Math.pow(e-this.startX,2)+Math.pow(i-this.startY,2))<this.diffStep)){if(1===this.state&&(this.j.lock("drag-and-drop-element"),this.state=2),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let e=(0,c.dataBind)(this.draggable,"target");(0,c.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:e?.offsetWidth??100,height:e?.offsetHeight??100}),(0,l.getContainer)(this.j,d).appendChild(this.draggable)}(0,c.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=0,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<2)return void this.onDragEnd();let t=(0,c.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));let{parentElement:e}=t;this.j.s.insertNode(t,!0,!1),e&&a.Dom.isEmpty(e)&&!a.Dom.isCell(e)&&a.Dom.safeRemove(e),a.Dom.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}constructor(...t){super(...t),(0,n._)(this,"dragList",[]),(0,n._)(this,"draggable",null),(0,n._)(this,"isCopyMode",!1),(0,n._)(this,"diffStep",10),(0,n._)(this,"startX",0),(0,n._)(this,"startY",0),(0,n._)(this,"state",0)}}(0,s.__decorate)([r.autobind],d.prototype,"onDragStart",null),(0,s.__decorate)([(0,r.throttle)(t=>t.defaultTimeout/10)],d.prototype,"onDrag",null),(0,s.__decorate)([r.autobind],d.prototype,"onDragEnd",null),(0,s.__decorate)([r.autobind],d.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",d)},43218:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>'},43271:function(t,e,i){"use strict";i.d(e,{ImageEditor:function(){return m},openImageEditor:function(){return g}});var o=i(25045),n=i(31635),s=i(16964),r=i(84839),a=i(27795),l=i(65946),c=i(59400),u=i(5266);i(54500);var h=i(8908);let d="jodit-image-editor",f="resize",p="crop";class m extends s.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(t,e){return this.j.async.promise(i=>{let o=new Date().getTime();this.image=this.j.c.element("img"),(0,l.$$)("img,.jodit-icon_loader",this.resize_box).forEach(a.Dom.safeRemove),(0,l.$$)("img,.jodit-icon_loader",this.crop_box).forEach(a.Dom.safeRemove),(0,l.css)(this.cropHandler,"background","transparent"),this.onSave=e,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(t)?t+="&_tst="+o:t+="?_tst="+o,this.image.setAttribute("src",t),this._dialog.open();let{widthInput:n,heightInput:s}=(0,l.refs)(this.editor),r=()=>{this.isDestructed||(this.image.removeEventListener("load",r),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,n.value=this.naturalWidth.toString(),s.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),a.Dom.safeRemove.apply(null,(0,l.$$)(".jodit-icon_loader",this.editor)),this.activeTab===p&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),i(this._dialog))};this.image.addEventListener("load",r),this.image.complete&&r()})}onTitleModeClick(t){let e=t.target,i=e?.parentElement;if(!i)return;(0,l.$$)(`.${d}__slider,.${d}__area`,this.editor).forEach(t=>t.classList.remove(`${d}_active`)),i.classList.add(`${d}_active`),this.activeTab=(0,l.attr)(i,"-area")||f;let o=this.editor.querySelector(`.${d}__area.${d}__area_`+this.activeTab);o&&o.classList.add(`${d}_active`),this.activeTab===p&&this.showCrop()}onChangeSizeInput(t){let e,i=t.target,{widthInput:o,heightInput:n}=(0,l.refs)(this.editor),s="widthInput"===(0,l.attr)(i,"data-ref"),r=parseInt(i.value,10),a=s?this.o.min_width:this.o.min_height,c=s?this.o.min_height:this.o.min_width;r>a&&((0,l.css)(this.image,s?"width":"height",r),this.resizeUseRatio&&(e=s?Math.round(r/this.ratio):Math.round(r*this.ratio))>c&&((0,l.css)(this.image,s?"height":"width",e),s?n.value=e.toString():o.value=e.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){this.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),this.clicked=!0,this.start_x=t.clientX,this.start_y=t.clientY,this.activeTab===p?(this.top_x=(0,l.css)(this.cropHandler,"left"),this.top_y=(0,l.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(t){this.clicked&&(this.clicked=!1,t.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(t){if(!this.clicked)return;let{widthInput:e,heightInput:i}=(0,l.refs)(this.editor);this.diff_x=t.clientX-this.start_x,this.diff_y=t.clientY-this.start_y,this.activeTab===f&&this.resizeUseRatio||this.activeTab===p&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===f?(this.new_w>this.o.resizeMinWidth&&((0,l.css)(this.image,"width",this.new_w+"px"),e.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,l.css)(this.image,"height",this.new_h+"px"),i.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,l.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,l.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,l.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),a.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+d).off("."+d),super.destruct())}constructor(t){super(t),(0,o._)(this,"options",void 0),(0,o._)(this,"onSave",void 0),(0,o._)(this,"resizeUseRatio",!0),(0,o._)(this,"cropUseRatio",!0),(0,o._)(this,"_dialog",void 0),(0,o._)(this,"image",void 0),(0,o._)(this,"cropImage",void 0),(0,o._)(this,"clicked",!1),(0,o._)(this,"target",void 0),(0,o._)(this,"start_x",0),(0,o._)(this,"start_y",0),(0,o._)(this,"top_x",0),(0,o._)(this,"top_y",0),(0,o._)(this,"width",0),(0,o._)(this,"height",0),(0,o._)(this,"activeTab",f),(0,o._)(this,"naturalWidth",0),(0,o._)(this,"naturalHeight",0),(0,o._)(this,"ratio",0),(0,o._)(this,"new_h",0),(0,o._)(this,"new_w",0),(0,o._)(this,"diff_x",0),(0,o._)(this,"diff_y",0),(0,o._)(this,"buttons",void 0),(0,o._)(this,"editor",void 0),(0,o._)(this,"resize_box",void 0),(0,o._)(this,"crop_box",void 0),(0,o._)(this,"sizes",void 0),(0,o._)(this,"resizeHandler",void 0),(0,o._)(this,"cropHandler",void 0),(0,o._)(this,"cropBox",{x:0,y:0,w:0,h:0}),(0,o._)(this,"resizeBox",{w:0,h:0}),(0,o._)(this,"calcCropBox",()=>{let t=this.crop_box.parentNode,e=.8*t.offsetWidth,i=.8*t.offsetHeight,o=e,n=i,{naturalWidth:s,naturalHeight:r}=this;e>s&&i>r?(o=s,n=r):this.ratio>e/i?(o=e,n=e/s*r):(o=i/r*s,n=i),(0,l.css)(this.crop_box,{width:o,height:n})}),(0,o._)(this,"showCrop",()=>{if(!this.cropImage)return;this.calcCropBox();let t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=m.calcValueByPercent(t,this.o.cropDefaultWidth);let e=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=m.calcValueByPercent(e,this.o.cropDefaultHeight),(0,l.css)(this.cropHandler,{backgroundImage:"url("+(0,l.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:e/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")}),(0,o._)(this,"updateCropBox",()=>{if(!this.cropImage)return;let t=this.cropImage.offsetWidth/this.naturalWidth,e=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,l.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,l.css)(this.cropHandler,"top")/e,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/e,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)}),(0,o._)(this,"updateResizeBox",()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight}),(0,o._)(this,"setHandlers",()=>{let t=this,{widthInput:e,heightInput:i}=(0,l.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],"mousedown."+d,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+d,()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")}),t.j.e.on((0,l.toArray)(this.editor.querySelectorAll(`.${d}__slider-title`)),"click",this.onTitleModeClick).on([e,i],"input",this.onChangeSizeInput);let{keepAspectRatioResize:o,keepAspectRatioCrop:n}=(0,l.refs)(this.editor);o&&o.addEventListener("change",()=>{this.resizeUseRatio=o.checked}),n&&n.addEventListener("change",()=>{this.cropUseRatio=n.checked}),t.j.e.on(t.resizeHandler,"updatesize",()=>{(0,l.css)(t.resizeHandler,{top:0,left:0,width:t.image.offsetWidth||t.naturalWidth,height:t.image.offsetHeight||t.naturalHeight}),this.updateResizeBox()}).on(t.cropHandler,"updatesize",()=>{if(!t.cropImage)return;let e=(0,l.css)(t.cropHandler,"left"),i=(0,l.css)(t.cropHandler,"top"),o=t.cropHandler.offsetWidth,n=t.cropHandler.offsetHeight;e<0&&(e=0),i<0&&(i=0),e+o>t.cropImage.offsetWidth&&(o=t.cropImage.offsetWidth-e,t.cropUseRatio&&(n=o/t.ratio)),i+n>t.cropImage.offsetHeight&&(n=t.cropImage.offsetHeight-i,t.cropUseRatio&&(o=n*t.ratio)),(0,l.css)(t.cropHandler,{width:o,height:n,left:e,top:i,backgroundPosition:-e-1+"px "+(-i-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()}),Object.values(t.buttons).forEach(o=>{o.onAction(()=>{let n={action:t.activeTab,box:t.activeTab===f?t.resizeBox:t.cropBox};switch(o){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",e=>{if(!(0,l.trim)(e))return t.j.alert("The name should not be empty"),!1;t.onSave(e,n,t.hide,e=>{t.j.alert(e.message)})});break;case t.buttons.save:t.onSave(void 0,n,t.hide,e=>{t.j.alert(e.message)});break;case t.buttons.reset:t.activeTab===f?((0,l.css)(t.image,{width:null,height:null}),e.value=t.naturalWidth.toString(),i.value=t.naturalHeight.toString(),t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}})})}),this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:u.Config.defaultOptions.imageeditor;const e=this.options;this.resizeUseRatio=e.resizeUseRatio,this.cropUseRatio=e.cropUseRatio,this.buttons={reset:(0,c.Button)(this.j,"update","Reset"),save:(0,c.Button)(this.j,"save","Save"),saveas:(0,c.Button)(this.j,"save","Save as ...")},this.activeTab=e.resize?f:p,this.editor=(0,h.form)(this.j,this.options);const{resizeBox:i,cropBox:n}=(0,l.refs)(this.editor);this.resize_box=i,this.crop_box=n,this.sizes=this.editor.querySelector(`.${d}__area.${d}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${d}__resizer`),this.cropHandler=this.editor.querySelector(`.${d}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}}function g(t,e,i,o,n,s){return this.getInstance("ImageEditor",this.o).open(t,(t,r,a,c)=>(0,l.call)("resize"===r.action?this.dataProvider.resize:this.dataProvider.crop,i,o,e,t,r.box).then(t=>{t&&(a(),n&&n())}).catch(t=>{c(t),s&&s(t)}))}(0,o._)(m,"calcValueByPercent",(t,e)=>{let i,o=e.toString(),n=parseFloat(t.toString());return(i=/^[-+]?[0-9]+(px)?$/.exec(o))?parseInt(o,10):(i=/^([-+]?[0-9.]+)%$/.exec(o))?Math.round(n*(parseFloat(i[1])/100)):n||0}),(0,n.__decorate)([r.autobind],m.prototype,"hide",null),(0,n.__decorate)([r.autobind],m.prototype,"open",null),(0,n.__decorate)([r.autobind],m.prototype,"onTitleModeClick",null),(0,n.__decorate)([(0,r.debounce)(),r.autobind],m.prototype,"onChangeSizeInput",null),(0,n.__decorate)([r.autobind],m.prototype,"onResizeHandleMouseDown",null),(0,n.__decorate)([r.autobind],m.prototype,"onGlobalMouseUp",null),(0,n.__decorate)([(0,r.throttle)(10)],m.prototype,"onGlobalMouseMove",null),m=(0,n.__decorate)([r.component],m)},43354:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(51676),r=i(28077),a=i(65946);i(81008);class l{init(t){this.buttons?.forEach(e=>t.registerButton(e)),t.e.off(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`).on(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`,e=>{let i=t.s.html,o=(0,a.getDataTransfer)(e)||(0,a.getDataTransfer)(t.ew)||(0,a.getDataTransfer)(e.originalEvent);o&&(o.setData(n.TEXT_PLAIN,(0,a.stripTags)(i)),o.setData(n.TEXT_HTML,i)),t.buffer.set(n.CLIPBOARD_ID,i),t.e.fire("pasteStack",{html:i,action:t.o.defaultActionOnPaste||n.INSERT_AS_HTML}),"cut"===e.type&&(t.s.remove(),t.s.focus()),e.preventDefault(),t?.events?.fire("afterCopy",i)})}destruct(t){(0,s.cached)(t,"buffer")?.set(n.CLIPBOARD_ID,""),t?.events?.off("."+n.CLIPBOARD_ID)}constructor(){(0,o._)(this,"jodit",void 0),(0,o._)(this,"buttons",[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}])}}r.pluginSystem.add("clipboard",l)},43379:function(t,e,i){"use strict";i.d(e,{reset:function(){return a}});var o=i(81937),n=i(91565),s=i(89308);let r={};function a(t){if(!(t in r)){let e=o.globalDocument.createElement("iframe");try{if(e.src="about:blank",o.globalDocument.body.appendChild(e),!e.contentWindow)return null;let i=(0,s.get)(t,e.contentWindow),a=(0,s.get)(t.split(".").slice(0,-1).join("."),e.contentWindow);(0,n.isFunction)(i)&&(r[t]=i.bind(a))}catch(t){if(!o.IS_PROD)throw t}finally{e.parentNode?.removeChild(e)}}return r[t]??null}},44322:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(28077),a=i(72412),l=i(80991),c=i(18855);i(80202);class u extends c.Plugin{afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__initialize()}__initialize(){let{j:t}=this;if(t.o.inline)return;let{height:e}=t.o;if(t.o.saveHeightInStorage&&"auto"!==e){let i=t.storage.get("height");i&&(e=i)}(0,l.css)(t.editor,{minHeight:"100%"}),(0,l.css)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(e),this.__setWidth(t.o.width))}__setHeight(t){let{clientHeight:e,clientWidth:i}=this.j.container;if((0,a.isNumber)(t)){let{minHeight:e,maxHeight:i}=this.j.o;(0,a.isNumber)(e)&&e>t&&(t=e),(0,a.isNumber)(i)&&i<t&&(t=i)}(0,l.css)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd({clientHeight:e,clientWidth:i})}__setWidth(t){let{clientHeight:e,clientWidth:i}=this.j.container;if((0,a.isNumber)(t)){let{minWidth:e,maxWidth:i}=this.j.o;(0,a.isNumber)(e)&&e>t&&(t=e),(0,a.isNumber)(i)&&t>i&&(t=i)}(0,l.css)(this.j.container,"width",t),this.__resizeWorkspaceImd({clientHeight:e,clientWidth:i})}__getNotWorkHeight(){return(this.j.toolbarContainer?.offsetHeight||0)+(this.j.statusbar?.getHeight()||0)+2}__resizeWorkspaceImd({clientHeight:t,clientWidth:e}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,l.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,a.isNumber)(i)&&i>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,l.css)(t,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,a.isNumber)(this.j.o.maxHeight)){let t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,l.css)(e,"maxHeight",t)}),this.j.e.fire("setMaxHeight",t)}if(this.j.container){let t="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,l.css)(this.j.workplace,"height",t),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,a.isNumber)(t)?t+"px":t)}let{clientHeight:o,clientWidth:n}=this.j.container;(t!==o||e!==n)&&this.j.e.fire(this.j,"resize")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(...t){super(...t),(0,o._)(this,"__resizeWorkspaces",this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0))}}(0,n.__decorate)([(0,s.throttle)()],u.prototype,"__initialize",null),(0,n.__decorate)([s.autobind],u.prototype,"__setHeight",null),(0,n.__decorate)([s.autobind],u.prototype,"__setWidth",null),(0,n.__decorate)([s.autobind],u.prototype,"__resizeWorkspaceImd",null),r.pluginSystem.add("size",u)},44599:function(t,e,i){"use strict";i.r(e),i.d(e,{en:function(){return o},es:function(){return n}});var o=i(17918),n=i(41324)},44636:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>'},44998:function(t,e,i){"use strict";i.d(e,{isLicense:function(){return n}});var o=i(85932);let n=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},45062:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>'},45219:function(t,e,i){"use strict";i.d(e,{visitNodeWalker:function(){return r}});var o=i(81937),n=i(91560);let s=Object.keys(n);function r(t,e,i,r,a){let l=!1,c=t.o.cleanHTML.disableCleanFilter;for(let u of s)if(!(c&&c.has(u))&&(l=(0,n[u])(t,e,l,i,r,a),o.IS_PROD,!e.isConnected))return!0;return l}},45244:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>'},45512:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>'},45664:function(t,e,i){"use strict";i.d(e,{asArray:function(){return o.asArray},splitArray:function(){return n.splitArray},toArray:function(){return s.toArray}});var o=i(78982),n=i(32328),s=i(88475)},45674:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg>'},45778:function(t,e,i){"use strict";i.d(e,{formTemplate:function(){return s}});var o=i(59400),n=i(5658);let s=t=>{let{openInNewTabCheckbox:e,noFollowCheckbox:i,modeClassName:s,selectSizeClassName:r,selectMultipleClassName:a,selectOptionsClassName:l}=t.o.link;return new n.UIForm(t,[new n.UIBlock(t,[new n.UIInput(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new n.UIBlock(t,[new n.UIInput(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),s?new n.UIBlock(t,["input"===s?new n.UIInput(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===s?new n.UISelect(t,{name:"className",ref:"className_select",label:"Class name",size:r,multiple:a,options:l}):null]):null,e?new n.UICheckbox(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new n.UICheckbox(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new n.UIBlock(t,[new o.UIButton(t,{name:"unlink",variant:"default",text:"Unlink"}),new o.UIButton(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},45844:function(t,e,i){"use strict";i.d(e,{TextAreaEditor:function(){return a}});var o=i(25045),n=i(23211),s=i(80991),r=i(94193);class a extends r.SourceEditor{init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===t.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),t.e.on(this.instance,"mousedown keydown touchstart input",t.async.debounce(this.toWYSIWYG,t.defaultTimeout)).on("setMinHeight.source",t=>{(0,s.css)(this.instance,"minHeight",t)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",e=>{t.e.fire(e.type,e)}),this.autosize(),this.onReady()}destruct(){n.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){let e=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),o=this.getSelectionEnd();this.setValue(e.substring(0,i)+t+e.substring(o,e.length))}else this.setValue(e+t)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,e=t){this.instance.setSelectionRange(t,e)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){this.instance.setAttribute("placeholder",t)}setReadOnly(t){t?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){let{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",e=>{if((e.ctrlKey||e.metaKey)&&"z"===e.key)return e.shiftKey?t.redo():t.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(...t){super(...t),(0,o._)(this,"autosize",this.j.async.debounce(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout))}}},46248:function(t,e,i){"use strict";i.d(e,{isHTML:function(){return n}});var o=i(85932);let n=t=>(0,o.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},46303:function(t,e,i){"use strict";i.d(e,{splitFragment:function(){return r}});var o=i(23211),n=i(60898),s=i(65710);function r(t,e,i){let r=e.s,{enter:a}=e.o,l=a.toLowerCase(),c=o.Dom.isLeaf(i),u=i.tagName.toLowerCase()===l||c,h=r.cursorOnTheRight(i,t),d=r.cursorOnTheLeft(i,t);if(!u&&(h||d)){h?o.Dom.after(i,t):o.Dom.before(i,t),(0,s.insertParagraph)(t,e,l),d&&!h&&o.Dom.prepend(i,t);return}let f=r.splitSelection(i,t);(0,n.scrollIntoViewIfNeeded)(f,e.editor,e.ed)}},46363:function(t,e,i){"use strict";i.d(e,{Snapshot:function(){return a}});var o=i(25045),n=i(16964),s=i(81937),r=i(23211);class a extends n.ViewComponent{className(){return"Snapshot"}static equal(t,e){return t.html===e.html&&JSON.stringify(t.range)===JSON.stringify(e.range)}static countNodesBeforeInParent(t){if(!t.parentNode)return 0;let e=t.parentNode.childNodes,i=0,o=null;for(let n=0;n<e.length;n+=1){if(!o||this.isIgnoredNode(e[n])||r.Dom.isText(o)&&r.Dom.isText(e[n])||(i+=1),e[n]===t)return i;o=e[n]}return 0}static strokeOffset(t,e){for(;r.Dom.isText(t);)t=t.previousSibling,r.Dom.isText(t)&&t.nodeValue&&(e+=t.nodeValue.length);return e}calcHierarchyLadder(t){let e=[];if(!t||!t.parentNode||!r.Dom.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!a.isIgnoredNode(t)&&e.push(a.countNodesBeforeInParent(t)),t=t.parentNode;return e.reverse()}getElementByLadder(t){let e=this.j.editor,i;for(i=0;e&&i<t.length;i+=1)e=e.childNodes[t[i]];return e}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0),this.__levelOfTransaction+=1;try{t()}catch(t){if(!s.IS_PROD)throw t}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.__getCleanedEditorValue(this.j.editor);let e=this.j.s.sel;if(e&&e.rangeCount){let i=e.getRangeAt(0),o=this.calcHierarchyLadder(i.startContainer),n=this.calcHierarchyLadder(i.endContainer),s=a.strokeOffset(i.startContainer,i.startOffset),r=a.strokeOffset(i.endContainer,i.endOffset);o.length||i.startContainer===this.j.editor||(s=0),n.length||i.endContainer===this.j.editor||(r=0),t.range={startContainer:o,startOffset:s,endContainer:n,endOffset:r}}return t}restore(t){this.transaction(()=>{let e=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(e)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){let{j:e}=this,{ow:i}=e;i.scrollTo(i.scrollX,t[0]),e.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){let e=this.j.ed.createRange();e.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),e.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(e)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),s.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return r.Dom.isText(t)&&!t.nodeValue||r.Dom.isTemporary(t)}__getCleanedEditorValue(t){let e=t.cloneNode(!0);return r.Dom.temporaryList(e).forEach(r.Dom.unwrap),e.innerHTML}constructor(...t){super(...t),(0,o._)(this,"__isBlocked",!1),(0,o._)(this,"__levelOfTransaction",0)}}},46533:function(t,e,i){"use strict";i.d(e,{sendFiles:function(){return s}});var o=i(65946),n=i(77911);function s(t,e,i,s,r){if(!e)return Promise.reject((0,o.error)("Need files"));let{o:a}=t,l=(0,o.toArray)(e);if(!l.length)return Promise.reject((0,o.error)("Need files"));let c=[];if(a.insertImageAsBase64URI&&function(t,e,i,n,s,r){let a,l;for(l=0;l<t.length;l+=1)if((a=t[l])&&a.type){let c=a.type.match(/\/([a-z0-9]+)/i),u=c[1]?c[1].toLowerCase():"";if(!e.includes(u))continue;let h=new FileReader;i.push(n.j.async.promise((t,e)=>{h.onerror=e,h.onloadend=()=>{let e={baseurl:"",files:[h.result],isImages:[!0]};((0,o.isFunction)(s)?s:r).call(n,e),t(e)},h.readAsDataURL(a)})),t[l]=null}}(l,a.imagesExtensions,c,t,i,a.defaultHandlerSuccess),(l=l.filter(t=>t)).length){let e,u=new FormData;u.append(a.pathVariableName,t.path),u.append("source",t.source);for(let i=0;i<l.length;i+=1)if(e=l[i]){let o=/\.\w+$/.test(e.name),n=e.type.match(/\/([a-z0-9]+)/i),s=n&&n[1]?n[1].toLowerCase():"",r=l[i].name||Math.random().toString().replace(".","");if(!o&&s){let t=s;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(r)||(r+="."+s)}let[c,h,d]=a.processFileName.call(t,a.filesVariableName(i),l[i],r);u.append(c,h,d)}r&&r(u),a.data&&(0,o.isPlainObject)(a.data)&&Object.keys(a.data).forEach(t=>{u.append(t,a.data[t])}),a.prepareData.call(t,u),c.push((0,n.send)(t,u).then(e=>(a.isSuccess.call(t,e)?((0,o.isFunction)(i)?i:a.defaultHandlerSuccess).call(t,a.process.call(t,e)):((0,o.isFunction)(s)?s:a.defaultHandlerError).call(t,(0,o.error)(a.getMessage.call(t,e))),e)).then(()=>{t.j.events&&t.j.e.fire("filesWereUploaded")}))}return Promise.all(c)}},47670:function(t,e,i){"use strict";i(5266).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},47744:function(t,e,i){"use strict";i.d(e,{readValuesFromImage:function(){return l}});var o=i(7909),n=i(26633),s=i(79310),r=i(18380),a=i(57339);async function l(t,e){let{sourceImage:i,values:l}=e;return(0,n.readAlign)(i,l),l.borderRadius=parseInt(i.style.borderRadius||"0",10)||0,l.id=(0,o.attr)(i,"id")||"",l.imageTitle=(0,o.attr)(i,"title")||"",l.imageAlt=(0,o.attr)(i,"alt")||"",l.style=(0,o.attr)(i,"style")||"",l.classes=((0,o.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,r.readMargins)(i,l,e),(0,s.readLink)(e,t,l),l.imageSrc=(0,o.attr)(i,"src")||"",(0,a.readSizes)(i,l,e)}},47760:function(t,e,i){"use strict";i.d(e,{alreadyLoadedList:function(){return s},appendScriptAsync:function(){return a},appendStyleAsync:function(){return l},loadNext:function(){return function t(e,i,n=0){return(0,o.isString)(i[n])?a(e,i[n]).then(()=>t(e,i,n+1)):Promise.resolve()}},loadNextStyle:function(){return function t(e,i,n=0){return(0,o.isString)(i[n])?l(e,i[n]).then(()=>t(e,i,n+1)):Promise.resolve()}}});var o=i(85932),n=i(91321);let s=new Map,r=t=>(e,i)=>{if(s.has(i))return s.get(i);let o=t(e,i);return s.set(i,o),o},a=r((t,e)=>t.async.promise((i,o)=>{if(t.isInDestruct)return o();let s=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,n.completeUrl)(e)});t.e.one(s,"error",o).one(s,"load",i),t.od.body.appendChild(s)})),l=r((t,e)=>t.async.promise((i,o)=>{if(t.isInDestruct)return o();let s=t.c.element("link");s.rel="stylesheet",s.media="all",s.crossOrigin="anonymous",t.isInDestruct||t.e.on(s,"load",()=>i(s)).on(s,"error",o),s.href=(0,n.completeUrl)(e),t.o.shadowRoot?t.o.shadowRoot.appendChild(s):t.od.body.appendChild(s)}))},47919:function(t,e,i){"use strict";i.d(e,{moveCursorOutFromSpecialTags:function(){return n}});var o=i(23211);function n(t,e,i){let{s:n}=t,s=o.Dom.closest(e,i,t.editor);s&&(n.cursorOnTheRight(s,e)?o.Dom.after(s,e):n.cursorOnTheLeft(s,e)&&o.Dom.before(s,e))}},48007:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>'},48009:function(t,e,i){"use strict";i.d(e,{normalizeUrl:function(){return o}});let o=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},48155:function(t,e,i){"use strict";i.d(e,{safeHTML:function(){return s},sanitizeHTMLElement:function(){return r}});var o=i(23211),n=i(93640);function s(t,e){(o.Dom.isElement(t)||o.Dom.isFragment(t))&&(e.removeOnError&&(r(t),(0,n.$$)("[onerror]",t).forEach(t=>r(t,e))),e.safeJavaScriptLink&&(r(t),(0,n.$$)('a[href^="javascript"]',t).forEach(t=>r(t,e))))}function r(t,{safeJavaScriptLink:e,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let s=!1;i&&t.hasAttribute("onerror")&&((0,n.attr)(t,"onerror",null),s=!0);let a=t.getAttribute("href");return e&&a&&0===a.trim().indexOf("javascript")&&((0,n.attr)(t,"href",location.protocol+"//"+a),s=!0),s}},48290:function(t,e,i){"use strict";var o=i(27795),n=i(65946),s=i(93640),r=i(29434),a=i(5266),l=i(67447),c=i.n(l);a.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},r.Icon.set("table",c()),a.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup(t,e,i,r){t.editor.normalize();let a=t.history.snapshot.make(),l=r.control,c=l.data&&l.data.rows?l.data.rows:10,u=l.data&&l.data.cols?l.data.cols:10,h=t.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!t.o.table.useExtraClassesOptions)return"";let e=[];if(l.data){let t=l.data.classList;Object.keys(t).forEach(i=>{e.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${i}" type="checkbox"/>${t[i]}</label>`)})}return e.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),d=h.querySelectorAll("span")[0],f=h.querySelectorAll("span")[1],p=h.querySelector(".jodit-form__container"),m=h.querySelector(".jodit-form__options"),g=[],_=c*u;for(let e=0;e<_;e+=1)g[e]||g.push(t.c.element("span",{dataIndex:e}));if(t.e.on(p,"mousemove",(t,e)=>{let i=t.target;if(!o.Dom.isTag(i,"span"))return;let n=void 0===e||isNaN(e)?parseInt((0,s.attr)(i,"-index")||"0",10):e||0,r=Math.ceil((n+1)/u),a=n%u+1;for(let t=0;t<g.length;t+=1)a>=t%u+1&&r>=Math.ceil((t+1)/u)?g[t].className="jodit_hovered":g[t].className="";f.textContent=a.toString(),d.textContent=r.toString()}).on(p,"touchstart mousedown",e=>{let r=e.target;if(e.preventDefault(),e.stopImmediatePropagation(),!o.Dom.isTag(r,"span"))return;let l=parseInt((0,s.attr)(r,"-index")||"0",10),c=Math.ceil((l+1)/u),h=l%u+1,d=t.createInside,f=d.element("tbody"),p=d.element("table");p.appendChild(f);let g=null,_,v;for(let t=1;c>=t;t+=1){_=d.element("tr");for(let t=1;t<=h;t+=1)v=d.element("td"),g||(g=v),(0,n.css)(v,"width",(100/h).toFixed(4)+"%"),v.appendChild(d.element("br")),_.appendChild(d.text(`
187
187
  `)),_.appendChild(d.text(" ")),_.appendChild(v);f.appendChild(d.text(`
188
188
  `)),f.appendChild(_)}(0,n.$$)("input[type=checkbox]:checked",m).forEach(t=>{t.value.split(/[\s]+/).forEach(t=>{p.classList.add(t)})}),t.s.restore(),t.s.removeMarkers(),t.editor.normalize(),t.history.snapshot.restore(a);let b=o.Dom.furthest(t.s.current(),o.Dom.isBlock,t.editor);if(b&&o.Dom.isEmpty(b))o.Dom.replace(b,p,void 0,!1,!0);else if(b){let e=d.text(`
189
- `);if(t.o.table.splitBlockOnInsertTable){let i=t.s.range;i.collapse(!1),i.insertNode(e),i.collapse(!1),t.s.selectRange(i);let n=t.s.splitSelection(b,e);o.Dom.after(n,p)}else o.Dom.after(b,e),o.Dom.after(e,p)}else t.s.insertNode(p,!1);g&&(t.s.setCursorIn(g),(0,n.scrollIntoViewIfNeeded)(g,t.editor,t.ed)),i()}),r&&r.parentElement){for(let e=0;e<c;e+=1){let i=t.c.div();for(let t=0;t<u;t+=1)i.appendChild(g[e*u+t]);p.appendChild(i)}g[0]&&(g[0].className="hovered")}return h},tooltip:"Insert table"}},48729:function(t,e,i){"use strict";i.d(e,{FiniteStateMachine:function(){return a}});var o=i(25045),n=i(81937),s=i(85932),r=i(28712);class a{setState(t){(0,r.assert)(!this.__previewsStates.has(t),"Circled states"),this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(t,e){let i=this.transitions[this.getState()][t];if(i){let t=i.call(this,e);return(0,r.assert)(t&&t!==e,"Action should return new value"),(0,r.assert)((0,s.isString)(t.next),"Value should contain the next state"),(0,r.assert)(t.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(t.next),!n.IS_PROD&&!this.silent,t}throw Error(`invalid action: ${this.getState()}.${t.toString()}`)}constructor(t,e){(0,o._)(this,"transitions",void 0),(0,o._)(this,"__state",void 0),(0,o._)(this,"silent",void 0),(0,o._)(this,"__previewsStates",void 0),this.transitions=e,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}}},48776:function(t,e,i){"use strict";i.r(e),i.d(e,{required:function(){return s},url:function(){return r}});var o=i(91764),n=i(4040);let s=function(t){return!!(0,n.trim)(t.value).length||(t.error="Please fill out this field",!1)},r=function(t){return!!(0,o.isURL)((0,n.trim)(t.value))||(t.error="Please enter a web address",!1)}},48838:function(t,e,i){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}i.d(e,{nl2br:function(){return o}})},48842:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>'},48899:function(t,e,i){"use strict";var o=i(65946),n=i(59400),s=i(5658),r=i(29434),a=i(5266),l=i(15753),c=i(36339),u=i.n(c);a.Config.prototype.video={parseUrlToVideoEmbed:o.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},r.Icon.set("video",u()),a.Config.prototype.controls.video={popup(t,e,i){let r=new s.UIForm(t,[new s.UIBlock(t,[new s.UIInput(t,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new s.UIBlock(t,[(0,n.Button)(t,"","Insert","primary").onAction(()=>r.submit())])]),a=new s.UIForm(t,[new s.UIBlock(t,[new s.UITextArea(t,{name:"code",required:!0,label:"Embed code"})]),new s.UIBlock(t,[(0,n.Button)(t,"","Insert","primary").onAction(()=>a.submit())])]),c=[],u=e=>{t.s.restore(),t.s.insertHTML(e),i()};return t.s.save(),c.push({icon:"link",name:"Link",content:r.container},{icon:"source",name:"Code",content:a.container}),r.onSubmit(e=>{u((0,o.call)(t.o.video?.parseUrlToVideoEmbed??o.convertMediaUrlToVideoEmbed,e.url,{width:t.o.video?.defaultWidth,height:t.o.video?.defaultHeight}))}),a.onSubmit(t=>{u(t.code)}),(0,l.TabsWidget)(t,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},49147:function(t,e,i){"use strict";i.d(e,{applySize:function(){return a}});var o=i(70222),n=i(7909),s=i(80991),r=i(10808);function a(t,e,i,a){if(e!==t.offsetWidth||i!==t.offsetHeight){let l=e?(0,r.normalSizeToString)(e):null,c=i?(0,r.normalSizeToString)(i):null;(0,s.css)(t,{width:l,height:l&&a?null:c}),(0,n.attr)(t,"width",l&&(0,o.isNumeric)(e)&&(0,n.attr)(t,"width")?l:null),(!(0,n.attr)(t,"width")||a)&&(c=null),(0,n.attr)(t,"height",c)}}},49385:function(t,e,i){"use strict";i.d(e,{cns:function(){return o},markDeprecated:function(){return n}});let o=console;function n(t,e=[""],i=null){return(...n)=>(o.warn(`Method "${e[0]}" deprecated.`+(e[1]?` Use "${e[1]}" instead`:"")),t.call(i,...n))}},49422:function(t,e,i){"use strict";i.d(e,{applyLink:function(){return s}});var o=i(23211),n=i(7909);function s(t,e,i,s){let r=o.Dom.closest(e,"a",t.editor);i?(r||(r=o.Dom.wrap(e,"a",t.createInside)),(0,n.attr)(r,"href",i),(0,n.attr)(r,"target",s?"_blank":null)):r&&r.parentNode&&r.parentNode.replaceChild(e,r)}},49574:function(t,e,i){"use strict";i.d(e,{autobind:function(){return n}});var o=i(91565);function n(t,e,i){if(!(0,o.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${e}" is not a function`);let n=i.value;return{configurable:!0,get(){let t=n.bind(this);return Object.defineProperty(this,e,{value:t,configurable:!0,writable:!0}),t}}}},49663:function(t,e,i){"use strict";i.d(e,{normalizeLicense:function(){return o}});let o=(t,e=8)=>{let i=[];for(;t.length;)i.push(t.substr(0,e)),t=t.substr(e);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}},49690:function(t,e,i){"use strict";var o=i(81937),n=i(28077),s=i(57075);i(5266).Config.prototype.controls.preview={icon:"eye",command:"preview",mode:o.MODE_SOURCE+o.MODE_WYSIWYG,tooltip:"Preview"},n.pluginSystem.add("preview",function(t){t.registerButton({name:"preview"}),t.registerCommand("preview",(e,i,o)=>{let n=t.dlg();n.setSize(1024,600).open("",t.i18n("Preview")).setModal(!0);let[,r]=(0,s.previewBox)(t,o,"px",n.getElm("content"));n.e.on(n,"afterClose",r)})})},49764:function(t,e,i){"use strict";var o=i(23211),n=i(28077),s=i(5266),r=i(15753);s.Config.prototype.controls.file={popup(t,e,i){let n=(e,i="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${e}" title="${i}">${i||e}</a>`))},s=null;return e&&(o.Dom.isTag(e,"a")||o.Dom.closest(e,"a",t.editor))&&(s=o.Dom.isTag(e,"a")?e:o.Dom.closest(e,"a",t.editor)),(0,r.FileSelectorWidget)(t,{filebrowser(t){t.files&&t.files.forEach(e=>n(t.baseurl+e)),i()},upload:!0,url(t,e){s?(s.setAttribute("href",t),s.setAttribute("title",e)):n(t,e),i()}},s,i,!1)},tags:["a"],tooltip:"Insert file"},n.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},49972:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>'},49983:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>'},49989:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg>'},49999:function(t,e,i){"use strict";i.d(e,{UISelect:function(){return c}});var o=i(25045),n=i(31635),s=i(91672),r=i(7909),a=i(65273),l=i(81488);class c extends a.UIInput{className(){return"UISelect"}createContainer(t){let e=super.createContainer(t),{j:i}=this,{nativeInput:o}=this,n=()=>i.create.element("option");if(void 0!==t.placeholder){let e=n();e.value="",e.text=i.i18n(t.placeholder),o.add(e)}return t.options?.forEach(t=>{let e=n();e.value=t.value.toString(),e.text=i.i18n(t.text),o.add(e)}),t.size&&t.size>0&&(0,r.attr)(o,"size",t.size),t.multiple&&(0,r.attr)(o,"multiple",""),e}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(l.inputValidators.required),this.validators.add(l.selectValidators.required))}constructor(t,e){super(t,e),(0,o._)(this,"state",{...c.defaultState}),Object.assign(this.state,e)}}(0,o._)(c,"defaultState",{...a.UIInput.defaultState,options:[],size:1,multiple:!1}),c=(0,n.__decorate)([s.component],c)},50083:function(t,e,i){"use strict";function o(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}i.d(e,{isValidName:function(){return o}})},50294:function(t,e,i){"use strict";var o=i(28077),n=i(65946);i(7433),o.pluginSystem.add("font",function(t){t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let e=(e,i,o)=>{switch(e){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,n.normalizeSize)(o,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:o}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",e).registerCommand("fontname",e)})},50662:function(t,e,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(28077),a=i(91206);i(82147);class l extends a.Plugin{afterInit(t){let{limitWords:e,limitChars:i}=t.o;if(t&&(e||i)){let e=null;t.e.off(".limit").on("beforePaste.limit",()=>{e=t.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&e)return t.history.snapshot.restore(e),t.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(t){return!(t&&(n.COMMAND_KEYS.includes(t.key)||t.ctrlKey||t.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(t){var e,i;let{jodit:o}=this,{limitWords:n,limitChars:s}=o.o,r=o.o.limitHTML?o.value:o.text,a=this.__splitWords(r);if(n&&(e=a.length,t?e>n:e>=n))return o.e.fire("denyWords.limit limit.limit"),!0;let l=!!(s&&(i=a.join("").length,t?i>s:i>=s));return l&&o.e.fire("denyChars.limit limit.limit"),l}checkPreventKeyPressOrPaste(t){if(this.shouldPreventInsertHTML(t))return!1}checkPreventChanging(t,e){let{jodit:i}=this;this.__shouldDenyInput(!0)&&(i.value=e)}__splitWords(t){return t.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(t=>t.length)}beforeDestruct(t){t.e.off(".limit")}}(0,o.__decorate)([s.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,o.__decorate)([s.autobind],l.prototype,"checkPreventChanging",null),r.pluginSystem.add("limit",l)},50982:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(28077),r=i(65946),a=i(91206);i(14907);class l extends a.Plugin{afterInit(t){(0,r.keys)(t.o.commandToHotkeys,!1).forEach(e=>{let i=t.o.commandToHotkeys[e];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&t.registerHotkeyToCommand(i,e)});let e=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",t=>{if(t.key===n.KEY_ESC)return this.j.e.fire("escape",t)}).on("keydown.hotkeys",i=>{let o=this.onKeyPress(i),n={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",i.type,n))if(n.shouldStop)return e=!0,t.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(e)return e=!1,t.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}constructor(...t){super(...t),(0,o._)(this,"onKeyPress",t=>{let e=this.specialKeys[t.which],i=(t.key||String.fromCharCode(t.which)).toLowerCase(),o=[e||i];return["alt","ctrl","shift","meta"].forEach(i=>{t[i+"Key"]&&e!==i&&o.push(i)}),(0,r.normalizeKeyAliases)(o.join("+"))}),(0,o._)(this,"specialKeys",{8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"})}}s.pluginSystem.add("hotkeys",l)},51034:function(t,e,i){"use strict";i(5266).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},51116:function(t,e,i){"use strict";i.d(e,{Popup:function(){return p}});var o=i(25045),n=i(31635),s=i(80251),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(28712),h=i(96007),d=i(63468);let f=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"];class p extends d.UIGroup{className(){return"Popup"}appendChildToContainer(t){let e=this.getElm("content");(0,u.assert)(e,"Content element should exist"),e.appendChild(t)}updateParentElement(t){return t!==this&&s.Component.isInstanceOf(t,p)&&(this.__childrenPopups.forEach(e=>{!t.closest(e)&&e.isOpened&&e.close()}),this.__childrenPopups.has(t)||this.j.e.on(t,"beforeClose",()=>{this.__childrenPopups.delete(t)}),this.__childrenPopups.add(t)),super.updateParentElement(t)}setContent(t){if(this.allChildren.length)throw Error("Remove children");if(s.Component.isInstanceOf(t,h.UIElement))this.append(t);else{let e=(0,c.isString)(t)?this.j.c.fromHTML(t):t;this.appendChildToContainer(e)}return this.updatePosition(),this}open(t,e=!1,i){if((0,c.markOwner)(this.jodit,this.container),this.container.classList.add("jodit_theme_"+this.jodit.o.theme),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=e?this.getKeepBound(t):t,i)i.appendChild(this.container);else{let t=(0,l.getContainer)(this.jodit,p);i!==this.container.parentElement&&t.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}__calculateZIndex(){if(this.container.style.zIndex)return;let t=t=>{let e=t.container.style.zIndex||t.o.zIndex;return!!e&&(this.setZIndex(1+parseInt(e.toString(),10)),!0)},{j:e}=this;if(t(e))return;let i=this.parentElement;for(;i;){if(t(i.j))return;if(i.container.style.zIndex)return void this.setZIndex(1+parseInt(i.container.style.zIndex.toString(),10));if(!i.parentElement&&i.container.parentElement){let t=h.UIElement.closestElement(i.container.parentElement,h.UIElement);if(t){i=t;continue}}i=i.parentElement}}getKeepBound(t){let e=t(),i=this.od.elementFromPoint(e.left,e.top);if(!i)return t;let o=a.Dom.isHTMLElement(i)?i:i.parentElement,n=(0,c.position)(o,this.j);return()=>{let e=t(),i=(0,c.position)(o,this.j);return{...e,top:e.top+(i.top-n.top),left:e.left+(i.left-n.left)}}}updatePosition(){if(!this.isOpened)return this;let[t,e]=this.__calculatePosition(this.__targetBound(),this.viewBound(),(0,c.position)(this.container,this.j));return this.setMod("strategy",e),(0,c.css)(this.container,{left:t.left,top:t.top}),this.__childrenPopups.forEach(t=>t.updatePosition()),this}__throttleUpdatePosition(){this.updatePosition()}__calculatePosition(t,e,i,o=this.strategy){let n={left:t.left,right:t.left-(i.width-t.width)},s={bottom:t.top+t.height,top:t.top-i.height},r=Object.keys(n).reduce((t,e)=>t.concat(Object.keys(s).map(t=>`${e}${(0,c.ucfirst)(t)}`)),[]),a=t=>{let[e,o]=(0,c.kebabCase)(t).split("-");return{left:n[e],top:s[o],width:i.width,height:i.height}},l=t=>p.boxInView(a(o),t)?o:r.find(e=>{if(p.boxInView(a(e),t))return e})||null,u=l((0,c.position)(this.j.container,this.j));return u&&p.boxInView(a(u),e)||(u=l(e)||u||o),[a(u),u]}static boxInView(t,e){return t.top-e.top>=-2&&t.left-e.left>=-2&&e.top+e.height-(t.top+t.height)>=-2&&e.left+e.width-(t.left+t.width)>=-2}close(){return this.isOpened&&(this.isOpened=!1,this.__childrenPopups.forEach(t=>t.close()),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),a.Dom.safeRemove(this.container)),this}__closeOnOutsideClick(t){!this.isOpened||this.isOwnClick(t)||this.close()}isOwnClick(t){if(!t.target)return!1;let e=h.UIElement.closestElement(t.target,p);return!!(e&&(this===e||e.closest(this)))}__addGlobalListeners(){let t=this.__throttleUpdatePosition,e=this.ow;l.eventEmitter.on("closeAllPopups",this.close),this.smart&&this.j.e.on(f,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(e,"scroll",t).on(e,"resize",t),a.Dom.up(this.j.container,e=>{e&&this.j.e.on(e,"scroll mousewheel",t)})}__removeGlobalListeners(){let t=this.__throttleUpdatePosition,e=this.ow;l.eventEmitter.off("closeAllPopups",this.close),this.smart&&this.j.e.off(f,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(e,"scroll",t).off(e,"resize",t),this.j.container.isConnected&&a.Dom.up(this.j.container,e=>{e&&this.j.e.off(e,"scroll mousewheel",t)})}setZIndex(t){this.container.style.zIndex=t.toString()}render(){return`<div>
189
+ `);if(t.o.table.splitBlockOnInsertTable){let i=t.s.range;i.collapse(!1),i.insertNode(e),i.collapse(!1),t.s.selectRange(i);let n=t.s.splitSelection(b,e);n?o.Dom.after(n,p):o.Dom.after(b,p)}else o.Dom.after(b,e),o.Dom.after(e,p)}else t.s.insertNode(p,!1);g&&(t.s.setCursorIn(g),(0,n.scrollIntoViewIfNeeded)(g,t.editor,t.ed)),i()}),r&&r.parentElement){for(let e=0;e<c;e+=1){let i=t.c.div();for(let t=0;t<u;t+=1)i.appendChild(g[e*u+t]);p.appendChild(i)}g[0]&&(g[0].className="hovered")}return h},tooltip:"Insert table"}},48729:function(t,e,i){"use strict";i.d(e,{FiniteStateMachine:function(){return a}});var o=i(25045),n=i(81937),s=i(85932),r=i(28712);class a{setState(t){(0,r.assert)(!this.__previewsStates.has(t),"Circled states"),this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(t,e){let i=this.transitions[this.getState()][t];if(i){let t=i.call(this,e);return(0,r.assert)(t&&t!==e,"Action should return new value"),(0,r.assert)((0,s.isString)(t.next),"Value should contain the next state"),(0,r.assert)(t.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(t.next),n.IS_PROD||this.silent,t}throw Error(`invalid action: ${this.getState()}.${t.toString()}`)}constructor(t,e){(0,o._)(this,"transitions",void 0),(0,o._)(this,"__state",void 0),(0,o._)(this,"silent",void 0),(0,o._)(this,"__previewsStates",void 0),this.transitions=e,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}}},48776:function(t,e,i){"use strict";i.r(e),i.d(e,{required:function(){return s},url:function(){return r}});var o=i(91764),n=i(4040);let s=function(t){return!!(0,n.trim)(t.value).length||(t.error="Please fill out this field",!1)},r=function(t){return!!(0,o.isURL)((0,n.trim)(t.value))||(t.error="Please enter a web address",!1)}},48838:function(t,e,i){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}i.d(e,{nl2br:function(){return o}})},48842:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>'},48899:function(t,e,i){"use strict";var o=i(65946),n=i(59400),s=i(5658),r=i(29434),a=i(5266),l=i(15753),c=i(36339),u=i.n(c);a.Config.prototype.video={parseUrlToVideoEmbed:o.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},r.Icon.set("video",u()),a.Config.prototype.controls.video={popup(t,e,i){let r=new s.UIForm(t,[new s.UIBlock(t,[new s.UIInput(t,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new s.UIBlock(t,[(0,n.Button)(t,"","Insert","primary").onAction(()=>r.submit())])]),a=new s.UIForm(t,[new s.UIBlock(t,[new s.UITextArea(t,{name:"code",required:!0,label:"Embed code"})]),new s.UIBlock(t,[(0,n.Button)(t,"","Insert","primary").onAction(()=>a.submit())])]),c=[],u=e=>{t.s.restore(),t.s.insertHTML(e),i()};return t.s.save(),c.push({icon:"link",name:"Link",content:r.container},{icon:"source",name:"Code",content:a.container}),r.onSubmit(e=>{u((0,o.call)(t.o.video?.parseUrlToVideoEmbed??o.convertMediaUrlToVideoEmbed,e.url,{width:t.o.video?.defaultWidth,height:t.o.video?.defaultHeight}))}),a.onSubmit(t=>{u(t.code)}),(0,l.TabsWidget)(t,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},49147:function(t,e,i){"use strict";i.d(e,{applySize:function(){return a}});var o=i(70222),n=i(7909),s=i(80991),r=i(10808);function a(t,e,i,a){if(e!==t.offsetWidth||i!==t.offsetHeight){let l=e?(0,r.normalSizeToString)(e):null,c=i?(0,r.normalSizeToString)(i):null;(0,s.css)(t,{width:l,height:l&&a?null:c}),(0,n.attr)(t,"width",l&&(0,o.isNumeric)(e)&&(0,n.attr)(t,"width")?l:null),(!(0,n.attr)(t,"width")||a)&&(c=null),(0,n.attr)(t,"height",c)}}},49385:function(t,e,i){"use strict";i.d(e,{cns:function(){return o},markDeprecated:function(){return n}});let o=console;function n(t,e=[""],i=null){return(...n)=>(o.warn(`Method "${e[0]}" deprecated.`+(e[1]?` Use "${e[1]}" instead`:"")),t.call(i,...n))}},49422:function(t,e,i){"use strict";i.d(e,{applyLink:function(){return s}});var o=i(23211),n=i(7909);function s(t,e,i,s){let r=o.Dom.closest(e,"a",t.editor);i?(r||(r=o.Dom.wrap(e,"a",t.createInside)),(0,n.attr)(r,"href",i),(0,n.attr)(r,"target",s?"_blank":null)):r&&r.parentNode&&r.parentNode.replaceChild(e,r)}},49574:function(t,e,i){"use strict";i.d(e,{autobind:function(){return n}});var o=i(91565);function n(t,e,i){if(!(0,o.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${e}" is not a function`);let n=i.value;return{configurable:!0,get(){let t=n.bind(this);return Object.defineProperty(this,e,{value:t,configurable:!0,writable:!0}),t}}}},49663:function(t,e,i){"use strict";i.d(e,{normalizeLicense:function(){return o}});let o=(t,e=8)=>{let i=[];for(;t.length;)i.push(t.substr(0,e)),t=t.substr(e);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}},49690:function(t,e,i){"use strict";var o=i(81937),n=i(28077),s=i(57075);i(5266).Config.prototype.controls.preview={icon:"eye",command:"preview",mode:o.MODE_SOURCE+o.MODE_WYSIWYG,tooltip:"Preview"},n.pluginSystem.add("preview",function(t){t.registerButton({name:"preview"}),t.registerCommand("preview",(e,i,o)=>{let n=t.dlg();n.setSize(1024,600).open("",t.i18n("Preview")).setModal(!0);let[,r]=(0,s.previewBox)(t,o,"px",n.getElm("content"));n.e.on(n,"afterClose",r)})})},49764:function(t,e,i){"use strict";var o=i(23211),n=i(28077),s=i(5266),r=i(15753);s.Config.prototype.controls.file={popup(t,e,i){let n=(e,i="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${e}" title="${i}">${i||e}</a>`))},s=null;return e&&(o.Dom.isTag(e,"a")||o.Dom.closest(e,"a",t.editor))&&(s=o.Dom.isTag(e,"a")?e:o.Dom.closest(e,"a",t.editor)),(0,r.FileSelectorWidget)(t,{filebrowser(t){t.files&&t.files.forEach(e=>n(t.baseurl+e)),i()},upload:!0,url(t,e){s?(s.setAttribute("href",t),s.setAttribute("title",e)):n(t,e),i()}},s,i,!1)},tags:["a"],tooltip:"Insert file"},n.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},49972:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>'},49983:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>'},49989:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg>'},49999:function(t,e,i){"use strict";i.d(e,{UISelect:function(){return c}});var o=i(25045),n=i(31635),s=i(91672),r=i(7909),a=i(65273),l=i(81488);class c extends a.UIInput{className(){return"UISelect"}createContainer(t){let e=super.createContainer(t),{j:i}=this,{nativeInput:o}=this;if(void 0!==t.placeholder){let e=i.create.element("option");e.value="",e.text=i.i18n(t.placeholder),o.add(e)}return t.options?.forEach(t=>{let e=i.create.element("option");e.value=t.value.toString(),e.text=i.i18n(t.text),o.add(e)}),t.size&&t.size>0&&(0,r.attr)(o,"size",t.size),t.multiple&&(0,r.attr)(o,"multiple",""),e}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(l.inputValidators.required),this.validators.add(l.selectValidators.required))}constructor(t,e){super(t,e),(0,o._)(this,"state",{...c.defaultState}),Object.assign(this.state,e)}}(0,o._)(c,"defaultState",{...a.UIInput.defaultState,options:[],size:1,multiple:!1}),c=(0,n.__decorate)([s.component],c)},50083:function(t,e,i){"use strict";function o(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}i.d(e,{isValidName:function(){return o}})},50294:function(t,e,i){"use strict";var o=i(28077),n=i(65946);i(7433),o.pluginSystem.add("font",function(t){t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let e=(e,i,o)=>{switch(e){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,n.normalizeSize)(o,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:o}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",e).registerCommand("fontname",e)})},50662:function(t,e,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(28077),a=i(91206);i(82147);class l extends a.Plugin{afterInit(t){let{limitWords:e,limitChars:i}=t.o;if(t&&(e||i)){let e=null;t.e.off(".limit").on("beforePaste.limit",()=>{e=t.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&e)return t.history.snapshot.restore(e),t.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(t){return!(t&&(n.COMMAND_KEYS.includes(t.key)||t.ctrlKey||t.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(t){var e,i;let{jodit:o}=this,{limitWords:n,limitChars:s}=o.o,r=o.o.limitHTML?o.value:o.text,a=this.__splitWords(r);if(n&&(e=a.length,t?e>n:e>=n))return o.e.fire("denyWords.limit limit.limit"),!0;let l=!!(s&&(i=a.join("").length,t?i>s:i>=s));return l&&o.e.fire("denyChars.limit limit.limit"),l}checkPreventKeyPressOrPaste(t){if(this.shouldPreventInsertHTML(t))return!1}checkPreventChanging(t,e){let{jodit:i}=this;this.__shouldDenyInput(!0)&&(i.value=e)}__splitWords(t){return t.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(t=>t.length)}beforeDestruct(t){t.e.off(".limit")}}(0,o.__decorate)([s.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,o.__decorate)([s.autobind],l.prototype,"checkPreventChanging",null),r.pluginSystem.add("limit",l)},50982:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(28077),r=i(65946),a=i(91206);i(14907);class l extends a.Plugin{afterInit(t){(0,r.keys)(t.o.commandToHotkeys,!1).forEach(e=>{let i=t.o.commandToHotkeys[e];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&t.registerHotkeyToCommand(i,e)});let e=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",t=>{if(t.key===n.KEY_ESC)return this.j.e.fire("escape",t)}).on("keydown.hotkeys",i=>{let o=this.onKeyPress(i),n={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",i.type,n))if(n.shouldStop)return e=!0,t.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(e)return e=!1,t.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}constructor(...t){super(...t),(0,o._)(this,"onKeyPress",t=>{let e=this.specialKeys[t.which],i=(t.key||String.fromCharCode(t.which)).toLowerCase(),o=[e||i];return["alt","ctrl","shift","meta"].forEach(i=>{t[i+"Key"]&&e!==i&&o.push(i)}),(0,r.normalizeKeyAliases)(o.join("+"))}),(0,o._)(this,"specialKeys",{8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"})}}s.pluginSystem.add("hotkeys",l)},51034:function(t,e,i){"use strict";i(5266).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},51116:function(t,e,i){"use strict";i.d(e,{Popup:function(){return p}});var o=i(25045),n=i(31635),s=i(80251),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(28712),h=i(96007),d=i(63468);let f=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"];class p extends d.UIGroup{className(){return"Popup"}appendChildToContainer(t){let e=this.getElm("content");(0,u.assert)(e,"Content element should exist"),e.appendChild(t)}updateParentElement(t){return t!==this&&s.Component.isInstanceOf(t,p)&&(this.__childrenPopups.forEach(e=>{!t.closest(e)&&e.isOpened&&e.close()}),this.__childrenPopups.has(t)||this.j.e.on(t,"beforeClose",()=>{this.__childrenPopups.delete(t)}),this.__childrenPopups.add(t)),super.updateParentElement(t)}setContent(t){if(this.allChildren.length)throw Error("Remove children");if(s.Component.isInstanceOf(t,h.UIElement))this.append(t);else{let e=(0,c.isString)(t)?this.j.c.fromHTML(t):t;this.appendChildToContainer(e)}return this.updatePosition(),this}open(t,e=!1,i){if((0,c.markOwner)(this.jodit,this.container),this.container.classList.add("jodit_theme_"+this.jodit.o.theme),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=e?this.getKeepBound(t):t,i)i.appendChild(this.container);else{let t=(0,l.getContainer)(this.jodit,p);i!==this.container.parentElement&&t.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}__calculateZIndex(){if(this.container.style.zIndex)return;let t=t=>{let e=t.container.style.zIndex||t.o.zIndex;return!!e&&(this.setZIndex(1+parseInt(e.toString(),10)),!0)},{j:e}=this;if(t(e))return;let i=this.parentElement;for(;i;){if(t(i.j))return;if(i.container.style.zIndex)return void this.setZIndex(1+parseInt(i.container.style.zIndex.toString(),10));if(!i.parentElement&&i.container.parentElement){let t=h.UIElement.closestElement(i.container.parentElement,h.UIElement);if(t){i=t;continue}}i=i.parentElement}}getKeepBound(t){let e=t(),i=this.od.elementFromPoint(e.left,e.top);if(!i)return t;let o=a.Dom.isHTMLElement(i)?i:i.parentElement,n=(0,c.position)(o,this.j);return()=>{let e=t(),i=(0,c.position)(o,this.j);return{...e,top:e.top+(i.top-n.top),left:e.left+(i.left-n.left)}}}updatePosition(){if(!this.isOpened)return this;let[t,e]=this.__calculatePosition(this.__targetBound(),this.viewBound(),(0,c.position)(this.container,this.j));return this.setMod("strategy",e),(0,c.css)(this.container,{left:t.left,top:t.top}),this.__childrenPopups.forEach(t=>t.updatePosition()),this}__throttleUpdatePosition(){this.updatePosition()}__calculatePosition(t,e,i,o=this.strategy){let n={left:t.left,right:t.left-(i.width-t.width)},s={bottom:t.top+t.height,top:t.top-i.height},r=Object.keys(n).reduce((t,e)=>t.concat(Object.keys(s).map(t=>`${e}${(0,c.ucfirst)(t)}`)),[]),a=t=>{let[e,o]=(0,c.kebabCase)(t).split("-");return{left:n[e],top:s[o],width:i.width,height:i.height}},l=t=>p.boxInView(a(o),t)?o:r.find(e=>{if(p.boxInView(a(e),t))return e})||null,u=l((0,c.position)(this.j.container,this.j));return u&&p.boxInView(a(u),e)||(u=l(e)||u||o),[a(u),u]}static boxInView(t,e){return t.top-e.top>=-2&&t.left-e.left>=-2&&e.top+e.height-(t.top+t.height)>=-2&&e.left+e.width-(t.left+t.width)>=-2}close(){return this.isOpened&&(this.isOpened=!1,this.__childrenPopups.forEach(t=>t.close()),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),a.Dom.safeRemove(this.container)),this}__closeOnOutsideClick(t){!this.isOpened||this.isOwnClick(t)||this.close()}isOwnClick(t){if(!t.target)return!1;let e=h.UIElement.closestElement(t.target,p);return!!(e&&(this===e||e.closest(this)))}__addGlobalListeners(){let t=this.__throttleUpdatePosition,e=this.ow;l.eventEmitter.on("closeAllPopups",this.close),this.smart&&this.j.e.on(f,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(e,"scroll",t).on(e,"resize",t),a.Dom.up(this.j.container,e=>{e&&this.j.e.on(e,"scroll mousewheel",t)})}__removeGlobalListeners(){let t=this.__throttleUpdatePosition,e=this.ow;l.eventEmitter.off("closeAllPopups",this.close),this.smart&&this.j.e.off(f,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(e,"scroll",t).off(e,"resize",t),this.j.container.isConnected&&a.Dom.up(this.j.container,e=>{e&&this.j.e.off(e,"scroll mousewheel",t)})}setZIndex(t){this.container.style.zIndex=t.toString()}render(){return`<div>
190
190
  <div class="&__content"></div>
191
- </div>`}destruct(){return this.close(),super.destruct()}constructor(t,e=!0){super(t),(0,o._)(this,"smart",void 0),(0,o._)(this,"isOpened",void 0),(0,o._)(this,"strategy",void 0),(0,o._)(this,"viewBound",void 0),(0,o._)(this,"__targetBound",void 0),(0,o._)(this,"__childrenPopups",void 0),this.smart=e,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.__childrenPopups=new Set,(0,c.attr)(this.container,"role","popup")}}(0,n.__decorate)([r.autobind],p.prototype,"updatePosition",null),(0,n.__decorate)([(0,r.throttle)(10),r.autobind],p.prototype,"__throttleUpdatePosition",null),(0,n.__decorate)([r.autobind],p.prototype,"close",null),(0,n.__decorate)([r.autobind],p.prototype,"__closeOnOutsideClick",null)},51457:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>'},51640:function(t,e,i){"use strict";i.d(e,{FiniteStateMachine:function(){return n.FiniteStateMachine},elementsEqualAttributes:function(){return l.elementsEqualAttributes},extractSelectedPart:function(){return o.extractSelectedPart},getSuitChild:function(){return s.getSuitChild},getSuitParent:function(){return r.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},isSameAttributes:function(){return l.isSameAttributes},suitableClosest:function(){return c.suitableClosest},toggleAttributes:function(){return h.toggleAttributes},toggleOrderedList:function(){return u.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return f.wrap}});var o=i(17481),n=i(48729),s=i(10171),r=i(19549);i(9703);var a=i(39608);i(83653);var l=i(95971),c=i(73019),u=i(34582);i(97110);var h=i(82794),d=i(89081),f=i(73154);i(83335)},51676:function(t,e,i){"use strict";i.d(e,{cache:function(){return c},cacheHTML:function(){return u},cached:function(){return l}});var o=i(69364),n=i(81937),s=i(23211),r=i(28686),a=i(38027);function l(t,e){let i=Object.getOwnPropertyDescriptor(t,e);return!i||(0,r.isFunction)(i.get)?null:i.value}function c(t,e,i){let o=i.get;if(!o)throw(0,a.error)("Getter property descriptor expected");i.get=function(){n.IS_PROD||this.isInDestruct;let t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,e,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:t}),t}}function u(t,e,i){let n=i.value;if(!(0,r.isFunction)(n))throw(0,a.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...t){if(l&&c.has(this.constructor))return c.get(this.constructor)?.cloneNode(!0);let e=n.apply(this,t);return l&&s.Dom.isElement(e)&&c.set(this.constructor,e),l?e.cloneNode(!0):e},t.hookStatus(o.STATUSES.ready,t=>{l=!!((0,r.isViewObject)(t)?t:t.jodit).options.cache})}},51730:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.mediaFakeTag="jodit-media",o.Config.prototype.mediaInFakeBlock=!0,o.Config.prototype.mediaBlocks=["video","audio"]},51822:function(t,e,i){"use strict";i(5266).Config.prototype.tableAllowCellResize=!0},51957:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},52014:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(27795),r=i(28077),a=i(65946),l=i(91206),c=i(67399),u=i(4274);i(92063);class h extends l.Plugin{afterInit(){this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===n.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),this.appendSelectAll()))}),this.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),s.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(...t){super(...t),(0,o._)(this,"onContext",(t,e)=>(this.menu||(this.menu=new c.ContextMenu(this.j)),this.menu.show(e.clientX,e.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?s.Dom.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1)),(0,o._)(this,"onSelectPath",(t,e)=>{this.j.s.focus();let i=(0,a.attr)(e.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{let t=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch{}return this.j.s.select(t),!1}),(0,o._)(this,"tpl",(t,e,i,o)=>{let n=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${e}" title="${o}" tabindex="-1"'>${(0,a.trim)(i)}</a></span>`),s=n.firstChild;return this.j.e.on(s,"click",this.onSelectPath.bind(this,t)).on(s,"contextmenu",this.onContext.bind(this,t)),n}),(0,o._)(this,"selectAllButton",void 0),(0,o._)(this,"removeSelectAll",()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)}),(0,o._)(this,"appendSelectAll",()=>{this.removeSelectAll(),this.selectAllButton=(0,u.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)}),(0,o._)(this,"calcPathImd",()=>{if(this.isDestructed)return;let t=this.j.s.current();if(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),t){let e,i,o;s.Dom.up(t,t=>{t&&this.j.editor!==t&&!s.Dom.isText(t)&&!s.Dom.isComment(t)&&(e=t.nodeName.toLowerCase(),i=(0,a.getXPathByElement)(t,this.j.editor).replace(/^\//,""),o=this.tpl(t,i,e,this.j.i18n("Select %s",e)),this.container&&this.container.insertBefore(o,this.container.firstChild))},this.j.editor)}this.appendSelectAll()}),(0,o._)(this,"calcPath",this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)),(0,o._)(this,"container",void 0),(0,o._)(this,"menu",void 0)}}r.pluginSystem.add("xpath",h)},52100:function(t,e,i){"use strict";function o(t){return t&&"function"==typeof t.then}i.d(e,{isPromise:function(){return o}})},52144:function(t,e,i){"use strict";i.d(e,{set:function(){return a}});var o=i(17312),n=i(70222),s=i(62101),r=i(85932);function a(t,e,i){if(!(0,r.isString)(t)||!t.length)return;let a=t.split("."),l=i,c=a[0];for(let t=0;t<a.length-1;t+=1)c=a[t],(0,o.isArray)(l[c])||(0,s.isPlainObject)(l[c])||(l[c]=(0,n.isNumeric)(a[t+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=e)}},52433:function(t,e,i){"use strict";i.d(e,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return r}});var o=i(23211),n=i(91565),s=i(18303);function r(t){return!(0,s.isVoid)(t)&&(0,n.isFunction)(t.init)}function a(t){return!(0,s.isVoid)(t)&&(0,n.isFunction)(t.destruct)}function l(t){return!(0,s.isVoid)(t)&&o.Dom.isElement(t.container)}},52450:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>'},52938:function(t,e,i){"use strict";i.d(e,{wrapText:function(){return n}});var o=i(23211);function n(t,e){let i=t;o.Dom.up(i,t=>{t&&t.hasChildNodes()&&t!==e.editor&&(i=t)},e.editor);let n=o.Dom.wrapInline(i,e.o.enter,e);if(o.Dom.isEmpty(n)){let i=e.createInside.element("br");n.appendChild(i),o.Dom.before(i,t)}return n}},53202:function(t,e,i){"use strict";i.d(e,{loadTree:function(){return s}});var o=i(27795),n=i(1488);async function s(t){t.tree.setMod("active",!0),o.Dom.detach(t.tree.container);let e=(0,n.loadItems)(t);return t.o.showFoldersPanel?(t.tree.setMod("loading",!0),Promise.all([t.dataProvider.tree(t.state.currentPath,t.state.currentSource).then(e=>{t.state.sources=e}).catch(t.status).finally(()=>t.tree.setMod("loading",!1)),e])):(t.tree.setMod("active",!1),e)}},53328:function(t){t.exports='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg>'},53390:function(t,e,i){"use strict";var o=i(28077);i(96863),o.pluginSystem.add("formatBlock",function(t){t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",(e,i,o)=>(t.s.commitStyle({element:o}),t.synchronizeValues(),!1))})},53414:function(t){t.exports.default=["Type something","About Jodit","Jodit Editor","Jodit User's Guide","contains detailed help for using","For information about the license, please go to our website:","Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Anchor","Open in new tab","Open in fullsize","Clear Formatting","Fill color or set the text color","Redo","Undo","Bold","Italic","Insert Unordered List","Insert Ordered List","Align Center","Align Justify","Align Left","Align Right","Insert Horizontal Line","Insert Image","Insert file","Insert youtube/vimeo video","Insert link","Font size","Font family","Insert format block","Normal","Heading 1","Heading 2","Heading 3","Heading 4","Quote","Code","Insert","Insert table","Decrease Indent","Increase Indent","Select Special Character","Insert Special Character","Paint format","Change mode","Margins","top","right","bottom","left","Styles","Classes","Align","Right","Center","Left","--Not Set--","Src","Title","Alternative","Link","Open link in new tab","Image","file","Advanced","Image properties","Cancel","Ok","File Browser","Error on load list","Error on load folders","Are you sure?","Enter Directory name","Create directory","type name","Drop image","Drop file","or click","Alternative text","Upload","Browse","Background","Text","Top","Middle","Bottom","Insert column before","Insert column after","Insert row above","Insert row below","Delete table","Delete row","Delete column","Empty cell","Chars: %d","Words: %d","Strike through","Underline","superscript","subscript","Cut selection","Select all","Break","Search for","Replace with","Replace","Paste","Choose Content to Paste","source","bold","italic","brush","link","undo","redo","table","image","eraser","paragraph","fontsize","video","font","about","print","underline","strikethrough","indent","outdent","fullsize","shrink","hr","ul","ol","cut","selectall","Embed code","Open link","Edit link","No follow","Unlink","Update","pencil","Eye"," URL","Edit","Horizontal align","Filter","Sort by changed","Sort by name","Sort by size","Add folder","Reset","Save","Save as ...","Resize","Crop","Width","Height","Keep Aspect Ratio","Yes","No","Remove","Select","Select %s","Vertical align","Split","Merge","Add column","Add row","License: %s","Delete","Split vertical","Split horizontal","Border","Your code is similar to HTML. Keep as HTML?","Paste as HTML","Keep","Insert as Text","Insert only Text","You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!","palette","There are no files","Rename","Enter new name","preview","download","Paste from clipboard","Your browser doesn't support direct access to the clipboard.","Copy selection","copy","Border radius","Show all","Apply","Please fill out this field","Please enter a web address","Default","Circle","Dot","Quadrate","Find","Find Previous","Find Next","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected","Clean","Insert className","Press Alt for custom resizing","Line height","spellcheck","Speech Recognize","All"]},53514:function(t,e,i){"use strict";i.d(e,{removeInvTextNodes:function(){return s}});var o=i(81937),n=i(23211);function s(t,e,i,s,r,a){if(a===e||!n.Dom.isText(e)||null==e.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(e.nodeValue))return i;let l=n.Dom.furthest(a,n.Dom.isBlock,t.editor);return!l||n.Dom.isOrContains(l,e)?i:(e.nodeValue=e.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),e===a&&t.s.isCollapsed()&&t.s.setCursorAfter(e),e.nodeValue||n.Dom.safeRemove(e),!0)}},53681:function(t,e,i){"use strict";i.d(e,{Button:function(){return g},UIButton:function(){return m},UIButtonState:function(){return p}});var o=i(25045),n=i(31635),s=i(69364),r=i(84839),a=i(23211),l=i(91565),c=i(85932),u=i(93640),h=i(96007),d=i(97959),f=i(29434);let p=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});class m extends h.UIElement{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){let t=this.getElm("text");return(0,u.assert)(t,"Text element not found"),t}get icon(){let t=this.getElm("icon");return(0,u.assert)(t,"Icon element not found"),t}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,u.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,u.attr)(this.container,"role",this.state.role)}updateSize(){let t=this.closest(d.UIList);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,u.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,u.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,u.attr)(this.container,"data-ref",this.state.name),(0,u.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){this.get("j.o.useNativeTooltip")&&(0,u.attr)(this.container,"title",this.state.tooltip),(0,u.attr)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,u.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let t=this.get("j.o.textIcons");if(!0===t||(0,l.isFunction)(t)&&t(this.state.name))return;a.Dom.detach(this.icon);let e=f.Icon.makeIcon(this.j,this.state.icon);e&&this.icon.appendChild(e)}focus(){this.container.focus()}isFocused(){let{activeElement:t}=this.od;return!!(t&&a.Dom.isOrContains(this.container,t))}createContainer(){let t=this.componentName,e=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),i=this.j.c.span(t+"__icon"),o=this.j.c.span(t+"__text");return e.appendChild(i),e.appendChild(o),e}destruct(){return this.j.e.off(this.container),super.destruct()}onAction(t){return this.actionHandlers.push(t),this}__onActionFire(t){t.buffer={actionTrigger:this},this.actionHandlers.forEach(e=>e.call(this,t))}constructor(t,e){super(t),(0,o._)(this,"isButton",!0),(0,o._)(this,"state",p()),(0,o._)(this,"button",void 0),(0,o._)(this,"actionHandlers",[]),this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),e&&this.hookStatus(s.STATUSES.ready,()=>{this.setState(e)})}}function g(t,e,i,o){let n=new m(t);return n.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,c.isString)(e)?(n.state.icon.name=e,n.state.name=e,o&&(n.state.variant=o),i&&(n.state.text=i)):n.setState(e),n}(0,n.__decorate)([r.cache],m.prototype,"text",null),(0,n.__decorate)([r.cache],m.prototype,"icon",null),(0,n.__decorate)([(0,r.watch)("state.size",{immediately:!1})],m.prototype,"onChangeSize",null),(0,n.__decorate)([(0,r.watch)("state.type",{immediately:!1})],m.prototype,"onChangeType",null),(0,n.__decorate)([(0,r.watch)("state.role",{immediately:!1})],m.prototype,"onChangeRole",null),(0,n.__decorate)([(0,r.watch)("parentElement")],m.prototype,"updateSize",null),(0,n.__decorate)([(0,r.watch)("state.variant",{immediately:!1})],m.prototype,"onChangeStatus",null),(0,n.__decorate)([(0,r.watch)("state.text",{immediately:!1})],m.prototype,"onChangeText",null),(0,n.__decorate)([(0,r.watch)("state.text",{immediately:!1})],m.prototype,"onChangeTextSetMode",null),(0,n.__decorate)([(0,r.watch)("state.disabled")],m.prototype,"onChangeDisabled",null),(0,n.__decorate)([(0,r.watch)("state.activated")],m.prototype,"onChangeActivated",null),(0,n.__decorate)([(0,r.watch)("state.name",{immediately:!1})],m.prototype,"onChangeName",null),(0,n.__decorate)([(0,r.watch)("state.tooltip",{immediately:!1})],m.prototype,"onChangeTooltip",null),(0,n.__decorate)([(0,r.watch)("state.tabIndex",{immediately:!1})],m.prototype,"onChangeTabIndex",null),(0,n.__decorate)([(0,r.watch)("state.icon",{immediately:!1})],m.prototype,"onChangeIcon",null),(0,n.__decorate)([r.cacheHTML],m.prototype,"createContainer",null),(0,n.__decorate)([(0,r.watch)("button:click")],m.prototype,"__onActionFire",null),m=(0,n.__decorate)([r.component],m)},53808:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>'},53855:function(t,e,i){"use strict";i.d(e,{History:function(){return h}});var o=i(25045),n=i(31635),s=i(16964),r=i(84839),a=i(5266),l=i(8838),c=i(46363),u=i(33511);a.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class h extends s.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(t){this.__startValue=t}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){let e=this.snapshot.make();if(!c.Snapshot.equal(e,this.startValue)){let i=new l.Command(this.startValue,e,this,this.updateTick);if(t){let t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(i)}else this.__stack.push(i);this.startValue=e,this.fireChangeStack()}}fireChangeStack(){this.j&&!this.j.isInDestruct&&this.j.events?.fire("changeStack")}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(t,e=new u.Stack(t.o.history.maxHistoryLength),i=new c.Snapshot(t)){super(t),(0,o._)(this,"__startValue",void 0),(0,o._)(this,"__stack",void 0),(0,o._)(this,"snapshot",void 0),(0,o._)(this,"updateTick",0),this.__stack=e,this.snapshot=i,t.o.history.enable&&t.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),t.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(t.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(t=>t+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}(0,n.__decorate)([(0,r.debounce)()],h.prototype,"onChange",null)},54053:function(t,e,i){"use strict";i.d(e,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return n.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return s.removeFormatForSelection},visitNodeWalker:function(){return r.visitNodeWalker}});var o=i(5650),n=i(37431),s=i(70195),r=i(45219)},54308:function(t,e,i){"use strict";i.d(e,{askInsertTypeDialog:function(){return c},getAllTypes:function(){return l},pasteInsertHtml:function(){return a}});var o=i(81937),n=i(23211),s=i(28686),r=i(53681);function a(t,e,i){if(e.isInDestruct)return;t&&"drop"===t.type&&e.s.insertCursorAtPoint(t.clientX,t.clientY);let o=e.e.fire("beforePasteInsert",i);!(0,s.isVoid)(o)&&((0,s.isString)(o)||(0,s.isNumber)(o)||n.Dom.isNode(o))&&(i=o),(0,s.isString)(i)&&(i=function(t){let e=(t=t.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==e&&(t=t.substring(e+20));let i=t.search(/<!--EndFragment-->/i);return -1!==i&&(t=t.substring(0,i)),t}(i)),e.s.insertHTML(i)}function l(t){let e=t.types,i="";if((0,s.isArray)(e)||"[object DOMStringList]"===({}).toString.call(e))for(let t=0;t<e.length;t+=1)i+=e[t]+";";else i=(e||o.TEXT_PLAIN).toString()+";";return i}function c(t,e,i,o,n){if(!1===t.e.fire("beforeOpenPasteDialog",e,i,o,n))return;let s=t.confirm(`<div style="word-break: normal; white-space: normal">${t.i18n(e)}</div>`,t.i18n(i)),a=n.map(({text:e,value:i})=>(0,r.Button)(t,{text:e,name:e.toLowerCase(),tabIndex:0}).onAction(()=>{s.close(),o(i)}));s.e.one(s,"afterClose",()=>{t.s.isFocused()||t.s.focus()});let l=(0,r.Button)(t,{text:"Cancel",tabIndex:0}).onAction(()=>{s.close()});return s.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",t.e.fire("afterOpenPasteDialog",s,e,i,o,n),s}},54447:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o}});let o=(t,e)=>{let i=t=>parseInt(t,10),o=e.getComputedStyle(t);return t.offsetWidth-i(o.getPropertyValue("padding-left")||"0")-i(o.getPropertyValue("padding-right")||"0")}},54500:function(t,e,i){"use strict";var o=i(29434),n=i(5266),s=i(928),r=i.n(s),a=i(31230),l=i.n(a);n.Config.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},o.Icon.set("crop",r()).set("resize",l())},54522:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>'},54794:function(t,e,i){"use strict";i.d(e,{fastClone:function(){return r},isAtom:function(){return n},markAsAtomic:function(){return s}});var o=i(3347);function n(t){return t&&t.isAtom}function s(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function r(t){return JSON.parse((0,o.stringify)(t))}},55184:function(t,e,i){"use strict";i.d(e,{debounce:function(){return a},throttle:function(){return l}});var o=i(16964),n=i(28686),s=i(28712),r=i(33201);function a(t,e=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,n.isFunction)(c))throw(0,r.error)("Handler must be a Function");return a.hookStatus(o.STATUSES.ready,o=>{let{async:r}=o;(0,s.assert)(null!=r,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let a=(0,n.isFunction)(t)?t(o):t,c=(0,n.isNumber)(a)||(0,n.isPlainObject)(a)?a:o.defaultTimeout;Object.defineProperty(o,l,{configurable:!0,value:r[i](o[l].bind(o),c,e)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(t,e=!1){return a(t,e,"throttle")}},55376:function(t,e,i){"use strict";i.d(e,{FileBrowserTree:function(){return n}});var o=i(4099);class n extends o.UIGroup{className(){return"FileBrowserTree"}}},55810:function(t,e,i){"use strict";i.d(e,{init:function(){return a}});var o=i(81937),n=i(28077),s=i(28686),r=i(3050);function a(t,e,i,a,l,c){if((0,s.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(e,a),c.delete(e),a.hasStyle&&(0,r.loadStyle)(t,e).catch(t=>{o.IS_PROD}),a.styles&&((0,n.getContainer)(t,e,"style").innerHTML=a.styles)}},56490:function(t,e,i){"use strict";i.d(e,{Popup:function(){return o.Popup}});var o=i(51116)},56894:function(t,e,i){"use strict";var o=i(31635),n=i(68616),s=i(28077),r=i(91206);i(96722);var a=i(33915),l=i(14282);class c extends r.Plugin{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach(e=>{l[e](this.j,t)})}__onAfterInsertNode(t){Object.keys(a).forEach(e=>{a[e](this.j,t)})}}(0,o.__decorate)([(0,n.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),(0,o.__decorate)([(0,n.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),s.pluginSystem.add("dtd",c)},57075:function(t,e,i){"use strict";i.d(e,{previewBox:function(){return l}});var o=i(23211),n=i(85932),s=i(7909),r=i(80991),a=i(28723);function l(t,e,i="px",c=null){let u=[],h=function(t,e){let i=[];try{(0,a.$$)("img",t.editor).forEach(n=>{let r=[(0,s.attr)(n,"width"),(0,s.attr)(n,"height"),n.src];(0,s.attr)(n,{width:n.offsetWidth+e,height:n.offsetHeight+e});let a=t.createInside.a();t.ed.body.appendChild(a),a.href=n.src,n.src=a.href,o.Dom.safeRemove(a),i.push(()=>{n.src=r[2]??"",(0,s.attr)(n,{width:r[0]||null,height:r[1]||null})})})}catch(t){throw i.forEach(t=>t()),i.length=0,t}return i}(t,i);try{let a=t.e.fire("beforePreviewBox",e,i);if(null!=a)return a;let l=t.c.div("jodit__preview-box jodit-context");c&&c.appendChild(l),(0,r.css)(l,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let e=t.create.element("iframe");(0,r.css)(e,{minWidth:800,minHeight:600,border:0}),l.appendChild(e);let i=e.contentWindow;if(i&&(t.e.fire("generateDocumentStructure.iframe",i.document,t),l=i.document.body,"function"==typeof ResizeObserver)){let o=!1,n=i.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(n),e.style.height=`${n.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||s.observe(n)})},100)),r=()=>{o=!0,s.unobserve(n),s.disconnect(),t.e.off("beforeDestruct",r)};u.push(r),t.e.on("beforeDestruct",r)}}else(0,r.css)(l,{minWidth:1024,minHeight:600,border:0});let d=(e,i)=>{let r=(0,n.isString)(i)?t.c.div():i;(0,n.isString)(i)&&(r.innerHTML=i);for(let t=0;t<r.childNodes.length;t+=1){let i=r.childNodes[t];if(o.Dom.isElement(i)){let t=e.ownerDocument.createElement(i.nodeName);for(let e=0;e<i.attributes.length;e+=1)(0,s.attr)(t,i.attributes[e].nodeName,i.attributes[e].nodeValue);0===i.childNodes.length||o.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(t.textContent=i.textContent):i.innerHTML&&(t.innerHTML=i.innerHTML):d(t,i);try{e.appendChild(t)}catch{}}else try{e.appendChild(i.cloneNode(!0))}catch{}}};return d(l,h),t.e.fire("afterPreviewBox",l),[l,()=>{u.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},57339:function(t,e,i){"use strict";i.d(e,{readSizes:function(){return a}});var o=i(70222),n=i(7909),s=i(80991),r=i(10808);async function a(t,e,i){await t.decode();let a=(0,s.css)(t,"width",!0)||(0,n.attr)(t,"width")||!1,l=(0,s.css)(t,"height",!0)||(0,n.attr)(t,"height")||!1;e.imageWidth=!1!==a?(0,r.normalSizeFromString)(a):t.offsetWidth||t.naturalWidth,(0,o.isNumeric)(e.imageWidth)?e.imageHeight=!1!==l?(0,r.normalSizeFromString)(l):t.offsetHeight||t.naturalHeight:e.imageHeight=l||"";let{imageWidth:c,imageHeight:u}=e,h=parseFloat(c.toString());if(!(0,o.isNumeric)(c)||!(0,o.isNumeric)(u)){i.sizeIsLocked=!1;return}if(!1===l){e.imageHeight=Math.round(h/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(h-parseFloat(u.toString())*i.ratio)}},57626:function(t,e,i){"use strict";i.d(e,{fuzzySearchIndex:function(){return n}});var o=i(81937);function n(t,e,i=0,s=1){let r=0,a=0,l=-1,c=0,u=0;for(a=i;r<t.length&&a<e.length;)t[r].toLowerCase()===e[a].toLowerCase()?(r++,c++,u=0,-1===l&&(l=a)):r>0&&(u>=s&&e[a]!==o.INVISIBLE_SPACE?(r=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return r===t.length?[l,c]:[-1,0]}},57821:function(t,e,i){"use strict";i.d(e,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,e,i)=>i.toUpperCase())},58250:function(t,e,i){"use strict";i.d(e,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},58293:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.allowResizeX=!1,o.Config.prototype.allowResizeY=!0},58317:function(t,e,i){"use strict";i.d(e,{UISearch:function(){return u}});var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(27795),l=i(65946),c=i(4099);class u extends c.UIElement{className(){return"UISearch"}render(){return`<div>
191
+ </div>`}destruct(){return this.close(),super.destruct()}constructor(t,e=!0){super(t),(0,o._)(this,"smart",void 0),(0,o._)(this,"isOpened",void 0),(0,o._)(this,"strategy",void 0),(0,o._)(this,"viewBound",void 0),(0,o._)(this,"__targetBound",void 0),(0,o._)(this,"__childrenPopups",void 0),this.smart=e,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.__childrenPopups=new Set,(0,c.attr)(this.container,"role","popup")}}(0,n.__decorate)([r.autobind],p.prototype,"updatePosition",null),(0,n.__decorate)([(0,r.throttle)(10),r.autobind],p.prototype,"__throttleUpdatePosition",null),(0,n.__decorate)([r.autobind],p.prototype,"close",null),(0,n.__decorate)([r.autobind],p.prototype,"__closeOnOutsideClick",null)},51457:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg>'},51640:function(t,e,i){"use strict";i.d(e,{FiniteStateMachine:function(){return n.FiniteStateMachine},elementsEqualAttributes:function(){return l.elementsEqualAttributes},extractSelectedPart:function(){return o.extractSelectedPart},getSuitChild:function(){return s.getSuitChild},getSuitParent:function(){return r.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},isSameAttributes:function(){return l.isSameAttributes},suitableClosest:function(){return c.suitableClosest},toggleAttributes:function(){return h.toggleAttributes},toggleOrderedList:function(){return u.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return f.wrap}});var o=i(17481),n=i(48729),s=i(10171),r=i(19549);i(9703);var a=i(39608);i(83653);var l=i(95971),c=i(73019),u=i(34582);i(97110);var h=i(82794),d=i(89081),f=i(73154);i(83335)},51676:function(t,e,i){"use strict";i.d(e,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var o=i(69364),n=i(23211),s=i(28686),r=i(38027);function a(t,e){let i=Object.getOwnPropertyDescriptor(t,e);return!i||(0,s.isFunction)(i.get)?null:i.value}function l(t,e,i){let o=i.get;if(!o)throw(0,r.error)("Getter property descriptor expected");i.get=function(){let t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,e,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:t}),t}}function c(t,e,i){let a=i.value;if(!(0,s.isFunction)(a))throw(0,r.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...t){if(l&&c.has(this.constructor))return c.get(this.constructor)?.cloneNode(!0);let e=a.apply(this,t);return l&&n.Dom.isElement(e)&&c.set(this.constructor,e),l?e.cloneNode(!0):e},t.hookStatus(o.STATUSES.ready,t=>{l=!!((0,s.isViewObject)(t)?t:t.jodit).options.cache})}},51730:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.mediaFakeTag="jodit-media",o.Config.prototype.mediaInFakeBlock=!0,o.Config.prototype.mediaBlocks=["video","audio"]},51822:function(t,e,i){"use strict";i(5266).Config.prototype.tableAllowCellResize=!0},51957:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},52014:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(27795),r=i(28077),a=i(65946),l=i(91206),c=i(67399),u=i(4274);i(92063);class h extends l.Plugin{afterInit(){this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===n.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),this.appendSelectAll()))}),this.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),s.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(...t){super(...t),(0,o._)(this,"onContext",(t,e)=>(this.menu||(this.menu=new c.ContextMenu(this.j)),this.menu.show(e.clientX,e.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?s.Dom.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1)),(0,o._)(this,"onSelectPath",(t,e)=>{this.j.s.focus();let i=(0,a.attr)(e.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{let t=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch{}return this.j.s.select(t),!1}),(0,o._)(this,"tpl",(t,e,i,o)=>{let n=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${e}" title="${o}" tabindex="-1"'>${(0,a.trim)(i)}</a></span>`),s=n.firstChild;return this.j.e.on(s,"click",this.onSelectPath.bind(this,t)).on(s,"contextmenu",this.onContext.bind(this,t)),n}),(0,o._)(this,"selectAllButton",void 0),(0,o._)(this,"removeSelectAll",()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)}),(0,o._)(this,"appendSelectAll",()=>{this.removeSelectAll(),this.selectAllButton=(0,u.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)}),(0,o._)(this,"calcPathImd",()=>{if(this.isDestructed)return;let t=this.j.s.current();if(this.container&&(this.container.innerHTML=n.INVISIBLE_SPACE),t){let e,i,o;s.Dom.up(t,t=>{t&&this.j.editor!==t&&!s.Dom.isText(t)&&!s.Dom.isComment(t)&&(e=t.nodeName.toLowerCase(),i=(0,a.getXPathByElement)(t,this.j.editor).replace(/^\//,""),o=this.tpl(t,i,e,this.j.i18n("Select %s",e)),this.container&&this.container.insertBefore(o,this.container.firstChild))},this.j.editor)}this.appendSelectAll()}),(0,o._)(this,"calcPath",this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)),(0,o._)(this,"container",void 0),(0,o._)(this,"menu",void 0)}}r.pluginSystem.add("xpath",h)},52100:function(t,e,i){"use strict";function o(t){return t&&"function"==typeof t.then}i.d(e,{isPromise:function(){return o}})},52144:function(t,e,i){"use strict";i.d(e,{set:function(){return a}});var o=i(17312),n=i(70222),s=i(62101),r=i(85932);function a(t,e,i){if(!(0,r.isString)(t)||!t.length)return;let a=t.split("."),l=i,c=a[0];for(let t=0;t<a.length-1;t+=1)c=a[t],(0,o.isArray)(l[c])||(0,s.isPlainObject)(l[c])||(l[c]=(0,n.isNumeric)(a[t+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=e)}},52433:function(t,e,i){"use strict";i.d(e,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return r}});var o=i(23211),n=i(91565),s=i(18303);function r(t){return!(0,s.isVoid)(t)&&(0,n.isFunction)(t.init)}function a(t){return!(0,s.isVoid)(t)&&(0,n.isFunction)(t.destruct)}function l(t){return!(0,s.isVoid)(t)&&o.Dom.isElement(t.container)}},52450:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg>'},52938:function(t,e,i){"use strict";i.d(e,{wrapText:function(){return n}});var o=i(23211);function n(t,e){let i=t;o.Dom.up(i,t=>{t&&t.hasChildNodes()&&t!==e.editor&&(i=t)},e.editor);let n=o.Dom.wrapInline(i,e.o.enter,e);if(o.Dom.isEmpty(n)){let i=e.createInside.element("br");n.appendChild(i),o.Dom.before(i,t)}return n}},53202:function(t,e,i){"use strict";i.d(e,{loadTree:function(){return s}});var o=i(27795),n=i(1488);async function s(t){t.tree.setMod("active",!0),o.Dom.detach(t.tree.container);let e=(0,n.loadItems)(t);return t.o.showFoldersPanel?(t.tree.setMod("loading",!0),Promise.all([t.dataProvider.tree(t.state.currentPath,t.state.currentSource).then(e=>{t.state.sources=e}).catch(t.status).finally(()=>t.tree.setMod("loading",!1)),e])):(t.tree.setMod("active",!1),e)}},53328:function(t){t.exports='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg>'},53390:function(t,e,i){"use strict";var o=i(28077);i(96863),o.pluginSystem.add("formatBlock",function(t){t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",(e,i,o)=>(t.s.commitStyle({element:o}),t.synchronizeValues(),!1))})},53414:function(t){t.exports.default=["Type something","About Jodit","Jodit Editor","Jodit User's Guide","contains detailed help for using","For information about the license, please go to our website:","Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Anchor","Open in new tab","Open in fullsize","Clear Formatting","Fill color or set the text color","Redo","Undo","Bold","Italic","Insert Unordered List","Insert Ordered List","Align Center","Align Justify","Align Left","Align Right","Insert Horizontal Line","Insert Image","Insert file","Insert youtube/vimeo video","Insert link","Font size","Font family","Insert format block","Normal","Heading 1","Heading 2","Heading 3","Heading 4","Quote","Code","Insert","Insert table","Decrease Indent","Increase Indent","Select Special Character","Insert Special Character","Paint format","Change mode","Margins","top","right","bottom","left","Styles","Classes","Align","Right","Center","Left","--Not Set--","Src","Title","Alternative","Link","Open link in new tab","Image","file","Advanced","Image properties","Cancel","Ok","File Browser","Error on load list","Error on load folders","Are you sure?","Enter Directory name","Create directory","type name","Drop image","Drop file","or click","Alternative text","Upload","Browse","Background","Text","Top","Middle","Bottom","Insert column before","Insert column after","Insert row above","Insert row below","Delete table","Delete row","Delete column","Empty cell","Chars: %d","Words: %d","Strike through","Underline","superscript","subscript","Cut selection","Select all","Break","Search for","Replace with","Replace","Paste","Choose Content to Paste","source","bold","italic","brush","link","undo","redo","table","image","eraser","paragraph","fontsize","video","font","about","print","underline","strikethrough","indent","outdent","fullsize","shrink","hr","ul","ol","cut","selectall","Embed code","Open link","Edit link","No follow","Unlink","Update","pencil","Eye"," URL","Edit","Horizontal align","Filter","Sort by changed","Sort by name","Sort by size","Add folder","Reset","Save","Save as ...","Resize","Crop","Width","Height","Keep Aspect Ratio","Yes","No","Remove","Select","Select %s","Vertical align","Split","Merge","Add column","Add row","License: %s","Delete","Split vertical","Split horizontal","Border","Your code is similar to HTML. Keep as HTML?","Paste as HTML","Keep","Insert as Text","Insert only Text","You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!","palette","There are no files","Rename","Enter new name","preview","download","Paste from clipboard","Your browser doesn't support direct access to the clipboard.","Copy selection","copy","Border radius","Show all","Apply","Please fill out this field","Please enter a web address","Default","Circle","Dot","Quadrate","Find","Find Previous","Find Next","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected","Clean","Insert className","Press Alt for custom resizing","Line height","spellcheck","Speech Recognize","All"]},53514:function(t,e,i){"use strict";i.d(e,{removeInvTextNodes:function(){return s}});var o=i(81937),n=i(23211);function s(t,e,i,s,r,a){if(a===e||!n.Dom.isText(e)||null==e.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(e.nodeValue))return i;let l=n.Dom.furthest(a,n.Dom.isBlock,t.editor);return!l||n.Dom.isOrContains(l,e)?i:(e.nodeValue=e.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),e===a&&t.s.isCollapsed()&&t.s.setCursorAfter(e),e.nodeValue||n.Dom.safeRemove(e),!0)}},53681:function(t,e,i){"use strict";i.d(e,{Button:function(){return g},UIButton:function(){return m},UIButtonState:function(){return p}});var o=i(25045),n=i(31635),s=i(69364),r=i(84839),a=i(23211),l=i(91565),c=i(85932),u=i(93640),h=i(96007),d=i(97959),f=i(29434);let p=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});class m extends h.UIElement{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){let t=this.getElm("text");return(0,u.assert)(t,"Text element not found"),t}get icon(){let t=this.getElm("icon");return(0,u.assert)(t,"Icon element not found"),t}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,u.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,u.attr)(this.container,"role",this.state.role)}updateSize(){let t=this.closest(d.UIList);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,u.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,u.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,u.attr)(this.container,"data-ref",this.state.name),(0,u.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,u.attr)(this.container,"title",t),(0,u.attr)(this.container,"aria-label",t)}onChangeTabIndex(){(0,u.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let t=this.get("j.o.textIcons");if(!0===t||(0,l.isFunction)(t)&&t(this.state.name))return;a.Dom.detach(this.icon);let e=f.Icon.makeIcon(this.j,this.state.icon);e&&this.icon.appendChild(e)}focus(){this.container.focus()}isFocused(){let{activeElement:t}=this.od;return!!(t&&a.Dom.isOrContains(this.container,t))}createContainer(){let t=this.componentName,e=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),i=this.j.c.span(t+"__icon"),o=this.j.c.span(t+"__text");return e.appendChild(i),e.appendChild(o),e}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(t){return this.actionHandlers.push(t),this}__onActionFire(t){t.buffer={actionTrigger:this},this.actionHandlers.forEach(e=>e.call(this,t)),this.j.e.fire(this,"click",t)}constructor(t,e){super(t),(0,o._)(this,"isButton",!0),(0,o._)(this,"state",p()),(0,o._)(this,"button",void 0),(0,o._)(this,"actionHandlers",[]),this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),e&&this.hookStatus(s.STATUSES.ready,()=>{this.setState(e)})}}function g(t,e,i,o){let n=new m(t);return n.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,c.isString)(e)?(n.state.icon.name=e,n.state.name=e,o&&(n.state.variant=o),i&&(n.state.text=i)):n.setState(e),n}(0,n.__decorate)([r.cache],m.prototype,"text",null),(0,n.__decorate)([r.cache],m.prototype,"icon",null),(0,n.__decorate)([(0,r.watch)("state.size",{immediately:!1})],m.prototype,"onChangeSize",null),(0,n.__decorate)([(0,r.watch)("state.type",{immediately:!1})],m.prototype,"onChangeType",null),(0,n.__decorate)([(0,r.watch)("state.role",{immediately:!1})],m.prototype,"onChangeRole",null),(0,n.__decorate)([(0,r.watch)("parentElement")],m.prototype,"updateSize",null),(0,n.__decorate)([(0,r.watch)("state.variant",{immediately:!1})],m.prototype,"onChangeStatus",null),(0,n.__decorate)([(0,r.watch)("state.text",{immediately:!1})],m.prototype,"onChangeText",null),(0,n.__decorate)([(0,r.watch)("state.text",{immediately:!1})],m.prototype,"onChangeTextSetMode",null),(0,n.__decorate)([(0,r.watch)("state.disabled")],m.prototype,"onChangeDisabled",null),(0,n.__decorate)([(0,r.watch)("state.activated")],m.prototype,"onChangeActivated",null),(0,n.__decorate)([(0,r.watch)("state.name",{immediately:!1})],m.prototype,"onChangeName",null),(0,n.__decorate)([(0,r.watch)("state.tooltip",{immediately:!1})],m.prototype,"onChangeTooltip",null),(0,n.__decorate)([(0,r.watch)("state.tabIndex",{immediately:!1})],m.prototype,"onChangeTabIndex",null),(0,n.__decorate)([(0,r.watch)("state.icon",{immediately:!1})],m.prototype,"onChangeIcon",null),(0,n.__decorate)([r.cacheHTML],m.prototype,"createContainer",null),(0,n.__decorate)([(0,r.watch)("button:click")],m.prototype,"__onActionFire",null),m=(0,n.__decorate)([r.component],m)},53808:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg>'},53855:function(t,e,i){"use strict";i.d(e,{History:function(){return h}});var o=i(25045),n=i(31635),s=i(16964),r=i(84839),a=i(5266),l=i(8838),c=i(46363),u=i(33511);a.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class h extends s.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(t){this.__startValue=t}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){let e=this.snapshot.make();if(!c.Snapshot.equal(e,this.startValue)){let i=new l.Command(this.startValue,e,this,this.updateTick);if(t){let t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(i)}else this.__stack.push(i);this.startValue=e,this.fireChangeStack()}}fireChangeStack(){this.j&&!this.j.isInDestruct&&this.j.events?.fire("changeStack")}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(t,e=new u.Stack(t.o.history.maxHistoryLength),i=new c.Snapshot(t)){super(t),(0,o._)(this,"__startValue",void 0),(0,o._)(this,"__stack",void 0),(0,o._)(this,"snapshot",void 0),(0,o._)(this,"updateTick",0),this.__stack=e,this.snapshot=i,t.o.history.enable&&t.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),t.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(t.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(t=>t+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}(0,n.__decorate)([(0,r.debounce)()],h.prototype,"onChange",null)},54053:function(t,e,i){"use strict";i.d(e,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return n.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return s.removeFormatForSelection},visitNodeWalker:function(){return r.visitNodeWalker}});var o=i(5650),n=i(37431),s=i(70195),r=i(45219)},54308:function(t,e,i){"use strict";i.d(e,{askInsertTypeDialog:function(){return c},getAllTypes:function(){return l},pasteInsertHtml:function(){return a}});var o=i(81937),n=i(23211),s=i(28686),r=i(53681);function a(t,e,i){var o;let r,a;if(e.isInDestruct)return;t&&"drop"===t.type&&e.s.insertCursorAtPoint(t.clientX,t.clientY);let l=e.e.fire("beforePasteInsert",i);!(0,s.isVoid)(l)&&((0,s.isString)(l)||(0,s.isNumber)(l)||n.Dom.isNode(l))&&(i=l),(0,s.isString)(i)&&(-1!==(r=(o=(o=i).replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i))&&(o=o.substring(r+20)),-1!==(a=o.search(/<!--EndFragment-->/i))&&(o=o.substring(0,a)),i=o),e.s.insertHTML(i)}function l(t){let e=t.types,i="";if((0,s.isArray)(e)||"[object DOMStringList]"===({}).toString.call(e))for(let t=0;t<e.length;t+=1)i+=e[t]+";";else i=(e||o.TEXT_PLAIN).toString()+";";return i}function c(t,e,i,o,n){if(!1===t.e.fire("beforeOpenPasteDialog",e,i,o,n))return;let s=t.confirm(`<div style="word-break: normal; white-space: normal">${t.i18n(e)}</div>`,t.i18n(i)),a=n.map(({text:e,value:i})=>(0,r.Button)(t,{text:e,name:e.toLowerCase(),tabIndex:0}).onAction(()=>{s.close(),o(i)}));s.e.one(s,"afterClose",()=>{t.s.isFocused()||t.s.focus()});let l=(0,r.Button)(t,{text:"Cancel",tabIndex:0}).onAction(()=>{s.close()});return s.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",t.e.fire("afterOpenPasteDialog",s,e,i,o,n),s}},54447:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o}});let o=(t,e)=>{let i=e.getComputedStyle(t);return t.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}},54500:function(t,e,i){"use strict";var o=i(29434),n=i(5266),s=i(928),r=i.n(s),a=i(31230),l=i.n(a);n.Config.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},o.Icon.set("crop",r()).set("resize",l())},54522:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg>'},54794:function(t,e,i){"use strict";i.d(e,{fastClone:function(){return r},isAtom:function(){return n},markAsAtomic:function(){return s}});var o=i(3347);function n(t){return t&&t.isAtom}function s(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function r(t){return JSON.parse((0,o.stringify)(t))}},55184:function(t,e,i){"use strict";i.d(e,{debounce:function(){return a},throttle:function(){return l}});var o=i(16964),n=i(28686),s=i(28712),r=i(33201);function a(t,e=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,n.isFunction)(c))throw(0,r.error)("Handler must be a Function");return a.hookStatus(o.STATUSES.ready,o=>{let{async:r}=o;(0,s.assert)(null!=r,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let a=(0,n.isFunction)(t)?t(o):t,c=(0,n.isNumber)(a)||(0,n.isPlainObject)(a)?a:o.defaultTimeout;Object.defineProperty(o,l,{configurable:!0,value:r[i](o[l].bind(o),c,e)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(t,e=!1){return a(t,e,"throttle")}},55376:function(t,e,i){"use strict";i.d(e,{FileBrowserTree:function(){return n}});var o=i(4099);class n extends o.UIGroup{className(){return"FileBrowserTree"}}},55810:function(t,e,i){"use strict";i.d(e,{init:function(){return a}});var o=i(81937),n=i(28077),s=i(28686),r=i(3050);function a(t,e,i,a,l,c){if((0,s.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(e,a),c.delete(e),a.hasStyle&&(0,r.loadStyle)(t,e).catch(t=>{o.IS_PROD}),a.styles&&((0,n.getContainer)(t,e,"style").innerHTML=a.styles)}},56490:function(t,e,i){"use strict";i.d(e,{Popup:function(){return o.Popup}});var o=i(51116)},56894:function(t,e,i){"use strict";var o=i(31635),n=i(68616),s=i(28077),r=i(91206);i(96722);var a=i(33915),l=i(14282);class c extends r.Plugin{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach(e=>{l[e](this.j,t)})}__onAfterInsertNode(t){Object.keys(a).forEach(e=>{a[e](this.j,t)})}}(0,o.__decorate)([(0,n.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),(0,o.__decorate)([(0,n.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),s.pluginSystem.add("dtd",c)},57075:function(t,e,i){"use strict";i.d(e,{previewBox:function(){return l}});var o=i(23211),n=i(85932),s=i(7909),r=i(80991),a=i(28723);function l(t,e,i="px",c=null){let u=[],h=function(t,e){let i=[];try{(0,a.$$)("img",t.editor).forEach(n=>{let r=[(0,s.attr)(n,"width"),(0,s.attr)(n,"height"),n.src];(0,s.attr)(n,{width:n.offsetWidth+e,height:n.offsetHeight+e});let a=t.createInside.a();t.ed.body.appendChild(a),a.href=n.src,n.src=a.href,o.Dom.safeRemove(a),i.push(()=>{n.src=r[2]??"",(0,s.attr)(n,{width:r[0]||null,height:r[1]||null})})})}catch(t){throw i.forEach(t=>t()),i.length=0,t}return i}(t,i);try{let a=t.e.fire("beforePreviewBox",e,i);if(null!=a)return a;let l=t.c.div("jodit__preview-box jodit-context");c&&c.appendChild(l),(0,r.css)(l,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let e=t.create.element("iframe");(0,r.css)(e,{minWidth:800,minHeight:600,border:0}),l.appendChild(e);let i=e.contentWindow;if(i&&(t.e.fire("generateDocumentStructure.iframe",i.document,t),l=i.document.body,"function"==typeof ResizeObserver)){let o=!1,n=i.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(n),e.style.height=`${n.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||s.observe(n)})},100)),r=()=>{o=!0,s.unobserve(n),s.disconnect(),t.e.off("beforeDestruct",r)};u.push(r),t.e.on("beforeDestruct",r)}}else(0,r.css)(l,{minWidth:1024,minHeight:600,border:0});let d=(e,i)=>{let r=(0,n.isString)(i)?t.c.div():i;(0,n.isString)(i)&&(r.innerHTML=i);for(let t=0;t<r.childNodes.length;t+=1){let i=r.childNodes[t];if(o.Dom.isElement(i)){let t=e.ownerDocument.createElement(i.nodeName);for(let e=0;e<i.attributes.length;e+=1)(0,s.attr)(t,i.attributes[e].nodeName,i.attributes[e].nodeValue);0===i.childNodes.length||o.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(t.textContent=i.textContent):i.innerHTML&&(t.innerHTML=i.innerHTML):d(t,i);try{e.appendChild(t)}catch{}}else try{e.appendChild(i.cloneNode(!0))}catch{}}};return d(l,h),t.e.fire("afterPreviewBox",l),[l,()=>{u.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},57339:function(t,e,i){"use strict";i.d(e,{readSizes:function(){return a}});var o=i(70222),n=i(7909),s=i(80991),r=i(10808);async function a(t,e,i){await t.decode();let a=(0,s.css)(t,"width",!0)||(0,n.attr)(t,"width")||!1,l=(0,s.css)(t,"height",!0)||(0,n.attr)(t,"height")||!1;e.imageWidth=!1!==a?(0,r.normalSizeFromString)(a):t.offsetWidth||t.naturalWidth,(0,o.isNumeric)(e.imageWidth)?e.imageHeight=!1!==l?(0,r.normalSizeFromString)(l):t.offsetHeight||t.naturalHeight:e.imageHeight=l||"";let{imageWidth:c,imageHeight:u}=e,h=parseFloat(c.toString());if(!(0,o.isNumeric)(c)||!(0,o.isNumeric)(u)){i.sizeIsLocked=!1;return}if(!1===l){e.imageHeight=Math.round(h/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(h-parseFloat(u.toString())*i.ratio)}},57626:function(t,e,i){"use strict";i.d(e,{fuzzySearchIndex:function(){return n}});var o=i(81937);function n(t,e,i=0,s=1){let r=0,a=0,l=-1,c=0,u=0;for(a=i;r<t.length&&a<e.length;)t[r].toLowerCase()===e[a].toLowerCase()?(r++,c++,u=0,-1===l&&(l=a)):r>0&&(u>=s&&e[a]!==o.INVISIBLE_SPACE?(r=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return r===t.length?[l,c]:[-1,0]}},57821:function(t,e,i){"use strict";i.d(e,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,e,i)=>i.toUpperCase())},58250:function(t,e,i){"use strict";i.d(e,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},58293:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.allowResizeX=!1,o.Config.prototype.allowResizeY=!0},58317:function(t,e,i){"use strict";i.d(e,{UISearch:function(){return u}});var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(27795),l=i(65946),c=i(4099);class u extends c.UIElement{className(){return"UISearch"}render(){return`<div>
192
192
  <div class="&__box">
193
193
  <div class="&__inputs">
194
194
  <input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>
@@ -206,8 +206,8 @@
206
206
  <button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
207
207
  </div>
208
208
  </div>
209
- </div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=t.toString()}set count(t){this.countBox.innerText=t.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(t){if(!this.isOpened)return;let{j:e}=this;if(e.getRealMode()===s.MODE_WYSIWYG)switch(t.key){case s.KEY_ESC:this.close();break;case s.KEY_F3:this.queryInput.value&&(e.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,e,i=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let o=t??(this.j.s.sel||"").toString();o&&(this.queryInput.value=o),e&&(this.replaceInput.value=e),this.setMod("empty-query",!o.length),this.j.e.fire(this,"needUpdateCounters"),o?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),a.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){let t=(0,l.position)(this.j.toolbarContainer);(0,l.css)(this.container,{top:t.top+t.height,left:t.left+t.width})}else(0,l.css)(this.container,{top:null,left:null})}constructor(t){super(t),(0,o._)(this,"queryInput",void 0),(0,o._)(this,"replaceInput",void 0),(0,o._)(this,"selInfo",null),(0,o._)(this,"closeButton",void 0),(0,o._)(this,"replaceButton",void 0),(0,o._)(this,"currentBox",void 0),(0,o._)(this,"countBox",void 0),(0,o._)(this,"_currentIndex",0),(0,o._)(this,"isOpened",!1);let{query:e,replace:i,cancel:n,next:r,prev:a,replaceBtn:c,current:u,count:h}=(0,l.refs)(this.container);this.queryInput=e,this.replaceInput=i,this.closeButton=n,this.replaceButton=c,this.currentBox=u,this.countBox=h,t.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{t.s.isFocused()&&(t.s.removeMarkers(),this.selInfo=t.s.save())}).on(this.replaceButton,"pointerdown",()=>(t.e.fire(this,"pressReplaceButton"),!1)).on(r,"pointerdown",()=>(t.e.fire("searchNext"),!1)).on(a,"pointerdown",()=>(t.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,l.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",this.j.async.debounce(async e=>{e.key===s.KEY_ENTER?(e.preventDefault(),e.stopImmediatePropagation(),await t.e.fire("searchNext")&&this.close()):t.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout))}}(0,n.__decorate)([(0,r.watch)([":keydown","queryInput:keydown"])],u.prototype,"onEditorKeyDown",null),(0,n.__decorate)([r.autobind],u.prototype,"open",null),(0,n.__decorate)([r.autobind],u.prototype,"close",null),(0,n.__decorate)([(0,r.watch)(":toggleSticky")],u.prototype,"calcSticky",null),u=(0,n.__decorate)([r.component],u)},58354:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(28077),l=i(65946),c=i(91206);i(87908);var u=i(5070);class h extends c.Plugin{afterInit(t){(0,l.css)(t.editor,{lineHeight:t.o.defaultLineHeight}),t.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(t,e,i){let o,{s:n,createInside:s,editor:a,o:c}=this.j;n.isFocused()||n.focus(),n.save();let u=t=>{let e=r.Dom.closest(t,r.Dom.isBlock,a);e||(e=r.Dom.wrap(t,c.enter,s));let n=(0,l.css)(e,"lineHeight");void 0===o&&(o=n.toString()!==i.toString()),(0,l.css)(e,"lineHeight",o?i:null)};try{if(n.isCollapsed()){let t=s.fake();n.insertNode(t,!1,!1),u(t),r.Dom.safeRemove(t)}else n.eachSelection(u)}finally{n.restore()}}beforeDestruct(t){(0,l.css)(t.editor,{lineHeight:null})}constructor(t){super(t),(0,o._)(this,"buttons",[{name:"lineHeight",group:"font"}]),(0,a.extendLang)(u)}}(0,n.__decorate)([s.autobind],h.prototype,"applyLineHeight",null),a.pluginSystem.add("lineHeight",h)},58446:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},58664:function(t,e,i){"use strict";i.d(e,{FileBrowserItem:function(){return s}});var o=i(25045),n=i(65946);class s{static create(t){return t instanceof s?t:new s(t)}get path(){return(0,n.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){let t=this.time||new Date().getTime().toString(),{thumbIsAbsolute:e,source:i,thumb:o,file:s}=this.data,r=o||s;return e&&r?r:(0,n.normalizeUrl)(i.baseurl,i.path,r||"")+"?_tmst="+encodeURIComponent(t)}get fileURL(){let{name:t}=this.data,{file:e,fileIsAbsolute:i,source:o}=this.data;return void 0!==e&&(t=e),i&&t?t:(0,n.normalizeUrl)(o.baseurl,o.path,t||"")}get time(){let{changed:t}=this.data;return t&&("number"==typeof t?new Date(t).toLocaleString():t)||""}get uniqueHashKey(){let t=this.data;return[t.sourceName,t.name,t.file,this.time,t.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}toJSON(){return this.data}constructor(t){(0,o._)(this,"data",void 0),(0,o._)(this,"source",void 0),(0,o._)(this,"sourceName",void 0),(0,o._)(this,"type",void 0),this.data=t,Object.keys(t).forEach(e=>{this[e]=t[e]})}}},58881:function(t,e,i){"use strict";i.d(e,{checkRemoveChar:function(){return function t(e,i,r,l){var c,u;let h,d=r?-1:1,f=n.Dom.sibling(i,!r),p=n.Dom.sibling(i,r),m=null,g=!1;for(p||(p=a(i,r,e.editor));p&&(n.Dom.isText(p)||n.Dom.isInlineBlock(p));){for(;n.Dom.isInlineBlock(p);)p=r?p?.lastChild:p?.firstChild;if(!p)break;if(p.nodeValue?.length&&(h=function(t,e,i,r){let a=(0,s.toArray)(t.nodeValue),l=a.length,c=e?l-1:0;if(a[c]===o.INVISIBLE_SPACE)for(;a[c]===o.INVISIBLE_SPACE;)c+=i;let u=a[c];if(a[c+i]===o.INVISIBLE_SPACE){for(c+=i;a[c]===o.INVISIBLE_SPACE;)c+=i;c+=e?1:-1}return a=e&&c<0?[]:a.slice(e?0:c+1,e?c:l),function(t,e,i){if(!t||!n.Dom.isText(t)||(!e?/ $/:/^ /).test(t.nodeValue??"")||!(0,s.trimInv)(t.nodeValue||"").length)for(let t=e?i.length-1:0;e?t>=0:t<i.length;t+=e?-1:1)if(" "===i[t])i[t]=o.NBSP_SPACE;else break}(r,e,a),t.nodeValue=a.join(""),u}(p,r,d,f),!p.nodeValue.length&&n.Dom.isInlineBlock(p.parentNode)&&(p.nodeValue=o.INVISIBLE_SPACE)),p.nodeValue?.length||(m=p),!(0,s.isVoid)(h)&&h!==o.INVISIBLE_SPACE){c=p,u=h,(0,s.call)(r?n.Dom.after:n.Dom.before,c,i),("sentence"===l||"word"===l&&" "!==u&&u!==o.NBSP_SPACE)&&t(e,i,r,l),g=!0;break}let _=a(p,r,e.editor);m&&(n.Dom.safeRemove(m),m=null),p=_}return m&&(n.Dom.safeRemove(m),m=null),g&&(function(t,e){let i=t.parentElement;for(;i&&n.Dom.isInlineBlock(i)&&n.Dom.isTag(i,"a");){let e=i.parentElement;n.Dom.isEmpty(i)&&(n.Dom.after(i,t),n.Dom.safeRemove(i)),i=e}}(i,0),i.parentElement!==e.editor&&n.Dom.isBlock(i.parentElement)&&n.Dom.each(i.parentElement,n.Dom.isEmptyTextNode)&&n.Dom.after(i,e.createInside.element("br")),e.s.setCursorBefore(i),n.Dom.isTag(i.previousSibling,"br")&&!n.Dom.findNotEmptySibling(i,!1)&&n.Dom.after(i,e.createInside.element("br"))),g}}});var o=i(81937),n=i(27795),s=i(65946),r=i(15200);function a(t,e,i){let o=n.Dom.sibling(t,e);return!o&&t.parentNode&&t.parentNode!==i&&(o=(0,r.findMostNestedNeighbor)(t,!e,i,!0)),o}},58910:function(t,e,i){"use strict";var o=i(25045),n=i(23211),s=i(28077),r=i(71125),a=i(91206),l=i(29434),c=i(5266),u=i(93267),h=i.n(u);c.Config.prototype.controls.classSpan={command:"applyClassName",exec:r.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,e){let i=t.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,t.editor)||t.editor;return!!(e.control.args&&o.classList.contains(e.control.args[0].toString()))}return!1},isActive(t,e){let i=t.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,t.editor)||t.editor,s=!1;return e.control.list&&Object.keys(e.control.list).forEach(t=>{o.classList.contains(t)&&(s=!0)}),!!(o&&o!==t.editor&&void 0!==e.control.list&&s)}return!1},childTemplate:(t,e,i)=>`<span class="${e}">${t.i18n(i)}</span>`,tooltip:"Insert className"};class d extends a.Plugin{afterInit(t){t.registerCommand("applyClassName",(e,i,o)=>(t.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"classSpan",group:"script"}])}}s.pluginSystem.add("classSpan",d),l.Icon.set("class-span",h())},59276:function(t,e,i){"use strict";i.d(e,{SentenceFinder:function(){return s}});var o=i(25045),n=i(57626);class s{add(t){let e=(t.nodeValue??"").toLowerCase();if(!e.length)return;let i=this.value.length;this.queue.push({startIndex:i,endIndex:i+e.length,node:t}),this.value+=e}ranges(t,e=0){let i=[],o=e,n=0,s=0;do if([o,n]=this.searchIndex(t,this.value,o),-1!==o){let t,e=0,r,a=0;for(let i=s;i<this.queue.length;i+=1)if(!t&&this.queue[i].endIndex>o&&(t=this.queue[i].node,e=o-this.queue[i].startIndex),t&&this.queue[i].endIndex>=o+n){r=this.queue[i].node,a=o+n-this.queue[i].startIndex,s=i;break}t&&r&&i.push({startContainer:t,startOffset:e,endContainer:r,endOffset:a}),o+=n}while(-1!==o)return 0===i.length?null:i}constructor(t=n.fuzzySearchIndex){(0,o._)(this,"searchIndex",void 0),(0,o._)(this,"queue",void 0),(0,o._)(this,"value",void 0),this.searchIndex=t,this.queue=[],this.value=""}}},59399:function(t,e){"use strict";e.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table",`
210
- `,"link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},59400:function(t,e,i){"use strict";i.d(e,{Button:function(){return o.Button},UIButton:function(){return o.UIButton},UIButtonGroup:function(){return n.UIButtonGroup},UIButtonState:function(){return o.UIButtonState},UITooltip:function(){return s.UITooltip}});var o=i(53681),n=i(15367),s=i(95399)},59609:function(t,e,i){"use strict";i.d(e,{ViewComponent:function(){return s}});var o=i(25045),n=i(80251);class s extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...e){return this.j.i18n(t,...e)}setParentView(t){return this.jodit=t,t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),(0,o._)(this,"jodit",void 0),this.setParentView(t)}}},59758:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(28077),r=i(18855),a=i(29434),l=i(5266),c=i(34045),u=i.n(c),h=i(39199),d=i.n(h);a.Icon.set("redo",u()).set("undo",d()),l.Config.prototype.controls.redo={mode:n.MODE_SPLIT,isDisabled:t=>!t.history.canRedo(),tooltip:"Redo"},l.Config.prototype.controls.undo={mode:n.MODE_SPLIT,isDisabled:t=>!t.history.canUndo(),tooltip:"Undo"};class f extends r.Plugin{beforeDestruct(){}afterInit(t){let e=e=>(t.history[e](),!1);t.registerCommand("redo",{exec:e,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),t.registerCommand("undo",{exec:e,hotkeys:["ctrl+z","cmd+z"]})}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"undo",group:"history"},{name:"redo",group:"history"}])}}s.pluginSystem.add("redoUndo",f)},59807:function(t,e,i){"use strict";let o;i.d(e,{LocalStorageProvider:function(){return r},canUsePersistentStorage:function(){return s}});var n=i(25045);let s=()=>(void 0===o&&(o=(()=>{let t="___Jodit___"+Math.random().toString();try{localStorage.setItem(t,"1");let e="1"===localStorage.getItem(t);return localStorage.removeItem(t),e}catch{}return!1})()),o);class r{set(t,e){try{let i=localStorage.getItem(this.rootKey),o=i?JSON.parse(i):{};o[t]=e,localStorage.setItem(this.rootKey,JSON.stringify(o))}catch{}return this}delete(t){try{localStorage.removeItem(this.rootKey)}catch{}return this}get(t){try{let e=localStorage.getItem(this.rootKey),i=e?JSON.parse(e):{};return void 0!==i[t]?i[t]:void 0}catch{}}exists(t){return null!=this.get(t)}clear(){try{localStorage.removeItem(this.rootKey)}catch{}return this}constructor(t){(0,n._)(this,"rootKey",void 0),this.rootKey=t}}},59827:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},59841:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return n.CommitStyle},INITIAL:function(){return s.INITIAL},REPLACE:function(){return s.REPLACE},Selection:function(){return o.Selection},UNSET:function(){return s.UNSET},UNWRAP:function(){return s.UNWRAP},WRAP:function(){return s.WRAP}});var o=i(98595),n=i(84578),s=i(98394)},60162:function(t,e,i){"use strict";var o=i(36400),n=i(29434),s=i(5266),r=i(40037),a=i.n(r),l=i(83207),c=i.n(l);let u=(t,e,{control:i})=>{let n="button"+i.command,s=(i.args&&i.args[0])??(0,o.dataBind)(t,n);(0,o.dataBind)(t,n,s),t.execCommand(i.command,!1,"default"===s?null:s)};n.Icon.set("ol",a()).set("ul",c()),s.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:u},s.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:u}},60216:function(t,e,i){"use strict";i.d(e,{Eventify:function(){return n}});var o=i(25045);class n{on(t,e){return this.__map.has(t)||this.__map.set(t,new Set),this.__map.get(t)?.add(e),this}off(t,e){return this.__map.has(t)&&this.__map.get(t)?.delete(e),this}destruct(){this.__map.clear()}emit(t,...e){let i;return this.__map.has(t)&&this.__map.get(t)?.forEach(t=>{i=t(...e)}),i}constructor(){(0,o._)(this,"__map",new Map)}}},60636:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>'},60898:function(t,e,i){"use strict";i.d(e,{inView:function(){return n},scrollIntoViewIfNeeded:function(){return s}});var o=i(23211);function n(t,e,i){let o=t.getBoundingClientRect(),n=t,s=o.top,r=o.height;for(;n&&n!==e&&n.parentNode;)if(!(s<=(o=(n=n.parentNode).getBoundingClientRect()).bottom)||s+r<=o.top)return!1;return s<=(i.documentElement&&i.documentElement.clientHeight||0)}function s(t,e,i){o.Dom.isHTMLElement(t)&&!n(t,e,i)&&(e.clientHeight!==e.scrollHeight&&(e.scrollTop=t.offsetTop),n(t,e,i)||t.scrollIntoView())}},60936:function(t,e,i){"use strict";i.r(e),i.d(e,{Ajax:function(){return f.Ajax},Alert:function(){return r.Alert},Async:function(){return l.Async},Button:function(){return p.Button},CommitStyle:function(){return x.CommitStyle},Component:function(){return o.Component},Confirm:function(){return r.Confirm},ContextMenu:function(){return s.ContextMenu},Create:function(){return c.Create},Dialog:function(){return r.Dialog},Dom:function(){return u.Dom},EventEmitter:function(){return h.EventEmitter},EventHandlersStore:function(){return h.EventHandlersStore},Eventify:function(){return h.Eventify},FileBrowser:function(){return a.FileBrowser},Helpers:function(){return n},History:function(){return _.History},Icon:function(){return p.Icon},ImageEditor:function(){return b.ImageEditor},LazyWalker:function(){return u.LazyWalker},Plugin:function(){return d.Plugin},PluginSystem:function(){return D.PluginSystem},Popup:function(){return p.Popup},ProgressBar:function(){return p.ProgressBar},Prompt:function(){return r.Prompt},Response:function(){return f.Response},STATUSES:function(){return o.STATUSES},Selection:function(){return x.Selection},Snapshot:function(){return v.Snapshot},StatusBar:function(){return w.StatusBar},Table:function(){return S.Table},ToolbarButton:function(){return C.ToolbarButton},ToolbarCollection:function(){return E.ToolbarCollection},ToolbarContent:function(){return C.ToolbarContent},ToolbarEditorCollection:function(){return I.ToolbarEditorCollection},ToolbarSelect:function(){return C.ToolbarSelect},UIBlock:function(){return p.UIBlock},UIButton:function(){return p.UIButton},UIButtonGroup:function(){return p.UIButtonGroup},UIButtonState:function(){return p.UIButtonState},UICheckbox:function(){return p.UICheckbox},UIElement:function(){return p.UIElement},UIFileInput:function(){return p.UIFileInput},UIForm:function(){return p.UIForm},UIGroup:function(){return p.UIGroup},UIInput:function(){return p.UIInput},UIList:function(){return p.UIList},UIMessages:function(){return y.UIMessages},UISelect:function(){return p.UISelect},UISeparator:function(){return p.UISeparator},UISpacer:function(){return p.UISpacer},UITextArea:function(){return p.UITextArea},UITooltip:function(){return p.UITooltip},Uploader:function(){return T.Uploader},View:function(){return m.View},ViewComponent:function(){return o.ViewComponent},ViewWithToolbar:function(){return g.ViewWithToolbar},defaultNameSpace:function(){return h.defaultNameSpace},observable:function(){return h.observable}});var o=i(16964),n=i(65946),s=i(67399),r=i(37333),a=i(17610),l=i(91231),c=i(79821),u=i(27795),h=i(1496),d=i(91206),f=i(73714),p=i(4099),m=i(35099),g=i(2222),_=i(53855),v=i(46363),b=i(43271),y=i(10081),w=i(29433),S=i(98803),C=i(39709),E=i(42573),I=i(6209),T=i(94925),D=i(85305),x=i(59841)},61077:function(t,e,i){"use strict";i.d(e,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=i(79947)},61334:function(t,e,i){"use strict";var o=i(27795),n=i(93640),s=i(29434),r=i(31125),a=i(18272),l=i(1305),c=i(53202),u=i(34269),h=i(43271);let d="jodit-file-browser-preview",f=(t="next",e="right")=>`<div class="${d}__navigation ${d}__navigation_arrow_${t}">`+s.Icon.get("angle-"+e)+"</a>";e.default=t=>{if(!t.o.contextMenu)return()=>{};let e=(0,a.makeContextMenu)(t);return i=>{let s=(0,u.getItem)(i.target,t.container);if(!s)return;let a=s,p=t.options,m=t=>(0,n.attr)(a,t)||"";return t.async.setTimeout(()=>{let g=(0,u.elementToItem)(s,(0,r.elementsMap)(t));g&&(t.state.activeElements=[g],e.show(i.clientX,i.clientY,[!!("1"!==m("data-is-file")&&p.editImage&&(t.dataProvider.canI("ImageResize")||t.dataProvider.canI("ImageCrop")))&&{icon:"pencil",title:"Edit",exec:()=>h.openImageEditor.call(t,m("href"),m("data-name"),m("data-path"),m("data-source"))},!!t.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){t.e.fire("fileRename.filebrowser",m("data-name"),m("data-path"),m("data-source"))}},!!t.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await (0,l.deleteFile)(t,m("data-name"),m("data-source"))}catch(e){return t.status(e)}return t.state.activeElements=[],(0,c.loadTree)(t).catch(t.status)}},!!p.preview&&{icon:"eye",title:"Preview",exec(){let e=t.dlg({buttons:["fullsize","dialog.close"]}),i=t.c.div(d,'<div class="jodit-icon_loader"></div>'),s=t.c.div(d+"__box"),r=t.c.fromHTML(f()),l=t.c.fromHTML(f("prev","left")),c=n=>{let c=t.c.element("img");c.setAttribute("src",n);let u=()=>{t.isInDestruct||(t.e.off(c,"load"),o.Dom.detach(i),p.showPreviewNavigation&&(o.Dom.prevWithClass(a,t.files.getFullElName("item"))&&i.appendChild(l),o.Dom.nextWithClass(a,t.files.getFullElName("item"))&&i.appendChild(r)),i.appendChild(s),s.appendChild(c),e.setPosition(),t?.events?.fire("previewOpenedAndLoaded"))};t.e.on(c,"load",u),c.complete&&u()};t.e.on([r,l],"click",function(){if(!(a=this===r?o.Dom.nextWithClass(a,t.files.getFullElName("item")):o.Dom.prevWithClass(a,t.files.getFullElName("item"))))throw(0,n.error)("Need element");o.Dom.detach(i),o.Dom.detach(s),i.innerHTML='<div class="jodit-icon_loader"></div>',c(m("href"))}),t.e.on("beforeDestruct",()=>{e.destruct()}),e.container.classList.add(d+"__dialog"),e.setContent(i),e.setPosition(),e.open(),c(m("href")),t.events.on("beforeDestruct",()=>{e.destruct()}).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){let e=m("href");e&&t.ow.open(e)}}]))},t.defaultTimeout),t.e.on("beforeClose",()=>{e.close()}).on("beforeDestruct",()=>e.destruct()),i.stopPropagation(),i.preventDefault(),!1}}},61466:function(t,e,i){"use strict";i.d(e,{UIMessage:function(){return r}});var o=i(31635),n=i(91672),s=i(4099);class r extends s.UIElement{className(){return"UIMessage"}constructor(t,e){super(t),this.setMod("active",!0),this.setMod("variant",e.variant),this.container.textContent=e.text}}r=(0,o.__decorate)([n.component],r)},61764:function(t,e,i){"use strict";i.d(e,{ToolbarSelect:function(){return l}});var o=i(31635),n=i(84839),s=i(62101),r=i(85932),a=i(22533);class l extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){super.update(),this.state.icon.name="";let{list:t,data:e}=this.control;if(t){let i=this.state.value||(e&&(0,r.isString)(e.currentValue)?e.currentValue:void 0);i||(i=Object.keys(t)[0]);let o=((0,s.isPlainObject)(t)&&t[i.toString()]||i).toString();this.state.text=this.control.textTemplate?.(this.jodit,o)??o}}}l=(0,o.__decorate)([n.component],l)},62101:function(t,e,i){"use strict";i.d(e,{isPlainObject:function(){return n}});var o=i(3513);function n(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},62623:function(t,e,i){"use strict";i.d(e,{FileBrowser:function(){return C}});var o=i(25045),n=i(31635),s=i(16964),r=i(81937),a=i(84839),l=i(68616),c=i(1496),u=i(65946),h=i(25222),d=i(80512),f=i(2222),p=i(5266);i(68502);var m=i(1488),g=i(53202),_=i(34269),v=i(36664),b=i(74833),y=i(17780),w=i(18272),S=i(63425);class C extends f.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,w.makeDataProvider)(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){let e=[],i=[];this.state.activeElements.forEach(t=>{let o=t.fileURL;o&&(e.push(o),i.push(t.isImage||!1))}),this.close(),(0,u.isFunction)(t)&&t({baseurl:"",files:e,isImages:i}),this.close()}return!1}}get _dialog(){let t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:this.o.headerButtons??["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(e=>t.events.on(t,e,()=>this.e.fire(e))),t.setSize(this.o.width,this.o.height),t}get storage(){return h.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,e){!(!t||(0,u.isAbortError)(t))&&((0,u.isString)(t)||(t=t.message),(0,u.isString)(t)&&(0,u.trim)(t).length&&this.message.message(t,e?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,e=!1){return this.state.onlyImages=e,this.async.promise((e,i)=>{if(!this.o.items||!this.o.items.url)throw(0,u.error)("Need set options.filebrowser.ajax.url");let o=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",()=>{let e=new Date().getTime();e-o<r.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(t)(),o=e}).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));let n=this.c.div();this.toolbar?.appendTo(n),this.__updateToolbarButtons(),this._dialog.open(this.browser,n),this.e.fire("sort.filebrowser",this.state.sortBy),(0,g.loadTree)(this).then(e,i).finally(()=>{this.isInDestruct||this?.e?.fire("fileBrowserReady.filebrowser")})}).catch(t=>{if(!(0,u.isAbortError)(t)&&!r.IS_PROD)throw t})}__getButtons(){return(this.o.buttons??[]).filter(t=>{if(!(0,u.isString)(t))return!0;switch(t){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(t){let e=this,i=t?.options?.uploader,o=(0,u.ConfigProto)(i||{},p.Config.defaultOptions.uploader),n=()=>(0,m.loadItems)(this);e.uploader=e.getInstance("Uploader",o),e.uploader.setPath(e.state.currentPath).setSource(e.state.currentSource).bind(e.browser,n,e.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),e.e.on("bindUploader.filebrowser",t=>{e.uploader.bind(t,n,e.errorHandler)})}destruct(){!this.isInDestruct&&((0,a.cached)(this,"_dialog")?.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){let t=this.__getButtons();!function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}(this.__prevButtons,t)&&(this.__prevButtons=t,this.toolbar?.build(t))}constructor(t){super(t),(0,o._)(this,"browser",this.c.div(this.componentName)),(0,o._)(this,"status_line",this.c.div(this.getFullElName("status"))),(0,o._)(this,"tree",new S.FileBrowserTree(this)),(0,o._)(this,"files",new S.FileBrowserFiles(this)),(0,o._)(this,"state",(0,c.observable)({currentPath:"",currentSource:y.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1})),(0,o._)(this,"errorHandler",t=>{(0,u.isAbortError)(t)||(t instanceof Error?this.status(this.i18n(t.message)):this.status(this.dataProvider.getMessage(t)))}),(0,o._)(this,"uploader",void 0),(0,o._)(this,"close",()=>{this._dialog.close()}),(0,o._)(this,"__prevButtons",[]),this.attachEvents(t),this.options=(0,u.ConfigProto)(t||{},p.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&this.browser.appendChild(this.tree.container),this.browser.appendChild(this.files.container),this.browser.appendChild(this.status_line),v.selfListeners.call(this),_.nativeListeners.call(this),b.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,u.ConfigProto)(this.options[t],this.o.ajax))});let{storeView:e,storeSortBy:i,storeLastOpenedFolder:n}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},r=e&&this.storage.get("view");r&&null==this.o.view?this.state.view="list"===r?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);let a=i&&this.storage.get("sortBy");if(a){let t=a.split("-");this.state.sortBy=["changed","name","size"].includes(t[0])?a:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(n){let t=this.storage.get("currentPath"),e=this.storage.get("currentSource");this.state.currentPath=t??"",this.state.currentSource=e??""}this.initUploader(this),this.setStatus(s.STATUSES.ready)}}(0,n.__decorate)([a.cache],C.prototype,"dataProvider",null),(0,n.__decorate)([a.cache],C.prototype,"_dialog",null),(0,n.__decorate)([a.cache],C.prototype,"storage",null),(0,n.__decorate)([a.autobind],C.prototype,"status",null),(0,n.__decorate)([a.autobind],C.prototype,"open",null),(0,n.__decorate)([(0,l.watch)("dataProvider:changePermissions")],C.prototype,"__updateToolbarButtons",null),C=(0,n.__decorate)([(0,a.derive)(d.Dlgs)],C)},63425:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return n.FileBrowserTree}});var o=i(86122),n=i(55376)},63468:function(t,e,i){"use strict";i.d(e,{UIGroup:function(){return u}});var o=i(25045),n=i(31635),s=i(80251),r=i(84839),a=i(23211),l=i(65946),c=i(96007);class u extends c.UIElement{className(){return"UIGroup"}get allChildren(){let t=[],e=[...this.elements];for(;e.length;){let i=e.shift();(0,l.isArray)(i)?e.push(...i):s.Component.isInstanceOf(i,u)?e.push(...i.elements):i&&t.push(i)}return t}update(){this.elements.forEach(t=>t.update()),this.setMod("size",this.buttonSize)}append(t,e){let i;if((0,l.isArray)(t)){if("number"==typeof e)throw Error("You can not use index when append array of elements");return t.forEach(t=>this.append(t,e)),this}if("number"==typeof e?(i=Math.min(Math.max(0,e),this.elements.length),this.elements.splice(i,0,t)):this.elements.push(t),t.name&&t.container.classList.add(this.getFullElName(t.name)),e&&"string"==typeof e){let i=this.getElm(e);if(null==i)throw Error("Element does not exist");i.appendChild(t.container)}else this.appendChildToContainer(t.container,i);return t.parentElement=this,this}afterSetMod(t,e){this.syncMod&&this.elements.forEach(i=>i.setMod(t,e))}appendChildToContainer(t,e){void 0===e||e<0||e>this.elements.length-1||null==this.container.children[e]?this.container.appendChild(t):this.container.insertBefore(t,this.container.children[e])}remove(t){let e=this.elements.indexOf(t);return -1!==e&&(this.elements.splice(e,1),a.Dom.safeRemove(t.container),t.parentElement=null),this}clear(){return this.elements.forEach(t=>t.destruct()),this.elements.length=0,this}destruct(){return this.clear(),super.destruct()}constructor(t,e,i){super(t,i),(0,o._)(this,"options",void 0),(0,o._)(this,"syncMod",void 0),(0,o._)(this,"elements",void 0),(0,o._)(this,"buttonSize",void 0),this.options=i,this.syncMod=!1,this.elements=[],this.buttonSize="middle",e?.forEach(t=>t&&this.append(t)),i?.name&&(this.name=i.name)}}(0,n.__decorate)([(0,r.watch)("buttonSize")],u.prototype,"update",null),u=(0,n.__decorate)([r.component],u)},63837:function(t){t.exports.default={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},63974:function(t,e,i){"use strict";var o=i(25045),n=i(27795),s=i(28077),r=i(65946),a=i(4040),l=i(91206);class c extends l.Plugin{afterInit(t){t.e.on("afterCommand.delete",t=>{"delete"===t&&this.__afterDeleteCommand()}),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){let t=this.j,e=t.s.current();if(e&&n.Dom.isTag(e.firstChild,"br")&&t.s.removeNode(e.firstChild),!(0,a.trim)(t.editor.textContent||"")&&!t.editor.querySelector("img,table,jodit,iframe,hr")&&(!e||!n.Dom.closest(e,"table",t.editor))){t.editor.innerHTML="";let e=t.s.setCursorIn(t.editor);t.s.removeNode(e)}}__onDeleteCommand(){let{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();let e=t.s.range;e.deleteContents();let i=t.createInside.fake();e.insertNode(i);let o=n.Dom.findSibling(i,!0),s=n.Dom.findSibling(i,!1);return this.__moveContentInLeftSibling(i,o,s),e.setStartBefore(i),e.collapse(!0),this.__moveCursorInEditableSibling(t,o,i,e),this.__addBrInEmptyBlock(i,s,e),n.Dom.safeRemove(i),t.s.selectRange(e),!1}__moveContentInLeftSibling(t,e,i){e=this.__defineRightLeftBox(e),!n.Dom.isList(i)&&!n.Dom.isTag(i,"table")&&n.Dom.isBlock(i)&&n.Dom.isBlock(e)&&(n.Dom.append(e,t),n.Dom.moveContent(i,e),n.Dom.safeRemove(i)),n.Dom.isList(i)&&n.Dom.isLeaf(i.firstElementChild)&&n.Dom.isEmpty(i.firstElementChild)&&n.Dom.safeRemove(i.firstElementChild)}__defineRightLeftBox(t){if(!n.Dom.isList(t))return t;let e=t.lastElementChild;return n.Dom.isLeaf(e)||(e=this.j.createInside.element("li"),n.Dom.append(t,e)),e}__addBrInEmptyBlock(t,e,i){let o=this.j;if(t.isConnected&&n.Dom.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){let e=o.createInside.element("br");n.Dom.after(t,e),i.setStartBefore(e),i.collapse(!0)}if(n.Dom.isTag(e,"table")){let t=(0,r.$$)("td,th",e).shift();n.Dom.isCell(t)&&n.Dom.isEmpty(t)&&n.Dom.append(t,o.createInside.element("br"))}}__moveCursorInEditableSibling(t,e,i,o){if(!e||!n.Dom.isText(e)){let e=n.Dom.closest(i,n.Dom.isBlock,t.editor)??t.editor,s=n.Dom.prev(i,n.Dom.isText,e);s&&(o.setStartAfter(s),o.collapse(!0),n.Dom.safeRemove(i))}}}(0,o._)(c,"requires",["backspace"]),s.pluginSystem.add("deleteCommand",c)},64094:function(t,e,i){"use strict";var o=i(23211),n=i(28077),s=i(65946),r=i(16849),a=i(80991),l=i(29434),c=i(5266),u=i(80515),h=i.n(u);l.Icon.set("justify",h()),c.Config.prototype.controls.align={name:"left",tooltip:"Align",update(t,e){let i=e.control,n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isBlock,t.editor)||t.editor,l=(0,a.css)(r,"text-align").toString();i.defaultValue&&-1!==i.defaultValue.indexOf(l)&&(l="left");let{list:c,data:u}=i;u&&u.currentValue!==l&&c&&((0,s.isPlainObject)(c)?c[l]:c.includes(l))&&(t.o.textIcons||"select"===i.component?e.state.text=l:e.state.icon.name=l,u.currentValue=l)}},isActive(t,e){let i=t.s.current();if(!i||!e.control.defaultValue)return!1;let n=o.Dom.closest(i,o.Dom.isBlock,t.editor)||t.editor;return -1===e.control.defaultValue.indexOf((0,a.css)(n,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},n.pluginSystem.add("justify",function(t){t.registerButton({name:"align",group:"indent"});let e=e=>(t.s.focus(),t.s.eachSelection(i=>{if(!i)return;let n=o.Dom.up(i,o.Dom.isBlock,t.editor);n||(n=o.Dom.wrapInline(i,t.o.enterBlock,t)),(0,r.alignElement)(e,n)}),!1);t.registerCommand("justifyfull",e),t.registerCommand("justifyright",e),t.registerCommand("justifyleft",e),t.registerCommand("justifycenter",e)})},64222:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(91206),h=i(63425);class d extends u.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){var e;let i=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=a.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,c.ctrlKey)(t),this.isFragmentFromEditor){let t=this.j.s.sel,e=t&&t.rangeCount?t.getRangeAt(0):null;e&&(this.bufferRange=e.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,e=i,a.Dom.isElement(e)&&e.classList.contains(h.FileBrowserFiles.prototype.getFullElName("item"))&&(i=i.querySelector("img")),a.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;let e=this.j.s.sel,i=this.bufferRange||(e&&e.rangeCount?e.getRangeAt(0):null),o=this.__getWorkFragment(i,t);e&&e.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),o&&this.__insertFragment.call(this,o,i),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(t,e){let i=null;if(!this.draggable&&t)i=this.isCopyMode?t.cloneContents():t.extractContents();else if(this.draggable)if(this.isCopyMode){let[t,e]="1"===(0,c.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];(i=this.j.createInside.element(t)).setAttribute(e,(0,c.attr)(this.draggable,"data-src")||(0,c.attr)(this.draggable,"src")||""),"a"===t&&(i.textContent=(0,c.attr)(i,e)||"")}else i=(0,c.dataBind)(this.draggable,"target");else this.getText(e)&&(i=this.j.createInside.fromHTML(this.getText(e)));return i}__insertFragment(t,e){this.j.s.insertNode(t,!1,!1),e&&t.firstChild&&t.lastChild&&(e.setStartBefore(t.firstChild),e.setEndAfter(t.lastChild),this.j.s.selectRange(e),this.j.e.fire("synchro")),a.Dom.isTag(t,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",t)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(...t){super(...t),(0,o._)(this,"isFragmentFromEditor",!1),(0,o._)(this,"isCopyMode",!1),(0,o._)(this,"startDragPoint",{x:0,y:0}),(0,o._)(this,"draggable",null),(0,o._)(this,"bufferRange",null),(0,o._)(this,"getText",t=>{let e=(0,c.getDataTransfer)(t);return e?e.getData(s.TEXT_HTML)||e.getData(s.TEXT_PLAIN):null})}}(0,n.__decorate)([r.autobind],d.prototype,"onDragStart",null),(0,n.__decorate)([(0,r.throttle)(t=>t.defaultTimeout/10)],d.prototype,"onDrag",null),(0,n.__decorate)([r.autobind],d.prototype,"onDragEnd",null),(0,n.__decorate)([r.autobind],d.prototype,"onDrop",null),l.pluginSystem.add("dragAndDrop",d)},64637:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>'},64831:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>'},64847:function(t,e,i){"use strict";i.d(e,{UIGroup:function(){return o.UIGroup},UIList:function(){return n.UIList},UISeparator:function(){return s.UISeparator},UISpacer:function(){return r.UISpacer}});var o=i(63468),n=i(97959),s=i(35676),r=i(27987)},65015:function(t,e,i){"use strict";i.d(e,{sanitizeAttributes:function(){return s}});var o=i(23211),n=i(65946);function s(t,e,i){return!!(o.Dom.isElement(e)&&(0,n.sanitizeHTMLElement)(e,{safeJavaScriptLink:t.options.cleanHTML.safeJavaScriptLink,removeOnError:t.options.cleanHTML.removeOnError}))||i}},65230:function(t,e,i){"use strict";var o=i(23211),n=i(29434),s=i(5266),r=i(95032),a=i.n(r),l=i(73533),c=i.n(l),u=i(45778);s.Config.prototype.link={formTemplate:u.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},n.Icon.set("link",a()).set("unlink",c()),s.Config.prototype.controls.unlink={exec(t,e){let i=o.Dom.closest(e,"a",t.editor);i&&o.Dom.unwrap(i),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},s.Config.prototype.controls.link={isActive(t){let e=t.s.current();return!!(e&&o.Dom.closest(e,"a",t.editor))},popup:(t,e,i)=>t.e.fire("generateLinkForm.link",e,i),tags:["a"],tooltip:"Insert link"}},65273:function(t,e,i){"use strict";i.d(e,{UIInput:function(){return d}});var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(88475),l=i(93640),c=i(96007),u=i(81488),h=i(29434);class d extends c.UIElement{className(){return"UIInput"}onChangeClear(){this.state.clearButton?r.Dom.after(this.nativeInput,this.clearButton):r.Dom.safeRemove(this.clearButton)}onChangeClassName(t,e){e&&this.container.classList.remove(e),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;let t=this.nativeInput,{name:e,icon:i,type:o,ref:n,required:s,placeholder:a,autocomplete:c,label:u}=this.state;(0,l.attr)(t,"name",e),(0,l.attr)(t,"type",o),(0,l.attr)(t,"data-ref",n||e),(0,l.attr)(t,"ref",n||e),(0,l.attr)(t,"required",s||null),(0,l.attr)(t,"autocomplete",c?null:"off"),(0,l.attr)(t,"placeholder",a?this.j.i18n(a):""),i&&h.Icon.exists(i)?(r.Dom.before(t,this.icon),this.icon.innerHTML=h.Icon.get(i)):r.Dom.safeRemove(this.icon),u?(r.Dom.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(u)):r.Dom.safeRemove(this.label),this.updateValidators()}updateValidators(){this.validators.clear(),this.state.required&&this.validators.add(u.inputValidators.required),this.state.validators?.forEach(t=>{let e=u.inputValidators[t];e&&this.validators.add(e)})}set error(t){this.setMod("has-error",!!t),t?(this.__errorBox.innerText=this.j.i18n(t,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):r.Dom.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(t){this.value!==t&&(this.nativeInput.value=t,this.onChangeValue())}onChangeStateValue(){let t=this.state.value.toString();t!==this.value&&(this.value=t)}onChangeValue(){let{value:t}=this;this.state.value!==t&&(this.state.value=t,this.j.e.fire(this,"change",t),this.state.onChange?.(t))}validate(){this.error="";let t=(0,a.toArray)(this.validators).every(t=>t(this));return this.__markInputInvalid(),t}__markInputInvalid(){this.error?(this.nativeInput.setAttribute("aria-invalid","true"),this.nativeInput.setCustomValidity?.(this.error)):(this.nativeInput.removeAttribute("aria-invalid"),this.nativeInput.setCustomValidity?.(""))}createContainer(t){let e=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),this.wrapper.appendChild(i),e.appendChild(this.wrapper),(0,l.attr)(i,"dir",this.j.o.direction||"auto"),e}createNativeInput(t){return this.j.create.element("input")}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}constructor(t,e){super(t,e),(0,o._)(this,"label",this.j.c.span(this.getFullElName("label"))),(0,o._)(this,"icon",this.j.c.span(this.getFullElName("icon"))),(0,o._)(this,"clearButton",this.j.c.span(this.getFullElName("clear"),h.Icon.get("cancel"))),(0,o._)(this,"state",{...d.defaultState}),(0,o._)(this,"__errorBox",this.j.c.span(this.getFullElName("error"))),(0,o._)(this,"validators",new Set([])),e?.value!==void 0&&(e.value=e.value.toString()),Object.assign(this.state,e),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",t=>{t.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()}).on(this.nativeInput,"input",()=>{this.state.clearButton=!!this.value.length}),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",()=>{this.onChangeFocus()}).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}}(0,o._)(d,"defaultState",{className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]}),(0,n.__decorate)([(0,s.watch)("state.clearButton")],d.prototype,"onChangeClear",null),(0,n.__decorate)([(0,s.watch)("state.className")],d.prototype,"onChangeClassName",null),(0,n.__decorate)([(0,s.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,s.debounce)()],d.prototype,"onChangeState",null),(0,n.__decorate)([(0,s.watch)("state.value")],d.prototype,"onChangeStateValue",null),(0,n.__decorate)([s.autobind],d.prototype,"onChangeValue",null),d=(0,n.__decorate)([s.component],d)},65701:function(t,e,i){"use strict";i(5266).Config.prototype.draggableTags=["img","jodit-media","jodit"]},65710:function(t,e,i){"use strict";i.d(e,{insertParagraph:function(){return s}});var o=i(23211),n=i(60898);function s(t,e,i,s){let r="br"===i.toLowerCase(),{createInside:a}=e,l=a.element(i),c=a.element("br");return r||l.appendChild(c),s&&s.cssText&&l.setAttribute("style",s.cssText),o.Dom.after(t,l),o.Dom.before(r?l:c,t),(0,n.scrollIntoViewIfNeeded)(l,e.editor,e.ed),l}},65946:function(t,e,i){"use strict";i.r(e),i.d(e,{CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},applyStyles:function(){return a.applyStyles},asArray:function(){return o.asArray},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearTimeout:function(){return n.clearTimeout},colorToHex:function(){return r.colorToHex},fuzzySearchIndex:function(){return u.fuzzySearchIndex},getContentWidth:function(){return c.getContentWidth},getScrollParent:function(){return c.getScrollParent},hasBrowserColorPicker:function(){return s.hasBrowserColorPicker},hasContainer:function(){return s.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},i18n:function(){return u.i18n},innerWidth:function(){return c.innerWidth},isAbortError:function(){return s.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return s.isDestructable},isEqual:function(){return s.isEqual},isFastEqual:function(){return s.isFastEqual},isFunction:function(){return s.isFunction},isHTML:function(){return s.isHTML},isHtmlFromWord:function(){return s.isHtmlFromWord},isInitable:function(){return s.isInitable},isInt:function(){return s.isInt},isJoditObject:function(){return s.isJoditObject},isLicense:function(){return s.isLicense},isMarker:function(){return s.isMarker},isNativeFunction:function(){return s.isNativeFunction},isNumber:function(){return s.isNumber},isNumeric:function(){return s.isNumeric},isPlainObject:function(){return s.isPlainObject},isPromise:function(){return s.isPromise},isSet:function(){return s.isSet},isString:function(){return s.isString},isStringArray:function(){return s.isStringArray},isURL:function(){return s.isURL},isValidName:function(){return s.isValidName},isViewObject:function(){return s.isViewObject},isVoid:function(){return s.isVoid},isWindow:function(){return s.isWindow},kebabCase:function(){return u.kebabCase},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return c.offset},position:function(){return c.position},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},setTimeout:function(){return n.setTimeout},size:function(){return c.size},splitArray:function(){return o.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return o.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var o=i(45664),n=i(61077),s=i(28686),r=i(7018),a=i(82658),l=i(97022),c=i(86878),u=i(97642),h=i(93640),d={};for(var f in h)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(f)&&(d[f]=(function(t){return h[t]}).bind(0,f));i.d(e,d)},66547:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>'},66862:function(t,e,i){"use strict";i.d(e,{hasPreviousBlock:function(){return n}});var o=i(23211);function n(t,e){return!!o.Dom.prev(t,t=>o.Dom.isBlock(t)||o.Dom.isImage(t),e.editor)}},67176:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},67399:function(t,e,i){"use strict";i.d(e,{ContextMenu:function(){return l}});var o=i(31635),n=i(91672),s=i(17312),r=i(53681),a=i(51116);class l extends a.Popup{className(){return"ContextMenu"}show(t,e,i){let o=this;o.clear(),(0,s.isArray)(i)&&(i.forEach(t=>{if(!t)return;let e=(0,r.Button)(this.jodit,t.icon||"empty",t.title);this.jodit&&e.setParentView(this.jodit),e.setMod("context","menu"),e.onAction(e=>(t.exec?.call(o,e),o.clear(),o.close(),!1)),this.append(e)}),this.open(()=>({left:t,top:e,width:0,height:0}),!0))}}l=(0,o.__decorate)([n.component],l)},67447:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg>'},67582:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(18855);i(79803);let h=!s.IS_ES_NEXT&&s.IS_IE;class d extends u.Plugin{afterInit(t){t.e.on(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:t}=this;if(!t.o.toolbarSticky||!t.o.toolbar)return;let e=t.ow.pageYOffset||t.od.documentElement&&t.od.documentElement.scrollTop||0,i=(0,c.offset)(t.container,t,t.od,!0),o=t.getMode()===s.MODE_WYSIWYG&&e+t.o.toolbarStickyOffset>i.top&&e+t.o.toolbarStickyOffset<i.top+i.height&&!(t.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===o)return;let n=t.toolbarContainer;n&&(o?this.addSticky(n):this.removeSticky(n)),t.e.fire("toggleSticky",o)}__isMobile(){let{j:t}=this;return t&&t.options&&t.container&&t.options.sizeSM>=t.container.offsetWidth}beforeDestruct(t){a.Dom.safeRemove(this.__dummyBox),t.e.off(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(...t){super(...t),(0,o._)(this,"__isToolbarStuck",!1),(0,o._)(this,"__dummyBox",void 0),(0,o._)(this,"__createDummy",t=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,t)}),(0,o._)(this,"addSticky",t=>{this.__isToolbarStuck||(h&&!this.__dummyBox&&this.__createDummy(t),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,c.css)(t,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,c.css)(this.__dummyBox,{height:t.offsetHeight})}),(0,o._)(this,"removeSticky",t=>{this.__isToolbarStuck&&((0,c.css)(t,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)})}}(0,n.__decorate)([(0,r.throttle)()],d.prototype,"__onScroll",null),l.pluginSystem.add("sticky",d)},68502:function(t,e,i){"use strict";i(37102);var o=i(28686),n=i(37427),s=i(75587),r=i(5266);r.Config.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(t,e)=>(e=e.toLowerCase(),(0,o.isString)(t))?-1!==t.toLowerCase().indexOf(e):(0,o.isString)(t.name)?-1!==t.name.toLowerCase().indexOf(e):!(0,o.isString)(t.file)||-1!==t.file.toLowerCase().indexOf(e),sortBy:"changed-desc",sort(t,e,i){let[s,r]=i.toLowerCase().split("-"),a="asc"===r,l=(t,e)=>e>t?a?-1:1:t>e?a?1:-1:0;if((0,o.isString)(t))return l(t.toLowerCase(),e.toLowerCase());if(void 0===t[s]||"name"===s)return(0,o.isString)(t.name)?l(t.name.toLowerCase(),e.name.toLowerCase()):(0,o.isString)(t.file)?l(t.file.toLowerCase(),e.file.toLowerCase()):0;switch(s){case"changed":{let i=new Date(t.changed).getTime(),o=new Date(e.changed).getTime();return a?i-o:o-i}case"size":{let i=(0,n.humanSizeToBytes)(t.size),o=(0,n.humanSizeToBytes)(e.size);return a?i-o:o-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,o.isArray)(t.data.messages)?t.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(t,e,i){let o=this.options,n=this.files.getFullElName("item"),s=o.showFileName,r=o.showFileSize&&t.size,a=o.showFileChangeTime&&t.time,l="";void 0!==t.file&&(l=t.file);let c=`<div class="${n}-info">${s?`<span class="${n}-info-filename">${l}</span>`:""}${r?`<span class="${n}-info-filesize">${t.size}</span>`:""}${a?`<span class="${n}-info-filechanged">${a}</span>`:""}</div>`;return`<a
209
+ </div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=t.toString()}set count(t){this.countBox.innerText=t.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(t){if(!this.isOpened)return;let{j:e}=this;if(e.getRealMode()===s.MODE_WYSIWYG)switch(t.key){case s.KEY_ESC:this.close();break;case s.KEY_F3:this.queryInput.value&&(e.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,e,i=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let o=t??(this.j.s.sel||"").toString();o&&(this.queryInput.value=o),e&&(this.replaceInput.value=e),this.setMod("empty-query",!o.length),this.j.e.fire(this,"needUpdateCounters"),o?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),a.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){let t=(0,l.position)(this.j.toolbarContainer);(0,l.css)(this.container,{top:t.top+t.height,left:t.left+t.width})}else(0,l.css)(this.container,{top:null,left:null})}constructor(t){super(t),(0,o._)(this,"queryInput",void 0),(0,o._)(this,"replaceInput",void 0),(0,o._)(this,"selInfo",null),(0,o._)(this,"closeButton",void 0),(0,o._)(this,"replaceButton",void 0),(0,o._)(this,"currentBox",void 0),(0,o._)(this,"countBox",void 0),(0,o._)(this,"_currentIndex",0),(0,o._)(this,"isOpened",!1);const{query:e,replace:i,cancel:n,next:r,prev:a,replaceBtn:c,current:u,count:h}=(0,l.refs)(this.container);this.queryInput=e,this.replaceInput=i,this.closeButton=n,this.replaceButton=c,this.currentBox=u,this.countBox=h,t.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{t.s.isFocused()&&(t.s.removeMarkers(),this.selInfo=t.s.save())}).on(this.replaceButton,"pointerdown",()=>(t.e.fire(this,"pressReplaceButton"),!1)).on(r,"pointerdown",()=>(t.e.fire("searchNext"),!1)).on(a,"pointerdown",()=>(t.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,l.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",this.j.async.debounce(async e=>{e.key===s.KEY_ENTER?(e.preventDefault(),e.stopImmediatePropagation(),await t.e.fire("searchNext")&&this.close()):t.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout))}}(0,n.__decorate)([(0,r.watch)([":keydown","queryInput:keydown"])],u.prototype,"onEditorKeyDown",null),(0,n.__decorate)([r.autobind],u.prototype,"open",null),(0,n.__decorate)([r.autobind],u.prototype,"close",null),(0,n.__decorate)([(0,r.watch)(":toggleSticky")],u.prototype,"calcSticky",null),u=(0,n.__decorate)([r.component],u)},58354:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(28077),l=i(65946),c=i(91206);i(87908);var u=i(5070);class h extends c.Plugin{afterInit(t){(0,l.css)(t.editor,{lineHeight:t.o.defaultLineHeight}),t.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(t,e,i){let o,{s:n,createInside:s,editor:a,o:c}=this.j;n.isFocused()||n.focus(),n.save();let u=t=>{let e=r.Dom.closest(t,r.Dom.isBlock,a);e||(e=r.Dom.wrap(t,c.enter,s));let n=(0,l.css)(e,"lineHeight");void 0===o&&(o=n.toString()!==i.toString()),(0,l.css)(e,"lineHeight",o?i:null)};try{if(n.isCollapsed()){let t=s.fake();n.insertNode(t,!1,!1),u(t),r.Dom.safeRemove(t)}else n.eachSelection(u)}finally{n.restore()}}beforeDestruct(t){(0,l.css)(t.editor,{lineHeight:null})}constructor(t){super(t),(0,o._)(this,"buttons",[{name:"lineHeight",group:"font"}]),(0,a.extendLang)(u)}}(0,n.__decorate)([s.autobind],h.prototype,"applyLineHeight",null),a.pluginSystem.add("lineHeight",h)},58446:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg>'},58664:function(t,e,i){"use strict";i.d(e,{FileBrowserItem:function(){return s}});var o=i(25045),n=i(65946);class s{static create(t){return t instanceof s?t:new s(t)}get path(){return(0,n.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){let t=this.time||new Date().getTime().toString(),{thumbIsAbsolute:e,source:i,thumb:o,file:s}=this.data,r=o||s;return e&&r?r:(0,n.normalizeUrl)(i.baseurl,i.path,r||"")+"?_tmst="+encodeURIComponent(t)}get fileURL(){let{name:t}=this.data,{file:e,fileIsAbsolute:i,source:o}=this.data;return void 0!==e&&(t=e),i&&t?t:(0,n.normalizeUrl)(o.baseurl,o.path,t||"")}get time(){let{changed:t}=this.data;return t&&("number"==typeof t?new Date(t).toLocaleString():t)||""}get uniqueHashKey(){let t=this.data;return[t.sourceName,t.name,t.file,this.time,t.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}toJSON(){return this.data}constructor(t){(0,o._)(this,"data",void 0),(0,o._)(this,"source",void 0),(0,o._)(this,"sourceName",void 0),(0,o._)(this,"type",void 0),this.data=t,Object.keys(t).forEach(e=>{this[e]=t[e]})}}},58881:function(t,e,i){"use strict";i.d(e,{checkRemoveChar:function(){return function t(e,i,r,l){var c,u;let h,d=r?-1:1,f=n.Dom.sibling(i,!r),p=n.Dom.sibling(i,r),m=null,g=!1;for(p||(p=a(i,r,e.editor));p&&(n.Dom.isText(p)||n.Dom.isInlineBlock(p));){for(;n.Dom.isInlineBlock(p);)p=r?p?.lastChild:p?.firstChild;if(!p)break;if(p.nodeValue?.length&&(h=function(t,e,i,r){let a=(0,s.toArray)(t.nodeValue),l=a.length,c=e?l-1:0;if(a[c]===o.INVISIBLE_SPACE)for(;a[c]===o.INVISIBLE_SPACE;)c+=i;let u=a[c];if(a[c+i]===o.INVISIBLE_SPACE){for(c+=i;a[c]===o.INVISIBLE_SPACE;)c+=i;c+=e?1:-1}return a=e&&c<0?[]:a.slice(e?0:c+1,e?c:l),function(t,e,i){if(!t||!n.Dom.isText(t)||(!e?/ $/:/^ /).test(t.nodeValue??"")||!(0,s.trimInv)(t.nodeValue||"").length)for(let t=e?i.length-1:0;e?t>=0:t<i.length;t+=e?-1:1)if(" "===i[t])i[t]=o.NBSP_SPACE;else break}(r,e,a),t.nodeValue=a.join(""),u}(p,r,d,f),!p.nodeValue.length&&n.Dom.isInlineBlock(p.parentNode)&&(p.nodeValue=o.INVISIBLE_SPACE)),p.nodeValue?.length||(m=p),!(0,s.isVoid)(h)&&h!==o.INVISIBLE_SPACE){c=p,u=h,(0,s.call)(r?n.Dom.after:n.Dom.before,c,i),("sentence"===l||"word"===l&&" "!==u&&u!==o.NBSP_SPACE)&&t(e,i,r,l),g=!0;break}let _=a(p,r,e.editor);m&&(n.Dom.safeRemove(m),m=null),p=_}return m&&(n.Dom.safeRemove(m),m=null),g&&(function(t){let e=t.parentElement;for(;e&&n.Dom.isInlineBlock(e)&&n.Dom.isTag(e,"a");){let i=e.parentElement;n.Dom.isEmpty(e)&&(n.Dom.after(e,t),n.Dom.safeRemove(e)),e=i}}(i),i.parentElement!==e.editor&&n.Dom.isBlock(i.parentElement)&&n.Dom.each(i.parentElement,n.Dom.isEmptyTextNode)&&n.Dom.after(i,e.createInside.element("br")),e.s.setCursorBefore(i),n.Dom.isTag(i.previousSibling,"br")&&!n.Dom.findNotEmptySibling(i,!1)&&n.Dom.after(i,e.createInside.element("br"))),g}}});var o=i(81937),n=i(27795),s=i(65946),r=i(15200);function a(t,e,i){let o=n.Dom.sibling(t,e);return!o&&t.parentNode&&t.parentNode!==i&&(o=(0,r.findMostNestedNeighbor)(t,!e,i,!0)),o}},58910:function(t,e,i){"use strict";var o=i(25045),n=i(23211),s=i(28077),r=i(71125),a=i(91206),l=i(29434),c=i(5266),u=i(93267),h=i.n(u);c.Config.prototype.controls.classSpan={command:"applyClassName",exec:r.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,e){let i=t.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,t.editor)||t.editor;return!!(e.control.args&&o.classList.contains(e.control.args[0].toString()))}return!1},isActive(t,e){let i=t.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,t.editor)||t.editor,s=!1;return e.control.list&&Object.keys(e.control.list).forEach(t=>{o.classList.contains(t)&&(s=!0)}),!!(o&&o!==t.editor&&void 0!==e.control.list&&s)}return!1},childTemplate:(t,e,i)=>`<span class="${e}">${t.i18n(i)}</span>`,tooltip:"Insert className"};class d extends a.Plugin{afterInit(t){t.registerCommand("applyClassName",(e,i,o)=>(t.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"classSpan",group:"script"}])}}s.pluginSystem.add("classSpan",d),l.Icon.set("class-span",h())},59276:function(t,e,i){"use strict";i.d(e,{SentenceFinder:function(){return s}});var o=i(25045),n=i(57626);class s{add(t){let e=(t.nodeValue??"").toLowerCase();if(!e.length)return;let i=this.value.length;this.queue.push({startIndex:i,endIndex:i+e.length,node:t}),this.value+=e}ranges(t,e=0){let i=[],o=e,n=0,s=0;do if([o,n]=this.searchIndex(t,this.value,o),-1!==o){let t,e=0,r,a=0;for(let i=s;i<this.queue.length;i+=1)if(!t&&this.queue[i].endIndex>o&&(t=this.queue[i].node,e=o-this.queue[i].startIndex),t&&this.queue[i].endIndex>=o+n){r=this.queue[i].node,a=o+n-this.queue[i].startIndex,s=i;break}t&&r&&i.push({startContainer:t,startOffset:e,endContainer:r,endOffset:a}),o+=n}while(-1!==o)return 0===i.length?null:i}constructor(t=n.fuzzySearchIndex){(0,o._)(this,"searchIndex",void 0),(0,o._)(this,"queue",void 0),(0,o._)(this,"value",void 0),this.searchIndex=t,this.queue=[],this.value=""}}},59399:function(t,e){"use strict";e.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table",`
210
+ `,"link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},59400:function(t,e,i){"use strict";i.d(e,{Button:function(){return o.Button},UIButton:function(){return o.UIButton},UIButtonGroup:function(){return n.UIButtonGroup},UIButtonState:function(){return o.UIButtonState},UITooltip:function(){return s.UITooltip}});var o=i(53681),n=i(15367),s=i(95399)},59609:function(t,e,i){"use strict";i.d(e,{ViewComponent:function(){return s}});var o=i(25045),n=i(80251);class s extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...e){return this.j.i18n(t,...e)}setParentView(t){return this.jodit=t,t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),(0,o._)(this,"jodit",void 0),this.setParentView(t)}}},59758:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(28077),r=i(18855),a=i(29434),l=i(5266),c=i(34045),u=i.n(c),h=i(39199),d=i.n(h);a.Icon.set("redo",u()).set("undo",d()),l.Config.prototype.controls.redo={mode:n.MODE_SPLIT,isDisabled:t=>!t.history.canRedo(),tooltip:"Redo"},l.Config.prototype.controls.undo={mode:n.MODE_SPLIT,isDisabled:t=>!t.history.canUndo(),tooltip:"Undo"};class f extends r.Plugin{beforeDestruct(){}afterInit(t){let e=e=>(t.history[e](),!1);t.registerCommand("redo",{exec:e,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),t.registerCommand("undo",{exec:e,hotkeys:["ctrl+z","cmd+z"]})}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"undo",group:"history"},{name:"redo",group:"history"}])}}s.pluginSystem.add("redoUndo",f)},59807:function(t,e,i){"use strict";i.d(e,{LocalStorageProvider:function(){return s},canUsePersistentStorage:function(){return n}});var o=i(25045);let n=(t="localStorage")=>{let e=new Map;if(e.has(t))return e.get(t);let i="___Jodit___"+Math.random().toString(),o="sessionStorage"===t?sessionStorage:localStorage;try{o.setItem(i,"1");let n="1"===o.getItem(i);return o.removeItem(i),e.set(t,n),n}catch{}return e.set(t,!1),!1};class s{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(t,e){try{let i=this.storage.getItem(this.rootKey),o=i?JSON.parse(i):{};o[t]=e,this.storage.setItem(this.rootKey,JSON.stringify(o))}catch{}return this}delete(t){try{this.storage.removeItem(this.rootKey)}catch{}return this}get(t){try{let e=this.storage.getItem(this.rootKey),i=e?JSON.parse(e):{};return void 0!==i[t]?i[t]:void 0}catch{}}exists(t){return null!=this.get(t)}clear(){try{this.storage.removeItem(this.rootKey)}catch{}return this}constructor(t,e="localStorage"){(0,o._)(this,"rootKey",void 0),(0,o._)(this,"strategy",void 0),this.rootKey=t,this.strategy=e}}},59827:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},59841:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return n.CommitStyle},INITIAL:function(){return s.INITIAL},REPLACE:function(){return s.REPLACE},Selection:function(){return o.Selection},UNSET:function(){return s.UNSET},UNWRAP:function(){return s.UNWRAP},WRAP:function(){return s.WRAP}});var o=i(98595),n=i(84578),s=i(98394)},60162:function(t,e,i){"use strict";var o=i(36400),n=i(29434),s=i(5266),r=i(40037),a=i.n(r),l=i(83207),c=i.n(l);let u=(t,e,{control:i})=>{let n="button"+i.command,s=(i.args&&i.args[0])??(0,o.dataBind)(t,n);(0,o.dataBind)(t,n,s),t.execCommand(i.command,!1,"default"===s?null:s)};n.Icon.set("ol",a()).set("ul",c()),s.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:u},s.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:u}},60216:function(t,e,i){"use strict";i.d(e,{Eventify:function(){return n}});var o=i(25045);class n{on(t,e){return this.__map.has(t)||this.__map.set(t,new Set),this.__map.get(t)?.add(e),this}off(t,e){return this.__map.has(t)&&this.__map.get(t)?.delete(e),this}destruct(){this.__map.clear()}emit(t,...e){let i;return this.__map.has(t)&&this.__map.get(t)?.forEach(t=>{i=t(...e)}),i}constructor(){(0,o._)(this,"__map",new Map)}}},60636:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg>'},60898:function(t,e,i){"use strict";i.d(e,{inView:function(){return n},scrollIntoViewIfNeeded:function(){return s}});var o=i(23211);function n(t,e,i){let o=t.getBoundingClientRect(),n=t,s=o.top,r=o.height;for(;n&&n!==e&&n.parentNode;)if(!(s<=(o=(n=n.parentNode).getBoundingClientRect()).bottom)||s+r<=o.top)return!1;return s<=(i.documentElement&&i.documentElement.clientHeight||0)}function s(t,e,i){o.Dom.isHTMLElement(t)&&!n(t,e,i)&&(e.clientHeight!==e.scrollHeight&&(e.scrollTop=t.offsetTop),n(t,e,i)||t.scrollIntoView())}},60936:function(t,e,i){"use strict";i.r(e),i.d(e,{Ajax:function(){return f.Ajax},Alert:function(){return r.Alert},Async:function(){return l.Async},AsyncStorage:function(){return k.AsyncStorage},Button:function(){return p.Button},CommitStyle:function(){return D.CommitStyle},Component:function(){return o.Component},Confirm:function(){return r.Confirm},ContextMenu:function(){return s.ContextMenu},Create:function(){return c.Create},Dialog:function(){return r.Dialog},Dom:function(){return u.Dom},EventEmitter:function(){return h.EventEmitter},EventHandlersStore:function(){return h.EventHandlersStore},Eventify:function(){return h.Eventify},FileBrowser:function(){return a.FileBrowser},Helpers:function(){return n},History:function(){return _.History},Icon:function(){return p.Icon},ImageEditor:function(){return b.ImageEditor},IndexedDBProvider:function(){return k.IndexedDBProvider},LazyWalker:function(){return u.LazyWalker},LocalStorageProvider:function(){return k.LocalStorageProvider},MemoryStorageProvider:function(){return k.MemoryStorageProvider},Plugin:function(){return d.Plugin},PluginSystem:function(){return x.PluginSystem},Popup:function(){return p.Popup},ProgressBar:function(){return p.ProgressBar},Prompt:function(){return r.Prompt},Response:function(){return f.Response},STATUSES:function(){return o.STATUSES},Selection:function(){return D.Selection},Snapshot:function(){return v.Snapshot},StatusBar:function(){return w.StatusBar},Storage:function(){return k.Storage},StorageKey:function(){return k.StorageKey},Table:function(){return S.Table},ToolbarButton:function(){return C.ToolbarButton},ToolbarCollection:function(){return E.ToolbarCollection},ToolbarContent:function(){return C.ToolbarContent},ToolbarEditorCollection:function(){return I.ToolbarEditorCollection},ToolbarSelect:function(){return C.ToolbarSelect},UIBlock:function(){return p.UIBlock},UIButton:function(){return p.UIButton},UIButtonGroup:function(){return p.UIButtonGroup},UIButtonState:function(){return p.UIButtonState},UICheckbox:function(){return p.UICheckbox},UIElement:function(){return p.UIElement},UIFileInput:function(){return p.UIFileInput},UIForm:function(){return p.UIForm},UIGroup:function(){return p.UIGroup},UIInput:function(){return p.UIInput},UIList:function(){return p.UIList},UIMessages:function(){return y.UIMessages},UISelect:function(){return p.UISelect},UISeparator:function(){return p.UISeparator},UISpacer:function(){return p.UISpacer},UITextArea:function(){return p.UITextArea},UITooltip:function(){return p.UITooltip},Uploader:function(){return T.Uploader},View:function(){return m.View},ViewComponent:function(){return o.ViewComponent},ViewWithToolbar:function(){return g.ViewWithToolbar},canUseIndexedDB:function(){return k.canUseIndexedDB},canUsePersistentStorage:function(){return k.canUsePersistentStorage},clearUseIndexedDBCache:function(){return k.clearUseIndexedDBCache},defaultNameSpace:function(){return h.defaultNameSpace},observable:function(){return h.observable}});var o=i(16964),n=i(65946),s=i(67399),r=i(37333),a=i(17610),l=i(91231),c=i(79821),u=i(27795),h=i(1496),d=i(91206),f=i(73714),p=i(4099),m=i(35099),g=i(2222),_=i(53855),v=i(46363),b=i(43271),y=i(10081),w=i(29433),S=i(98803),C=i(39709),E=i(42573),I=i(6209),T=i(94925),x=i(85305),D=i(59841),k=i(25222)},61077:function(t,e,i){"use strict";i.d(e,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=i(79947)},61334:function(t,e,i){"use strict";var o=i(27795),n=i(93640),s=i(29434),r=i(31125),a=i(18272),l=i(1305),c=i(53202),u=i(34269),h=i(43271);let d="jodit-file-browser-preview",f=(t="next",e="right")=>`<div class="${d}__navigation ${d}__navigation_arrow_${t}">`+s.Icon.get("angle-"+e)+"</a>";e.default=t=>{if(!t.o.contextMenu)return()=>{};let e=(0,a.makeContextMenu)(t);return i=>{let s=(0,u.getItem)(i.target,t.container);if(!s)return;let a=s,p=t.options,m=t=>(0,n.attr)(a,t)||"";return t.async.setTimeout(()=>{let g=(0,u.elementToItem)(s,(0,r.elementsMap)(t));g&&(t.state.activeElements=[g],e.show(i.clientX,i.clientY,[!!("1"!==m("data-is-file")&&p.editImage&&(t.dataProvider.canI("ImageResize")||t.dataProvider.canI("ImageCrop")))&&{icon:"pencil",title:"Edit",exec:()=>h.openImageEditor.call(t,m("href"),m("data-name"),m("data-path"),m("data-source"))},!!t.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){t.e.fire("fileRename.filebrowser",m("data-name"),m("data-path"),m("data-source"))}},!!t.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await (0,l.deleteFile)(t,m("data-name"),m("data-source"))}catch(e){return t.status(e)}return t.state.activeElements=[],(0,c.loadTree)(t).catch(t.status)}},!!p.preview&&{icon:"eye",title:"Preview",exec(){let e=t.dlg({buttons:["fullsize","dialog.close"]}),i=t.c.div(d,'<div class="jodit-icon_loader"></div>'),s=t.c.div(d+"__box"),r=t.c.fromHTML(f()),l=t.c.fromHTML(f("prev","left")),c=n=>{let c=t.c.element("img");c.setAttribute("src",n);let u=()=>{t.isInDestruct||(t.e.off(c,"load"),o.Dom.detach(i),p.showPreviewNavigation&&(o.Dom.prevWithClass(a,t.files.getFullElName("item"))&&i.appendChild(l),o.Dom.nextWithClass(a,t.files.getFullElName("item"))&&i.appendChild(r)),i.appendChild(s),s.appendChild(c),e.setPosition(),t?.events?.fire("previewOpenedAndLoaded"))};t.e.on(c,"load",u),c.complete&&u()};t.e.on([r,l],"click",function(){if(!(a=this===r?o.Dom.nextWithClass(a,t.files.getFullElName("item")):o.Dom.prevWithClass(a,t.files.getFullElName("item"))))throw(0,n.error)("Need element");o.Dom.detach(i),o.Dom.detach(s),i.innerHTML='<div class="jodit-icon_loader"></div>',c(m("href"))}),t.e.on("beforeDestruct",()=>{e.destruct()}),e.container.classList.add(d+"__dialog"),e.setContent(i),e.setPosition(),e.open(),c(m("href")),t.events.on("beforeDestruct",()=>{e.destruct()}).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){let e=m("href");e&&t.ow.open(e)}}]))},t.defaultTimeout),t.e.on("beforeClose",()=>{e.close()}).on("beforeDestruct",()=>e.destruct()),i.stopPropagation(),i.preventDefault(),!1}}},61466:function(t,e,i){"use strict";i.d(e,{UIMessage:function(){return r}});var o=i(31635),n=i(91672),s=i(4099);class r extends s.UIElement{className(){return"UIMessage"}constructor(t,e){super(t),this.setMod("active",!0),this.setMod("variant",e.variant),this.container.textContent=e.text}}r=(0,o.__decorate)([n.component],r)},61764:function(t,e,i){"use strict";i.d(e,{ToolbarSelect:function(){return l}});var o=i(31635),n=i(84839),s=i(62101),r=i(85932),a=i(22533);class l extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){super.update(),this.state.icon.name="";let{list:t,data:e}=this.control;if(t){let i=this.state.value||(e&&(0,r.isString)(e.currentValue)?e.currentValue:void 0);i||(i=Object.keys(t)[0]);let o=((0,s.isPlainObject)(t)&&t[i.toString()]||i).toString();this.state.text=this.control.textTemplate?.(this.jodit,o)??o}}}l=(0,o.__decorate)([n.component],l)},62101:function(t,e,i){"use strict";i.d(e,{isPlainObject:function(){return n}});var o=i(3513);function n(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},62623:function(t,e,i){"use strict";i.d(e,{FileBrowser:function(){return C}});var o=i(25045),n=i(31635),s=i(16964),r=i(81937),a=i(84839),l=i(68616),c=i(1496),u=i(65946),h=i(25222),d=i(80512),f=i(2222),p=i(5266);i(68502);var m=i(1488),g=i(53202),_=i(34269),v=i(36664),b=i(74833),y=i(17780),w=i(18272),S=i(63425);class C extends f.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,w.makeDataProvider)(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){let e=[],i=[];this.state.activeElements.forEach(t=>{let o=t.fileURL;o&&(e.push(o),i.push(t.isImage||!1))}),this.close(),(0,u.isFunction)(t)&&t({baseurl:"",files:e,isImages:i}),this.close()}return!1}}get _dialog(){let t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:this.o.headerButtons??["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(e=>t.events.on(t,e,()=>this.e.fire(e))),t.setSize(this.o.width,this.o.height),t}get storage(){return h.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,e){!t||(0,u.isAbortError)(t)||((0,u.isString)(t)||(t=t.message),(0,u.isString)(t)&&(0,u.trim)(t).length&&this.message.message(t,e?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,e=!1){return this.state.onlyImages=e,this.async.promise((e,i)=>{if(!this.o.items||!this.o.items.url)throw(0,u.error)("Need set options.filebrowser.ajax.url");let o=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",()=>{let e=new Date().getTime();e-o<r.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(t)(),o=e}).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));let n=this.c.div();this.toolbar?.appendTo(n),this.__updateToolbarButtons(),this._dialog.open(this.browser,n),this.e.fire("sort.filebrowser",this.state.sortBy),(0,g.loadTree)(this).then(e,i).finally(()=>{this.isInDestruct||this?.e?.fire("fileBrowserReady.filebrowser")})}).catch(t=>{if(!(0,u.isAbortError)(t)&&!r.IS_PROD)throw t})}__getButtons(){return(this.o.buttons??[]).filter(t=>{if(!(0,u.isString)(t))return!0;switch(t){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(t){let e=this,i=t?.options?.uploader,o=(0,u.ConfigProto)(i||{},p.Config.defaultOptions.uploader),n=()=>(0,m.loadItems)(this);e.uploader=e.getInstance("Uploader",o),e.uploader.setPath(e.state.currentPath).setSource(e.state.currentSource).bind(e.browser,n,e.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),e.e.on("bindUploader.filebrowser",t=>{e.uploader.bind(t,n,e.errorHandler)})}destruct(){!this.isInDestruct&&((0,a.cached)(this,"_dialog")?.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){let t=this.__getButtons();!function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}(this.__prevButtons,t)&&(this.__prevButtons=t,this.toolbar?.build(t))}constructor(t){super(t),(0,o._)(this,"browser",this.c.div(this.componentName)),(0,o._)(this,"status_line",this.c.div(this.getFullElName("status"))),(0,o._)(this,"tree",new S.FileBrowserTree(this)),(0,o._)(this,"files",new S.FileBrowserFiles(this)),(0,o._)(this,"state",(0,c.observable)({currentPath:"",currentSource:y.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1})),(0,o._)(this,"errorHandler",t=>{(0,u.isAbortError)(t)||(t instanceof Error?this.status(this.i18n(t.message)):this.status(this.dataProvider.getMessage(t)))}),(0,o._)(this,"uploader",void 0),(0,o._)(this,"close",()=>{this._dialog.close()}),(0,o._)(this,"__prevButtons",[]),this.attachEvents(t),this.options=(0,u.ConfigProto)(t||{},p.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&this.browser.appendChild(this.tree.container),this.browser.appendChild(this.files.container),this.browser.appendChild(this.status_line),v.selfListeners.call(this),_.nativeListeners.call(this),b.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,u.ConfigProto)(this.options[t],this.o.ajax))});const{storeView:e,storeSortBy:i,storeLastOpenedFolder:n}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},r=e&&this.storage.get("view");r&&null==this.o.view?this.state.view="list"===r?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);const a=i&&this.storage.get("sortBy");if(a){const t=a.split("-");this.state.sortBy=["changed","name","size"].includes(t[0])?a:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(n){const t=this.storage.get("currentPath"),e=this.storage.get("currentSource");this.state.currentPath=t??"",this.state.currentSource=e??""}this.initUploader(this),this.setStatus(s.STATUSES.ready)}}(0,n.__decorate)([a.cache],C.prototype,"dataProvider",null),(0,n.__decorate)([a.cache],C.prototype,"_dialog",null),(0,n.__decorate)([a.cache],C.prototype,"storage",null),(0,n.__decorate)([a.autobind],C.prototype,"status",null),(0,n.__decorate)([a.autobind],C.prototype,"open",null),(0,n.__decorate)([(0,l.watch)("dataProvider:changePermissions")],C.prototype,"__updateToolbarButtons",null),C=(0,n.__decorate)([(0,a.derive)(d.Dlgs)],C)},63425:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return n.FileBrowserTree}});var o=i(86122),n=i(55376)},63468:function(t,e,i){"use strict";i.d(e,{UIGroup:function(){return u}});var o=i(25045),n=i(31635),s=i(80251),r=i(84839),a=i(23211),l=i(65946),c=i(96007);class u extends c.UIElement{className(){return"UIGroup"}get allChildren(){let t=[],e=[...this.elements];for(;e.length;){let i=e.shift();(0,l.isArray)(i)?e.push(...i):s.Component.isInstanceOf(i,u)?e.push(...i.elements):i&&t.push(i)}return t}update(){this.elements.forEach(t=>t.update()),this.setMod("size",this.buttonSize)}append(t,e){let i;if((0,l.isArray)(t)){if("number"==typeof e)throw Error("You can not use index when append array of elements");return t.forEach(t=>this.append(t,e)),this}if("number"==typeof e?(i=Math.min(Math.max(0,e),this.elements.length),this.elements.splice(i,0,t)):this.elements.push(t),t.name&&t.container.classList.add(this.getFullElName(t.name)),e&&"string"==typeof e){let i=this.getElm(e);if(null==i)throw Error("Element does not exist");i.appendChild(t.container)}else this.appendChildToContainer(t.container,i);return t.parentElement=this,this}afterSetMod(t,e){this.syncMod&&this.elements.forEach(i=>i.setMod(t,e))}appendChildToContainer(t,e){void 0===e||e<0||e>this.elements.length-1||null==this.container.children[e]?this.container.appendChild(t):this.container.insertBefore(t,this.container.children[e])}remove(t){let e=this.elements.indexOf(t);return -1!==e&&(this.elements.splice(e,1),a.Dom.safeRemove(t.container),t.parentElement=null),this}clear(){return this.elements.forEach(t=>t.destruct()),this.elements.length=0,this}setParentView(t){return this.elements?.forEach(e=>e.setParentView(t)),super.setParentView(t)}destruct(){return this.clear(),super.destruct()}constructor(t,e,i){super(t,i),(0,o._)(this,"options",void 0),(0,o._)(this,"syncMod",void 0),(0,o._)(this,"elements",void 0),(0,o._)(this,"buttonSize",void 0),this.options=i,this.syncMod=!1,this.elements=[],this.buttonSize="middle",e?.forEach(t=>t&&this.append(t)),i?.name&&(this.name=i.name)}}(0,n.__decorate)([(0,r.watch)("buttonSize")],u.prototype,"update",null),u=(0,n.__decorate)([r.component],u)},63837:function(t){t.exports.default={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},63974:function(t,e,i){"use strict";var o=i(25045),n=i(27795),s=i(28077),r=i(65946),a=i(4040),l=i(91206);class c extends l.Plugin{afterInit(t){t.e.on("afterCommand.delete",t=>{"delete"===t&&this.__afterDeleteCommand()}),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){let t=this.j,e=t.s.current();if(e&&n.Dom.isTag(e.firstChild,"br")&&t.s.removeNode(e.firstChild),!(0,a.trim)(t.editor.textContent||"")&&!t.editor.querySelector("img,table,jodit,iframe,hr")&&(!e||!n.Dom.closest(e,"table",t.editor))){t.editor.innerHTML="";let e=t.s.setCursorIn(t.editor);t.s.removeNode(e)}}__onDeleteCommand(){let{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();let e=t.s.range;e.deleteContents();let i=t.createInside.fake();e.insertNode(i);let o=n.Dom.findSibling(i,!0),s=n.Dom.findSibling(i,!1);return this.__moveContentInLeftSibling(i,o,s),e.setStartBefore(i),e.collapse(!0),this.__moveCursorInEditableSibling(t,o,i,e),this.__addBrInEmptyBlock(i,s,e),n.Dom.safeRemove(i),t.s.selectRange(e),!1}__moveContentInLeftSibling(t,e,i){e=this.__defineRightLeftBox(e),!n.Dom.isList(i)&&!n.Dom.isTag(i,"table")&&n.Dom.isBlock(i)&&n.Dom.isBlock(e)&&(n.Dom.append(e,t),n.Dom.moveContent(i,e),n.Dom.safeRemove(i)),n.Dom.isList(i)&&n.Dom.isLeaf(i.firstElementChild)&&n.Dom.isEmpty(i.firstElementChild)&&n.Dom.safeRemove(i.firstElementChild)}__defineRightLeftBox(t){if(!n.Dom.isList(t))return t;let e=t.lastElementChild;return n.Dom.isLeaf(e)||(e=this.j.createInside.element("li"),n.Dom.append(t,e)),e}__addBrInEmptyBlock(t,e,i){let o=this.j;if(t.isConnected&&n.Dom.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){let e=o.createInside.element("br");n.Dom.after(t,e),i.setStartBefore(e),i.collapse(!0)}if(n.Dom.isTag(e,"table")){let t=(0,r.$$)("td,th",e).shift();n.Dom.isCell(t)&&n.Dom.isEmpty(t)&&n.Dom.append(t,o.createInside.element("br"))}}__moveCursorInEditableSibling(t,e,i,o){if(!e||!n.Dom.isText(e)){let e=n.Dom.closest(i,n.Dom.isBlock,t.editor)??t.editor,s=n.Dom.prev(i,n.Dom.isText,e);s&&(o.setStartAfter(s),o.collapse(!0),n.Dom.safeRemove(i))}}}(0,o._)(c,"requires",["backspace"]),s.pluginSystem.add("deleteCommand",c)},64094:function(t,e,i){"use strict";var o=i(23211),n=i(28077),s=i(65946),r=i(16849),a=i(80991),l=i(29434),c=i(5266),u=i(80515),h=i.n(u);l.Icon.set("justify",h()),c.Config.prototype.controls.align={name:"left",tooltip:"Align",update(t,e){let i=e.control,n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isBlock,t.editor)||t.editor,l=(0,a.css)(r,"text-align").toString();i.defaultValue&&-1!==i.defaultValue.indexOf(l)&&(l="left");let{list:c,data:u}=i;u&&u.currentValue!==l&&c&&((0,s.isPlainObject)(c)?c[l]:c.includes(l))&&(t.o.textIcons||"select"===i.component?e.state.text=l:e.state.icon.name=l,u.currentValue=l)}},isActive(t,e){let i=t.s.current();if(!i||!e.control.defaultValue)return!1;let n=o.Dom.closest(i,o.Dom.isBlock,t.editor)||t.editor;return -1===e.control.defaultValue.indexOf((0,a.css)(n,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},n.pluginSystem.add("justify",function(t){t.registerButton({name:"align",group:"indent"});let e=e=>(t.s.focus(),t.s.eachSelection(i=>{if(!i)return;let n=o.Dom.up(i,o.Dom.isBlock,t.editor);n||(n=o.Dom.wrapInline(i,t.o.enterBlock,t)),(0,r.alignElement)(e,n)}),!1);t.registerCommand("justifyfull",e),t.registerCommand("justifyright",e),t.registerCommand("justifyleft",e),t.registerCommand("justifycenter",e)})},64222:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(91206),h=i(63425);class d extends u.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){var e;let i=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=a.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,c.ctrlKey)(t),this.isFragmentFromEditor){let t=this.j.s.sel,e=t&&t.rangeCount?t.getRangeAt(0):null;e&&(this.bufferRange=e.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,e=i,a.Dom.isElement(e)&&e.classList.contains(h.FileBrowserFiles.prototype.getFullElName("item"))&&(i=i.querySelector("img")),a.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;let e=this.j.s.sel,i=this.bufferRange||(e&&e.rangeCount?e.getRangeAt(0):null),o=this.__getWorkFragment(i,t);e&&e.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),o&&this.__insertFragment.call(this,o,i),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(t,e){let i=null;if(!this.draggable&&t)i=this.isCopyMode?t.cloneContents():t.extractContents();else if(this.draggable)if(this.isCopyMode){let[t,e]="1"===(0,c.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];(i=this.j.createInside.element(t)).setAttribute(e,(0,c.attr)(this.draggable,"data-src")||(0,c.attr)(this.draggable,"src")||""),"a"===t&&(i.textContent=(0,c.attr)(i,e)||"")}else i=(0,c.dataBind)(this.draggable,"target");else this.getText(e)&&(i=this.j.createInside.fromHTML(this.getText(e)));return i}__insertFragment(t,e){this.j.s.insertNode(t,!1,!1),e&&t.firstChild&&t.lastChild&&(e.setStartBefore(t.firstChild),e.setEndAfter(t.lastChild),this.j.s.selectRange(e),this.j.e.fire("synchro")),a.Dom.isTag(t,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",t)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(...t){super(...t),(0,o._)(this,"isFragmentFromEditor",!1),(0,o._)(this,"isCopyMode",!1),(0,o._)(this,"startDragPoint",{x:0,y:0}),(0,o._)(this,"draggable",null),(0,o._)(this,"bufferRange",null),(0,o._)(this,"getText",t=>{let e=(0,c.getDataTransfer)(t);return e?e.getData(s.TEXT_HTML)||e.getData(s.TEXT_PLAIN):null})}}(0,n.__decorate)([r.autobind],d.prototype,"onDragStart",null),(0,n.__decorate)([(0,r.throttle)(t=>t.defaultTimeout/10)],d.prototype,"onDrag",null),(0,n.__decorate)([r.autobind],d.prototype,"onDragEnd",null),(0,n.__decorate)([r.autobind],d.prototype,"onDrop",null),l.pluginSystem.add("dragAndDrop",d)},64637:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg>'},64831:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg>'},64847:function(t,e,i){"use strict";i.d(e,{UIGroup:function(){return o.UIGroup},UIList:function(){return n.UIList},UISeparator:function(){return s.UISeparator},UISpacer:function(){return r.UISpacer}});var o=i(63468),n=i(97959),s=i(35676),r=i(27987)},65015:function(t,e,i){"use strict";i.d(e,{sanitizeAttributes:function(){return s}});var o=i(23211),n=i(65946);function s(t,e,i){return!!(o.Dom.isElement(e)&&(0,n.sanitizeHTMLElement)(e,{safeJavaScriptLink:t.options.cleanHTML.safeJavaScriptLink,removeOnError:t.options.cleanHTML.removeOnError}))||i}},65230:function(t,e,i){"use strict";var o=i(23211),n=i(29434),s=i(5266),r=i(95032),a=i.n(r),l=i(73533),c=i.n(l),u=i(45778);s.Config.prototype.link={formTemplate:u.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},n.Icon.set("link",a()).set("unlink",c()),s.Config.prototype.controls.unlink={exec(t,e){let i=o.Dom.closest(e,"a",t.editor);i&&o.Dom.unwrap(i),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},s.Config.prototype.controls.link={isActive(t){let e=t.s.current();return!!(e&&o.Dom.closest(e,"a",t.editor))},popup:(t,e,i)=>t.e.fire("generateLinkForm.link",e,i),tags:["a"],tooltip:"Insert link"}},65273:function(t,e,i){"use strict";i.d(e,{UIInput:function(){return d}});var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(88475),l=i(93640),c=i(96007),u=i(81488),h=i(29434);class d extends c.UIElement{className(){return"UIInput"}onChangeClear(){this.state.clearButton?r.Dom.after(this.nativeInput,this.clearButton):r.Dom.safeRemove(this.clearButton)}onChangeClassName(t,e){e&&this.container.classList.remove(e),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;let t=this.nativeInput,{name:e,icon:i,type:o,ref:n,required:s,placeholder:a,autocomplete:c,label:u}=this.state;(0,l.attr)(t,"name",e),(0,l.attr)(t,"type",o),(0,l.attr)(t,"data-ref",n||e),(0,l.attr)(t,"ref",n||e),(0,l.attr)(t,"required",s||null),(0,l.attr)(t,"autocomplete",c?null:"off"),(0,l.attr)(t,"placeholder",a?this.j.i18n(a):""),i&&h.Icon.exists(i)?(r.Dom.before(t,this.icon),this.icon.innerHTML=h.Icon.get(i)):r.Dom.safeRemove(this.icon),u?(r.Dom.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(u)):r.Dom.safeRemove(this.label),this.updateValidators()}updateValidators(){this.validators.clear(),this.state.required&&this.validators.add(u.inputValidators.required),this.state.validators?.forEach(t=>{let e=u.inputValidators[t];e&&this.validators.add(e)})}set error(t){this.setMod("has-error",!!t),t?(this.__errorBox.innerText=this.j.i18n(t,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):r.Dom.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(t){this.value!==t&&(this.nativeInput.value=t,this.onChangeValue())}onChangeStateValue(){let t=this.state.value.toString();t!==this.value&&(this.value=t)}onChangeValue(){let{value:t}=this;this.state.value!==t&&(this.state.value=t,this.j.e.fire(this,"change",t),this.state.onChange?.(t))}validate(){this.error="";let t=(0,a.toArray)(this.validators).every(t=>t(this));return this.__markInputInvalid(),t}__markInputInvalid(){this.error?(this.nativeInput.setAttribute("aria-invalid","true"),this.nativeInput.setCustomValidity?.(this.error)):(this.nativeInput.removeAttribute("aria-invalid"),this.nativeInput.setCustomValidity?.(""))}createContainer(t){let e=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());let{nativeInput:i}=this;return i.classList.add(this.getFullElName("input")),this.wrapper.appendChild(i),e.appendChild(this.wrapper),(0,l.attr)(i,"dir",this.j.o.direction||"auto"),e}createNativeInput(t){return this.j.create.element("input")}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}constructor(t,e){super(t,e),(0,o._)(this,"label",this.j.c.span(this.getFullElName("label"))),(0,o._)(this,"icon",this.j.c.span(this.getFullElName("icon"))),(0,o._)(this,"clearButton",this.j.c.span(this.getFullElName("clear"),h.Icon.get("cancel"))),(0,o._)(this,"state",{...d.defaultState}),(0,o._)(this,"__errorBox",this.j.c.span(this.getFullElName("error"))),(0,o._)(this,"validators",new Set([])),e?.value!==void 0&&(e.value=e.value.toString()),Object.assign(this.state,e),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",t=>{t.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()}).on(this.nativeInput,"input",()=>{this.state.clearButton=!!this.value.length}),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",()=>{this.onChangeFocus()}).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}}(0,o._)(d,"defaultState",{className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]}),(0,n.__decorate)([(0,s.watch)("state.clearButton")],d.prototype,"onChangeClear",null),(0,n.__decorate)([(0,s.watch)("state.className")],d.prototype,"onChangeClassName",null),(0,n.__decorate)([(0,s.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,s.debounce)()],d.prototype,"onChangeState",null),(0,n.__decorate)([(0,s.watch)("state.value")],d.prototype,"onChangeStateValue",null),(0,n.__decorate)([s.autobind],d.prototype,"onChangeValue",null),d=(0,n.__decorate)([s.component],d)},65701:function(t,e,i){"use strict";i(5266).Config.prototype.draggableTags=["img","jodit-media","jodit"]},65710:function(t,e,i){"use strict";i.d(e,{insertParagraph:function(){return s}});var o=i(23211),n=i(60898);function s(t,e,i,s){let r="br"===i.toLowerCase(),{createInside:a}=e,l=a.element(i),c=a.element("br");return r||l.appendChild(c),s&&s.cssText&&l.setAttribute("style",s.cssText),o.Dom.after(t,l),o.Dom.before(r?l:c,t),(0,n.scrollIntoViewIfNeeded)(l,e.editor,e.ed),l}},65946:function(t,e,i){"use strict";i.r(e),i.d(e,{CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},applyStyles:function(){return a.applyStyles},asArray:function(){return o.asArray},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearTimeout:function(){return n.clearTimeout},colorToHex:function(){return r.colorToHex},fuzzySearchIndex:function(){return u.fuzzySearchIndex},getContentWidth:function(){return c.getContentWidth},getScrollParent:function(){return c.getScrollParent},hasBrowserColorPicker:function(){return s.hasBrowserColorPicker},hasContainer:function(){return s.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},i18n:function(){return u.i18n},innerWidth:function(){return c.innerWidth},isAbortError:function(){return s.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return s.isDestructable},isEqual:function(){return s.isEqual},isFastEqual:function(){return s.isFastEqual},isFunction:function(){return s.isFunction},isHTML:function(){return s.isHTML},isHtmlFromWord:function(){return s.isHtmlFromWord},isInitable:function(){return s.isInitable},isInt:function(){return s.isInt},isJoditObject:function(){return s.isJoditObject},isLicense:function(){return s.isLicense},isMarker:function(){return s.isMarker},isNativeFunction:function(){return s.isNativeFunction},isNumber:function(){return s.isNumber},isNumeric:function(){return s.isNumeric},isPlainObject:function(){return s.isPlainObject},isPromise:function(){return s.isPromise},isSet:function(){return s.isSet},isString:function(){return s.isString},isStringArray:function(){return s.isStringArray},isURL:function(){return s.isURL},isValidName:function(){return s.isValidName},isViewObject:function(){return s.isViewObject},isVoid:function(){return s.isVoid},isWindow:function(){return s.isWindow},kebabCase:function(){return u.kebabCase},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return c.offset},position:function(){return c.position},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},setTimeout:function(){return n.setTimeout},size:function(){return c.size},splitArray:function(){return o.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return o.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var o=i(45664),n=i(61077),s=i(28686),r=i(7018),a=i(82658),l=i(97022),c=i(86878),u=i(97642),h=i(93640),d={};for(var f in h)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(f)&&(d[f]=(function(t){return h[t]}).bind(0,f));i.d(e,d)},66547:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg>'},66862:function(t,e,i){"use strict";i.d(e,{hasPreviousBlock:function(){return n}});var o=i(23211);function n(t,e){return!!o.Dom.prev(t,t=>o.Dom.isBlock(t)||o.Dom.isImage(t),e.editor)}},67176:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},67399:function(t,e,i){"use strict";i.d(e,{ContextMenu:function(){return l}});var o=i(31635),n=i(91672),s=i(17312),r=i(53681),a=i(51116);class l extends a.Popup{className(){return"ContextMenu"}show(t,e,i){let o=this;o.clear(),(0,s.isArray)(i)&&(i.forEach(t=>{if(!t)return;let e=(0,r.Button)(this.jodit,t.icon||"empty",t.title);this.jodit&&e.setParentView(this.jodit),e.setMod("context","menu"),e.onAction(e=>(t.exec?.call(o,e),o.clear(),o.close(),!1)),this.append(e)}),this.open(()=>({left:t,top:e,width:0,height:0}),!0))}}l=(0,o.__decorate)([n.component],l)},67447:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg>'},67582:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(18855);i(79803);let h=!s.IS_ES_NEXT&&s.IS_IE;class d extends u.Plugin{afterInit(t){t.e.on(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:t}=this;if(!t.o.toolbarSticky||!t.o.toolbar)return;let e=t.ow.pageYOffset||t.od.documentElement&&t.od.documentElement.scrollTop||0,i=(0,c.offset)(t.container,t,t.od,!0),o=t.getMode()===s.MODE_WYSIWYG&&e+t.o.toolbarStickyOffset>i.top&&e+t.o.toolbarStickyOffset<i.top+i.height&&!(t.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===o)return;let n=t.toolbarContainer;n&&(o?this.addSticky(n):this.removeSticky(n)),t.e.fire("toggleSticky",o)}__isMobile(){let{j:t}=this;return t&&t.options&&t.container&&t.options.sizeSM>=t.container.offsetWidth}beforeDestruct(t){a.Dom.safeRemove(this.__dummyBox),t.e.off(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(...t){super(...t),(0,o._)(this,"__isToolbarStuck",!1),(0,o._)(this,"__dummyBox",void 0),(0,o._)(this,"__createDummy",t=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,t)}),(0,o._)(this,"addSticky",t=>{this.__isToolbarStuck||(h&&!this.__dummyBox&&this.__createDummy(t),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,c.css)(t,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,c.css)(this.__dummyBox,{height:t.offsetHeight})}),(0,o._)(this,"removeSticky",t=>{this.__isToolbarStuck&&((0,c.css)(t,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)})}}(0,n.__decorate)([(0,r.throttle)()],d.prototype,"__onScroll",null),l.pluginSystem.add("sticky",d)},68502:function(t,e,i){"use strict";i(37102);var o=i(28686),n=i(37427),s=i(75587),r=i(5266);r.Config.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(t,e)=>(e=e.toLowerCase(),(0,o.isString)(t))?-1!==t.toLowerCase().indexOf(e):(0,o.isString)(t.name)?-1!==t.name.toLowerCase().indexOf(e):!(0,o.isString)(t.file)||-1!==t.file.toLowerCase().indexOf(e),sortBy:"changed-desc",sort(t,e,i){let[s,r]=i.toLowerCase().split("-"),a="asc"===r,l=(t,e)=>e>t?a?-1:1:t>e?a?1:-1:0;if((0,o.isString)(t))return l(t.toLowerCase(),e.toLowerCase());if(void 0===t[s]||"name"===s)return(0,o.isString)(t.name)?l(t.name.toLowerCase(),e.name.toLowerCase()):(0,o.isString)(t.file)?l(t.file.toLowerCase(),e.file.toLowerCase()):0;switch(s){case"changed":{let i=new Date(t.changed).getTime(),o=new Date(e.changed).getTime();return a?i-o:o-i}case"size":{let i=(0,n.humanSizeToBytes)(t.size),o=(0,n.humanSizeToBytes)(e.size);return a?i-o:o-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,o.isArray)(t.data.messages)?t.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(t,e,i){let o=this.options,n=this.files.getFullElName("item"),s=o.showFileName,r=o.showFileSize&&t.size,a=o.showFileChangeTime&&t.time,l="";void 0!==t.file&&(l=t.file);let c=`<div class="${n}-info">${s?`<span class="${n}-info-filename">${l}</span>`:""}${r?`<span class="${n}-info-filesize">${t.size}</span>`:""}${a?`<span class="${n}-info-filechanged">${a}</span>`:""}</div>`;return`<a
211
211
  data-jodit-file-browser-item="true"
212
212
  data-is-file="${+!t.isImage}"
213
213
  draggable="true"
@@ -226,7 +226,7 @@
226
226
  loading="lazy"
227
227
  />
228
228
  ${s||r||a?c:""}
229
- </a>`},ajax:{...r.Config.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:t=>t,process:t=>t},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},r.Config.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:t=>!t.dataProvider.canI("FileUpload"),getContent(t,e){let i=new s.UIFileInput(t,{tooltip:e.control.tooltip,onlyImages:t.state.onlyImages});return t.e.fire("bindUploader.filebrowser",i.container),i.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:t=>!t.state.activeElements.length||!t.dataProvider.canI("FileRemove"),exec(t){t.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec(t){t.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:t=>!t.state.activeElements.length,exec(t){t.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled(t){let e=t.state.activeElements;return 1!==e.length||!e[0].isImage||!(t.dataProvider.canI("ImageCrop")||t.dataProvider.canI("ImageResize"))},exec(t){t.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:t=>"tiles"===t.state.view,exec(t){t.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:t=>"list"===t.state.view,exec(t){t.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(t,e){let i=e.container.querySelector(".jodit-input");if(i)return i;let o=t.c.element("input",{class:"jodit-input",placeholder:t.i18n("Filter")});return o.value=t.state.filterWord,t.e.on(o,"keydown mousedown",t.async.debounce(()=>{t.e.fire("filter.filebrowser",o.value)},t.defaultTimeout)),o}},sort:{isInput:!0,getContent(t){let e=t.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${t.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${t.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${t.i18n("Sort by name")} (⬆)</option><option value="name-desc">${t.i18n("Sort by name")} (⬇)</option><option value="size-asc">${t.i18n("Sort by size")} (⬆)</option><option value="size-desc">${t.i18n("Sort by size")} (⬇)</option></select>`);return e.value=t.state.sortBy,t.e.on("sort.filebrowser",t=>{e.value!==t&&(e.value=t)}).on(e,"change",()=>{t.e.fire("sort.filebrowser",e.value)}),e}}}},68616:function(t,e,i){"use strict";i.d(e,{getPropertyDescriptor:function(){return u},watch:function(){return h}});var o=i(69364),n=i(70535),s=i(32328),r=i(91565),a=i(62101),l=i(31534),c=i(33201);function u(t,e){let i;do i=Object.getOwnPropertyDescriptor(t,e),t=Object.getPrototypeOf(t);while(!i&&t)return i}function h(t,e){return(i,h)=>{if(!(0,r.isFunction)(i[h]))throw(0,c.error)("Handler must be a Function");let d=e?.immediately??!0,f=e?.context,p=e=>{let o=(0,l.isViewObject)(e)?e:e.jodit,c=(t,...i)=>{if(!e.isInDestruct)return e[h](t,...i)};d||(c=e.async.microDebounce(c,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[i,n]=t.split(":"),s=f;i.length&&(s=e.get(i)),(0,r.isFunction)(s)&&(s=s(e)),o.events.on(s||e,n,c),s||o.events.on(n,c),e.hookStatus("beforeDestruct",()=>{o.events.off(s||e,n,c).off(n,c)});return}let s=t.split("."),[l]=s,h=s.slice(1),d=e[l];(0,a.isPlainObject)(d)&&(0,n.observable)(d).on("change."+h.join("."),c);let p=u(i,l);Object.defineProperty(e,l,{configurable:!0,set(t){let i=d;i!==t&&(d=t,p&&p.set&&p.set.call(e,t),(0,a.isPlainObject)(d)&&(d=(0,n.observable)(d)).on("change."+h.join("."),c),c(l,i,d))},get:()=>p&&p.get?p.get.call(e):d})})};(0,r.isFunction)(i.hookStatus)?i.hookStatus(o.STATUSES.ready,p):p(i)}}},68624:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206);i(65230);class u extends c.Plugin{afterInit(t){t.o.link.followOnDblClick&&t.e.on("dblclick.link",this.__onDblClickOnLink),t.e.on(t.editor,"click.link",this.__onClickReadOnlyLink),t.o.link.processPastedLink&&t.e.on("processPaste.link",this.onProcessPasteLink),t.e.on("generateLinkForm.link",this.__generateForm),t.registerCommand("openLinkDialog",{exec:()=>{let e=t.dlg({resizable:!1}),i=this.__generateForm(t.s.current(),()=>{e.close()});i.container.classList.add("jodit-dialog_alert"),e.setContent(i),e.open(),t.async.requestIdleCallback(()=>{let{url_input:t}=(0,l.refs)(i.container);t?.focus()})},hotkeys:t.o.link.hotkeys})}__onDblClickOnLink(t){if(!r.Dom.isTag(t.target,"a"))return;let e=(0,l.attr)(t.target,"href");e&&(location.href=e,t.preventDefault())}onProcessPasteLink(t,e){let{jodit:i}=this;if((0,l.isURL)(e)&&i.o.link.processPastedLink){if(i.e.stopPropagation("processPaste"),i.o.link.processVideoLink){let t=(0,l.call)(i.o.video?.parseUrlToVideoEmbed??l.convertMediaUrlToVideoEmbed,e,{width:i.o.video?.defaultWidth,height:i.o.video?.defaultHeight});if(t!==e)return i.createInside.fromHTML(t)}if(i.s.isCollapsed()){let t=i.createInside.element("a");return t.setAttribute("href",e),t.textContent=e,i.e.fire("applyLink",i,t,null),t}return i.s.commitStyle({element:"a",attributes:{href:e}}),!0}}__generateForm(t,e){let i,{jodit:o}=this,n=o.i18n.bind(o),{openInNewTabCheckbox:s,noFollowCheckbox:a,formTemplate:c,formClassName:u,modeClassName:h}=o.o.link,d=c(o),f=(0,l.isString)(d)?o.c.fromHTML(d,{target_checkbox_box:s,nofollow_checkbox_box:a}):d,p=r.Dom.isElement(f)?f:f.container,m=(0,l.refs)(p),{insert:g,unlink:_,content_input_box:v}=m,{target_checkbox:b,nofollow_checkbox:y,url_input:w}=m,S=r.Dom.isImage(t),{content_input:C}=m,{className_input:E}=m,{className_select:I}=m;C||(C=o.c.element("input",{type:"hidden",ref:"content_input"})),u&&p.classList.add(u),S&&r.Dom.hide(v);let T=()=>i?i.innerText:(0,l.stripTags)(o.s.range.cloneContents(),o.ed);i=!!(t&&r.Dom.closest(t,"a",o.editor))&&r.Dom.closest(t,"a",o.editor),!S&&t&&(C.value=T()),i?(w.value=(0,l.attr)(i,"href")||"",h&&function(t,e,i,o){switch(t){case"input":e&&(e.value=(0,l.attr)(i,"class")||"");break;case"select":if(o){for(let t=0;t<o.selectedOptions.length;t++){let e=o.options.item(t);e&&(e.selected=!1)}((0,l.attr)(i,"class")||"").split(/\s+/).filter(t=>t.trim().length>0).forEach(t=>{if(t)for(let e=0;e<o.options.length;e++){let i=o.options.item(e);i?.value&&i.value.split(/\s+/).map(t=>t.trim()).includes(t)&&(i.selected=!0)}})}}}(h,E,i,I),s&&b&&(b.checked="_blank"===(0,l.attr)(i,"target")),a&&y&&(y.checked="nofollow"===(0,l.attr)(i,"rel")),g.textContent=n("Update")):r.Dom.hide(_),o.editor.normalize();let D=o.history.snapshot.make();_&&o.e.on(_,"click",t=>{o.s.restore(),o.history.snapshot.restore(D),i&&r.Dom.unwrap(i),o.synchronizeValues(),e(),t.preventDefault()});let x=()=>{let t;if(!w.value.trim().length)return w.focus(),w.classList.add("jodit_error"),!1;o.s.restore(),o.s.removeMarkers(),o.editor.normalize(),o.history.snapshot.restore(D);let n=T()!==C.value.trim(),c=o.createInside;if(i&&r.Dom.isOrContains(o.editor,i))t=[i];else{if(o.s.isCollapsed()){let e=c.element("a");o.s.insertNode(e,!1,!1),t=[e]}else{let e=o.s.current();t=r.Dom.isTag(e,"img")?[r.Dom.wrap(e,"a",c)]:o.s.wrapInTag("a")}t.forEach(t=>o.s.select(t))}return t.forEach(t=>{var e;let i;(0,l.attr)(t,"href",w.value),function(t,e,i,o){if(t&&(e??i)){if("input"===t)""===e.value&&o.hasAttribute("class")&&(0,l.attr)(o,"class",null),""!==e.value&&(0,l.attr)(o,"class",e.value);else if("select"===t){o.hasAttribute("class")&&(0,l.attr)(o,"class",null);for(let t=0;t<i.selectedOptions.length;t++){let e=i.selectedOptions.item(t)?.value;e&&e.split(/\s+/).filter(t=>t.trim().length>0).forEach(t=>{o.classList.add(t)})}}}}(h,E,I,t),S||(e=C,i=t.textContent,e.value.trim().length?n&&(i=e.value):i=w.value,i!==t.textContent&&(t.textContent=i)),s&&b&&(0,l.attr)(t,"target",b.checked?"_blank":null),a&&y&&(0,l.attr)(t,"rel",y.checked?"nofollow":null),o.e.fire("applyLink",o,t,f)}),o.synchronizeValues(),e(),!1};return r.Dom.isElement(f)?o.e.on(f,"submit",t=>(t.preventDefault(),t.stopImmediatePropagation(),x(),!1)):f.onSubmit(x),f}beforeDestruct(t){t.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(t.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(t){let{jodit:e}=this;e.o.readonly&&e.o.link.preventReadOnlyNavigation&&r.Dom.isTag(t.target,"a")&&t.preventDefault()}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"link",group:"insert"}])}}(0,n.__decorate)([s.autobind],u.prototype,"__onDblClickOnLink",null),(0,n.__decorate)([s.autobind],u.prototype,"onProcessPasteLink",null),(0,n.__decorate)([s.autobind],u.prototype,"__generateForm",null),(0,n.__decorate)([s.autobind],u.prototype,"__onClickReadOnlyLink",null),a.pluginSystem.add("link",u)},68709:function(t,e,i){"use strict";i.d(e,{checkRemoveContentNotEditable:function(){return r}});var o=i(27795),n=i(65946),s=i(42259);function r(t,e,i){let r=o.Dom.findSibling(e,i);return!r&&e.parentElement&&e.parentElement!==t.editor&&(r=o.Dom.findSibling(e.parentElement,i)),!(!o.Dom.isElement(r)||o.Dom.isContentEditable(r,t.editor))&&((0,n.call)(i?o.Dom.before:o.Dom.after,r,e),o.Dom.safeRemove(r),(0,s.moveNodeInsideStart)(t,e,i),(0,n.call)(i?t.s.setCursorBefore:t.s.setCursorAfter,e),!0)}},69023:function(t,e,i){"use strict";i(5266).Config.prototype.tab={tabInsideLiInsertNewList:!0}},69070:function(t,e,i){"use strict";i(5266).Config.prototype.tableAllowCellSelection=!0},69143:function(t,e,i){"use strict";i.d(e,{offset:function(){return o}});let o=(t,e,i,n=!1)=>{let s,r,a;try{s=t.getBoundingClientRect()}catch(t){s={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,c=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=i.defaultView||i.parentWindow,h=u.pageYOffset||c.scrollTop||l.scrollTop,d=u.pageXOffset||c.scrollLeft||l.scrollLeft,f=c.clientTop||l.clientTop||0,p=c.clientLeft||l.clientLeft||0,m=e.iframe;if(!n&&e&&e.options&&e.o.iframe&&m){let{top:t,left:i}=o(m,e,e.od,!0);r=s.top+t,a=s.left+i}else r=s.top+h-f,a=s.left+d-p;return{top:Math.round(r),left:Math.round(a),width:s.width,height:s.height}}},69364:function(t,e,i){"use strict";i.d(e,{STATUSES:function(){return o}});let o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},69696:function(t,e,i){"use strict";var o=i(28077),n=i(24497),s=i(80991);i(80538);let r=new Set;o.pluginSystem.add("fullsize",function(t){t.registerButton({name:"fullsize"});let e=!1,i=0,o=0,a=!1,l=()=>{let{container:n,events:r}=t;r&&(e?(i=(0,s.css)(n,"height",!0),o=(0,s.css)(n,"width",!0),(0,s.css)(n,{height:t.ow.innerHeight,width:t.ow.innerWidth}),a=!0):a&&(0,s.css)(n,{height:i||"auto",width:o||"auto"}))},c=i=>{let{container:o,events:a}=t;if(o){if(void 0===i&&(i=!o.classList.contains("jodit_fullsize")),t.setMod("fullsize",i),t.o.fullsize=i,e=i,o.classList.toggle("jodit_fullsize",i),t.toolbar&&((0,n.isJoditObject)(t)&&t.toolbarContainer?.appendChild(t.toolbar.container),(0,s.css)(t.toolbar.container,"width","auto")),i?r.add(o):r.delete(o),t.o.globalFullSize&&(1===r.size&&i||0===r.size&&!i)){let t=o.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",i),t=t.parentNode;l()}a.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",l),t.e.on("afterInit afterOpen",()=>{t.toggleFullSize(t?.options?.fullsize)}).on("toggleFullSize",c).on("beforeDestruct",()=>{e&&c(!1)}).on("beforeDestruct",()=>{t.events&&t.e.off(t.ow,"resize",l)})})},70195:function(t,e,i){"use strict";i.d(e,{removeFormatForSelection:function(){return r}});var o=i(23211),n=i(93640),s=i(37431);function r(t){let{s:e,editor:i,createInside:r}=t,{range:a}=e,l=a.cloneRange(),c=a.cloneRange(),u=r.fake(),h=r.fake();l.collapse(!0),c.collapse(!1),o.Dom.safeInsertNode(l,u),o.Dom.safeInsertNode(c,h),a.setStartBefore(u),a.collapse(!0),e.selectRange(a),(0,s.removeFormatForCollapsedSelection)(t,u),a.setEndAfter(h),a.collapse(!1),e.selectRange(a),(0,s.removeFormatForCollapsedSelection)(t,h);let d=[];o.Dom.between(u,h,t=>{(0,s.isInlineBlock)(t)&&!o.Dom.isTag(t,"a")&&d.push(t),o.Dom.isElement(t)&&(0,n.attr)(t,"style")&&(0,n.attr)(t,"style",null)}),d.forEach(t=>o.Dom.unwrap(t));let f=(t,e)=>{if(!o.Dom.findNotEmptySibling(t,e)){let o=t.parentNode;if(o&&o!==i&&(0,n.attr)(o,"style"))return(0,n.attr)(o,"style",null),f(o,e),!0}};f(u,!0)&&f(h,!1),a.setStartAfter(u),a.setEndBefore(h),e.selectRange(a),o.Dom.safeRemove(u),o.Dom.safeRemove(h)}},70222:function(t,e,i){"use strict";i.d(e,{isNumeric:function(){return n}});var o=i(85932);function n(t){if((0,o.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},70235:function(t,e,i){"use strict";var o=i(7909);e.default=[{name:"eye",tooltip:"Open link",exec(t,e){let i=(0,o.attr)(e,"href");e&&i&&t.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},70535:function(t,e,i){"use strict";i.d(e,{observable:function(){return c}});var o=i(68616),n=i(17312),s=i(94013),r=i(62101);let a=Symbol("observable-object");function l(t){return void 0!==t[a]}function c(t){if(l(t))return t;let e={},i={},c=(e,o)=>((0,n.isArray)(e)?e.map(t=>c(t,o)):(i[e]||(i[e]=[]),i[e].push(o)),t),u=(o,...s)=>{if((0,n.isArray)(o))return void o.map(t=>u(t,...s));try{!e[o]&&i[o]&&(e[o]=!0,i[o].forEach(e=>e.call(t,...s)))}finally{e[o]=!1}},h=(e,i=[])=>{let n={};l(e)||(Object.defineProperty(e,a,{enumerable:!1,value:!0}),Object.keys(e).forEach(a=>{let l=i.concat(a).filter(t=>t.length);n[a]=e[a];let c=(0,o.getPropertyDescriptor)(e,a);Object.defineProperty(e,a,{set(e){let i=n[a];if(!(0,s.isFastEqual)(n[a],e)){u(["beforeChange","beforeChange."+l.join(".")],a,e),(0,r.isPlainObject)(e)&&h(e,l),c&&c.set?c.set.call(t,e):n[a]=e;let o=[];u(["change",...l.reduce((t,e)=>(o.push(e),t.push("change."+o.join(".")),t),[])],l.join("."),i,e?.valueOf?e.valueOf():e)}},get:()=>c&&c.get?c.get.call(t):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&h(n[a],l)}),Object.defineProperty(t,"on",{value:c}))};return h(t),t}},70697:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg>'},70881:function(t){t.exports='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg>'},70999:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg>'},71125:function(t,e,i){"use strict";i.d(e,{call:function(){return a},callPromise:function(){return c},getDataTransfer:function(){return f},keys:function(){return h},loadImage:function(){return u},markOwner:function(){return l},memorizeExec:function(){return d}});var o=i(52100),n=i(18303),s=i(7909),r=i(36400);function a(t,...e){return t(...e)}function l(t,e){(0,s.attr)(e,"data-editor_id",t.id),e.component||Object.defineProperty(e,"jodit",{value:t})}function c(t,e){return(0,o.isPromise)(t)?t.then(t=>t,()=>null).finally(e):e?.()}let u=(t,e)=>e.async.promise((i,o)=>{let n=new Image,s=()=>{e.e.off(n),o?.()},r=()=>{e.e.off(n),i(n)};e.e.one(n,"load",r).one(n,"error",s).one(n,"abort",s),n.src=t,n.complete&&r()}),h=(t,e=!0)=>{if(e)return Object.keys(t);let i=[];for(let e in t)i.push(e);return i},d=(t,e,{control:i},o)=>{let s="button"+i.command,a=(i.args&&i.args[0])??(0,r.dataBind)(t,s);if((0,n.isVoid)(a))return!1;(0,r.dataBind)(t,s,a),o&&(a=o(a)),t.execCommand(i.command,!1,a??void 0)},f=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch{return null}}},71552:function(t,e,i){"use strict";i.d(e,{applyValuesToImage:function(){return l}});var o=i(23211),n=i(93640),s=i(49422),r=i(21132),a=i(49147);function l(t,e,i){let{style:l,imageSrc:c,borderRadius:u,imageTitle:h,imageAlt:d,imageLink:f,imageWidth:p,imageHeight:m,marginTop:g,marginRight:_,marginBottom:v,marginLeft:b,imageLinkOpenInNewTab:y,align:w,classes:S,id:C}=e.values,E=t.o;if(E.image.editStyle&&(0,n.attr)(i,"style",l||null),!c)return void o.Dom.safeRemove(i);(0,n.attr)(i,"src",c),i.style.borderRadius=u?u+"px":"",(0,n.attr)(i,"title",h||null),(0,n.attr)(i,"alt",d||null),(0,s.applyLink)(t,i,f,y),(0,a.applySize)(i,p,m,e.sizeIsLocked),t.o.image.editMargins&&(0,r.applyMargin)(t,g,_,v,b,i,e.marginIsLocked),E.image.editClass&&(0,n.attr)(i,"class",S||null),E.image.editId&&(0,n.attr)(i,"id",C||null),E.image.editAlign&&(0,n.hAlignElement)(i,w)}},71693:function(t,e,i){"use strict";var o=i(81937),n=i(5266);n.Config.prototype.askBeforePasteFromWord=!0,n.Config.prototype.processPasteFromWord=!0,n.Config.prototype.defaultActionOnPasteFromWord=null,n.Config.prototype.pasteFromWordActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Clean"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}]},71940:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},71948:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg>'},72068:function(t,e,i){"use strict";function o(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}i.d(e,{isAbortError:function(){return o}})},72214:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(28077),l=i(91206),c=i(4099);i(58293);class u extends l.Plugin{afterInit(t){let{height:e,width:i,allowResizeX:o}=t.o,{allowResizeY:n}=t.o;"auto"===e&&"auto"!==i&&(n=!1),("auto"!==e||"auto"!==i)&&(o||n)&&(t.statusbar.setMod("resize-handle",!0),t.e.on("toggleFullSize.resizeHandler",()=>{this.handle.style.display=t.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(t.ow,"mouseup touchend",this.onHandleResizeEnd),t.container.appendChild(this.handle))}onHandleResizeStart(t){this.isResized=!0,this.start.x=t.clientX,this.start.y=t.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),t.preventDefault()}onHandleResize(t){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+t.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+t.clientX-this.start.x),this.j.e.fire("resize"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){r.Dom.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}constructor(...t){super(...t),(0,o._)(this,"isResized",!1),(0,o._)(this,"start",{x:0,y:0,w:0,h:0}),(0,o._)(this,"handle",this.j.c.div("jodit-editor__resize",c.Icon.get("resize_handler")))}}(0,o._)(u,"requires",["size"]),(0,n.__decorate)([s.autobind],u.prototype,"onHandleResizeStart",null),(0,n.__decorate)([s.autobind],u.prototype,"onHandleResize",null),(0,n.__decorate)([s.autobind],u.prototype,"onHandleResizeEnd",null),a.pluginSystem.add("resizeHandler",u)},72348:function(t,e,i){"use strict";i.d(e,{ColorPickerWidget:function(){return l}});var o=i(27795),n=i(65946),s=i(4099),r=i(54522),a=i.n(r);s.Icon.set("palette",a());let l=(t,e,i)=>{let r="jodit-color-picker",a=(0,n.normalizeColor)(i),l=t.c.div(r),c=t.o.textIcons?`<span>${t.i18n("palette")}</span>`:s.Icon.get("palette"),u=t=>{let e=[];return(0,n.isPlainObject)(t)?Object.keys(t).forEach(i=>{e.push(`<div class="${r}__group ${r}__group-${i}">`),e.push(u(t[i])),e.push("</div>")}):(0,n.isArray)(t)&&t.forEach(t=>{e.push(`<span class='${r}__color-item ${a===t?r+"__color-item_active_true":""}' title="${t}" style="background-color:${t}" data-color="${t}"></span>`)}),e.join("")};l.appendChild(t.c.fromHTML(`<div class="${r}__groups">${u(t.o.colors)}</div>`)),l.appendChild(t.c.fromHTML(`<div data-ref="extra" class="${r}__extra"></div>`));let{extra:h}=(0,n.refs)(l);return t.o.showBrowserColorPicker&&(0,n.hasBrowserColorPicker)()&&(h.appendChild(t.c.fromHTML(`<div class="${r}__native">${c}<input type="color" value="#ffffff"/></div>`)),t.e.on(l,"change",t=>{t.stopPropagation();let i=t.target;if(!i||!i.tagName||!o.Dom.isTag(i,"input"))return;let s=i.value||"";(0,n.isFunction)(e)&&e(s),t.preventDefault()})),t.e.on(l,"mousedown touchend",i=>{i.stopPropagation(),i.preventDefault();let s=i.target;if((!s||!s.tagName||o.Dom.isTag(s,"svg")||o.Dom.isTag(s,"path"))&&s.parentNode&&(s=o.Dom.closest(s.parentNode,"span",t.editor)),!o.Dom.isTag(s,"span")||!s.classList.contains(r+"__color-item"))return;let a=(0,n.attr)(s,"-color")||"";e&&(0,n.isFunction)(e)&&e(a)}),t.e.fire("afterGenerateColorPicker",l,h,e,a),l}},72412:function(t,e,i){"use strict";function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}i.d(e,{isNumber:function(){return o}})},73019:function(t,e,i){"use strict";i.d(e,{isSameStyleChild:function(){return l},isSuitElement:function(){return r},suitableClosest:function(){return a}});var o=i(23211),n=i(9703),s=i(83653);function r(t,e,i,a=!0){if(!e||!(0,s.isNormalNode)(e))return!1;let{element:l,elementIsDefault:c,options:u}=t;if(o.Dom.isList(e)&&t.elementIsList)return!0;let h=o.Dom.isTag(e,l);return!!(h&&!(c&&i)||u.attributes?.style&&(a?(0,n.hasSameStyle)(e,u.attributes.style):(0,n.hasSameStyleKeys)(e,u.attributes.style))&&!t.elementIsList)||!h&&!i&&c&&o.Dom.isInlineBlock(e)}function a(t,e,i){return o.Dom.closest(e,e=>r(t,e,!0,!1),i)}function l(t,e){let{element:i,options:o}=t;if(!e||!(0,s.isNormalNode)(e))return!1;let r=e.nodeName.toLowerCase()===i,a=!!(o.attributes?.style&&(0,n.hasSameStyleKeys)(e,o.attributes?.style));return r&&a}},73154:function(t,e,i){"use strict";i.d(e,{wrap:function(){return a}});var o=i(27795),n=i(7909),s=i(97110),r=i(83335);function a(t,e,i){var a,c,u;let h=(a=t,c=e,u=i,a.elementIsBlock?o.Dom.up(c,t=>o.Dom.isBlock(t)&&!o.Dom.isTag(t,l),u.editor)||(0,r.wrapUnwrappedText)(a,c,u):((0,n.attr)(c,"size",null),c));return t.elementIsList?(0,s.wrapList)(t,h,i):o.Dom.replace(h,t.element,i.createInside,!0)}let l=new Set(["td","th","tr","tbody","table","li","ul","ol"])},73302:function(t,e,i){"use strict";i.d(e,{Jodit:function(){return Jodit}});var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(28077),l=i(65946),c=i(73714),u=i(80512),h=i(5266),d=i(60936);let f="data-jodit-default-style-display",p="data-jodit-default-classes";class Jodit extends d.ViewWithToolbar{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise(t=>{this.hookStatus("ready",()=>t(this))})}static get ready(){return new Promise(t=>{a.eventEmitter.on("joditready",t)})}get text(){if(this.editor)return this.editor.innerText||"";let t=this.createInside.div();return t.innerHTML=this.getElementValue(),t.innerText||""}get defaultTimeout(){return(0,l.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:h.Config.defaultOptions.defaultTimeout}static atom(t){return(0,l.markAsAtomic)(t)}static make(t,e){return new this(t,e)}static isJoditAssigned(t){return t&&(0,l.isJoditObject)(t.component)&&!t.component.isInDestruct}static get defaultOptions(){return h.Config.defaultOptions}get createInside(){return new d.Create(()=>this.ed,this.o.createAttributes)}__setPlaceField(t,e){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[t]=e}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(t){this.__setPlaceField("editor",t)}get container(){return this.currentPlace.container}set container(t){this.__setPlaceField("container",t)}get workplace(){return this.currentPlace.workplace}get message(){return this.getMessageModule(this.workplace)}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(t){this.__setPlaceField("iframe",t)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(t){this.__setPlaceField("editorWindow",t)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(t){this.__options=t,this.__setPlaceField("options",t)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){let t=this,e=(0,l.ConfigProto)({defaultTimeout:t.defaultTimeout,uploader:t.o.uploader,language:t.o.language,license:t.o.license,theme:t.o.theme,shadowRoot:t.o.shadowRoot,defaultCallback(e){e.files&&e.files.length&&e.files.forEach((i,o)=>{let n=e.baseurl+i;e.isImages&&e.isImages[o]?t.s.insertImage(n,null,t.o.imageDefaultWidth):t.s.insertNode(t.createInside.fromHTML(`<a href='${n}' title='${n}'>${n}</a>`))})}},this.o.filebrowser);return t.getInstance("FileBrowser",e)}get mode(){return this.__mode}set mode(t){this.setMode(t)}getNativeEditorValue(){let t=this.e.fire("beforeGetNativeEditorValue");return(0,l.isString)(t)?t:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(t){let e={value:t};!this.e.fire("beforeSetNativeEditorValue",e)&&this.editor&&(this.editor.innerHTML=e.value)}get value(){return this.getEditorValue()}set value(t){this.setEditorValue(t),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(t=!0,e){let i;if(void 0!==(i=this.e.fire("beforeGetValueFromEditor",e)))return i;i=this.getNativeEditorValue().replace(s.INVISIBLE_SPACE_REG_EXP(),""),t&&(i=i.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===i&&(i="");let o={value:i};return this.e.fire("afterGetValueFromEditor",o,e),o.value}setEditorValue(t){let e=this.e.fire("beforeSetValueToEditor",t);if(!1===e)return;if((0,l.isString)(e)&&(t=e),!this.editor){void 0!==t&&this.__setElementValue(t);return}if(!(0,l.isString)(t)&&!(0,l.isVoid)(t))throw(0,l.error)("value must be string");(0,l.isVoid)(t)||this.getNativeEditorValue()===t||this.setNativeEditorValue(t),this.e.fire("postProcessSetEditorValue");let i=this.getElementValue(),o=this.getEditorValue();if(!this.__isSilentChange&&i!==o&&this.__callChangeCount<s.SAFE_COUNT_CHANGE_CALL){this.__setElementValue(o),this.__callChangeCount+=1,s.IS_PROD||this.__callChangeCount;try{this.history.__upTick(),this.e.fire("change",o,i),this.e.fire(this.history,"change",o,i)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}__setElementValue(t){if(!(0,l.isString)(t))throw(0,l.error)("value must be string");if(this.element!==this.container&&t!==this.getElementValue()){let e={value:t},i=this.e.fire("beforeSetElementValue",e);(0,l.callPromise)(i,()=>{void 0!==this.element.value?this.element.value=e.value:this.element.innerHTML=e.value,this.e.fire("afterSetElementValue",e)})}}registerCommand(t,e,i){let o=t.toLowerCase(),n=this.commands.get(o);if(void 0===n&&(n=[],this.commands.set(o,n)),n.push(e),!(0,l.isFunction)(e)){let n=this.o.commandToHotkeys[o]||this.o.commandToHotkeys[t]||e.hotkeys;n&&this.registerHotkeyToCommand(n,o,i?.stopPropagation)}return this}registerHotkeyToCommand(t,e,i=!0){let o=(0,l.asArray)(t).map(l.normalizeKeyAliases).map(t=>t+".hotkey").join(" ");this.e.off(o).on(o,(t,o)=>(o&&(o.shouldStop=i??!0),this.execCommand(e)))}execCommand(t,e,i,...o){let n;if(this.s.isFocused()||this.s.focus(),!this.o.readonly||this.o.allowCommandsInReadOnly.includes(t)){if(t=t.toLowerCase(),!1!==(n=this.e.fire("beforeCommand"+(0,l.ucfirst)(t),e,i,...o))&&(n=this.e.fire("beforeCommand",t,e,i,...o)),!1!==n&&(n=this.__execCustomCommands(t,e,i,...o)),!1!==n){this.s.focus();try{n=this.nativeExecCommand(t,e,i)}catch(t){if(!s.IS_PROD)throw t}}return this.e.fire("afterCommand",t,e,i),this.__imdSynchronizeValues(),n}}nativeExecCommand(t,e,i){this.__isSilentChange=!0;try{return this.ed.execCommand(t,e,i)}finally{this.__isSilentChange=!1}}__execCustomCommands(t,e,i,...o){t=t.toLowerCase();let n=this.commands.get(t);if(void 0!==n){let s;return n.forEach(n=>{let r=((0,l.isFunction)(n)?n:n.exec).call(this,t,e,i,...o);void 0!==r&&(s=r)}),s}}lock(t="any"){return!!super.lock(t)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===s.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==s.MODE_SPLIT)return this.getMode();let t=this.od.activeElement;return t&&(t===this.iframe||d.Dom.isOrContains(this.editor,t)||d.Dom.isOrContains(this.toolbar.container,t))?s.MODE_WYSIWYG:s.MODE_SOURCE}setMode(t){let e=this.getMode(),i={mode:parseInt(t.toString(),10)},o=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",i)&&(this.__mode=[s.MODE_SOURCE,s.MODE_WYSIWYG,s.MODE_SPLIT].includes(i.mode)?i.mode:s.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),o.forEach(t=>{this.container.classList.remove(t)}),this.container.classList.add(o[this.mode-1]),e!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let t=this.getMode();[s.MODE_SOURCE,s.MODE_WYSIWYG,this.o.useSplitMode?s.MODE_SPLIT:9].includes(t+1)?t+=1:t=s.MODE_WYSIWYG,this.setMode(t)}setDisabled(t){this.o.disabled=t;let e=this.__wasReadOnly;this.setReadOnly(t||e),this.__wasReadOnly=e,this.editor&&(this.editor.setAttribute("aria-disabled",t.toString()),this.container.classList.toggle("jodit_disabled",t),this.e.fire("disabled",t))}getDisabled(){return this.o.disabled}setReadOnly(t){this.__wasReadOnly!==t&&(this.__wasReadOnly=t,this.o.readonly=t,t?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",t))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==s.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(t){this.options=(0,l.ConfigProto)(t||{},h.Config.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}addPlace(t,e){let i=(0,l.resolveElement)(t,this.o.shadowRoot||this.od);this.attachEvents(e),i.attributes&&(0,l.toArray)(i.attributes).forEach(t=>{let i=t.name,o=t.value;void 0===h.Config.defaultOptions[i]||e&&void 0!==e[i]||(-1!==["readonly","disabled"].indexOf(i)&&(o=""===o||"true"===o),/^[0-9]+(\.)?([0-9]+)?$/.test(o.toString())&&(o=Number(o)),this.options[i]=o)});let o=this.c.div("jodit-container");o.classList.add("jodit"),o.classList.add("jodit-container"),o.classList.add("jodit_theme_"+(this.o.theme||"default")),m(this.o.className,o),this.o.containerStyle&&(0,l.css)(o,this.o.containerStyle);let{styleValues:n}=this.o;Object.keys(n).forEach(t=>{let e=(0,l.kebabCase)(t);o.style.setProperty("--jd-"+e,n[t])}),o.setAttribute("contenteditable","false");let s=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(i.nodeName)&&(o=i,i.setAttribute(p,i.className.toString()),s=o.innerHTML,o.innerHTML=""),o.classList.add("jodit_inline"),o.classList.add("jodit-container")),i!==o&&(i.style.display&&i.setAttribute(f,i.style.display),i.style.display="none");let r=this.c.div("jodit-workplace",{contenteditable:!1});o.appendChild(r),i.parentNode&&i!==o&&i.parentNode.insertBefore(o,i),Object.defineProperty(i,"component",{enumerable:!1,configurable:!0,value:this});let a=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});r.appendChild(a);let c={editor:a,element:i,container:o,workplace:r,statusbar:new d.StatusBar(this,o),options:this.isReady?(0,l.ConfigProto)(e||{},h.Config.defaultOptions):this.options,history:new d.History(this),editorWindow:this.ow};this.__elementToPlace.set(a,c),this.setCurrentPlace(c),this.places.push(c),this.setNativeEditorValue(this.getElementValue());let u=this.__initEditor(s),g=this.options,_=()=>{g.enableDragAndDropFileToEditor&&g.uploader&&(g.uploader.url||g.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,c),this.e.fire("afterAddPlace",c)};return(0,l.callPromise)(u,_)}addDisclaimer(t){this.workplace.appendChild(t)}setCurrentPlace(t){this.currentPlace!==t&&(this.isEditorMode()||this.setMode(s.MODE_WYSIWYG),this.currentPlace=t,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",t))}__initEditor(t){let e=this.__createEditor();return(0,l.callPromise)(e,()=>{if(this.isInDestruct)return;if(this.element!==this.container){let t=this.getElementValue();t!==this.getEditorValue()&&this.setEditorValue(t)}else null!=t&&this.setEditorValue(t);let e=this.o.defaultMode;if(this.o.saveModeInStorage){let t=this.storage.get("jodit_default_mode");"string"==typeof t&&(e=parseInt(t,10))}this.setMode(e),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch{}})}__createEditor(){let t=this.editor,e=this.e.fire("createEditor",this);return(0,l.callPromise)(e,()=>{!this.isInDestruct&&((!1===e||(0,l.isPromise)(e))&&d.Dom.safeRemove(t),m(this.o.editorClassName,this.editor),this.o.style&&(0,l.css)(this.editor,this.o.style),this.e.on("synchro",()=>{this.setEditorValue()}).on("focus",()=>{this.editorIsActive=!0}).on("blur",()=>this.editorIsActive=!1),this.__prepareWYSIWYGEditor(),this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce(()=>{this.e&&this.e.fire(this.element,"change")},this.defaultTimeout)))})}__prepareWYSIWYGEditor(){let{editor:t}=this;if(this.o.direction){let t="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=t,this.editor.setAttribute("dir",t),this.container.style.direction=t,this.container.setAttribute("dir",t),this.toolbar.setDirection(t)}this.e.on(t,"mousedown touchstart focus",()=>{let e=this.__elementToPlace.get(t);e&&this.setCurrentPlace(e)}).on(t,"compositionend",this.synchronizeValues).on(t,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",t=>{if(!this.o.readonly&&!this.__isSilentChange&&(!(t instanceof this.ew.KeyboardEvent)||!t.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(t.type,t))return!1;this.synchronizeValues()}})}fetch(t,e){let i=new c.Ajax({url:t,...e},this.o.defaultAjaxOptions),o=()=>{this.e.off("beforeDestruct",o),this.progressbar.progress(100).hide(),i.destruct()};this.e.one("beforeDestruct",o),this.progressbar.show().progress(30);let n=i.send();return n.finally(o).catch(()=>null),n}destruct(){if(this.isInDestruct)return;this.setStatus(d.STATUSES.beforeDestruct),this.__elementToPlace.clear(),(0,r.cached)(this,"storage")?.clear(),(0,r.cached)(this,"buffer")?.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);let t=this.editor?this.getEditorValue():"";this.places.forEach(({container:e,workplace:i,statusbar:o,element:n,iframe:s,editor:r,history:a})=>{if(n){if(n!==e)if(n.hasAttribute(f)){let t=(0,l.attr)(n,f);t&&(n.style.display=t,n.removeAttribute(f))}else n.style.display="";else n.hasAttribute(p)&&(n.className=(0,l.attr)(n,p)||"",n.removeAttribute(p));n.hasAttribute("style")&&!(0,l.attr)(n,"style")&&n.removeAttribute("style"),o.destruct(),this.e.off(e),this.e.off(n),this.e.off(r),d.Dom.safeRemove(i),d.Dom.safeRemove(r),e!==n&&d.Dom.safeRemove(e),Object.defineProperty(n,"component",{enumerable:!1,configurable:!0,value:null}),d.Dom.safeRemove(s),e===n&&(n.innerHTML=t),a.destruct()}}),this.places.length=0,this.currentPlace={},delete a.instances[this.id],super.destruct()}constructor(t,e){super(e,!0),(0,o._)(this,"isJodit",!0),(0,o._)(this,"commands",new Map),(0,o._)(this,"__selectionLocked",null),(0,o._)(this,"__wasReadOnly",!1),(0,o._)(this,"editorIsActive",!1),(0,o._)(this,"selection",void 0),(0,o._)(this,"__mode",s.MODE_WYSIWYG),(0,o._)(this,"__callChangeCount",0),(0,o._)(this,"__isSilentChange",!1),(0,o._)(this,"currentPlace",{options:this.__options,container:this.__container}),(0,o._)(this,"places",[]),(0,o._)(this,"__elementToPlace",new Map);try{let e=(0,l.resolveElement)(t,this.options.shadowRoot||this.od);if(Jodit.isJoditAssigned(e))return e.component}catch(t){if(!s.IS_PROD)throw t;throw this.destruct(),t}this.setStatus(d.STATUSES.beforeInit),this.id=(0,l.attr)((0,l.resolveElement)(t,this.o.shadowRoot||this.od),"id")||new Date().getTime().toString(),a.instances[this.id]=this,this.attachEvents(e),this.e.on(this.ow,"resize",()=>{this.e&&this.e.fire("resize")}),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new d.Selection(this);let i=this.beforeInitHook();(0,l.callPromise)(i,()=>{if(this.isInDestruct)return;this.e.fire("beforeInit",this),a.pluginSystem.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)}),this.places.length=0;let i=this.addPlace(t,e);a.instances[this.id]=this;let o=()=>{this.isInDestruct||(this.e&&this.e.fire("afterInit",this),(0,l.callPromise)(this.afterInitHook()),this.setStatus(d.STATUSES.ready),this.e.fire("afterConstructor",this))};(0,l.callPromise)(i,o)})}}function m(t,e){t&&t.split(/\s+/).forEach(t=>e.classList.add(t))}(0,o._)(Jodit,"fatMode",s.FAT_MODE),(0,o._)(Jodit,"plugins",a.pluginSystem),(0,o._)(Jodit,"modules",a.modules),(0,o._)(Jodit,"ns",a.modules),(0,o._)(Jodit,"decorators",{}),(0,o._)(Jodit,"constants",s),(0,o._)(Jodit,"instances",a.instances),(0,o._)(Jodit,"lang",s.lang),(0,o._)(Jodit,"core",{Plugin:d.Plugin}),(0,n.__decorate)([r.cache],Jodit.prototype,"createInside",null),(0,n.__decorate)([r.cache],Jodit.prototype,"message",null),(0,n.__decorate)([r.cache],Jodit.prototype,"s",null),(0,n.__decorate)([r.cache],Jodit.prototype,"uploader",null),(0,n.__decorate)([r.cache],Jodit.prototype,"filebrowser",null),(0,n.__decorate)([(0,r.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,n.__decorate)([(0,r.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,n.__decorate)([r.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=(0,n.__decorate)([(0,r.derive)(u.Dlgs)],Jodit)},73533:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg>'},73714:function(t,e,i){"use strict";i.d(e,{Ajax:function(){return o.Ajax},Response:function(){return n.Response}});var o=i(17338),n=i(32855)},74103:function(t,e,i){"use strict";i.d(e,{Prompt:function(){return a}});var o=i(91565),n=i(7909),s=i(53681),r=i(76841);function a(t,e,i,a,l){let c=this instanceof r.Dialog?this:new r.Dialog({closeOnClickOverlay:!0}),u=(0,s.Button)(c,"cancel","Cancel"),h=(0,s.Button)(c,"ok","Ok"),d=c.c.element("form",{class:"jodit-dialog_prompt"}),f=c.c.element("input",{autofocus:!0,class:"jodit-input"}),p=c.c.element("label");(0,o.isFunction)(e)&&(i=e,e=void 0),a&&(0,n.attr)(f,"placeholder",a),p.appendChild(c.c.text(t)),d.appendChild(p),d.appendChild(f),u.onAction(c.close);let m=()=>{i&&(0,o.isFunction)(i)&&!1===i(f.value)||c.close()};return h.onAction(m),c.e.on(d,"submit",()=>(m(),!1)),c.setFooter([h,u]),c.open(d,e||"&nbsp;",!0,!0),f.focus(),void 0!==l&&l.length&&(f.value=l,f.select()),c}},74240:function(t,e,i){"use strict";var o=i(28077),n=i(65946),s=i(2496);i(3244),o.pluginSystem.add("mobile",function(t){let e=0,i=(0,n.splitArray)(t.o.buttons);t.o.mobileTapTimeout&&t.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let o=new Date().getTime(),n=o-e;n>t.o.mobileTapTimeout&&(e=o,n<1.5*t.o.mobileTapTimeout&&t.s.insertCursorAtPoint(i.clientX,i.clientY))}}),t.e.on("getDiffButtons.mobile",e=>{if(e===t.toolbar){let e=(0,s.flatButtonsSet)((0,n.splitArray)(t.o.buttons),t),o=(0,s.flatButtonsSet)(i,t);return(0,n.toArray)(e).reduce((t,e)=>(o.has(e)||t.push(e),t),[])}}),t.o.toolbarAdaptive&&t.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{if(!t.o.toolbar)return;let e=(t.container.parentElement??t.container).offsetWidth,o=t.isFullSize||e>=t.o.sizeLG?(0,n.splitArray)(t.o.buttons):e>=t.o.sizeMD?(0,n.splitArray)(t.o.buttonsMD):e>=t.o.sizeSM?(0,n.splitArray)(t.o.buttonsSM):(0,n.splitArray)(t.o.buttonsXS);o.toString()!==i.toString()&&(i=o,t.e.fire("closeAllPopups"),t.toolbar?.setRemoveButtons(t.o.removeButtons).build(i.concat(t.o.extraButtons)))}).on(t.ow,"load resize",()=>t.e.fire("recalcAdaptive"))})},74264:function(t,e,i){"use strict";i.d(e,{CamelCaseToKebabCase:function(){return n},kebabCase:function(){return o}});let o=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),n=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},74522:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(18855);i(96608);let h="__jodit-resizer_binded";class d extends u.Plugin{afterInit(t){(0,c.$$)("div",this.rect).forEach(e=>{t.e.on(e,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,e))}),l.eventEmitter.on("hideHelpers",this.hide),t.e.on("readonly",t=>{t&&this.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",t=>{let e=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;e.test(t.value)&&(t.value=t.value.replace(e,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(t){let e=t.target,{editor:i,options:{allowResizeTags:o}}=this.j;for(;e&&e!==i;){if(a.Dom.isTag(e,o)){this.__bind(e),this.onClickElement(e);return}e=e.parentNode}}__afterInsertImage(t){if(this.j.o.resizer.forImageChangeAttributes)return;let e=(0,c.attr)(t,"width");e&&!(0,c.css)(t,"width",!0)&&((0,c.css)(t,"width",e),(0,c.attr)(t,"width",null))}addEventListeners(){let t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",t=>{this.isShown&&t.key===s.KEY_DELETE&&this.element&&!a.Dom.isTag(this.element,"table")&&this.onDelete(t)}).on(t.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([t.ow,t.editor],"scroll.resizer",()=>{this.isShown&&!this.isResizeMode&&this.hide()}).on(t.ow,"keydown.resizer",this.onKeyDown).on(t.ow,"keyup.resizer",this.onKeyUp).on(t.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(t,e){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=t,e.cancelable&&e.preventDefault(),e.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=e.clientX,this.startY=e.clientY,this.pointerX=e.clientX,this.pointerY=e.clientY;let{j:i}=this;i.e.fire("hidePopup"),i.lock(this.LOCK_KEY),i.e.on(i.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){let{j:t}=this;t.unlock(),this.isResizeMode=!1,this.isAltMode=!1,t.synchronizeValues(),t.e.off(t.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(t){if(this.isResizeMode){let e,i;if(!this.element)return;if(this.pointerX=t.clientX,this.pointerY=t.clientY,this.j.options.iframe){let o=this.getWorkplacePosition();e=t.clientX+o.left-this.startX,i=t.clientY+o.top-this.startY}else e=this.pointerX-this.startX,i=this.pointerY-this.startY;let o=this.handle.className,n=0,s=0,r=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===r||r&&a.Dom.isTag(this.element,r))?(e?s=Math.round((n=this.width+(o.match(/left/)?-1:1)*e)/this.ratio):n=Math.round((s=this.height+(o.match(/top/)?-1:1)*i)*this.ratio),n>(0,c.innerWidth)(this.j.editor,this.j.ow)&&(s=Math.round((n=(0,c.innerWidth)(this.j.editor,this.j.ow))/this.ratio))):(n=this.width+(o.match(/left/)?-1:1)*e,s=this.height+(o.match(/top/)?-1:1)*i),n>this.j.o.resizer.min_width&&(n<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",n):this.applySize(this.element,"width","100%")),s>this.j.o.resizer.min_height&&this.applySize(this.element,"height",s),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),t.stopImmediatePropagation()}}onKeyDown(t){this.isAltMode=t.key===s.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(t){if(this.isShown){if(!this.isResizeMode)return this.hide();t.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,c.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(t,e,i){let o=a.Dom.isImage(t)&&this.j.o.resizer.forImageChangeAttributes;o&&(0,c.attr)(t,e,i),(!o||t.style[e])&&(0,c.css)(t,e,i)}onDelete(t){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(a.Dom.safeRemove(this.element),this.hide(),t.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,c.$$)("iframe",this.j.editor).forEach(this.__bind)}__bind(t){let e;if(!(!a.Dom.isHTMLElement(t)||!this.j.o.allowResizeTags.has(t.tagName.toLowerCase())||(0,c.dataBind)(t,h))){if((0,c.dataBind)(t,h,!0),a.Dom.isTag(t,"iframe")){let i=t;a.Dom.isHTMLElement(t.parentNode)&&(0,c.attr)(t.parentNode,"-jodit_iframe_wrapper")?t=t.parentNode:(e=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,c.attr)(e,"style",(0,c.attr)(t,"style")),(0,c.css)(e,{display:"inline-block"===t.style.display?"inline-block":"block",width:t.offsetWidth,height:t.offsetHeight}),t.parentNode&&t.parentNode.insertBefore(e,t),e.appendChild(t),this.j.e.on(e,"click",()=>{(0,c.attr)(e,"data-jodit-wrapper_active",!0)}),t=e),this.j.e.off(t,"mousedown.select touchstart.select").on(t,"mousedown.select touchstart.select",()=>{this.j.s.select(t)}).off(t,"changesize").on(t,"changesize",()=>{i.setAttribute("width",t.offsetWidth+"px"),i.setAttribute("height",t.offsetHeight+"px")})}this.j.e.on(t,"dragstart",this.hide),!s.IS_ES_NEXT&&s.IS_IE&&this.j.e.on(t,"mousedown",e=>{a.Dom.isTag(t,"img")&&e.preventDefault()})}}showSizeViewer(t,e){if(this.j.o.resizer.showSize){if(t<this.sizeViewer.offsetWidth||e<this.sizeViewer.offsetHeight)return void this.hideSizeViewer();this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${t} x ${e}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})}}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,c.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=(0,c.css)(this.j.container,"zIndex").toString()),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,a.Dom.safeRemove(this.rect),(0,c.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach(t=>(0,c.attr)(t,"data-jodit-wrapper_active",!1)))}beforeDestruct(t){this.hide(),l.eventEmitter.off("hideHelpers",this.hide),t.e.off(this.j.ow,".resizer").off(".resizer")}constructor(...t){super(...t),(0,o._)(this,"LOCK_KEY","resizer"),(0,o._)(this,"handle",void 0),(0,o._)(this,"element",null),(0,o._)(this,"isResizeMode",!1),(0,o._)(this,"isShown",!1),(0,o._)(this,"startX",0),(0,o._)(this,"startY",0),(0,o._)(this,"width",0),(0,o._)(this,"height",0),(0,o._)(this,"ratio",0),(0,o._)(this,"rect",this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">
229
+ </a>`},ajax:{...r.Config.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:t=>t,process:t=>t},create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},r.Config.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:t=>!t.dataProvider.canI("FileUpload"),getContent(t,e){let i=new s.UIFileInput(t,{tooltip:e.control.tooltip,onlyImages:t.state.onlyImages});return t.e.fire("bindUploader.filebrowser",i.container),i.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:t=>!t.state.activeElements.length||!t.dataProvider.canI("FileRemove"),exec(t){t.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec(t){t.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:t=>!t.state.activeElements.length,exec(t){t.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled(t){let e=t.state.activeElements;return 1!==e.length||!e[0].isImage||!(t.dataProvider.canI("ImageCrop")||t.dataProvider.canI("ImageResize"))},exec(t){t.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:t=>"tiles"===t.state.view,exec(t){t.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:t=>"list"===t.state.view,exec(t){t.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(t,e){let i=e.container.querySelector(".jodit-input");if(i)return i;let o=t.c.element("input",{class:"jodit-input",placeholder:t.i18n("Filter")});return o.value=t.state.filterWord,t.e.on(o,"keydown mousedown",t.async.debounce(()=>{t.e.fire("filter.filebrowser",o.value)},t.defaultTimeout)),o}},sort:{isInput:!0,getContent(t){let e=t.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${t.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${t.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${t.i18n("Sort by name")} (⬆)</option><option value="name-desc">${t.i18n("Sort by name")} (⬇)</option><option value="size-asc">${t.i18n("Sort by size")} (⬆)</option><option value="size-desc">${t.i18n("Sort by size")} (⬇)</option></select>`);return e.value=t.state.sortBy,t.e.on("sort.filebrowser",t=>{e.value!==t&&(e.value=t)}).on(e,"change",()=>{t.e.fire("sort.filebrowser",e.value)}),e}}}},68616:function(t,e,i){"use strict";i.d(e,{getPropertyDescriptor:function(){return u},watch:function(){return h}});var o=i(69364),n=i(70535),s=i(32328),r=i(91565),a=i(62101),l=i(31534),c=i(33201);function u(t,e){let i;do i=Object.getOwnPropertyDescriptor(t,e),t=Object.getPrototypeOf(t);while(!i&&t)return i}function h(t,e){return(i,h)=>{if(!(0,r.isFunction)(i[h]))throw(0,c.error)("Handler must be a Function");let d=e?.immediately??!0,f=e?.context,p=e=>{let o=(0,l.isViewObject)(e)?e:e.jodit,c=(t,...i)=>{if(!e.isInDestruct)return e[h](t,...i)};d||(c=e.async.microDebounce(c,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[i,n]=t.split(":"),s=f;i.length&&(s=e.get(i)),(0,r.isFunction)(s)&&(s=s(e)),o.events.on(s||e,n,c),s||o.events.on(n,c),e.hookStatus("beforeDestruct",()=>{o.events.off(s||e,n,c).off(n,c)});return}let s=t.split("."),[l]=s,h=s.slice(1),d=e[l];(0,a.isPlainObject)(d)&&(0,n.observable)(d).on("change."+h.join("."),c);let p=u(i,l);Object.defineProperty(e,l,{configurable:!0,set(t){let i=d;i!==t&&(d=t,p&&p.set&&p.set.call(e,t),(0,a.isPlainObject)(d)&&(d=(0,n.observable)(d)).on("change."+h.join("."),c),c(l,i,d))},get:()=>p&&p.get?p.get.call(e):d})})};(0,r.isFunction)(i.hookStatus)?i.hookStatus(o.STATUSES.ready,p):p(i)}}},68624:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206);i(65230);class u extends c.Plugin{afterInit(t){t.o.link.followOnDblClick&&t.e.on("dblclick.link",this.__onDblClickOnLink),t.e.on(t.editor,"click.link",this.__onClickReadOnlyLink),t.o.link.processPastedLink&&t.e.on("processPaste.link",this.onProcessPasteLink),t.e.on("generateLinkForm.link",this.__generateForm),t.registerCommand("openLinkDialog",{exec:()=>{let e=t.dlg({resizable:!1}),i=this.__generateForm(t.s.current(),()=>{e.close()});i.container.classList.add("jodit-dialog_alert"),e.setContent(i),e.open(),t.async.requestIdleCallback(()=>{let{url_input:t}=(0,l.refs)(i.container);t?.focus()})},hotkeys:t.o.link.hotkeys})}__onDblClickOnLink(t){if(!r.Dom.isTag(t.target,"a"))return;let e=(0,l.attr)(t.target,"href");e&&(location.href=e,t.preventDefault())}onProcessPasteLink(t,e){let{jodit:i}=this;if((0,l.isURL)(e)&&i.o.link.processPastedLink){if(i.e.stopPropagation("processPaste"),i.o.link.processVideoLink){let t=(0,l.call)(i.o.video?.parseUrlToVideoEmbed??l.convertMediaUrlToVideoEmbed,e,{width:i.o.video?.defaultWidth,height:i.o.video?.defaultHeight});if(t!==e)return i.createInside.fromHTML(t)}if(i.s.isCollapsed()){let t=i.createInside.element("a");return t.setAttribute("href",e),t.textContent=e,i.e.fire("applyLink",i,t,null),t}return i.s.commitStyle({element:"a",attributes:{href:e}}),!0}}__generateForm(t,e){let i,{jodit:o}=this,n=o.i18n.bind(o),{openInNewTabCheckbox:s,noFollowCheckbox:a,formTemplate:c,formClassName:u,modeClassName:h}=o.o.link,d=c(o),f=(0,l.isString)(d)?o.c.fromHTML(d,{target_checkbox_box:s,nofollow_checkbox_box:a}):d,p=r.Dom.isElement(f)?f:f.container,m=(0,l.refs)(p),{insert:g,unlink:_,content_input_box:v}=m,{target_checkbox:b,nofollow_checkbox:y,url_input:w}=m,S=r.Dom.isImage(t),{content_input:C}=m,{className_input:E}=m,{className_select:I}=m;C||(C=o.c.element("input",{type:"hidden",ref:"content_input"})),u&&p.classList.add(u),S&&r.Dom.hide(v);let T=()=>i?i.innerText:(0,l.stripTags)(o.s.range.cloneContents(),o.ed);i=!!(t&&r.Dom.closest(t,"a",o.editor))&&r.Dom.closest(t,"a",o.editor),!S&&t&&(C.value=T()),i?(w.value=(0,l.attr)(i,"href")||"",h&&function(t,e,i,o){switch(t){case"input":e&&(e.value=(0,l.attr)(i,"class")||"");break;case"select":if(o){for(let t=0;t<o.selectedOptions.length;t++){let e=o.options.item(t);e&&(e.selected=!1)}((0,l.attr)(i,"class")||"").split(/\s+/).filter(t=>t.trim().length>0).forEach(t=>{if(t)for(let e=0;e<o.options.length;e++){let i=o.options.item(e);i?.value&&i.value.split(/\s+/).map(t=>t.trim()).includes(t)&&(i.selected=!0)}})}}}(h,E,i,I),s&&b&&(b.checked="_blank"===(0,l.attr)(i,"target")),a&&y&&(y.checked="nofollow"===(0,l.attr)(i,"rel")),g.textContent=n("Update")):r.Dom.hide(_),o.editor.normalize();let x=o.history.snapshot.make();_&&o.e.on(_,"click",t=>{o.s.restore(),o.history.snapshot.restore(x),i&&r.Dom.unwrap(i),o.synchronizeValues(),e(),t.preventDefault()});let D=()=>{let t;if(!w.value.trim().length)return w.focus(),w.classList.add("jodit_error"),!1;o.s.restore(),o.s.removeMarkers(),o.editor.normalize(),o.history.snapshot.restore(x);let n=T()!==C.value.trim(),c=o.createInside;if(i&&r.Dom.isOrContains(o.editor,i))t=[i];else{if(o.s.isCollapsed()){let e=c.element("a");o.s.insertNode(e,!1,!1),t=[e]}else{let e=o.s.current();t=r.Dom.isTag(e,"img")?[r.Dom.wrap(e,"a",c)]:o.s.wrapInTag("a")}t.forEach(t=>o.s.select(t))}return t.forEach(t=>{var e;let i;(0,l.attr)(t,"href",w.value),function(t,e,i,o){if(t&&(e??i)){if("input"===t)""===e.value&&o.hasAttribute("class")&&(0,l.attr)(o,"class",null),""!==e.value&&(0,l.attr)(o,"class",e.value);else if("select"===t){o.hasAttribute("class")&&(0,l.attr)(o,"class",null);for(let t=0;t<i.selectedOptions.length;t++){let e=i.selectedOptions.item(t)?.value;e&&e.split(/\s+/).filter(t=>t.trim().length>0).forEach(t=>{o.classList.add(t)})}}}}(h,E,I,t),S||(e=C,i=t.textContent,e.value.trim().length?n&&(i=e.value):i=w.value,i!==t.textContent&&(t.textContent=i)),s&&b&&(0,l.attr)(t,"target",b.checked?"_blank":null),a&&y&&(0,l.attr)(t,"rel",y.checked?"nofollow":null),o.e.fire("applyLink",o,t,f)}),o.synchronizeValues(),e(),!1};return r.Dom.isElement(f)?o.e.on(f,"submit",t=>(t.preventDefault(),t.stopImmediatePropagation(),D(),!1)):f.onSubmit(D),f}beforeDestruct(t){t.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(t.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(t){let{jodit:e}=this;e.o.readonly&&e.o.link.preventReadOnlyNavigation&&r.Dom.isTag(t.target,"a")&&t.preventDefault()}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"link",group:"insert"}])}}(0,n.__decorate)([s.autobind],u.prototype,"__onDblClickOnLink",null),(0,n.__decorate)([s.autobind],u.prototype,"onProcessPasteLink",null),(0,n.__decorate)([s.autobind],u.prototype,"__generateForm",null),(0,n.__decorate)([s.autobind],u.prototype,"__onClickReadOnlyLink",null),a.pluginSystem.add("link",u)},68709:function(t,e,i){"use strict";i.d(e,{checkRemoveContentNotEditable:function(){return r}});var o=i(27795),n=i(65946),s=i(42259);function r(t,e,i){let r=o.Dom.findSibling(e,i);return!r&&e.parentElement&&e.parentElement!==t.editor&&(r=o.Dom.findSibling(e.parentElement,i)),!(!o.Dom.isElement(r)||o.Dom.isContentEditable(r,t.editor))&&((0,n.call)(i?o.Dom.before:o.Dom.after,r,e),o.Dom.safeRemove(r),(0,s.moveNodeInsideStart)(t,e,i),(0,n.call)(i?t.s.setCursorBefore:t.s.setCursorAfter,e),!0)}},69023:function(t,e,i){"use strict";i(5266).Config.prototype.tab={tabInsideLiInsertNewList:!0}},69070:function(t,e,i){"use strict";i(5266).Config.prototype.tableAllowCellSelection=!0},69143:function(t,e,i){"use strict";i.d(e,{offset:function(){return o}});let o=(t,e,i,n=!1)=>{let s,r,a;try{s=t.getBoundingClientRect()}catch(t){s={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,c=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=i.defaultView||i.parentWindow,h=u.pageYOffset||c.scrollTop||l.scrollTop,d=u.pageXOffset||c.scrollLeft||l.scrollLeft,f=c.clientTop||l.clientTop||0,p=c.clientLeft||l.clientLeft||0,m=e.iframe;if(!n&&e&&e.options&&e.o.iframe&&m){let{top:t,left:i}=o(m,e,e.od,!0);r=s.top+t,a=s.left+i}else r=s.top+h-f,a=s.left+d-p;return{top:Math.round(r),left:Math.round(a),width:s.width,height:s.height}}},69364:function(t,e,i){"use strict";i.d(e,{STATUSES:function(){return o}});let o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},69696:function(t,e,i){"use strict";var o=i(28077),n=i(24497),s=i(80991);i(80538);let r=new Set;o.pluginSystem.add("fullsize",function(t){t.registerButton({name:"fullsize"});let e=!1,i=0,o=0,a=!1,l=()=>{let{container:n,events:r}=t;r&&(e?(i=(0,s.css)(n,"height",!0),o=(0,s.css)(n,"width",!0),(0,s.css)(n,{height:t.ow.innerHeight,width:t.ow.innerWidth}),a=!0):a&&(0,s.css)(n,{height:i||"auto",width:o||"auto"}))},c=i=>{let{container:o,events:a}=t;if(o){if(void 0===i&&(i=!o.classList.contains("jodit_fullsize")),t.setMod("fullsize",i),t.o.fullsize=i,e=i,o.classList.toggle("jodit_fullsize",i),t.toolbar&&((0,n.isJoditObject)(t)&&t.toolbarContainer?.appendChild(t.toolbar.container),(0,s.css)(t.toolbar.container,"width","auto")),i?r.add(o):r.delete(o),t.o.globalFullSize&&(1===r.size&&i||0===r.size&&!i)){let t=o.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",i),t=t.parentNode;l()}a.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",l),t.e.on("afterInit afterOpen",()=>{t.toggleFullSize(t?.options?.fullsize)}).on("toggleFullSize",c).on("beforeDestruct",()=>{e&&c(!1)}).on("beforeDestruct",()=>{t.events&&t.e.off(t.ow,"resize",l)})})},70195:function(t,e,i){"use strict";i.d(e,{removeFormatForSelection:function(){return r}});var o=i(23211),n=i(93640),s=i(37431);function r(t){let{s:e,editor:i,createInside:r}=t,{range:a}=e,l=a.cloneRange(),c=a.cloneRange(),u=r.fake(),h=r.fake();l.collapse(!0),c.collapse(!1),o.Dom.safeInsertNode(l,u),o.Dom.safeInsertNode(c,h),a.setStartBefore(u),a.collapse(!0),e.selectRange(a),(0,s.removeFormatForCollapsedSelection)(t,u),a.setEndAfter(h),a.collapse(!1),e.selectRange(a),(0,s.removeFormatForCollapsedSelection)(t,h);let d=[];o.Dom.between(u,h,t=>{(0,s.isInlineBlock)(t)&&!o.Dom.isTag(t,"a")&&d.push(t),o.Dom.isElement(t)&&(0,n.attr)(t,"style")&&(0,n.attr)(t,"style",null)}),d.forEach(t=>o.Dom.unwrap(t));let f=(t,e)=>{if(!o.Dom.findNotEmptySibling(t,e)){let o=t.parentNode;if(o&&o!==i&&(0,n.attr)(o,"style"))return(0,n.attr)(o,"style",null),f(o,e),!0}};f(u,!0)&&f(h,!1),a.setStartAfter(u),a.setEndBefore(h),e.selectRange(a),o.Dom.safeRemove(u),o.Dom.safeRemove(h)}},70222:function(t,e,i){"use strict";i.d(e,{isNumeric:function(){return n}});var o=i(85932);function n(t){if((0,o.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},70235:function(t,e,i){"use strict";var o=i(7909);e.default=[{name:"eye",tooltip:"Open link",exec(t,e){let i=(0,o.attr)(e,"href");e&&i&&t.ow.open(i)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},70535:function(t,e,i){"use strict";i.d(e,{observable:function(){return c}});var o=i(68616),n=i(17312),s=i(94013),r=i(62101);let a=Symbol("observable-object");function l(t){return void 0!==t[a]}function c(t){if(l(t))return t;let e={},i={},c=(e,o)=>((0,n.isArray)(e)?e.map(t=>c(t,o)):(i[e]||(i[e]=[]),i[e].push(o)),t),u=(o,...s)=>{if((0,n.isArray)(o))return void o.map(t=>u(t,...s));try{!e[o]&&i[o]&&(e[o]=!0,i[o].forEach(e=>e.call(t,...s)))}finally{e[o]=!1}},h=(e,i=[])=>{let n={};l(e)||(Object.defineProperty(e,a,{enumerable:!1,value:!0}),Object.keys(e).forEach(a=>{let l=i.concat(a).filter(t=>t.length);n[a]=e[a];let c=(0,o.getPropertyDescriptor)(e,a);Object.defineProperty(e,a,{set(e){let i=n[a];if(!(0,s.isFastEqual)(n[a],e)){u(["beforeChange","beforeChange."+l.join(".")],a,e),(0,r.isPlainObject)(e)&&h(e,l),c&&c.set?c.set.call(t,e):n[a]=e;let o=[];u(["change",...l.reduce((t,e)=>(o.push(e),t.push("change."+o.join(".")),t),[])],l.join("."),i,e?.valueOf?e.valueOf():e)}},get:()=>c&&c.get?c.get.call(t):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&h(n[a],l)}),Object.defineProperty(t,"on",{value:c}))};return h(t),t}},70697:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg>'},70881:function(t){t.exports='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg>'},70999:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg>'},71125:function(t,e,i){"use strict";i.d(e,{call:function(){return a},callPromise:function(){return c},getDataTransfer:function(){return f},keys:function(){return h},loadImage:function(){return u},markOwner:function(){return l},memorizeExec:function(){return d}});var o=i(52100),n=i(18303),s=i(7909),r=i(36400);function a(t,...e){return t(...e)}function l(t,e){(0,s.attr)(e,"data-editor_id",t.id),e.component||Object.defineProperty(e,"jodit",{value:t})}function c(t,e){return(0,o.isPromise)(t)?t.then(t=>t,()=>null).finally(e):e?.()}let u=(t,e)=>e.async.promise((i,o)=>{let n=new Image,s=()=>{e.e.off(n),o?.()},r=()=>{e.e.off(n),i(n)};e.e.one(n,"load",r).one(n,"error",s).one(n,"abort",s),n.src=t,n.complete&&r()}),h=(t,e=!0)=>{if(e)return Object.keys(t);let i=[];for(let e in t)i.push(e);return i},d=(t,e,{control:i},o)=>{let s="button"+i.command,a=(i.args&&i.args[0])??(0,r.dataBind)(t,s);if((0,n.isVoid)(a))return!1;(0,r.dataBind)(t,s,a),o&&(a=o(a)),t.execCommand(i.command,!1,a??void 0)},f=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch{return null}}},71552:function(t,e,i){"use strict";i.d(e,{applyValuesToImage:function(){return l}});var o=i(23211),n=i(93640),s=i(49422),r=i(21132),a=i(49147);function l(t,e,i){let{style:l,imageSrc:c,borderRadius:u,imageTitle:h,imageAlt:d,imageLink:f,imageWidth:p,imageHeight:m,marginTop:g,marginRight:_,marginBottom:v,marginLeft:b,imageLinkOpenInNewTab:y,align:w,classes:S,id:C}=e.values,E=t.o;(E.image.editStyle&&(0,n.attr)(i,"style",l||null),c)?((0,n.attr)(i,"src",c),i.style.borderRadius=u?u+"px":"",(0,n.attr)(i,"title",h||null),(0,n.attr)(i,"alt",d||null),(0,s.applyLink)(t,i,f,y),(0,a.applySize)(i,p,m,e.sizeIsLocked),t.o.image.editMargins&&(0,r.applyMargin)(t,g,_,v,b,i,e.marginIsLocked),E.image.editClass&&(0,n.attr)(i,"class",S||null),E.image.editId&&(0,n.attr)(i,"id",C||null),E.image.editAlign&&(0,n.hAlignElement)(i,w)):o.Dom.safeRemove(i)}},71693:function(t,e,i){"use strict";var o=i(81937),n=i(5266);n.Config.prototype.askBeforePasteFromWord=!0,n.Config.prototype.processPasteFromWord=!0,n.Config.prototype.defaultActionOnPasteFromWord=null,n.Config.prototype.pasteFromWordActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Clean"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}]},71940:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg>'},71948:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg>'},72068:function(t,e,i){"use strict";function o(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}i.d(e,{isAbortError:function(){return o}})},72214:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(28077),l=i(91206),c=i(4099);i(58293);class u extends l.Plugin{afterInit(t){let{height:e,width:i,allowResizeX:o}=t.o,{allowResizeY:n}=t.o;"auto"===e&&"auto"!==i&&(n=!1),("auto"!==e||"auto"!==i)&&(o||n)&&(t.statusbar.setMod("resize-handle",!0),t.e.on("toggleFullSize.resizeHandler",()=>{this.handle.style.display=t.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(t.ow,"mouseup touchend",this.onHandleResizeEnd),t.container.appendChild(this.handle))}onHandleResizeStart(t){this.isResized=!0,this.start.x=t.clientX,this.start.y=t.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),t.preventDefault()}onHandleResize(t){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+t.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+t.clientX-this.start.x),this.j.e.fire("resize"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){r.Dom.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}constructor(...t){super(...t),(0,o._)(this,"isResized",!1),(0,o._)(this,"start",{x:0,y:0,w:0,h:0}),(0,o._)(this,"handle",this.j.c.div("jodit-editor__resize",c.Icon.get("resize_handler")))}}(0,o._)(u,"requires",["size"]),(0,n.__decorate)([s.autobind],u.prototype,"onHandleResizeStart",null),(0,n.__decorate)([s.autobind],u.prototype,"onHandleResize",null),(0,n.__decorate)([s.autobind],u.prototype,"onHandleResizeEnd",null),a.pluginSystem.add("resizeHandler",u)},72348:function(t,e,i){"use strict";i.d(e,{ColorPickerWidget:function(){return l}});var o=i(27795),n=i(65946),s=i(4099),r=i(54522),a=i.n(r);s.Icon.set("palette",a());let l=(t,e,i)=>{let r="jodit-color-picker",a=(0,n.normalizeColor)(i),l=t.c.div(r),c=t.o.textIcons?`<span>${t.i18n("palette")}</span>`:s.Icon.get("palette"),u=t=>{let e=[];return(0,n.isPlainObject)(t)?Object.keys(t).forEach(i=>{e.push(`<div class="${r}__group ${r}__group-${i}">`),e.push(u(t[i])),e.push("</div>")}):(0,n.isArray)(t)&&t.forEach(t=>{e.push(`<span class='${r}__color-item ${a===t?r+"__color-item_active_true":""}' title="${t}" style="background-color:${t}" data-color="${t}"></span>`)}),e.join("")};l.appendChild(t.c.fromHTML(`<div class="${r}__groups">${u(t.o.colors)}</div>`)),l.appendChild(t.c.fromHTML(`<div data-ref="extra" class="${r}__extra"></div>`));let{extra:h}=(0,n.refs)(l);return t.o.showBrowserColorPicker&&(0,n.hasBrowserColorPicker)()&&(h.appendChild(t.c.fromHTML(`<div class="${r}__native">${c}<input type="color" value="#ffffff"/></div>`)),t.e.on(l,"change",t=>{t.stopPropagation();let i=t.target;if(!i||!i.tagName||!o.Dom.isTag(i,"input"))return;let s=i.value||"";(0,n.isFunction)(e)&&e(s),t.preventDefault()})),t.e.on(l,"mousedown touchend",i=>{i.stopPropagation(),i.preventDefault();let s=i.target;if((!s||!s.tagName||o.Dom.isTag(s,"svg")||o.Dom.isTag(s,"path"))&&s.parentNode&&(s=o.Dom.closest(s.parentNode,"span",t.editor)),!o.Dom.isTag(s,"span")||!s.classList.contains(r+"__color-item"))return;let a=(0,n.attr)(s,"-color")||"";e&&(0,n.isFunction)(e)&&e(a)}),t.e.fire("afterGenerateColorPicker",l,h,e,a),l}},72412:function(t,e,i){"use strict";function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}i.d(e,{isNumber:function(){return o}})},73019:function(t,e,i){"use strict";i.d(e,{isSameStyleChild:function(){return l},isSuitElement:function(){return r},suitableClosest:function(){return a}});var o=i(23211),n=i(9703),s=i(83653);function r(t,e,i,a=!0){if(!e||!(0,s.isNormalNode)(e))return!1;let{element:l,elementIsDefault:c,options:u}=t;if(o.Dom.isList(e)&&t.elementIsList)return!0;let h=o.Dom.isTag(e,l);return!!(h&&!(c&&i)||u.attributes?.style&&(a?(0,n.hasSameStyle)(e,u.attributes.style):(0,n.hasSameStyleKeys)(e,u.attributes.style))&&!t.elementIsList)||!h&&!i&&c&&o.Dom.isInlineBlock(e)}function a(t,e,i){return o.Dom.closest(e,e=>r(t,e,!0,!1),i)}function l(t,e){let{element:i,options:o}=t;if(!e||!(0,s.isNormalNode)(e))return!1;let r=e.nodeName.toLowerCase()===i,a=!!(o.attributes?.style&&(0,n.hasSameStyleKeys)(e,o.attributes?.style));return r&&a}},73154:function(t,e,i){"use strict";i.d(e,{wrap:function(){return a}});var o=i(27795),n=i(7909),s=i(97110),r=i(83335);function a(t,e,i){var a,c,u;let h=(a=t,c=e,u=i,a.elementIsBlock?o.Dom.up(c,t=>o.Dom.isBlock(t)&&!o.Dom.isTag(t,l),u.editor)||(0,r.wrapUnwrappedText)(a,c,u):((0,n.attr)(c,"size",null),c));return t.elementIsList?(0,s.wrapList)(t,h,i):o.Dom.replace(h,t.element,i.createInside,!0)}let l=new Set(["td","th","tr","tbody","table","li","ul","ol"])},73302:function(t,e,i){"use strict";i.d(e,{Jodit:function(){return Jodit}});var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(28077),l=i(65946),c=i(73714),u=i(80512),h=i(5266),d=i(60936);let f="data-jodit-default-style-display",p="data-jodit-default-classes",m={contenteditable:!1};class Jodit extends d.ViewWithToolbar{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise(t=>{this.hookStatus("ready",()=>t(this))})}static get ready(){return new Promise(t=>{a.eventEmitter.on("joditready",t)})}get text(){if(this.editor)return this.editor.innerText||"";let t=this.createInside.div();return t.innerHTML=this.getElementValue(),t.innerText||""}get defaultTimeout(){return(0,l.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:h.Config.defaultOptions.defaultTimeout}static atom(t){return(0,l.markAsAtomic)(t)}static make(t,e){return new this(t,e)}static isJoditAssigned(t){return t&&(0,l.isJoditObject)(t.component)&&!t.component.isInDestruct}static get defaultOptions(){return h.Config.defaultOptions}get createInside(){return new d.Create(()=>this.ed,this.o.createAttributes)}__setPlaceField(t,e){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[t]=e}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(t){this.__setPlaceField("editor",t)}get container(){return this.currentPlace.container}set container(t){this.__setPlaceField("container",t)}get workplace(){return this.currentPlace.workplace}get message(){return this.getMessageModule(this.workplace)}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(t){this.__setPlaceField("iframe",t)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(t){this.__setPlaceField("editorWindow",t)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(t){this.__options=t,this.__setPlaceField("options",t)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){let t=this,e=(0,l.ConfigProto)({defaultTimeout:t.defaultTimeout,uploader:t.o.uploader,language:t.o.language,license:t.o.license,theme:t.o.theme,shadowRoot:t.o.shadowRoot,defaultCallback(e){e.files&&e.files.length&&e.files.forEach((i,o)=>{let n=e.baseurl+i;e.isImages&&e.isImages[o]?t.s.insertImage(n,null,t.o.imageDefaultWidth):t.s.insertNode(t.createInside.fromHTML(`<a href='${n}' title='${n}'>${n}</a>`))})}},this.o.filebrowser);return t.getInstance("FileBrowser",e)}get mode(){return this.__mode}set mode(t){this.setMode(t)}getNativeEditorValue(){let t=this.e.fire("beforeGetNativeEditorValue");return(0,l.isString)(t)?t:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(t){let e={value:t};!this.e.fire("beforeSetNativeEditorValue",e)&&this.editor&&(this.editor.innerHTML=e.value)}get value(){return this.getEditorValue()}set value(t){this.setEditorValue(t),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(t=!0,e){let i;if(void 0!==(i=this.e.fire("beforeGetValueFromEditor",e)))return i;i=this.getNativeEditorValue().replace(s.INVISIBLE_SPACE_REG_EXP(),""),t&&(i=i.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===i&&(i="");let o={value:i};return this.e.fire("afterGetValueFromEditor",o,e),o.value}setEditorValue(t){let e=this.e.fire("beforeSetValueToEditor",t);if(!1===e)return;if((0,l.isString)(e)&&(t=e),!this.editor){void 0!==t&&this.__setElementValue(t);return}if(!(0,l.isString)(t)&&!(0,l.isVoid)(t))throw(0,l.error)("value must be string");(0,l.isVoid)(t)||this.getNativeEditorValue()===t||this.setNativeEditorValue(t),this.e.fire("postProcessSetEditorValue");let i=this.getElementValue(),o=this.getEditorValue();if(!this.__isSilentChange&&i!==o&&this.__callChangeCount<s.SAFE_COUNT_CHANGE_CALL){this.__setElementValue(o),this.__callChangeCount+=1,s.IS_PROD||this.__callChangeCount;try{this.history.__upTick(),this.e.fire("change",o,i),this.e.fire(this.history,"change",o,i)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}__setElementValue(t){if(!(0,l.isString)(t))throw(0,l.error)("value must be string");if(this.element!==this.container&&t!==this.getElementValue()){let e={value:t},i=this.e.fire("beforeSetElementValue",e);(0,l.callPromise)(i,()=>{void 0!==this.element.value?this.element.value=e.value:this.element.innerHTML=e.value,this.e.fire("afterSetElementValue",e)})}}registerCommand(t,e,i){let o=t.toLowerCase(),n=this.commands.get(o);if(void 0===n&&(n=[],this.commands.set(o,n)),n.push(e),!(0,l.isFunction)(e)){let n=this.o.commandToHotkeys[o]||this.o.commandToHotkeys[t]||e.hotkeys;n&&this.registerHotkeyToCommand(n,o,i?.stopPropagation)}return this}registerHotkeyToCommand(t,e,i=!0){let o=(0,l.asArray)(t).map(l.normalizeKeyAliases).map(t=>t+".hotkey").join(" ");this.e.off(o).on(o,(t,o)=>(o&&(o.shouldStop=i??!0),this.execCommand(e)))}execCommand(t,e,i,...o){let n;if(this.s.isFocused()||this.s.focus(),!this.o.readonly||this.o.allowCommandsInReadOnly.includes(t)){if(t=t.toLowerCase(),!1!==(n=this.e.fire("beforeCommand"+(0,l.ucfirst)(t),e,i,...o))&&(n=this.e.fire("beforeCommand",t,e,i,...o)),!1!==n&&(n=this.__execCustomCommands(t,e,i,...o)),!1!==n){this.s.focus();try{n=this.nativeExecCommand(t,e,i)}catch(t){if(!s.IS_PROD)throw t}}return this.e.fire("afterCommand",t,e,i),this.__imdSynchronizeValues(),n}}nativeExecCommand(t,e,i){this.__isSilentChange=!0;try{return this.ed.execCommand(t,e,i)}finally{this.__isSilentChange=!1}}__execCustomCommands(t,e,i,...o){t=t.toLowerCase();let n=this.commands.get(t);if(void 0!==n){let s;return n.forEach(n=>{let r=((0,l.isFunction)(n)?n:n.exec).call(this,t,e,i,...o);void 0!==r&&(s=r)}),s}}lock(t="any"){return!!super.lock(t)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.container.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.container.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===s.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==s.MODE_SPLIT)return this.getMode();let t=this.od.activeElement;return t&&(t===this.iframe||d.Dom.isOrContains(this.editor,t)||d.Dom.isOrContains(this.toolbar.container,t))?s.MODE_WYSIWYG:s.MODE_SOURCE}setMode(t){let e=this.getMode(),i={mode:parseInt(t.toString(),10)},o=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",i)&&(this.__mode=[s.MODE_SOURCE,s.MODE_WYSIWYG,s.MODE_SPLIT].includes(i.mode)?i.mode:s.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),o.forEach(t=>{this.container.classList.remove(t)}),this.container.classList.add(o[this.mode-1]),e!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let t=this.getMode();[s.MODE_SOURCE,s.MODE_WYSIWYG,this.o.useSplitMode?s.MODE_SPLIT:9].includes(t+1)?t+=1:t=s.MODE_WYSIWYG,this.setMode(t)}setDisabled(t){this.o.disabled=t;let e=this.__wasReadOnly;this.setReadOnly(t||e),this.__wasReadOnly=e,this.editor&&(this.editor.setAttribute("aria-disabled",t.toString()),this.container.classList.toggle("jodit_disabled",t),this.e.fire("disabled",t))}getDisabled(){return this.o.disabled}setReadOnly(t){this.__wasReadOnly!==t&&(this.__wasReadOnly=t,this.o.readonly=t,t?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",t))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==s.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(t){this.options=(0,l.ConfigProto)(t||{},h.Config.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}addPlace(t,e){let i=(0,l.resolveElement)(t,this.o.shadowRoot||this.od);this.attachEvents(e),i.attributes&&(0,l.toArray)(i.attributes).forEach(t=>{let i=t.name,o=t.value;void 0===h.Config.defaultOptions[i]||e&&void 0!==e[i]||(-1!==["readonly","disabled"].indexOf(i)&&(o=""===o||"true"===o),/^[0-9]+(\.)?([0-9]+)?$/.test(o.toString())&&(o=Number(o)),this.options[i]=o)});let o=this.c.div("jodit-container");o.classList.add("jodit"),o.classList.add("jodit-container"),o.classList.add("jodit_theme_"+(this.o.theme||"default")),g(this.o.className,o),this.o.containerStyle&&(0,l.css)(o,this.o.containerStyle);let{styleValues:n}=this.o;Object.keys(n).forEach(t=>{let e=(0,l.kebabCase)(t);o.style.setProperty("--jd-"+e,n[t])}),o.setAttribute("contenteditable","false");let s=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(i.nodeName)&&(o=i,i.setAttribute(p,i.className.toString()),s=o.innerHTML,o.innerHTML=""),o.classList.add("jodit_inline"),o.classList.add("jodit-container")),i!==o&&(i.style.display&&i.setAttribute(f,i.style.display),i.style.display="none");let r="workplace-slot",a=this.c.div(this.getFullElName(r,"top"),m);o.appendChild(a);let c=this.c.div(this.getFullElName(r,"center"),m),u=this.c.div("jodit-workplace",m),_=this.c.div(this.getFullElName(r,"left"),m),v=this.c.div(this.getFullElName(r,"right"),m);c.appendChild(_),c.appendChild(u),c.appendChild(v),o.appendChild(c);let b=this.c.div(this.getFullElName(r,"bottom"),m);o.appendChild(b),i.parentNode&&i!==o&&i.parentNode.insertBefore(o,i),Object.defineProperty(i,"component",{enumerable:!1,configurable:!0,value:this});let y=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});u.appendChild(y);let w={editor:y,element:i,container:o,workplace:u,slots:{top:a,bottom:b,center:c,left:_,right:v},statusbar:new d.StatusBar(this,o),options:this.isReady?(0,l.ConfigProto)(e||{},h.Config.defaultOptions):this.options,history:new d.History(this),editorWindow:this.ow};this.__elementToPlace.set(y,w),this.setCurrentPlace(w),this.places.push(w),this.setNativeEditorValue(this.getElementValue());let S=this.__initEditor(s),C=this.options,E=()=>{C.enableDragAndDropFileToEditor&&C.uploader&&(C.uploader.url||C.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,w),this.e.fire("afterAddPlace",w)};return(0,l.callPromise)(S,E)}addDisclaimer(t){this.workplace.appendChild(t)}setCurrentPlace(t){this.currentPlace!==t&&(this.isEditorMode()||this.setMode(s.MODE_WYSIWYG),this.currentPlace=t,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",t))}__initEditor(t){let e=this.__createEditor();return(0,l.callPromise)(e,()=>{if(this.isInDestruct)return;if(this.element!==this.container){let t=this.getElementValue();t!==this.getEditorValue()&&this.setEditorValue(t)}else null!=t&&this.setEditorValue(t);let e=this.o.defaultMode;if(this.o.saveModeInStorage){let t=this.storage.get("jodit_default_mode");"string"==typeof t&&(e=parseInt(t,10))}this.setMode(e),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch{}})}__createEditor(){let t=this.editor,e=this.e.fire("createEditor",this);return(0,l.callPromise)(e,()=>{!this.isInDestruct&&((!1===e||(0,l.isPromise)(e))&&d.Dom.safeRemove(t),g(this.o.editorClassName,this.editor),this.o.style&&(0,l.css)(this.editor,this.o.style),this.e.on("synchro",()=>{this.setEditorValue()}).on("focus",()=>{this.editorIsActive=!0}).on("blur",()=>this.editorIsActive=!1),this.__prepareWYSIWYGEditor(),this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce(()=>{this.e&&this.e.fire(this.element,"change")},this.defaultTimeout)))})}__prepareWYSIWYGEditor(){let{editor:t}=this;if(this.o.direction){let t="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=t,this.editor.setAttribute("dir",t),this.container.style.direction=t,this.container.setAttribute("dir",t),this.toolbar.setDirection(t)}this.e.on(t,"mousedown touchstart focus",()=>{let e=this.__elementToPlace.get(t);e&&this.setCurrentPlace(e)}).on(t,"compositionend",this.synchronizeValues).on(t,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",t=>{if(!this.o.readonly&&!this.__isSilentChange&&(!(t instanceof this.ew.KeyboardEvent)||!t.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(t.type,t))return!1;this.synchronizeValues()}})}fetch(t,e){let i=new c.Ajax({url:t,...e},this.o.defaultAjaxOptions),o=()=>{this.e.off("beforeDestruct",o),this.progressbar.progress(100).hide(),i.destruct()};this.e.one("beforeDestruct",o),this.progressbar.show().progress(30);let n=i.send();return n.finally(o).catch(()=>null),n}destruct(){if(this.isInDestruct)return;this.setStatus(d.STATUSES.beforeDestruct),this.__elementToPlace.clear(),(0,r.cached)(this,"storage")?.clear(),(0,r.cached)(this,"buffer")?.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);let t=this.editor?this.getEditorValue():"";this.places.forEach(({container:e,workplace:i,statusbar:o,element:n,iframe:s,editor:r,history:a})=>{if(n){if(n!==e)if(n.hasAttribute(f)){let t=(0,l.attr)(n,f);t&&(n.style.display=t,n.removeAttribute(f))}else n.style.display="";else n.hasAttribute(p)&&(n.className=(0,l.attr)(n,p)||"",n.removeAttribute(p));n.hasAttribute("style")&&!(0,l.attr)(n,"style")&&n.removeAttribute("style"),o.destruct(),this.e.off(e),this.e.off(n),this.e.off(r),d.Dom.safeRemove(i),d.Dom.safeRemove(r),e!==n&&d.Dom.safeRemove(e),Object.defineProperty(n,"component",{enumerable:!1,configurable:!0,value:null}),d.Dom.safeRemove(s),e===n&&(n.innerHTML=t),a.destruct()}}),this.places.length=0,this.currentPlace={},delete a.instances[this.id],super.destruct()}constructor(t,e){super(e,!0),(0,o._)(this,"isJodit",!0),(0,o._)(this,"commands",new Map),(0,o._)(this,"__selectionLocked",null),(0,o._)(this,"__wasReadOnly",!1),(0,o._)(this,"editorIsActive",!1),(0,o._)(this,"selection",void 0),(0,o._)(this,"__mode",s.MODE_WYSIWYG),(0,o._)(this,"__callChangeCount",0),(0,o._)(this,"__isSilentChange",!1),(0,o._)(this,"currentPlace",{options:this.__options,container:this.__container}),(0,o._)(this,"places",[]),(0,o._)(this,"__elementToPlace",new Map);try{const e=(0,l.resolveElement)(t,this.options.shadowRoot||this.od);if(Jodit.isJoditAssigned(e))return e.component}catch(t){if(!s.IS_PROD)throw t;throw this.destruct(),t}this.setStatus(d.STATUSES.beforeInit),this.id=(0,l.attr)((0,l.resolveElement)(t,this.o.shadowRoot||this.od),"id")||new Date().getTime().toString(),a.instances[this.id]=this,this.attachEvents(e),this.e.on(this.ow,"resize",()=>{this.e&&this.e.fire("resize")}),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new d.Selection(this);const i=this.beforeInitHook();(0,l.callPromise)(i,()=>{if(this.isInDestruct)return;this.e.fire("beforeInit",this),a.pluginSystem.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)}),this.places.length=0;let i=this.addPlace(t,e);a.instances[this.id]=this;let o=()=>{this.isInDestruct||(this.e&&this.e.fire("afterInit",this),(0,l.callPromise)(this.afterInitHook()),this.setStatus(d.STATUSES.ready),this.e.fire("afterConstructor",this))};(0,l.callPromise)(i,o)})}}function g(t,e){t&&t.split(/\s+/).forEach(t=>e.classList.add(t))}(0,o._)(Jodit,"fatMode",s.FAT_MODE),(0,o._)(Jodit,"plugins",a.pluginSystem),(0,o._)(Jodit,"modules",a.modules),(0,o._)(Jodit,"ns",a.modules),(0,o._)(Jodit,"decorators",{}),(0,o._)(Jodit,"constants",s),(0,o._)(Jodit,"instances",a.instances),(0,o._)(Jodit,"lang",s.lang),(0,o._)(Jodit,"core",{Plugin:d.Plugin}),(0,n.__decorate)([r.cache],Jodit.prototype,"createInside",null),(0,n.__decorate)([r.cache],Jodit.prototype,"message",null),(0,n.__decorate)([r.cache],Jodit.prototype,"s",null),(0,n.__decorate)([r.cache],Jodit.prototype,"uploader",null),(0,n.__decorate)([r.cache],Jodit.prototype,"filebrowser",null),(0,n.__decorate)([(0,r.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,n.__decorate)([(0,r.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,n.__decorate)([r.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=(0,n.__decorate)([(0,r.derive)(u.Dlgs)],Jodit)},73533:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg>'},73714:function(t,e,i){"use strict";i.d(e,{Ajax:function(){return o.Ajax},Response:function(){return n.Response}});var o=i(17338),n=i(32855)},74103:function(t,e,i){"use strict";i.d(e,{Prompt:function(){return a}});var o=i(91565),n=i(7909),s=i(53681),r=i(76841);function a(t,e,i,a,l){let c=this instanceof r.Dialog?this:new r.Dialog({closeOnClickOverlay:!0}),u=(0,s.Button)(c,"cancel","Cancel"),h=(0,s.Button)(c,"ok","Ok"),d=c.c.element("form",{class:"jodit-dialog_prompt"}),f=c.c.element("input",{autofocus:!0,class:"jodit-input"}),p=c.c.element("label");(0,o.isFunction)(e)&&(i=e,e=void 0),a&&(0,n.attr)(f,"placeholder",a),p.appendChild(c.c.text(t)),d.appendChild(p),d.appendChild(f),u.onAction(c.close);let m=()=>{i&&(0,o.isFunction)(i)&&!1===i(f.value)||c.close()};return h.onAction(m),c.e.on(d,"submit",()=>(m(),!1)),c.setFooter([h,u]),c.open(d,e||"&nbsp;",!0,!0),f.focus(),void 0!==l&&l.length&&(f.value=l,f.select()),c}},74240:function(t,e,i){"use strict";var o=i(28077),n=i(65946),s=i(2496);i(3244),o.pluginSystem.add("mobile",function(t){let e=0,i=(0,n.splitArray)(t.o.buttons);t.o.mobileTapTimeout&&t.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let o=new Date().getTime(),n=o-e;n>t.o.mobileTapTimeout&&(e=o,n<1.5*t.o.mobileTapTimeout&&t.s.insertCursorAtPoint(i.clientX,i.clientY))}}),t.e.on("getDiffButtons.mobile",e=>{if(e===t.toolbar){let e=(0,s.flatButtonsSet)((0,n.splitArray)(t.o.buttons),t),o=(0,s.flatButtonsSet)(i,t);return(0,n.toArray)(e).reduce((t,e)=>(o.has(e)||t.push(e),t),[])}}),t.o.toolbarAdaptive&&t.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{if(!t.o.toolbar)return;let e=(t.container.parentElement??t.container).offsetWidth,o=t.isFullSize||e>=t.o.sizeLG?(0,n.splitArray)(t.o.buttons):e>=t.o.sizeMD?(0,n.splitArray)(t.o.buttonsMD):e>=t.o.sizeSM?(0,n.splitArray)(t.o.buttonsSM):(0,n.splitArray)(t.o.buttonsXS);o.toString()!==i.toString()&&(i=o,t.e.fire("closeAllPopups"),t.toolbar?.setRemoveButtons(t.o.removeButtons).build(i.concat(t.o.extraButtons)))}).on(t.ow,"load resize",()=>t.e.fire("recalcAdaptive"))})},74264:function(t,e,i){"use strict";i.d(e,{CamelCaseToKebabCase:function(){return n},kebabCase:function(){return o}});let o=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),n=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},74522:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(18855);i(96608);let h="__jodit-resizer_binded";class d extends u.Plugin{afterInit(t){(0,c.$$)("div",this.rect).forEach(e=>{t.e.on(e,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,e))}),l.eventEmitter.on("hideHelpers",this.hide),t.e.on("readonly",t=>{t&&this.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",t=>{let e=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;e.test(t.value)&&(t.value=t.value.replace(e,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(t){let e=t.target,{editor:i,options:{allowResizeTags:o}}=this.j;for(;e&&e!==i;){if(a.Dom.isTag(e,o)){this.__bind(e),this.onClickElement(e);return}e=e.parentNode}}__afterInsertImage(t){if(this.j.o.resizer.forImageChangeAttributes)return;let e=(0,c.attr)(t,"width");e&&!(0,c.css)(t,"width",!0)&&((0,c.css)(t,"width",e),(0,c.attr)(t,"width",null))}addEventListeners(){let t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",t=>{this.isShown&&t.key===s.KEY_DELETE&&this.element&&!a.Dom.isTag(this.element,"table")&&this.onDelete(t)}).on(t.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([t.ow,t.editor],"scroll.resizer",()=>{this.isShown&&!this.isResizeMode&&this.hide()}).on(t.ow,"keydown.resizer",this.onKeyDown).on(t.ow,"keyup.resizer",this.onKeyUp).on(t.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(t,e){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=t,e.cancelable&&e.preventDefault(),e.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=e.clientX,this.startY=e.clientY,this.pointerX=e.clientX,this.pointerY=e.clientY;let{j:i}=this;i.e.fire("hidePopup"),i.lock(this.LOCK_KEY),i.e.on(i.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){let{j:t}=this;t.unlock(),this.isResizeMode=!1,this.isAltMode=!1,t.synchronizeValues(),t.e.off(t.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(t){if(this.isResizeMode){let e,i;if(!this.element)return;if(this.pointerX=t.clientX,this.pointerY=t.clientY,this.j.options.iframe){let o=this.getWorkplacePosition();e=t.clientX+o.left-this.startX,i=t.clientY+o.top-this.startY}else e=this.pointerX-this.startX,i=this.pointerY-this.startY;let o=this.handle.className,n=0,s=0,r=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===r||r&&a.Dom.isTag(this.element,r))?(e?s=Math.round((n=this.width+(o.match(/left/)?-1:1)*e)/this.ratio):n=Math.round((s=this.height+(o.match(/top/)?-1:1)*i)*this.ratio),n>(0,c.innerWidth)(this.j.editor,this.j.ow)&&(s=Math.round((n=(0,c.innerWidth)(this.j.editor,this.j.ow))/this.ratio))):(n=this.width+(o.match(/left/)?-1:1)*e,s=this.height+(o.match(/top/)?-1:1)*i),n>this.j.o.resizer.min_width&&(n<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",n):this.applySize(this.element,"width","100%")),s>this.j.o.resizer.min_height&&this.applySize(this.element,"height",s),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),t.stopImmediatePropagation()}}onKeyDown(t){this.isAltMode=t.key===s.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(t){if(this.isShown){if(!this.isResizeMode)return this.hide();t.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,c.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(t,e,i){let o=a.Dom.isImage(t)&&this.j.o.resizer.forImageChangeAttributes;o&&(0,c.attr)(t,e,i),(!o||t.style[e])&&(0,c.css)(t,e,i)}onDelete(t){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(a.Dom.safeRemove(this.element),this.hide(),t.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,c.$$)("iframe",this.j.editor).forEach(this.__bind)}__bind(t){let e;if(!(!a.Dom.isHTMLElement(t)||!this.j.o.allowResizeTags.has(t.tagName.toLowerCase())||(0,c.dataBind)(t,h))){if((0,c.dataBind)(t,h,!0),a.Dom.isTag(t,"iframe")){let i=t;a.Dom.isHTMLElement(t.parentNode)&&(0,c.attr)(t.parentNode,"-jodit_iframe_wrapper")?t=t.parentNode:(e=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,c.attr)(e,"style",(0,c.attr)(t,"style")),(0,c.css)(e,{display:"inline-block"===t.style.display?"inline-block":"block",width:t.offsetWidth,height:t.offsetHeight}),t.parentNode&&t.parentNode.insertBefore(e,t),e.appendChild(t),this.j.e.on(e,"click",()=>{(0,c.attr)(e,"data-jodit-wrapper_active",!0)}),t=e),this.j.e.off(t,"mousedown.select touchstart.select").on(t,"mousedown.select touchstart.select",()=>{this.j.s.select(t)}).off(t,"changesize").on(t,"changesize",()=>{i.setAttribute("width",t.offsetWidth+"px"),i.setAttribute("height",t.offsetHeight+"px")})}this.j.e.on(t,"dragstart",this.hide),!s.IS_ES_NEXT&&s.IS_IE&&this.j.e.on(t,"mousedown",e=>{a.Dom.isTag(t,"img")&&e.preventDefault()})}}showSizeViewer(t,e){if(this.j.o.resizer.showSize){if(t<this.sizeViewer.offsetWidth||e<this.sizeViewer.offsetHeight)return void this.hideSizeViewer();this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${t} x ${e}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})}}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,c.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=(0,c.css)(this.j.container,"zIndex").toString()),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,a.Dom.safeRemove(this.rect),(0,c.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach(t=>(0,c.attr)(t,"data-jodit-wrapper_active",!1)))}beforeDestruct(t){this.hide(),l.eventEmitter.off("hideHelpers",this.hide),t.e.off(this.j.ow,".resizer").off(".resizer")}constructor(...t){super(...t),(0,o._)(this,"LOCK_KEY","resizer"),(0,o._)(this,"handle",void 0),(0,o._)(this,"element",null),(0,o._)(this,"isResizeMode",!1),(0,o._)(this,"isShown",!1),(0,o._)(this,"startX",0),(0,o._)(this,"startY",0),(0,o._)(this,"width",0),(0,o._)(this,"height",0),(0,o._)(this,"ratio",0),(0,o._)(this,"rect",this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">
230
230
  <div class="jodit-resizer__top-left"></div>
231
231
  <div class="jodit-resizer__top-right"></div>
232
232
  <div class="jodit-resizer__bottom-right"></div>
@@ -238,7 +238,7 @@
238
238
  tabindex="-1"
239
239
  dir="auto"
240
240
  multiple=""
241
- />`)}constructor(t,e){super(t,{type:"file",...e}),(0,o._)(this,"state",{...a.UIInput.defaultState,type:"file",onlyImages:!0})}}l=(0,n.__decorate)([s.component],l)},75711:function(t,e,i){"use strict";i.d(e,{align:function(){return a}});var o=i(27795),n=i(85932),s=i(16849),r=i(80991);let a={name:"left",childTemplate:(t,e,i)=>i,list:["Left","Right","Center","Normal"],exec(t,e,{control:i}){if(!o.Dom.isTag(e,new Set(["img","jodit","jodit-media"])))return;let r=i.args&&(0,n.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!r)return!1;(0,s.hAlignElement)(e,r),o.Dom.isTag(e,new Set(["jodit","jodit-media"]))&&e.firstElementChild&&(0,s.hAlignElement)(e.firstElementChild,r),t.synchronizeValues(),t.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};e.default=[{name:"delete",icon:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},{name:"pencil",exec(t,e){"img"===e.tagName.toLowerCase()&&t.e.fire("openImageProperties",e)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec(t,e,{control:i}){if(!o.Dom.isTag(e,"img"))return;let s=i.args&&(0,n.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!s)return!1;(0,r.css)(e,"vertical-align","normal"===s?"":s),t.e.fire("recalcPositionPopup")}},a]},76517:function(t,e,i){"use strict";i.d(e,{Create:function(){return l}});var o=i(25045),n=i(81937),s=i(23211),r=i(65946),a=i(28712);class l{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(t,e,i){let o=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(o),e&&((0,r.isPlainObject)(e)?(0,r.attr)(o,e):i=e),i&&(0,r.asArray)(i).forEach(t=>o.appendChild((0,r.isString)(t)?this.fromHTML(t):t)),o}div(t,e,i){let o=this.element("div",e,i);return t&&(o.className=t),o}sandbox(){let t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);let e=t.contentWindow?.document;if((0,a.assert)(e,"iframe.contentWindow.document"),!e)throw Error("Iframe error");return e.open(),e.write("<!DOCTYPE html><html><head></head><body></body></html>"),e.close(),[e.body,t]}span(t,e,i){let o=this.element("span",e,i);return t&&(o.className=t),o}a(t,e,i){let o=this.element("a",e,i);return t&&(o.className=t),o}text(t){return this.doc.createTextNode(t)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,e){let i=this.div();i.innerHTML=t.toString();let o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(s.Dom.safeRemove(o),e){let t=(0,r.refs)(o);Object.keys(e).forEach(i=>{let o=t[i];o&&!1===e[i]&&s.Dom.hide(o)})}return o}applyCreateAttributes(t){if(this.createAttributes){let e=this.createAttributes;if(e&&e[t.tagName.toLowerCase()]){let i=e[t.tagName.toLowerCase()];(0,r.isFunction)(i)?i(t):(0,r.isPlainObject)(i)&&(0,r.attr)(t,i)}}}constructor(t,e){(0,o._)(this,"document",void 0),(0,o._)(this,"createAttributes",void 0),this.document=t,this.createAttributes=e}}},76830:function(t,e,i){"use strict";var o=i(81937),n=i(28077),s=i(93640);i(51730),n.pluginSystem.add("media",function(t){let e="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:n,mediaInFakeBlock:r}=t.options;r&&t.e.on("afterGetValueFromEditor",t=>{let o=RegExp(`<${i}[^>]+data-${e}[^>]+>([^]+?)</${i}>`,"ig");o.test(t.value)&&(t.value=t.value.replace(o,"$1"))}).on("change afterInit afterSetMode changePlace",t.async.debounce(()=>{t.isDestructed||t.getMode()===o.MODE_SOURCE||(0,s.$$)(n.join(","),t.editor).forEach(o=>{if(!(0,s.dataBind)(o,e)){(0,s.dataBind)(o,e,!0);var n=o;if(n.parentNode&&(0,s.attr)(n.parentNode,"data-jodit_iframe_wrapper"))n=n.parentNode;else{let o=t.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+e]:1});(0,s.attr)(o,"style",(0,s.attr)(n,"style")),o.style.display="inline-block"===n.style.display?"inline-block":"block",o.style.width=n.offsetWidth+"px",o.style.height=n.offsetHeight+"px",n.parentNode&&n.parentNode.insertBefore(o,n),o.appendChild(n),n=o}t.e.off(n,"mousedown.select touchstart.select").on(n,"mousedown.select touchstart.select",()=>{t.s.setCursorAfter(n)})}})},t.defaultTimeout))})},76841:function(t,e,i){"use strict";i.d(e,{Dialog:function(){return v}});var o=i(25045),n=i(31635),s=i(16964),r=i(81937),a=i(84839),l=i(23211),c=i(28077),u=i(45664),h=i(28686),d=i(93640),f=i(28712),p=i(4099),m=i(35099),g=i(2222),_=i(5266);_.Config.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},_.Config.prototype.controls.dialog={close:{icon:"cancel",exec(t){t.close()}}};class v extends g.ViewWithToolbar{className(){return"Dialog"}get destination(){let{popupRoot:t,shadowRoot:e}=this.o;return t||e||this.od.body}setElements(t,e){let i=[];(0,u.asArray)(e).forEach(e=>{let o;if((0,h.isArray)(e)){let o=this.c.div(this.getFullElName("column"));return i.push(o),t.appendChild(o),this.setElements(o,e)}o=(0,h.isString)(e)?this.c.fromHTML(e):(0,h.hasContainer)(e)?e.container:e,i.push(o),o.parentNode!==t&&t.appendChild(o)}),(0,u.toArray)(t.childNodes).forEach(e=>{-1===i.indexOf(e)&&t.removeChild(e)})}__onMouseUp(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}__onHeaderMouseDown(t){let e=t.target;!(!this.o.draggable||e&&e.nodeName.match(/^(INPUT|SELECT)$/))&&(this.draggable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.x=(0,d.css)(this.dialog,"left"),this.startPoint.y=(0,d.css)(this.dialog,"top"),this.setMaxZIndex(),t.cancelable&&t.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}__onMouseMove(t){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+t.clientX-this.startX,this.startPoint.y+t.clientY-this.startY),this.e&&this.e.fire(this,"move",t.clientX-this.startX,t.clientY-this.startY),t.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+t.clientX-this.startX,this.startPoint.h+t.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",t.clientX-this.startX,t.clientY-this.startY))}__onEsc(t){if(this.o.closeOnEsc&&this.isOpened&&t.key===r.KEY_ESC&&!0!==this.getMod("static")){let e=this.getMaxZIndexDialog();e?e.close():this.close(),t.stopImmediatePropagation()}}__onResizerMouseDown(t){this.resizable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}__addGlobalResizeListeners(){this.e.on(this.ow,"pointermove touchmove",this.__onMouseMove).on(this.ow,"pointerup touchend",this.__onMouseUp)}__removeGlobalResizeListeners(){this.e.off(this.ow,"mousemove pointermove",this.__onMouseMove).off(this.ow,"mouseup pointerup",this.__onMouseUp)}setSize(t,e){return null==t&&(t=this.dialog.offsetWidth),null==e&&(e=this.dialog.offsetHeight),(0,d.css)(this.dialog,{width:t,height:e}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(t,e){let i=this.ow.innerWidth,o=this.ow.innerHeight,n=i/2-this.dialog.offsetWidth/2,s=o/2-this.dialog.offsetHeight/2;return n<0&&(n=0),s<0&&(s=0),void 0!==t&&void 0!==e&&(this.offsetX=t,this.offsetY=e,this.moved=Math.abs(t-n)>100||Math.abs(e-s)>100),this.dialog.style.left=(t||n)+"px",this.dialog.style.top=(e||s)+"px",this}setHeader(t){return this.setElements(this.dialogbox_header,t),this}setContent(t){return this.setElements(this.dialogbox_content,t),this}setFooter(t){return this.setElements(this.dialogbox_footer,t),this.setMod("footer",!!t),this}getZIndex(){return parseInt((0,d.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let t=0,e,i,o=this;return(0,d.$$)(".jodit-dialog",this.destination).forEach(n=>{e=n.component,i=parseInt((0,d.css)(n,"zIndex"),10),e.isOpened&&!isNaN(i)&&i>t&&(o=e,t=i)}),o}setMaxZIndex(){if(this.getMod("static"))return;let t=0x1312d04,e=0;(0,d.$$)(".jodit-dialog",this.destination).forEach(i=>{t=Math.max(isNaN(e=parseInt((0,d.css)(i,"zIndex"),10))?0:e,t)}),this.container.style.zIndex=(t+1).toString()}toggleFullSize(t){(0,h.isVoid)(t)&&(t=!this.getMod("fullsize")),this.setMod("fullsize",t),super.toggleFullSize(t)}open(t,e,i,o){if(c.eventEmitter.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,h.isBoolean)(t)&&(i=t),(0,h.isBoolean)(e)&&(o=e),this.destroyAfterClose=!0===i;let n=(0,h.isBoolean)(t)?void 0:t,s=(0,h.isBoolean)(e)?void 0:e;return void 0!==s&&this.setHeader(s),n&&this.setContent(n),this.setMod("active",!0),this.isOpened=!0,this.setModal(o),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(t){return this.isModal=!!t,this.setMod("modal",this.isModal),this}close(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;let{e:t}=this;return!1===t.fire(this,"beforeClose")||!1===t.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),l.Dom.safeRemove(this.container),this.__removeGlobalResizeListeners(),t.fire(this,"afterClose"),t.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}buildToolbar(){this.o.buttons&&this.toolbar.build((0,u.splitArray)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(s.STATUSES.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),super.destruct())}constructor(t={}){super(t),(0,o._)(this,"resizer",void 0),(0,o._)(this,"offsetX",void 0),(0,o._)(this,"offsetY",void 0),(0,o._)(this,"destroyAfterClose",!1),(0,o._)(this,"moved",!1),(0,o._)(this,"resizable",!1),(0,o._)(this,"draggable",!1),(0,o._)(this,"startX",0),(0,o._)(this,"startY",0),(0,o._)(this,"startPoint",{x:0,y:0,w:0,h:0}),(0,o._)(this,"lockSelect",()=>{this.setMod("moved",!0)}),(0,o._)(this,"unlockSelect",()=>{this.setMod("moved",!1)}),(0,o._)(this,"__onResize",()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()}),(0,o._)(this,"dialog",void 0),(0,o._)(this,"workplace",void 0),(0,o._)(this,"dialogbox_header",void 0),(0,o._)(this,"dialogbox_content",void 0),(0,o._)(this,"dialogbox_footer",void 0),(0,o._)(this,"dialogbox_toolbar",void 0),(0,o._)(this,"isModal",!1),(0,o._)(this,"isOpened",!1),this.options=(0,d.ConfigProto)(t,(0,d.ConfigProto)(_.Config.prototype.dialog,v.defaultOptions)),l.Dom.safeRemove(this.container);let e=this.getFullElName.bind(this);this.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">
241
+ />`)}constructor(t,e){super(t,{type:"file",...e}),(0,o._)(this,"state",{...a.UIInput.defaultState,type:"file",onlyImages:!0})}}l=(0,n.__decorate)([s.component],l)},75711:function(t,e,i){"use strict";i.d(e,{align:function(){return a}});var o=i(27795),n=i(85932),s=i(16849),r=i(80991);let a={name:"left",childTemplate:(t,e,i)=>i,list:["Left","Right","Center","Normal"],exec(t,e,{control:i}){if(!o.Dom.isTag(e,new Set(["img","jodit","jodit-media"])))return;let r=i.args&&(0,n.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!r)return!1;(0,s.hAlignElement)(e,r),o.Dom.isTag(e,new Set(["jodit","jodit-media"]))&&e.firstElementChild&&(0,s.hAlignElement)(e.firstElementChild,r),t.synchronizeValues(),t.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};e.default=[{name:"delete",icon:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},{name:"pencil",exec(t,e){"img"===e.tagName.toLowerCase()&&t.e.fire("openImageProperties",e)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec(t,e,{control:i}){if(!o.Dom.isTag(e,"img"))return;let s=i.args&&(0,n.isString)(i.args[0])?i.args[0].toLowerCase():"";if(!s)return!1;(0,r.css)(e,"vertical-align","normal"===s?"":s),t.e.fire("recalcPositionPopup")}},a]},76517:function(t,e,i){"use strict";i.d(e,{Create:function(){return l}});var o=i(25045),n=i(81937),s=i(23211),r=i(65946),a=i(28712);class l{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(t,e,i){let o=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(o),e&&((0,r.isPlainObject)(e)?(0,r.attr)(o,e):i=e),i&&(0,r.asArray)(i).forEach(t=>o.appendChild((0,r.isString)(t)?this.fromHTML(t):t)),o}div(t,e,i){let o=this.element("div",e,i);return t&&(o.className=t),o}sandbox(){let t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);let e=t.contentWindow?.document;if((0,a.assert)(e,"iframe.contentWindow.document"),!e)throw Error("Iframe error");return e.open(),e.write("<!DOCTYPE html><html><head></head><body></body></html>"),e.close(),[e.body,t]}span(t,e,i){let o=this.element("span",e,i);return t&&(o.className=t),o}a(t,e,i){let o=this.element("a",e,i);return t&&(o.className=t),o}text(t){return this.doc.createTextNode(t)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,e){let i=this.div();i.innerHTML=t.toString();let o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(s.Dom.safeRemove(o),e){let t=(0,r.refs)(o);Object.keys(e).forEach(i=>{let o=t[i];o&&!1===e[i]&&s.Dom.hide(o)})}return o}applyCreateAttributes(t){if(this.createAttributes){let e=this.createAttributes;if(e&&e[t.tagName.toLowerCase()]){let i=e[t.tagName.toLowerCase()];(0,r.isFunction)(i)?i(t):(0,r.isPlainObject)(i)&&(0,r.attr)(t,i)}}}constructor(t,e){(0,o._)(this,"document",void 0),(0,o._)(this,"createAttributes",void 0),this.document=t,this.createAttributes=e}}},76830:function(t,e,i){"use strict";var o=i(81937),n=i(28077),s=i(93640);i(51730),n.pluginSystem.add("media",function(t){let e="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:n,mediaInFakeBlock:r}=t.options;r&&t.e.on("afterGetValueFromEditor",t=>{let o=RegExp(`<${i}[^>]+data-${e}[^>]+>([^]+?)</${i}>`,"ig");o.test(t.value)&&(t.value=t.value.replace(o,"$1"))}).on("change afterInit afterSetMode changePlace",t.async.debounce(()=>{t.isDestructed||t.getMode()===o.MODE_SOURCE||(0,s.$$)(n.join(","),t.editor).forEach(o=>{if(!(0,s.dataBind)(o,e)){(0,s.dataBind)(o,e,!0);var n=o;if(n.parentNode&&(0,s.attr)(n.parentNode,"data-jodit_iframe_wrapper"))n=n.parentNode;else{let o=t.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+e]:1});(0,s.attr)(o,"style",(0,s.attr)(n,"style")),o.style.display="inline-block"===n.style.display?"inline-block":"block",o.style.width=n.offsetWidth+"px",o.style.height=n.offsetHeight+"px",n.parentNode&&n.parentNode.insertBefore(o,n),o.appendChild(n),n=o}t.e.off(n,"mousedown.select touchstart.select").on(n,"mousedown.select touchstart.select",()=>{t.s.setCursorAfter(n)})}})},t.defaultTimeout))})},76841:function(t,e,i){"use strict";i.d(e,{Dialog:function(){return v}});var o=i(25045),n=i(31635),s=i(16964),r=i(81937),a=i(84839),l=i(23211),c=i(28077),u=i(45664),h=i(28686),d=i(93640),f=i(28712),p=i(4099),m=i(35099),g=i(2222),_=i(5266);_.Config.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},_.Config.prototype.controls.dialog={close:{icon:"cancel",exec(t){t.close()}}};class v extends g.ViewWithToolbar{className(){return"Dialog"}get destination(){let{popupRoot:t,shadowRoot:e}=this.o;return t||e||this.od.body}setElements(t,e){let i=[];(0,u.asArray)(e).forEach(e=>{let o;if((0,h.isArray)(e)){let o=this.c.div(this.getFullElName("column"));return i.push(o),t.appendChild(o),this.setElements(o,e)}o=(0,h.isString)(e)?this.c.fromHTML(e):(0,h.hasContainer)(e)?e.container:e,i.push(o),o.parentNode!==t&&t.appendChild(o)}),(0,u.toArray)(t.childNodes).forEach(e=>{-1===i.indexOf(e)&&t.removeChild(e)})}__onMouseUp(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}__onHeaderMouseDown(t){let e=t.target;!(!this.o.draggable||e&&e.nodeName.match(/^(INPUT|SELECT)$/))&&(this.draggable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.x=(0,d.css)(this.dialog,"left"),this.startPoint.y=(0,d.css)(this.dialog,"top"),this.setMaxZIndex(),t.cancelable&&t.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}__onMouseMove(t){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+t.clientX-this.startX,this.startPoint.y+t.clientY-this.startY),this.e&&this.e.fire(this,"move",t.clientX-this.startX,t.clientY-this.startY),t.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+t.clientX-this.startX,this.startPoint.h+t.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",t.clientX-this.startX,t.clientY-this.startY))}__onEsc(t){if(this.o.closeOnEsc&&this.isOpened&&t.key===r.KEY_ESC&&!0!==this.getMod("static")){let e=this.getMaxZIndexDialog();e?e.close():this.close(),t.stopImmediatePropagation()}}__onResizerMouseDown(t){this.resizable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}__addGlobalResizeListeners(){this.e.on(this.ow,"pointermove touchmove",this.__onMouseMove).on(this.ow,"pointerup touchend",this.__onMouseUp)}__removeGlobalResizeListeners(){this.e.off(this.ow,"mousemove pointermove",this.__onMouseMove).off(this.ow,"mouseup pointerup",this.__onMouseUp)}setSize(t,e){return null==t&&(t=this.dialog.offsetWidth),null==e&&(e=this.dialog.offsetHeight),(0,d.css)(this.dialog,{width:t,height:e}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(t,e){let i=this.ow.innerWidth,o=this.ow.innerHeight,n=i/2-this.dialog.offsetWidth/2,s=o/2-this.dialog.offsetHeight/2;return n<0&&(n=0),s<0&&(s=0),void 0!==t&&void 0!==e&&(this.offsetX=t,this.offsetY=e,this.moved=Math.abs(t-n)>100||Math.abs(e-s)>100),this.dialog.style.left=(t||n)+"px",this.dialog.style.top=(e||s)+"px",this}setHeader(t){return this.setElements(this.dialogbox_header,t),this}setContent(t){return this.setElements(this.dialogbox_content,t),this}setFooter(t){return this.setElements(this.dialogbox_footer,t),this.setMod("footer",!!t),this}getZIndex(){return parseInt((0,d.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let t=0,e,i,o=this;return(0,d.$$)(".jodit-dialog",this.destination).forEach(n=>{e=n.component,i=parseInt((0,d.css)(n,"zIndex"),10),e.isOpened&&!isNaN(i)&&i>t&&(o=e,t=i)}),o}setMaxZIndex(){if(this.getMod("static"))return;let t=0x1312d04,e=0;(0,d.$$)(".jodit-dialog",this.destination).forEach(i=>{t=Math.max(isNaN(e=parseInt((0,d.css)(i,"zIndex"),10))?0:e,t)}),this.container.style.zIndex=(t+1).toString()}toggleFullSize(t){(0,h.isVoid)(t)&&(t=!this.getMod("fullsize")),this.setMod("fullsize",t),super.toggleFullSize(t)}open(t,e,i,o){if(c.eventEmitter.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,h.isBoolean)(t)&&(i=t),(0,h.isBoolean)(e)&&(o=e),this.destroyAfterClose=!0===i;let n=(0,h.isBoolean)(t)?void 0:t,s=(0,h.isBoolean)(e)?void 0:e;return void 0!==s&&this.setHeader(s),n&&this.setContent(n),this.setMod("active",!0),this.isOpened=!0,this.setModal(o),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(t){return this.isModal=!!t,this.setMod("modal",this.isModal),this}close(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;let{e:t}=this;return!1===t.fire(this,"beforeClose")||!1===t.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),l.Dom.safeRemove(this.container),this.__removeGlobalResizeListeners(),t.fire(this,"afterClose"),t.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}buildToolbar(){this.o.buttons&&this.toolbar.build((0,u.splitArray)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(s.STATUSES.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),super.destruct())}constructor(t={}){super(t),(0,o._)(this,"resizer",void 0),(0,o._)(this,"offsetX",void 0),(0,o._)(this,"offsetY",void 0),(0,o._)(this,"destroyAfterClose",!1),(0,o._)(this,"moved",!1),(0,o._)(this,"resizable",!1),(0,o._)(this,"draggable",!1),(0,o._)(this,"startX",0),(0,o._)(this,"startY",0),(0,o._)(this,"startPoint",{x:0,y:0,w:0,h:0}),(0,o._)(this,"lockSelect",()=>{this.setMod("moved",!0)}),(0,o._)(this,"unlockSelect",()=>{this.setMod("moved",!1)}),(0,o._)(this,"__onResize",()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()}),(0,o._)(this,"dialog",void 0),(0,o._)(this,"workplace",void 0),(0,o._)(this,"dialogbox_header",void 0),(0,o._)(this,"dialogbox_content",void 0),(0,o._)(this,"dialogbox_footer",void 0),(0,o._)(this,"dialogbox_toolbar",void 0),(0,o._)(this,"isModal",!1),(0,o._)(this,"isOpened",!1),this.options=(0,d.ConfigProto)(t,(0,d.ConfigProto)(_.Config.prototype.dialog,v.defaultOptions)),l.Dom.safeRemove(this.container);const e=this.getFullElName.bind(this);this.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">
242
242
  <div class="${e("overlay")}"></div>
243
243
  <div class="${this.getFullElName("panel")}">
244
244
  <div class="${e("header")}">
@@ -249,11 +249,11 @@
249
249
  <div class="${e("footer")}"></div>
250
250
  <div class="${e("resizer")}">${p.Icon.get("resize_handler")}</div>
251
251
  </div>
252
- </div>`),"rtl"===this.options.direction&&(this.container.style.direction="rtl",this.container.setAttribute("dir","rtl")),this.o.zIndex&&(this.container.style.zIndex=this.o.zIndex.toString()),(0,d.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);let i=this.getElm("panel");(0,f.assert)(null!=i,"Panel element does not exist");let n=this.getElm("resizer");(0,f.assert)(null!=n,"Resizer element does not exist");let s=this.getElm("header-title");(0,f.assert)(null!=s,"header-title element does not exist");let r=this.getElm("content");(0,f.assert)(null!=r,"Content element does not exist");let a=this.getElm("footer");(0,f.assert)(null!=a,"Footer element does not exist");let u=this.getElm("header-toolbar");(0,f.assert)(null!=u,"header-toolbar element does not exist"),this.dialog=i,this.resizer=n,this.dialogbox_header=s,this.dialogbox_content=r,this.dialogbox_footer=a,this.dialogbox_toolbar=u,(0,d.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});let m=this.getElm("header");m&&this.e.on(m,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);let g=c.pluginSystem.get("fullsize");if((0,h.isFunction)(g)&&g(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){let t=this.getElm("overlay");(0,f.assert)(null!=t,"Overlay element does not exist"),this.e.on(t,"click",this.close)}}}(0,o._)(v,"defaultOptions",{...m.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0}),(0,n.__decorate)([a.autobind],v.prototype,"__onMouseUp",null),(0,n.__decorate)([a.autobind],v.prototype,"__onHeaderMouseDown",null),(0,n.__decorate)([a.autobind],v.prototype,"__onMouseMove",null),(0,n.__decorate)([a.autobind],v.prototype,"__onEsc",null),(0,n.__decorate)([a.autobind],v.prototype,"__onResizerMouseDown",null),(0,n.__decorate)([a.autobind],v.prototype,"close",null),(0,n.__decorate)([(0,a.hook)("ready")],v.prototype,"buildToolbar",null),v=(0,n.__decorate)([a.component],v)},77036:function(t,e,i){"use strict";i.d(e,{persistent:function(){return s}});var o=i(69364),n=i(31534);function s(t,e){t.hookStatus(o.STATUSES.ready,t=>{let i=(0,n.isViewObject)(t)?t:t.jodit,o=`${i.options.namespace}${t.componentName}_prop_${e}`,s=t[e];Object.defineProperty(t,e,{get:()=>i.storage.get(o)??s,set(t){i.storage.set(o,t)}})})}},77213:function(t,e,i){"use strict";i.d(e,{ctrlKey:function(){return o}});let o=t=>{if("undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1}},77227:function(t,e,i){"use strict";var o=i(29434),n=i(5266),s=i(91115),r=i.n(s),a=i(1916),l=i.n(a);n.Config.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},o.Icon.set("ai-assistant",l()),o.Icon.set("ai-commands",r()),n.Config.prototype.controls["ai-commands"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec(t,e,{control:i}){t.e.fire("generateAiAssistantForm.ai-assistant",i.name)}},n.Config.prototype.controls["ai-assistant"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(t,e,i){t.e.fire("generateAiAssistantForm.ai-assistant")}}},77367:function(t,e,i){"use strict";i.d(e,{normalizeColor:function(){return s}});var o=i(93387),n=i(4040);let s=t=>{let e=["#"],i=(0,o.colorToHex)(t);if(!i)return!1;if(3===(i=(i=(0,n.trim)(i.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)e.push(i[t]),e.push(i[t]);return e.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}},77483:function(t,e,i){"use strict";i.d(e,{ConfigDeepFlatten:function(){return function t(e){return(0,c.keys)(e,!1).reduce((i,o)=>(i[o]=(0,n.isPlainObject)(e[o])?t(e[o]):e[o],i),{})}},ConfigFlatten:function(){return u},ConfigProto:function(){return function t(e,i,c=0){if(Object.getPrototypeOf(e)!==Object.prototype)return e;let u=a.Config.defaultOptions;if((0,s.isString)(e.preset)){if(void 0!==u.presets[e.preset]){let t=u.presets[e.preset];Object.keys(t).forEach(i=>{(0,r.isVoid)(e[i])&&(e[i]=t[i])})}delete e.preset}let h={};return Object.keys(e).forEach(s=>{let r=e[s],a=i?i[s]:null;if((0,n.isPlainObject)(r)&&(0,n.isPlainObject)(a)&&!(0,l.isAtom)(r)){h[s]=t(r,a,c+1);return}if(0!==c&&(0,o.isArray)(r)&&!(0,l.isAtom)(r)&&(0,o.isArray)(a)){h[s]=[...r,...a.slice(r.length)];return}h[s]=r}),Object.setPrototypeOf(h,i),h}}});var o=i(17312),n=i(62101),s=i(85932),r=i(18303),a=i(5266),l=i(54794),c=i(71125);function u(t){return(0,c.keys)(t,!1).reduce((e,i)=>(e[i]=t[i],e),{})}},77911:function(t,e,i){"use strict";i.d(e,{ajaxInstances:function(){return r},send:function(){return a}});var o=i(65946),n=i(73714),s=i(89446);let r=new WeakMap;function a(t,e){let i=(0,s.buildData)(t,e),a=e=>{t.j.progressbar.show().progress(e),e>=100&&t.j.progressbar.hide()},l=(e,i)=>{let s=new n.Ajax({xhr(){let e=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&e.upload?(i(10),e.upload.addEventListener("progress",t=>{if(t.lengthComputable){let e=t.loaded/t.total;i(e*=100)}},!1)):i(100),e},method:t.o.method||"POST",data:e,url:(0,o.isFunction)(t.o.url)?t.o.url(e):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,e),withCredentials:t.o.withCredentials||!1}),a=r.get(t);return a||(a=new Set,r.set(t,a)),a.add(s),t.j.e.one("beforeDestruct",s.destruct),s.send().then(t=>t.json()).catch(t=>({success:!1,data:{messages:[t]}})).finally(()=>{s.destruct(),a?.delete(s)})};return((0,o.isFunction)(t.o.customUploadFunction)&&(l=t.o.customUploadFunction),(0,o.isPromise)(i))?i.then(t=>l(t,a)).catch(e=>{t.o.error.call(t,e)}):l(i,a)}},78462:function(t,e,i){"use strict";i.d(e,{states:function(){return l},transactions:function(){return c}});var o=i(81937),n=i(23211),s=i(28712),r=i(59841),a=i(51640);let l={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},c={[l.START]:{exec(t){let{element:e,jodit:i,style:o,mode:s,collapsed:c}=t;if((0,a.isInsideInvisibleElement)(e,i.editor)||!c&&n.Dom.isEmptyContent(e))return{...t,next:l.END};let u=(0,a.getSuitParent)(o,e,i.editor)||(0,a.getSuitChild)(o,e);if(u)return{...t,next:l.ELEMENT,element:u};let h=(0,a.suitableClosest)(o,e,i.editor);return o.elementIsList&&n.Dom.isList(h)?{...t,next:l.LIST}:h?{...t,next:l.EXTRACT}:{...t,next:s!==r.UNWRAP?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(t){let{element:e,jodit:i,mode:s}=t;if(s!==r.INITIAL&&s!==r.UNWRAP&&s!==r.REPLACE)return{...t,next:l.END};let a=n.Dom.closest(e,"li",i.editor);return a&&n.Dom.closest(e,o.LIST_TAGS,i.editor)?{...t,element:a,next:l.TOGGLE_LIST}:{...t,next:l.END}}},[l.TOGGLE_LIST]:{exec:t=>({...t,mode:(0,a.toggleOrderedList)(t.style,t.element,t.jodit,t.mode),next:l.END})},[l.EXTRACT]:{exec(t){let{element:e,jodit:i,style:o}=t,r=(0,a.suitableClosest)(o,e,i.editor);return((0,s.assert)(r,"This place should have an element"),!o.elementIsBlock&&o.options.attributes?.style&&n.Dom.isBlock(r))?{...t,next:l.WRAP}:(o.elementIsBlock||(0,a.extractSelectedPart)(r,e,i),{...t,element:r,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(t){let{element:e,style:i}=t;return(0,a.unwrapChildren)(i,e)?{...t,mode:r.UNWRAP,next:l.END}:{...t,next:l.WRAP}}},[l.WRAP]:{exec(t){let{element:e,jodit:i,style:o}=t,n=(0,a.wrap)(o,e,i);return{...t,next:o.elementIsList?l.END:l.CHANGE,mode:r.WRAP,element:n}}},[l.ELEMENT]:{exec(t){let{style:e,element:i,jodit:o}=t;return(0,a.toggleAttributes)(e,i,o,r.INITIAL,!0)!==r.INITIAL?{...t,next:l.CHANGE}:n.Dom.isTag(i,e.element)?{...t,next:l.UNWRAP}:{...t,next:l.END}}},[l.CHANGE]:{exec(t){let{style:e,element:i,jodit:o,mode:s}=t,c=(0,a.toggleAttributes)(e,i,o,t.mode);return s!==r.WRAP&&c===r.UNSET&&!i.attributes.length&&n.Dom.isTag(i,e.element)?{...t,next:l.UNWRAP}:{...t,mode:c,next:l.END}}},[l.UNWRAP]:{exec:t=>t.element.attributes.length&&n.Dom.isTag(t.element,t.style.element)?{...t,next:l.REPLACE_DEFAULT}:(n.Dom.unwrap(t.element),{...t,mode:r.UNWRAP,next:l.END})},[l.REPLACE_DEFAULT]:{exec:t=>(n.Dom.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:r.REPLACE,next:l.END})},[l.END]:{exec:t=>t}}},78690:function(t,e,i){"use strict";var o=i(27795),n=i(28077),s=i(5266);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,n.pluginSystem.add("focus",function(t){t.o.saveSelectionOnBlur&&t.e.on("blur",()=>{t.isEditorMode()&&t.s.save(!0)}).on("focus",()=>{t.s.restore()});let e=()=>{if(t.s.focus(),"end"===t.o.cursorAfterAutofocus){let e=o.Dom.last(t.editor,t=>o.Dom.isText(t));e&&t.s.setCursorIn(e,!1)}};t.e.on("afterInit",()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(e,300):e())}),t.e.on("afterInit afterAddPlace",()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",e=>{t.isEditorMode()&&e.target&&o.Dom.isBlock(e.target)&&!e.target.childNodes.length&&(t.editor===e.target?t.s.focus():t.s.setCursorIn(e.target))})})})},78982:function(t,e,i){"use strict";i.d(e,{asArray:function(){return n}});var o=i(17312);let n=t=>(0,o.isArray)(t)?t:[t]},79310:function(t,e,i){"use strict";i.d(e,{readLink:function(){return s}});var o=i(23211),n=i(7909);function s(t,e,i){let s=o.Dom.closest(t.sourceImage,"a",e.editor);s?(i.imageLink=(0,n.attr)(s,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,n.attr)(s,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},79803:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.toolbarSticky=!0,o.Config.prototype.toolbarDisableStickyForMobile=!0,o.Config.prototype.toolbarStickyOffset=0},79821:function(t,e,i){"use strict";i.d(e,{Create:function(){return o.Create}});var o=i(76517)},79947:function(t,e,i){"use strict";i.d(e,{clearTimeout:function(){return s},setTimeout:function(){return n}});var o=i(81937);function n(t,e,...i){return e?o.globalWindow.setTimeout(t,e,...i):(t.call(null,...i),0)}function s(t){o.globalWindow.clearTimeout(t)}},80202:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.minWidth=200,o.Config.prototype.maxWidth="100%",o.Config.prototype.minHeight=200,o.Config.prototype.maxHeight="auto",o.Config.prototype.saveHeightInStorage=!1},80251:function(t,e,i){"use strict";i.d(e,{Component:function(){return c}});var o=i(25045),n=i(91231),s=i(69364),r=i(28077),a=i(65946);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,e,i){let o=[this.componentName];return t&&o.push("__"+(t=t.replace(/[^a-z0-9-]/gi,"-"))),e&&(o.push("_",e),o.push("_",(0,a.isVoid)(i)?"true":i.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,e){return(0,a.get)(t,e||this)}get isReady(){return this.componentStatus===s.STATUSES.ready}get isDestructed(){return this.componentStatus===s.STATUSES.destructed}get isInDestruct(){return s.STATUSES.beforeDestruct===this.componentStatus||s.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(s.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(s.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);let i=Object.getPrototypeOf(this);i&&(0,a.isFunction)(i.setStatusComponent)&&i.setStatusComponent(t,e);let o=l.get(this),n=o?.[t];n&&n.length&&n.forEach(t=>t(e))}hookStatus(t,e){let i=l.get(this);i||(i={},l.set(this,i)),i[t]||(i[t]=[]),i[t].push(e)}static isInstanceOf(t,e){return t instanceof e}constructor(){(0,o._)(this,"__componentName",void 0),(0,o._)(this,"async",new n.Async),(0,o._)(this,"uid",void 0),(0,o._)(this,"ownerWindow",window),(0,o._)(this,"__componentStatus",s.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,r.uniqueUid)()}}(0,o._)(c,"STATUSES",s.STATUSES)},80347:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>'},80512:function(t,e,i){"use strict";i.d(e,{Dlgs:function(){return a}});var o=i(28077),n=i(28686),s=i(71125),r=i(37333);class a{dlg(t){let e=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),i=new r.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:e,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,s.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(t,e,i){return t=l(t,this),e=l(e,this),r.Confirm.call(this.dlg({closeOnClickOverlay:!0}),t,e,i)}prompt(t,e,i,o,n){return t=l(t,this),e=l(e,this),o=l(o,this),r.Prompt.call(this.dlg({closeOnClickOverlay:!0}),t,e,i,o,n)}alert(t,e,i,o){return t=l(t,this),e=l(e,this),r.Alert.call(this.dlg({closeOnClickOverlay:!0}),t,e,i,o)}}function l(t,e){return(0,n.isString)(t)&&!(0,n.isHTML)(t)&&(t=e.i18n(t)),t}},80515:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg>'},80538:function(t,e,i){"use strict";var o=i(81937),n=i(29434),s=i(5266),r=i(24772),a=i.n(r),l=i(66547),c=i.n(l);s.Config.prototype.fullsize=!1,s.Config.prototype.globalFullSize=!0,n.Icon.set("fullsize",a()).set("shrink",c()),s.Config.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,e){let i=t.isFullSize?"shrink":"fullsize";e.state.activated=t.isFullSize,t.o.textIcons?e.state.text=i:e.state.icon.name=i},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},80840:function(t,e,i){"use strict";i.d(e,{wait:function(){return r}});var o=i(69364),n=i(91565),s=i(33201);function r(t){return(e,i)=>{let r=e[i];if(!(0,n.isFunction)(r))throw(0,s.error)("Handler must be a Function");e.hookStatus(o.STATUSES.ready,e=>{let{async:o}=e,n=e[i],s=0;Object.defineProperty(e,i,{configurable:!0,value:function i(...r){o.clearTimeout(s),t(e)?n.apply(e,r):s=o.setTimeout(()=>i(...r),10)}})})}}},80951:function(t,e,i){"use strict";i.d(e,{checkJoinTwoLists:function(){return r}});var o=i(23211),n=i(71125),s=i(15200);function r(t,e,i){let r=o.Dom.findSibling(e,i),a=o.Dom.findSibling(e,!i);if(!o.Dom.closest(e,o.Dom.isElement,t.editor)&&o.Dom.isList(r)&&o.Dom.isList(a)&&o.Dom.isTag(r.lastElementChild,"li")&&o.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=t.s,u=r.lastElementChild,h=a.firstElementChild;return(0,n.call)(i?o.Dom.prepend:o.Dom.append,h,e),o.Dom.moveContent(a,r,!i,(0,s.getMoveFilter)(t)),o.Dom.safeRemove(a),(0,n.call)(i?o.Dom.append:o.Dom.prepend,u,e),(0,n.call)(i?l:c,e),!0}return!1}},80991:function(t,e,i){"use strict";i.d(e,{clearCenterAlign:function(){return c},css:function(){return l}});var o=i(22289),n=i(62101),s=i(19147),r=i(57821),a=i(74264);function l(t,e,i,c=!1){if((0,o.isBoolean)(i)&&(c=i,i=void 0),(0,n.isPlainObject)(e)||void 0!==i){let o=(t,e,i)=>{void 0!==(i=(0,s.normalizeCssNumericValue)(e,i))&&(null==i||l(t,e,!0)!==(0,s.normalizeCssValue)(e,i))&&(t.style[e]=i)};if((0,n.isPlainObject)(e)){let i=Object.keys(e);for(let n=0;n<i.length;n+=1)o(t,(0,r.camelCase)(i[n]),e[i[n]])}else o(t,(0,r.camelCase)(e),i);return""}let u=(0,a.kebabCase)(e),h=t.ownerDocument||document,d=!!h&&(h.defaultView||h.parentWindow),f=t.style[e],p="";return void 0!==f&&""!==f?p=f:d&&!c&&(p=d.getComputedStyle(t).getPropertyValue(u)),s.NUMBER_FIELDS_REG.test(e)&&/^[-+]?[0-9.]+px$/.test(p.toString())&&(p=parseInt(p.toString(),10)),(0,s.normalizeCssValue)(e,p)}let c=t=>{"block"===l(t,"display")&&l(t,"display","");let{style:e}=t;"auto"===e.marginLeft&&"auto"===e.marginRight&&(e.marginLeft="",e.marginRight="")}},81008:function(t,e,i){"use strict";var o=i(29434),n=i(5266),s=i(51457),r=i.n(s),a=i(23602),l=i.n(a),c=i(86899),u=i.n(c),h=i(95320),d=i.n(h);n.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},n.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},n.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",r()).set("cut",l()).set("paste",u()).set("select-all",d())},81144:function(t,e,i){"use strict";var o=i(81937),n=i(28077),s=i(65946);i(17326),n.pluginSystem.add("iframe",function(t){let e=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,i)=>{let o=t||i.iframe.contentWindow.document;if(o.open(),o.write(e.iframeDoctype+`<html dir="${e.direction}" class="jodit" lang="${(0,s.defaultLanguage)(e.language)}">`+"<head>"+`<title>${e.iframeTitle}</title>`+(e.iframeBaseUrl?`<base href="${e.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),e.iframeCSSLinks&&e.iframeCSSLinks.forEach(t=>{let e=o.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),o.head&&o.head.appendChild(e)}),e.iframeStyle){let t=o.createElement("style");t.innerHTML=e.iframeStyle,o.head&&o.head.appendChild(t)}}).on("createEditor",()=>{if(!e.iframe)return;let i=t.c.element("iframe");i.style.display="block",i.src="about:blank",i.className="jodit-wysiwyg_iframe",i.setAttribute("allowtransparency","true"),i.setAttribute("tabindex",e.tabIndex.toString()),i.setAttribute("frameborder","0"),null!=e.iframeSandbox&&i.setAttribute("sandbox",e.iframeSandbox),t.workplace.appendChild(i),t.iframe=i;let n=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,s.callPromise)(n,()=>{if(!t.iframe)return!1;let i=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let n=e.editHTMLDocumentMode,r=()=>{(0,s.attr)(i.body,"contenteditable",t.getMode()!==o.MODE_SOURCE&&!t.getReadOnly()||null)},a=t=>{let e=/<body.*<\/body>/im,i="{%%BODY%%}",o=e.exec(t);return o&&(t=t.replace(e,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(i,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(n){let e=t.element.tagName;if("TEXTAREA"!==e&&"INPUT"!==e)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>a(t.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:e})=>!t.isLocked&&(/<(html|body)/i.test(e)?a(i.documentElement.outerHTML)!==a(e)&&(i.open(),i.write(t.o.iframeDoctype+a(e)),i.close(),t.editor=i.body,t.e.fire("safeHTML",t.editor),r(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):i.body.innerHTML=e,!0),{top:!0})}if(t.editor=i.body,t.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===e.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");let o=t.async.throttle((...i)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===e.height){let e=t.ew.getComputedStyle(t.editor),i=parseInt(e.marginTop||"0",10)+parseInt(e.marginBottom||"0",10);(0,s.css)(t.iframe,"height",t.editor.offsetHeight+i)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",o).on([t.iframe,t.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let e=new ResizeObserver(o);e.observe(i.body),t.e.on("beforeDestruct",()=>{e.disconnect()})}}return i.documentElement&&t.e.on(i.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===i.body&&t.s.setCursorIn(i.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",e=>{t.events?.fire(t.ow,e)}),!1})})})},81488:function(t,e,i){"use strict";i.d(e,{inputValidators:function(){return o},selectValidators:function(){return n}});var o=i(48776),n=i(6490)},81576:function(t,e,i){"use strict";i.d(e,{generateCriticalCSS:function(){return s}});var o=i(25045),n=i(88475);function s(t){let e=(t,e=t.ownerDocument.styleSheets)=>(0,n.toArray)(e).map(t=>{try{return(0,n.toArray)(t.cssRules)}catch{}return[]}).flat().filter(e=>{try{return!!(e&&t.matches(e.selectorText))}catch{}return!1});class i{generateCSS(){let t="";for(let e in this.css)if(!/:not\(/.test(e)){for(let i in t+=e+" { ",this.css[e])t+=i+": "+this.css[e][i]+"; ";t+=`}
253
- `}return t}constructor(i,n,s){(0,o._)(this,"css",{});let r=s||{},a=e=>{let i=e.selectorText.split(",").map(t=>t.trim()).sort().join(",");!1==!!this.css[i]&&(this.css[i]={});let o=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;e<o.length;e++){if(!o[e])continue;let n=o[e].split(":");n[0]=n[0].trim(),n[1]=n[1].trim(),this.css[i][n[0]]=n[1].replace(/var\(([^)]+)\)/g,(e,i)=>{let[o,n]=i.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(o.trim())||n||e).trim()})}};(()=>{let o=i.innerHeight,s=n.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;s.nextNode();){let t=s.currentNode;if(t.getBoundingClientRect().top<o||r.scanFullPage){let i=e(t);if(i)for(let t=0;t<i.length;t++)a(i[t])}}})()}}try{return new i(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},81582:function(t,e,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(28077),a=i(91206);i(69023);var l=i(2923);class c extends a.Plugin{afterInit(t){}__onTab(t){if(t.key===n.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){let e=(0,l.onTabInsideLi)(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,o.__decorate)([(0,s.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,o.__decorate)([(0,s.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},81875:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>'},81937:function(t,e,i){"use strict";i.r(e),i.d(e,{ACCURACY:function(){return U},APP_VERSION:function(){return o},BASE_PATH:function(){return td},BASE_PATH_IS_MIN:function(){return tf},BR:function(){return V},CLIPBOARD_ID:function(){return tg},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return te},ES:function(){return n},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return D},INSERT_AS_HTML:function(){return ti},INSERT_AS_TEXT:function(){return tn},INSERT_CLEAR_HTML:function(){return to},INSERT_ONLY_TEXT:function(){return ts},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return _},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return r},IS_IE:function(){return K},IS_INLINE:function(){return E},IS_MAC:function(){return ta},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return tl},KEY_ALT:function(){return N},KEY_BACKSPACE:function(){return j},KEY_DELETE:function(){return q},KEY_DOWN:function(){return B},KEY_ENTER:function(){return A},KEY_ESC:function(){return P},KEY_F3:function(){return F},KEY_LEFT:function(){return M},KEY_META:function(){return k},KEY_RIGHT:function(){return R},KEY_SPACE:function(){return O},KEY_TAB:function(){return L},KEY_UP:function(){return z},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return tt},MODE_SOURCE:function(){return G},MODE_SPLIT:function(){return X},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return p},NEARBY:function(){return H},NO_EMPTY_TAGS:function(){return x},PARAGRAPH:function(){return $},PASSIVE_EVENTS:function(){return tv},SAFE_COUNT_CHANGE_CALL:function(){return tr},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return t_},SPACE_REG_EXP:function(){return v},SPACE_REG_EXP_END:function(){return y},SPACE_REG_EXP_START:function(){return b},TEMP_ATTR:function(){return tp},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return J},TEXT_RTF:function(){return Q},TOKENS:function(){return d},globalDocument:function(){return S},globalWindow:function(){return w},lang:function(){return tm}});let o="4.7.8",n="es2021",s=!0,r=!0,a=!0,l=!1,c=!1,u="https://xdsoft.net/jodit/",h=()=>l=!0,d={},f="\uFEFF",p=" ",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,_=()=>/^[\uFEFF]+/g,v=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="undefined"!=typeof window?window:void 0,S="undefined"!=typeof document?document:void 0,C=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,E=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],D=new Set([...T,"br","hr"]),x=new Set(T),k="Meta",j="Backspace",L="Tab",A="Enter",P="Escape",N="Alt",M="ArrowLeft",z="ArrowUp",R="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,z,B,R,M,A,P,F,L],V="br",$="p",Y=1,G=2,X=3,K="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),J=K?"text":"text/plain",Z=K?"html":"text/html",Q=K?"rtf":"text/rtf",tt="jodit-selection_marker",te=300,ti="insert_as_html",to="insert_clear_html",tn="insert_as_text",ts="insert_only_text",tr=10,ta=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),tl={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ta?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},tc=t=>{let e=t.split("/");return/\.js/.test(e[e.length-1])?{basePath:e.slice(0,e.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:tu,isMin:th}=(()=>{if("undefined"==typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return tc(t.src);let e=S.querySelectorAll("script[src]");return e&&e.length?tc(e[e.length-1].src):tc(w.location.href)})(),td=tu,tf=th,tp="data-jodit-temp",tm={},tg="clipboard",t_="source-consumer",tv=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},81987:function(t,e,i){"use strict";i.d(e,{Mods:function(){return n}});var o=i(18303);class n{afterSetMod(t,e){}setMod(t,e,i){t=t.toLowerCase();let n=this.mods[t];if(n===e)return this;let s=`${this.componentName}_${t}_`,r=(i||this.container).classList;return null!=n&&r.remove(`${s}${n.toString().toLowerCase()}`),(0,o.isVoid)(e)||""===e||r.add(`${s}${e.toString().toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},82147:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},82166:function(t,e,i){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}i.d(e,{isHtmlFromWord:function(){return o}})},82495:function(t,e,i){"use strict";i.d(e,{createSourceEditor:function(){return s}});var o=i(65946),n=i(8105);function s(t,e,i,s,r){let a;if((0,o.isFunction)(t))a=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){a=new n.AceEditor(e,i,s,r);break}default:a=new n.TextAreaEditor(e,i,s,r)}return a.init(e),a.onReadyAlways(()=>{a.setReadOnly(e.o.readonly)}),a}},82658:function(t,e,i){"use strict";i.d(e,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return n.cleanFromWord},htmlspecialchars:function(){return s.htmlspecialchars},nl2br:function(){return r.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var o=i(30893),n=i(1277),s=i(6609),r=i(48838),a=i(48155),l=i(22852)},82794:function(t,e,i){"use strict";i.d(e,{toggleAttributes:function(){return m}});var o=i(81937),n=i(23211),s=i(28077),r=i(28686),a=i(19147),l=i(18073),c=i(74264),u=i(93640),h=i(80991),d=i(36400),f=i(98394);let p="toggleAttributes";function m(t,e,i,_,v=!1){if(!v&&t.isApplied(e,p))return _;v||t.setApplied(e,p);let{attributes:b}=t.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(p=>{let m=b[p];switch(p){case"style":var y;y=_,(0,u.assert)((0,r.isPlainObject)(m)&&(0,l.size)(m),"Style must be an object"),Object.keys(m).forEach(r=>{let l=e.style.getPropertyValue((0,c.kebabCase)(r)),u=m[r];if(""!==l||null!=u){if(function(t,e,i){let r=t.create.element(e.tagName.toLowerCase());r.style.cssText=e.style.cssText,(function(t){if(void 0!==(0,d.dataBind)(t,"shadowRoot"))return(0,d.dataBind)(t,"shadowRoot");let e=(0,s.getContainer)(t),i=o.globalDocument.createElement("iframe");(0,h.css)(i,{width:0,height:0,position:"absolute",border:0}),i.src="about:blank",e.appendChild(i);let n=i.contentWindow?.document,r=n?n.body:t.od.body;return(0,d.dataBind)(t,"shadowRoot",r),r})(t).appendChild(r);let a=(0,h.css)(r,i);return n.Dom.safeRemove(r),a}(i,e,r)===(0,a.normalizeCssValue)(r,u)){if(!l)return;v||(0,h.css)(e,r,null),y=g(t,e,y=f.UNSET);return}y=f.CHANGE,v||((0,h.css)(e,r,u),y=g(t,e,y))}}),_=y;break;case"className":case"class":_=function(t,e,i,o,n){(0,u.assert)((0,r.isString)(e),"Class name must be a string");let s=t.e.fire.bind(t.e,`${f._PREFIX}AfterToggleAttribute`);return i.classList.contains(e.toString())?(o=f.UNSET,n||(i.classList.remove(e),0===i.classList.length&&((0,u.attr)(i,"class",null),s(o,i,"class",null)))):(o=f.CHANGE,n||(i.classList.add(e),s(o,i,"class",e))),o}(i,m,e,_,v);break;default:_=function(t,e,i,o,n,s){(0,u.assert)((0,r.isString)(e)||(0,r.isNumber)(e)||(0,r.isBoolean)(e)||null==e,"Attribute value must be a string or number or boolean or null");let a=t.e.fire.bind(t.e,`${f._PREFIX}AfterToggleAttribute`);return(0,u.attr)(i,o)===e?(n||(0,u.attr)(i,o,null),s=f.UNSET,n||a(s,i,o,e)):(s=f.CHANGE,n||((0,u.attr)(i,o,e),a(s,i,o,e))),s}(i,m,e,p,v,_)}}),_}function g(t,e,i){return(0,u.attr)(e,"style")||((0,u.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(n.Dom.unwrap(e),i=f.UNWRAP)),i}},83207:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},83215:function(t,e,i){"use strict";i.d(e,{innerWidth:function(){return o}});let o=(t,e)=>{let i=e.getComputedStyle(t);return t.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},83335:function(t,e,i){"use strict";i.d(e,{wrapUnwrappedText:function(){return s}});var o=i(23211),n=i(23175);function s(t,e,i){let s=i.editor,r=i.createInside,a=(t,e="previousSibling")=>{let r=t,a=t;for(;a&&!(0,n.isMarker)(a)&&!o.Dom.isTag(a,i.o.enter)&&(r=a,a=a[e]?a[e]:a.parentNode&&!o.Dom.isBlock(a.parentNode)&&a.parentNode!==s?a.parentNode:null,!o.Dom.isBlock(a)););return r},l=a(e),c=a(e,"nextSibling"),u=i.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let h=u.extractContents(),d=r.element(t.element);return d.appendChild(h),o.Dom.safeInsertNode(u,d),t.elementIsBlock&&o.Dom.isEmpty(d)&&!o.Dom.isTag(d.firstElementChild,"br")&&d.appendChild(r.element("br")),d}},83376:function(t,e,i){"use strict";i.d(e,{getBlockWrapper:function(){return function t(e,i,s=o.IS_BLOCK){let r=e,a=i.editor;do{if(!r||r===a)break;if(s.test(r.nodeName)){if(n.Dom.isLeaf(r))return r;return t(r.parentNode,i,/^li$/i)||r}r=r.parentNode}while(r&&r!==a)return null}}});var o=i(81937),n=i(23211)},83389:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},83653:function(t,e,i){"use strict";i.d(e,{isNormalNode:function(){return s}});var o=i(23211),n=i(23175);function s(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,n.isMarker)(t))}},84578:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return l}});var o=i(25045),n=i(81937),s=i(57821),r=i(98394),a=i(96127);class l{isApplied(t,e){let i=this.__applyMap.get(t);return!!i&&i[e]}setApplied(t,e){let i=this.__applyMap.get(t)??{};i[e]=!0,this.__applyMap.set(t,i)}get elementIsList(){return!!(this.options.element&&n.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&n.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:e}=this.options,i=e?Object.keys(e):[];try{i.forEach(i=>{t.e.on((0,s.camelCase)(r._PREFIX+"_"+i),e[i])}),(0,a.ApplyStyle)(t,this)}finally{i.forEach(i=>{t.e.off((0,s.camelCase)(r._PREFIX+"_"+i),e[i])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){(0,o._)(this,"options",void 0),(0,o._)(this,"__applyMap",void 0),this.options=t,this.__applyMap=new WeakMap}}},84839:function(t,e,i){"use strict";i.r(e),i.d(e,{autobind:function(){return o.autobind},cache:function(){return n.cache},cacheHTML:function(){return n.cacheHTML},cached:function(){return n.cached},component:function(){return s.component},debounce:function(){return r.debounce},derive:function(){return a.derive},getPropertyDescriptor:function(){return f.getPropertyDescriptor},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return r.throttle},wait:function(){return d.wait},watch:function(){return f.watch}});var o=i(49574),n=i(51676),s=i(91672),r=i(55184),a=i(24968),l=i(29200),c=i(35718),u=i(41360),h=i(77036),d=i(80840),f=i(68616)},85305:function(t,e,i){"use strict";i.d(e,{PluginSystem:function(){return d}});var o=i(25045),n=i(81937),s=i(28077),r=i(45664),a=i(28686),l=i(55810),c=i(3050),u=i(25974),h=i(86189);class d{get size(){return this.__items.size}add(t,e){this.__items.set((0,h.normalizeName)(t),e),s.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,h.normalizeName)(t))}remove(t){this.__items.delete((0,h.normalizeName)(t))}__getFullPluginsList(t){let e=[];return this.__items.forEach((i,o)=>{(!t||t.has(o))&&e.push([o,i])}),e}__init(t){var e;let{extraList:i,disableList:o,filter:s}={extraList:(e=t).o.extraPlugins.map(t=>(0,a.isString)(t)?{name:t}:t),disableList:new Set((0,r.splitArray)(e.o.disablePlugins).map(h.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},d=new Map,f={},p=new Set;t.__plugins=f;let m=()=>{if(t.isInDestruct)return;let e=!1;this.__getFullPluginsList(s).forEach(([i,n])=>{if(o.has(i)||d.has(i))return;let s=n?.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(t=>o.has(t)))return;if(!s.every(t=>d.has(t)))return void p.add(i)}e=!0;let r=(0,u.makeInstance)(t,n);if(!r){d.set(i,null),p.delete(i);return}(0,l.init)(t,i,n,r,d,p),f[i]=r}),e&&(t.e.fire("updatePlugins"),m())};i&&i.length&&(0,c.loadExtras)(this.__items,t,i,m),m(),t.e.on("beforeDestruct",()=>{Object.keys(f).forEach(e=>{let i=f[e];(0,a.isDestructable)(i)&&i.destruct(t),delete f[e]}),delete t.__plugins}),n.IS_PROD||p.size}wait(t){return new Promise(e=>{if(this.get(t))return e();let i=()=>{e(),s.eventEmitter.off(`plugin:${t}:ready`,i)};s.eventEmitter.on(`plugin:${t}:ready`,i)})}constructor(){(0,o._)(this,"__items",new Map)}}},85932:function(t,e,i){"use strict";i.d(e,{isString:function(){return n},isStringArray:function(){return s}});var o=i(17312);function n(t){return"string"==typeof t}function s(t){return(0,o.isArray)(t)&&n(t[0])}},86038:function(t,e,i){"use strict";i(5266).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},86122:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return n}});var o=i(4099);class n extends o.UIGroup{className(){return"FileBrowserFiles"}}},86189:function(t,e,i){"use strict";i.d(e,{normalizeName:function(){return n}});var o=i(74264);function n(t){return(0,o.kebabCase)(t).toLowerCase()}},86236:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(23211),r=i(28077),a=i(18855);i(88580);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){s.Dom.safeRemove(this.charCounter),s.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...t){super(...t),(0,o._)(this,"charCounter",null),(0,o._)(this,"wordCounter",null),(0,o._)(this,"reInit",()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()}),(0,o._)(this,"calc",this.j.async.throttle(()=>{let t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let e;e=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?t.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,n.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",e.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout))}}r.pluginSystem.add("stat",l)},86634:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},86878:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o.getContentWidth},getScrollParent:function(){return n.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return a.offset},position:function(){return l.position},size:function(){return r.size}});var o=i(54447),n=i(34027),s=i(83215),r=i(18073),a=i(69143),l=i(23599)},86899:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},87329:function(t,e,i){"use strict";i.d(e,{UITextArea:function(){return l}});var o=i(25045),n=i(31635),s=i(84839),r=i(91672),a=i(65273);class l extends a.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:e}=this.state;this.nativeInput.style.resize=e?"auto":"none",this.nativeInput.rows=t??5}constructor(t,e){super(t,e),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,size:5,resizable:!0}),(0,n.__decorate)([(0,s.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=(0,n.__decorate)([r.component],l)},87624:function(t,e,i){"use strict";i.d(e,{SentenceFinder:function(){return n.SentenceFinder},clearSelectionWrappers:function(){return o.clearSelectionWrappers},clearSelectionWrappersFromHTML:function(){return o.clearSelectionWrappersFromHTML},getSelectionWrappers:function(){return o.getSelectionWrappers},highlightTextRanges:function(){return o.highlightTextRanges}});var o=i(19213),n=i(59276)},87908:function(t,e,i){"use strict";var o=i(65946),n=i(29434),s=i(5266),r=i(223),a=i.n(r);s.Config.prototype.defaultLineHeight=null,n.Icon.set("line-height",a()),s.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(t,e,{control:i})=>(0,o.memorizeExec)(t,e,{control:i},t=>t)}},88329:function(t,e,i){"use strict";i.d(e,{Confirm:function(){return r}});var o=i(91565),n=i(53681),s=i(76841);function r(t,e,i){let r=this instanceof s.Dialog?this:new s.Dialog({closeOnClickOverlay:!0}),a=r.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=r.c.element("label");(0,o.isFunction)(e)&&(i=e,e=void 0),l.appendChild(r.c.fromHTML(t)),a.appendChild(l);let c=t=>()=>{i&&!1===i(t)||r.close()},u=(0,n.Button)(r,"cancel","Cancel"),h=(0,n.Button)(r,"ok","Yes");return u.onAction(c(!1)),h.onAction(c(!0)),r.e.on(a,"submit",()=>(c(!0)(),!1)),r.setFooter([h,u]),r.open(a,e||"&nbsp;",!0,!0),h.focus(),r}},88475:function(t,e,i){"use strict";i.d(e,{toArray:function(){return s}});var o=i(23283),n=i(43379);let s=function(...t){return((0,o.isNativeFunction)(Array.from)?Array.from:(0,n.reset)("Array.from")??Array.from).apply(Array,t)}},88497:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},88580:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.showCharsCounter=!0,o.Config.prototype.countHTMLChars=!1,o.Config.prototype.countTextSpaces=!1,o.Config.prototype.showWordsCounter=!0},88952:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206),u=i(4099),h=i(56490),d=i(4274);i(89873);class f extends c.Plugin{get popup(){return new h.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let e=this.elmsList,i=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,e,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,l.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(t,e,i){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||i!==this.previousTarget){let t;this.previousTarget=i;let o=this.j.o.popup[e];t=(0,l.isFunction)(o)?o(this.j,i,this.popup.close):o,(0,l.isArray)(t)&&(this.toolbar.build(t,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container),this.popup.setContent(t),this.type=e}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,l.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let e=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!e&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,l.splitArray)(this.j.o.toolbarInlineDisableFor).map(t=>t.toLowerCase()).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",e=>{if(this.toolbar===e){let e=this.toolbar.getButtonsNames();return(0,l.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let i=(0,l.isString)(t)?t:t.name;return i&&"|"!==i&&`
252
+ </div>`),"rtl"===this.options.direction&&(this.container.style.direction="rtl",this.container.setAttribute("dir","rtl")),this.o.zIndex&&(this.container.style.zIndex=this.o.zIndex.toString()),(0,d.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);const i=this.getElm("panel");(0,f.assert)(null!=i,"Panel element does not exist");const n=this.getElm("resizer");(0,f.assert)(null!=n,"Resizer element does not exist");const s=this.getElm("header-title");(0,f.assert)(null!=s,"header-title element does not exist");const r=this.getElm("content");(0,f.assert)(null!=r,"Content element does not exist");const a=this.getElm("footer");(0,f.assert)(null!=a,"Footer element does not exist");const u=this.getElm("header-toolbar");(0,f.assert)(null!=u,"header-toolbar element does not exist"),this.dialog=i,this.resizer=n,this.dialogbox_header=s,this.dialogbox_content=r,this.dialogbox_footer=a,this.dialogbox_toolbar=u,(0,d.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});const m=this.getElm("header");m&&this.e.on(m,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);const g=c.pluginSystem.get("fullsize");if((0,h.isFunction)(g)&&g(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){const t=this.getElm("overlay");(0,f.assert)(null!=t,"Overlay element does not exist"),this.e.on(t,"click",this.close)}}}(0,o._)(v,"defaultOptions",{...m.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0}),(0,n.__decorate)([a.autobind],v.prototype,"__onMouseUp",null),(0,n.__decorate)([a.autobind],v.prototype,"__onHeaderMouseDown",null),(0,n.__decorate)([a.autobind],v.prototype,"__onMouseMove",null),(0,n.__decorate)([a.autobind],v.prototype,"__onEsc",null),(0,n.__decorate)([a.autobind],v.prototype,"__onResizerMouseDown",null),(0,n.__decorate)([a.autobind],v.prototype,"close",null),(0,n.__decorate)([(0,a.hook)("ready")],v.prototype,"buildToolbar",null),v=(0,n.__decorate)([a.component],v)},77036:function(t,e,i){"use strict";i.d(e,{persistent:function(){return s}});var o=i(69364),n=i(31534);function s(t,e){t.hookStatus(o.STATUSES.ready,t=>{let i=(0,n.isViewObject)(t)?t:t.jodit,o=`${i.options.namespace}${t.componentName}_prop_${e}`,s=t[e];Object.defineProperty(t,e,{get:()=>i.storage.get(o)??s,set(t){i.storage.set(o,t)}})})}},77213:function(t,e,i){"use strict";i.d(e,{ctrlKey:function(){return o}});let o=t=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1}},77227:function(t,e,i){"use strict";var o=i(29434),n=i(5266),s=i(91115),r=i.n(s),a=i(1916),l=i.n(a);n.Config.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},o.Icon.set("ai-assistant",l()),o.Icon.set("ai-commands",r()),n.Config.prototype.controls["ai-commands"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec(t,e,{control:i}){t.e.fire("generateAiAssistantForm.ai-assistant",i.name)}},n.Config.prototype.controls["ai-assistant"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(t,e,i){t.e.fire("generateAiAssistantForm.ai-assistant")}}},77367:function(t,e,i){"use strict";i.d(e,{normalizeColor:function(){return s}});var o=i(93387),n=i(4040);let s=t=>{let e=["#"],i=(0,o.colorToHex)(t);if(!i)return!1;if(3===(i=(i=(0,n.trim)(i.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)e.push(i[t]),e.push(i[t]);return e.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}},77483:function(t,e,i){"use strict";i.d(e,{ConfigDeepFlatten:function(){return function t(e){return(0,c.keys)(e,!1).reduce((i,o)=>(i[o]=(0,n.isPlainObject)(e[o])?t(e[o]):e[o],i),{})}},ConfigFlatten:function(){return u},ConfigProto:function(){return function t(e,i,c=0){if(Object.getPrototypeOf(e)!==Object.prototype)return e;let u=a.Config.defaultOptions;if((0,s.isString)(e.preset)){if(void 0!==u.presets[e.preset]){let t=u.presets[e.preset];Object.keys(t).forEach(i=>{(0,r.isVoid)(e[i])&&(e[i]=t[i])})}delete e.preset}let h={};return Object.keys(e).forEach(s=>{let r=e[s],a=i?i[s]:null;if((0,n.isPlainObject)(r)&&(0,n.isPlainObject)(a)&&!(0,l.isAtom)(r)){h[s]=t(r,a,c+1);return}if(0!==c&&(0,o.isArray)(r)&&!(0,l.isAtom)(r)&&(0,o.isArray)(a)){h[s]=[...r,...a.slice(r.length)];return}h[s]=r}),Object.setPrototypeOf(h,i),h}}});var o=i(17312),n=i(62101),s=i(85932),r=i(18303),a=i(5266),l=i(54794),c=i(71125);function u(t){return(0,c.keys)(t,!1).reduce((e,i)=>(e[i]=t[i],e),{})}},77911:function(t,e,i){"use strict";i.d(e,{ajaxInstances:function(){return r},send:function(){return a}});var o=i(65946),n=i(73714),s=i(89446);let r=new WeakMap;function a(t,e){let i=(0,s.buildData)(t,e),a=e=>{t.j.progressbar.show().progress(e),e>=100&&t.j.progressbar.hide()},l=(e,i)=>{let s=new n.Ajax({xhr(){let e=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&e.upload?(i(10),e.upload.addEventListener("progress",t=>{if(t.lengthComputable){let e=t.loaded/t.total;i(e*=100)}},!1)):i(100),e},method:t.o.method||"POST",data:e,url:(0,o.isFunction)(t.o.url)?t.o.url(e):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,e),withCredentials:t.o.withCredentials||!1}),a=r.get(t);return a||(a=new Set,r.set(t,a)),a.add(s),t.j.e.one("beforeDestruct",s.destruct),s.send().then(t=>t.json()).catch(t=>({success:!1,data:{messages:[t]}})).finally(()=>{s.destruct(),a?.delete(s)})};return((0,o.isFunction)(t.o.customUploadFunction)&&(l=t.o.customUploadFunction),(0,o.isPromise)(i))?i.then(t=>l(t,a)).catch(e=>{t.o.error.call(t,e)}):l(i,a)}},78462:function(t,e,i){"use strict";i.d(e,{states:function(){return l},transactions:function(){return c}});var o=i(81937),n=i(23211),s=i(28712),r=i(59841),a=i(51640);let l={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},c={[l.START]:{exec(t){let{element:e,jodit:i,style:o,mode:s,collapsed:c}=t;if((0,a.isInsideInvisibleElement)(e,i.editor)||!c&&n.Dom.isEmptyContent(e))return{...t,next:l.END};let u=(0,a.getSuitParent)(o,e,i.editor)||(0,a.getSuitChild)(o,e);if(u)return{...t,next:l.ELEMENT,element:u};let h=(0,a.suitableClosest)(o,e,i.editor);return o.elementIsList&&n.Dom.isList(h)?{...t,next:l.LIST}:h?{...t,next:l.EXTRACT}:{...t,next:s!==r.UNWRAP?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(t){let{element:e,jodit:i,mode:s}=t;if(s!==r.INITIAL&&s!==r.UNWRAP&&s!==r.REPLACE)return{...t,next:l.END};let a=n.Dom.closest(e,"li",i.editor);return a&&n.Dom.closest(e,o.LIST_TAGS,i.editor)?{...t,element:a,next:l.TOGGLE_LIST}:{...t,next:l.END}}},[l.TOGGLE_LIST]:{exec:t=>({...t,mode:(0,a.toggleOrderedList)(t.style,t.element,t.jodit,t.mode),next:l.END})},[l.EXTRACT]:{exec(t){let{element:e,jodit:i,style:o}=t,r=(0,a.suitableClosest)(o,e,i.editor);return((0,s.assert)(r,"This place should have an element"),!o.elementIsBlock&&o.options.attributes?.style&&n.Dom.isBlock(r))?{...t,next:l.WRAP}:(o.elementIsBlock||(0,a.extractSelectedPart)(r,e,i),{...t,element:r,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(t){let{element:e,style:i}=t;return(0,a.unwrapChildren)(i,e)?{...t,mode:r.UNWRAP,next:l.END}:{...t,next:l.WRAP}}},[l.WRAP]:{exec(t){let{element:e,jodit:i,style:o}=t,n=(0,a.wrap)(o,e,i);return{...t,next:o.elementIsList?l.END:l.CHANGE,mode:r.WRAP,element:n}}},[l.ELEMENT]:{exec(t){let{style:e,element:i,jodit:o}=t;return(0,a.toggleAttributes)(e,i,o,r.INITIAL,!0)!==r.INITIAL?{...t,next:l.CHANGE}:n.Dom.isTag(i,e.element)?{...t,next:l.UNWRAP}:{...t,next:l.END}}},[l.CHANGE]:{exec(t){let{style:e,element:i,jodit:o,mode:s}=t,c=(0,a.toggleAttributes)(e,i,o,t.mode);return s!==r.WRAP&&c===r.UNSET&&!i.attributes.length&&n.Dom.isTag(i,e.element)?{...t,next:l.UNWRAP}:{...t,mode:c,next:l.END}}},[l.UNWRAP]:{exec:t=>t.element.attributes.length&&n.Dom.isTag(t.element,t.style.element)?{...t,next:l.REPLACE_DEFAULT}:(n.Dom.unwrap(t.element),{...t,mode:r.UNWRAP,next:l.END})},[l.REPLACE_DEFAULT]:{exec:t=>(n.Dom.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:r.REPLACE,next:l.END})},[l.END]:{exec:t=>t}}},78690:function(t,e,i){"use strict";var o=i(27795),n=i(28077),s=i(5266);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,n.pluginSystem.add("focus",function(t){t.o.saveSelectionOnBlur&&t.e.on("blur",()=>{t.isEditorMode()&&t.s.save(!0)}).on("focus",()=>{t.s.restore()});let e=()=>{if(t.s.focus(),"end"===t.o.cursorAfterAutofocus){let e=o.Dom.last(t.editor,t=>o.Dom.isText(t));e&&t.s.setCursorIn(e,!1)}};t.e.on("afterInit",()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(e,300):e())}),t.e.on("afterInit afterAddPlace",()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",e=>{t.isEditorMode()&&e.target&&o.Dom.isBlock(e.target)&&!e.target.childNodes.length&&(t.editor===e.target?t.s.focus():t.s.setCursorIn(e.target))})})})},78982:function(t,e,i){"use strict";i.d(e,{asArray:function(){return n}});var o=i(17312);let n=t=>(0,o.isArray)(t)?t:[t]},79310:function(t,e,i){"use strict";i.d(e,{readLink:function(){return s}});var o=i(23211),n=i(7909);function s(t,e,i){let s=o.Dom.closest(t.sourceImage,"a",e.editor);s?(i.imageLink=(0,n.attr)(s,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,n.attr)(s,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},79803:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.toolbarSticky=!0,o.Config.prototype.toolbarDisableStickyForMobile=!0,o.Config.prototype.toolbarStickyOffset=0},79821:function(t,e,i){"use strict";i.d(e,{Create:function(){return o.Create}});var o=i(76517)},79947:function(t,e,i){"use strict";i.d(e,{clearTimeout:function(){return s},setTimeout:function(){return n}});var o=i(81937);function n(t,e,...i){return e?o.globalWindow.setTimeout(t,e,...i):(t.call(null,...i),0)}function s(t){o.globalWindow.clearTimeout(t)}},80202:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.minWidth=200,o.Config.prototype.maxWidth="100%",o.Config.prototype.minHeight=200,o.Config.prototype.maxHeight="auto",o.Config.prototype.saveHeightInStorage=!1},80251:function(t,e,i){"use strict";i.d(e,{Component:function(){return c}});var o=i(25045),n=i(91231),s=i(69364),r=i(28077),a=i(65946);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,e,i){let o=[this.componentName];return t&&o.push("__"+(t=t.replace(/[^a-z0-9-]/gi,"-"))),e&&(o.push("_",e),o.push("_",(0,a.isVoid)(i)?"true":i.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,e){return(0,a.get)(t,e||this)}get isReady(){return this.componentStatus===s.STATUSES.ready}get isDestructed(){return this.componentStatus===s.STATUSES.destructed}get isInDestruct(){return s.STATUSES.beforeDestruct===this.componentStatus||s.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(s.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(s.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);let i=Object.getPrototypeOf(this);i&&(0,a.isFunction)(i.setStatusComponent)&&i.setStatusComponent(t,e);let o=l.get(this),n=o?.[t];n&&n.length&&n.forEach(t=>t(e))}hookStatus(t,e){let i=l.get(this);i||(i={},l.set(this,i)),i[t]||(i[t]=[]),i[t].push(e)}static isInstanceOf(t,e){return t instanceof e}constructor(){(0,o._)(this,"__componentName",void 0),(0,o._)(this,"async",new n.Async),(0,o._)(this,"uid",void 0),(0,o._)(this,"ownerWindow",window),(0,o._)(this,"__componentStatus",s.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,r.uniqueUid)()}}(0,o._)(c,"STATUSES",s.STATUSES)},80347:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>'},80512:function(t,e,i){"use strict";i.d(e,{Dlgs:function(){return a}});var o=i(28077),n=i(28686),s=i(71125),r=i(37333);class a{dlg(t){let e=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),i=new r.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:e,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,s.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(t,e,i){return t=l(t,this),e=l(e,this),r.Confirm.call(this.dlg({closeOnClickOverlay:!0}),t,e,i)}prompt(t,e,i,o,n){return t=l(t,this),e=l(e,this),o=l(o,this),r.Prompt.call(this.dlg({closeOnClickOverlay:!0}),t,e,i,o,n)}alert(t,e,i,o){return t=l(t,this),e=l(e,this),r.Alert.call(this.dlg({closeOnClickOverlay:!0}),t,e,i,o)}}function l(t,e){return(0,n.isString)(t)&&!(0,n.isHTML)(t)&&(t=e.i18n(t)),t}},80515:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg>'},80538:function(t,e,i){"use strict";var o=i(81937),n=i(29434),s=i(5266),r=i(24772),a=i.n(r),l=i(66547),c=i.n(l);s.Config.prototype.fullsize=!1,s.Config.prototype.globalFullSize=!0,n.Icon.set("fullsize",a()).set("shrink",c()),s.Config.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,e){let i=t.isFullSize?"shrink":"fullsize";e.state.activated=t.isFullSize,t.o.textIcons?e.state.text=i:e.state.icon.name=i},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},80840:function(t,e,i){"use strict";i.d(e,{wait:function(){return r}});var o=i(69364),n=i(91565),s=i(33201);function r(t){return(e,i)=>{let r=e[i];if(!(0,n.isFunction)(r))throw(0,s.error)("Handler must be a Function");e.hookStatus(o.STATUSES.ready,e=>{let{async:o}=e,n=e[i],s=0;Object.defineProperty(e,i,{configurable:!0,value:function i(...r){o.clearTimeout(s),t(e)?n.apply(e,r):s=o.setTimeout(()=>i(...r),10)}})})}}},80951:function(t,e,i){"use strict";i.d(e,{checkJoinTwoLists:function(){return r}});var o=i(23211),n=i(71125),s=i(15200);function r(t,e,i){let r=o.Dom.findSibling(e,i),a=o.Dom.findSibling(e,!i);if(!o.Dom.closest(e,o.Dom.isElement,t.editor)&&o.Dom.isList(r)&&o.Dom.isList(a)&&o.Dom.isTag(r.lastElementChild,"li")&&o.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=t.s,u=r.lastElementChild,h=a.firstElementChild;return(0,n.call)(i?o.Dom.prepend:o.Dom.append,h,e),o.Dom.moveContent(a,r,!i,(0,s.getMoveFilter)(t)),o.Dom.safeRemove(a),(0,n.call)(i?o.Dom.append:o.Dom.prepend,u,e),(0,n.call)(i?l:c,e),!0}return!1}},80991:function(t,e,i){"use strict";i.d(e,{clearCenterAlign:function(){return c},css:function(){return l}});var o=i(22289),n=i(62101),s=i(19147),r=i(57821),a=i(74264);function l(t,e,i,c=!1){if((0,o.isBoolean)(i)&&(c=i,i=void 0),(0,n.isPlainObject)(e)||void 0!==i){let o=(t,e,i)=>{void 0!==(i=(0,s.normalizeCssNumericValue)(e,i))&&(null==i||l(t,e,!0)!==(0,s.normalizeCssValue)(e,i))&&(t.style[e]=i)};if((0,n.isPlainObject)(e)){let i=Object.keys(e);for(let n=0;n<i.length;n+=1)o(t,(0,r.camelCase)(i[n]),e[i[n]])}else o(t,(0,r.camelCase)(e),i);return""}let u=(0,a.kebabCase)(e),h=t.ownerDocument||document,d=!!h&&(h.defaultView||h.parentWindow),f=t.style[e],p="";return void 0!==f&&""!==f?p=f:d&&!c&&(p=d.getComputedStyle(t).getPropertyValue(u)),s.NUMBER_FIELDS_REG.test(e)&&/^[-+]?[0-9.]+px$/.test(p.toString())&&(p=parseInt(p.toString(),10)),(0,s.normalizeCssValue)(e,p)}let c=t=>{"block"===l(t,"display")&&l(t,"display","");let{style:e}=t;"auto"===e.marginLeft&&"auto"===e.marginRight&&(e.marginLeft="",e.marginRight="")}},81008:function(t,e,i){"use strict";var o=i(29434),n=i(5266),s=i(51457),r=i.n(s),a=i(23602),l=i.n(a),c=i(86899),u=i.n(c),h=i(95320),d=i.n(h);n.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},n.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},n.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",r()).set("cut",l()).set("paste",u()).set("select-all",d())},81144:function(t,e,i){"use strict";var o=i(81937),n=i(28077),s=i(65946);i(17326),n.pluginSystem.add("iframe",function(t){let e=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,i)=>{let o=t||i.iframe.contentWindow.document;if(o.open(),o.write(e.iframeDoctype+`<html dir="${e.direction}" class="jodit" lang="${(0,s.defaultLanguage)(e.language)}">`+"<head>"+`<title>${e.iframeTitle}</title>`+(e.iframeBaseUrl?`<base href="${e.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),e.iframeCSSLinks&&e.iframeCSSLinks.forEach(t=>{let e=o.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),o.head&&o.head.appendChild(e)}),e.iframeStyle){let t=o.createElement("style");t.innerHTML=e.iframeStyle,o.head&&o.head.appendChild(t)}}).on("createEditor",()=>{if(!e.iframe)return;let i=t.c.element("iframe");i.style.display="block",i.src="about:blank",i.className="jodit-wysiwyg_iframe",i.setAttribute("allowtransparency","true"),i.setAttribute("tabindex",e.tabIndex.toString()),i.setAttribute("frameborder","0"),null!=e.iframeSandbox&&i.setAttribute("sandbox",e.iframeSandbox),t.workplace.appendChild(i),t.iframe=i;let n=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,s.callPromise)(n,()=>{if(!t.iframe)return!1;let i=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let n=e.editHTMLDocumentMode,r=()=>{(0,s.attr)(i.body,"contenteditable",t.getMode()!==o.MODE_SOURCE&&!t.getReadOnly()||null)},a=t=>{let e=/<body.*<\/body>/im,i="{%%BODY%%}",o=e.exec(t);return o&&(t=t.replace(e,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(i,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(n){let e=t.element.tagName;if("TEXTAREA"!==e&&"INPUT"!==e)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>a(t.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:e})=>!t.isLocked&&(/<(html|body)/i.test(e)?a(i.documentElement.outerHTML)!==a(e)&&(i.open(),i.write(t.o.iframeDoctype+a(e)),i.close(),t.editor=i.body,t.e.fire("safeHTML",t.editor),r(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):i.body.innerHTML=e,!0),{top:!0})}if(t.editor=i.body,t.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===e.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");let o=t.async.throttle((...i)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===e.height){let e=t.ew.getComputedStyle(t.editor),i=parseInt(e.marginTop||"0",10)+parseInt(e.marginBottom||"0",10);(0,s.css)(t.iframe,"height",t.editor.offsetHeight+i)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",o).on([t.iframe,t.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let e=new ResizeObserver(o);e.observe(i.body),t.e.on("beforeDestruct",()=>{e.disconnect()})}}return i.documentElement&&t.e.on(i.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===i.body&&t.s.setCursorIn(i.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",e=>{t.events?.fire(t.ow,e)}),!1})})})},81488:function(t,e,i){"use strict";i.d(e,{inputValidators:function(){return o},selectValidators:function(){return n}});var o=i(48776),n=i(6490)},81576:function(t,e,i){"use strict";i.d(e,{generateCriticalCSS:function(){return s}});var o=i(25045),n=i(88475);function s(t){let e=(t,e=t.ownerDocument.styleSheets)=>(0,n.toArray)(e).map(t=>{try{return(0,n.toArray)(t.cssRules)}catch{}return[]}).flat().filter(e=>{try{return!!(e&&t.matches(e.selectorText))}catch{}return!1});class i{generateCSS(){let t="";for(let e in this.css)if(!/:not\(/.test(e)){for(let i in t+=e+" { ",this.css[e])t+=i+": "+this.css[e][i]+"; ";t+=`}
253
+ `}return t}constructor(i,n,s){(0,o._)(this,"css",{});const r=s||{},a=e=>{let i=e.selectorText.split(",").map(t=>t.trim()).sort().join(",");!1==!!this.css[i]&&(this.css[i]={});let o=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;e<o.length;e++){if(!o[e])continue;let n=o[e].split(":");n[0]=n[0].trim(),n[1]=n[1].trim(),this.css[i][n[0]]=n[1].replace(/var\(([^)]+)\)/g,(e,i)=>{let[o,n]=i.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(o.trim())||n||e).trim()})}};(()=>{let o=i.innerHeight,s=n.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;s.nextNode();){let t=s.currentNode;if(t.getBoundingClientRect().top<o||r.scanFullPage){let i=e(t);if(i)for(let t=0;t<i.length;t++)a(i[t])}}})()}}try{return new i(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},81582:function(t,e,i){"use strict";var o=i(31635),n=i(81937),s=i(84839),r=i(28077),a=i(91206);i(69023);var l=i(2923);class c extends a.Plugin{afterInit(t){}__onTab(t){if(t.key===n.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){let e=(0,l.onTabInsideLi)(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,o.__decorate)([(0,s.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,o.__decorate)([(0,s.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},81875:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>'},81937:function(t,e,i){"use strict";i.r(e),i.d(e,{ACCURACY:function(){return U},APP_VERSION:function(){return o},BASE_PATH:function(){return td},BASE_PATH_IS_MIN:function(){return tf},BR:function(){return V},CLIPBOARD_ID:function(){return tg},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return te},ES:function(){return n},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return x},INSERT_AS_HTML:function(){return ti},INSERT_AS_TEXT:function(){return tn},INSERT_CLEAR_HTML:function(){return to},INSERT_ONLY_TEXT:function(){return ts},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return _},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return r},IS_IE:function(){return X},IS_INLINE:function(){return E},IS_MAC:function(){return ta},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return tl},KEY_ALT:function(){return N},KEY_BACKSPACE:function(){return j},KEY_DELETE:function(){return q},KEY_DOWN:function(){return B},KEY_ENTER:function(){return P},KEY_ESC:function(){return A},KEY_F3:function(){return F},KEY_LEFT:function(){return M},KEY_META:function(){return k},KEY_RIGHT:function(){return R},KEY_SPACE:function(){return O},KEY_TAB:function(){return L},KEY_UP:function(){return z},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return tt},MODE_SOURCE:function(){return G},MODE_SPLIT:function(){return K},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return p},NEARBY:function(){return H},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return $},PASSIVE_EVENTS:function(){return tv},SAFE_COUNT_CHANGE_CALL:function(){return tr},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return t_},SPACE_REG_EXP:function(){return v},SPACE_REG_EXP_END:function(){return y},SPACE_REG_EXP_START:function(){return b},TEMP_ATTR:function(){return tp},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return J},TEXT_RTF:function(){return Q},TOKENS:function(){return d},globalDocument:function(){return S},globalWindow:function(){return w},lang:function(){return tm}});let o="4.8.1",n="es2021",s=!0,r=!0,a=!0,l=!1,c=!1,u="https://xdsoft.net/jodit/",h=()=>l=!0,d={},f="\uFEFF",p=" ",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,_=()=>/^[\uFEFF]+/g,v=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="u">typeof window?window:void 0,S="u">typeof document?document:void 0,C=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,E=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],x=new Set([...T,"br","hr"]),D=new Set(T),k="Meta",j="Backspace",L="Tab",P="Enter",A="Escape",N="Alt",M="ArrowLeft",z="ArrowUp",R="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,z,B,R,M,P,A,F,L],V="br",$="p",Y=1,G=2,K=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),J=X?"text":"text/plain",Z=X?"html":"text/html",Q=X?"rtf":"text/rtf",tt="jodit-selection_marker",te=300,ti="insert_as_html",to="insert_clear_html",tn="insert_as_text",ts="insert_only_text",tr=10,ta=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),tl={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ta?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},tc=t=>{let e=t.split("/");return/\.js/.test(e[e.length-1])?{basePath:e.slice(0,e.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:tu,isMin:th}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return tc(t.src);let e=S.querySelectorAll("script[src]");return e&&e.length?tc(e[e.length-1].src):tc(w.location.href)})(),td=tu,tf=th,tp="data-jodit-temp",tm={},tg="clipboard",t_="source-consumer",tv=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},81987:function(t,e,i){"use strict";i.d(e,{Mods:function(){return n}});var o=i(18303);class n{afterSetMod(t,e){}setMod(t,e,i){t=t.toLowerCase();let n=this.mods[t];if(n===e)return this;let s=`${this.componentName}_${t}_`,r=(i||this.container).classList;return null!=n&&r.remove(`${s}${n.toString().toLowerCase()}`),(0,o.isVoid)(e)||""===e||r.add(`${s}${e.toString().toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},82147:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},82166:function(t,e,i){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}i.d(e,{isHtmlFromWord:function(){return o}})},82495:function(t,e,i){"use strict";i.d(e,{createSourceEditor:function(){return s}});var o=i(65946),n=i(8105);function s(t,e,i,s,r){let a;if((0,o.isFunction)(t))a=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){a=new n.AceEditor(e,i,s,r);break}default:a=new n.TextAreaEditor(e,i,s,r)}return a.init(e),a.onReadyAlways(()=>{a.setReadOnly(e.o.readonly)}),a}},82658:function(t,e,i){"use strict";i.d(e,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return n.cleanFromWord},htmlspecialchars:function(){return s.htmlspecialchars},nl2br:function(){return r.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var o=i(30893),n=i(1277),s=i(6609),r=i(48838),a=i(48155),l=i(22852)},82794:function(t,e,i){"use strict";i.d(e,{toggleAttributes:function(){return m}});var o=i(81937),n=i(23211),s=i(28077),r=i(28686),a=i(19147),l=i(18073),c=i(74264),u=i(93640),h=i(80991),d=i(36400),f=i(98394);let p="toggleAttributes";function m(t,e,i,_,v=!1){if(!v&&t.isApplied(e,p))return _;v||t.setApplied(e,p);let{attributes:b}=t.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(p=>{var m,y,w;let S=b[p];switch(p){case"style":m=_,(0,u.assert)((0,r.isPlainObject)(S)&&(0,l.size)(S),"Style must be an object"),Object.keys(S).forEach(r=>{let l=e.style.getPropertyValue((0,c.kebabCase)(r)),u=S[r];if(""!==l||null!=u){let c,p;if((c=i.create.element(e.tagName.toLowerCase())).style.cssText=e.style.cssText,(function(t){if(void 0!==(0,d.dataBind)(t,"shadowRoot"))return(0,d.dataBind)(t,"shadowRoot");let e=(0,s.getContainer)(t),i=o.globalDocument.createElement("iframe");(0,h.css)(i,{width:0,height:0,position:"absolute",border:0}),i.src="about:blank",e.appendChild(i);let n=i.contentWindow?.document,r=n?n.body:t.od.body;return(0,d.dataBind)(t,"shadowRoot",r),r})(i).appendChild(c),p=(0,h.css)(c,r),n.Dom.safeRemove(c),p===(0,a.normalizeCssValue)(r,u)){if(!l)return;v||(0,h.css)(e,r,null),m=g(t,e,m=f.UNSET);return}m=f.CHANGE,v||((0,h.css)(e,r,u),m=g(t,e,m))}}),_=m;break;case"className":case"class":let C;y=_,(0,u.assert)((0,r.isString)(S),"Class name must be a string"),C=i.e.fire.bind(i.e,`${f._PREFIX}AfterToggleAttribute`),e.classList.contains(S.toString())?(y=f.UNSET,v||(e.classList.remove(S),0===e.classList.length&&((0,u.attr)(e,"class",null),C(y,e,"class",null)))):(y=f.CHANGE,v||(e.classList.add(S),C(y,e,"class",S))),_=y;break;default:let E;w=_,(0,u.assert)((0,r.isString)(S)||(0,r.isNumber)(S)||(0,r.isBoolean)(S)||null==S,"Attribute value must be a string or number or boolean or null"),E=i.e.fire.bind(i.e,`${f._PREFIX}AfterToggleAttribute`),(0,u.attr)(e,p)===S?(v||(0,u.attr)(e,p,null),w=f.UNSET,v||E(w,e,p,S)):(w=f.CHANGE,v||((0,u.attr)(e,p,S),E(w,e,p,S))),_=w}}),_}function g(t,e,i){return(0,u.attr)(e,"style")||((0,u.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(n.Dom.unwrap(e),i=f.UNWRAP)),i}},83207:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},83215:function(t,e,i){"use strict";i.d(e,{innerWidth:function(){return o}});let o=(t,e)=>{let i=e.getComputedStyle(t);return t.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},83335:function(t,e,i){"use strict";i.d(e,{wrapUnwrappedText:function(){return s}});var o=i(23211),n=i(23175);function s(t,e,i){let s=i.editor,r=i.createInside,a=(t,e="previousSibling")=>{let r=t,a=t;for(;a&&!(0,n.isMarker)(a)&&!o.Dom.isTag(a,i.o.enter)&&(r=a,a=a[e]?a[e]:a.parentNode&&!o.Dom.isBlock(a.parentNode)&&a.parentNode!==s?a.parentNode:null,!o.Dom.isBlock(a)););return r},l=a(e),c=a(e,"nextSibling"),u=i.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let h=u.extractContents(),d=r.element(t.element);return d.appendChild(h),o.Dom.safeInsertNode(u,d),t.elementIsBlock&&o.Dom.isEmpty(d)&&!o.Dom.isTag(d.firstElementChild,"br")&&d.appendChild(r.element("br")),d}},83376:function(t,e,i){"use strict";i.d(e,{getBlockWrapper:function(){return function t(e,i,s=o.IS_BLOCK){let r=e,a=i.editor;do{if(!r||r===a)break;if(s.test(r.nodeName)){if(n.Dom.isLeaf(r))return r;return t(r.parentNode,i,/^li$/i)||r}r=r.parentNode}while(r&&r!==a)return null}}});var o=i(81937),n=i(23211)},83389:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},83653:function(t,e,i){"use strict";i.d(e,{isNormalNode:function(){return s}});var o=i(23211),n=i(23175);function s(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,n.isMarker)(t))}},84578:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return l}});var o=i(25045),n=i(81937),s=i(57821),r=i(98394),a=i(96127);class l{isApplied(t,e){let i=this.__applyMap.get(t);return!!i&&i[e]}setApplied(t,e){let i=this.__applyMap.get(t)??{};i[e]=!0,this.__applyMap.set(t,i)}get elementIsList(){return!!(this.options.element&&n.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&n.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:e}=this.options,i=e?Object.keys(e):[];try{i.forEach(i=>{t.e.on((0,s.camelCase)(r._PREFIX+"_"+i),e[i])}),(0,a.ApplyStyle)(t,this)}finally{i.forEach(i=>{t.e.off((0,s.camelCase)(r._PREFIX+"_"+i),e[i])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){(0,o._)(this,"options",void 0),(0,o._)(this,"__applyMap",void 0),this.options=t,this.__applyMap=new WeakMap}}},84839:function(t,e,i){"use strict";i.r(e),i.d(e,{autobind:function(){return o.autobind},cache:function(){return n.cache},cacheHTML:function(){return n.cacheHTML},cached:function(){return n.cached},component:function(){return s.component},debounce:function(){return r.debounce},derive:function(){return a.derive},getPropertyDescriptor:function(){return f.getPropertyDescriptor},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return r.throttle},wait:function(){return d.wait},watch:function(){return f.watch}});var o=i(49574),n=i(51676),s=i(91672),r=i(55184),a=i(24968),l=i(29200),c=i(35718),u=i(41360),h=i(77036),d=i(80840),f=i(68616)},85305:function(t,e,i){"use strict";i.d(e,{PluginSystem:function(){return d}});var o=i(25045),n=i(81937),s=i(28077),r=i(45664),a=i(28686),l=i(55810),c=i(3050),u=i(25974),h=i(86189);class d{get size(){return this.__items.size}add(t,e){this.__items.set((0,h.normalizeName)(t),e),s.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,h.normalizeName)(t))}remove(t){this.__items.delete((0,h.normalizeName)(t))}__getFullPluginsList(t){let e=[];return this.__items.forEach((i,o)=>{(!t||t.has(o))&&e.push([o,i])}),e}__init(t){let{extraList:e,disableList:i,filter:o}={extraList:t.o.extraPlugins.map(t=>(0,a.isString)(t)?{name:t}:t),disableList:new Set((0,r.splitArray)(t.o.disablePlugins).map(h.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},s=new Map,d={},f=new Set;t.__plugins=d;let p=()=>{if(t.isInDestruct)return;let e=!1;this.__getFullPluginsList(o).forEach(([o,n])=>{if(i.has(o)||s.has(o))return;let r=n?.requires;if(r&&(0,a.isArray)(r)&&r.length){if(r.some(t=>i.has(t)))return;if(!r.every(t=>s.has(t)))return void f.add(o)}e=!0;let c=(0,u.makeInstance)(t,n);if(!c){s.set(o,null),f.delete(o);return}(0,l.init)(t,o,n,c,s,f),d[o]=c}),e&&(t.e.fire("updatePlugins"),p())};e&&e.length&&(0,c.loadExtras)(this.__items,t,e,p),p(),t.e.on("beforeDestruct",()=>{Object.keys(d).forEach(e=>{let i=d[e];(0,a.isDestructable)(i)&&i.destruct(t),delete d[e]}),delete t.__plugins}),n.IS_PROD||f.size}wait(t){return new Promise(e=>{if(this.get(t))return e();let i=()=>{e(),s.eventEmitter.off(`plugin:${t}:ready`,i)};s.eventEmitter.on(`plugin:${t}:ready`,i)})}constructor(){(0,o._)(this,"__items",new Map)}}},85932:function(t,e,i){"use strict";i.d(e,{isString:function(){return n},isStringArray:function(){return s}});var o=i(17312);function n(t){return"string"==typeof t}function s(t){return(0,o.isArray)(t)&&n(t[0])}},86038:function(t,e,i){"use strict";i(5266).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},86122:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return n}});var o=i(4099);class n extends o.UIGroup{className(){return"FileBrowserFiles"}}},86189:function(t,e,i){"use strict";i.d(e,{normalizeName:function(){return n}});var o=i(74264);function n(t){return(0,o.kebabCase)(t).toLowerCase()}},86236:function(t,e,i){"use strict";var o=i(25045),n=i(81937),s=i(23211),r=i(28077),a=i(18855);i(88580);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){s.Dom.safeRemove(this.charCounter),s.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...t){super(...t),(0,o._)(this,"charCounter",null),(0,o._)(this,"wordCounter",null),(0,o._)(this,"reInit",()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()}),(0,o._)(this,"calc",this.j.async.throttle(()=>{let t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let e;e=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?t.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,n.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",e.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout))}}r.pluginSystem.add("stat",l)},86634:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},86878:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o.getContentWidth},getScrollParent:function(){return n.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return a.offset},position:function(){return l.position},size:function(){return r.size}});var o=i(54447),n=i(34027),s=i(83215),r=i(18073),a=i(69143),l=i(23599)},86899:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},87329:function(t,e,i){"use strict";i.d(e,{UITextArea:function(){return l}});var o=i(25045),n=i(31635),s=i(84839),r=i(91672),a=i(65273);class l extends a.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:e}=this.state;this.nativeInput.style.resize=e?"auto":"none",this.nativeInput.rows=t??5}constructor(t,e){super(t,e),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,size:5,resizable:!0}),(0,n.__decorate)([(0,s.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=(0,n.__decorate)([r.component],l)},87624:function(t,e,i){"use strict";i.d(e,{SentenceFinder:function(){return n.SentenceFinder},clearSelectionWrappers:function(){return o.clearSelectionWrappers},clearSelectionWrappersFromHTML:function(){return o.clearSelectionWrappersFromHTML},getSelectionWrappers:function(){return o.getSelectionWrappers},highlightTextRanges:function(){return o.highlightTextRanges}});var o=i(19213),n=i(59276)},87908:function(t,e,i){"use strict";var o=i(65946),n=i(29434),s=i(5266),r=i(223),a=i.n(r);s.Config.prototype.defaultLineHeight=null,n.Icon.set("line-height",a()),s.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(t,e,{control:i})=>(0,o.memorizeExec)(t,e,{control:i},t=>t)}},88329:function(t,e,i){"use strict";i.d(e,{Confirm:function(){return r}});var o=i(91565),n=i(53681),s=i(76841);function r(t,e,i){let r=this instanceof s.Dialog?this:new s.Dialog({closeOnClickOverlay:!0}),a=r.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=r.c.element("label");(0,o.isFunction)(e)&&(i=e,e=void 0),l.appendChild(r.c.fromHTML(t)),a.appendChild(l);let c=t=>()=>{i&&!1===i(t)||r.close()},u=(0,n.Button)(r,"cancel","Cancel"),h=(0,n.Button)(r,"ok","Yes");return u.onAction(c(!1)),h.onAction(c(!0)),r.e.on(a,"submit",()=>(c(!0)(),!1)),r.setFooter([h,u]),r.open(a,e||"&nbsp;",!0,!0),h.focus(),r}},88475:function(t,e,i){"use strict";i.d(e,{toArray:function(){return s}});var o=i(23283),n=i(43379);let s=function(...t){return((0,o.isNativeFunction)(Array.from)?Array.from:(0,n.reset)("Array.from")??Array.from).apply(Array,t)}},88497:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},88580:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.showCharsCounter=!0,o.Config.prototype.countHTMLChars=!1,o.Config.prototype.countTextSpaces=!1,o.Config.prototype.showWordsCounter=!0},88952:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206),u=i(4099),h=i(56490),d=i(4274);i(89873);class f extends c.Plugin{get popup(){return new h.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let e=this.elmsList,i=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,e,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,l.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(t,e,i){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||i!==this.previousTarget){let t;this.previousTarget=i;let o=this.j.o.popup[e];t=(0,l.isFunction)(o)?o(this.j,i,this.popup.close):o,(0,l.isArray)(t)&&(this.toolbar.build(t,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container),this.popup.setContent(t),this.type=e}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,l.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let e=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!e&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,l.splitArray)(this.j.o.toolbarInlineDisableFor).map(t=>t.toLowerCase()).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",e=>{if(this.toolbar===e){let e=this.toolbar.getButtonsNames();return(0,l.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let i=(0,l.isString)(t)?t:t.name;return i&&"|"!==i&&`
254
254
  `!==i&&!e.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(t,e,i)=>{this.showPopup(e,i||((0,l.isString)(t)?t:t.nodeName),(0,l.isString)(t)?void 0:t)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(t){if(t&&t.target&&u.UIElement.closestElement(t.target,h.Popup))return;let{snapRange:e}=this,{range:i}=this.j.s;(!e||i.collapsed||i.startContainer!==e.startContainer||i.startOffset!==e.startOffset||i.endContainer!==e.endContainer||i.endOffset!==e.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let t="selection",e=this.j.s.sel,i=this.j.s.range;if(e?.isCollapsed||this.isSelectedTarget(i)){this.type===t&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>i.getBoundingClientRect(),t)}isSelectedTarget(t){let e=t.startContainer;return r.Dom.isElement(e)&&e===t.endContainer&&r.Dom.isTag(e.childNodes[t.startOffset],new Set((0,l.keys)(this.j.o.popup,!1)))&&t.startOffset===t.endOffset-1}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){let t=this.elmsList;return t.map(t=>(0,l.camelCase)("click_"+t)).concat(t.map(t=>(0,l.camelCase)("touchstart_"+t))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(t){this.showPopup(()=>{if(t)return t;let{range:e}=this.j.s;return e.getBoundingClientRect()},"toolbar")}constructor(...t){super(...t),(0,o._)(this,"type",null),(0,o._)(this,"previousTarget",void 0),(0,o._)(this,"snapRange",null),(0,o._)(this,"elmsList",(0,l.keys)(this.j.o.popup,!1).filter(t=>!this.isExcludedTarget(t)))}}(0,o._)(f,"requires",["select"]),(0,n.__decorate)([s.cache],f.prototype,"popup",null),(0,n.__decorate)([s.cache],f.prototype,"toolbar",null),(0,n.__decorate)([s.autobind],f.prototype,"onClick",null),(0,n.__decorate)([(0,s.wait)(t=>!t.j.isLocked)],f.prototype,"showPopup",null),(0,n.__decorate)([(0,s.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),s.autobind],f.prototype,"hidePopup",null),(0,n.__decorate)([(0,s.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),(0,n.__decorate)([s.autobind],f.prototype,"onSelectionStart",null),(0,n.__decorate)([s.autobind],f.prototype,"onSelectionEnd",null),(0,n.__decorate)([(0,s.debounce)(t=>t.defaultTimeout)],f.prototype,"onSelectionChange",null),(0,n.__decorate)([s.autobind],f.prototype,"showInlineToolbar",null),a.pluginSystem.add("inlinePopup",f)},89081:function(t,e,i){"use strict";i.d(e,{unwrapChildren:function(){return a}});var o=i(23211),n=i(93640),s=i(9703),r=i(73019);function a(t,e){let i,a=[],l=[],c=t.options.attributes?.style;if(e.firstChild){let u=o.Dom.eachGen(e),h=u.next();for(;!h.done;){let e=h.value;(0,r.isSuitElement)(t,e,!0)&&(!c||(0,s.hasSameStyleKeys)(e,c))?(void 0===i&&(i=!0),a.push(e)):c&&(0,r.isSameStyleChild)(t,e)?(void 0===i&&(i=!1),l.push(()=>{(0,n.css)(e,Object.keys(c).reduce((t,e)=>(t[e]=null,t),{})),(0,n.attr)(e,"style")||(0,n.attr)(e,"style",null),(0,n.attr)(e,"style")||e.nodeName.toLowerCase()!==t.element||a.push(e)})):o.Dom.isEmptyTextNode(e)||void 0!==i||(i=!1),h=u.next()}}return l.forEach(t=>t()),a.forEach(o.Dom.unwrap),!!i}},89097:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg>'},89308:function(t,e,i){"use strict";i.d(e,{get:function(){return s}});var o=i(85932),n=i(18303);function s(t,e){if(!(0,o.isString)(t)||!t.length)return null;let i=t.split("."),s=e;try{for(let t of i){if((0,n.isVoid)(s[t]))return null;s=s[t]}}catch{return null}return(0,n.isVoid)(s)?null:s}},89317:function(t,e,i){"use strict";var o=i(17312),n=i(41324),s=i.n(n),r=i(63837),a=i(53414);let l={};l={ar:s(),cs_cz:s(),de:s(),en:r,es:s(),fi:s(),fr:s(),he:s(),hu:s(),id:s(),it:s(),ja:s(),ko:s(),mn:s(),nl:s(),no:s(),pl:s(),pt_br:s(),ru:s(),tr:s(),ua:s(),zh_cn:s(),zh_tw:s()};let c=t=>t?t.default||t:{},u={};(0,o.isArray)(c(a))&&c(a).forEach((t,e)=>{u[e]=t}),Object.keys(l).forEach(t=>{let e=c(l[t]);(0,o.isArray)(e)?(l[t]={},e.forEach((e,i)=>{l[t][u[i]]=e})):l[t]=e}),e.default=l},89446:function(t,e,i){"use strict";i.d(e,{buildData:function(){return n}});var o=i(65946);function n(t,e){if((0,o.isFunction)(t.o.buildData))return t.o.buildData.call(t,e);let i=t.ow.FormData;if(void 0!==i){if(e instanceof i||(0,o.isString)(e))return e;let t=new i;return Object.keys(e).forEach(i=>{t.append(i,e[i])}),t}return e}},89636:function(t,e,i){"use strict";i.d(e,{TabsWidget:function(){return l}});var o=i(16964),n=i(23211),s=i(91565),r=i(7909),a=i(4099);let l=(t,e,i)=>{let l=t.c.div("jodit-tabs"),c=t.c.div("jodit-tabs__wrapper"),u=t.c.div("jodit-tabs__buttons");(0,r.attr)(u,{role:"tablist","aria-orientation":"horizontal"});let h={},d=[],f="";l.appendChild(u),l.appendChild(c);let p=t=>{h[t]&&(d.forEach(t=>{t.state.activated=!1}),Object.values(h).forEach(({tab:t})=>t.classList.remove("jodit-tab_active")),h[t].button.state.activated=!0,h[t].tab.classList.add("jodit-tab_active"))};if(e.forEach(({icon:l,name:m,content:g})=>{let _=t.c.div("jodit-tab");(0,r.attr)(_,{role:"tabpanel"});let v=(0,a.Button)(t,l||m,m);v.state.role="tab",t.e.on(v.container,"pointerdown",t=>t.preventDefault()),f||(f=m),u.appendChild(v.container),d.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+e.length),(0,s.isFunction)(g)?_.appendChild(t.c.div("jodit-tab_empty")):_.appendChild(o.Component.isInstanceOf(g,a.UIElement)?g.container:g),c.appendChild(_),v.onAction(()=>(p(m),(0,s.isFunction)(g)&&!n.Dom.isElement(g)&&g.call(t),i&&(i.activeTab=m),!1)),h[m]={button:v,tab:_}}),Object.values(h).forEach(({button:t})=>{t.container.style.width=(100/e.length).toFixed(10)+"%"}),p(i&&i.activeTab&&h[i.activeTab]?i.activeTab:f),i){let t=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(e){t=e,p(e)}})}return l}},89817:function(t,e,i){"use strict";i.d(e,{moveNodeInsideStart:function(){return s}});var o=i(81937),n=i(23211);function s(t,e,i){let s=n.Dom.findSibling(e,i),r=n.Dom.findSibling(e,!i);for(;n.Dom.isElement(s)&&!n.Dom.isTag(s,o.INSEPARABLE_TAGS)&&n.Dom.isContentEditable(s,t.editor)&&(!r||!n.Dom.closest(e,n.Dom.isElement,t.editor));)i||!s.firstChild?s.appendChild(e):n.Dom.before(s.firstChild,e),s=n.Dom.sibling(e,i),r=n.Dom.sibling(e,!i)}},89827:function(t,e,i){"use strict";function o(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}i.d(e,{checkNotCollapsed:function(){return o}})},89873:function(t,e,i){"use strict";var o=i(29434),n=i(5266),s=i(70235),r=i(17849),a=i(466),l=i(75711),c=i(59399),u=i(38681),h=i.n(u),d=i(64637),f=i.n(d),p=i(94190),m=i.n(p),g=i(51957),_=i.n(g),v=i(71940),b=i.n(v),y=i(43218),w=i.n(y),S=i(48007),C=i.n(S);n.Config.prototype.toolbarInline=!0,n.Config.prototype.toolbarInlineForSelection=!1,n.Config.prototype.toolbarInlineDisableFor=[],n.Config.prototype.toolbarInlineDisabledButtons=["source"],o.Icon.set("addcolumn",h()).set("addrow",f()).set("merge",m()).set("th",w()).set("splitg",_()).set("splitv",b()).set("th-list",C()),n.Config.prototype.popup={a:s.default,img:l.default,cells:r.default,toolbar:c.default,jodit:a.default,iframe:a.default,"jodit-media":a.default,selection:["bold","underline","italic","ul","ol",`
255
255
  `,"outdent","indent","fontsize","brush","cut",`
256
- `,"paragraph","link","align","dots"]}},90204:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(28077),a=i(7909),l=i(91206);i(24268);var c=i(33494);class u extends l.Plugin{afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,a.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}constructor(t){super(t),(0,o._)(this,"buttons",[{group:"state",name:"spellcheck"}]),(0,r.extendLang)(c)}}(0,n.__decorate)([s.autobind],u.prototype,"toggleSpellcheck",null),r.pluginSystem.add("spellcheck",u)},90826:function(t,e,i){"use strict";var o=i(27795),n=i(28077),s=i(65946),r=i(29434),a=i(5266),l=i(15753),c=i(64831),u=i.n(c);r.Icon.set("image",u()),a.Config.prototype.controls.image={popup(t,e,i){let n=null;return e&&!o.Dom.isText(e)&&o.Dom.isHTMLElement(e)&&(o.Dom.isTag(e,"img")||(0,s.$$)("img",e).length)&&(n=o.Dom.isTag(e,"img")?e:(0,s.$$)("img",e)[0]),t.s.save(),(0,l.FileSelectorWidget)(t,{filebrowser(e){t.s.restore(),e.files&&e.files.forEach(i=>t.s.insertImage(e.baseurl+i,null,t.o.imageDefaultWidth)),i()},upload:!0,async url(e,o){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(e)&&(e="//"+e);let s=n||t.createInside.element("img");s.setAttribute("src",e),s.setAttribute("alt",o),n||await t.s.insertImage(s,null,t.o.imageDefaultWidth),i()}},n,i)},tags:["img"],tooltip:"Insert Image"},n.pluginSystem.add("image",function(t){t.registerButton({name:"image",group:"media"})})},90886:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(28077),l=i(65946),c=i(18855),u=i(59400);i(34689);var h=i(27137),d=i(28771),f=i(670),p=i(47744),m=i(71552);class g extends c.Plugin{get form(){return new h.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,d.openImageEditorDialog)(this.j,this.state),openImagePopup:t=>(0,f.openImagePopup)(this.j,this.dialog,this.state,t)})}get dialog(){let{j:t}=this,e=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,m.applyValuesToImage)(t,this.state,this.state.sourceImage),t.synchronizeValues(),e.close()}),i.remove.onAction(()=>{t.s.removeNode(this.state.sourceImage),e.close()}),i.cancel.onAction(()=>{e.close()}),e.setHeader(t.i18n("Image properties")),e.setContent(this.form),e.setFooter([[i.cancel,i.remove],i.check]),t.e.on(e,"afterClose",()=>{this.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(this.state.sourceImage)}),e.setSize(t.o.image.dialogWidth),(0,l.markOwner)(t,e.container),e}get __buttons(){let{j:t}=this;return{check:(0,u.Button)(t,"ok","Apply","primary"),remove:(0,u.Button)(t,"bin","Delete"),cancel:(0,u.Button)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((t,e)=>(0,p.readValuesFromImage)(this.j,this.state).then(t,e)).catch(t=>{(0,l.isAbortError)(t)||this.dialog.message.error(t.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(t=>t.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(t=>t.state.disabled=!1)}afterInit(t){let e=this;t.e.on("afterConstructor changePlace",()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",i=>{let o=i.target;if(r.Dom.isTag(o,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;e.state.sourceImage=o,e.state.image=o.cloneNode(!0),t.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),e.open())}else i.stopImmediatePropagation(),t.s.select(o)})}).on("openImageProperties.imageproperties",t=>{e.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:t,values:e}=this.state;if(t.src)try{if(this.__lock(),await t.decode(),this.state.sizeIsLocked&&(0,l.isNumeric)(e.imageWidth)){let t=parseFloat(e.imageWidth.toString());e.imageHeight=Math.round(t/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",t)}catch(t){this.j.alert(t.message)}finally{this.__unlock()}}beforeDestruct(t){Object.values((0,s.cached)(this,"__buttons")??{}).forEach(t=>t.destruct()),(0,s.cached)(this,"dialog")?.destruct(),(0,s.cached)(this,"form")?.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}constructor(...t){super(...t),(0,o._)(this,"state",{image:new Image,sourceImage:new Image,get ratio(){let{naturalWidth:t,naturalHeight:e}=this.image;return t/e||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}}),(0,o._)(this,"activeTabState",{activeTab:"Image"})}}(0,n.__decorate)([s.cache],g.prototype,"form",null),(0,n.__decorate)([s.cache],g.prototype,"dialog",null),(0,n.__decorate)([s.cache],g.prototype,"__buttons",null),(0,n.__decorate)([(0,s.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),a.pluginSystem.add("imageProperties",g)},91017:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},91115:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg>'},91206:function(t,e,i){"use strict";i.d(e,{Plugin:function(){return o.Plugin}});var o=i(18855);i(85305)},91231:function(t,e,i){"use strict";i.d(e,{Async:function(){return o.Async}});var o=i(24735)},91321:function(t,e,i){"use strict";i.d(e,{completeUrl:function(){return n}});var o=i(81937);let n=t=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},91535:function(t,e,i){"use strict";i.d(e,{Alert:function(){return l}});var o=i(23211),n=i(78982),s=i(91565),r=i(53681),a=i(76841);function l(t,e,i,c="jodit-dialog_alert"){(0,s.isFunction)(e)&&(i=e,e=void 0);let u=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),h=u.c.div(c),d=(0,r.Button)(u,"ok","Ok");return(0,n.asArray)(t).forEach(t=>{h.appendChild(o.Dom.isNode(t)?t:u.c.fromHTML(t))}),d.onAction(()=>{i&&(0,s.isFunction)(i)&&!1===i(u)||u.close()}),u.setFooter([d]),u.open(h,e||"&nbsp;",!0,!0),d.focus(),u}},91560:function(t,e,i){"use strict";i.r(e),i.d(e,{allowAttributes:function(){return o.allowAttributes},fillEmptyParagraph:function(){return n.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return r.removeInvTextNodes},replaceOldTags:function(){return a.replaceOldTags},sanitizeAttributes:function(){return l.sanitizeAttributes},tryRemoveNode:function(){return c.tryRemoveNode}});var o=i(95559),n=i(39188),s=i(94561),r=i(53514),a=i(35104),l=i(65015),c=i(27611)},91565:function(t,e,i){"use strict";function o(t){return"function"==typeof t}i.d(e,{isFunction:function(){return o}})},91672:function(t,e,i){"use strict";function o(t){class e extends t{constructor(...t){super(...t),this.constructor===e&&(this instanceof e||Object.setPrototypeOf(this,e.prototype),this.setStatus("ready"))}}return e}i.d(e,{component:function(){return o}})},91678:function(t,e,i){"use strict";var o=i(28077),n=i(65946),s=i(29434),r=i(5266);i(40291);var a=i(52450),l=i.n(a),c=i(41111),u=i.n(c),h=i(49972),d=i.n(h),f=i(45062),p=i.n(f),m=i(18605),g=i.n(m),_=i(83389),v=i.n(_);o.pluginSystem.add("bold",function(t){let e=e=>{let i,o=r.Config.defaultOptions.controls[e],s={...o.css};return Object.keys(s).forEach(t=>{i||(i={}),i[t]=(0,n.isArray)(s[t])?s[t][0]:s[t]}),t.s.commitStyle({element:o.tags?o.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(e=>{t.registerButton({name:e,group:"font-style"})}),["superscript","subscript"].forEach(e=>{t.registerButton({name:e,group:"script"})}),t.registerCommand("bold",{exec:e,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:e,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:e,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:e}).registerCommand("subscript",{exec:e}).registerCommand("superscript",{exec:e})}),s.Icon.set("bold",l()).set("italic",u()).set("strikethrough",d()).set("subscript",p()).set("superscript",g()).set("underline",v())},91764:function(t,e,i){"use strict";i.d(e,{isURL:function(){return n}});var o=i(81937);function n(t){if(t.includes(" "))return!1;if("undefined"!=typeof URL)try{let e=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(e.protocol)}catch(t){return!1}let e=o.globalDocument.createElement("a");return e.href=t,!!e.hostname}},91882:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},92063:function(t,e,i){"use strict";i(5266).Config.prototype.showXPathInStatusbar=!0},93267:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg>'},93387:function(t,e,i){"use strict";i.d(e,{colorToHex:function(){return o}});let o=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let e=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!e)return"#000000";let i=parseInt(e[2],10),o=parseInt(e[3],10),n=(parseInt(e[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;n.length<6;)n="0"+n;return e[1]+"#"+n}},93637:function(t,e,i){"use strict";i(94358),i(42766),i(28286),i(63974),i(91678),i(58910),i(11018),i(43354),i(42462),i(30062),i(64222),i(43102),i(3678),i(49764),i(78690),i(50294),i(53390),i(69696),i(50982),i(2952),i(81144),i(90826),i(39978),i(90886),i(39e3),i(88952),i(64094),i(18210),i(50662),i(58354),i(68624),i(76830),i(74240),i(98792),i(23422),i(96730),i(7758),i(28346),i(198),i(49690),i(41134),i(59758),i(14248),i(72214),i(74522),i(30500),i(98988),i(2756),i(44322),i(13810),i(90204),i(86236),i(67582),i(11774),i(14774),i(81582),i(7994),i(30110),i(34142),i(22980),i(56894),i(52014)},93640:function(t,e,i){"use strict";i.r(e),i.d(e,{$$:function(){return x.$$},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return v.ConnectionError},LimitedStack:function(){return j.LimitedStack},OptionsError:function(){return v.OptionsError},abort:function(){return v.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return n.alreadyLoadedList},appendScriptAsync:function(){return n.appendScriptAsync},appendStyleAsync:function(){return n.appendStyleAsync},attr:function(){return l.attr},browser:function(){return c.browser},buildQuery:function(){return u.buildQuery},call:function(){return L.call},callPromise:function(){return L.callPromise},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},cns:function(){return C.cns},completeUrl:function(){return h.completeUrl},connection:function(){return v.connection},convertMediaUrlToVideoEmbed:function(){return f.convertMediaUrlToVideoEmbed},css:function(){return p.css},cssPath:function(){return x.cssPath},ctrlKey:function(){return m.ctrlKey},dataBind:function(){return g.dataBind},defaultLanguage:function(){return _.defaultLanguage},error:function(){return v.error},fastClone:function(){return b.fastClone},get:function(){return y.get},getClassName:function(){return w.getClassName},getDataTransfer:function(){return L.getDataTransfer},getXPathByElement:function(){return x.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return S.humanSizeToBytes},inView:function(){return D.inView},isAbort:function(){return v.isAbort},isAtom:function(){return b.isAtom},keepNames:function(){return w.keepNames},keys:function(){return L.keys},loadImage:function(){return L.loadImage},loadNext:function(){return n.loadNext},loadNextStyle:function(){return n.loadNextStyle},markAsAtomic:function(){return b.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return L.markOwner},memorizeExec:function(){return L.memorizeExec},options:function(){return v.options},parseQuery:function(){return E.parseQuery},previewBox:function(){return I.previewBox},refs:function(){return x.refs},reset:function(){return T.reset},resolveElement:function(){return x.resolveElement},scrollIntoViewIfNeeded:function(){return D.scrollIntoViewIfNeeded},set:function(){return k.set}});var o=i(16849),n=i(47760),s=i(28712),r={};for(var a in s)0>["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(r[a]=(function(t){return s[t]}).bind(0,a));i.d(e,r);var l=i(7909),c=i(26136),u=i(36833),h=i(91321),d=i(77483),f=i(3856),p=i(80991),m=i(77213),g=i(36400),_=i(97228),v=i(33201),b=i(54794),y=i(89308),w=i(421),S=i(37427),C=i(49385),E=i(36310),I=i(57075),T=i(43379),D=i(60898),x=i(28723),k=i(52144),j=i(42820),L=i(71125)},93747:function(t,e,i){"use strict";i.d(e,{EventEmitter:function(){return h}});var o=i(25045),n=i(81937),s=i(32328),r=i(17312),a=i(91565),l=i(85932),c=i(33201),u=i(18869);class h{mute(t){return this.__mutedEvents.add(t??"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(t??"*"),this}__eachEvent(t,e){(0,s.splitArray)(t).map(t=>t.trim()).forEach(t=>{let i=t.split("."),o=i[1]||u.defaultNameSpace;e.call(this,i[0],o)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let e=new u.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:e})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,e){let i=this.__doc.createEvent("HTMLEvents");(0,l.isString)(e)?i.initEvent(e,!0,!0):(i.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(i,t,{value:e[t],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(t,e,i,o){let s,u,h,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(s=this,u=t,h=e,f=i):(s=t,u=e,h=i,f=o),!((0,l.isString)(u)||(0,l.isStringArray)(u))||0===u.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(h))throw(0,c.error)("Need event handler");if((0,r.isArray)(s))return s.forEach(t=>{this.on(t,u,h,f)}),this;let p=s,m=this.__getStore(p),g=this,_=function(t,...e){if(!g.isMuted(t))return h&&h.call(this,...e)};return d(p)&&(_=function(t){if(!g.isMuted(t.type)&&(g.__prepareEvent(t),h&&!1===h.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(u,(t,e)=>{if(0===t.length)throw(0,c.error)("Need event name");if(!1===m.indexOf(t,e,h)){let i={event:t,originalCallback:h,syntheticCallback:_};if(m.set(t,e,i,f?.top),d(p)){let e=n.PASSIVE_EVENTS.has(t)?{passive:!0,capture:f?.capture??!1}:f?.capture??!1;_.options=e,p.addEventListener(t,_,e),this.__memoryDOMSubjectToHandler(p,_)}}}),this}__memoryDOMSubjectToHandler(t,e){let i=this.__domEventsMap.get(t)||new Set;i.add(e),this.__domEventsMap.set(t,i)}__unmemoryDOMSubjectToHandler(t,e){let i=this.__domEventsMap,o=i.get(t)||new Set;o.delete(e),o.size?i.set(t,o):i.delete(t)}one(t,e,i,o){let n,s,r,a;(0,l.isString)(t)||(0,l.isStringArray)(t)?(n=this,s=t,r=e,a=i):(n=t,s=e,r=i,a=o);let c=(...t)=>(this.off(n,s,c),r(...t));return this.on(n,s,c,a),this}off(t,e,i){let o,n,s;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(o=this,n=t,s=e):(o=t,n=e,s=i),(0,r.isArray)(o))return o.forEach(t=>{this.off(t,n,s)}),this;let c=o,h=this.__getStore(c);if(!((0,l.isString)(n)||(0,l.isStringArray)(n))||0===n.length)return h.namespaces().forEach(t=>{this.off(c,"."+t)}),this.__removeStoreFromSubject(c),this;let f=t=>{d(c)&&(c.removeEventListener(t.event,t.syntheticCallback,t.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(c,t.syntheticCallback))},p=(t,e)=>{if(""===t)return void h.events(e).forEach(t=>{""!==t&&p(t,e)});let i=h.get(t,e);if(i&&i.length)if((0,a.isFunction)(s)){let o=h.indexOf(t,e,s);!1!==o&&(f(i[o]),i.splice(o,1),i.length||h.clearEvents(e,t))}else i.forEach(f),i.length=0,h.clearEvents(e,t)};return this.__eachEvent(n,(t,e)=>{e===u.defaultNameSpace?h.namespaces().forEach(e=>{p(t,e)}):p(t,e)}),h.isEmpty()&&this.__removeStoreFromSubject(c),this}stopPropagation(t,e){let i=(0,l.isString)(t)?this:t,o=(0,l.isString)(t)?t:e;if("string"!=typeof o)throw(0,c.error)("Need event names");let n=this.__getStore(i);this.__eachEvent(o,(t,e)=>{let o=n.get(t,e);o&&this.__stopped.push(o),e===u.defaultNameSpace&&n.namespaces(!0).forEach(e=>this.stopPropagation(i,t+"."+e))})}__removeStop(t){if(t){let e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(0,e+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,e,...i){let o,n,s=(0,l.isString)(t)?this:t,r=(0,l.isString)(t)?t:e,a=(0,l.isString)(t)?[e,...i]:i;if(!d(s)&&!(0,l.isString)(r))throw(0,c.error)("Need events names");let h=this.__getStore(s);return!(0,l.isString)(r)&&d(s)?this.__triggerNativeEvent(s,e):this.__eachEvent(r,(t,e)=>{if(d(s))this.__triggerNativeEvent(s,t);else{let i=h.get(t,e);if(i)try{[...i].every(e=>!this.__isStopped(i)&&(this.currents.push(t),n=e.syntheticCallback.call(s,t,...a),this.currents.pop(),void 0!==n&&(o=n),!0))}finally{this.__removeStop(i)}e!==u.defaultNameSpace||d(s)||h.namespaces().filter(t=>t!==e).forEach(e=>{let i=this.fire.apply(this,[s,t+"."+e,...a]);void 0!==i&&(o=i)})}}),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((t,e)=>{this.off(e)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(t){(0,o._)(this,"__domEventsMap",new Map),(0,o._)(this,"__mutedEvents",new Set),(0,o._)(this,"__key","__JoditEventEmitterNamespaces"),(0,o._)(this,"__doc",n.globalDocument),(0,o._)(this,"__prepareEvent",t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(e=>{Object.defineProperty(t,e,{value:t.changedTouches[0][e],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))}),(0,o._)(this,"currents",[]),(0,o._)(this,"__stopped",[]),(0,o._)(this,"__isDestructed",!1),t&&(this.__doc=t),this.__key+=new Date().getTime()}}function d(t){return(0,a.isFunction)(t.addEventListener)}},93890:function(t,e,i){"use strict";i.d(e,{checkRemoveUnbreakableElement:function(){return r}});var o=i(81937),n=i(23211),s=i(2409);function r(t,e,i){let r=n.Dom.findSibling(e,i);return!!(n.Dom.isElement(r)&&(n.Dom.isTag(r,o.INSEPARABLE_TAGS)||n.Dom.isEmpty(r)))&&(n.Dom.safeRemove(r),n.Dom.isTag(r,"br")&&!n.Dom.findNotEmptySibling(e,!1)&&n.Dom.after(e,t.createInside.element("br")),t.s.setCursorBefore(e),n.Dom.isTag(r,"br")&&(0,s.checkRemoveEmptyParent)(t,e,i),!0)}},94013:function(t,e,i){"use strict";i.d(e,{isEqual:function(){return n},isFastEqual:function(){return s}});var o=i(3347);function n(t,e){return t===e||(0,o.stringify)(t)===(0,o.stringify)(e)}function s(t,e){return t===e}},94190:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg>'},94193:function(t,e,i){"use strict";i.d(e,{SourceEditor:function(){return n}});var o=i(25045);class n{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(t){this.isReady?t():this.j.events?.on(this,"ready",t)}constructor(t,e,i,n){(0,o._)(this,"jodit",void 0),(0,o._)(this,"container",void 0),(0,o._)(this,"toWYSIWYG",void 0),(0,o._)(this,"fromWYSIWYG",void 0),(0,o._)(this,"instance",void 0),(0,o._)(this,"className",void 0),(0,o._)(this,"isReady",void 0),this.jodit=t,this.container=e,this.toWYSIWYG=i,this.fromWYSIWYG=n,this.className="",this.isReady=!1}}},94358:function(t,e,i){"use strict";var o=i(81937),n=i(28077),s=i(65946),r=i(29434),a=i(5266),l=i(17995),c=i.n(l);a.Config.prototype.controls.about={exec(t){let e=t.dlg({closeOnClickOverlay:!0}),i=t.i18n.bind(t);e.setMod("theme",t.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
256
+ `,"paragraph","link","align","dots"]}},90204:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(28077),a=i(7909),l=i(91206);i(24268);var c=i(33494);class u extends l.Plugin{afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,a.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}constructor(t){super(t),(0,o._)(this,"buttons",[{group:"state",name:"spellcheck"}]),(0,r.extendLang)(c)}}(0,n.__decorate)([s.autobind],u.prototype,"toggleSpellcheck",null),r.pluginSystem.add("spellcheck",u)},90826:function(t,e,i){"use strict";var o=i(27795),n=i(28077),s=i(65946),r=i(29434),a=i(5266),l=i(15753),c=i(64831),u=i.n(c);r.Icon.set("image",u()),a.Config.prototype.controls.image={popup(t,e,i){let n=null;return e&&!o.Dom.isText(e)&&o.Dom.isHTMLElement(e)&&(o.Dom.isTag(e,"img")||(0,s.$$)("img",e).length)&&(n=o.Dom.isTag(e,"img")?e:(0,s.$$)("img",e)[0]),t.s.save(),(0,l.FileSelectorWidget)(t,{filebrowser(e){t.s.restore(),e.files&&e.files.forEach(i=>t.s.insertImage(e.baseurl+i,null,t.o.imageDefaultWidth)),i()},upload:!0,async url(e,o){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(e)&&(e="//"+e);let s=n||t.createInside.element("img");s.setAttribute("src",e),s.setAttribute("alt",o),n||await t.s.insertImage(s,null,t.o.imageDefaultWidth),i()}},n,i)},tags:["img"],tooltip:"Insert Image"},n.pluginSystem.add("image",function(t){t.registerButton({name:"image",group:"media"})})},90886:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(28077),l=i(65946),c=i(18855),u=i(59400);i(34689);var h=i(27137),d=i(28771),f=i(670),p=i(47744),m=i(71552);class g extends c.Plugin{get form(){return new h.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,d.openImageEditorDialog)(this.j,this.state),openImagePopup:t=>(0,f.openImagePopup)(this.j,this.dialog,this.state,t)})}get dialog(){let{j:t}=this,e=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,m.applyValuesToImage)(t,this.state,this.state.sourceImage),t.synchronizeValues(),e.close()}),i.remove.onAction(()=>{t.s.removeNode(this.state.sourceImage),e.close()}),i.cancel.onAction(()=>{e.close()}),e.setHeader(t.i18n("Image properties")),e.setContent(this.form),e.setFooter([[i.cancel,i.remove],i.check]),t.e.on(e,"afterClose",()=>{this.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(this.state.sourceImage)}),e.setSize(t.o.image.dialogWidth),(0,l.markOwner)(t,e.container),e}get __buttons(){let{j:t}=this;return{check:(0,u.Button)(t,"ok","Apply","primary"),remove:(0,u.Button)(t,"bin","Delete"),cancel:(0,u.Button)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((t,e)=>(0,p.readValuesFromImage)(this.j,this.state).then(t,e)).catch(t=>{(0,l.isAbortError)(t)||this.dialog.message.error(t.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(t=>t.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(t=>t.state.disabled=!1)}afterInit(t){let e=this;t.e.on("afterConstructor changePlace",()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",i=>{let o=i.target;if(r.Dom.isTag(o,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;e.state.sourceImage=o,e.state.image=o.cloneNode(!0),t.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),e.open())}else i.stopImmediatePropagation(),t.s.select(o)})}).on("openImageProperties.imageproperties",t=>{e.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:t,values:e}=this.state;if(t.src)try{if(this.__lock(),await t.decode(),this.state.sizeIsLocked&&(0,l.isNumeric)(e.imageWidth)){let t=parseFloat(e.imageWidth.toString());e.imageHeight=Math.round(t/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",t)}catch(t){this.j.alert(t.message)}finally{this.__unlock()}}beforeDestruct(t){Object.values((0,s.cached)(this,"__buttons")??{}).forEach(t=>t.destruct()),(0,s.cached)(this,"dialog")?.destruct(),(0,s.cached)(this,"form")?.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}constructor(...t){super(...t),(0,o._)(this,"state",{image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:t,naturalHeight:e}=this.image;return t/e||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}}),(0,o._)(this,"activeTabState",{activeTab:"Image"})}}(0,n.__decorate)([s.cache],g.prototype,"form",null),(0,n.__decorate)([s.cache],g.prototype,"dialog",null),(0,n.__decorate)([s.cache],g.prototype,"__buttons",null),(0,n.__decorate)([(0,s.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),a.pluginSystem.add("imageProperties",g)},91017:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},91115:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg>'},91162:function(t,e,i){"use strict";i.d(e,{IndexedDBProvider:function(){return s},canUseIndexedDB:function(){return l},clearUseIndexedDBCache:function(){return a}});var o=i(25045),n=i(81937);class s{getDB(){return this.dbPromise||(this.dbPromise=new Promise((t,e)=>{let i=indexedDB.open(this.dbName,this.DB_VERSION);i.onerror=()=>{e(i.error)},i.onsuccess=()=>{t(i.result)},i.onupgradeneeded=t=>{let e=t.target.result;e.objectStoreNames.contains(this.storeName)||e.createObjectStore(this.storeName)}})),this.dbPromise}async performTransaction(t,e){try{let i=(await this.getDB()).transaction([this.storeName],t).objectStore(this.storeName),o=e(i);return new Promise((t,e)=>{o.onsuccess=()=>{t(o.result)},o.onerror=()=>{e(o.error)}})}catch(t){return Promise.reject(t)}}async set(t,e){try{await this.performTransaction("readwrite",i=>i.put(e,t))}catch(t){n.IS_PROD}return this}async delete(t){try{await this.performTransaction("readwrite",e=>e.delete(t))}catch{}return this}async get(t){try{return await this.performTransaction("readonly",e=>e.get(t))}catch{return}}async exists(t){try{let e=await this.performTransaction("readonly",e=>e.get(t));return void 0!==e}catch{return!1}}async clear(){try{await this.performTransaction("readwrite",t=>t.clear())}catch{}return this}async close(){if(this.dbPromise){try{(await this.dbPromise).close()}catch{}this.dbPromise=null}}async keys(){try{let t=await this.performTransaction("readonly",t=>t.getAllKeys());return t&&"object"==typeof t&&"then"in t&&(t=await t),t.map(t=>t+"")}catch{return[]}}async values(){try{let t=await this.performTransaction("readonly",t=>t.getAll());return t&&"object"==typeof t&&"then"in t&&(t=await t),t}catch{return[]}}async entries(){try{let[t,e]=await Promise.all([this.keys(),this.values()]);return t.map((t,i)=>[t,e[i]])}catch{return[]}}constructor(t="JoditDB",e="keyValueStore"){(0,o._)(this,"dbName",void 0),(0,o._)(this,"dbPromise",void 0),(0,o._)(this,"DB_VERSION",void 0),(0,o._)(this,"storeName",void 0),this.dbName=t,this.dbPromise=null,this.DB_VERSION=1,this.storeName=e}}let r=null;function a(){r=null}async function l(){if(null!=r)return r;try{if("u"<typeof indexedDB)return r=!1,!1;let t="___Jodit___"+Math.random().toString(),e=indexedDB.open(t);return r=await new Promise(i=>{e.onerror=()=>{i(!1)},e.onsuccess=()=>{indexedDB.deleteDatabase(t),i(!0)}})}catch{return r=!1,!1}}},91206:function(t,e,i){"use strict";i.d(e,{Plugin:function(){return o.Plugin}});var o=i(18855);i(85305)},91231:function(t,e,i){"use strict";i.d(e,{Async:function(){return o.Async}});var o=i(24735)},91321:function(t,e,i){"use strict";i.d(e,{completeUrl:function(){return n}});var o=i(81937);let n=t=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},91535:function(t,e,i){"use strict";i.d(e,{Alert:function(){return l}});var o=i(23211),n=i(78982),s=i(91565),r=i(53681),a=i(76841);function l(t,e,i,c="jodit-dialog_alert"){(0,s.isFunction)(e)&&(i=e,e=void 0);let u=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),h=u.c.div(c),d=(0,r.Button)(u,"ok","Ok");return(0,n.asArray)(t).forEach(t=>{h.appendChild(o.Dom.isNode(t)?t:u.c.fromHTML(t))}),d.onAction(()=>{i&&(0,s.isFunction)(i)&&!1===i(u)||u.close()}),u.setFooter([d]),u.open(h,e||"&nbsp;",!0,!0),d.focus(),u}},91560:function(t,e,i){"use strict";i.r(e),i.d(e,{allowAttributes:function(){return o.allowAttributes},fillEmptyParagraph:function(){return n.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return r.removeInvTextNodes},replaceOldTags:function(){return a.replaceOldTags},sanitizeAttributes:function(){return l.sanitizeAttributes},tryRemoveNode:function(){return c.tryRemoveNode}});var o=i(95559),n=i(39188),s=i(94561),r=i(53514),a=i(35104),l=i(65015),c=i(27611)},91565:function(t,e,i){"use strict";function o(t){return"function"==typeof t}i.d(e,{isFunction:function(){return o}})},91672:function(t,e,i){"use strict";function o(t){class e extends t{constructor(...t){super(...t),this.constructor===e&&(this instanceof e||Object.setPrototypeOf(this,e.prototype),this.setStatus("ready"))}}return e}i.d(e,{component:function(){return o}})},91678:function(t,e,i){"use strict";var o=i(28077),n=i(65946),s=i(29434),r=i(5266);i(40291);var a=i(52450),l=i.n(a),c=i(41111),u=i.n(c),h=i(49972),d=i.n(h),f=i(45062),p=i.n(f),m=i(18605),g=i.n(m),_=i(83389),v=i.n(_);o.pluginSystem.add("bold",function(t){let e=e=>{let i,o=r.Config.defaultOptions.controls[e],s={...o.css};return Object.keys(s).forEach(t=>{i||(i={}),i[t]=(0,n.isArray)(s[t])?s[t][0]:s[t]}),t.s.commitStyle({element:o.tags?o.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(e=>{t.registerButton({name:e,group:"font-style"})}),["superscript","subscript"].forEach(e=>{t.registerButton({name:e,group:"script"})}),t.registerCommand("bold",{exec:e,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:e,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:e,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:e}).registerCommand("subscript",{exec:e}).registerCommand("superscript",{exec:e})}),s.Icon.set("bold",l()).set("italic",u()).set("strikethrough",d()).set("subscript",p()).set("superscript",g()).set("underline",v())},91764:function(t,e,i){"use strict";i.d(e,{isURL:function(){return n}});var o=i(81937);function n(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let e=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(e.protocol)}catch(t){return!1}let e=o.globalDocument.createElement("a");return e.href=t,!!e.hostname}},91882:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},92063:function(t,e,i){"use strict";i(5266).Config.prototype.showXPathInStatusbar=!0},93267:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg>'},93387:function(t,e,i){"use strict";i.d(e,{colorToHex:function(){return o}});let o=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let e=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!e)return"#000000";let i=parseInt(e[2],10),o=parseInt(e[3],10),n=(parseInt(e[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;n.length<6;)n="0"+n;return e[1]+"#"+n}},93637:function(t,e,i){"use strict";i(94358),i(42766),i(28286),i(63974),i(91678),i(58910),i(11018),i(43354),i(42462),i(30062),i(64222),i(43102),i(3678),i(49764),i(78690),i(50294),i(53390),i(69696),i(50982),i(2952),i(81144),i(90826),i(39978),i(90886),i(39e3),i(88952),i(64094),i(18210),i(50662),i(58354),i(68624),i(76830),i(74240),i(98792),i(23422),i(96730),i(7758),i(28346),i(198),i(49690),i(41134),i(59758),i(14248),i(72214),i(74522),i(30500),i(98988),i(2756),i(44322),i(13810),i(90204),i(86236),i(67582),i(11774),i(14774),i(81582),i(7994),i(30110),i(34142),i(22980),i(56894),i(52014)},93640:function(t,e,i){"use strict";i.r(e),i.d(e,{$$:function(){return D.$$},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return v.ConnectionError},LimitedStack:function(){return j.LimitedStack},OptionsError:function(){return v.OptionsError},abort:function(){return v.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return n.alreadyLoadedList},appendScriptAsync:function(){return n.appendScriptAsync},appendStyleAsync:function(){return n.appendStyleAsync},attr:function(){return l.attr},browser:function(){return c.browser},buildQuery:function(){return u.buildQuery},call:function(){return L.call},callPromise:function(){return L.callPromise},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},cns:function(){return C.cns},completeUrl:function(){return h.completeUrl},connection:function(){return v.connection},convertMediaUrlToVideoEmbed:function(){return f.convertMediaUrlToVideoEmbed},css:function(){return p.css},cssPath:function(){return D.cssPath},ctrlKey:function(){return m.ctrlKey},dataBind:function(){return g.dataBind},defaultLanguage:function(){return _.defaultLanguage},error:function(){return v.error},fastClone:function(){return b.fastClone},get:function(){return y.get},getClassName:function(){return w.getClassName},getDataTransfer:function(){return L.getDataTransfer},getXPathByElement:function(){return D.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return S.humanSizeToBytes},inView:function(){return x.inView},isAbort:function(){return v.isAbort},isAtom:function(){return b.isAtom},keepNames:function(){return w.keepNames},keys:function(){return L.keys},loadImage:function(){return L.loadImage},loadNext:function(){return n.loadNext},loadNextStyle:function(){return n.loadNextStyle},markAsAtomic:function(){return b.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return L.markOwner},memorizeExec:function(){return L.memorizeExec},options:function(){return v.options},parseQuery:function(){return E.parseQuery},previewBox:function(){return I.previewBox},refs:function(){return D.refs},reset:function(){return T.reset},resolveElement:function(){return D.resolveElement},scrollIntoViewIfNeeded:function(){return x.scrollIntoViewIfNeeded},set:function(){return k.set}});var o=i(16849),n=i(47760),s=i(28712),r={};for(var a in s)0>["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(r[a]=(function(t){return s[t]}).bind(0,a));i.d(e,r);var l=i(7909),c=i(26136),u=i(36833),h=i(91321),d=i(77483),f=i(3856),p=i(80991),m=i(77213),g=i(36400),_=i(97228),v=i(33201),b=i(54794),y=i(89308),w=i(421),S=i(37427),C=i(49385),E=i(36310),I=i(57075),T=i(43379),x=i(60898),D=i(28723),k=i(52144),j=i(42820),L=i(71125)},93747:function(t,e,i){"use strict";i.d(e,{EventEmitter:function(){return h}});var o=i(25045),n=i(81937),s=i(32328),r=i(17312),a=i(91565),l=i(85932),c=i(33201),u=i(18869);class h{mute(t){return this.__mutedEvents.add(t??"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(t??"*"),this}__eachEvent(t,e){(0,s.splitArray)(t).map(t=>t.trim()).forEach(t=>{let i=t.split("."),o=i[1]||u.defaultNameSpace;e.call(this,i[0],o)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let e=new u.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:e})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,e){let i=this.__doc.createEvent("HTMLEvents");(0,l.isString)(e)?i.initEvent(e,!0,!0):(i.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(i,t,{value:e[t],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(t,e,i,o){let s,u,h,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(s=this,u=t,h=e,f=i):(s=t,u=e,h=i,f=o),!((0,l.isString)(u)||(0,l.isStringArray)(u))||0===u.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(h))throw(0,c.error)("Need event handler");if((0,r.isArray)(s))return s.forEach(t=>{this.on(t,u,h,f)}),this;let p=s,m=this.__getStore(p),g=this,_=function(t,...e){if(!g.isMuted(t))return h&&h.call(this,...e)};return d(p)&&(_=function(t){if(!g.isMuted(t.type)&&(g.__prepareEvent(t),h&&!1===h.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(u,(t,e)=>{if(0===t.length)throw(0,c.error)("Need event name");if(!1===m.indexOf(t,e,h)){let i={event:t,originalCallback:h,syntheticCallback:_};if(m.set(t,e,i,f?.top),d(p)){let e=n.PASSIVE_EVENTS.has(t)?{passive:!0,capture:f?.capture??!1}:f?.capture??!1;_.options=e,p.addEventListener(t,_,e),this.__memoryDOMSubjectToHandler(p,_)}}}),this}__memoryDOMSubjectToHandler(t,e){let i=this.__domEventsMap.get(t)||new Set;i.add(e),this.__domEventsMap.set(t,i)}__unmemoryDOMSubjectToHandler(t,e){let i=this.__domEventsMap,o=i.get(t)||new Set;o.delete(e),o.size?i.set(t,o):i.delete(t)}one(t,e,i,o){let n,s,r,a;(0,l.isString)(t)||(0,l.isStringArray)(t)?(n=this,s=t,r=e,a=i):(n=t,s=e,r=i,a=o);let c=(...t)=>(this.off(n,s,c),r(...t));return this.on(n,s,c,a),this}off(t,e,i){let o,n,s;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(o=this,n=t,s=e):(o=t,n=e,s=i),(0,r.isArray)(o))return o.forEach(t=>{this.off(t,n,s)}),this;let c=o,h=this.__getStore(c);if(!((0,l.isString)(n)||(0,l.isStringArray)(n))||0===n.length)return h.namespaces().forEach(t=>{this.off(c,"."+t)}),this.__removeStoreFromSubject(c),this;let f=t=>{d(c)&&(c.removeEventListener(t.event,t.syntheticCallback,t.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(c,t.syntheticCallback))},p=(t,e)=>{if(""===t)return void h.events(e).forEach(t=>{""!==t&&p(t,e)});let i=h.get(t,e);if(i&&i.length)if((0,a.isFunction)(s)){let o=h.indexOf(t,e,s);!1!==o&&(f(i[o]),i.splice(o,1),i.length||h.clearEvents(e,t))}else i.forEach(f),i.length=0,h.clearEvents(e,t)};return this.__eachEvent(n,(t,e)=>{e===u.defaultNameSpace?h.namespaces().forEach(e=>{p(t,e)}):p(t,e)}),h.isEmpty()&&this.__removeStoreFromSubject(c),this}stopPropagation(t,e){let i=(0,l.isString)(t)?this:t,o=(0,l.isString)(t)?t:e;if("string"!=typeof o)throw(0,c.error)("Need event names");let n=this.__getStore(i);this.__eachEvent(o,(t,e)=>{let o=n.get(t,e);o&&this.__stopped.push(o),e===u.defaultNameSpace&&n.namespaces(!0).forEach(e=>this.stopPropagation(i,t+"."+e))})}__removeStop(t){if(t){let e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(0,e+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,e,...i){let o,n,s=(0,l.isString)(t)?this:t,r=(0,l.isString)(t)?t:e,a=(0,l.isString)(t)?[e,...i]:i;if(!d(s)&&!(0,l.isString)(r))throw(0,c.error)("Need events names");let h=this.__getStore(s);return!(0,l.isString)(r)&&d(s)?this.__triggerNativeEvent(s,e):this.__eachEvent(r,(t,e)=>{if(d(s))this.__triggerNativeEvent(s,t);else{let i=h.get(t,e);if(i)try{[...i].every(e=>!this.__isStopped(i)&&(this.currents.push(t),n=e.syntheticCallback.call(s,t,...a),this.currents.pop(),void 0!==n&&(o=n),!0))}finally{this.__removeStop(i)}e!==u.defaultNameSpace||d(s)||h.namespaces().filter(t=>t!==e).forEach(e=>{let i=this.fire.apply(this,[s,t+"."+e,...a]);void 0!==i&&(o=i)})}}),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((t,e)=>{this.off(e)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(t){(0,o._)(this,"__domEventsMap",new Map),(0,o._)(this,"__mutedEvents",new Set),(0,o._)(this,"__key","__JoditEventEmitterNamespaces"),(0,o._)(this,"__doc",n.globalDocument),(0,o._)(this,"__prepareEvent",t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(e=>{Object.defineProperty(t,e,{value:t.changedTouches[0][e],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))}),(0,o._)(this,"currents",[]),(0,o._)(this,"__stopped",[]),(0,o._)(this,"__isDestructed",!1),t&&(this.__doc=t),this.__key+=new Date().getTime()}}function d(t){return(0,a.isFunction)(t.addEventListener)}},93890:function(t,e,i){"use strict";i.d(e,{checkRemoveUnbreakableElement:function(){return r}});var o=i(81937),n=i(23211),s=i(2409);function r(t,e,i){let r=n.Dom.findSibling(e,i);return!!(n.Dom.isElement(r)&&(n.Dom.isTag(r,o.INSEPARABLE_TAGS)||n.Dom.isEmpty(r)))&&(n.Dom.safeRemove(r),n.Dom.isTag(r,"br")&&!n.Dom.findNotEmptySibling(e,!1)&&n.Dom.after(e,t.createInside.element("br")),t.s.setCursorBefore(e),n.Dom.isTag(r,"br")&&(0,s.checkRemoveEmptyParent)(t,e,i),!0)}},94013:function(t,e,i){"use strict";i.d(e,{isEqual:function(){return n},isFastEqual:function(){return s}});var o=i(3347);function n(t,e){return t===e||(0,o.stringify)(t)===(0,o.stringify)(e)}function s(t,e){return t===e}},94190:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg>'},94193:function(t,e,i){"use strict";i.d(e,{SourceEditor:function(){return n}});var o=i(25045);class n{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(t){this.isReady?t():this.j.events?.on(this,"ready",t)}constructor(t,e,i,n){(0,o._)(this,"jodit",void 0),(0,o._)(this,"container",void 0),(0,o._)(this,"toWYSIWYG",void 0),(0,o._)(this,"fromWYSIWYG",void 0),(0,o._)(this,"instance",void 0),(0,o._)(this,"className",void 0),(0,o._)(this,"isReady",void 0),this.jodit=t,this.container=e,this.toWYSIWYG=i,this.fromWYSIWYG=n,this.className="",this.isReady=!1}}},94358:function(t,e,i){"use strict";var o=i(81937),n=i(28077),s=i(65946),r=i(29434),a=i(5266),l=i(17995),c=i.n(l);a.Config.prototype.controls.about={exec(t){let e=t.dlg({closeOnClickOverlay:!0}),i=t.i18n.bind(t);e.setMod("theme",t.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
257
257
  <div>${i("Jodit Editor")} v.${t.getVersion()}</div>
258
258
  <div>${i("License: %s",!(0,s.isLicense)(t.o.license)?"MIT":(0,s.normalizeLicense)(t.o.license))}</div>
259
259
  <div>
@@ -264,5 +264,5 @@
264
264
  ${i("contains detailed help for using")}
265
265
  </div>
266
266
  <div>${i("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")}</div>
267
- </div>`),(0,s.css)(e.dialog,{minHeight:200,minWidth:420}),e.open(!0,!0)},tooltip:"About Jodit",mode:o.MODE_SOURCE+o.MODE_WYSIWYG},n.pluginSystem.add("about",function(t){t.registerButton({name:"about",group:"info"})}),r.Icon.set("about",c())},94561:function(t,e,i){"use strict";i.d(e,{removeEmptyTextNode:function(){return n}});var o=i(23211);function n(t,e,i,n,s,r){return o.Dom.isText(e)&&!e.nodeValue?(e===r&&t.s.isCollapsed()&&t.s.setCursorAfter(e),o.Dom.safeRemove(e),!0):i}},94806:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},94925:function(t,e,i){"use strict";i.d(e,{Uploader:function(){return c}});var o=i(25045),n=i(16964),s=i(81937),r=i(65946),a=i(5266),l=i(11981);i(40013);class c extends n.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,e,i){let o=()=>{t.classList.remove("jodit_drag_hover")},n=this,r=t=>{let r,a,c,u=t.clipboardData,h=t=>{a&&(t.append("extension",c),t.append("mimetype",a.type))};if(!s.IS_IE&&(0,l.hasFiles)(u))return(0,l.sendFiles)(n,u.files,e,i).finally(o),!1;if(s.IS_IE&&!s.IS_ES_NEXT)return(0,l.processOldBrowserDrag)(n,u,e,i,o);if((0,l.hasItems)(u)){let{items:s}=u;for(r=0;r<s.length;r+=1)if("file"===s[r].kind&&"image/png"===s[r].type){if(a=s[r].getAsFile()){let t=a.type.match(/\/([a-z0-9]+)/i);c=t[1]?t[1].toLowerCase():"",(0,l.sendFiles)(n,[a],e,i,h).finally(o)}t.preventDefault();break}}};n.j&&n.j.editor!==t?n.j.e.on(t,"paste",r):n.j.e.on("beforePaste",r),this.attachEvents(t,e,i,o)}attachEvents(t,e,i,o){let n=this;n.j.e.on(t,"dragend dragover dragenter dragleave drop",t=>{t.preventDefault()}).on(t,"dragover",e=>{((0,l.hasFiles)(e.dataTransfer)||(0,l.hasItems)(e.dataTransfer))&&(t.classList.add("jodit_drag_hover"),e.preventDefault())}).on(t,"dragend dragleave",e=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(e.dataTransfer)&&e.preventDefault()}).on(t,"drop",s=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(s.dataTransfer)&&(s.preventDefault(),s.stopImmediatePropagation(),(0,l.sendFiles)(n,s.dataTransfer.files,e,i).finally(o))});let s=t.querySelector("input[type=file]");s&&n.j.e.on(s,"change",()=>{(0,l.sendFiles)(n,s.files,e,i).then(()=>{s.value="",/safari/i.test(navigator.userAgent)||(s.type="",s.type="file")}).finally(o)})}uploadRemoteImage(t,e,i){let o=this,{o:n}=o,s=(0,r.isFunction)(i)?i:n.defaultHandlerError;(0,l.send)(o,{action:"fileUploadRemote",url:t}).then(t=>{if(n.isSuccess.call(o,t))return void((0,r.isFunction)(e)?e:n.defaultHandlerSuccess).call(o,n.process.call(o,t));s.call(o,(0,r.error)(n.getMessage.call(o,t)))}).catch(t=>s.call(o,t))}destruct(){this.setStatus(n.STATUSES.beforeDestruct);let t=l.ajaxInstances.get(this);t&&(t.forEach(t=>{try{t.destruct()}catch{}}),t.clear()),super.destruct()}constructor(t,e){super(t),(0,o._)(this,"path",""),(0,o._)(this,"source","default"),(0,o._)(this,"options",void 0),this.options=(0,r.ConfigProto)(e||{},(0,r.ConfigProto)(a.Config.defaultOptions.uploader,(0,r.isJoditObject)(t)?t.o.uploader:{}))}}},94978:function(t,e,i){"use strict";i.d(e,{AceEditor:function(){return a}});var o=i(25045),n=i(81937),s=i(65946),r=i(94193);class a extends r.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){let t=this.instance.session.getLength(),e=[],i=0;for(let o=0;t>o;o++)i+=this.getLastColumnIndex(o),o>0&&(i+=1),e[o]=i;return e}getRowColumnIndices(t){let e=this.getLastColumnIndices();if(t<=e[0])return{row:0,column:t};let i=1;for(let o=1;o<e.length;o++)t>e[o]&&(i=o+1);let o=t-e[i-1]-1;return{row:i,column:o}}setSelectionRangeIndices(t,e){let i=this.getRowColumnIndices(t),o=this.getRowColumnIndices(e);this.instance.getSelection().setSelectionRange({start:i,end:o})}getIndexByRowColumn(t,e){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+e}init(t){let e=()=>{if(void 0!==this.instance||!this.aceExists())return;let e=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(e);let i=t.ow.ace;this.instance=i.edit(e),"rtl"===t.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==n.MODE_WYSIWYG&&this.setValue(this.getValue());let o=this.j.async.throttle(()=>{if(t.isInDestruct||t.getMode()===n.MODE_WYSIWYG)return;let e=this.instance.isFocused();"auto"!==t.o.height?this.instance.setOption("maxLines",t.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),e&&this.focus()},2*this.j.defaultTimeout);t.e.on(t,"resize",o).on("afterResize afterSetMode",o),o(),this.onReady()};t.e.on("afterSetMode",()=>{(t.getRealMode()===n.MODE_SOURCE||t.getMode()===n.MODE_SPLIT)&&(this.fromWYSIWYG(),e())}),e(),this.aceExists()||(0,s.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then(()=>{t.isInDestruct||e()}).catch(()=>null)}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){let e=this.instance.selection.getCursor(),i=this.instance.session.insert(e,t);this.instance.selection.setRange({start:e,end:i},!1)}setSelectionRange(t,e){this.setSelectionRangeIndices(t,e)}setPlaceHolder(t){}replaceUndoManager(){let{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){t.redo()}})}constructor(...t){super(...t),(0,o._)(this,"className","jodit_ace_editor"),(0,o._)(this,"proxyOnBlur",t=>{this.j.e.fire("blur",t)}),(0,o._)(this,"proxyOnFocus",t=>{this.j.e.fire("focus",t)}),(0,o._)(this,"proxyOnMouseDown",t=>{this.j.e.fire("mousedown",t)})}}},95032:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},95134:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},95320:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>'},95399:function(t,e,i){"use strict";i.d(e,{UITooltip:function(){return p}});var o=i(25045),n=i(31635),s=i(16964),r=i(84839),a=i(27795),l=i(28077),c=i(23599),u=i(93640),h=i(96007);let d=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],f=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"];class p extends h.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(t){(0,l.getContainer)(this.j,p).appendChild(this.container),this.__attachedContainers.add(t),this.__attachedContainers.add(this.j.container),this.j.e.on(t,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(t,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let t=this.j;t.e.on(t.ow,d,this.__hide).on(f,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let t=this.j;t.e.off(t.ow,d,this.__hide).off(f,this.__hide)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!a.Dom.isHTMLElement(t.target))return;let e=(0,u.attr)(t.target,"aria-label");if(!e||(0,u.attr)(t.target,"disabled")||!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;let i=t.target;this.__open(()=>{let t=(0,c.position)(i);return{x:t.left+t.width/2,y:t.top+t.height}},e)}__open(t,e){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let i=this.j.o.showTooltipDelay||this.j.defaultTimeout;if(!i)return void this.__show(t,e);this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(t,e),i)}__show(t,e){this.setMod("visible",!0),this.getElm("content").innerHTML=e;let i=t();(0,u.css)(this.container,{left:i.x,top:i.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",(0,u.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(t=>{this.j.e.off(t,"mouseenter.tooltip",this.__onMouseEnter).off(t,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(t){super(t),(0,o._)(this,"__isOpened",!1),(0,o._)(this,"__attachedContainers",new Set),(0,o._)(this,"__listenClose",!1),(0,o._)(this,"__currentTarget",null),(0,o._)(this,"__delayShowTimeout",0),(0,o._)(this,"__hideTimeout",0),t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||(this.j.e.on("getContainer",t=>{this.__onAttach(t)}),t.hookStatus(s.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}}(0,n.__decorate)([r.autobind],p.prototype,"__onMouseLeave",null),(0,n.__decorate)([r.autobind],p.prototype,"__onMouseEnter",null),(0,n.__decorate)([r.autobind],p.prototype,"__hide",null),(0,n.__decorate)([r.autobind],p.prototype,"__hideDelay",null),p=(0,n.__decorate)([r.component],p)},95436:function(t,e,i){"use strict";i.d(e,{processOldBrowserDrag:function(){return c}});var o=i(81937),n=i(27795),s=i(28077),r=i(65946),a=i(23112),l=i(46533);function c(t,e,i,c,u){if(e&&(!e.types.length||e.types[0]!==o.TEXT_PLAIN)){let e=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,s.getContainer)(t.j,t.constructor).appendChild(e);let o=(0,r.isJoditObject)(t.j)?t.j.s.save():null;e.focus(),t.j.async.setTimeout(()=>{let s=e.firstChild;if(n.Dom.safeRemove(e),s&&s.hasAttribute("src")){let e=(0,r.attr)(s,"src")||"";o&&(0,r.isJoditObject)(t.j)&&t.j.s.restore(),(0,l.sendFiles)(t,[(0,a.dataURItoBlob)(e)],i,c).finally(u)}},t.j.defaultTimeout)}}},95559:function(t,e,i){"use strict";i.d(e,{allowAttributes:function(){return n}});var o=i(23211);function n(t,e,i,n){if(n&&o.Dom.isElement(e)&&!0!==n[e.nodeName]){let t=e.attributes;if(t&&t.length){let o=[];for(let i=0;i<t.length;i+=1){let s=n[e.nodeName][t[i].name];s&&(!0===s||s===t[i].value)||o.push(t[i].name)}o.length&&(i=!0),o.forEach(t=>{e.removeAttribute(t)})}}return i}},95971:function(t,e,i){"use strict";i.d(e,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var o=i(18073),n=i(93640),s=i(28712),r=i(9703);function a(t,e){return!((t.attributes.length||(0,o.size)(e))&&(0,o.size)(e))||((0,s.assert)(e,"Attrs must be a non-empty object"),Object.keys(e).every(i=>"class"===i||"className"===i?t.classList.contains(e[i]):"style"===i?(0,r.hasSameStyle)(t,e[i]):(0,n.attr)(t,i)===e[i]))}function l(t,e){return t.attributes.length===e.attributes.length&&Array.from(t.attributes).every(t=>e.hasAttribute(t.name)&&e.getAttribute(t.name)===t.value)}},96007:function(t,e,i){"use strict";i.d(e,{UIElement:function(){return d}});var o=i(25045),n=i(31635),s=i(16964),r=i(24968),a=i(23211),l=i(85932),c=i(23183),u=i(81987),h=i(29434);class d extends s.ViewComponent{get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(t){let e=this.parentElement;for(;e;)t(e),e=e.parentElement;return this}updateParentElement(t){return this.__parentElement?.updateParentElement(t),this}get(t,e){return super.get(t,e)||this.getElm(t)}closest(t){let e="object"==typeof t?e=>e===t:e=>s.Component.isInstanceOf(e,t),i=this.__parentElement;for(;i;){if(e(i))return i;i=!i.parentElement&&i.container.parentElement?d.closestElement(i.container.parentElement,d):i.parentElement}return null}static closestElement(t,e){let i=a.Dom.up(t,t=>{if(t){let{component:i}=t;return i&&s.Component.isInstanceOf(i,e)}return!1});return i?i?.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){let e=this.render(t);if((0,l.isString)(e)){let t=this.parseTemplate(e);return t.classList.add(this.componentName),t}return e}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,(t,e)=>h.Icon.get(e)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(t,e)=>this.i18n(e)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(t,e){super(t),(0,o._)(this,"container",void 0),(0,o._)(this,"name",""),(0,o._)(this,"__parentElement",null),(0,o._)(this,"mods",{}),this.container=this.createContainer(e),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}}d=(0,n.__decorate)([(0,r.derive)(u.Mods,c.Elms)],d)},96127:function(t,e,i){"use strict";i.d(e,{ApplyStyle:function(){return r}});var o=i(51640),n=i(98394),s=i(78462);function r(t,e){let{s:i,editor:r}=t;r.firstChild?.normalize();let a=i.fakes(),l=t.s.wrapInTagGen(a),c=l.next();if(c.done)return;let u={collapsed:i.isCollapsed(),mode:n.INITIAL,element:c.value,next:s.states.START,jodit:t,style:e};for(;c&&!c.done;){let t=new o.FiniteStateMachine(s.states.START,s.transactions);for(u.element=c.value;t.getState()!==s.states.END;)u=t.dispatch("exec",u);c=l.next()}i.restoreFakes(a)}},96340:function(t,e,i){"use strict";i.d(e,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},96608:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),o.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},96722:function(t,e,i){"use strict";i(5266).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},96730:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(28077),l=i(65946),c=i(91206);i(71693);var u=i(54308);class h extends c.Plugin{afterInit(t){}beforeDestruct(t){}processWordHTML(t,e,i){let{j:o}=this,{processPasteFromWord:n,askBeforePasteFromWord:s,defaultActionOnPasteFromWord:r,defaultActionOnPaste:a,pasteFromWordActionList:c}=o.o;return!!(n&&(0,l.isHtmlFromWord)(e))&&(s?(0,u.askInsertTypeDialog)(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",o=>{this.insertFromWordByType(t,e,o,i)},c):this.insertFromWordByType(t,e,r||a,i),!0)}insertFromWordByType(t,e,i,o){switch(i){case s.INSERT_AS_HTML:{e=(0,l.applyStyles)(e);let t=this.j.events?.fire("beautifyHTML",e);(0,l.isString)(t)&&(e=t);break}case s.INSERT_AS_TEXT:e=(0,l.cleanFromWord)(e);break;case s.INSERT_ONLY_TEXT:e=(0,l.stripTags)((0,l.cleanFromWord)(e))}(0,u.pasteInsertHtml)(t,this.j,e)}}(0,o._)(h,"requires",["paste"]),(0,n.__decorate)([(0,r.watch)(":processHTML")],h.prototype,"processWordHTML",null),a.pluginSystem.add("pasteFromWord",h)},96863:function(t,e,i){"use strict";var o=i(23211),n=i(62101),s=i(29434),r=i(5266),a=i(29348),l=i.n(a);s.Icon.set("paragraph",l()),r.Config.prototype.controls.paragraph={command:"formatBlock",value(t,e){let i=e.control,n=t.s.current(),s=o.Dom.closest(n,o.Dom.isBlock,t.editor);return s?.nodeName.toLowerCase()??i.data?.currentValue},update(t,e){let i=e.control;if(!t.s.current())return!1;let o=e.state.value,s=i.list;return(0,n.isPlainObject)(s)&&s[o.toString()]&&t.o.textIcons&&(e.state.text=s[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(t,e)=>e.state.value===e.control?.args?.[0],isActive:(t,e)=>e.state.value!==t.o.enter&&(0,n.isPlainObject)(e.control.list)&&!!e.control.list[e.state.value],childTemplate:(t,e,i)=>`<${e} style="margin:0;padding:0"><span>${t.i18n(i)}</span></${e}>`,tooltip:"Insert format block"}},97022:function(t,e,i){"use strict";i.d(e,{NUMBER_FIELDS_REG:function(){return n.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return n.normalizeCssNumericValue},normalizeCssValue:function(){return n.normalizeCssValue},normalizeKeyAliases:function(){return s.normalizeKeyAliases},normalizeLicense:function(){return r.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var o=i(77367),n=i(19147),s=i(27978),r=i(49663),a=i(18377),l=i(96340),c=i(98831),u=i(48009)},97110:function(t,e,i){"use strict";i.d(e,{wrapList:function(){return r}});var o=i(27795),n=i(51640),s=i(98394);function r(t,e,i){let r=i.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,e,t)??o.Dom.replace(e,"li",i.createInside),a=r.previousElementSibling,l=r.nextElementSibling,c=o.Dom.isTag(a,t.element)?a:null;return c??=o.Dom.isTag(l,t.element)?l:null,o.Dom.isList(c)&&(0,n.isSameAttributes)(c,t.options.attributes)||(c=i.createInside.element(t.element),(0,n.toggleAttributes)(t,c,i,s.INITIAL),o.Dom.before(r,c)),a===c?o.Dom.append(c,r):o.Dom.prepend(c,r),o.Dom.isTag(c.nextElementSibling,t.element)&&(0,n.elementsEqualAttributes)(c,c.nextElementSibling)&&(o.Dom.append(c,Array.from(c.nextElementSibling.childNodes)),o.Dom.safeRemove(c.nextElementSibling)),i.e.fire(`${s._PREFIX}AfterWrapList`,s.WRAP,c,t),c}},97228:function(t,e,i){"use strict";i.d(e,{defaultLanguage:function(){return s}});var o=i(81937),n=i(85932);let s=(t,e="en")=>"auto"!==t&&(0,n.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):e},97642:function(t,e,i){"use strict";i.d(e,{CamelCaseToKebabCase:function(){return r.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return n.fuzzySearchIndex},i18n:function(){return s.i18n},kebabCase:function(){return r.kebabCase},sprintf:function(){return s.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var o=i(57821),n=i(57626),s=i(18080),r=i(74264),a=i(3347),l=i(4040),c=i(99436)},97959:function(t,e,i){"use strict";i.d(e,{UIList:function(){return m}});var o=i(25045),n=i(31635),s=i(80251),r=i(84839),a=i(32328),l=i(53681),c=i(63468),u=i(35676),h=i(27987),d=i(2496),f=i(15982),p=i(40253);class m extends c.UIGroup{className(){return"UIList"}__onChangeMode(){this.setMod("mode",this.mode)}makeGroup(){return new c.UIGroup(this.jodit)}get buttons(){return this.allChildren.filter(t=>s.Component.isInstanceOf(t,l.UIButton))}getButtonsNames(){return this.buttons.map(t=>t instanceof l.UIButton&&t.state.name||"").filter(t=>""!==t)}setRemoveButtons(t){return this.removeButtons=t||[],this}build(t,e=null){let i;t=(0,a.splitArray)(t),this.clear();let o=!1,n=this.makeGroup();this.append(n),n.setMod("line",!0);let s=t=>{let s=null;switch(t.name){case`
268
- `:(n=this.makeGroup()).setMod("line",!0),i=this.makeGroup(),n.append(i),this.append(n);break;case"|":o||(o=!0,s=new u.UISeparator(this.j));break;case"---":{i.setMod("before-spacer",!0);let t=new h.UISpacer(this.j);n.append(t),i=this.makeGroup(),n.append(i),o=!1;break}default:o=!1,s="select"===t.component?this.makeSelect(t,e):this.makeButton(t,e)}s&&(i||(i=this.makeGroup(),n.append(i)),i.append(s))},r=t=>!this.removeButtons.includes(t.name)&&(!t.isVisible||t.isVisible?.(this.j,t));return t.forEach(t=>{if((0,d.isButtonGroup)(t)){let e=t.buttons.filter(t=>t);e.length&&((i=this.makeGroup()).setMod("separated",!0).setMod("group",t.group),n.append(i),(0,p.getStrongControlTypes)(e,this.j.o.controls).filter(r).forEach(s))}else{i||(i=this.makeGroup(),n.append(i));let e=(0,f.getControlType)(t,this.j.o.controls);r(e)&&s(e)}}),this.update(),this}makeSelect(t,e){throw Error("Not implemented behaviour")}makeButton(t,e){return new l.UIButton(this.j,{name:t.name})}constructor(t){super(t),(0,o._)(this,"mode","horizontal"),(0,o._)(this,"removeButtons",[])}}(0,n.__decorate)([(0,r.watch)("mode"),(0,r.hook)("ready")],m.prototype,"__onChangeMode",null),m=(0,n.__decorate)([r.component],m)},98394:function(t,e,i){"use strict";i.d(e,{CHANGE:function(){return s},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return r},UNWRAP:function(){return n},WRAP:function(){return o},_PREFIX:function(){return c}});let o="wrap",n="unwrap",s="change",r="unset",a="initial",l="replace",c="commitStyle"},98595:function(t,e,i){"use strict";i.d(e,{Selection:function(){return p}});var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(65946),c=i(28686),u=i(28712),h=i(7470),d=i(84578),f=i(42259);class p{get j(){return this.jodit}errorNode(t){if(!a.Dom.isNode(t))throw(0,l.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,c.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:t}=this,e=t?.rangeCount?t.getRangeAt(0):null;return!(!e||!a.Dom.isOrContains(this.area,e.startContainer))}createRange(t=!1){let e=this.doc.createRange();return t&&this.selectRange(e),e}remove(){let t=this.sel,e=this.current();if(t&&e)for(let e=0;e<t.rangeCount;e+=1)t.getRangeAt(e).deleteContents(),t.getRangeAt(e).collapse(!0)}clear(){this.sel?.rangeCount&&this.sel?.removeAllRanges()}removeNode(t){if(!a.Dom.isOrContains(this.j.editor,t,!0))throw(0,l.error)("Selection.removeNode can remove only editor's children");a.Dom.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,e){this.removeMarkers();try{let i=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let o=this.doc.caretPositionFromPoint(t,e);if(o)return i.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){let o=this.doc.caretRangeFromPoint(t,e);(0,u.assert)(o,"Incorrect caretRangeFromPoint behaviour"),i.setStart(o.startContainer,o.startOffset)}})(),i.collapse(!0),this.selectRange(i),!0}catch{}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,l.$$)("span[data-"+s.MARKER_CLASS+"]",this.area)}removeMarkers(){a.Dom.safeRemove.apply(null,this.markers)}marker(t=!1,e){let i=null;e&&(i=e.cloneRange()).collapse(t);let o=this.j.createInside.span();return o.id=s.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),o.style.lineHeight="0",o.style.display="none",a.Dom.markTemporary(o),(0,l.attr)(o,"data-"+s.MARKER_CLASS,t?"start":"end"),o.appendChild(this.j.createInside.text(s.INVISIBLE_SPACE)),i&&a.Dom.isOrContains(this.area,t?i.startContainer:i.endContainer)&&i.insertNode(o),o}restore(){let t=!1,e=t=>`span[data-${s.MARKER_CLASS}=${t?"start":"end"}]`,i=this.area.querySelector(e(!0)),o=this.area.querySelector(e(!1));if(i){if(t=this.createRange(),o)t.setStartAfter(i),a.Dom.safeRemove(i),t.setEndBefore(o),a.Dom.safeRemove(o);else{let e=i.previousSibling;a.Dom.isText(e)?t.setStart(e,e.nodeValue?e.nodeValue.length:0):t.setStartBefore(i),a.Dom.safeRemove(i),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){let t=this.sel;if(!t||!t.rangeCount)return[];let e=t.getRangeAt(0);(0,u.assert)(e,"Range is null");let i=e.cloneRange();i.collapse(!0);let o=this.j.createInside.fake();a.Dom.safeInsertNode(i,o),e.setStartBefore(o);let n=[o];if(!e.collapsed){let t=e.cloneRange();t.collapse(!1);let i=this.j.createInside.fake();a.Dom.safeInsertNode(t,i),e.setEndAfter(i),n.push(i)}return this.selectRange(e),n}restoreFakes(t){let e=t.filter(t=>t.isConnected);if(!e.length)return;let[i,o]=e,n=this.createRange();n.setStartAfter(i),o&&n.setEndBefore(o),this.selectRange(n),i.parentNode?.firstChild!==i.parentNode?.lastChild&&a.Dom.safeRemove(i),o?.parentNode?.firstChild!==o?.parentNode?.lastChild&&a.Dom.safeRemove(o)}save(t=!1){if(this.hasMarkers)return[];let e=this.sel;if(!e||!e.rangeCount)return[];let i=[],o=e.rangeCount,n=[];for(let t=0;o>t;t+=1)if(n[t]=e.getRangeAt(t),n[t].collapsed){let e=this.marker(!0,n[t]);i[t]={startId:e.id,collapsed:!0,startMarker:e.outerHTML}}else{let e=this.marker(!0,n[t]),o=this.marker(!1,n[t]);i[t]={startId:e.id,endId:o.id,collapsed:!1,startMarker:e.outerHTML,endMarker:o.outerHTML}}if(!t){e.removeAllRanges();for(let t=o-1;t>=0;--t){let o=this.doc.getElementById(i[t].startId);if(o){if(i[t].collapsed)n[t].setStartAfter(o),n[t].collapse(!0);else if(n[t].setStartBefore(o),i[t].endId){let e=this.doc.getElementById(i[t].endId);e&&n[t].setEndAfter(e)}try{e.addRange(n[t].cloneRange())}catch{}}}}return i}focus(t={preventScroll:!0}){if(!this.isFocused()){let e=(0,l.getScrollParent)(this.j.container),i=e?.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),i&&e?.scrollTo&&e.scrollTo(0,i);let o=this.sel,n=o?.rangeCount?o?.getRangeAt(0):null;if(!n||!a.Dom.isOrContains(this.area,n.startContainer)){let t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||this.j?.events?.fire("focus"),!0}return!1}isCollapsed(){let t=this.sel;for(let e=0;t&&e<t.rangeCount;e+=1)if(!t.getRangeAt(e).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.j.getRealMode()!==s.MODE_WYSIWYG)return null;let e=this.sel;if(!e||0===e.rangeCount)return null;let i=e.getRangeAt(0),o=i.startContainer,n=!1;if(a.Dom.isTag(o,"br")&&e.isCollapsed)return o;if(!a.Dom.isText(o)){let s=(0,f.findCorrectCurrentNode)(o,i,n,e.isCollapsed,t,t=>n?t.lastChild:t.firstChild);o=s.node,n=s.rightMode}return o&&a.Dom.isOrContains(this.area,o)?o:null}insertNode(t,e=!0,i=!0){this.errorNode(t);let o=a.Dom.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let n=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),n&&n.rangeCount){let e=n.getRangeAt(0),{firstChild:i}=t;a.Dom.isOrContains(this.area,e.commonAncestorContainer)?a.Dom.safeInsertNode(e,t):this.area.appendChild(t),[()=>i?.previousSibling,()=>i?.previousSibling,()=>i?.previousSibling?.lastChild].forEach(t=>{let e=t();e&&a.Dom.isEmptyTextNode(e)&&a.Dom.safeRemove(e)})}else this.area.appendChild(t);let i=t=>{if(a.Dom.isBlock(t)){let e=t.lastChild;if(e)return i(e)}this.setCursorAfter(t)};e&&(a.Dom.isFragment(t)?o&&i(o):i(t)),this.j.o.scrollToPastedContent&&(0,l.scrollIntoViewIfNeeded)(o??t,this.j.editor,this.doc)}),i&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",a.Dom.isFragment(t)?o:t)}insertHTML(t,e=!0){if(""===t)return;let i=this.j.createInside.div(),o=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),a.Dom.isNode(t)?i.appendChild(t):i.innerHTML=t.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",i.innerHTML))&&i.lastChild){for(;i.firstChild;)i.firstChild,o.appendChild(i.firstChild);this.insertNode(o,e,!1),this.j.__imdSynchronizeValues()}}insertImage(t,e=null,i=null){let o=(0,c.isString)(t)?this.j.createInside.element("img"):t;if((0,c.isString)(t)&&o.setAttribute("src",t),null!=i){let t=i.toString();t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),(0,l.attr)(o,"width",t)}e&&"object"==typeof e&&(0,l.css)(o,e);let n=()=>{(o.naturalHeight<o.offsetHeight||o.naturalWidth<o.offsetWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",n)};this.j.e.on(o,"load",n),o.complete&&n(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(t){let e=this.sel;if(!e||!e.rangeCount)return;let i=e.getRangeAt(0),o=i.commonAncestorContainer;a.Dom.isHTMLElement(o)||(o=o.parentElement);let n=[],r=i.startOffset,u=o.childNodes.length,h=i.startContainer===this.area?o.childNodes[r<u?r:u-1]:i.startContainer,d=i.endContainer===this.area?o.childNodes[i.endOffset-1]:i.endContainer;a.Dom.isText(h)&&h===i.startContainer&&i.startOffset===h.nodeValue?.length&&h.nextSibling&&(h=h.nextSibling),a.Dom.isText(d)&&d===i.endContainer&&0===i.endOffset&&d.previousSibling&&(d=d.previousSibling);let f=t=>{!t||t===o||a.Dom.isEmptyTextNode(t)||(0,c.isMarker)(t)||n.push(t)};f(h),h!==d&&a.Dom.isOrContains(o,h,!0)&&a.Dom.find(h,t=>(f(t),t===d||t&&t.contains&&t.contains(d)),o,!0,!1);let p=e=>{if(a.Dom.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,l.toArray)(e.childNodes).forEach(p);if(a.Dom.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{let t=this.j.createInside.text(s.INVISIBLE_SPACE);e.appendChild(t),e=t}t(e)}};0===n.length&&(a.Dom.isEmptyTextNode(h)&&n.push(h),h.firstChild&&n.push(h.firstChild)),n.forEach(p)}cursorInTheEdge(t,e,i=null){let o=!t,n=this.sel?.getRangeAt(0);if(i??=this.current(!1),!n||!i||!a.Dom.isOrContains(e,i,!0))return null;let s=t?n.startContainer:n.endContainer,r=t?n.startOffset:n.endOffset,c=t=>!!(t&&!a.Dom.isTag(t,"br")&&!a.Dom.isEmptyTextNode(t)&&!a.Dom.isTemporary(t)&&!(a.Dom.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t)));if(a.Dom.isText(s)){if((0,f.cursorInTheEdgeOfString)(s,r,t,o))return!1}else{let t=(0,l.toArray)(s.childNodes);if(o){if(t.slice(r).some(c))return!1}else if(t.slice(0,r).some(c))return!1}let u=i;for(;u&&u!==e;){let e=a.Dom.sibling(u,t);if(!e){u=u.parentNode;continue}if((u=e)&&c(u))return!1}return!0}cursorOnTheLeft(t,e){return this.cursorInTheEdge(!0,t,e)}cursorOnTheRight(t,e){return this.cursorInTheEdge(!1,t,e)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,e){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),o=null;return a.Dom.isText(t)?e?i.setStart(t,0):i.setEnd(t,t.nodeValue?.length??0):(o=this.j.createInside.fake(),e?i.setStartBefore(t):i.setEndAfter(t),i.collapse(e),a.Dom.safeInsertNode(i,o),i.selectNode(o)),i.collapse(e),this.selectRange(i),o}setCursorIn(t,e=!1){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),o=t,n=t;do{if(a.Dom.isText(o)||a.Dom.isTag(o,s.INSEPARABLE_TAGS))break;n=o,o=e?o.firstChild:o.lastChild}while(o)if(!o){let t=this.j.createInside.text(s.INVISIBLE_SPACE);a.Dom.isTag(n,s.INSEPARABLE_TAGS)?o=n:(n.appendChild(t),n=t)}let r=o||n;return a.Dom.isTag(r,s.INSEPARABLE_TAGS)?e||a.Dom.isTag(r,"br")?i.setStartBefore(r):i.setEndAfter(r):i.selectNodeContents(r),i.collapse(e),this.selectRange(i),n}selectRange(t,e=!0){let i=this.sel;return e&&!this.isFocused()&&this.focus(),i&&(i.removeAllRanges(),i.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,e=!1){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange();return i[e?"selectNodeContents":"selectNode"](t),this.selectRange(i)}get html(){let t=this.sel;if(t&&t.rangeCount>0){let e=t.getRangeAt(0).cloneContents(),i=this.j.createInside.div();return i.appendChild(e),i.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){let e=this.jodit.createInside.element("font",s.INVISIBLE_SPACE);this.insertNode(e,!1,!1),t&&t[0]&&e.appendChild(t[0]),yield e,a.Dom.unwrap(e);return}for(let t of((0,l.$$)("*[style*=font-size]",this.area).forEach(t=>{(0,l.attr)(t,"data-font-size",t.style.fontSize.toString()),t.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,l.$$)("*[data-font-size]",this.area).forEach(t=>{let e=(0,l.attr)(t,"data-font-size");e&&(t.style.fontSize=e,(0,l.attr)(t,"data-font-size",null))}),(0,l.$$)('font[size="7"]',this.area))){let{firstChild:e,lastChild:i}=t;if(e&&e===i&&(0,c.isMarker)(e)){a.Dom.unwrap(t);continue}e&&(0,c.isMarker)(e)&&a.Dom.before(t,e),i&&(0,c.isMarker)(i)&&a.Dom.after(t,i),yield t,a.Dom.unwrap(t)}}wrapInTag(t){let e=[];for(let i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&(0,c.isMarker)(i.firstChild))continue;(0,c.isFunction)(t)?t(i):e.push(a.Dom.replace(i,t,this.j.createInside))}finally{let t=i.parentNode;t&&(a.Dom.unwrap(i),a.Dom.isEmpty(t)&&a.Dom.unwrap(t))}return e}commitStyle(t){(0,u.assert)((0,l.size)(t)>0,"Need to pass at least one option"),new d.CommitStyle(t).apply(this.j)}splitSelection(t,e){if(!this.isCollapsed())return null;let i=this.createRange(),o=this.range;i.setStartBefore(t);let n=this.cursorOnTheRight(t,e),r=this.cursorOnTheLeft(t,e),l=this.j.createInside.element("br"),c=this.j.createInside.fake(),h=c.cloneNode();try{if(n||r){e?a.Dom.before(e,l):a.Dom.safeInsertNode(o,l);let t=(t,e)=>{let i=e(t);for(;i;){let t=e(i);if(i&&(a.Dom.isTag(i,"br")||a.Dom.isEmptyTextNode(i)))a.Dom.safeRemove(i);else break;i=t}};t(l,t=>t.nextSibling),t(l,t=>t.previousSibling),a.Dom.after(l,h),a.Dom.before(l,c),n?(i.setEndBefore(l),o.setEndBefore(l)):(i.setEndAfter(l),o.setEndAfter(l))}else i.setEnd(o.startContainer,o.startOffset);let d=i.extractContents(),f=t=>a.Dom.each(t,t=>a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t));(0,u.assert)(t.parentNode,"Splitting fails");try{if(f(d),f(t),t.parentNode.insertBefore(d,t),!e&&n&&l?.parentNode){let t=this.createRange();t.setStartBefore(l),this.selectRange(t)}}catch(t){if(!s.IS_PROD)throw t}let p=t=>{t?.parentNode?.firstChild===t?.parentNode?.lastChild&&t?.parentNode?.appendChild(l.cloneNode())};p(c),p(h)}finally{a.Dom.safeRemove(c),a.Dom.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:t}=this,e=t.cloneRange();if(!a.Dom.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;let i=e=>{let i=this.j.createInside.fake(),o=t.cloneRange();return o.collapse(e),a.Dom.safeInsertNode(o,i),(0,h.moveTheNodeAlongTheEdgeOutward)(i,e,this.j.editor),i},o=i(!0),n=i(!1);e.setStartAfter(o),e.setEndBefore(n);let s=a.Dom.findSibling(o,!1),r=a.Dom.findSibling(n,!0);if(s!==r){let t=a.Dom.isElement(s)&&a.Dom.isOrContains(s,n),i=!t&&a.Dom.isElement(r)&&a.Dom.isOrContains(r,o);if(t||i){let i=t?s:r,l=i;for(;a.Dom.isElement(i);)(i=t?i.firstElementChild:i.lastElementChild)&&(t?a.Dom.isOrContains(i,n):a.Dom.isOrContains(i,o))&&(l=i);t?e.setStart(l,0):e.setEnd(l,l.childNodes.length)}}if(this.selectRange(e),a.Dom.safeRemove(o,n),this.isCollapsed())throw(0,l.error)("Selection is collapsed");return this}constructor(t){(0,o._)(this,"jodit",void 0),this.jodit=t,t.e.on("removeMarkers",()=>{this.removeMarkers()})}}(0,n.__decorate)([r.autobind],p.prototype,"createRange",null),(0,n.__decorate)([r.autobind],p.prototype,"focus",null),(0,n.__decorate)([r.autobind],p.prototype,"setCursorAfter",null),(0,n.__decorate)([r.autobind],p.prototype,"setCursorBefore",null),(0,n.__decorate)([r.autobind],p.prototype,"setCursorIn",null)},98711:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},98740:function(t,e,i){"use strict";i.d(e,{hasBrowserColorPicker:function(){return n}});var o=i(81937);function n(){let t=!0;try{let e=o.globalDocument.createElement("input");e.type="color",e.value="!",t="color"===e.type&&"!"!==e.value}catch(e){t=!1}return t}},98792:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(28077),a=i(91206);i(60162);class l extends a.Plugin{afterInit(t){t.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(t,e,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===t?"ul":"ol",attributes:{style:{listStyleType:i??null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"ul",group:"list"},{name:"ol",group:"list"}])}}(0,n.__decorate)([s.autobind],l.prototype,"onCommand",null),r.pluginSystem.add("orderedList",l)},98803:function(t,e,i){"use strict";i.d(e,{Table:function(){return d}});var o=i(25045),n=i(31635),s=i(16964),r=i(81937),a=i(84839),l=i(27795),c=i(28077),u=i(65946);let h=new WeakMap;class d extends s.ViewComponent{className(){return"Table"}__recalculateStyles(){let t=(0,c.getContainer)(this.j,d,"style",!0),e=[];this.selected.forEach(t=>{let i=(0,u.cssPath)(t);i&&e.push(i)}),t.innerHTML=e.length?e.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();let e=l.Dom.closest(t,"table",this.j.editor);if(e){let i=d.__selectedByTable.get(e)||new Set;i.add(t),d.__selectedByTable.set(e,i)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();let e=l.Dom.closest(t,"table",this.j.editor);if(e){let i=d.__selectedByTable.get(e);i&&(i.delete(t),i.size||d.__selectedByTable.delete(e))}}getAllSelectedCells(){return(0,u.toArray)(this.selected)}static __getSelectedCellsByTable(t){let e=d.__selectedByTable.get(t);return e?(0,u.toArray)(e):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return d.__getRowsCount(t)}static __getColumnsCount(t){return d.__formalMatrix(t).reduce((t,e)=>Math.max(t,e.length),0)}getColumnsCount(t){return d.__getColumnsCount(t)}static __formalMatrix(t,e){let i=[[]],o=(0,u.toArray)(t.rows),n=(t,o)=>{void 0===i[o]&&(i[o]=[]);let n=t.colSpan,s=t.rowSpan,r,a,l=0;for(;i[o][l];)l+=1;for(a=0;s>a;a+=1)for(r=0;r<n;r+=1){if(void 0===i[o+a]&&(i[o+a]=[]),e&&!1===e(t,o+a,l+r,n,s))return!1;i[o+a][l+r]=t}};for(let t=0;t<o.length;t+=1){let e=(0,u.toArray)(o[t].cells);for(let o=0;o<e.length;o+=1)if(!1===n(e[o],t))return i}return i}formalMatrix(t,e){return d.__formalMatrix(t,e)}static __formalCoordinate(t,e,i=!1){let o=0,n=0,s=1,r=1;return d.__formalMatrix(t,(t,a,l,c,u)=>{if(e===t)return o=a,n=l,s=c||1,r=u||1,i&&(n+=(c||1)-1,o+=(u||1)-1),!1}),[o,n,s,r]}formalCoordinate(t,e,i=!1){return d.__formalCoordinate(t,e,i)}static __appendRow(t,e,i,o){let n;if(e)n=e.cloneNode(!0),(0,u.$$)("td,th",e).forEach(t=>{let e=(0,u.attr)(t,"rowspan");if(e&&parseInt(e,10)>1){let i=parseInt(e,10)-1;(0,u.attr)(t,"rowspan",i>1?i:null)}}),(0,u.$$)("td,th",n).forEach(t=>{t.innerHTML=""});else{let e=d.__getColumnsCount(t);n=o.element("tr");for(let t=0;t<e;t+=1)n.appendChild(o.element("td"))}i&&e&&e.nextSibling?e.parentNode&&e.parentNode.insertBefore(n,e.nextSibling):!i&&e?e.parentNode&&e.parentNode.insertBefore(n,e):(t.getElementsByTagName("tbody")?.[0]||t).appendChild(n)}appendRow(t,e,i){return d.__appendRow(t,e,i,this.j.createInside)}static __removeRow(t,e){let i,o=d.__formalMatrix(t),n=t.rows[e];o[e].forEach((s,r)=>{if(i=!1,e-1>=0&&o[e-1][r]===s)i=!0;else if(o[e+1]&&o[e+1][r]===s){if(s.parentNode===n&&s.parentNode.nextSibling){i=!0;let n=r+1;for(;o[e+1][n]===s;)n+=1;let a=l.Dom.next(s.parentNode,t=>l.Dom.isTag(t,"tr"),t);a&&(o[e+1][n]?a.insertBefore(s,o[e+1][n]):a.appendChild(s))}}else l.Dom.safeRemove(s);if(i&&(s.parentNode===n||s!==o[e][r-1])){let t=s.rowSpan;(0,u.attr)(s,"rowspan",t-1>1?t-1:null)}}),l.Dom.safeRemove(n)}removeRow(t,e){return d.__removeRow(t,e)}appendColumn(t,e,i=!0){let o=d.__formalMatrix(t);if(!i&&l.Dom.isCell(e.previousElementSibling))return this.appendColumn(t,e.previousElementSibling,!0);let n=i?e.cellIndex+((e.colSpan||1)-1):e.cellIndex,s=i?n+1:n;for(let t=0;t<o.length;){let e=o[t];if(e[n]!==e[s]||n===s){let t=this.j.createInside.element("td");i?l.Dom.after(e[n],t):l.Dom.before(e[n],t),e[n].rowSpan>1&&(t.rowSpan=e[n].rowSpan)}else e[n].colSpan+=1;t+=e[n].rowSpan||1}}static __removeColumn(t,e){let i,o=d.__formalMatrix(t);o.forEach((t,n)=>{let s=t[e];if(i=!1,e-1>=0&&o[n][e-1]===s||e+1<t.length&&o[n][e+1]===s?i=!0:l.Dom.safeRemove(s),i&&(n-1<0||s!==o[n-1][e])){let t=s.colSpan;(0,u.attr)(s,"colspan",t-1>1?(t-1).toString():null)}})}removeColumn(t,e){return d.__removeColumn(t,e)}static __getSelectedBound(t,e){let i,o,n,s=[[1/0,1/0],[0,0]],r=d.__formalMatrix(t);for(i=0;i<r.length;i+=1)for(o=0;r[i]&&o<r[i].length;o+=1)e.includes(r[i][o])&&(s[0][0]=Math.min(i,s[0][0]),s[0][1]=Math.min(o,s[0][1]),s[1][0]=Math.max(i,s[1][0]),s[1][1]=Math.max(o,s[1][1]));for(i=s[0][0];i<=s[1][0];i+=1)for(n=1,o=s[0][1];o<=s[1][1];o+=1){for(;r[i]&&r[i][o-n]&&r[i][o]===r[i][o-n];)s[0][1]=Math.min(o-n,s[0][1]),s[1][1]=Math.max(o-n,s[1][1]),n+=1;for(n=1;r[i]&&r[i][o+n]&&r[i][o]===r[i][o+n];)s[0][1]=Math.min(o+n,s[0][1]),s[1][1]=Math.max(o+n,s[1][1]),n+=1;for(n=1;r[i-n]&&r[i][o]===r[i-n][o];)s[0][0]=Math.min(i-n,s[0][0]),s[1][0]=Math.max(i-n,s[1][0]),n+=1;for(n=1;r[i+n]&&r[i][o]===r[i+n][o];)s[0][0]=Math.min(i+n,s[0][0]),s[1][0]=Math.max(i+n,s[1][0]),n+=1}return s}getSelectedBound(t,e){return d.__getSelectedBound(t,e)}static __normalizeTable(t){let e=[],i=d.__formalMatrix(t);d.__removeExtraColspans(i,e),d.__removeExtraRowspans(i,e);for(let t=0;t<i.length;t+=1)for(let e=0;e<i[t].length;e+=1)void 0!==i[t][e]&&(i[t][e].hasAttribute("rowspan")&&1===i[t][e].rowSpan&&(0,u.attr)(i[t][e],"rowspan",null),i[t][e].hasAttribute("colspan")&&1===i[t][e].colSpan&&(0,u.attr)(i[t][e],"colspan",null),i[t][e].hasAttribute("class")&&!(0,u.attr)(i[t][e],"class")&&(0,u.attr)(i[t][e],"class",null));d.__unmark(e)}static __removeExtraColspans(t,e){for(let i=0;i<t[0].length;i+=1){let o=1e6,n=!1;for(let e=0;e<t.length;e+=1)if(void 0!==t[e][i]){if(t[e][i].colSpan<2){n=!0;break}o=Math.min(o,t[e][i].colSpan)}if(!n)for(let n=0;n<t.length;n+=1)void 0!==t[n][i]&&d.__mark(t[n][i],"colspan",t[n][i].colSpan-o+1,e)}}static __removeExtraRowspans(t,e){let i=0,o=0;for(i=0;i<t.length;i+=1){let n=1e6,s=!1;for(o=0;o<t[i].length;o+=1)if(void 0!==t[i][o]){if(t[i][o].rowSpan<2){s=!0;break}n=Math.min(n,t[i][o].rowSpan)}if(!s)for(o=0;o<t[i].length;o+=1)void 0!==t[i][o]&&d.__mark(t[i][o],"rowspan",t[i][o].rowSpan-n+1,e)}}normalizeTable(t){return d.__normalizeTable(t)}static __mergeSelected(t,e){let i=[],o=d.__getSelectedBound(t,d.__getSelectedCellsByTable(t)),n=0,s=null,a=0,c=0,h=0,p=new Set,m=[];o&&(o[0][0]-o[1][0]||o[0][1]-o[1][1])&&(d.__formalMatrix(t,(t,r,l,g,_)=>{r>=o[0][0]&&r<=o[1][0]&&l>=o[0][1]&&l<=o[1][1]&&(p.has(t)||(p.add(t),r===o[0][0]&&t.style.width&&(n+=t.offsetWidth),""!==(0,u.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(t.innerHTML),g>1&&(c+=g-1),_>1&&(h+=_-1),s?(d.__mark(t,"remove",1,m),f(e).removeSelection(t)):(s=t,a=l)))}),c=o[1][1]-o[0][1]+1,h=o[1][0]-o[0][0]+1,s&&(c>1&&d.__mark(s,"colspan",c,m),h>1&&d.__mark(s,"rowspan",h,m),n&&(d.__mark(s,"width",(n/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",m),a&&d.__setColumnWidthByDelta(t,a,0,!0,m)),s.innerHTML=i.join("<br/>"),f(e).addSelection(s),p.delete(s),d.__unmark(m),d.__normalizeTable(t),(0,u.toArray)(t.rows).forEach(t=>{t.cells.length||l.Dom.safeRemove(t)})))}mergeSelected(t){return d.__mergeSelected(t,this.j)}static __splitHorizontal(t,e){let i,o,n,s,r,a=[];d.__getSelectedCellsByTable(t).forEach(c=>{(o=e.createInside.element("td")).appendChild(e.createInside.element("br")),n=e.createInside.element("tr"),i=d.__formalCoordinate(t,c),c.rowSpan<2?(d.__formalMatrix(t,(t,e,o)=>{i[0]===e&&i[1]!==o&&t!==c&&d.__mark(t,"rowspan",t.rowSpan+1,a)}),l.Dom.after(l.Dom.closest(c,"tr",t),n),n.appendChild(o)):(d.__mark(c,"rowspan",c.rowSpan-1,a),d.__formalMatrix(t,(e,o,n)=>{o>i[0]&&o<i[0]+c.rowSpan&&i[1]>n&&e.parentNode.rowIndex===o&&(r=e),i[0]<o&&e===c&&(s=t.rows[o])}),r?l.Dom.after(r,o):s.insertBefore(o,s.firstChild)),c.colSpan>1&&d.__mark(o,"colspan",c.colSpan,a),d.__unmark(a),f(e).removeSelection(c)}),this.__normalizeTable(t)}splitHorizontal(t){return d.__splitHorizontal(t,this.j)}static __splitVertical(t,e){let i,o,n,s=[];d.__getSelectedCellsByTable(t).forEach(a=>{i=d.__formalCoordinate(t,a),a.colSpan<2?d.__formalMatrix(t,(t,e,o)=>{i[1]===o&&i[0]!==e&&t!==a&&d.__mark(t,"colspan",t.colSpan+1,s)}):d.__mark(a,"colspan",a.colSpan-1,s),(o=e.createInside.element("td")).appendChild(e.createInside.element("br")),a.rowSpan>1&&d.__mark(o,"rowspan",a.rowSpan,s);let c=a.offsetWidth;l.Dom.after(a,o),n=c/t.offsetWidth/2,d.__mark(a,"width",(100*n).toFixed(r.ACCURACY)+"%",s),d.__mark(o,"width",(100*n).toFixed(r.ACCURACY)+"%",s),d.__unmark(s),f(e).removeSelection(a)}),d.__normalizeTable(t)}splitVertical(t){return d.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,e,i,o,n){let s=d.__formalMatrix(t),a=0;for(let o=0;o<s.length;o+=1){let l=s[o][e];if(l.colSpan>1&&s.length>1)continue;let c=(l.offsetWidth+i)/t.offsetWidth*100;d.__mark(l,"width",c.toFixed(r.ACCURACY)+"%",n),a=o;break}for(let t=a+1;t<s.length;t+=1){let i=s[t][e];d.__mark(i,"width",null,n)}o||d.__unmark(n)}setColumnWidthByDelta(t,e,i,o,n){return d.__setColumnWidthByDelta(t,e,i,o,n)}static __mark(t,e,i,o){o.push(t);let n=h.get(t)??{};n[e]=void 0===i?1:i,h.set(t,n)}static __unmark(t){t.forEach(t=>{let e=h.get(t);e&&(Object.keys(e).forEach(i=>{let o=e[i];switch(i){case"remove":l.Dom.safeRemove(t);break;case"rowspan":(0,u.attr)(t,"rowspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"colspan":(0,u.attr)(t,"colspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"width":null==o?(t.style.removeProperty("width"),(0,u.attr)(t,"style")||(0,u.attr)(t,"style",null)):t.style.width=o.toString()}delete e[i]}),h.delete(t))})}constructor(...t){super(...t),(0,o._)(this,"selected",new Set)}}(0,o._)(d,"__selectedByTable",new WeakMap),(0,n.__decorate)([(0,a.debounce)()],d.prototype,"__recalculateStyles",null);let f=t=>t.getInstance("Table",t.o)},98831:function(t,e,i){"use strict";i.d(e,{normalizeSize:function(){return o}});let o=(t,e)=>/^[0-9]+$/.test(t.toString())?t+e:t.toString()},98838:function(t,e,i){"use strict";i.d(e,{UIForm:function(){return u}});var o=i(31635),n=i(80251),s=i(91672),r=i(93640),a=i(65273),l=i(49999),c=i(63468);class u extends c.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let t of this.allChildren.filter(t=>n.Component.isInstanceOf(t,a.UIInput)))if(!t.validate())return!1;for(let t of this.allChildren.filter(t=>n.Component.isInstanceOf(t,l.UISelect)))if(!t.validate())return!1;return!0}onSubmit(t){return this.j.e.on(this.container,"submit",()=>{let e=this.allChildren.filter(t=>n.Component.isInstanceOf(t,a.UIInput));return!!this.validate()&&(t(e.reduce((t,e)=>(t[e.state.name]=e.value,t),{})),!1)}),this}createContainer(){let t=this.j.c.element("form");return t.classList.add(this.componentName),(0,r.attr)(t,"dir",this.j.o.direction||"auto"),(0,r.attr)(t,"novalidate",""),t}constructor(...t){super(...t),this.options?.className&&this.container.classList.add(this.options?.className)}}u=(0,o.__decorate)([s.component],u)},98964:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},98988:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(28077),l=i(57821),c=i(91206),u=i(4099);i(47670);class h extends c.Plugin{afterInit(t){this.proxyEventsList.forEach(e=>{t.e.on(e+".select",this.onStartSelection)})}beforeDestruct(t){this.proxyEventsList.forEach(e=>{t.e.on(e+".select",this.onStartSelection)})}onStartSelection(t){let{j:e}=this,i,o=t.target;for(;void 0===i&&o&&o!==e.editor;)i=e.e.fire((0,l.camelCase)(t.type+"_"+o.nodeName.toLowerCase()),o,t),o=o.parentElement;"click"===t.type&&void 0===i&&o===e.editor&&e.e.fire(t.type+"Editor",o,t)}onOutsideClick(t){let e=t.target;!r.Dom.up(e,t=>t===this.j.editor)&&(u.UIElement.closestElement(e,u.Popup)||this.j.e.fire("outsideClick",t))}beforeCommandCut(){let{s:t}=this.j;if(!t.isCollapsed()){let e=t.current();e&&r.Dom.isOrContains(this.j.editor,e)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:t}=this.j;return t.focus(),t.select(this.j.editor,!0),t.expandSelection(),!1}onTripleClickNormalizeSelection(t){if(3!==t.detail||!this.j.o.select.normalizeTripleClick)return;let{s:e}=this.j,{startContainer:i,startOffset:o}=e.range;0===o&&r.Dom.isText(i)&&e.select(r.Dom.closest(i,r.Dom.isBlock,this.j.editor)||i,!0)}onCopyNormalizeSelectionBound(t){let{s:e,editor:i,o}=this.j;!(!o.select.normalizeSelectionBeforeCutAndCopy||e.isCollapsed())&&(!t||t.isTrusted&&r.Dom.isNode(t.target)&&r.Dom.isOrContains(i,t.target))&&this.jodit.s.expandSelection()}constructor(...t){super(...t),(0,o._)(this,"proxyEventsList",["click","mousedown","touchstart","mouseup","touchend"])}}(0,n.__decorate)([s.autobind],h.prototype,"onStartSelection",null),(0,n.__decorate)([(0,s.watch)("ow:click")],h.prototype,"onOutsideClick",null),(0,n.__decorate)([(0,s.watch)([":beforeCommandCut"])],h.prototype,"beforeCommandCut",null),(0,n.__decorate)([(0,s.watch)([":beforeCommandSelectall"])],h.prototype,"beforeCommandSelectAll",null),(0,n.__decorate)([(0,s.watch)([":click"])],h.prototype,"onTripleClickNormalizeSelection",null),(0,n.__decorate)([(0,s.watch)([":copy",":cut"])],h.prototype,"onCopyNormalizeSelectionBound",null),a.pluginSystem.add("select",h)},99436:function(t,e,i){"use strict";function o(t){return t.length?t[0].toUpperCase()+t.substring(1):""}i.d(e,{ucfirst:function(){return o}})},99732:function(t,e,i){"use strict";i.d(e,{isInt:function(){return s}});var o=i(70222),n=i(85932);function s(t){return(0,n.isString)(t)&&(0,o.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},99876:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>'}},r={};function a(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}};return s[t](i,i.exports,a),i.exports}a.m=s,e=[],a.O=function(t,i,o,n){if(i){n=n||0;for(var s=e.length;s>0&&e[s-1][2]>n;s--)e[s]=e[s-1];e[s]=[i,o,n];return}for(var r=1/0,s=0;s<e.length;s++){for(var i=e[s][0],o=e[s][1],n=e[s][2],l=!0,c=0;c<i.length;c++)(!1&n||r>=n)&&Object.keys(a.O).every(function(t){return a.O[t](i[c])})?i.splice(c--,1):(l=!1,n<r&&(r=n));if(l){e.splice(s--,1);var u=o();void 0!==u&&(t=u)}}return t},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i={521:0},a.O.j=function(t){return 0===i[t]},o=function(t,e){var o,n,s=e[0],r=e[1],l=e[2],c=0;if(s.some(function(t){return 0!==i[t]})){for(o in r)a.o(r,o)&&(a.m[o]=r[o]);if(l)var u=l(a)}for(t&&t(e);c<s.length;c++)n=s[c],a.o(i,n)&&i[n]&&i[n][0](),i[n]=0;return a.O(u)},(n=self.webpackChunkjodit=self.webpackChunkjodit||[]).forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n));var l={};return!function(){"use strict";a.r(l),a.d(l,{CommitMode:function(){return u},Jodit:function(){return t.Jodit}});var t=a(73302),e=a(28686),i=a(81937),o=a(84839),n=a(60936),s=a(13564),r=a(89317);a(93637),Object.keys(i).forEach(e=>{t.Jodit[e]=i[e]});let c=t=>"__esModule"!==t;Object.keys(s).filter(c).forEach(t=>{n.Icon.set(t.replace("_","-"),s[t])}),Object.keys(n).filter(c).forEach(i=>{let o=n[i],s=(0,e.isFunction)(o.prototype?.className)?o.prototype.className():i;(0,e.isString)(s)&&(t.Jodit.modules[s]=o)}),Object.keys(o).filter(c).forEach(e=>{t.Jodit.decorators[e]=o[e]}),["Confirm","Alert","Prompt"].forEach(e=>{t.Jodit[e]=n[e]}),Object.keys(r.default).filter(c).forEach(e=>{t.Jodit.lang[e]=r.default[e]});class u{}}(),l=a.O(l)}()});
267
+ </div>`),(0,s.css)(e.dialog,{minHeight:200,minWidth:420}),e.open(!0,!0)},tooltip:"About Jodit",mode:o.MODE_SOURCE+o.MODE_WYSIWYG},n.pluginSystem.add("about",function(t){t.registerButton({name:"about",group:"info"})}),r.Icon.set("about",c())},94561:function(t,e,i){"use strict";i.d(e,{removeEmptyTextNode:function(){return n}});var o=i(23211);function n(t,e,i,n,s,r){return o.Dom.isText(e)&&!e.nodeValue?(e===r&&t.s.isCollapsed()&&t.s.setCursorAfter(e),o.Dom.safeRemove(e),!0):i}},94806:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},94925:function(t,e,i){"use strict";i.d(e,{Uploader:function(){return c}});var o=i(25045),n=i(16964),s=i(81937),r=i(65946),a=i(5266),l=i(11981);i(40013);class c extends n.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,e,i){let o=()=>{t.classList.remove("jodit_drag_hover")},n=this,r=t=>{let r,a,c,u=t.clipboardData,h=t=>{a&&(t.append("extension",c),t.append("mimetype",a.type))};if(!s.IS_IE&&(0,l.hasFiles)(u))return(0,l.sendFiles)(n,u.files,e,i).finally(o),!1;if(s.IS_IE&&!s.IS_ES_NEXT)return(0,l.processOldBrowserDrag)(n,u,e,i,o);if((0,l.hasItems)(u)){let{items:s}=u;for(r=0;r<s.length;r+=1)if("file"===s[r].kind&&"image/png"===s[r].type){if(a=s[r].getAsFile()){let t=a.type.match(/\/([a-z0-9]+)/i);c=t[1]?t[1].toLowerCase():"",(0,l.sendFiles)(n,[a],e,i,h).finally(o)}t.preventDefault();break}}};n.j&&n.j.editor!==t?n.j.e.on(t,"paste",r):n.j.e.on("beforePaste",r),this.attachEvents(t,e,i,o)}attachEvents(t,e,i,o){let n=this;n.j.e.on(t,"dragend dragover dragenter dragleave drop",t=>{t.preventDefault()}).on(t,"dragover",e=>{((0,l.hasFiles)(e.dataTransfer)||(0,l.hasItems)(e.dataTransfer))&&(t.classList.add("jodit_drag_hover"),e.preventDefault())}).on(t,"dragend dragleave",e=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(e.dataTransfer)&&e.preventDefault()}).on(t,"drop",s=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(s.dataTransfer)&&(s.preventDefault(),s.stopImmediatePropagation(),(0,l.sendFiles)(n,s.dataTransfer.files,e,i).finally(o))});let s=t.querySelector("input[type=file]");s&&n.j.e.on(s,"change",()=>{(0,l.sendFiles)(n,s.files,e,i).then(()=>{s.value="",/safari/i.test(navigator.userAgent)||(s.type="",s.type="file")}).finally(o)})}uploadRemoteImage(t,e,i){let o=this,{o:n}=o,s=(0,r.isFunction)(i)?i:n.defaultHandlerError;(0,l.send)(o,{action:"fileUploadRemote",url:t}).then(t=>{n.isSuccess.call(o,t)?((0,r.isFunction)(e)?e:n.defaultHandlerSuccess).call(o,n.process.call(o,t)):s.call(o,(0,r.error)(n.getMessage.call(o,t)))}).catch(t=>s.call(o,t))}upload(t){return this.async.promise((e,i)=>{(0,l.sendFiles)(this,t,e,i)})}destruct(){this.setStatus(n.STATUSES.beforeDestruct);let t=l.ajaxInstances.get(this);t&&(t.forEach(t=>{try{t.destruct()}catch{}}),t.clear()),super.destruct()}constructor(t,e){super(t),(0,o._)(this,"path",""),(0,o._)(this,"source","default"),(0,o._)(this,"options",void 0),this.options=(0,r.ConfigProto)(e||{},(0,r.ConfigProto)(a.Config.defaultOptions.uploader,(0,r.isJoditObject)(t)?t.o.uploader:{}))}}},94978:function(t,e,i){"use strict";i.d(e,{AceEditor:function(){return a}});var o=i(25045),n=i(81937),s=i(65946),r=i(94193);class a extends r.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){let t=this.instance.session.getLength(),e=[],i=0;for(let o=0;t>o;o++)i+=this.getLastColumnIndex(o),o>0&&(i+=1),e[o]=i;return e}getRowColumnIndices(t){let e=this.getLastColumnIndices();if(t<=e[0])return{row:0,column:t};let i=1;for(let o=1;o<e.length;o++)t>e[o]&&(i=o+1);let o=t-e[i-1]-1;return{row:i,column:o}}setSelectionRangeIndices(t,e){let i=this.getRowColumnIndices(t),o=this.getRowColumnIndices(e);this.instance.getSelection().setSelectionRange({start:i,end:o})}getIndexByRowColumn(t,e){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+e}init(t){let e=()=>{if(void 0!==this.instance||!this.aceExists())return;let e=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(e);let i=t.ow.ace;this.instance=i.edit(e),"rtl"===t.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==n.MODE_WYSIWYG&&this.setValue(this.getValue());let o=this.j.async.throttle(()=>{if(t.isInDestruct||t.getMode()===n.MODE_WYSIWYG)return;let e=this.instance.isFocused();"auto"!==t.o.height?this.instance.setOption("maxLines",t.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),e&&this.focus()},2*this.j.defaultTimeout);t.e.on(t,"resize",o).on("afterResize afterSetMode",o),o(),this.onReady()};t.e.on("afterSetMode",()=>{(t.getRealMode()===n.MODE_SOURCE||t.getMode()===n.MODE_SPLIT)&&(this.fromWYSIWYG(),e())}),e(),this.aceExists()||(0,s.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then(()=>{t.isInDestruct||e()}).catch(()=>null)}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){let e=this.instance.selection.getCursor(),i=this.instance.session.insert(e,t);this.instance.selection.setRange({start:e,end:i},!1)}setSelectionRange(t,e){this.setSelectionRangeIndices(t,e)}setPlaceHolder(t){}replaceUndoManager(){let{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){t.redo()}})}constructor(...t){super(...t),(0,o._)(this,"className","jodit_ace_editor"),(0,o._)(this,"proxyOnBlur",t=>{this.j.e.fire("blur",t)}),(0,o._)(this,"proxyOnFocus",t=>{this.j.e.fire("focus",t)}),(0,o._)(this,"proxyOnMouseDown",t=>{this.j.e.fire("mousedown",t)})}}},95032:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},95134:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},95320:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>'},95399:function(t,e,i){"use strict";i.d(e,{UITooltip:function(){return p}});var o=i(25045),n=i(31635),s=i(16964),r=i(84839),a=i(27795),l=i(28077),c=i(23599),u=i(93640),h=i(96007);let d=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],f=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"];class p extends h.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(t){(0,l.getContainer)(this.j,p).appendChild(this.container),this.__attachedContainers.add(t),this.__attachedContainers.add(this.j.container),this.j.e.on(t,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(t,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let t=this.j;t.e.on(t.ow,d,this.__hide).on(f,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let t=this.j;t.e.off(t.ow,d,this.__hide).off(f,this.__hide)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!a.Dom.isHTMLElement(t.target))return;let e=(0,u.attr)(t.target,"aria-label");if(!e||(0,u.attr)(t.target,"disabled")||!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;let i=t.target;this.__open(()=>{let t=(0,c.position)(i);return{x:t.left+t.width/2,y:t.top+t.height}},e)}__open(t,e){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let i=this.j.o.showTooltipDelay||this.j.defaultTimeout;i?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(t,e),i):this.__show(t,e)}__show(t,e){this.setMod("visible",!0),this.getElm("content").innerHTML=e;let i=t();(0,u.css)(this.container,{left:i.x,top:i.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",(0,u.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(t=>{this.j.e.off(t,"mouseenter.tooltip",this.__onMouseEnter).off(t,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(t){super(t),(0,o._)(this,"__isOpened",!1),(0,o._)(this,"__attachedContainers",new Set),(0,o._)(this,"__listenClose",!1),(0,o._)(this,"__currentTarget",null),(0,o._)(this,"__delayShowTimeout",0),(0,o._)(this,"__hideTimeout",0),t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||(this.j.e.on("getContainer",t=>{this.__onAttach(t)}),t.hookStatus(s.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}}(0,n.__decorate)([r.autobind],p.prototype,"__onMouseLeave",null),(0,n.__decorate)([r.autobind],p.prototype,"__onMouseEnter",null),(0,n.__decorate)([r.autobind],p.prototype,"__hide",null),(0,n.__decorate)([r.autobind],p.prototype,"__hideDelay",null),p=(0,n.__decorate)([r.component],p)},95436:function(t,e,i){"use strict";i.d(e,{processOldBrowserDrag:function(){return c}});var o=i(81937),n=i(27795),s=i(28077),r=i(65946),a=i(23112),l=i(46533);function c(t,e,i,c,u){if(e&&(!e.types.length||e.types[0]!==o.TEXT_PLAIN)){let e=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,s.getContainer)(t.j,t.constructor).appendChild(e);let o=(0,r.isJoditObject)(t.j)?t.j.s.save():null;e.focus(),t.j.async.setTimeout(()=>{let s=e.firstChild;if(n.Dom.safeRemove(e),s&&s.hasAttribute("src")){let e=(0,r.attr)(s,"src")||"";o&&(0,r.isJoditObject)(t.j)&&t.j.s.restore(),(0,l.sendFiles)(t,[(0,a.dataURItoBlob)(e)],i,c).finally(u)}},t.j.defaultTimeout)}}},95559:function(t,e,i){"use strict";i.d(e,{allowAttributes:function(){return n}});var o=i(23211);function n(t,e,i,n){if(n&&o.Dom.isElement(e)&&!0!==n[e.nodeName]){let t=e.attributes;if(t&&t.length){let o=[];for(let i=0;i<t.length;i+=1){let s=n[e.nodeName][t[i].name];s&&(!0===s||s===t[i].value)||o.push(t[i].name)}o.length&&(i=!0),o.forEach(t=>{e.removeAttribute(t)})}}return i}},95971:function(t,e,i){"use strict";i.d(e,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var o=i(18073),n=i(93640),s=i(28712),r=i(9703);function a(t,e){return!((t.attributes.length||(0,o.size)(e))&&(0,o.size)(e))||((0,s.assert)(e,"Attrs must be a non-empty object"),Object.keys(e).every(i=>"class"===i||"className"===i?t.classList.contains(e[i]):"style"===i?(0,r.hasSameStyle)(t,e[i]):(0,n.attr)(t,i)===e[i]))}function l(t,e){return t.attributes.length===e.attributes.length&&Array.from(t.attributes).every(t=>e.hasAttribute(t.name)&&e.getAttribute(t.name)===t.value)}},96007:function(t,e,i){"use strict";i.d(e,{UIElement:function(){return d}});var o=i(25045),n=i(31635),s=i(16964),r=i(24968),a=i(23211),l=i(85932),c=i(23183),u=i(81987),h=i(29434);class d extends s.ViewComponent{get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(t){let e=this.parentElement;for(;e;)t(e),e=e.parentElement;return this}updateParentElement(t){return this.__parentElement?.updateParentElement(t),this}get(t,e){return super.get(t,e)||this.getElm(t)}closest(t){let e="object"==typeof t?e=>e===t:e=>s.Component.isInstanceOf(e,t),i=this.__parentElement;for(;i;){if(e(i))return i;i=!i.parentElement&&i.container.parentElement?d.closestElement(i.container.parentElement,d):i.parentElement}return null}static closestElement(t,e){let i=a.Dom.up(t,t=>{if(t){let{component:i}=t;return i&&s.Component.isInstanceOf(i,e)}return!1});return i?i?.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){let e=this.render(t);if((0,l.isString)(e)){let t=this.parseTemplate(e);return t.classList.add(this.componentName),t}return e}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,(t,e)=>h.Icon.get(e)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(t,e)=>this.i18n(e)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(t,e){super(t),(0,o._)(this,"container",void 0),(0,o._)(this,"name",""),(0,o._)(this,"__parentElement",null),(0,o._)(this,"mods",{}),this.container=this.createContainer(e),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}}d=(0,n.__decorate)([(0,r.derive)(u.Mods,c.Elms)],d)},96127:function(t,e,i){"use strict";i.d(e,{ApplyStyle:function(){return r}});var o=i(51640),n=i(98394),s=i(78462);function r(t,e){let{s:i,editor:r}=t;r.firstChild?.normalize();let a=i.fakes(),l=t.s.wrapInTagGen(a),c=l.next();if(c.done)return;let u={collapsed:i.isCollapsed(),mode:n.INITIAL,element:c.value,next:s.states.START,jodit:t,style:e};for(;c&&!c.done;){let t=new o.FiniteStateMachine(s.states.START,s.transactions);for(u.element=c.value;t.getState()!==s.states.END;)u=t.dispatch("exec",u);c=l.next()}i.restoreFakes(a)}},96340:function(t,e,i){"use strict";i.d(e,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},96608:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),o.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},96722:function(t,e,i){"use strict";i(5266).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},96730:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(28077),l=i(65946),c=i(91206);i(71693);var u=i(54308);class h extends c.Plugin{afterInit(t){}beforeDestruct(t){}processWordHTML(t,e,i){let{j:o}=this,{processPasteFromWord:n,askBeforePasteFromWord:s,defaultActionOnPasteFromWord:r,defaultActionOnPaste:a,pasteFromWordActionList:c}=o.o;return!!(n&&(0,l.isHtmlFromWord)(e))&&(s?(0,u.askInsertTypeDialog)(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",o=>{this.insertFromWordByType(t,e,o,i)},c):this.insertFromWordByType(t,e,r||a,i),!0)}insertFromWordByType(t,e,i,o){switch(i){case s.INSERT_AS_HTML:{e=(0,l.applyStyles)(e);let t=this.j.events?.fire("beautifyHTML",e);(0,l.isString)(t)&&(e=t);break}case s.INSERT_AS_TEXT:e=(0,l.cleanFromWord)(e);break;case s.INSERT_ONLY_TEXT:e=(0,l.stripTags)((0,l.cleanFromWord)(e))}(0,u.pasteInsertHtml)(t,this.j,e)}}(0,o._)(h,"requires",["paste"]),(0,n.__decorate)([(0,r.watch)(":processHTML")],h.prototype,"processWordHTML",null),a.pluginSystem.add("pasteFromWord",h)},96863:function(t,e,i){"use strict";var o=i(23211),n=i(62101),s=i(29434),r=i(5266),a=i(29348),l=i.n(a);s.Icon.set("paragraph",l()),r.Config.prototype.controls.paragraph={command:"formatBlock",value(t,e){let i=e.control,n=t.s.current(),s=o.Dom.closest(n,o.Dom.isBlock,t.editor);return s?.nodeName.toLowerCase()??i.data?.currentValue},update(t,e){let i=e.control;if(!t.s.current())return!1;let o=e.state.value,s=i.list;return(0,n.isPlainObject)(s)&&s[o.toString()]&&t.o.textIcons&&(e.state.text=s[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(t,e)=>e.state.value===e.control?.args?.[0],isActive:(t,e)=>e.state.value!==t.o.enter&&(0,n.isPlainObject)(e.control.list)&&!!e.control.list[e.state.value],childTemplate:(t,e,i)=>`<${e} style="margin:0;padding:0"><span>${t.i18n(i)}</span></${e}>`,tooltip:"Insert format block"}},97022:function(t,e,i){"use strict";i.d(e,{NUMBER_FIELDS_REG:function(){return n.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return n.normalizeCssNumericValue},normalizeCssValue:function(){return n.normalizeCssValue},normalizeKeyAliases:function(){return s.normalizeKeyAliases},normalizeLicense:function(){return r.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var o=i(77367),n=i(19147),s=i(27978),r=i(49663),a=i(18377),l=i(96340),c=i(98831),u=i(48009)},97110:function(t,e,i){"use strict";i.d(e,{wrapList:function(){return r}});var o=i(27795),n=i(51640),s=i(98394);function r(t,e,i){let r=i.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,e,t)??o.Dom.replace(e,"li",i.createInside),a=r.previousElementSibling,l=r.nextElementSibling,c=o.Dom.isTag(a,t.element)?a:null;return c??=o.Dom.isTag(l,t.element)?l:null,o.Dom.isList(c)&&(0,n.isSameAttributes)(c,t.options.attributes)||(c=i.createInside.element(t.element),(0,n.toggleAttributes)(t,c,i,s.INITIAL),o.Dom.before(r,c)),a===c?o.Dom.append(c,r):o.Dom.prepend(c,r),o.Dom.isTag(c.nextElementSibling,t.element)&&(0,n.elementsEqualAttributes)(c,c.nextElementSibling)&&(o.Dom.append(c,Array.from(c.nextElementSibling.childNodes)),o.Dom.safeRemove(c.nextElementSibling)),i.e.fire(`${s._PREFIX}AfterWrapList`,s.WRAP,c,t),c}},97228:function(t,e,i){"use strict";i.d(e,{defaultLanguage:function(){return s}});var o=i(81937),n=i(85932);let s=(t,e="en")=>"auto"!==t&&(0,n.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):e},97642:function(t,e,i){"use strict";i.d(e,{CamelCaseToKebabCase:function(){return r.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return n.fuzzySearchIndex},i18n:function(){return s.i18n},kebabCase:function(){return r.kebabCase},sprintf:function(){return s.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var o=i(57821),n=i(57626),s=i(18080),r=i(74264),a=i(3347),l=i(4040),c=i(99436)},97959:function(t,e,i){"use strict";i.d(e,{UIList:function(){return m}});var o=i(25045),n=i(31635),s=i(80251),r=i(84839),a=i(32328),l=i(53681),c=i(63468),u=i(35676),h=i(27987),d=i(2496),f=i(15982),p=i(40253);class m extends c.UIGroup{className(){return"UIList"}__onChangeMode(){this.setMod("mode",this.mode)}makeGroup(){return new c.UIGroup(this.jodit)}get buttons(){return this.allChildren.filter(t=>s.Component.isInstanceOf(t,l.UIButton))}getButtonsNames(){return this.buttons.map(t=>t instanceof l.UIButton&&t.state.name||"").filter(t=>""!==t)}setRemoveButtons(t){return this.removeButtons=t||[],this}build(t,e=null){let i;t=(0,a.splitArray)(t),this.clear();let o=!1,n=this.makeGroup();this.append(n),n.setMod("line",!0);let s=t=>{let s=null;switch(t.name){case`
268
+ `:(n=this.makeGroup()).setMod("line",!0),i=this.makeGroup(),n.append(i),this.append(n);break;case"|":o||(o=!0,s=new u.UISeparator(this.j));break;case"---":{i.setMod("before-spacer",!0);let t=new h.UISpacer(this.j);n.append(t),i=this.makeGroup(),n.append(i),o=!1;break}default:o=!1,s="select"===t.component?this.makeSelect(t,e):this.makeButton(t,e)}s&&(i||(i=this.makeGroup(),n.append(i)),i.append(s))},r=t=>!this.removeButtons.includes(t.name)&&(!t.isVisible||t.isVisible?.(this.j,t));return t.forEach(t=>{if((0,d.isButtonGroup)(t)){let e=t.buttons.filter(t=>t);e.length&&((i=this.makeGroup()).setMod("separated",!0).setMod("group",t.group),n.append(i),(0,p.getStrongControlTypes)(e,this.j.o.controls).filter(r).forEach(s))}else{i||(i=this.makeGroup(),n.append(i));let e=(0,f.getControlType)(t,this.j.o.controls);r(e)&&s(e)}}),this.update(),this}makeSelect(t,e){throw Error("Not implemented behaviour")}makeButton(t,e){return new l.UIButton(this.j,{name:t.name})}constructor(t){super(t),(0,o._)(this,"mode","horizontal"),(0,o._)(this,"removeButtons",[])}}(0,n.__decorate)([(0,r.watch)("mode"),(0,r.hook)("ready")],m.prototype,"__onChangeMode",null),m=(0,n.__decorate)([r.component],m)},98394:function(t,e,i){"use strict";i.d(e,{CHANGE:function(){return s},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return r},UNWRAP:function(){return n},WRAP:function(){return o},_PREFIX:function(){return c}});let o="wrap",n="unwrap",s="change",r="unset",a="initial",l="replace",c="commitStyle"},98595:function(t,e,i){"use strict";i.d(e,{Selection:function(){return p}});var o=i(25045),n=i(31635),s=i(81937),r=i(84839),a=i(23211),l=i(65946),c=i(28686),u=i(28712),h=i(7470),d=i(84578),f=i(42259);class p{get j(){return this.jodit}errorNode(t){if(!a.Dom.isNode(t))throw(0,l.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,c.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:t}=this,e=t?.rangeCount?t.getRangeAt(0):null;return!(!e||!a.Dom.isOrContains(this.area,e.startContainer))}createRange(t=!1){let e=this.doc.createRange();return t&&this.selectRange(e),e}remove(){let t=this.sel,e=this.current();if(t&&e)for(let e=0;e<t.rangeCount;e+=1)t.getRangeAt(e).deleteContents(),t.getRangeAt(e).collapse(!0)}clear(){this.sel?.rangeCount&&this.sel?.removeAllRanges()}removeNode(t){if(!a.Dom.isOrContains(this.j.editor,t,!0))throw(0,l.error)("Selection.removeNode can remove only editor's children");a.Dom.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,e){this.removeMarkers();try{let i=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let o=this.doc.caretPositionFromPoint(t,e);if(o)return i.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){let o=this.doc.caretRangeFromPoint(t,e);(0,u.assert)(o,"Incorrect caretRangeFromPoint behaviour"),i.setStart(o.startContainer,o.startOffset)}})(),i.collapse(!0),this.selectRange(i),!0}catch{}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,l.$$)("span[data-"+s.MARKER_CLASS+"]",this.area)}removeMarkers(){a.Dom.safeRemove.apply(null,this.markers)}marker(t=!1,e){let i=null;e&&(i=e.cloneRange()).collapse(t);let o=this.j.createInside.span();return o.id=s.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),o.style.lineHeight="0",o.style.display="none",a.Dom.markTemporary(o),(0,l.attr)(o,"data-"+s.MARKER_CLASS,t?"start":"end"),o.appendChild(this.j.createInside.text(s.INVISIBLE_SPACE)),i&&a.Dom.isOrContains(this.area,t?i.startContainer:i.endContainer)&&i.insertNode(o),o}restore(){let t=!1,e=t=>`span[data-${s.MARKER_CLASS}=${t?"start":"end"}]`,i=this.area.querySelector(e(!0)),o=this.area.querySelector(e(!1));if(i){if(t=this.createRange(),o)t.setStartAfter(i),a.Dom.safeRemove(i),t.setEndBefore(o),a.Dom.safeRemove(o);else{let e=i.previousSibling;a.Dom.isText(e)?t.setStart(e,e.nodeValue?e.nodeValue.length:0):t.setStartBefore(i),a.Dom.safeRemove(i),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){let t=this.sel;if(!t||!t.rangeCount)return[];let e=t.getRangeAt(0);(0,u.assert)(e,"Range is null");let i=e.cloneRange();i.collapse(!0);let o=this.j.createInside.fake();a.Dom.safeInsertNode(i,o),e.setStartBefore(o);let n=[o];if(!e.collapsed){let t=e.cloneRange();t.collapse(!1);let i=this.j.createInside.fake();a.Dom.safeInsertNode(t,i),e.setEndAfter(i),n.push(i)}return this.selectRange(e),n}restoreFakes(t){let e=t.filter(t=>t.isConnected);if(!e.length)return;let[i,o]=e,n=this.createRange();n.setStartAfter(i),o&&n.setEndBefore(o),this.selectRange(n),i.parentNode?.firstChild!==i.parentNode?.lastChild&&a.Dom.safeRemove(i),o?.parentNode?.firstChild!==o?.parentNode?.lastChild&&a.Dom.safeRemove(o)}save(t=!1){if(this.hasMarkers)return[];let e=this.sel;if(!e||!e.rangeCount)return[];let i=[],o=e.rangeCount,n=[];for(let t=0;o>t;t+=1)if(n[t]=e.getRangeAt(t),n[t].collapsed){let e=this.marker(!0,n[t]);i[t]={startId:e.id,collapsed:!0,startMarker:e.outerHTML}}else{let e=this.marker(!0,n[t]),o=this.marker(!1,n[t]);i[t]={startId:e.id,endId:o.id,collapsed:!1,startMarker:e.outerHTML,endMarker:o.outerHTML}}if(!t){e.removeAllRanges();for(let t=o-1;t>=0;--t){let o=this.doc.getElementById(i[t].startId);if(o){if(i[t].collapsed)n[t].setStartAfter(o),n[t].collapse(!0);else if(n[t].setStartBefore(o),i[t].endId){let e=this.doc.getElementById(i[t].endId);e&&n[t].setEndAfter(e)}try{e.addRange(n[t].cloneRange())}catch{}}}}return i}focus(t={preventScroll:!0}){if(!this.isFocused()){let e=(0,l.getScrollParent)(this.j.container),i=e?.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),i&&e?.scrollTo&&e.scrollTo(0,i);let o=this.sel,n=o?.rangeCount?o?.getRangeAt(0):null;if(!n||!a.Dom.isOrContains(this.area,n.startContainer)){let t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||this.j?.events?.fire("focus"),!0}return!1}isCollapsed(){let t=this.sel;for(let e=0;t&&e<t.rangeCount;e+=1)if(!t.getRangeAt(e).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.j.getRealMode()!==s.MODE_WYSIWYG)return null;let e=this.sel;if(!e||0===e.rangeCount)return null;let i=e.getRangeAt(0),o=i.startContainer,n=!1;if(a.Dom.isTag(o,"br")&&e.isCollapsed)return o;if(!a.Dom.isText(o)){let s=(0,f.findCorrectCurrentNode)(o,i,n,e.isCollapsed,t,t=>n?t.lastChild:t.firstChild);o=s.node,n=s.rightMode}return o&&a.Dom.isOrContains(this.area,o)?o:null}insertNode(t,e=!0,i=!0){this.errorNode(t);let o=a.Dom.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let n=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),n&&n.rangeCount){let e=n.getRangeAt(0),{firstChild:i}=t;a.Dom.isOrContains(this.area,e.commonAncestorContainer)?a.Dom.safeInsertNode(e,t):this.area.appendChild(t),[()=>i?.previousSibling,()=>i?.previousSibling,()=>i?.previousSibling?.lastChild].forEach(t=>{let e=t();e&&a.Dom.isEmptyTextNode(e)&&a.Dom.safeRemove(e)})}else this.area.appendChild(t);let i=t=>{if(a.Dom.isBlock(t)){let e=t.lastChild;if(e)return i(e)}this.setCursorAfter(t)};e&&(a.Dom.isFragment(t)?o&&i(o):i(t)),this.j.o.scrollToPastedContent&&(0,l.scrollIntoViewIfNeeded)(o??t,this.j.editor,this.doc)}),i&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",a.Dom.isFragment(t)?o:t)}insertHTML(t,e=!0){if(""===t)return;let i=this.j.createInside.div(),o=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),a.Dom.isNode(t)?i.appendChild(t):i.innerHTML=t.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",i.innerHTML))&&i.lastChild){for(;i.firstChild;)i.firstChild,o.appendChild(i.firstChild);this.insertNode(o,e,!1),this.j.__imdSynchronizeValues()}}insertImage(t,e=null,i=null){let o=(0,c.isString)(t)?this.j.createInside.element("img"):t;if((0,c.isString)(t)&&o.setAttribute("src",t),null!=i){let t=i.toString();t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),(0,l.attr)(o,"width",t)}e&&"object"==typeof e&&(0,l.css)(o,e);let n=()=>{(o.naturalHeight<o.offsetHeight||o.naturalWidth<o.offsetWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",n)};this.j.e.on(o,"load",n),o.complete&&n(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(t){let e=this.sel;if(!e||!e.rangeCount)return;let i=e.getRangeAt(0),o=i.commonAncestorContainer;a.Dom.isHTMLElement(o)||(o=o.parentElement);let n=[],r=i.startOffset,u=o.childNodes.length,h=i.startContainer===this.area?o.childNodes[r<u?r:u-1]:i.startContainer,d=i.endContainer===this.area?o.childNodes[i.endOffset-1]:i.endContainer;a.Dom.isText(h)&&h===i.startContainer&&i.startOffset===h.nodeValue?.length&&h.nextSibling&&(h=h.nextSibling),a.Dom.isText(d)&&d===i.endContainer&&0===i.endOffset&&d.previousSibling&&(d=d.previousSibling);let f=t=>{!t||t===o||a.Dom.isEmptyTextNode(t)||(0,c.isMarker)(t)||n.push(t)};f(h),h!==d&&a.Dom.isOrContains(o,h,!0)&&a.Dom.find(h,t=>(f(t),t===d||t&&t.contains&&t.contains(d)),o,!0,!1);let p=e=>{if(a.Dom.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,l.toArray)(e.childNodes).forEach(p);if(a.Dom.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{let t=this.j.createInside.text(s.INVISIBLE_SPACE);e.appendChild(t),e=t}t(e)}};0===n.length&&(a.Dom.isEmptyTextNode(h)&&n.push(h),h.firstChild&&n.push(h.firstChild)),n.forEach(p)}cursorInTheEdge(t,e,i=null){let o=!t,n=this.sel?.getRangeAt(0);if(i??=this.current(!1),!n||!i||!a.Dom.isOrContains(e,i,!0))return null;let s=t?n.startContainer:n.endContainer,r=t?n.startOffset:n.endOffset,c=t=>!!(t&&!a.Dom.isTag(t,"br")&&!a.Dom.isEmptyTextNode(t)&&!a.Dom.isTemporary(t)&&!(a.Dom.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t)));if(a.Dom.isText(s)){if((0,f.cursorInTheEdgeOfString)(s,r,t,o))return!1}else{let t=(0,l.toArray)(s.childNodes);if(o){if(t.slice(r).some(c))return!1}else if(t.slice(0,r).some(c))return!1}let u=i;for(;u&&u!==e;){let e=a.Dom.sibling(u,t);if(!e){u=u.parentNode;continue}if((u=e)&&c(u))return!1}return!0}cursorOnTheLeft(t,e){return this.cursorInTheEdge(!0,t,e)}cursorOnTheRight(t,e){return this.cursorInTheEdge(!1,t,e)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,e){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),o=null;return a.Dom.isText(t)?e?i.setStart(t,0):i.setEnd(t,t.nodeValue?.length??0):(o=this.j.createInside.fake(),e?i.setStartBefore(t):i.setEndAfter(t),i.collapse(e),a.Dom.safeInsertNode(i,o),i.selectNode(o)),i.collapse(e),this.selectRange(i),o}setCursorIn(t,e=!1){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),o=t,n=t;do{if(a.Dom.isText(o)||a.Dom.isTag(o,s.INSEPARABLE_TAGS))break;n=o,o=e?o.firstChild:o.lastChild}while(o)if(!o){let t=this.j.createInside.text(s.INVISIBLE_SPACE);a.Dom.isTag(n,s.INSEPARABLE_TAGS)?o=n:(n.appendChild(t),n=t)}let r=o||n;return a.Dom.isTag(r,s.INSEPARABLE_TAGS)?e||a.Dom.isTag(r,"br")?i.setStartBefore(r):i.setEndAfter(r):i.selectNodeContents(r),i.collapse(e),this.selectRange(i),n}selectRange(t,e=!0){let i=this.sel;return e&&!this.isFocused()&&this.focus(),i&&(i.removeAllRanges(),i.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,e=!1){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange();return i[e?"selectNodeContents":"selectNode"](t),this.selectRange(i)}get html(){let t=this.sel;if(t&&t.rangeCount>0){let e=t.getRangeAt(0).cloneContents(),i=this.j.createInside.div();return i.appendChild(e),i.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){let e=this.jodit.createInside.element("font",s.INVISIBLE_SPACE);this.insertNode(e,!1,!1),t&&t[0]&&e.appendChild(t[0]),yield e,a.Dom.unwrap(e);return}for(let t of((0,l.$$)("*[style*=font-size]",this.area).forEach(t=>{(0,l.attr)(t,"data-font-size",t.style.fontSize.toString()),t.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,l.$$)("*[data-font-size]",this.area).forEach(t=>{let e=(0,l.attr)(t,"data-font-size");e&&(t.style.fontSize=e,(0,l.attr)(t,"data-font-size",null))}),(0,l.$$)('font[size="7"]',this.area))){let{firstChild:e,lastChild:i}=t;if(e&&e===i&&(0,c.isMarker)(e)){a.Dom.unwrap(t);continue}e&&(0,c.isMarker)(e)&&a.Dom.before(t,e),i&&(0,c.isMarker)(i)&&a.Dom.after(t,i),yield t,a.Dom.unwrap(t)}}wrapInTag(t){let e=[];for(let i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&(0,c.isMarker)(i.firstChild))continue;(0,c.isFunction)(t)?t(i):e.push(a.Dom.replace(i,t,this.j.createInside))}finally{let t=i.parentNode;t&&(a.Dom.unwrap(i),a.Dom.isEmpty(t)&&a.Dom.unwrap(t))}return e}commitStyle(t){(0,u.assert)((0,l.size)(t)>0,"Need to pass at least one option"),new d.CommitStyle(t).apply(this.j)}splitSelection(t,e){if(!this.isCollapsed())return null;let i=this.createRange(),o=this.range;i.setStartBefore(t);let n=this.cursorOnTheRight(t,e),r=this.cursorOnTheLeft(t,e),l=this.j.createInside.element("br"),c=this.j.createInside.fake(),h=c.cloneNode();try{if(n||r){e?a.Dom.before(e,l):a.Dom.safeInsertNode(o,l);let t=(t,e)=>{let i=e(t);for(;i;){let t=e(i);if(i&&(a.Dom.isTag(i,"br")||a.Dom.isEmptyTextNode(i)))a.Dom.safeRemove(i);else break;i=t}};t(l,t=>t.nextSibling),t(l,t=>t.previousSibling),a.Dom.after(l,h),a.Dom.before(l,c),n?(i.setEndBefore(l),o.setEndBefore(l)):(i.setEndAfter(l),o.setEndAfter(l))}else i.setEnd(o.startContainer,o.startOffset);let d=i.extractContents(),f=t=>a.Dom.each(t,t=>a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t));(0,u.assert)(t.parentNode,"Splitting fails");try{if(f(d),f(t),t.parentNode.insertBefore(d,t),!e&&n&&l?.parentNode){let t=this.createRange();t.setStartBefore(l),this.selectRange(t)}}catch(t){if(!s.IS_PROD)throw t}let p=t=>{t?.parentNode?.firstChild===t?.parentNode?.lastChild&&t?.parentNode?.appendChild(l.cloneNode())};p(c),p(h)}finally{a.Dom.safeRemove(c),a.Dom.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:t}=this,e=t.cloneRange();if(!a.Dom.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;let i=e=>{let i=this.j.createInside.fake(),o=t.cloneRange();return o.collapse(e),a.Dom.safeInsertNode(o,i),(0,h.moveTheNodeAlongTheEdgeOutward)(i,e,this.j.editor),i},o=i(!0),n=i(!1);e.setStartAfter(o),e.setEndBefore(n);let s=a.Dom.findSibling(o,!1),r=a.Dom.findSibling(n,!0);if(s!==r){let t=a.Dom.isElement(s)&&a.Dom.isOrContains(s,n),i=!t&&a.Dom.isElement(r)&&a.Dom.isOrContains(r,o);if(t||i){let i=t?s:r,l=i;for(;a.Dom.isElement(i);)(i=t?i.firstElementChild:i.lastElementChild)&&(t?a.Dom.isOrContains(i,n):a.Dom.isOrContains(i,o))&&(l=i);t?e.setStart(l,0):e.setEnd(l,l.childNodes.length)}}if(this.selectRange(e),a.Dom.safeRemove(o,n),this.isCollapsed())throw(0,l.error)("Selection is collapsed");return this}constructor(t){(0,o._)(this,"jodit",void 0),this.jodit=t,t.e.on("removeMarkers",()=>{this.removeMarkers()})}}(0,n.__decorate)([r.autobind],p.prototype,"createRange",null),(0,n.__decorate)([r.autobind],p.prototype,"focus",null),(0,n.__decorate)([r.autobind],p.prototype,"setCursorAfter",null),(0,n.__decorate)([r.autobind],p.prototype,"setCursorBefore",null),(0,n.__decorate)([r.autobind],p.prototype,"setCursorIn",null)},98711:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},98740:function(t,e,i){"use strict";i.d(e,{hasBrowserColorPicker:function(){return n}});var o=i(81937);function n(){let t=!0;try{let e=o.globalDocument.createElement("input");e.type="color",e.value="!",t="color"===e.type&&"!"!==e.value}catch(e){t=!1}return t}},98792:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(28077),a=i(91206);i(60162);class l extends a.Plugin{afterInit(t){t.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(t,e,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===t?"ul":"ol",attributes:{style:{listStyleType:i??null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"ul",group:"list"},{name:"ol",group:"list"}])}}(0,n.__decorate)([s.autobind],l.prototype,"onCommand",null),r.pluginSystem.add("orderedList",l)},98803:function(t,e,i){"use strict";i.d(e,{Table:function(){return d}});var o=i(25045),n=i(31635),s=i(16964),r=i(81937),a=i(84839),l=i(27795),c=i(28077),u=i(65946);let h=new WeakMap;class d extends s.ViewComponent{className(){return"Table"}__recalculateStyles(){let t=(0,c.getContainer)(this.j,d,"style",!0),e=[];this.selected.forEach(t=>{let i=(0,u.cssPath)(t);i&&e.push(i)}),t.innerHTML=e.length?e.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();let e=l.Dom.closest(t,"table",this.j.editor);if(e){let i=d.__selectedByTable.get(e)||new Set;i.add(t),d.__selectedByTable.set(e,i)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();let e=l.Dom.closest(t,"table",this.j.editor);if(e){let i=d.__selectedByTable.get(e);i&&(i.delete(t),i.size||d.__selectedByTable.delete(e))}}getAllSelectedCells(){return(0,u.toArray)(this.selected)}static __getSelectedCellsByTable(t){let e=d.__selectedByTable.get(t);return e?(0,u.toArray)(e):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return d.__getRowsCount(t)}static __getColumnsCount(t){return d.__formalMatrix(t).reduce((t,e)=>Math.max(t,e.length),0)}getColumnsCount(t){return d.__getColumnsCount(t)}static __formalMatrix(t,e){let i=[[]],o=(0,u.toArray)(t.rows),n=(t,o)=>{void 0===i[o]&&(i[o]=[]);let n=t.colSpan,s=t.rowSpan,r,a,l=0;for(;i[o][l];)l+=1;for(a=0;s>a;a+=1)for(r=0;r<n;r+=1){if(void 0===i[o+a]&&(i[o+a]=[]),e&&!1===e(t,o+a,l+r,n,s))return!1;i[o+a][l+r]=t}};for(let t=0;t<o.length;t+=1){let e=(0,u.toArray)(o[t].cells);for(let o=0;o<e.length;o+=1)if(!1===n(e[o],t))return i}return i}formalMatrix(t,e){return d.__formalMatrix(t,e)}static __formalCoordinate(t,e,i=!1){let o=0,n=0,s=1,r=1;return d.__formalMatrix(t,(t,a,l,c,u)=>{if(e===t)return o=a,n=l,s=c||1,r=u||1,i&&(n+=(c||1)-1,o+=(u||1)-1),!1}),[o,n,s,r]}formalCoordinate(t,e,i=!1){return d.__formalCoordinate(t,e,i)}static __appendRow(t,e,i,o){let n;if(e)n=e.cloneNode(!0),(0,u.$$)("td,th",e).forEach(t=>{let e=(0,u.attr)(t,"rowspan");if(e&&parseInt(e,10)>1){let i=parseInt(e,10)-1;(0,u.attr)(t,"rowspan",i>1?i:null)}}),(0,u.$$)("td,th",n).forEach(t=>{t.innerHTML=""});else{let e=d.__getColumnsCount(t);n=o.element("tr");for(let t=0;t<e;t+=1)n.appendChild(o.element("td"))}i&&e&&e.nextSibling?e.parentNode&&e.parentNode.insertBefore(n,e.nextSibling):!i&&e?e.parentNode&&e.parentNode.insertBefore(n,e):(t.getElementsByTagName("tbody")?.[0]||t).appendChild(n)}appendRow(t,e,i){return d.__appendRow(t,e,i,this.j.createInside)}static __removeRow(t,e){let i,o=d.__formalMatrix(t),n=t.rows[e];o[e].forEach((s,r)=>{if(i=!1,e-1>=0&&o[e-1][r]===s)i=!0;else if(o[e+1]&&o[e+1][r]===s){if(s.parentNode===n&&s.parentNode.nextSibling){i=!0;let n=r+1;for(;o[e+1][n]===s;)n+=1;let a=l.Dom.next(s.parentNode,t=>l.Dom.isTag(t,"tr"),t);a&&(o[e+1][n]?a.insertBefore(s,o[e+1][n]):a.appendChild(s))}}else l.Dom.safeRemove(s);if(i&&(s.parentNode===n||s!==o[e][r-1])){let t=s.rowSpan;(0,u.attr)(s,"rowspan",t-1>1?t-1:null)}}),l.Dom.safeRemove(n)}removeRow(t,e){return d.__removeRow(t,e)}appendColumn(t,e,i=!0){let o=d.__formalMatrix(t);if(!i&&l.Dom.isCell(e.previousElementSibling))return this.appendColumn(t,e.previousElementSibling,!0);let n=i?e.cellIndex+((e.colSpan||1)-1):e.cellIndex,s=i?n+1:n;for(let t=0;t<o.length;){let e=o[t];if(e[n]!==e[s]||n===s){let t=this.j.createInside.element("td");i?l.Dom.after(e[n],t):l.Dom.before(e[n],t),e[n].rowSpan>1&&(t.rowSpan=e[n].rowSpan)}else e[n].colSpan+=1;t+=e[n].rowSpan||1}}static __removeColumn(t,e){let i,o=d.__formalMatrix(t);o.forEach((t,n)=>{let s=t[e];if(i=!1,e-1>=0&&o[n][e-1]===s||e+1<t.length&&o[n][e+1]===s?i=!0:l.Dom.safeRemove(s),i&&(n-1<0||s!==o[n-1][e])){let t=s.colSpan;(0,u.attr)(s,"colspan",t-1>1?(t-1).toString():null)}})}removeColumn(t,e){return d.__removeColumn(t,e)}static __getSelectedBound(t,e){let i,o,n,s=[[1/0,1/0],[0,0]],r=d.__formalMatrix(t);for(i=0;i<r.length;i+=1)for(o=0;r[i]&&o<r[i].length;o+=1)e.includes(r[i][o])&&(s[0][0]=Math.min(i,s[0][0]),s[0][1]=Math.min(o,s[0][1]),s[1][0]=Math.max(i,s[1][0]),s[1][1]=Math.max(o,s[1][1]));for(i=s[0][0];i<=s[1][0];i+=1)for(n=1,o=s[0][1];o<=s[1][1];o+=1){for(;r[i]&&r[i][o-n]&&r[i][o]===r[i][o-n];)s[0][1]=Math.min(o-n,s[0][1]),s[1][1]=Math.max(o-n,s[1][1]),n+=1;for(n=1;r[i]&&r[i][o+n]&&r[i][o]===r[i][o+n];)s[0][1]=Math.min(o+n,s[0][1]),s[1][1]=Math.max(o+n,s[1][1]),n+=1;for(n=1;r[i-n]&&r[i][o]===r[i-n][o];)s[0][0]=Math.min(i-n,s[0][0]),s[1][0]=Math.max(i-n,s[1][0]),n+=1;for(n=1;r[i+n]&&r[i][o]===r[i+n][o];)s[0][0]=Math.min(i+n,s[0][0]),s[1][0]=Math.max(i+n,s[1][0]),n+=1}return s}getSelectedBound(t,e){return d.__getSelectedBound(t,e)}static __normalizeTable(t){let e=[],i=d.__formalMatrix(t);d.__removeExtraColspans(i,e),d.__removeExtraRowspans(i,e);for(let t=0;t<i.length;t+=1)for(let e=0;e<i[t].length;e+=1)void 0!==i[t][e]&&(i[t][e].hasAttribute("rowspan")&&1===i[t][e].rowSpan&&(0,u.attr)(i[t][e],"rowspan",null),i[t][e].hasAttribute("colspan")&&1===i[t][e].colSpan&&(0,u.attr)(i[t][e],"colspan",null),i[t][e].hasAttribute("class")&&!(0,u.attr)(i[t][e],"class")&&(0,u.attr)(i[t][e],"class",null));d.__unmark(e)}static __removeExtraColspans(t,e){for(let i=0;i<t[0].length;i+=1){let o=1e6,n=!1;for(let e=0;e<t.length;e+=1)if(void 0!==t[e][i]){if(t[e][i].colSpan<2){n=!0;break}o=Math.min(o,t[e][i].colSpan)}if(!n)for(let n=0;n<t.length;n+=1)void 0!==t[n][i]&&d.__mark(t[n][i],"colspan",t[n][i].colSpan-o+1,e)}}static __removeExtraRowspans(t,e){let i=0,o=0;for(i=0;i<t.length;i+=1){let n=1e6,s=!1;for(o=0;o<t[i].length;o+=1)if(void 0!==t[i][o]){if(t[i][o].rowSpan<2){s=!0;break}n=Math.min(n,t[i][o].rowSpan)}if(!s)for(o=0;o<t[i].length;o+=1)void 0!==t[i][o]&&d.__mark(t[i][o],"rowspan",t[i][o].rowSpan-n+1,e)}}normalizeTable(t){return d.__normalizeTable(t)}static __mergeSelected(t,e){let i=[],o=d.__getSelectedBound(t,d.__getSelectedCellsByTable(t)),n=0,s=null,a=0,c=0,h=0,p=new Set,m=[];o&&(o[0][0]-o[1][0]||o[0][1]-o[1][1])&&(d.__formalMatrix(t,(t,r,l,g,_)=>{r>=o[0][0]&&r<=o[1][0]&&l>=o[0][1]&&l<=o[1][1]&&(p.has(t)||(p.add(t),r===o[0][0]&&t.style.width&&(n+=t.offsetWidth),""!==(0,u.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(t.innerHTML),g>1&&(c+=g-1),_>1&&(h+=_-1),s?(d.__mark(t,"remove",1,m),f(e).removeSelection(t)):(s=t,a=l)))}),c=o[1][1]-o[0][1]+1,h=o[1][0]-o[0][0]+1,s&&(c>1&&d.__mark(s,"colspan",c,m),h>1&&d.__mark(s,"rowspan",h,m),n&&(d.__mark(s,"width",(n/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",m),a&&d.__setColumnWidthByDelta(t,a,0,!0,m)),s.innerHTML=i.join("<br/>"),f(e).addSelection(s),p.delete(s),d.__unmark(m),d.__normalizeTable(t),(0,u.toArray)(t.rows).forEach(t=>{t.cells.length||l.Dom.safeRemove(t)})))}mergeSelected(t){return d.__mergeSelected(t,this.j)}static __splitHorizontal(t,e){let i,o,n,s,r,a=[];d.__getSelectedCellsByTable(t).forEach(c=>{(o=e.createInside.element("td")).appendChild(e.createInside.element("br")),n=e.createInside.element("tr"),i=d.__formalCoordinate(t,c),c.rowSpan<2?(d.__formalMatrix(t,(t,e,o)=>{i[0]===e&&i[1]!==o&&t!==c&&d.__mark(t,"rowspan",t.rowSpan+1,a)}),l.Dom.after(l.Dom.closest(c,"tr",t),n),n.appendChild(o)):(d.__mark(c,"rowspan",c.rowSpan-1,a),d.__formalMatrix(t,(e,o,n)=>{o>i[0]&&o<i[0]+c.rowSpan&&i[1]>n&&e.parentNode.rowIndex===o&&(r=e),i[0]<o&&e===c&&(s=t.rows[o])}),r?l.Dom.after(r,o):s.insertBefore(o,s.firstChild)),c.colSpan>1&&d.__mark(o,"colspan",c.colSpan,a),d.__unmark(a),f(e).removeSelection(c)}),this.__normalizeTable(t)}splitHorizontal(t){return d.__splitHorizontal(t,this.j)}static __splitVertical(t,e){let i,o,n,s=[];d.__getSelectedCellsByTable(t).forEach(a=>{i=d.__formalCoordinate(t,a),a.colSpan<2?d.__formalMatrix(t,(t,e,o)=>{i[1]===o&&i[0]!==e&&t!==a&&d.__mark(t,"colspan",t.colSpan+1,s)}):d.__mark(a,"colspan",a.colSpan-1,s),(o=e.createInside.element("td")).appendChild(e.createInside.element("br")),a.rowSpan>1&&d.__mark(o,"rowspan",a.rowSpan,s);let c=a.offsetWidth;l.Dom.after(a,o),n=c/t.offsetWidth/2,d.__mark(a,"width",(100*n).toFixed(r.ACCURACY)+"%",s),d.__mark(o,"width",(100*n).toFixed(r.ACCURACY)+"%",s),d.__unmark(s),f(e).removeSelection(a)}),d.__normalizeTable(t)}splitVertical(t){return d.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,e,i,o,n){let s=d.__formalMatrix(t),a=0;for(let o=0;o<s.length;o+=1){let l=s[o][e];if(l.colSpan>1&&s.length>1)continue;let c=(l.offsetWidth+i)/t.offsetWidth*100;d.__mark(l,"width",c.toFixed(r.ACCURACY)+"%",n),a=o;break}for(let t=a+1;t<s.length;t+=1){let i=s[t][e];d.__mark(i,"width",null,n)}o||d.__unmark(n)}setColumnWidthByDelta(t,e,i,o,n){return d.__setColumnWidthByDelta(t,e,i,o,n)}static __mark(t,e,i,o){o.push(t);let n=h.get(t)??{};n[e]=void 0===i?1:i,h.set(t,n)}static __unmark(t){t.forEach(t=>{let e=h.get(t);e&&(Object.keys(e).forEach(i=>{let o=e[i];switch(i){case"remove":l.Dom.safeRemove(t);break;case"rowspan":(0,u.attr)(t,"rowspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"colspan":(0,u.attr)(t,"colspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"width":null==o?(t.style.removeProperty("width"),(0,u.attr)(t,"style")||(0,u.attr)(t,"style",null)):t.style.width=o.toString()}delete e[i]}),h.delete(t))})}constructor(...t){super(...t),(0,o._)(this,"selected",new Set)}}(0,o._)(d,"__selectedByTable",new WeakMap),(0,n.__decorate)([(0,a.debounce)()],d.prototype,"__recalculateStyles",null);let f=t=>t.getInstance("Table",t.o)},98831:function(t,e,i){"use strict";i.d(e,{normalizeSize:function(){return o}});let o=(t,e)=>/^[0-9]+$/.test(t.toString())?t+e:t.toString()},98838:function(t,e,i){"use strict";i.d(e,{UIForm:function(){return u}});var o=i(31635),n=i(80251),s=i(91672),r=i(93640),a=i(65273),l=i(49999),c=i(63468);class u extends c.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let t of this.allChildren.filter(t=>n.Component.isInstanceOf(t,a.UIInput)))if(!t.validate())return!1;for(let t of this.allChildren.filter(t=>n.Component.isInstanceOf(t,l.UISelect)))if(!t.validate())return!1;return!0}onSubmit(t){return this.j.e.on(this.container,"submit",()=>{let e=this.allChildren.filter(t=>n.Component.isInstanceOf(t,a.UIInput));return!!this.validate()&&(t(e.reduce((t,e)=>(t[e.state.name]=e.value,t),{})),!1)}),this}createContainer(){let t=this.j.c.element("form");return t.classList.add(this.componentName),(0,r.attr)(t,"dir",this.j.o.direction||"auto"),(0,r.attr)(t,"novalidate",""),t}constructor(...t){super(...t),this.options?.className&&this.container.classList.add(this.options?.className)}}u=(0,o.__decorate)([s.component],u)},98964:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},98988:function(t,e,i){"use strict";var o=i(25045),n=i(31635),s=i(84839),r=i(23211),a=i(28077),l=i(57821),c=i(91206),u=i(4099);i(47670);class h extends c.Plugin{afterInit(t){this.proxyEventsList.forEach(e=>{t.e.on(e+".select",this.onStartSelection)})}beforeDestruct(t){this.proxyEventsList.forEach(e=>{t.e.on(e+".select",this.onStartSelection)})}onStartSelection(t){let{j:e}=this,i,o=t.target;for(;void 0===i&&o&&o!==e.editor;)i=e.e.fire((0,l.camelCase)(t.type+"_"+o.nodeName.toLowerCase()),o,t),o=o.parentElement;"click"===t.type&&void 0===i&&o===e.editor&&e.e.fire(t.type+"Editor",o,t)}onOutsideClick(t){let e=t.target;r.Dom.up(e,t=>t===this.j.editor)||u.UIElement.closestElement(e,u.Popup)||this.j.e.fire("outsideClick",t)}beforeCommandCut(){let{s:t}=this.j;if(!t.isCollapsed()){let e=t.current();e&&r.Dom.isOrContains(this.j.editor,e)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:t}=this.j;return t.focus(),t.select(this.j.editor,!0),t.expandSelection(),!1}onTripleClickNormalizeSelection(t){if(3!==t.detail||!this.j.o.select.normalizeTripleClick)return;let{s:e}=this.j,{startContainer:i,startOffset:o}=e.range;0===o&&r.Dom.isText(i)&&e.select(r.Dom.closest(i,r.Dom.isBlock,this.j.editor)||i,!0)}onCopyNormalizeSelectionBound(t){let{s:e,editor:i,o}=this.j;!o.select.normalizeSelectionBeforeCutAndCopy||e.isCollapsed()||(!t||t.isTrusted&&r.Dom.isNode(t.target)&&r.Dom.isOrContains(i,t.target))&&this.jodit.s.expandSelection()}constructor(...t){super(...t),(0,o._)(this,"proxyEventsList",["click","mousedown","touchstart","mouseup","touchend"])}}(0,n.__decorate)([s.autobind],h.prototype,"onStartSelection",null),(0,n.__decorate)([(0,s.watch)("ow:click")],h.prototype,"onOutsideClick",null),(0,n.__decorate)([(0,s.watch)([":beforeCommandCut"])],h.prototype,"beforeCommandCut",null),(0,n.__decorate)([(0,s.watch)([":beforeCommandSelectall"])],h.prototype,"beforeCommandSelectAll",null),(0,n.__decorate)([(0,s.watch)([":click"])],h.prototype,"onTripleClickNormalizeSelection",null),(0,n.__decorate)([(0,s.watch)([":copy",":cut"])],h.prototype,"onCopyNormalizeSelectionBound",null),a.pluginSystem.add("select",h)},99436:function(t,e,i){"use strict";function o(t){return t.length?t[0].toUpperCase()+t.substring(1):""}i.d(e,{ucfirst:function(){return o}})},99732:function(t,e,i){"use strict";i.d(e,{isInt:function(){return s}});var o=i(70222),n=i(85932);function s(t){return(0,n.isString)(t)&&(0,o.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},99876:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>'}},r={};function a(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}};return s[t](i,i.exports,a),i.exports}a.m=s,e=[],a.O=function(t,i,o,n){if(i){n=n||0;for(var s=e.length;s>0&&e[s-1][2]>n;s--)e[s]=e[s-1];e[s]=[i,o,n];return}for(var r=1/0,s=0;s<e.length;s++){for(var i=e[s][0],o=e[s][1],n=e[s][2],l=!0,c=0;c<i.length;c++)(!1&n||r>=n)&&Object.keys(a.O).every(function(t){return a.O[t](i[c])})?i.splice(c--,1):(l=!1,n<r&&(r=n));if(l){e.splice(s--,1);var u=o();void 0!==u&&(t=u)}}return t},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i={521:0},a.O.j=function(t){return 0===i[t]},o=function(t,e){var o,n,s=e[0],r=e[1],l=e[2],c=0;if(s.some(function(t){return 0!==i[t]})){for(o in r)a.o(r,o)&&(a.m[o]=r[o]);if(l)var u=l(a)}for(t&&t(e);c<s.length;c++)n=s[c],a.o(i,n)&&i[n]&&i[n][0](),i[n]=0;return a.O(u)},(n=self.webpackChunkjodit=self.webpackChunkjodit||[]).forEach(o.bind(null,0)),n.push=o.bind(null,n.push.bind(n));var l={};return!function(){"use strict";a.r(l),a.d(l,{CommitMode:function(){return u},Jodit:function(){return t.Jodit}});var t=a(73302),e=a(28686),i=a(81937),o=a(84839),n=a(60936),s=a(13564),r=a(89317);a(93637),Object.keys(i).forEach(e=>{t.Jodit[e]=i[e]});let c=t=>"__esModule"!==t;Object.keys(s).filter(c).forEach(t=>{n.Icon.set(t.replace("_","-"),s[t])}),Object.keys(n).filter(c).forEach(i=>{let o=n[i],s=(0,e.isFunction)(o.prototype?.className)?o.prototype.className():i;(0,e.isString)(s)&&(t.Jodit.modules[s]=o)}),Object.keys(o).filter(c).forEach(e=>{t.Jodit.decorators[e]=o[e]}),["Confirm","Alert","Prompt"].forEach(e=>{t.Jodit[e]=n[e]}),Object.keys(r.default).filter(c).forEach(e=>{t.Jodit.lang[e]=r.default[e]});class u{}}(),l=a.O(l)}()});