jodit-pro 4.18.13 → 4.18.15

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 (342) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +5 -5
  3. package/es2015/jodit.js +331 -73
  4. package/es2015/jodit.min.js +9 -9
  5. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  6. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  9. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  11. package/es2015/plugins/backup/backup.css +1 -1
  12. package/es2015/plugins/backup/backup.js +1 -1
  13. package/es2015/plugins/backup/backup.min.js +1 -1
  14. package/es2015/plugins/button-generator/button-generator.css +1 -1
  15. package/es2015/plugins/button-generator/button-generator.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  17. package/es2015/plugins/change-case/change-case.js +1 -1
  18. package/es2015/plugins/change-case/change-case.min.js +1 -1
  19. package/es2015/plugins/chart/chart.css +1 -1
  20. package/es2015/plugins/chart/chart.js +1 -1
  21. package/es2015/plugins/chart/chart.min.js +1 -1
  22. package/es2015/plugins/color-picker/color-picker.css +1 -1
  23. package/es2015/plugins/color-picker/color-picker.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  25. package/es2015/plugins/emoji/emoji.css +1 -1
  26. package/es2015/plugins/emoji/emoji.js +1 -1
  27. package/es2015/plugins/emoji/emoji.min.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.js +1 -1
  29. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  30. package/es2015/plugins/finder/finder.css +1 -1
  31. package/es2015/plugins/finder/finder.js +1 -1
  32. package/es2015/plugins/finder/finder.min.js +1 -1
  33. package/es2015/plugins/google-maps/google-maps.css +1 -1
  34. package/es2015/plugins/google-maps/google-maps.js +1 -1
  35. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  36. package/es2015/plugins/google-search/google-search.js +1 -1
  37. package/es2015/plugins/google-search/google-search.min.js +1 -1
  38. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  39. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  40. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  41. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  43. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  44. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  45. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  46. package/es2015/plugins/keyboard/keyboard.css +1 -1
  47. package/es2015/plugins/keyboard/keyboard.js +1 -1
  48. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  49. package/es2015/plugins/math/math.css +1 -1
  50. package/es2015/plugins/math/math.js +1 -1
  51. package/es2015/plugins/math/math.min.js +1 -1
  52. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  53. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  54. package/es2015/plugins/page-break/page-break.js +1 -1
  55. package/es2015/plugins/page-break/page-break.min.js +1 -1
  56. package/es2015/plugins/paste-code/paste-code.css +1 -1
  57. package/es2015/plugins/paste-code/paste-code.js +1 -1
  58. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  59. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  60. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  61. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  62. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  63. package/es2015/plugins/style/style.css +1 -1
  64. package/es2015/plugins/style/style.js +1 -1
  65. package/es2015/plugins/style/style.min.js +1 -1
  66. package/es2015/plugins/templates/templates.css +1 -1
  67. package/es2015/plugins/templates/templates.js +1 -1
  68. package/es2015/plugins/templates/templates.min.js +1 -1
  69. package/es2015/plugins/todo-list/todo-list.css +1 -1
  70. package/es2015/plugins/todo-list/todo-list.js +1 -1
  71. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  72. package/es2015/plugins/translate/translate.css +1 -1
  73. package/es2015/plugins/translate/translate.js +1 -1
  74. package/es2015/plugins/translate/translate.min.js +1 -1
  75. package/es2015/plugins/tune-block/tune-block.css +1 -1
  76. package/es2015/plugins/tune-block/tune-block.js +1 -1
  77. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  78. package/es2018/jodit.fat.min.js +13 -13
  79. package/es2018/jodit.min.js +5 -5
  80. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  81. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  82. package/es2018/plugins/backup/backup.min.js +1 -1
  83. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  84. package/es2018/plugins/change-case/change-case.min.js +1 -1
  85. package/es2018/plugins/chart/chart.min.js +1 -1
  86. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  87. package/es2018/plugins/emoji/emoji.min.js +1 -1
  88. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  89. package/es2018/plugins/finder/finder.min.js +1 -1
  90. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  91. package/es2018/plugins/google-search/google-search.min.js +1 -1
  92. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  93. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  94. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  95. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  96. package/es2018/plugins/math/math.min.js +1 -1
  97. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  98. package/es2018/plugins/page-break/page-break.min.js +1 -1
  99. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  100. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  101. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  102. package/es2018/plugins/style/style.min.js +1 -1
  103. package/es2018/plugins/templates/templates.min.js +1 -1
  104. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  105. package/es2018/plugins/translate/translate.min.js +1 -1
  106. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  107. package/es2021/jodit.css +1 -1
  108. package/es2021/jodit.fat.min.js +14 -14
  109. package/es2021/jodit.js +331 -73
  110. package/es2021/jodit.min.js +6 -6
  111. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  112. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  113. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  114. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  115. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  116. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  117. package/es2021/plugins/backup/backup.css +1 -1
  118. package/es2021/plugins/backup/backup.js +1 -1
  119. package/es2021/plugins/backup/backup.min.js +1 -1
  120. package/es2021/plugins/button-generator/button-generator.css +1 -1
  121. package/es2021/plugins/button-generator/button-generator.js +1 -1
  122. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  123. package/es2021/plugins/change-case/change-case.js +1 -1
  124. package/es2021/plugins/change-case/change-case.min.js +1 -1
  125. package/es2021/plugins/chart/chart.css +1 -1
  126. package/es2021/plugins/chart/chart.js +1 -1
  127. package/es2021/plugins/chart/chart.min.js +1 -1
  128. package/es2021/plugins/color-picker/color-picker.css +1 -1
  129. package/es2021/plugins/color-picker/color-picker.js +1 -1
  130. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  131. package/es2021/plugins/emoji/emoji.css +1 -1
  132. package/es2021/plugins/emoji/emoji.js +1 -1
  133. package/es2021/plugins/emoji/emoji.min.js +1 -1
  134. package/es2021/plugins/export-docs/export-docs.js +1 -1
  135. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  136. package/es2021/plugins/finder/finder.css +1 -1
  137. package/es2021/plugins/finder/finder.js +1 -1
  138. package/es2021/plugins/finder/finder.min.js +1 -1
  139. package/es2021/plugins/google-maps/google-maps.css +1 -1
  140. package/es2021/plugins/google-maps/google-maps.js +1 -1
  141. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  142. package/es2021/plugins/google-search/google-search.js +1 -1
  143. package/es2021/plugins/google-search/google-search.min.js +1 -1
  144. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  145. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  146. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  147. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  148. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  149. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  150. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  151. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  152. package/es2021/plugins/keyboard/keyboard.css +1 -1
  153. package/es2021/plugins/keyboard/keyboard.js +1 -1
  154. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  155. package/es2021/plugins/math/math.css +1 -1
  156. package/es2021/plugins/math/math.js +1 -1
  157. package/es2021/plugins/math/math.min.js +1 -1
  158. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  159. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  160. package/es2021/plugins/page-break/page-break.js +1 -1
  161. package/es2021/plugins/page-break/page-break.min.js +1 -1
  162. package/es2021/plugins/paste-code/paste-code.css +1 -1
  163. package/es2021/plugins/paste-code/paste-code.js +1 -1
  164. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  165. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  166. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  167. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  168. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  169. package/es2021/plugins/style/style.css +1 -1
  170. package/es2021/plugins/style/style.js +1 -1
  171. package/es2021/plugins/style/style.min.js +1 -1
  172. package/es2021/plugins/templates/templates.css +1 -1
  173. package/es2021/plugins/templates/templates.js +1 -1
  174. package/es2021/plugins/templates/templates.min.js +1 -1
  175. package/es2021/plugins/todo-list/todo-list.css +1 -1
  176. package/es2021/plugins/todo-list/todo-list.js +1 -1
  177. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  178. package/es2021/plugins/translate/translate.css +1 -1
  179. package/es2021/plugins/translate/translate.js +1 -1
  180. package/es2021/plugins/translate/translate.min.js +1 -1
  181. package/es2021/plugins/tune-block/tune-block.css +1 -1
  182. package/es2021/plugins/tune-block/tune-block.js +1 -1
  183. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  184. package/es2021.en/jodit.css +1 -1
  185. package/es2021.en/jodit.fat.min.js +6 -6
  186. package/es2021.en/jodit.js +331 -73
  187. package/es2021.en/jodit.min.js +9 -9
  188. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  189. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  190. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  191. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  192. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  193. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  194. package/es2021.en/plugins/backup/backup.css +1 -1
  195. package/es2021.en/plugins/backup/backup.js +1 -1
  196. package/es2021.en/plugins/backup/backup.min.js +1 -1
  197. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  198. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  199. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  200. package/es2021.en/plugins/change-case/change-case.js +1 -1
  201. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  202. package/es2021.en/plugins/chart/chart.css +1 -1
  203. package/es2021.en/plugins/chart/chart.js +1 -1
  204. package/es2021.en/plugins/chart/chart.min.js +1 -1
  205. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  206. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  207. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  208. package/es2021.en/plugins/emoji/emoji.css +1 -1
  209. package/es2021.en/plugins/emoji/emoji.js +1 -1
  210. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  211. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  212. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  213. package/es2021.en/plugins/finder/finder.css +1 -1
  214. package/es2021.en/plugins/finder/finder.js +1 -1
  215. package/es2021.en/plugins/finder/finder.min.js +1 -1
  216. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  217. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  218. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  219. package/es2021.en/plugins/google-search/google-search.js +1 -1
  220. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  221. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  222. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  223. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  224. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  225. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  226. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  227. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  228. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  229. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  230. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  231. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  232. package/es2021.en/plugins/math/math.css +1 -1
  233. package/es2021.en/plugins/math/math.js +1 -1
  234. package/es2021.en/plugins/math/math.min.js +1 -1
  235. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  236. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  237. package/es2021.en/plugins/page-break/page-break.js +1 -1
  238. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  239. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  240. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  241. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  242. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  243. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  244. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  245. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  246. package/es2021.en/plugins/style/style.css +1 -1
  247. package/es2021.en/plugins/style/style.js +1 -1
  248. package/es2021.en/plugins/style/style.min.js +1 -1
  249. package/es2021.en/plugins/templates/templates.css +1 -1
  250. package/es2021.en/plugins/templates/templates.js +1 -1
  251. package/es2021.en/plugins/templates/templates.min.js +1 -1
  252. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  253. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  254. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  255. package/es2021.en/plugins/translate/translate.css +1 -1
  256. package/es2021.en/plugins/translate/translate.js +1 -1
  257. package/es2021.en/plugins/translate/translate.min.js +1 -1
  258. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  259. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  260. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  261. package/es5/jodit.css +2 -2
  262. package/es5/jodit.fat.min.js +2 -2
  263. package/es5/jodit.js +378 -74
  264. package/es5/jodit.min.css +2 -2
  265. package/es5/jodit.min.js +2 -2
  266. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  267. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  268. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  269. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  270. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  271. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  272. package/es5/plugins/backup/backup.css +1 -1
  273. package/es5/plugins/backup/backup.js +1 -1
  274. package/es5/plugins/backup/backup.min.js +1 -1
  275. package/es5/plugins/button-generator/button-generator.css +1 -1
  276. package/es5/plugins/button-generator/button-generator.js +1 -1
  277. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  278. package/es5/plugins/change-case/change-case.js +1 -1
  279. package/es5/plugins/change-case/change-case.min.js +1 -1
  280. package/es5/plugins/chart/chart.css +1 -1
  281. package/es5/plugins/chart/chart.js +1 -1
  282. package/es5/plugins/chart/chart.min.js +1 -1
  283. package/es5/plugins/color-picker/color-picker.css +1 -1
  284. package/es5/plugins/color-picker/color-picker.js +1 -1
  285. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  286. package/es5/plugins/emoji/emoji.css +1 -1
  287. package/es5/plugins/emoji/emoji.js +1 -1
  288. package/es5/plugins/emoji/emoji.min.js +1 -1
  289. package/es5/plugins/export-docs/export-docs.js +1 -1
  290. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  291. package/es5/plugins/finder/finder.css +1 -1
  292. package/es5/plugins/finder/finder.js +1 -1
  293. package/es5/plugins/finder/finder.min.js +1 -1
  294. package/es5/plugins/google-maps/google-maps.css +1 -1
  295. package/es5/plugins/google-maps/google-maps.js +1 -1
  296. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  297. package/es5/plugins/google-search/google-search.js +1 -1
  298. package/es5/plugins/google-search/google-search.min.js +1 -1
  299. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  300. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  301. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  302. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  303. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  304. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  305. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  306. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  307. package/es5/plugins/keyboard/keyboard.css +1 -1
  308. package/es5/plugins/keyboard/keyboard.js +1 -1
  309. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  310. package/es5/plugins/math/math.css +1 -1
  311. package/es5/plugins/math/math.js +1 -1
  312. package/es5/plugins/math/math.min.js +1 -1
  313. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  314. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  315. package/es5/plugins/page-break/page-break.js +1 -1
  316. package/es5/plugins/page-break/page-break.min.js +1 -1
  317. package/es5/plugins/paste-code/paste-code.css +1 -1
  318. package/es5/plugins/paste-code/paste-code.js +1 -1
  319. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  320. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  321. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  322. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  323. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  324. package/es5/plugins/style/style.css +1 -1
  325. package/es5/plugins/style/style.js +1 -1
  326. package/es5/plugins/style/style.min.js +1 -1
  327. package/es5/plugins/templates/templates.css +1 -1
  328. package/es5/plugins/templates/templates.js +1 -1
  329. package/es5/plugins/templates/templates.min.js +1 -1
  330. package/es5/plugins/todo-list/todo-list.css +1 -1
  331. package/es5/plugins/todo-list/todo-list.js +1 -1
  332. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  333. package/es5/plugins/translate/translate.css +1 -1
  334. package/es5/plugins/translate/translate.js +1 -1
  335. package/es5/plugins/translate/translate.min.js +1 -1
  336. package/es5/plugins/tune-block/tune-block.css +1 -1
  337. package/es5/plugins/tune-block/tune-block.js +1 -1
  338. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  339. package/es5/polyfills.fat.min.js +1 -1
  340. package/es5/polyfills.js +1 -1
  341. package/es5/polyfills.min.js +1 -1
  342. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.18.13
4
+ * Version: v4.18.15
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
8
  !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,function(){return function(){"use strict";var e,t,i,o,n,r,s={6441:function(e,t,i){i.d(t,{Config:function(){return r}});var o=i(82758);let n={};class r{static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=o.globalDocument,this.ownerWindow=o.globalWindow,this.shadowRoot=null,this.nonce="",this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.asyncStorage={},this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=o.INSERT_AS_HTML,this.enter=o.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.MODE_WYSIWYG,this.useSplitMode=!1,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"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.imageDefaultAlign="normal",this.imageAlignClasses=null,this.alignClasses={},this.mediaDefaultAlign="normal",this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},`
9
- `,{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:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,n)}}n=r.prototype,r.prototype.controls={}},26992:function(e,t,i){i.d(t,{Async:function(){return f}});var o=i(82758),n=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),u=i(70799),d=i(86068),h=i(38837),p=i(93661);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let o={};(0,d.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(o=t).timeout||0),o.label&&this.clearLabel(o.label);let r=(0,n.setTimeout)(e,t,...i),s=o.label||r;return this.timers.set(s,r),this.__callbacks.set(s,e),r}updateTimeout(e,t){if((0,h.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,n.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,u.isString)(e))return this.clearLabel(e);(0,n.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let o=0,a=!1,u=[],d=(...t)=>{if(!a){o=0;let i=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!o&&i&&d(...r),(0,n.clearTimeout)(o),o=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,o)):d(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,o=!1,n=!0;return(...r)=>{if(i=r,o){n=!0;return}n=!0,t&&(n=!1,e(...i)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&n&&e(...i)})}}throttle(e,t,i=!1){let o=null,n,r,a;return(...i)=>{(n=!0,a=i,t)?o||(r=()=>{n?(e(...a),n=!1,o=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,o)):o=null})():e(...a)}}promise(e){let t=()=>{},i=new Promise((i,o)=>{t=()=>o((0,p.abort)("Abort async")),this.promisesRejections.add(t),e(i,o)});return!i.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((o,n)=>{let r=this.setTimeout(()=>{try{o(e())}catch(e){n(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),n((0,p.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,n.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,o,n;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(e=null==queueMicrotask?void 0:queueMicrotask.bind(window))?e:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(i=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?i:(e,t)=>{var i;let o=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(i=null==t?void 0:t.timeout)?i:1)},this.__cancelIdleCallbackNative=null!=(n=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?n:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,i){i.d(t,{Async:function(){return o.Async}});var o=i(26992)},4012:function(e,t,i){i.d(t,{Component:function(){return l}});var o=i(8884),n=i(78213),r=i(580),s=i(21537);let a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let o=[this.componentName];return e&&o.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(o.push("_",t),o.push("_",(0,s.isVoid)(i)?"true":i.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===n.STATUSES.ready}get isDestructed(){return this.componentStatus===n.STATUSES.destructed}get isInDestruct(){return n.STATUSES.beforeDestruct===this.componentStatus||n.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(n.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(n.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let o=a.get(this),n=null==o?void 0:o[e];n&&n.length&&n.forEach(e=>e(t))}hookStatus(e,t){let i=a.get(this);i||(i={},a.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new o.Async,this.ownerWindow=window,this.__componentStatus=n.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=n.STATUSES},91907:function(e,t,i){i.d(t,{Component:function(){return o.Component},STATUSES:function(){return n.STATUSES},ViewComponent:function(){return r.ViewComponent}});var o=i(4012),n=i(78213),r=i(80480)},78213:function(e,t,i){i.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},80480:function(e,t,i){i.d(t,{ViewComponent:function(){return n}});var o=i(4012);class n extends o.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.ow&&(this.ownerWindow=e.ow),e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),this.setParentView(e)}}},82758:function(e,t,i){i.r(t),i.d(t,{IS_TEST:function(){return o}});let o=!1,n="u">typeof window?window:void 0,r="u">typeof document?document:void 0,s=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),c=new Set(a),u="Meta",d="Backspace",h="Enter",p="Escape",f="ArrowLeft",m="ArrowUp",g="ArrowRight",v="ArrowDown",b="Delete",y=[u,d,b,m,v,g,f,h,p,"F3","Tab"],w="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),_=void 0!==n&&/Mac|iPod|iPhone|iPad/.test(n.navigator.platform),S=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:k,isMin:C}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=r.currentScript;if(e)return S(e.src);let t=r.querySelectorAll("script[src]");return t&&t.length?S(t[t.length-1].src):S(n.location.href)})(),E=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.18.13","BASE_PATH",0,k,"BASE_PATH_IS_MIN",0,C,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,y,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ES",0,"es2021","FAT_MODE",0,!1,"HOMEPAGE",0,"https://xdsoft.net/jodit/pro/","INSEPARABLE_TAGS",0,l,"INSERT_AS_HTML",0,"insert_as_html","INSERT_AS_TEXT",0,"insert_as_text","INSERT_CLEAR_HTML",0,"insert_clear_html","INSERT_ONLY_TEXT",0,"insert_only_text","INVISIBLE_SPACE",0,"\uFEFF","INVISIBLE_SPACE_REG_EXP",0,()=>/[\uFEFF]/g,"INVISIBLE_SPACE_REG_EXP_END",0,()=>/[\uFEFF]+$/g,"INVISIBLE_SPACE_REG_EXP_START",0,()=>/^[\uFEFF]+/g,"IS_BLOCK",0,/^(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,"IS_ES_MODERN",0,!0,"IS_ES_NEXT",0,!0,"IS_IE",0,w,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,_,"IS_PROD",0,!0,"KEY_ALIASES",0,{add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:_?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},"KEY_ALT",0,"Alt","KEY_BACKSPACE",0,d,"KEY_DELETE",0,b,"KEY_DOWN",0,v,"KEY_END",0,"End","KEY_ENTER",0,h,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_HOME",0,"Home","KEY_LEFT",0,f,"KEY_META",0,u,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,m,"LIST_TAGS",0,s,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0," ","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,E,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>o=!0,"SOURCE_CONSUMER",0,"source-consumer","SPACE_REG_EXP",0,()=>/[\s\n\t\r\uFEFF\u200b]+/g,"SPACE_REG_EXP_END",0,()=>/[\s\n\t\r\uFEFF\u200b]+$/g,"SPACE_REG_EXP_START",0,()=>/^[\s\n\t\r\uFEFF\u200b]+/g,"TEMP_ATTR",0,"data-jodit-temp","TEXT_HTML",0,w?"html":"text/html","TEXT_PLAIN",0,w?"text":"text/plain","TEXT_RTF",0,w?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,r,"globalWindow",0,n,"lang",0,{}])},20218:function(e,t,i){i.d(t,{Create:function(){return a}});var o=i(82758),n=i(2748),r=i(21537),s=i(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,i){let o=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(o),t&&((0,r.isPlainObject)(t)?(0,r.attr)(o,t):i=t),i&&(0,r.asArray)(i).forEach(e=>n.Dom.append(o,(0,r.isString)(e)?this.fromHTML(e):e)),o}div(e,t,i){let o=this.element("div",t,i);return e&&(o.className=e),o}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});n.Dom.append(this.doc.body,t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let o=this.element("span",t,i);return e&&(o.className=e),o}a(e,t,i){let o=this.element("a",t,i);return e&&(o.className=e),o}text(e){return this.doc.createTextNode(e)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(n.Dom.safeRemove(o),t){let e=(0,r.refs)(o);Object.keys(t).forEach(i=>{let o=e[i];o&&!1===t[i]&&n.Dom.hide(o)})}return o}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,r.isFunction)(i)?i(e):(0,r.isPlainObject)(i)&&(0,r.attr)(e,i)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,i){i.d(t,{Create:function(){return o.Create}});var o=i(20218)},45219:function(e,t,i){i.d(t,{autobind:function(){return n}});var o=i(23282);function n(e,t,i){if(!(0,o.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let n=i.value;return{configurable:!0,get(){let e=n.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,i){i.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var o=i(78213),n=i(2748),r=i(27613),s=i(82760);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let o=i.get;if(!o)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=o.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function c(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...e){var t;let i,o=null!=(i=this.od)?i:document,r=c.get(o);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&n.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(o,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(o.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){i.d(t,{component:function(){return l},getComponentClass:function(){return c}});var o=i(82758),n=i(80568);let r=new Map,s=new WeakSet,a=new WeakSet;function l(e){class t extends e{constructor(...e){super(...e),this.constructor===t?(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready")):o.IS_PROD||s.has(this.constructor)||a.has(this.constructor)||a.add(this.constructor)}}s.add(e),s.add(t);let i=(0,n.getClassName)(e.prototype);if(r.has(i)&&!o.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function c(e){return r.get(e)}},81577:function(e,t,i){i.d(t,{debounce:function(){return a},throttle:function(){return l}});var o=i(91907),n=i(27613),r=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,n.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(o.STATUSES.ready,o=>{let{async:s}=o;(0,r.assert)(null!=s,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let a=(0,n.isFunction)(e)?e(o):e,c=(0,n.isNumber)(a)||(0,n.isPlainObject)(a)?a:o.defaultTimeout;Object.defineProperty(o,l,{configurable:!0,value:s[i](o[l].bind(o),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,i){i.d(t,{derive:function(){return n}});var o=i(23282);function n(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let n=e[t],r=Object.getOwnPropertyNames(n.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(n.prototype,t);null!=s&&(0,o.isFunction)(s.value)&&!(0,o.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,i){i.d(t,{hook:function(){return r}});var o=i(23282),n=i(89890);function r(e){return(t,i)=>{if(!(0,o.isFunction)(t[i]))throw(0,n.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},78927:function(e,t,i){i.d(t,{idle:function(){return s}});var o=i(91907),n=i(23282),r=i(89890);function s(){return(e,t)=>{if(!(0,n.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(o.STATUSES.ready,e=>{let{async:i}=e,o=e[t];e[t]=(...t)=>i.requestIdleCallback(o.bind(e,...t))})}}},65478:function(e,t,i){i.r(t),i.d(t,{autobind:function(){return o.autobind},cache:function(){return n.cache},cacheHTML:function(){return n.cacheHTML},cached:function(){return n.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var o=i(45219),n=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),u=i(31589),d=i(53213),h=i(13525),p=i(37133)},31589:function(e,t,i){i.d(t,["nonenumerable",0,(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}])},53213:function(e,t,i){i.d(t,{persistent:function(){return r}});var o=i(78213),n=i(39955);function r(e,t){e.hookStatus(o.STATUSES.ready,e=>{let i=(0,n.isViewObject)(e)?e:e.jodit,o=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(o))?e:r},set(e){i.storage.set(o,e)}})})}},13525:function(e,t,i){i.d(t,{wait:function(){return s}});var o=i(78213),n=i(23282),r=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,n.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:o}=t,n=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){o.clearTimeout(r),e(t)?n.apply(t,s):r=o.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){i.d(t,{watch:function(){return d}});var o=i(78213),n=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),u=i(37790);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,c.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,f=null==t?void 0:t.context,m=t=>{let o=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};p||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,n]=e.split(":"),r=f;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),o.events.on(r||t,n,c),r||o.events.on(n,c),t.hookStatus("beforeDestruct",()=>{o.events.off(r||t,n,c).off(n,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,n.observable)(h).on("change."+d.join("."),c);let p=(0,u.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,n.observable)(h)).on("change."+d.join("."),c),c(l,i,h))},get:()=>p&&p.get?p.get.call(t):h})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(o.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){i.d(t,{Dom:function(){return y}});var o=i(82758),n=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),u=i(86068),d=i(49055),h=i(38837),p=i(29960),f=i(41180),m=i(86583),g=i(89890),v=i(37790);let b=RegExp(`<([a-z]+)[^>]+${o.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let o,n,r=e;i.s.save();do n=!1,(o=r.nextSibling)&&!y.isBlock(o)&&!y.isTag(o,"br")&&(n=!0,r=o);while(n)return y.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,o){let n=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(n,i);let r=i;for(;r&&(r=i.nextSibling,n.appendChild(i),i!==o&&r);)i=r;return t.s.restore(),n}static wrapInline(e,t,i){let o,n,r=e,s=e;i.s.save();do n=!1,(o=r.previousSibling)&&!y.isBlock(o)&&(n=!0,r=o);while(n)do n=!1,(o=s.nextSibling)&&!y.isBlock(o)&&(n=!0,s=o);while(n)return y.__wrapElements(t,i,r,s)}static wrap(e,t,i){let o=(0,c.isString)(t)?i.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(o,e),o.appendChild(e)}else{let t=e.extractContents();e.insertNode(o),o.appendChild(t)}return o}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,i){let o=e;for(;o&&o!==t&&!(e!==o&&i(o));){let e=o.firstChild||o.nextSibling;if(!e){for(;o&&!o.nextSibling;)if((o=o.parentNode)===t)return;e=null==o?void 0:o.nextSibling}o=e}}static replace(e,t,i,o=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,c.isString)(t)?((0,h.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return o&&y.isElement(e)&&y.isElement(s)&&(0,n.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return y.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){return y.isNode(e)&&!y.closest(e,e=>y.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=o.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let n=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return y.isText(e)?n(e):!(y.isElement(e)&&i(e))&&y.each(e,e=>{if(y.isText(e)&&!n(e)||y.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return y.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return y.isTag(e,o.LIST_TAGS)}static isLeaf(e){return y.isTag(e,"li")}static isImage(e){return y.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,u.isVoid)(e)&&"object"==typeof e&&y.isNode(e)&&o.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!y.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!y.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!y.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(i?i.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,f.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.isVoid)(e)&&y.isHTMLElement(e)&&y.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return y.__deepMost(e,t,!1)}static last(e,t){return y.__deepMost(e,t,!0)}static __deepMost(e,t,i){let o=i?"lastChild":"firstChild",n=i?"previousSibling":"nextSibling",r=null==e?void 0:e[o];if(!r)return null;do{if(t(r))return r;let i=r[o]||r[n];if(!i&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[n]&&r.parentNode!==e)i=null==r?void 0:r[n]}r=i}while(r)return null}static prev(e,t,i,o=!0){return y.find(e,t,i,!1,o)}static next(e,t,i,o=!0){return y.find(e,t,i,!0,o)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,i){let o=e=>y.isElement(e)&&e.classList.contains(t),n=e.parentNode;return i?y.prev(e,o,n):y.next(e,o,n)}static find(e,t,i,o=!0,n=!0){let r=this.nextGen(e,i,o,n),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,o=!0){let n=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)n.push(t),t=i?t.nextSibling:t.previousSibling;n.reverse(),yield*this.runInStack(e,n,i,o),r=r.parentNode}while(r&&r!==t)return null}static each(e,t,i=!0){let o=this.eachGen(e,i),n=o.next();for(;!n.done;){if(!1===t(n.value))return!1;n=o.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,o=!0){for(;t.length;){let n=t.pop();if(o){let e=i?n.lastChild:n.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==n&&(yield n)}}static findWithCurrent(e,t,i,o="nextSibling",n="firstChild"){let r=e;do{if(t(r))return r||null;if(n&&r&&r[n]){let e=y.findWithCurrent(r[n],t,r,o,n);if(e)return e}for(;r&&!r[o]&&r!==i;)r=r.parentNode;r&&r[o]&&r!==i&&(r=r[o])}while(r&&r!==i)return null}static findSibling(e,t=!0,i=e=>!y.isEmptyTextNode(e)){let o=y.sibling(e,t);for(;o&&!i(o);)o=y.sibling(o,t);return o&&i(o)?o:null}static findNotEmptySibling(e,t){return y.findSibling(e,t,e=>{var t;return!y.isEmptyTextNode(e)&&!!(!y.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,v.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,d.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,o=!1){let n=e;if(!n)return null;do{if(t(n))return n;if(n===i||!n.parentNode)break;n=n.parentNode}while(n&&n!==i)return n===i&&o&&t(n)?n:null}static closest(e,t,i){let o,n=e=>e.toLowerCase();if((0,s.isFunction)(t))o=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(n));o=t=>!!(t&&e.has(n(t.nodeName)))}else o=e=>!!(e&&n(t)===n(e.nodeName));return y.up(e,o,i)}static furthest(e,t,i){let o=null,n=null==e?void 0:e.parentElement;for(;n&&n!==i;)t(n)&&(o=n),n=null==n?void 0:n.parentElement;return o}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e.nextSibling)}static before(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||o.globalDocument).createDocumentFragment();(0,n.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,i?t.firstChild:null)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>y.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,o.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase();return t instanceof Set?t.has(i)||t.has(e.tagName.toUpperCase()):i===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,p.attr)(e,t),(0,p.attr)(e,o.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,p.attr)(e,o.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(b,"$2")}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(o.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){i.d(t,{Dom:function(){return o.Dom},LazyWalker:function(){return n.LazyWalker}});var o=i(2748),n=i(70071)},70071:function(e,t,i){i.d(t,{LazyWalker:function(){return s}});var o=i(45219),n=i(2748),r=i(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=n.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!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(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var e;if(this.workNodes){this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<i;){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(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([o.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,i){i.d(t,{EventEmitter:function(){return u}});var o=i(82758),n=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class u{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,n.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),o=i[1]||c.defaultNameSpace;t.call(this,i[0],o)})}__getStore(e){if(!e)throw(0,l.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&delete e[this.__key]}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,n){let c,u,h,p;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,p=i):(c=e,u=t,h=i,p=n),!((0,a.isString)(u)||(0,a.isStringArray)(u))||0===u.length)throw(0,l.error)("Need events names");if(!(0,s.isFunction)(h))throw(0,l.error)("Need event handler");if((0,r.isArray)(c))return c.forEach(e=>{this.on(e,u,h,p)}),this;let f=c,m=this.__getStore(f),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(f)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(u,(e,t)=>{var i,n;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let r={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,r,null==p?void 0:p.top),d(f)){let t=o.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(n=null==p?void 0:p.capture)&&n;v.options=t,f.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(f,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,o=i.get(e)||new Set;o.delete(t),o.size?i.set(e,o):i.delete(e)}one(e,t,i,o){let n,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,r=e,s=t,l=i):(n=e,r=t,s=i,l=o);let c=(...e)=>(this.off(n,r,c),s(...e));return this.on(n,r,c,l),this}off(e,t,i){let o,n,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,n=e,l=t):(o=e,n=t,l=i),(0,r.isArray)(o))return o.forEach(e=>{this.off(e,n,l)}),this;let u=o,h=this.__getStore(u);if(!((0,a.isString)(n)||(0,a.isStringArray)(n))||0===n.length)return h.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let p=e=>{var t;d(u)&&(u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback))},f=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&f(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,s.isFunction)(l)){let o=h.indexOf(e,t,l);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(n,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{f(e,t)}):f(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let i=(0,a.isString)(e)?this:e,o=(0,a.isString)(e)?e:t;if("string"!=typeof o)throw(0,l.error)("Need event names");let n=this.__getStore(i);this.__eachEvent(o,(e,t)=>{let o=n.get(e,t);o&&this.__stopped.push(o),t===c.defaultNameSpace&&n.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let o,n,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...i]:i;if(!d(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&d(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(d(r))this.__triggerNativeEvent(r,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),n=t.syntheticCallback.call(r,e,...u),this.currents.pop(),void 0!==n&&(o=n),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...u]);void 0!==i&&(o=i)})}}),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),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(e){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=o.globalDocument,this.__prepareEvent=e=>{!e.cancelBubble&&(e.composed&&(0,s.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=new Date().getTime()}}function d(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){i.d(t,{Eventify:function(){return o}});class o{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){var i;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var i;let o;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.forEach(e=>{o=e(...t)})),o}constructor(){this.__map=new Map}}},57012:function(e,t,i){let o=new(i(98220)).EventEmitter;i.d(t,["eventEmitter",0,o])},3827:function(e,t,i){i.d(t,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return n.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var o=i(98220),n=i(72757),r=i(73026),s=i(15738)},73026:function(e,t,i){i.d(t,{observable:function(){return c}});var o=i(68345),n=i(59292),r=i(72430),s=i(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,n)=>((0,o.isArray)(t)?t.map(e=>c(e,n)):(i[t]||(i[t]=[]),i[t].push(n)),e),u=(n,...r)=>{if((0,o.isArray)(n))return void n.map(e=>u(e,...r));try{!t[n]&&i[n]&&(t[n]=!0,i[n].forEach(t=>t.call(e,...r)))}finally{t[n]=!1}},d=(t,i=[])=>{let o={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);o[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=o[a];if(!(0,n.isFastEqual)(o[a],t)){u(["beforeChange","beforeChange."+l.join(".")],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):o[a]=t;let n=[];u(["change",...l.reduce((e,t)=>(n.push(t),e.push("change."+n.join(".")),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):o[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(o[a])&&d(o[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,i){i.d(t,{EventHandlersStore:function(){return s}});var o=i(4510),n=i(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,n.assert)(i,"-"),i[e]}}indexOf(e,t,i){let o=this.get(e,t);if(o){for(let e=0;e<o.length;e+=1)if(o[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,o.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,o=!1){let n=this.__store.get(t);n||(n={},this.__store.set(t,n)),void 0===n[e]&&(n[e]=[]),o?n[e].unshift(i):n[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}i.d(t,["defaultNameSpace",0,r])},580:function(e,t,i){i.d(t,{getContainer:function(){return y},getPopupViewRoot:function(){return w},uniqueUid:function(){return g}});var o=i(19306),n=i(70799),r=i(39955),s=i(12475),a=i(29960),l=i(41180),c=i(80568),u=i(41876),d=i(57012),h=i(82758),p=i(22732);let f=1,m=new Set;function g(){function e(){return Math.round(f+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let v=new u.PluginSystem({getContainer:y}),b=new WeakMap;function y(e,t,i="div",l=!1){let u,d=(0,n.isString)(t)?t:t?(0,c.getClassName)(t.prototype):"jodit-utils",h=b.get(e)||{},f=d+i,m=(0,r.isViewObject)(e)?e:e.j;if(!h[f]){let t=m.c;if(u=w(m.o,m.container,e.od.body),l&&(0,o.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let n="style"===i?e.ed.head:e.ed.body;u=(0,o.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:n}let n=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(d)}-container jodit-box`});m.o.nonce&&("style"===i||"script"===i)&&(0,a.attr)(n,"nonce",m.o.nonce),n.classList.add("jodit_theme_"+(m.o.theme||"default")),p.Dom.append(u,n),h[f]=n,e.hookStatus("beforeDestruct",()=>{m.events.off(n),p.Dom.safeRemove(n),delete h[f],Object.keys(h).length&&b.delete(e)}),b.set(e,h),m.events.fire("getContainer",n)}return h[f].classList.remove("jodit_theme_default","jodit_theme_dark"),h[f].classList.add("jodit_theme_"+(m.o.theme||"default")),h[f]}function w(e,t,i){var o,n,r;return null!=(r=null!=(n=null!=(o=e.popupRoot)?o:e.shadowRoot)?n:p.Dom.closest(t,e=>p.Dom.isHTMLElement(e)&&(p.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),i))?r:i}let _=d.eventEmitter;i.d(t,["eventEmitter",0,_,"extendLang",0,e=>{Object.keys(e).forEach(t=>{h.lang[t]?Object.assign(h.lang[t],e[t]):h.lang[t]=e[t]})},"instances",0,{},"modules",0,{},"pluginSystem",0,v])},29999:function(e,t,i){var o=i(68345);i.d(t,["asArray",0,e=>(0,o.isArray)(e)?e:[e]])},76855:function(e,t,i){i.d(t,{asArray:function(){return o.asArray},splitArray:function(){return n.splitArray},toArray:function(){return r.toArray}});var o=i(29999),n=i(46559),r=i(4510)},46559:function(e,t,i){i.d(t,{splitArray:function(){return o}});function o(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,i){var o=i(70722),n=i(58844);i.d(t,["toArray",0,function(...e){var t;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,n.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},91898:function(e,t,i){i.d(t,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=i(13252)},13252:function(e,t,i){i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return n}});var o=i(82758);function n(e,t,...i){return t?o.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){o.globalWindow.clearTimeout(e)}},54765:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return n}});var o=i(82758);function n(){let e;try{let t=o.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return n.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.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 d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return f.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return b.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return w.isPromise},isSet:function(){return _.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return k.isURL},isValidName:function(){return C.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return D.isWindow}});var o=i(54765),n=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),u=i(29673),d=i(60132),h=i(72913),p=i(19306),f=i(45603),m=i(78116),g=i(70722),v=i(84767),b=i(29807),y=i(72430),w=i(14773),_=i(42320),S=i(70799),k=i(26049),C=i(37508),E=i(39955),I=i(86068),D=i(52742)},12045:function(e,t,i){i.d(t,{isAbortError:function(){return o}});function o(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,i){i.d(t,{isArray:function(){return o}});function o(e){return Array.isArray(e)}},87612:function(e,t,i){i.d(t,{isBoolean:function(){return o}});function o(e){return"boolean"==typeof e}},59292:function(e,t,i){i.d(t,{isEqual:function(){return n},isFastEqual:function(){return r}});var o=i(67462);function n(e,t){return e===t||(0,o.stringify)(e)===(0,o.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,i){i.d(t,{isFunction:function(){return o}});function o(e){return"function"==typeof e}},29673:function(e,t,i){i.d(t,{isHtmlFromWord:function(){return o}});function o(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==e.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==e.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==e.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==e.search(/style='[^']*mso-/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}},58487:function(e,t,i){var o=i(70799);i.d(t,["isHTML",0,e=>(0,o.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))])},60132:function(e,t,i){i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var o=i(2748),n=i(23282),r=i(86068);function s(e){return!(0,r.isVoid)(e)&&(0,n.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,n.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&o.Dom.isElement(e.container)}},72913:function(e,t,i){i.d(t,{isInt:function(){return r}});var o=i(29807),n=i(70799);function r(e){return(0,n.isString)(e)&&(0,o.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,i){i.d(t,{isJoditObject:function(){return n}});var o=i(23282);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,i){var o=i(70799);i.d(t,["isLicense",0,e=>(0,o.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)])},78116:function(e,t,i){i.d(t,{isMarker:function(){return n}});var o=i(2748);function n(e){return o.Dom.isMarker(e)}},70722:function(e,t,i){i.d(t,{isNativeFunction:function(){return o}});function o(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===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(e+""))}},84767:function(e,t,i){i.d(t,{isNumber:function(){return o}});function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,i){i.d(t,{isNumeric:function(){return n}});var o=i(70799);function n(e){if((0,o.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},72430:function(e,t,i){i.d(t,{isPlainObject:function(){return n}});var o=i(52742);function n(e){return!(!e||"object"!=typeof e||e.nodeType||(0,o.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,i){i.d(t,{isPromise:function(){return o}});function o(e){return e&&"function"==typeof e.then}},42320:function(e,t,i){i.d(t,{isSet:function(){return n}});var o=i(23282);function n(e){return!!e&&(0,o.isFunction)(e.has)&&(0,o.isFunction)(e.add)&&(0,o.isFunction)(e.delete)}},70799:function(e,t,i){i.d(t,{isString:function(){return n},isStringArray:function(){return r}});var o=i(68345);function n(e){return"string"==typeof e}function r(e){return(0,o.isArray)(e)&&n(e[0])}},26049:function(e,t,i){i.d(t,{isURL:function(){return n}});var o=i(82758);function n(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=o.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,i){i.d(t,{isValidName:function(){return o}});function o(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,i){i.d(t,{isViewObject:function(){return n}});var o=i(23282);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,i){i.d(t,{isVoid:function(){return o}});function o(e){return null==e}},52742:function(e,t,i){i.d(t,{isWindow:function(){return o}});function o(e){return null!=e&&e===e.window}},35278:function(e,t,i){i.d(t,["colorToHex",0,e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),o=parseInt(t[3],10),n=(parseInt(t[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;n.length<6;)n="0"+n;return t[1]+"#"+n}])},32574:function(e,t,i){i.d(t,{applyStyles:function(){return d}});var o=i(82758),n=i(2748),r=i(90723),s=i(49055),a=i(29960),l=i(41180),c=i(76078);function u(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function d(e){let t=/<html(?:\s[^>]*)?>/i.exec(e);if(!t)return e;let i=(e=e.substring(t.index)).toLowerCase().lastIndexOf("</html>");-1!==i&&(e=e.substring(0,i+7));let d=o.globalDocument.createElement("iframe");(0,l.css)(d,"display","none"),n.Dom.append(o.globalDocument.body,d);let h="";try{let t=d.contentDocument||(d.contentWindow?d.contentWindow.document:null);if(t){t.open(),t.write(e),t.close();let i=(0,r.readWordListItems)(t.body);n.Dom.each(t.body,e=>{n.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")&&n.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let i=t.styleSheets[e].cssRules;for(let e=0;e<i.length;e+=1)""!==i[e].selectorText&&(0,c.$$)(i[e].selectorText,t.body).forEach(t=>{t.style.cssText=u(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!o.IS_PROD)throw e}(0,r.wrapWordListItems)(i),n.Dom.each(t.body,e=>{if(n.Dom.isElement(e)){let t=(0,a.attr)(e,"style");t&&(e.style.cssText=u(t)),(0,a.attr)(e,"style")||(0,a.attr)(e,"style",null)}}),h=t.firstChild?(0,s.trim)(t.body.innerHTML):""}}catch(e){}finally{n.Dom.safeRemove(d)}return h&&(e=h),(0,s.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,i){i.d(t,{cleanFromWord:function(){return c}});var o=i(82758),n=i(2748),r=i(4510),s=i(90723),a=i(49055),l=i(29960);function c(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=o.globalDocument.createElement("div");i.innerHTML=e;let a=[],c=(0,s.readWordListItems)(i);i.firstChild&&n.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":a.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":n.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,l.attr)(e,"style")||"")){a.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,l.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:a.push(e)}}),n.Dom.safeRemove.apply(null,a),(0,s.wrapWordListItems)(c),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(a.trim).join(`
10
- `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(e,t,i){i.d(t,{htmlspecialchars:function(){return n}});var o=i(82758);function n(e){let t=o.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},75275:function(e,t,i){i.d(t,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return n.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},nl2br:function(){return s.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var o=i(32574),n=i(53212),r=i(53326),s=i(45971),a=i(86518),l=i(91003)},45971:function(e,t,i){i.d(t,{nl2br:function(){return o}});function o(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}},86518:function(e,t,i){i.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return p}});var o=i(2748),n=i(43555),r=i(29960);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var i;if(!o.Dom.isElement(e)&&!o.Dom.isFragment(e))return;let r=[];for(let t of(o.Dom.each(e,e=>{o.Dom.isElement(e)&&o.Dom.up(e.parentNode,a)&&r.push(e)}),r))o.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==o.Dom.up(e,a))return!1;for(let t=e.parentElement;t;t=t.parentElement){let e=t.nodeName.toLowerCase();if("math"===e||"svg"===e)break;if(s.has(e))return!1}return!0}(t)&&o.Dom.safeRemove(t);let l=[];for(let t of(o.Dom.each(e,e=>{o.Dom.isElement(e)&&"NOSCRIPT"===e.nodeName&&l.push(e)}),l))o.Dom.safeRemove(t);let u=null!=(i=t.removeEventAttributes)?i:t.removeOnError,d=e=>{if(o.Dom.isElement(e)&&(u&&c(e),p(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,n.attr)(e,"target"))){let t=((0,n.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,n.attr)(e,"rel",t.join(" "))}};d(e),o.Dom.each(e,d)}function c(e){if(!o.Dom.isElement(e))return!1;let t=!1,i=[];for(let t=0;t<e.attributes.length;t++)e.attributes[t].name.toLowerCase().startsWith("on")&&i.push(e.attributes[t].name);for(let o of i)(0,r.attrRaw)(e,o,null),t=!0;return t}let u=["src","data","action","formaction","poster","background","xlink:href"],d=new Set(["iframe","frame","object","embed"]);function h(e,t){let i=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(i)||/^data:(?:text\/html|application\/xhtml)/.test(i))||/^data:image\/svg/.test(i)&&d.has(t)}function p(e,{safeJavaScriptLink:t,removeOnError:i,removeEventAttributes:s}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(e))return!1;let a=!1;s&&c(e)&&(a=!0),i&&e.hasAttribute("onerror")&&((0,n.attr)(e,"onerror",null),a=!0);let l=e.nodeName.toLowerCase(),d=(0,n.attr)(e,"href");if(t&&d&&h(d,l)){let t="u">typeof location?location.protocol:"http:";(0,n.attr)(e,"href",t+"//"+d),a=!0}if(t)for(let t of(e.hasAttribute("srcdoc")&&((0,n.attr)(e,"srcdoc",null),a=!0),u)){let i=(0,r.attrRaw)(e,t);i&&h(i,l)&&((0,n.attr)(e,t,null),a=!0)}return a}},91003:function(e,t,i){i.d(t,{stripTags:function(){return function e(t,i=document,u=null,d=!1){let h=i.createElement("div");(0,n.isString)(t)?h.innerHTML=t:o.Dom.append(h,t);let p=[];o.Dom.each(h,e=>{o.Dom.isElement(e)&&p.push(e)});let f=new Set,m=()=>{let e=i.createTextNode(d?"%%%jodit-single-br%%%":" ");return f.add(e),e};return p.forEach(t=>{if(!t.parentNode)return;if(u&&o.Dom.isTag(t,u)){let n=t.nodeName.toLowerCase(),r=o.Dom.isTag(t,c)?`%%%jodit-single-${n}%%%`:`%%%jodit-${n}%%%${e(t.innerHTML,i,u,d)}%%%/jodit-${n}%%%`;o.Dom.before(t,i.createTextNode(r)),o.Dom.safeRemove(t);return}if(o.Dom.isTag(t,l))return void o.Dom.safeRemove(t);if(!o.Dom.isTag(t,s))return;let n=t.previousSibling;o.Dom.isTag(t,a)&&n&&!f.has(n)&&!(o.Dom.isText(n)&&/\s$/.test(n.nodeValue||""))&&o.Dom.before(t,m());let r=t.nextSibling;!(o.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&o.Dom.before(r,m())}),(0,r.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,o)=>`<${t?"/":""}${o}>`)}}});var o=i(2748),n=i(70799),r=i(49055);let s=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr","ul","ol","li"]),a=new Set(["ul","ol"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},90723:function(e,t,i){i.d(t,{readWordListItems:function(){return a},wrapWordListItems:function(){return l}});var o=i(2748),n=i(4510),r=i(29960);let s={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3};function a(e){let t=[];return(0,n.toArray)(e.querySelectorAll("p")).forEach(e=>{let i=/mso-list:\s*l(\d+)\s+level(\d+)(?:\s+lfo(\d+))?/i.exec((0,r.attr)(e,"style")||"");if(!i)return;let a=(0,n.toArray)(e.querySelectorAll("[style]")).find(e=>/mso-list:\s*ignore/i.test((0,r.attr)(e,"style")||""));t.push({paragraph:e,list:`${i[1]}:${i[3]||""}`,level:Number(i[2]),...function(e){let t=e.replace(/\s+/g,""),i=/^\(?(?:\d+\.)*(\d+)[.)]?$/.exec(t);if(i)return{tag:"ol",listStyleType:null,start:Number(i[1])};let o=/^\(?([a-z]+|[A-Z]+)[.)]$/.exec(t);if(o){let e=o[1],t=e.toLowerCase(),i=e!==t;if(/^[ivxlcdm]+$/.test(t)&&(t.length>1||"i"===t))return{tag:"ol",listStyleType:i?"upper-roman":"lower-roman",start:function(e){let t=0;for(let i=0;i<e.length;i+=1){let o=s[e[i]];t+=(s[e[i+1]]||0)>o?-o:o}return t}(t)};if(/^([a-z])\1*$/.test(t))return{tag:"ol",listStyleType:i?"upper-alpha":"lower-alpha",start:(t.length-1)*26+t.charCodeAt(0)-96}}return{tag:"ul",listStyleType:null,start:1}}((null==a?void 0:a.textContent)||"")}),a&&function(e,t){let i=e.parentNode;for(o.Dom.safeRemove(e);i&&i!==t&&o.Dom.isElement(i)&&o.Dom.isEmpty(i);){let e=i.parentNode;o.Dom.safeRemove(i),i=e}}(a,e)}),t}function l(e){let t=[],i=e.map((t,i)=>{var n;return i>0&&(n=e[i-1],o.Dom.findSibling(t.paragraph,!0,e=>!o.Dom.isEmptyTextNode(e)&&!o.Dom.isComment(e))===n.paragraph)});e.forEach((e,s)=>{let{paragraph:a}=e;for(i[s]||(t=[]);t.length&&t[t.length-1].level>e.level;)t.pop();let l=t[t.length-1];l&&l.level===e.level&&l.list!==e.list&&(t.pop(),l=t[t.length-1]);let c=a.ownerDocument;if(!l||l.level<e.level){let i=c.createElement(e.tag);e.listStyleType&&(i.style.listStyleType=e.listStyleType),"ol"===e.tag&&1!==e.start&&(0,r.attr)(i,"start",e.start),l&&l.li?l.li.appendChild(i):o.Dom.before(a,i),l={level:e.level,list:e.list,element:i},t.push(l)}let u=c.createElement("li");(0,n.toArray)(a.attributes).forEach(e=>{"class"!==e.name&&u.setAttribute(e.name,e.value)}),u.style.removeProperty("margin-left"),u.style.removeProperty("text-indent"),(0,r.attr)(u,"style")||(0,r.attr)(u,"style",null),o.Dom.moveContent(a,u),o.Dom.safeRemove(a),l.element.appendChild(u),l.li=u})}},21537:function(e,t,i){i.r(t),i.d(t,{$$:function(){return d.$$},CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return d.ConnectionError},LimitedStack:function(){return d.LimitedStack},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},OptionsError:function(){return d.OptionsError},UNSAFE_PROTO_KEYS:function(){return d.UNSAFE_PROTO_KEYS},abort:function(){return d.abort},alignElement:function(){return d.alignElement},alreadyLoadedList:function(){return d.alreadyLoadedList},appendScriptAsync:function(){return d.appendScriptAsync},appendStyleAsync:function(){return d.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return o.asArray},assert:function(){return d.assert},attr:function(){return d.attr},attrRaw:function(){return d.attrRaw},browser:function(){return d.browser},buildQuery:function(){return d.buildQuery},call:function(){return d.call},callPromise:function(){return d.callPromise},callThis:function(){return d.callThis},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearAlign:function(){return d.clearAlign},clearCenterAlign:function(){return d.clearCenterAlign},clearTimeout:function(){return n.clearTimeout},cns:function(){return d.cns},colorToHex:function(){return s.colorToHex},completeUrl:function(){return d.completeUrl},connection:function(){return d.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},createMediaWrapper:function(){return d.createMediaWrapper},css:function(){return d.css},cssInline:function(){return d.cssInline},cssPath:function(){return d.cssPath},ctrlKey:function(){return d.ctrlKey},dataBind:function(){return d.dataBind},defaultLanguage:function(){return d.defaultLanguage},error:function(){return d.error},fastClone:function(){return d.fastClone},fuzzySearchIndex:function(){return u.fuzzySearchIndex},get:function(){return d.get},getAlignClasses:function(){return d.getAlignClasses},getClassName:function(){return d.getClassName},getContentWidth:function(){return c.getContentWidth},getDataTransfer:function(){return d.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getHAlign:function(){return d.getHAlign},getMediaWrapper:function(){return d.getMediaWrapper},getPropertyDescriptor:function(){return d.getPropertyDescriptor},getScrollParent:function(){return c.getScrollParent},getWrappedMedia:function(){return d.getWrappedMedia},getXPathByElement:function(){return d.getXPathByElement},hAlignElement:function(){return d.hAlignElement},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},humanSizeToBytes:function(){return d.humanSizeToBytes},i18n:function(){return u.i18n},inView:function(){return d.inView},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isAtom:function(){return d.isAtom},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isUnsafeProtoKey:function(){return d.isUnsafeProtoKey},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return u.kebabCase},keepNames:function(){return d.keepNames},keys:function(){return d.keys},loadImage:function(){return d.loadImage},loadNext:function(){return d.loadNext},loadNextStyle:function(){return d.loadNextStyle},markAsAtomic:function(){return d.markAsAtomic},markDeprecated:function(){return d.markDeprecated},markOwner:function(){return d.markOwner},memorizeExec:function(){return d.memorizeExec},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},options:function(){return d.options},parseQuery:function(){return d.parseQuery},position:function(){return c.position},prepareEmbedCode:function(){return d.prepareEmbedCode},prepareMedia:function(){return d.prepareMedia},previewBox:function(){return d.previewBox},refs:function(){return d.refs},reset:function(){return d.reset},resolveElement:function(){return d.resolveElement},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return d.scrollIntoViewIfNeeded},set:function(){return d.set},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},wrapMedia:function(){return d.wrapMedia}});var o=i(76855),n=i(91898),r=i(27613),s=i(35278),a=i(75275),l=i(71521),c=i(56175),u=i(59007),d=i(43555)},71521:function(e,t,i){i.d(t,{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 r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var o=i(21224),n=i(3760),r=i(49033),s=i(12972),a=i(9992),l=i(70091),c=i(46334),u=i(37406)},21224:function(e,t,i){var o=i(35278),n=i(49055);i.d(t,["normalizeColor",0,e=>{let t=["#"],i=(0,o.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,n.trim)(i.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}])},3760:function(e,t,i){i.d(t,{normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var o=i(29807),n=i(86068),r=i(35278),s=i(12475);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,n.isVoid)(t)&&a.test(e)&&(0,o.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}i.d(t,["NUMBER_FIELDS_REG",0,a])},49033:function(e,t,i){i.d(t,{normalizeKeyAliases:function(){return r}});var o=i(82758),n=i(49055);function r(e){let t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,n.trim)(e.toLowerCase())).map(e=>o.KEY_ALIASES[e]||e).sort((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},12972:function(e,t,i){i.d(t,["normalizeLicense",0,(e,t=8)=>{let i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}])},9992:function(e,t,i){var o=i(49055);i.d(t,["normalizePath",0,(...e)=>e.filter(e=>(0,o.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")])},70091:function(e,t,i){i.d(t,["normalizeRelativePath",0,e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")])},46334:function(e,t,i){i.d(t,["normalizeSize",0,(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()])},37406:function(e,t,i){i.d(t,["normalizeUrl",0,(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")])},44506:function(e,t,i){i.d(t,["getContentWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}])},35224:function(e,t,i){i.d(t,{getFixedPositionOffset:function(){return o}});function o(e){var t,i;let o=null==(t=e.ownerDocument)?void 0:t.defaultView,n=e.parentElement;for(;o&&n;){if(""!==(i=o.getComputedStyle(n)).transform&&"none"!==i.transform||""!==i.perspective&&"none"!==i.perspective||""!==i.filter&&"none"!==i.filter||"transform"===i.willChange||"perspective"===i.willChange||"filter"===i.willChange||"paint"===i.contain||"layout"===i.contain||"strict"===i.contain||"content"===i.contain){let e=n.getBoundingClientRect();return{x:e.left,y:e.top}}n=n.parentElement}return{x:0,y:0}}},16442:function(e,t,i){i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=n.Dom.isHTMLElement(t),s=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=i(82758),n=i(2748),r=i(43555)},56175:function(e,t,i){i.d(t,{getContentWidth:function(){return o.getContentWidth},getFixedPositionOffset:function(){return n.getFixedPositionOffset},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return c.position},size:function(){return a.size}});var o=i(44506),n=i(35224),r=i(16442),s=i(81630),a=i(21496),l=i(81284),c=i(5700)},81630:function(e,t,i){i.d(t,["innerWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}])},21496:function(e,t,i){i.d(t,{size:function(){return n}});var o=i(27613);function n(e){return(0,o.isString)(e)||(0,o.isArray)(e)?e.length:(0,o.isPlainObject)(e)?Object.keys(e).length:0}},81284:function(e,t,i){let o=(e,t,i,n=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={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,d=u.pageYOffset||c.scrollTop||l.scrollTop,h=u.pageXOffset||c.scrollLeft||l.scrollLeft,p=c.clientTop||l.clientTop||0,f=c.clientLeft||l.clientLeft||0,m=t.iframe;if(!n&&t&&t.options&&t.o.iframe&&m){let{top:e,left:i}=o(m,t,t.od,!0);s=r.top+e,a=r.left+i}else s=r.top+d-p,a=r.left+h-f;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}};i.d(t,["offset",0,o])},5700:function(e,t,i){i.d(t,{position:function(){return function e(t,i,n=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,o.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!n){let{left:t,top:o}=e(i.iframe,i,!0);l+=t,c+=o}return{left:Math.round(l),top:Math.round(c),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var o=i(19306)},87058:function(e,t,i){i.d(t,["camelCase",0,e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())])},67477:function(e,t,i){i.d(t,{fuzzySearchIndex:function(){return n}});var o=i(82758);function n(e,t,i=0,r=1){let s=0,a,l=-1,c=0,u=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,c++,u=0,-1===l&&(l=a)):s>0&&(u>=r&&t[a]!==o.INVISIBLE_SPACE?(s=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return s===e.length?[l,c]:[-1,0]}},56967:function(e,t,i){i.d(t,{i18n:function(){return c}});var o=i(82758),n=i(70799),r=i(36409),s=i(43555),a=i(6441);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,o=i.exec(e),n=e,r=0;for(;o&&void 0!==t[r];)n=n.replace(o[0],t[r].toString()),r+=1,o=i.exec(e);return n};function c(e,t,i){if(!(0,n.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!(null==i?void 0:i.debugLanguage),u={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,s.defaultLanguage)(null==i?void 0:i.language,h),f=t=>{if(!t)return;if((0,n.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,n.isString)(t[i]))return d(t[i]);let o=(0,r.ucfirst)(e);if((0,n.isString)(t[o]))return d(t[o])};void 0!==o.lang[p]?u=o.lang[p]:c||(u=void 0!==o.lang[h]?o.lang[h]:o.lang.en);let m=null==i?void 0:i.i18n;if(m&&m[p]){let e=f(m[p]);if(e)return e}return f(u)||(!c&&o.lang.en&&(0,n.isString)(o.lang.en[e])&&o.lang.en[e]?d(o.lang.en[e]):c?"{"+e+"}":(o.IS_PROD,d(e)))}i.d(t,["sprintf",0,l])},59007:function(e,t,i){i.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return n.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.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(87058),n=i(67477),r=i(56967),s=i(12475),a=i(67462),l=i(49055),c=i(36409)},12475:function(e,t,i){i.d(t,["CamelCaseToKebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"kebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()])},67462:function(e,t,i){i.d(t,{stringify:function(){return o}});function o(e,t={}){if("object"!=typeof e)return e+"";let i=new Set(t.excludeKeys),n=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(n.get(t))return"[refObject]";n.set(t,!0)}return t}},t.prettify)}},49055:function(e,t,i){i.d(t,{trim:function(){return n},trimChars:function(){return r},trimInv:function(){return s}});var o=i(82758);function n(e){return e.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(e,t,i){i.d(t,{ucfirst:function(){return o}});function o(e){return e.length?e[0].toUpperCase()+e.substring(1):""}},25726:function(e,t,i){i.d(t,{alignElement:function(){return p},clearAlign:function(){return d},getAlignClasses:function(){return c},getHAlign:function(){return u},hAlignElement:function(){return function e(t,i,o){var n;if(o){e(t,"normal"),Object.values(o).forEach(e=>l(e).forEach(e=>t.classList.remove(...e))),t.classList.add(...null!=(n=l(o[i||"normal"])[0])?n:[]),["class","style"].forEach(e=>{var i;(null==(i=(0,r.attr)(t,e))?void 0:i.trim())||(0,r.attr)(t,e,null)});return}i&&"normal"!==i?"center"!==i?((0,s.css)(t,"float",i),(0,s.clearCenterAlign)(t)):(0,s.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,s.css)(t,"float")&&-1!==["right","left"].indexOf((0,s.css)(t,"float").toString().toLowerCase())&&(0,s.css)(t,"float",""),(0,s.clearCenterAlign)(t))}}});var o=i(22732),n=i(68345),r=i(29960),s=i(41180),a=i(61477);let l=e=>((0,n.isArray)(e)?e:[null!=e?e:""]).map(e=>e.split(/\s+/).filter(Boolean)).filter(e=>e.length);function c(e,t){var i,n;if(!t)return null;let r=o.Dom.isTag(t,new Set(["jodit","jodit-media"]))?t.firstElementChild:(0,a.getWrappedMedia)(e,t);return null!=(n=null==(i=e.o.alignClasses)?void 0:i[(null!=r?r:t).nodeName.toLowerCase()])?n:null}function u(e,t){if(t){for(let i of["left","right","center","normal"])if(l(t[i]).some(t=>t.every(t=>e.classList.contains(t))))return i}let i=(0,s.cssInline)(e,"float").toLowerCase();return"left"===i||"right"===i?i:"block"===(0,s.css)(e,"display")&&"auto"===(0,s.cssInline)(e,"margin-left")&&"auto"===(0,s.cssInline)(e,"margin-right")?"center":"normal"}function d(e){o.Dom.each(e,e=>{o.Dom.isHTMLElement(e)&&(0,s.cssInline)(e,"textAlign")&&((0,s.css)(e,"textAlign",""),((0,r.attr)(e,"style")||"").trim().length||(0,r.attr)(e,"style",null))})}let h=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function p(e,t){if(o.Dom.isNode(t)&&o.Dom.isElement(t)){d(t);let i=h.get(e.toLowerCase());i&&(0,s.css)(t,"textAlign",i)}}},63799:function(e,t,i){i.d(t,{loadNext:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?c(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?u(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}}});var o=i(2748),n=i(70799),r=i(29960),s=i(66292);let a=new Map,l=e=>(t,i)=>{if(a.has(i))return a.get(i);let o=e(t,i);return a.set(i,o),o},c=l((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let a=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(t)});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.e.one(a,"error",n).one(a,"load",i),o.Dom.append(e.od.body,a)})),u=l((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let a=e.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.isInDestruct||e.e.on(a,"load",()=>i(a)).on(a,"error",n),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?o.Dom.append(e.o.shadowRoot,a):o.Dom.append(e.od.body,a)}));i.d(t,["alreadyLoadedList",0,a,"appendScriptAsync",0,c,"appendStyleAsync",0,u])},38837:function(e,t,i){i.d(t,{assert:function(){return n}});class o extends Error{constructor(e){super(e),this.name="AssertionError"}}function n(e,t){if(!e)throw new o("Assertion failed: "+t)}},29960:function(e,t,i){i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,o.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(i))return Object.keys(i).forEach(o=>{let r=i[o];(0,n.isPlainObject)(r)&&"style"===o?(0,a.css)(t,r):("className"===o&&(o="class"),e(t,o,r))}),null;let c=(0,s.CamelCaseToKebabCase)(i);if(/^-/.test(c)){let i=e(t,"data"+c);if(i)return i;c=c.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(c)&&t.removeAttribute(c);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===c||"height"===c)&&(e=e.replace("px","")),t.setAttribute(c,e),e}return t.getAttribute(c)}},attrRaw:function(){return l}});var o=i(23282),n=i(72430),r=i(70799),s=i(12475),a=i(41180);function l(e,t,i){if(void 0===i)return e.getAttribute(t);if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,i)}},97639:function(e,t,i){i.d(t,["browser",0,e=>{let t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e}])},44710:function(e,t,i){var o=i(72430);let n=(e,t)=>{let i=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];i.push((0,o.isPlainObject)(l)?n(l,a):r(a)+"="+r(l))}return i.join("&")};i.d(t,["buildQuery",0,n])},66292:function(e,t,i){var o=i(82758);i.d(t,["completeUrl",0,e=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)])},68934:function(e,t,i){i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,u.keys)(t,!1).reduce((i,o)=>(i[o]=(0,n.isPlainObject)(t[o])?e(t[o]):t[o],i),{})}},ConfigFlatten:function(){return d},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(o=>{if((0,c.isUnsafeProtoKey)(o))return;let r=i[o],s=t[o];(0,n.isPlainObject)(r)&&(0,n.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[o]=r})}},ConfigProto:function(){return function e(t,i,u=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let d=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==d.presets[t.preset]){let e=d.presets[t.preset];Object.keys(e).forEach(i=>{(0,s.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let h={};return Object.keys(t).forEach(r=>{if((0,c.isUnsafeProtoKey)(r))return;let s=t[r],a=i?i[r]:null;if((0,n.isPlainObject)(s)&&(0,n.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,u+1);return}if(0!==u&&(0,o.isArray)(s)&&!(0,l.isAtom)(s)&&(0,o.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,i),h}}});var o=i(68345),n=i(72430),r=i(70799),s=i(86068),a=i(6441),l=i(97735),c=i(69175),u=i(37790);function d(e){return(0,u.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},55877:function(e,t,i){var o=i(82758),n=i(26049),r=i(82501);i.d(t,["convertMediaUrlToVideoEmbed",0,(e,{width:t=400,height:i=345}={})=>{if(!(0,n.isURL)(e))return e;let s=o.globalDocument.createElement("a");s.href=e,t||(t=400),i||(i=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let o=s.pathname.split("/").filter(Boolean),n=o.findIndex(e=>/^\d+$/.test(e));if(-1===n)return e;let r=o[n],l=o[n+1];return l&&0===n&&(r+="/"+l),'<iframe width="'+t+'" height="'+i+'" src="'+a+"//player.vimeo.com/video/"+r+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let o=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(o=o.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+i+'" src="'+a+"//www.youtube.com/embed/"+o+'" frameborder="0" allowfullscreen></iframe>':e}}return e}])},41180:function(e,t,i){i.d(t,{css:function(){return l},cssInline:function(){return c}});var o=i(87612),n=i(72430),r=i(3760),s=i(87058),a=i(12475);function l(e,t,i,c=!1){if((0,o.isBoolean)(i)&&(c=i,i=void 0),(0,n.isPlainObject)(t)||void 0!==i){let o=(e,t,i)=>{void 0!==(i=(0,r.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,r.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,n.isPlainObject)(t)){let i=Object.keys(t);for(let n=0;n<i.length;n+=1)o(e,(0,s.camelCase)(i[n]),t[i[n]])}else o(e,(0,s.camelCase)(t),i);return""}let u=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),p=e.style[t],f="";return void 0!==p&&""!==p?f=p:h&&!c&&(f=h.getComputedStyle(e).getPropertyValue(u)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(f.toString())&&(f=parseInt(f.toString(),10)),(0,r.normalizeCssValue)(t,f)}function c(e,t){return e.style.getPropertyValue((0,a.kebabCase)(t))}i.d(t,["clearCenterAlign",0,e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}])},15456:function(e,t,i){i.d(t,["ctrlKey",0,e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}])},86583:function(e,t,i){var o=i(39955);let n=new WeakMap;i.d(t,["dataBind",0,(e,t,i)=>{let r=n.get(e);if(!r){r={},n.set(e,r);let t=null;(0,o.isViewObject)(e.j)&&(t=e.j.e),(0,o.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{n.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}])},96325:function(e,t,i){var o=i(82758),n=i(70799);i.d(t,["defaultLanguage",0,(e,t="en")=>"auto"!==e&&(0,n.isString)(e)?e:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t])},82760:function(e,t,i){i.d(t,{connection:function(){return r},error:function(){return n},options:function(){return s}});var o=i(32880);function n(e){return TypeError(e)}function r(e){return new o.ConnectionError(e)}function s(e){return new o.OptionsError(e)}},93661:function(e,t,i){i.d(t,{abort:function(){return o}});function o(e="Aborted"){return new DOMException(e,"AbortError")}},86397:function(e,t,i){i.d(t,{ConnectionError:function(){return o}});class o extends Error{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}},32880:function(e,t,i){i.d(t,{ConnectionError:function(){return n.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return o.abort}});var o=i(93661),n=i(86397),r=i(57865)},57865:function(e,t,i){i.d(t,{OptionsError:function(){return o}});class o extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}},89890:function(e,t,i){i.d(t,{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},options:function(){return o.options}});var o=i(82760),n=i(32880)},97735:function(e,t,i){i.d(t,{fastClone:function(){return s},isAtom:function(){return n},markAsAtomic:function(){return r}});var o=i(67462);function n(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,o.stringify)(e))}},80568:function(e,t,i){var o=i(23282);let n=new Map;i.d(t,["getClassName",0,e=>{var t;if((0,o.isFunction)(e.className))return e.className();let i=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(n.has(i))return n.get(i);if(i.name)return i.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(r);return s?s[1]:""},"keepNames",0,n])},94643:function(e,t,i){i.d(t,{get:function(){return r}});var o=i(70799),n=i(86068);function r(e,t){if(!(0,o.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,n.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,n.isVoid)(r)?null:r}},38420:function(e,t,i){i.d(t,["humanSizeToBytes",0,e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],o=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?o*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}])},43555:function(e,t,i){i.d(t,{$$:function(){return j.$$},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return g.ConnectionError},LimitedStack:function(){return x.LimitedStack},OptionsError:function(){return g.OptionsError},UNSAFE_PROTO_KEYS:function(){return _.UNSAFE_PROTO_KEYS},abort:function(){return g.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return n.alreadyLoadedList},appendScriptAsync:function(){return n.appendScriptAsync},appendStyleAsync:function(){return n.appendStyleAsync},assert:function(){return r.assert},attr:function(){return s.attr},attrRaw:function(){return s.attrRaw},browser:function(){return a.browser},buildQuery:function(){return l.buildQuery},call:function(){return P.call},callPromise:function(){return P.callPromise},callThis:function(){return P.callThis},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},cns:function(){return S.cns},completeUrl:function(){return c.completeUrl},connection:function(){return g.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},createMediaWrapper:function(){return k.createMediaWrapper},css:function(){return h.css},cssInline:function(){return h.cssInline},cssPath:function(){return j.cssPath},ctrlKey:function(){return p.ctrlKey},dataBind:function(){return f.dataBind},defaultLanguage:function(){return m.defaultLanguage},error:function(){return g.error},fastClone:function(){return v.fastClone},get:function(){return b.get},getAlignClasses:function(){return o.getAlignClasses},getClassName:function(){return y.getClassName},getDataTransfer:function(){return P.getDataTransfer},getHAlign:function(){return o.getHAlign},getMediaWrapper:function(){return k.getMediaWrapper},getPropertyDescriptor:function(){return P.getPropertyDescriptor},getWrappedMedia:function(){return k.getWrappedMedia},getXPathByElement:function(){return j.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return T.inView},isAtom:function(){return v.isAtom},isUnsafeProtoKey:function(){return _.isUnsafeProtoKey},keepNames:function(){return y.keepNames},keys:function(){return P.keys},loadImage:function(){return P.loadImage},loadNext:function(){return n.loadNext},loadNextStyle:function(){return n.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return S.markDeprecated},markOwner:function(){return P.markOwner},memorizeExec:function(){return P.memorizeExec},options:function(){return g.options},parseQuery:function(){return C.parseQuery},prepareEmbedCode:function(){return E.prepareEmbedCode},prepareMedia:function(){return E.prepareMedia},previewBox:function(){return I.previewBox},refs:function(){return j.refs},reset:function(){return D.reset},resolveElement:function(){return j.resolveElement},scrollIntoViewIfNeeded:function(){return T.scrollIntoViewIfNeeded},set:function(){return A.set},wrapMedia:function(){return k.wrapMedia}});var o=i(25726),n=i(63799),r=i(38837),s=i(29960),a=i(97639),l=i(44710),c=i(66292),u=i(68934),d=i(55877),h=i(41180),p=i(15456),f=i(86583),m=i(96325),g=i(89890),v=i(97735),b=i(94643),y=i(80568),w=i(38420),_=i(69175),S=i(95942),k=i(61477),C=i(82501),E=i(96437),I=i(11628),D=i(58844),T=i(26395),j=i(76078),A=i(3703),x=i(50535),P=i(37790)},69175:function(e,t,i){i.d(t,{isUnsafeProtoKey:function(){return n}});let o=["__proto__","constructor","prototype"];function n(e){return -1!==o.indexOf(e)}i.d(t,["UNSAFE_PROTO_KEYS",0,o])},95942:function(e,t,i){i.d(t,{markDeprecated:function(){return n}});let o=console;function n(e,t=[""],i=null){return(...n)=>(o.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...n))}i.d(t,["cns",0,o])},61477:function(e,t,i){i.d(t,{createMediaWrapper:function(){return a},getMediaWrapper:function(){return s},getWrappedMedia:function(){return r},wrapMedia:function(){return l}});var o=i(2748);let n=(e,t)=>o.Dom.isHTMLElement(e)&&e.nodeName.toLowerCase()===t.tag.toLowerCase()&&e.classList.contains(t.className);function r(e,t){var i;for(let[o,r]of Object.entries(null!=(i=e.o.mediaWrappers)?i:{}))if(n(t,r)){let e=t.querySelector(o);if(e)return e}return null}function s(e,t){return o.Dom.closest(t,t=>!!r(e,t),e.editor)}function a(e,t){var i;let o=null==(i=e.o.mediaWrappers)?void 0:i[t.toLowerCase()];return o?e.createInside.element(o.tag,{class:o.className,contenteditable:!1,draggable:!0}):null}function l(e,t){let i=a(e,t.nodeName);return i?(t.parentNode&&o.Dom.before(t,i),o.Dom.append(i,t),i):t}},82501:function(e,t,i){i.d(t,["parseQuery",0,e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let o=i[e].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t}])},96437:function(e,t,i){i.d(t,{prepareEmbedCode:function(){return s},prepareMedia:function(){return r}});var o=i(25726),n=i(61477);function r(e,t){let i=(0,n.wrapMedia)(e,t),{mediaDefaultAlign:r}=e.o;return r&&"normal"!==r&&(0,o.hAlignElement)(i,r,(0,o.getAlignClasses)(e,i)),i}function s(e,t){let i=e.createInside.div();i.innerHTML=t.trim();let o=i.firstElementChild;return o&&1===i.childNodes.length?r(e,o):t}},11628:function(e,t,i){i.d(t,{previewBox:function(){return a}});var o=i(2748),n=i(70799),r=i(29960),s=i(41180);function a(e,t,i="px",l=null){let c=[],u=function(e,t){let i=[],n=[];o.Dom.each(e.editor,e=>{o.Dom.isTag(e,"img")&&n.push(e)});try{n.forEach(n=>{let s=[(0,r.attr)(n,"width"),(0,r.attr)(n,"height"),(0,r.attr)(n,"src")];(0,r.attr)(n,{width:n.offsetWidth+t,height:n.offsetHeight+t});let a=e.createInside.a();o.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(n,"src")||""),(0,r.attr)(n,"src",a.href),o.Dom.safeRemove(a),i.push(()=>{(0,r.attr)(n,{src:s[2],width:s[0]||null,height:s[1]||null})})})}catch(e){throw i.forEach(e=>e()),i.length=0,e}return i}(e,i);try{let a=e.e.fire("beforePreviewBox",t,i);if(null!=a)return a;let u=e.c.div("jodit__preview-box jodit-context");l&&o.Dom.append(l,u),(0,s.css)(u,{position:"relative",padding:16});let d=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),o.Dom.append(u,t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),u=i.document.body,"function"==typeof ResizeObserver)){let o=!1,n=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(n),(0,s.css)(t,"height",n.offsetHeight+20),e.async.requestAnimationFrame(()=>{o||r.observe(n)})},100)),a=()=>{o=!0,r.unobserve(n),r.disconnect(),e.e.off("beforeDestruct",a)};c.push(a),e.e.on("beforeDestruct",a)}}else(0,s.css)(u,{minWidth:1024,minHeight:600,border:0});let h=(t,i)=>{let s=(0,n.isString)(i)?e.c.div():i;(0,n.isString)(i)&&(s.innerHTML=i);for(let e=0;e<s.childNodes.length;e+=1){let i=s.childNodes[e];if(o.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,r.attr)(e,i.attributes[t].name,i.attributes[t].value);0===i.childNodes.length||o.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):h(e,i);try{o.Dom.append(t,e)}catch(e){}}else try{o.Dom.append(t,i.cloneNode(!0))}catch(e){}}};return h(u,d),e.e.fire("afterPreviewBox",u),[u,()=>{c.forEach(e=>e())}]}finally{u.forEach(e=>e())}}},58844:function(e,t,i){i.d(t,{reset:function(){return a}});var o=i(82758),n=i(23282),r=i(94643);let s={};function a(e){var t,i;if(!(e in s)){let i=o.globalDocument.createElement("iframe");try{if(i.src="about:blank",o.globalDocument.body.appendChild(i),!i.contentWindow)return null;let t=(0,r.get)(e,i.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),i.contentWindow);(0,n.isFunction)(t)&&(s[e]=t.bind(a))}catch(e){if(!o.IS_PROD)throw e}finally{null==(t=i.parentNode)||t.removeChild(i)}}return null!=(i=s[e])?i:null}},26395:function(e,t,i){i.d(t,{inView:function(){return n},scrollIntoViewIfNeeded:function(){return r}});var o=i(2748);function n(e,t,i){let o=e.getBoundingClientRect(),n=e,r=o.top,s=o.height;for(;n&&n!==t&&n.parentNode;)if(r+s>(o=(n=n.parentNode).getBoundingClientRect()).bottom+1&&r>o.top||r+s<=o.top)return!1;return(r+s<=(i.documentElement&&i.documentElement.clientHeight||0)+1||r<=0)&&r+s>=0}function r(e,t,i){if(o.Dom.isHTMLElement(e)&&!n(e,t,i)){if(t.clientHeight!==t.scrollHeight){let i=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<i?i:e.offsetTop}n(e,t,i)||e.scrollIntoView({block:"nearest"})}}},76078:function(e,t,i){i.d(t,{$$:function(){return d},resolveElement:function(){return p}});var o=i(82758),n=i(2748),r=i(4510),s=i(70799),a=i(87058),l=i(29960),c=i(89890);let u=1;function d(e,t){let i;if(!o.IS_ES_NEXT&&/:scope/.test(e)&&o.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let o=t.id,n=o||"_selector_id_"+(Math.random()+"").slice(2)+ ++u;e=e.replace(/:scope/g,"#"+n),o||t.setAttribute("id",n),i=t.parentNode.querySelectorAll(e),o||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,r.toArray)(i).indexOf(e)+1)+"]":"")};function p(e,t){let i=e;if((0,s.isString)(e))try{i=t.querySelector(e)}catch(t){throw(0,c.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!n.Dom.isElement(i)||!i.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return i}i.d(t,["cssPath",0,e=>{if(!n.Dom.isElement(e))return null;let t=[],i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,o=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&o++;while(t)e+=":nth-of-type("+o+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")},"getXPathByElement",0,h,"refs",0,e=>{"container"in e&&(e=e.container);let t={};return n.Dom.each(e,e=>{if(n.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let i=(0,l.attr)(e,"-ref");i&&(0,s.isString)(i)&&(t[(0,a.camelCase)(i)]=e,t[i]=e)}}),t}])},3703:function(e,t,i){i.d(t,{set:function(){return l}});var o=i(68345),n=i(29807),r=i(72430),s=i(70799),a=i(69175);function l(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let c=i;for(let e=0;e<l.length-1;e+=1){let t=l[e];(0,o.isArray)(c[t])||(0,r.isPlainObject)(c[t])||(c[t]=(0,n.isNumeric)(l[e+1])?[]:{}),c=c[t]}c&&(c[l[l.length-1]]=t)}},50535:function(e,t,i){i.d(t,{LimitedStack:function(){return o}});class o{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){this.limit=e,this.stack=[]}}},37790:function(e,t,i){i.d(t,{call:function(){return a},callPromise:function(){return u},callThis:function(){return l},getPropertyDescriptor:function(){return d},markOwner:function(){return c}});var o=i(14773),n=i(86068),r=i(29960),s=i(86583);function a(e,...t){return e(...t)}function l(e,t,...i){return e.apply(t,i)}function c(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function u(e,t){return(0,o.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}function d(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e)return i}i.d(t,["getDataTransfer",0,e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}},"keys",0,(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},"loadImage",0,(e,t)=>t.async.promise((i,o)=>{let n=new Image,r=()=>{t.e.off(n),null==o||o()},s=()=>{t.e.off(n),i(n)};t.e.one(n,"load",s).one(n,"error",r).one(n,"abort",r),n.src=e,n.complete&&s()}),"memorizeExec",0,(e,t,{control:i},o)=>{var r;let a="button"+i.command,l=null!=(r=i.args&&i.args[0])?r:(0,s.dataBind)(e,a);if((0,n.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),o&&(l=o(l)),e.execCommand(i.command,!1,null!=l?l:void 0)}])},31359:function(e,t,i){i.d(t,{init:function(){return s}});var o=i(82758),n=i(60132),r=i(14041);function s(e,t,i,s,a,l,c){if((0,n.isInitable)(s))try{s.init(e)}catch(e){if(!o.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{o.IS_PROD}),s.styles&&(c(e,t,"style").innerHTML=s.styles)}},14041:function(e,t,i){i.d(t,{loadExtras:function(){return u},loadStyle:function(){return l}});var o=i(82758),n=i(12475),r=i(63799),s=i(89672);let a=new Set;async function l(e,t){let i=c(e,t,!1);if(!a.has(i))return a.add(i),(0,r.appendStyleAsync)(e,i)}function c(e,t,i){t=(0,n.kebabCase)(t);let o=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+o+"."+(i?"js":"css")}function u(e,t,i,n){try{let o=i.filter(t=>!e.has((0,s.normalizeName)(t.name)));o.length&&o.map(e=>{let i=e.url||c(t,e.name,!0);return(0,r.appendScriptAsync)(t,i).then(n).catch(()=>null)})}catch(e){if(!o.IS_PROD)throw e}}},48591:function(e,t,i){i.d(t,{makeInstance:function(){return r}});var o=i(82758),n=i(23282);function r(e,t){try{try{return(0,n.isFunction)(t)?new t(e):t}catch(i){if((0,n.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!o.IS_PROD)throw e}return null}},89672:function(e,t,i){i.d(t,{normalizeName:function(){return n}});var o=i(12475);function n(e){return(0,o.kebabCase)(e).toLowerCase()}},50911:function(e,t,i){i.d(t,{Plugin:function(){return o.Plugin}});var o=i(20356);i(41876)},41876:function(e,t,i){i.d(t,{PluginSystem:function(){return p}});var o=i(82758),n=i(57012),r=i(46559),s=i(68345),a=i(60132),l=i(70799),c=i(31359),u=i(14041),d=i(48591),h=i(89672);class p{get size(){return this.__items.size}add(e,t){this.__items.set((0,h.normalizeName)(e),t),n.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,h.normalizeName)(e))}remove(e){this.__items.delete((0,h.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,o)=>{(!e||e.has(o))&&t.push([o,i])}),t}__init(e){let{extraList:t,disableList:i,filter:n}={extraList:e.o.extraPlugins.map(e=>(0,l.isString)(e)?{name:e}:e),disableList:new Set((0,r.splitArray)(e.o.disablePlugins).map(h.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},p=new Map,f={},m=new Set;e.__plugins=f;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(n).forEach(([o,n])=>{if(i.has(o)||p.has(o))return;let r=null==n?void 0:n.requires;if(r&&(0,s.isArray)(r)&&r.length){if(r.some(e=>i.has(e)))return;if(!r.every(e=>p.has(e)))return void m.add(o)}t=!0;let a=(0,d.makeInstance)(e,n);if(!a){p.set(o,null),m.delete(o);return}(0,c.init)(e,o,n,a,p,m,this.opts.getContainer),f[o]=a}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,u.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(f).forEach(t=>{let i=f[t];(0,a.isDestructable)(i)&&i.destruct(e),delete f[t]}),delete e.__plugins}),o.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),n.eventEmitter.off(`plugin:${e}:ready`,i)};n.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){this.opts=e,this.__items=new Map}}},20356:function(e,t,i){i.d(t,{Plugin:function(){return a}});var o=i(91907),n=i(65478),r=i(19306),s=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class a extends o.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,r.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(o.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var e;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(o.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,r.isJoditObject)(t)&&(null==(e=this.buttons)||e.forEach(e=>{null==t||t.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),this.buttons=[],this.hasStyle=!1,this.__inited=!1,e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}a.requires=[],s([n.autobind],a.prototype,"__afterPluginSystemInit",null),s([n.autobind],a.prototype,"__afterInit",null),s([n.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,i){i.d(t,{Ajax:function(){return u}});var o=i(8884),n=i(82758),r=i(45219),s=i(21537),a=i(89890),l=i(6441);i(57459);var c=i(98582);class u{className(){return"Ajax"}__buildParams(e,t){return(0,s.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,s.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,s.isString)(e)||e instanceof n.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,s.isFunction)(e.append)?e:(0,s.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise(async(o,n)=>{var r;let l=()=>{this.__isFulfilled=!0,n(a.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,o(new c.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=u,e.onabort=()=>{this.__isFulfilled=!0,n(a.abort("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let o=0;e.lengthComputable&&(o=e.loaded/e.total*100),null==(i=(t=this.options).onProgress)||i.call(t,o)},e.onreadystatechange=()=>{var i,o;null==(o=(i=this.options).onProgress)||o.call(i,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?u():e.statusText&&(this.__isFulfilled=!0,n(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:d,data:h,method:p}=i;e.open(p,d,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:f}=t;(0,s.isFunction)(f)&&(f=await f.call(this)),f&&e.setRequestHeader&&Object.keys(f).forEach(t=>{e.setRequestHeader(t,f[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)})}async *stream(){var e;this.__activated=!0;let{xhr:t,o:i}=this,o=this.prepareRequest(),n=0,r="",l=[],c=null,u=!1,d=null,h=()=>{if(c){let e=c;c=null,e()}},p=e=>{var i;let o=t.responseText;r+=o.substring(n),n=o.length;let s=r.split(`
9
+ `,{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:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,n)}}n=r.prototype,r.prototype.controls={}},26992:function(e,t,i){i.d(t,{Async:function(){return f}});var o=i(82758),n=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),u=i(70799),d=i(86068),h=i(38837),p=i(93661);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let o={};(0,d.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(o=t).timeout||0),o.label&&this.clearLabel(o.label);let r=(0,n.setTimeout)(e,t,...i),s=o.label||r;return this.timers.set(s,r),this.__callbacks.set(s,e),r}updateTimeout(e,t){if((0,h.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,n.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,u.isString)(e))return this.clearLabel(e);(0,n.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let o=0,a=!1,u=[],d=(...t)=>{if(!a){o=0;let i=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!o&&i&&d(...r),(0,n.clearTimeout)(o),o=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,o)):d(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,o=!1,n=!0;return(...r)=>{if(i=r,o){n=!0;return}n=!0,t&&(n=!1,e(...i)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&n&&e(...i)})}}throttle(e,t,i=!1){let o=null,n,r,a;return(...i)=>{(n=!0,a=i,t)?o||(r=()=>{n?(e(...a),n=!1,o=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,o)):o=null})():e(...a)}}promise(e){let t=()=>{},i=new Promise((i,o)=>{t=()=>o((0,p.abort)("Abort async")),this.promisesRejections.add(t),e(i,o)});return!i.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return o.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),o}return this.promise((o,n)=>{let r=this.setTimeout(()=>{try{o(e())}catch(e){n(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),n((0,p.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,n.clearTimeout)(e)),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,o,n;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(e=null==queueMicrotask?void 0:queueMicrotask.bind(window))?e:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(i=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?i:(e,t)=>{var i;let o=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(i=null==t?void 0:t.timeout)?i:1)},this.__cancelIdleCallbackNative=null!=(n=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?n:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,i){i.d(t,{Async:function(){return o.Async}});var o=i(26992)},4012:function(e,t,i){i.d(t,{Component:function(){return l}});var o=i(8884),n=i(78213),r=i(580),s=i(21537);let a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let o=[this.componentName];return e&&o.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(o.push("_",t),o.push("_",(0,s.isVoid)(i)?"true":i.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===n.STATUSES.ready}get isDestructed(){return this.componentStatus===n.STATUSES.destructed}get isInDestruct(){return n.STATUSES.beforeDestruct===this.componentStatus||n.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(n.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(n.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let o=a.get(this),n=null==o?void 0:o[e];n&&n.length&&n.forEach(e=>e(t))}hookStatus(e,t){let i=a.get(this);i||(i={},a.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new o.Async,this.ownerWindow=window,this.__componentStatus=n.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=n.STATUSES},91907:function(e,t,i){i.d(t,{Component:function(){return o.Component},STATUSES:function(){return n.STATUSES},ViewComponent:function(){return r.ViewComponent}});var o=i(4012),n=i(78213),r=i(80480)},78213:function(e,t,i){i.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},80480:function(e,t,i){i.d(t,{ViewComponent:function(){return n}});var o=i(4012);class n extends o.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.ow&&(this.ownerWindow=e.ow),e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),this.setParentView(e)}}},82758:function(e,t,i){i.r(t),i.d(t,{IS_TEST:function(){return o}});let o=!1,n="u">typeof window?window:void 0,r="u">typeof document?document:void 0,s=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),c=new Set(a),u="Meta",d="Backspace",h="Enter",p="Escape",f="ArrowLeft",m="ArrowUp",g="ArrowRight",v="ArrowDown",b="Delete",y=[u,d,b,m,v,g,f,h,p,"F3","Tab"],w="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),_=void 0!==n&&/Mac|iPod|iPhone|iPad/.test(n.navigator.platform),S=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:k,isMin:C}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=r.currentScript;if(e)return S(e.src);let t=r.querySelectorAll("script[src]");return t&&t.length?S(t[t.length-1].src):S(n.location.href)})(),E=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.18.15","BASE_PATH",0,k,"BASE_PATH_IS_MIN",0,C,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,y,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ES",0,"es2021","FAT_MODE",0,!1,"HOMEPAGE",0,"https://xdsoft.net/jodit/pro/","INSEPARABLE_TAGS",0,l,"INSERT_AS_HTML",0,"insert_as_html","INSERT_AS_TEXT",0,"insert_as_text","INSERT_CLEAR_HTML",0,"insert_clear_html","INSERT_ONLY_TEXT",0,"insert_only_text","INVISIBLE_SPACE",0,"\uFEFF","INVISIBLE_SPACE_REG_EXP",0,()=>/[\uFEFF]/g,"INVISIBLE_SPACE_REG_EXP_END",0,()=>/[\uFEFF]+$/g,"INVISIBLE_SPACE_REG_EXP_START",0,()=>/^[\uFEFF]+/g,"IS_BLOCK",0,/^(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,"IS_ES_MODERN",0,!0,"IS_ES_NEXT",0,!0,"IS_IE",0,w,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,_,"IS_PROD",0,!0,"KEY_ALIASES",0,{add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:_?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},"KEY_ALT",0,"Alt","KEY_BACKSPACE",0,d,"KEY_DELETE",0,b,"KEY_DOWN",0,v,"KEY_END",0,"End","KEY_ENTER",0,h,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_HOME",0,"Home","KEY_LEFT",0,f,"KEY_META",0,u,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,m,"LIST_TAGS",0,s,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0," ","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,E,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>o=!0,"SOURCE_CONSUMER",0,"source-consumer","SPACE_REG_EXP",0,()=>/[\s\n\t\r\uFEFF\u200b]+/g,"SPACE_REG_EXP_END",0,()=>/[\s\n\t\r\uFEFF\u200b]+$/g,"SPACE_REG_EXP_START",0,()=>/^[\s\n\t\r\uFEFF\u200b]+/g,"TEMP_ATTR",0,"data-jodit-temp","TEXT_HTML",0,w?"html":"text/html","TEXT_PLAIN",0,w?"text":"text/plain","TEXT_RTF",0,w?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,r,"globalWindow",0,n,"lang",0,{}])},20218:function(e,t,i){i.d(t,{Create:function(){return a}});var o=i(82758),n=i(2748),r=i(21537),s=i(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,i){let o=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(o),t&&((0,r.isPlainObject)(t)?(0,r.attr)(o,t):i=t),i&&(0,r.asArray)(i).forEach(e=>n.Dom.append(o,(0,r.isString)(e)?this.fromHTML(e):e)),o}div(e,t,i){let o=this.element("div",t,i);return e&&(o.className=e),o}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});n.Dom.append(this.doc.body,t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let o=this.element("span",t,i);return e&&(o.className=e),o}a(e,t,i){let o=this.element("a",t,i);return e&&(o.className=e),o}text(e){return this.doc.createTextNode(e)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(n.Dom.safeRemove(o),t){let e=(0,r.refs)(o);Object.keys(t).forEach(i=>{let o=e[i];o&&!1===t[i]&&n.Dom.hide(o)})}return o}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,r.isFunction)(i)?i(e):(0,r.isPlainObject)(i)&&(0,r.attr)(e,i)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,i){i.d(t,{Create:function(){return o.Create}});var o=i(20218)},45219:function(e,t,i){i.d(t,{autobind:function(){return n}});var o=i(23282);function n(e,t,i){if(!(0,o.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let n=i.value;return{configurable:!0,get(){let e=n.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,i){i.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var o=i(78213),n=i(2748),r=i(27613),s=i(82760);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let o=i.get;if(!o)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=o.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function c(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...e){var t;let i,o=null!=(i=this.od)?i:document,r=c.get(o);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&n.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(o,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(o.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){i.d(t,{component:function(){return l},getComponentClass:function(){return c}});var o=i(82758),n=i(80568);let r=new Map,s=new WeakSet,a=new WeakSet;function l(e){class t extends e{constructor(...e){super(...e),this.constructor===t?(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready")):o.IS_PROD||s.has(this.constructor)||a.has(this.constructor)||a.add(this.constructor)}}s.add(e),s.add(t);let i=(0,n.getClassName)(e.prototype);if(r.has(i)&&!o.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function c(e){return r.get(e)}},81577:function(e,t,i){i.d(t,{debounce:function(){return a},throttle:function(){return l}});var o=i(91907),n=i(27613),r=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,n.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(o.STATUSES.ready,o=>{let{async:s}=o;(0,r.assert)(null!=s,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let a=(0,n.isFunction)(e)?e(o):e,c=(0,n.isNumber)(a)||(0,n.isPlainObject)(a)?a:o.defaultTimeout;Object.defineProperty(o,l,{configurable:!0,value:s[i](o[l].bind(o),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,i){i.d(t,{derive:function(){return n}});var o=i(23282);function n(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let n=e[t],r=Object.getOwnPropertyNames(n.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(n.prototype,t);null!=s&&(0,o.isFunction)(s.value)&&!(0,o.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,i){i.d(t,{hook:function(){return r}});var o=i(23282),n=i(89890);function r(e){return(t,i)=>{if(!(0,o.isFunction)(t[i]))throw(0,n.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},78927:function(e,t,i){i.d(t,{idle:function(){return s}});var o=i(91907),n=i(23282),r=i(89890);function s(){return(e,t)=>{if(!(0,n.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(o.STATUSES.ready,e=>{let{async:i}=e,o=e[t];e[t]=(...t)=>i.requestIdleCallback(o.bind(e,...t))})}}},65478:function(e,t,i){i.r(t),i.d(t,{autobind:function(){return o.autobind},cache:function(){return n.cache},cacheHTML:function(){return n.cacheHTML},cached:function(){return n.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var o=i(45219),n=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),u=i(31589),d=i(53213),h=i(13525),p=i(37133)},31589:function(e,t,i){i.d(t,["nonenumerable",0,(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}])},53213:function(e,t,i){i.d(t,{persistent:function(){return r}});var o=i(78213),n=i(39955);function r(e,t){e.hookStatus(o.STATUSES.ready,e=>{let i=(0,n.isViewObject)(e)?e:e.jodit,o=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(o))?e:r},set(e){i.storage.set(o,e)}})})}},13525:function(e,t,i){i.d(t,{wait:function(){return s}});var o=i(78213),n=i(23282),r=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,n.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:o}=t,n=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){o.clearTimeout(r),e(t)?n.apply(t,s):r=o.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){i.d(t,{watch:function(){return d}});var o=i(78213),n=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),u=i(37790);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,c.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,f=null==t?void 0:t.context,m=t=>{let o=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};p||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,n]=e.split(":"),r=f;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),o.events.on(r||t,n,c),r||o.events.on(n,c),t.hookStatus("beforeDestruct",()=>{o.events.off(r||t,n,c).off(n,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,n.observable)(h).on("change."+d.join("."),c);let p=(0,u.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,n.observable)(h)).on("change."+d.join("."),c),c(l,i,h))},get:()=>p&&p.get?p.get.call(t):h})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(o.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){i.d(t,{Dom:function(){return y}});var o=i(82758),n=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),u=i(86068),d=i(49055),h=i(38837),p=i(29960),f=i(41180),m=i(86583),g=i(89890),v=i(37790);let b=RegExp(`<([a-z]+)[^>]+${o.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let o,n,r=e;i.s.save();do n=!1,(o=r.nextSibling)&&!y.isBlock(o)&&!y.isTag(o,"br")&&(n=!0,r=o);while(n)return y.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,o){let n=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(n,i);let r=i;for(;r&&(r=i.nextSibling,n.appendChild(i),i!==o&&r);)i=r;return t.s.restore(),n}static wrapInline(e,t,i){let o,n,r=e,s=e;i.s.save();do n=!1,(o=r.previousSibling)&&!y.isBlock(o)&&(n=!0,r=o);while(n)do n=!1,(o=s.nextSibling)&&!y.isBlock(o)&&(n=!0,s=o);while(n)return y.__wrapElements(t,i,r,s)}static wrap(e,t,i){let o=(0,c.isString)(t)?i.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(o,e),o.appendChild(e)}else{let t=e.extractContents();e.insertNode(o),o.appendChild(t)}return o}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,i){let o=e;for(;o&&o!==t&&!(e!==o&&i(o));){let e=o.firstChild||o.nextSibling;if(!e){for(;o&&!o.nextSibling;)if((o=o.parentNode)===t)return;e=null==o?void 0:o.nextSibling}o=e}}static replace(e,t,i,o=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,c.isString)(t)?((0,h.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return o&&y.isElement(e)&&y.isElement(s)&&(0,n.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return y.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){return y.isNode(e)&&!y.closest(e,e=>y.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=o.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let n=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return y.isText(e)?n(e):!(y.isElement(e)&&i(e))&&y.each(e,e=>{if(y.isText(e)&&!n(e)||y.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return y.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return y.isTag(e,o.LIST_TAGS)}static isLeaf(e){return y.isTag(e,"li")}static isImage(e){return y.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,u.isVoid)(e)&&"object"==typeof e&&y.isNode(e)&&o.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!y.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!y.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!y.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(i?i.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,f.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.isVoid)(e)&&y.isHTMLElement(e)&&y.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return y.__deepMost(e,t,!1)}static last(e,t){return y.__deepMost(e,t,!0)}static __deepMost(e,t,i){let o=i?"lastChild":"firstChild",n=i?"previousSibling":"nextSibling",r=null==e?void 0:e[o];if(!r)return null;do{if(t(r))return r;let i=r[o]||r[n];if(!i&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[n]&&r.parentNode!==e)i=null==r?void 0:r[n]}r=i}while(r)return null}static prev(e,t,i,o=!0){return y.find(e,t,i,!1,o)}static next(e,t,i,o=!0){return y.find(e,t,i,!0,o)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,i){let o=e=>y.isElement(e)&&e.classList.contains(t),n=e.parentNode;return i?y.prev(e,o,n):y.next(e,o,n)}static find(e,t,i,o=!0,n=!0){let r=this.nextGen(e,i,o,n),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,o=!0){let n=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)n.push(t),t=i?t.nextSibling:t.previousSibling;n.reverse(),yield*this.runInStack(e,n,i,o),r=r.parentNode}while(r&&r!==t)return null}static each(e,t,i=!0){let o=this.eachGen(e,i),n=o.next();for(;!n.done;){if(!1===t(n.value))return!1;n=o.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,o=!0){for(;t.length;){let n=t.pop();if(o){let e=i?n.lastChild:n.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==n&&(yield n)}}static findWithCurrent(e,t,i,o="nextSibling",n="firstChild"){let r=e;do{if(t(r))return r||null;if(n&&r&&r[n]){let e=y.findWithCurrent(r[n],t,r,o,n);if(e)return e}for(;r&&!r[o]&&r!==i;)r=r.parentNode;r&&r[o]&&r!==i&&(r=r[o])}while(r&&r!==i)return null}static findSibling(e,t=!0,i=e=>!y.isEmptyTextNode(e)){let o=y.sibling(e,t);for(;o&&!i(o);)o=y.sibling(o,t);return o&&i(o)?o:null}static findNotEmptySibling(e,t){return y.findSibling(e,t,e=>{var t;return!y.isEmptyTextNode(e)&&!!(!y.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,v.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,d.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,o=!1){let n=e;if(!n)return null;do{if(t(n))return n;if(n===i||!n.parentNode)break;n=n.parentNode}while(n&&n!==i)return n===i&&o&&t(n)?n:null}static closest(e,t,i){let o,n=e=>e.toLowerCase();if((0,s.isFunction)(t))o=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(n));o=t=>!!(t&&e.has(n(t.nodeName)))}else o=e=>!!(e&&n(t)===n(e.nodeName));return y.up(e,o,i)}static furthest(e,t,i){let o=null,n=null==e?void 0:e.parentElement;for(;n&&n!==i;)t(n)&&(o=n),n=null==n?void 0:n.parentElement;return o}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e.nextSibling)}static before(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||o.globalDocument).createDocumentFragment();(0,n.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,i?t.firstChild:null)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>y.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,o.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase();return t instanceof Set?t.has(i)||t.has(e.tagName.toUpperCase()):i===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,p.attr)(e,t),(0,p.attr)(e,o.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,p.attr)(e,o.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(b,"$2")}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(o.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){i.d(t,{Dom:function(){return o.Dom},LazyWalker:function(){return n.LazyWalker}});var o=i(2748),n=i(70071)},70071:function(e,t,i){i.d(t,{LazyWalker:function(){return s}});var o=i(45219),n=i(2748),r=i(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=n.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!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(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var e;if(this.workNodes){this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<i;){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(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([o.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,i){i.d(t,{EventEmitter:function(){return u}});var o=i(82758),n=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class u{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,n.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),o=i[1]||c.defaultNameSpace;t.call(this,i[0],o)})}__getStore(e){if(!e)throw(0,l.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&delete e[this.__key]}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,n){let c,u,h,p;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,p=i):(c=e,u=t,h=i,p=n),!((0,a.isString)(u)||(0,a.isStringArray)(u))||0===u.length)throw(0,l.error)("Need events names");if(!(0,s.isFunction)(h))throw(0,l.error)("Need event handler");if((0,r.isArray)(c))return c.forEach(e=>{this.on(e,u,h,p)}),this;let f=c,m=this.__getStore(f),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(f)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(u,(e,t)=>{var i,n;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let r={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,r,null==p?void 0:p.top),d(f)){let t=o.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(n=null==p?void 0:p.capture)&&n;v.options=t,f.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(f,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,o=i.get(e)||new Set;o.delete(t),o.size?i.set(e,o):i.delete(e)}one(e,t,i,o){let n,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,r=e,s=t,l=i):(n=e,r=t,s=i,l=o);let c=(...e)=>(this.off(n,r,c),s(...e));return this.on(n,r,c,l),this}off(e,t,i){let o,n,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,n=e,l=t):(o=e,n=t,l=i),(0,r.isArray)(o))return o.forEach(e=>{this.off(e,n,l)}),this;let u=o,h=this.__getStore(u);if(!((0,a.isString)(n)||(0,a.isStringArray)(n))||0===n.length)return h.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let p=e=>{var t;d(u)&&(u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback))},f=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&f(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,s.isFunction)(l)){let o=h.indexOf(e,t,l);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(n,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{f(e,t)}):f(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let i=(0,a.isString)(e)?this:e,o=(0,a.isString)(e)?e:t;if("string"!=typeof o)throw(0,l.error)("Need event names");let n=this.__getStore(i);this.__eachEvent(o,(e,t)=>{let o=n.get(e,t);o&&this.__stopped.push(o),t===c.defaultNameSpace&&n.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let o,n,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...i]:i;if(!d(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&d(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(d(r))this.__triggerNativeEvent(r,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),n=t.syntheticCallback.call(r,e,...u),this.currents.pop(),void 0!==n&&(o=n),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...u]);void 0!==i&&(o=i)})}}),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),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(e){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=o.globalDocument,this.__prepareEvent=e=>{!e.cancelBubble&&(e.composed&&(0,s.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=new Date().getTime()}}function d(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){i.d(t,{Eventify:function(){return o}});class o{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){var i;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var i;let o;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.forEach(e=>{o=e(...t)})),o}constructor(){this.__map=new Map}}},57012:function(e,t,i){let o=new(i(98220)).EventEmitter;i.d(t,["eventEmitter",0,o])},3827:function(e,t,i){i.d(t,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return n.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var o=i(98220),n=i(72757),r=i(73026),s=i(15738)},73026:function(e,t,i){i.d(t,{observable:function(){return c}});var o=i(68345),n=i(59292),r=i(72430),s=i(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,n)=>((0,o.isArray)(t)?t.map(e=>c(e,n)):(i[t]||(i[t]=[]),i[t].push(n)),e),u=(n,...r)=>{if((0,o.isArray)(n))return void n.map(e=>u(e,...r));try{!t[n]&&i[n]&&(t[n]=!0,i[n].forEach(t=>t.call(e,...r)))}finally{t[n]=!1}},d=(t,i=[])=>{let o={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);o[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=o[a];if(!(0,n.isFastEqual)(o[a],t)){u(["beforeChange","beforeChange."+l.join(".")],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):o[a]=t;let n=[];u(["change",...l.reduce((e,t)=>(n.push(t),e.push("change."+n.join(".")),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):o[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(o[a])&&d(o[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,i){i.d(t,{EventHandlersStore:function(){return s}});var o=i(4510),n=i(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,n.assert)(i,"-"),i[e]}}indexOf(e,t,i){let o=this.get(e,t);if(o){for(let e=0;e<o.length;e+=1)if(o[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,o.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,o=!1){let n=this.__store.get(t);n||(n={},this.__store.set(t,n)),void 0===n[e]&&(n[e]=[]),o?n[e].unshift(i):n[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}i.d(t,["defaultNameSpace",0,r])},580:function(e,t,i){i.d(t,{getContainer:function(){return y},getPopupViewRoot:function(){return w},uniqueUid:function(){return g}});var o=i(19306),n=i(70799),r=i(39955),s=i(12475),a=i(29960),l=i(41180),c=i(80568),u=i(41876),d=i(57012),h=i(82758),p=i(22732);let f=1,m=new Set;function g(){function e(){return Math.round(f+=10*(Math.random()+1)).toString(16)}let t=e();for(;m.has(t);)t=e();return m.add(t),t}let v=new u.PluginSystem({getContainer:y}),b=new WeakMap;function y(e,t,i="div",l=!1){let u,d=(0,n.isString)(t)?t:t?(0,c.getClassName)(t.prototype):"jodit-utils",h=b.get(e)||{},f=d+i,m=(0,r.isViewObject)(e)?e:e.j;if(!h[f]){let t=m.c;if(u=w(m.o,m.container,e.od.body),l&&(0,o.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let n="style"===i?e.ed.head:e.ed.body;u=(0,o.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:n}let n=t.element(i,{className:`jodit jodit-${(0,s.kebabCase)(d)}-container jodit-box`});m.o.nonce&&("style"===i||"script"===i)&&(0,a.attr)(n,"nonce",m.o.nonce),n.classList.add("jodit_theme_"+(m.o.theme||"default")),p.Dom.append(u,n),h[f]=n,e.hookStatus("beforeDestruct",()=>{m.events.off(n),p.Dom.safeRemove(n),delete h[f],Object.keys(h).length&&b.delete(e)}),b.set(e,h),m.events.fire("getContainer",n)}return h[f].classList.remove("jodit_theme_default","jodit_theme_dark"),h[f].classList.add("jodit_theme_"+(m.o.theme||"default")),h[f]}function w(e,t,i){var o,n,r;return null!=(r=null!=(n=null!=(o=e.popupRoot)?o:e.shadowRoot)?n:p.Dom.closest(t,e=>p.Dom.isHTMLElement(e)&&(p.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),i))?r:i}let _=d.eventEmitter;i.d(t,["eventEmitter",0,_,"extendLang",0,e=>{Object.keys(e).forEach(t=>{h.lang[t]?Object.assign(h.lang[t],e[t]):h.lang[t]=e[t]})},"instances",0,{},"modules",0,{},"pluginSystem",0,v])},29999:function(e,t,i){var o=i(68345);i.d(t,["asArray",0,e=>(0,o.isArray)(e)?e:[e]])},76855:function(e,t,i){i.d(t,{asArray:function(){return o.asArray},splitArray:function(){return n.splitArray},toArray:function(){return r.toArray}});var o=i(29999),n=i(46559),r=i(4510)},46559:function(e,t,i){i.d(t,{splitArray:function(){return o}});function o(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,i){var o=i(70722),n=i(58844);i.d(t,["toArray",0,function(...e){var t;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,n.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},91898:function(e,t,i){i.d(t,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=i(13252)},13252:function(e,t,i){i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return n}});var o=i(82758);function n(e,t,...i){return t?o.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){o.globalWindow.clearTimeout(e)}},54765:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return n}});var o=i(82758);function n(){let e;try{let t=o.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return n.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.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 d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return f.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return b.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return w.isPromise},isSet:function(){return _.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return k.isURL},isValidName:function(){return C.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return D.isWindow}});var o=i(54765),n=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),u=i(29673),d=i(60132),h=i(72913),p=i(19306),f=i(45603),m=i(78116),g=i(70722),v=i(84767),b=i(29807),y=i(72430),w=i(14773),_=i(42320),S=i(70799),k=i(26049),C=i(37508),E=i(39955),I=i(86068),D=i(52742)},12045:function(e,t,i){i.d(t,{isAbortError:function(){return o}});function o(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,i){i.d(t,{isArray:function(){return o}});function o(e){return Array.isArray(e)}},87612:function(e,t,i){i.d(t,{isBoolean:function(){return o}});function o(e){return"boolean"==typeof e}},59292:function(e,t,i){i.d(t,{isEqual:function(){return n},isFastEqual:function(){return r}});var o=i(67462);function n(e,t){return e===t||(0,o.stringify)(e)===(0,o.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,i){i.d(t,{isFunction:function(){return o}});function o(e){return"function"==typeof e}},29673:function(e,t,i){i.d(t,{isHtmlFromWord:function(){return o}});function o(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==e.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==e.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==e.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==e.search(/style='[^']*mso-/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}},58487:function(e,t,i){var o=i(70799);i.d(t,["isHTML",0,e=>(0,o.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))])},60132:function(e,t,i){i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var o=i(2748),n=i(23282),r=i(86068);function s(e){return!(0,r.isVoid)(e)&&(0,n.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,n.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&o.Dom.isElement(e.container)}},72913:function(e,t,i){i.d(t,{isInt:function(){return r}});var o=i(29807),n=i(70799);function r(e){return(0,n.isString)(e)&&(0,o.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,i){i.d(t,{isJoditObject:function(){return n}});var o=i(23282);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,i){var o=i(70799);i.d(t,["isLicense",0,e=>(0,o.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)])},78116:function(e,t,i){i.d(t,{isMarker:function(){return n}});var o=i(2748);function n(e){return o.Dom.isMarker(e)}},70722:function(e,t,i){i.d(t,{isNativeFunction:function(){return o}});function o(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===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(e+""))}},84767:function(e,t,i){i.d(t,{isNumber:function(){return o}});function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,i){i.d(t,{isNumeric:function(){return n}});var o=i(70799);function n(e){if((0,o.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},72430:function(e,t,i){i.d(t,{isPlainObject:function(){return n}});var o=i(52742);function n(e){return!(!e||"object"!=typeof e||e.nodeType||(0,o.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,i){i.d(t,{isPromise:function(){return o}});function o(e){return e&&"function"==typeof e.then}},42320:function(e,t,i){i.d(t,{isSet:function(){return n}});var o=i(23282);function n(e){return!!e&&(0,o.isFunction)(e.has)&&(0,o.isFunction)(e.add)&&(0,o.isFunction)(e.delete)}},70799:function(e,t,i){i.d(t,{isString:function(){return n},isStringArray:function(){return r}});var o=i(68345);function n(e){return"string"==typeof e}function r(e){return(0,o.isArray)(e)&&n(e[0])}},26049:function(e,t,i){i.d(t,{isURL:function(){return n}});var o=i(82758);function n(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=o.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,i){i.d(t,{isValidName:function(){return o}});function o(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,i){i.d(t,{isViewObject:function(){return n}});var o=i(23282);function n(e){return!!(e&&e instanceof Object&&(0,o.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,i){i.d(t,{isVoid:function(){return o}});function o(e){return null==e}},52742:function(e,t,i){i.d(t,{isWindow:function(){return o}});function o(e){return null!=e&&e===e.window}},35278:function(e,t,i){i.d(t,["colorToHex",0,e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),o=parseInt(t[3],10),n=(parseInt(t[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;n.length<6;)n="0"+n;return t[1]+"#"+n}])},32574:function(e,t,i){i.d(t,{applyStyles:function(){return d}});var o=i(82758),n=i(2748),r=i(90723),s=i(49055),a=i(29960),l=i(41180),c=i(76078);function u(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function d(e){let t=/<html(?:\s[^>]*)?>/i.exec(e);if(!t)return e;let i=(e=e.substring(t.index)).toLowerCase().lastIndexOf("</html>");-1!==i&&(e=e.substring(0,i+7));let d=o.globalDocument.createElement("iframe");(0,l.css)(d,"display","none"),n.Dom.append(o.globalDocument.body,d);let h="";try{let t=d.contentDocument||(d.contentWindow?d.contentWindow.document:null);if(t){t.open(),t.write(e),t.close();let i=(0,r.readWordListItems)(t.body);n.Dom.each(t.body,e=>{n.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")&&n.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let i=t.styleSheets[e].cssRules;for(let e=0;e<i.length;e+=1)""!==i[e].selectorText&&(0,c.$$)(i[e].selectorText,t.body).forEach(t=>{t.style.cssText=u(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!o.IS_PROD)throw e}(0,r.wrapWordListItems)(i),n.Dom.each(t.body,e=>{if(n.Dom.isElement(e)){let t=(0,a.attr)(e,"style");t&&(e.style.cssText=u(t)),(0,a.attr)(e,"style")||(0,a.attr)(e,"style",null)}}),h=t.firstChild?(0,s.trim)(t.body.innerHTML):""}}catch(e){}finally{n.Dom.safeRemove(d)}return h&&(e=h),(0,s.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,i){i.d(t,{cleanFromWord:function(){return c}});var o=i(82758),n=i(2748),r=i(4510),s=i(90723),a=i(49055),l=i(29960);function c(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=o.globalDocument.createElement("div");i.innerHTML=e;let a=[],c=(0,s.readWordListItems)(i);i.firstChild&&n.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":a.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":n.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,l.attr)(e,"style")||"")){a.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,l.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:a.push(e)}}),n.Dom.safeRemove.apply(null,a),(0,s.wrapWordListItems)(c),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(a.trim).join(`
10
+ `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(e,t,i){i.d(t,{htmlspecialchars:function(){return n}});var o=i(82758);function n(e){let t=o.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},75275:function(e,t,i){i.d(t,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return n.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},nl2br:function(){return s.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var o=i(32574),n=i(53212),r=i(53326),s=i(45971),a=i(86518),l=i(91003)},45971:function(e,t,i){i.d(t,{nl2br:function(){return o}});function o(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}},86518:function(e,t,i){i.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return p}});var o=i(2748),n=i(43555),r=i(29960);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var i;if(!o.Dom.isElement(e)&&!o.Dom.isFragment(e))return;let r=[];for(let t of(o.Dom.each(e,e=>{o.Dom.isElement(e)&&o.Dom.up(e.parentNode,a)&&r.push(e)}),r))o.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==o.Dom.up(e,a))return!1;for(let t=e.parentElement;t;t=t.parentElement){let e=t.nodeName.toLowerCase();if("math"===e||"svg"===e)break;if(s.has(e))return!1}return!0}(t)&&o.Dom.safeRemove(t);let l=[];for(let t of(o.Dom.each(e,e=>{o.Dom.isElement(e)&&"NOSCRIPT"===e.nodeName&&l.push(e)}),l))o.Dom.safeRemove(t);let u=null!=(i=t.removeEventAttributes)?i:t.removeOnError,d=e=>{if(o.Dom.isElement(e)&&(u&&c(e),p(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,n.attr)(e,"target"))){let t=((0,n.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,n.attr)(e,"rel",t.join(" "))}};d(e),o.Dom.each(e,d)}function c(e){if(!o.Dom.isElement(e))return!1;let t=!1,i=[];for(let t=0;t<e.attributes.length;t++)e.attributes[t].name.toLowerCase().startsWith("on")&&i.push(e.attributes[t].name);for(let o of i)(0,r.attrRaw)(e,o,null),t=!0;return t}let u=["src","data","action","formaction","poster","background","xlink:href"],d=new Set(["iframe","frame","object","embed"]);function h(e,t){let i=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(i)||/^data:(?:text\/html|application\/xhtml)/.test(i))||/^data:image\/svg/.test(i)&&d.has(t)}function p(e,{safeJavaScriptLink:t,removeOnError:i,removeEventAttributes:s}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(e))return!1;let a=!1;s&&c(e)&&(a=!0),i&&e.hasAttribute("onerror")&&((0,n.attr)(e,"onerror",null),a=!0);let l=e.nodeName.toLowerCase(),d=(0,n.attr)(e,"href");if(t&&d&&h(d,l)){let t="u">typeof location?location.protocol:"http:";(0,n.attr)(e,"href",t+"//"+d),a=!0}if(t)for(let t of(e.hasAttribute("srcdoc")&&((0,n.attr)(e,"srcdoc",null),a=!0),u)){let i=(0,r.attrRaw)(e,t);i&&h(i,l)&&((0,n.attr)(e,t,null),a=!0)}return a}},91003:function(e,t,i){i.d(t,{stripTags:function(){return function e(t,i=document,u=null,d=!1){let h=i.createElement("div");(0,n.isString)(t)?h.innerHTML=t:o.Dom.append(h,t);let p=[];o.Dom.each(h,e=>{o.Dom.isElement(e)&&p.push(e)});let f=new Set,m=()=>{let e=i.createTextNode(d?"%%%jodit-single-br%%%":" ");return f.add(e),e};return p.forEach(t=>{if(!t.parentNode)return;if(u&&o.Dom.isTag(t,u)){let n=t.nodeName.toLowerCase(),r=o.Dom.isTag(t,c)?`%%%jodit-single-${n}%%%`:`%%%jodit-${n}%%%${e(t.innerHTML,i,u,d)}%%%/jodit-${n}%%%`;o.Dom.before(t,i.createTextNode(r)),o.Dom.safeRemove(t);return}if(o.Dom.isTag(t,l))return void o.Dom.safeRemove(t);if(!o.Dom.isTag(t,s))return;let n=t.previousSibling;o.Dom.isTag(t,a)&&n&&!f.has(n)&&!(o.Dom.isText(n)&&/\s$/.test(n.nodeValue||""))&&o.Dom.before(t,m());let r=t.nextSibling;!(o.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&o.Dom.before(r,m())}),(0,r.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,o)=>`<${t?"/":""}${o}>`)}}});var o=i(2748),n=i(70799),r=i(49055);let s=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr","ul","ol","li"]),a=new Set(["ul","ol"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},90723:function(e,t,i){i.d(t,{readWordListItems:function(){return a},wrapWordListItems:function(){return l}});var o=i(2748),n=i(4510),r=i(29960);let s={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3};function a(e){let t=[];return(0,n.toArray)(e.querySelectorAll("p")).forEach(e=>{let i=/mso-list:\s*l(\d+)\s+level(\d+)(?:\s+lfo(\d+))?/i.exec((0,r.attr)(e,"style")||"");if(!i)return;let a=(0,n.toArray)(e.querySelectorAll("[style]")).find(e=>/mso-list:\s*ignore/i.test((0,r.attr)(e,"style")||""));t.push({paragraph:e,list:`${i[1]}:${i[3]||""}`,level:Number(i[2]),...function(e){let t=e.replace(/\s+/g,""),i=/^\(?(?:\d+\.)*(\d+)[.)]?$/.exec(t);if(i)return{tag:"ol",listStyleType:null,start:Number(i[1])};let o=/^\(?([a-z]+|[A-Z]+)[.)]$/.exec(t);if(o){let e=o[1],t=e.toLowerCase(),i=e!==t;if(/^[ivxlcdm]+$/.test(t)&&(t.length>1||"i"===t))return{tag:"ol",listStyleType:i?"upper-roman":"lower-roman",start:function(e){let t=0;for(let i=0;i<e.length;i+=1){let o=s[e[i]];t+=(s[e[i+1]]||0)>o?-o:o}return t}(t)};if(/^([a-z])\1*$/.test(t))return{tag:"ol",listStyleType:i?"upper-alpha":"lower-alpha",start:(t.length-1)*26+t.charCodeAt(0)-96}}return{tag:"ul",listStyleType:null,start:1}}((null==a?void 0:a.textContent)||"")}),a&&function(e,t){let i=e.parentNode;for(o.Dom.safeRemove(e);i&&i!==t&&o.Dom.isElement(i)&&o.Dom.isEmpty(i);){let e=i.parentNode;o.Dom.safeRemove(i),i=e}}(a,e)}),t}function l(e){let t=[],i=e.map((t,i)=>{var n;return i>0&&(n=e[i-1],o.Dom.findSibling(t.paragraph,!0,e=>!o.Dom.isEmptyTextNode(e)&&!o.Dom.isComment(e))===n.paragraph)});e.forEach((e,s)=>{let{paragraph:a}=e;for(i[s]||(t=[]);t.length&&t[t.length-1].level>e.level;)t.pop();let l=t[t.length-1];l&&l.level===e.level&&l.list!==e.list&&(t.pop(),l=t[t.length-1]);let c=a.ownerDocument;if(!l||l.level<e.level){let i=c.createElement(e.tag);e.listStyleType&&(i.style.listStyleType=e.listStyleType),"ol"===e.tag&&1!==e.start&&(0,r.attr)(i,"start",e.start),l&&l.li?l.li.appendChild(i):o.Dom.before(a,i),l={level:e.level,list:e.list,element:i},t.push(l)}let u=c.createElement("li");(0,n.toArray)(a.attributes).forEach(e=>{"class"!==e.name&&u.setAttribute(e.name,e.value)}),u.style.removeProperty("margin-left"),u.style.removeProperty("text-indent"),(0,r.attr)(u,"style")||(0,r.attr)(u,"style",null),o.Dom.moveContent(a,u),o.Dom.safeRemove(a),l.element.appendChild(u),l.li=u})}},21537:function(e,t,i){i.r(t),i.d(t,{$$:function(){return d.$$},CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return d.ConnectionError},LimitedStack:function(){return d.LimitedStack},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},OptionsError:function(){return d.OptionsError},UNSAFE_PROTO_KEYS:function(){return d.UNSAFE_PROTO_KEYS},abort:function(){return d.abort},alignElement:function(){return d.alignElement},alreadyLoadedList:function(){return d.alreadyLoadedList},appendScriptAsync:function(){return d.appendScriptAsync},appendStyleAsync:function(){return d.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return o.asArray},assert:function(){return d.assert},attr:function(){return d.attr},attrRaw:function(){return d.attrRaw},browser:function(){return d.browser},buildQuery:function(){return d.buildQuery},call:function(){return d.call},callPromise:function(){return d.callPromise},callThis:function(){return d.callThis},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearAlign:function(){return d.clearAlign},clearCenterAlign:function(){return d.clearCenterAlign},clearTimeout:function(){return n.clearTimeout},cns:function(){return d.cns},colorToHex:function(){return s.colorToHex},completeUrl:function(){return d.completeUrl},connection:function(){return d.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},createMediaWrapper:function(){return d.createMediaWrapper},css:function(){return d.css},cssInline:function(){return d.cssInline},cssPath:function(){return d.cssPath},ctrlKey:function(){return d.ctrlKey},dataBind:function(){return d.dataBind},defaultLanguage:function(){return d.defaultLanguage},error:function(){return d.error},fastClone:function(){return d.fastClone},fuzzySearchIndex:function(){return u.fuzzySearchIndex},get:function(){return d.get},getAlignClasses:function(){return d.getAlignClasses},getClassName:function(){return d.getClassName},getContentWidth:function(){return c.getContentWidth},getDataTransfer:function(){return d.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getHAlign:function(){return d.getHAlign},getMediaWrapper:function(){return d.getMediaWrapper},getPropertyDescriptor:function(){return d.getPropertyDescriptor},getScrollParent:function(){return c.getScrollParent},getWrappedMedia:function(){return d.getWrappedMedia},getXPathByElement:function(){return d.getXPathByElement},hAlignElement:function(){return d.hAlignElement},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},humanSizeToBytes:function(){return d.humanSizeToBytes},i18n:function(){return u.i18n},inView:function(){return d.inView},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isAtom:function(){return d.isAtom},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isUnsafeProtoKey:function(){return d.isUnsafeProtoKey},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return u.kebabCase},keepNames:function(){return d.keepNames},keys:function(){return d.keys},loadImage:function(){return d.loadImage},loadNext:function(){return d.loadNext},loadNextStyle:function(){return d.loadNextStyle},markAsAtomic:function(){return d.markAsAtomic},markDeprecated:function(){return d.markDeprecated},markOwner:function(){return d.markOwner},memorizeExec:function(){return d.memorizeExec},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},options:function(){return d.options},parseQuery:function(){return d.parseQuery},position:function(){return c.position},prepareEmbedCode:function(){return d.prepareEmbedCode},prepareMedia:function(){return d.prepareMedia},previewBox:function(){return d.previewBox},refs:function(){return d.refs},reset:function(){return d.reset},resolveElement:function(){return d.resolveElement},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return d.scrollIntoViewIfNeeded},set:function(){return d.set},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},wrapMedia:function(){return d.wrapMedia}});var o=i(76855),n=i(91898),r=i(27613),s=i(35278),a=i(75275),l=i(71521),c=i(56175),u=i(59007),d=i(43555)},71521:function(e,t,i){i.d(t,{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 r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var o=i(21224),n=i(3760),r=i(49033),s=i(12972),a=i(9992),l=i(70091),c=i(46334),u=i(37406)},21224:function(e,t,i){var o=i(35278),n=i(49055);i.d(t,["normalizeColor",0,e=>{let t=["#"],i=(0,o.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,n.trim)(i.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}])},3760:function(e,t,i){i.d(t,{normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var o=i(29807),n=i(86068),r=i(35278),s=i(12475);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,n.isVoid)(t)&&a.test(e)&&(0,o.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}i.d(t,["NUMBER_FIELDS_REG",0,a])},49033:function(e,t,i){i.d(t,{normalizeKeyAliases:function(){return r}});var o=i(82758),n=i(49055);function r(e){let t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,n.trim)(e.toLowerCase())).map(e=>o.KEY_ALIASES[e]||e).sort((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},12972:function(e,t,i){i.d(t,["normalizeLicense",0,(e,t=8)=>{let i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}])},9992:function(e,t,i){var o=i(49055);i.d(t,["normalizePath",0,(...e)=>e.filter(e=>(0,o.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")])},70091:function(e,t,i){i.d(t,["normalizeRelativePath",0,e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")])},46334:function(e,t,i){i.d(t,["normalizeSize",0,(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()])},37406:function(e,t,i){i.d(t,["normalizeUrl",0,(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")])},44506:function(e,t,i){i.d(t,["getContentWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}])},35224:function(e,t,i){i.d(t,{getFixedPositionOffset:function(){return o}});function o(e){var t,i;let o=null==(t=e.ownerDocument)?void 0:t.defaultView,n=e.parentElement;for(;o&&n;){if(""!==(i=o.getComputedStyle(n)).transform&&"none"!==i.transform||""!==i.perspective&&"none"!==i.perspective||""!==i.filter&&"none"!==i.filter||"transform"===i.willChange||"perspective"===i.willChange||"filter"===i.willChange||"paint"===i.contain||"layout"===i.contain||"strict"===i.contain||"content"===i.contain){let e=n.getBoundingClientRect();return{x:e.left,y:e.top}}n=n.parentElement}let r=null==o?void 0:o.visualViewport;return o&&r&&(r.offsetLeft||r.offsetTop)&&1>Math.abs(r.pageLeft-o.scrollX)&&1>Math.abs(r.pageTop-o.scrollY)?{x:-Math.round(r.offsetLeft),y:-Math.round(r.offsetTop)}:{x:0,y:0}}},16442:function(e,t,i){i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=n.Dom.isHTMLElement(t),s=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=i(82758),n=i(2748),r=i(43555)},56175:function(e,t,i){i.d(t,{getContentWidth:function(){return o.getContentWidth},getFixedPositionOffset:function(){return n.getFixedPositionOffset},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return c.position},size:function(){return a.size}});var o=i(44506),n=i(35224),r=i(16442),s=i(81630),a=i(21496),l=i(81284),c=i(5700)},81630:function(e,t,i){i.d(t,["innerWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}])},21496:function(e,t,i){i.d(t,{size:function(){return n}});var o=i(27613);function n(e){return(0,o.isString)(e)||(0,o.isArray)(e)?e.length:(0,o.isPlainObject)(e)?Object.keys(e).length:0}},81284:function(e,t,i){let o=(e,t,i,n=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={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,d=u.pageYOffset||c.scrollTop||l.scrollTop,h=u.pageXOffset||c.scrollLeft||l.scrollLeft,p=c.clientTop||l.clientTop||0,f=c.clientLeft||l.clientLeft||0,m=t.iframe;if(!n&&t&&t.options&&t.o.iframe&&m){let{top:e,left:i}=o(m,t,t.od,!0);s=r.top+e,a=r.left+i}else s=r.top+d-p,a=r.left+h-f;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}};i.d(t,["offset",0,o])},5700:function(e,t,i){i.d(t,{position:function(){return function e(t,i,n=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,o.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!n){let{left:t,top:o}=e(i.iframe,i,!0);l+=t,c+=o}return{left:Math.round(l),top:Math.round(c),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var o=i(19306)},87058:function(e,t,i){i.d(t,["camelCase",0,e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())])},67477:function(e,t,i){i.d(t,{fuzzySearchIndex:function(){return n}});var o=i(82758);function n(e,t,i=0,r=1){let s=0,a,l=-1,c=0,u=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,c++,u=0,-1===l&&(l=a)):s>0&&(u>=r&&t[a]!==o.INVISIBLE_SPACE?(s=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return s===e.length?[l,c]:[-1,0]}},56967:function(e,t,i){i.d(t,{i18n:function(){return c}});var o=i(82758),n=i(70799),r=i(36409),s=i(43555),a=i(6441);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,o=i.exec(e),n=e,r=0;for(;o&&void 0!==t[r];)n=n.replace(o[0],t[r].toString()),r+=1,o=i.exec(e);return n};function c(e,t,i){if(!(0,n.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!(null==i?void 0:i.debugLanguage),u={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,s.defaultLanguage)(null==i?void 0:i.language,h),f=t=>{if(!t)return;if((0,n.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,n.isString)(t[i]))return d(t[i]);let o=(0,r.ucfirst)(e);if((0,n.isString)(t[o]))return d(t[o])};void 0!==o.lang[p]?u=o.lang[p]:c||(u=void 0!==o.lang[h]?o.lang[h]:o.lang.en);let m=null==i?void 0:i.i18n;if(m&&m[p]){let e=f(m[p]);if(e)return e}return f(u)||(!c&&o.lang.en&&(0,n.isString)(o.lang.en[e])&&o.lang.en[e]?d(o.lang.en[e]):c?"{"+e+"}":(o.IS_PROD,d(e)))}i.d(t,["sprintf",0,l])},59007:function(e,t,i){i.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return n.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.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(87058),n=i(67477),r=i(56967),s=i(12475),a=i(67462),l=i(49055),c=i(36409)},12475:function(e,t,i){i.d(t,["CamelCaseToKebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"kebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()])},67462:function(e,t,i){i.d(t,{stringify:function(){return o}});function o(e,t={}){if("object"!=typeof e)return e+"";let i=new Set(t.excludeKeys),n=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(n.get(t))return"[refObject]";n.set(t,!0)}return t}},t.prettify)}},49055:function(e,t,i){i.d(t,{trim:function(){return n},trimChars:function(){return r},trimInv:function(){return s}});var o=i(82758);function n(e){return e.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(e,t,i){i.d(t,{ucfirst:function(){return o}});function o(e){return e.length?e[0].toUpperCase()+e.substring(1):""}},25726:function(e,t,i){i.d(t,{alignElement:function(){return p},clearAlign:function(){return d},getAlignClasses:function(){return c},getHAlign:function(){return u},hAlignElement:function(){return function e(t,i,o){var n;if(o){e(t,"normal"),Object.values(o).forEach(e=>l(e).forEach(e=>t.classList.remove(...e))),t.classList.add(...null!=(n=l(o[i||"normal"])[0])?n:[]),["class","style"].forEach(e=>{var i;(null==(i=(0,r.attr)(t,e))?void 0:i.trim())||(0,r.attr)(t,e,null)});return}i&&"normal"!==i?"center"!==i?((0,s.css)(t,"float",i),(0,s.clearCenterAlign)(t)):(0,s.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,s.css)(t,"float")&&-1!==["right","left"].indexOf((0,s.css)(t,"float").toString().toLowerCase())&&(0,s.css)(t,"float",""),(0,s.clearCenterAlign)(t))}}});var o=i(22732),n=i(68345),r=i(29960),s=i(41180),a=i(61477);let l=e=>((0,n.isArray)(e)?e:[null!=e?e:""]).map(e=>e.split(/\s+/).filter(Boolean)).filter(e=>e.length);function c(e,t){var i,n;if(!t)return null;let r=o.Dom.isTag(t,new Set(["jodit","jodit-media"]))?t.firstElementChild:(0,a.getWrappedMedia)(e,t);return null!=(n=null==(i=e.o.alignClasses)?void 0:i[(null!=r?r:t).nodeName.toLowerCase()])?n:null}function u(e,t){if(t){for(let i of["left","right","center","normal"])if(l(t[i]).some(t=>t.every(t=>e.classList.contains(t))))return i}let i=(0,s.cssInline)(e,"float").toLowerCase();return"left"===i||"right"===i?i:"block"===(0,s.css)(e,"display")&&"auto"===(0,s.cssInline)(e,"margin-left")&&"auto"===(0,s.cssInline)(e,"margin-right")?"center":"normal"}function d(e){o.Dom.each(e,e=>{o.Dom.isHTMLElement(e)&&(0,s.cssInline)(e,"textAlign")&&((0,s.css)(e,"textAlign",""),((0,r.attr)(e,"style")||"").trim().length||(0,r.attr)(e,"style",null))})}let h=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function p(e,t){if(o.Dom.isNode(t)&&o.Dom.isElement(t)){d(t);let i=h.get(e.toLowerCase());i&&(0,s.css)(t,"textAlign",i)}}},63799:function(e,t,i){i.d(t,{loadNext:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?c(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,o=0){return(0,n.isString)(i[o])?u(t,i[o]).then(()=>e(t,i,o+1)):Promise.resolve()}}});var o=i(2748),n=i(70799),r=i(29960),s=i(66292);let a=new Map,l=e=>(t,i)=>{if(a.has(i))return a.get(i);let o=e(t,i);return a.set(i,o),o},c=l((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let a=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(t)});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.e.one(a,"error",n).one(a,"load",i),o.Dom.append(e.od.body,a)})),u=l((e,t)=>e.async.promise((i,n)=>{if(e.isInDestruct)return n();let a=e.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.isInDestruct||e.e.on(a,"load",()=>i(a)).on(a,"error",n),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?o.Dom.append(e.o.shadowRoot,a):o.Dom.append(e.od.body,a)}));i.d(t,["alreadyLoadedList",0,a,"appendScriptAsync",0,c,"appendStyleAsync",0,u])},38837:function(e,t,i){i.d(t,{assert:function(){return n}});class o extends Error{constructor(e){super(e),this.name="AssertionError"}}function n(e,t){if(!e)throw new o("Assertion failed: "+t)}},29960:function(e,t,i){i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,o.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(i))return Object.keys(i).forEach(o=>{let r=i[o];(0,n.isPlainObject)(r)&&"style"===o?(0,a.css)(t,r):("className"===o&&(o="class"),e(t,o,r))}),null;let c=(0,s.CamelCaseToKebabCase)(i);if(/^-/.test(c)){let i=e(t,"data"+c);if(i)return i;c=c.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(c)&&t.removeAttribute(c);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===c||"height"===c)&&(e=e.replace("px","")),t.setAttribute(c,e),e}return t.getAttribute(c)}},attrRaw:function(){return l}});var o=i(23282),n=i(72430),r=i(70799),s=i(12475),a=i(41180);function l(e,t,i){if(void 0===i)return e.getAttribute(t);if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,i)}},97639:function(e,t,i){i.d(t,["browser",0,e=>{let t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e}])},44710:function(e,t,i){var o=i(72430);let n=(e,t)=>{let i=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];i.push((0,o.isPlainObject)(l)?n(l,a):r(a)+"="+r(l))}return i.join("&")};i.d(t,["buildQuery",0,n])},66292:function(e,t,i){var o=i(82758);i.d(t,["completeUrl",0,e=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)])},68934:function(e,t,i){i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,u.keys)(t,!1).reduce((i,o)=>(i[o]=(0,n.isPlainObject)(t[o])?e(t[o]):t[o],i),{})}},ConfigFlatten:function(){return d},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(o=>{if((0,c.isUnsafeProtoKey)(o))return;let r=i[o],s=t[o];(0,n.isPlainObject)(r)&&(0,n.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[o]=r})}},ConfigProto:function(){return function e(t,i,u=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let d=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==d.presets[t.preset]){let e=d.presets[t.preset];Object.keys(e).forEach(i=>{(0,s.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let h={};return Object.keys(t).forEach(r=>{if((0,c.isUnsafeProtoKey)(r))return;let s=t[r],a=i?i[r]:null;if((0,n.isPlainObject)(s)&&(0,n.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,u+1);return}if(0!==u&&(0,o.isArray)(s)&&!(0,l.isAtom)(s)&&(0,o.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,i),h}}});var o=i(68345),n=i(72430),r=i(70799),s=i(86068),a=i(6441),l=i(97735),c=i(69175),u=i(37790);function d(e){return(0,u.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},55877:function(e,t,i){var o=i(82758),n=i(26049),r=i(82501);i.d(t,["convertMediaUrlToVideoEmbed",0,(e,{width:t=400,height:i=345}={})=>{if(!(0,n.isURL)(e))return e;let s=o.globalDocument.createElement("a");s.href=e,t||(t=400),i||(i=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let o=s.pathname.split("/").filter(Boolean),n=o.findIndex(e=>/^\d+$/.test(e));if(-1===n)return e;let r=o[n],l=o[n+1];return l&&0===n&&(r+="/"+l),'<iframe width="'+t+'" height="'+i+'" src="'+a+"//player.vimeo.com/video/"+r+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let o=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(o=o.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+i+'" src="'+a+"//www.youtube.com/embed/"+o+'" frameborder="0" allowfullscreen></iframe>':e}}return e}])},41180:function(e,t,i){i.d(t,{css:function(){return l},cssInline:function(){return c}});var o=i(87612),n=i(72430),r=i(3760),s=i(87058),a=i(12475);function l(e,t,i,c=!1){if((0,o.isBoolean)(i)&&(c=i,i=void 0),(0,n.isPlainObject)(t)||void 0!==i){let o=(e,t,i)=>{void 0!==(i=(0,r.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,r.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,n.isPlainObject)(t)){let i=Object.keys(t);for(let n=0;n<i.length;n+=1)o(e,(0,s.camelCase)(i[n]),t[i[n]])}else o(e,(0,s.camelCase)(t),i);return""}let u=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),p=e.style[t],f="";return void 0!==p&&""!==p?f=p:h&&!c&&(f=h.getComputedStyle(e).getPropertyValue(u)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(f.toString())&&(f=parseInt(f.toString(),10)),(0,r.normalizeCssValue)(t,f)}function c(e,t){return e.style.getPropertyValue((0,a.kebabCase)(t))}i.d(t,["clearCenterAlign",0,e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}])},15456:function(e,t,i){i.d(t,["ctrlKey",0,e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}])},86583:function(e,t,i){var o=i(39955);let n=new WeakMap;i.d(t,["dataBind",0,(e,t,i)=>{let r=n.get(e);if(!r){r={},n.set(e,r);let t=null;(0,o.isViewObject)(e.j)&&(t=e.j.e),(0,o.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{n.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}])},96325:function(e,t,i){var o=i(82758),n=i(70799);i.d(t,["defaultLanguage",0,(e,t="en")=>"auto"!==e&&(0,n.isString)(e)?e:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t])},82760:function(e,t,i){i.d(t,{connection:function(){return r},error:function(){return n},options:function(){return s}});var o=i(32880);function n(e){return TypeError(e)}function r(e){return new o.ConnectionError(e)}function s(e){return new o.OptionsError(e)}},93661:function(e,t,i){i.d(t,{abort:function(){return o}});function o(e="Aborted"){return new DOMException(e,"AbortError")}},86397:function(e,t,i){i.d(t,{ConnectionError:function(){return o}});class o extends Error{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}},32880:function(e,t,i){i.d(t,{ConnectionError:function(){return n.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return o.abort}});var o=i(93661),n=i(86397),r=i(57865)},57865:function(e,t,i){i.d(t,{OptionsError:function(){return o}});class o extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}},89890:function(e,t,i){i.d(t,{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},options:function(){return o.options}});var o=i(82760),n=i(32880)},97735:function(e,t,i){i.d(t,{fastClone:function(){return s},isAtom:function(){return n},markAsAtomic:function(){return r}});var o=i(67462);function n(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,o.stringify)(e))}},80568:function(e,t,i){var o=i(23282);let n=new Map;i.d(t,["getClassName",0,e=>{var t;if((0,o.isFunction)(e.className))return e.className();let i=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(n.has(i))return n.get(i);if(i.name)return i.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(r);return s?s[1]:""},"keepNames",0,n])},94643:function(e,t,i){i.d(t,{get:function(){return r}});var o=i(70799),n=i(86068);function r(e,t){if(!(0,o.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,n.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,n.isVoid)(r)?null:r}},38420:function(e,t,i){i.d(t,["humanSizeToBytes",0,e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],o=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?o*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}])},43555:function(e,t,i){i.d(t,{$$:function(){return j.$$},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return g.ConnectionError},LimitedStack:function(){return x.LimitedStack},OptionsError:function(){return g.OptionsError},UNSAFE_PROTO_KEYS:function(){return _.UNSAFE_PROTO_KEYS},abort:function(){return g.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return n.alreadyLoadedList},appendScriptAsync:function(){return n.appendScriptAsync},appendStyleAsync:function(){return n.appendStyleAsync},assert:function(){return r.assert},attr:function(){return s.attr},attrRaw:function(){return s.attrRaw},browser:function(){return a.browser},buildQuery:function(){return l.buildQuery},call:function(){return P.call},callPromise:function(){return P.callPromise},callThis:function(){return P.callThis},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},cns:function(){return S.cns},completeUrl:function(){return c.completeUrl},connection:function(){return g.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},createMediaWrapper:function(){return k.createMediaWrapper},css:function(){return h.css},cssInline:function(){return h.cssInline},cssPath:function(){return j.cssPath},ctrlKey:function(){return p.ctrlKey},dataBind:function(){return f.dataBind},defaultLanguage:function(){return m.defaultLanguage},error:function(){return g.error},fastClone:function(){return v.fastClone},get:function(){return b.get},getAlignClasses:function(){return o.getAlignClasses},getClassName:function(){return y.getClassName},getDataTransfer:function(){return P.getDataTransfer},getHAlign:function(){return o.getHAlign},getMediaWrapper:function(){return k.getMediaWrapper},getPropertyDescriptor:function(){return P.getPropertyDescriptor},getWrappedMedia:function(){return k.getWrappedMedia},getXPathByElement:function(){return j.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return T.inView},isAtom:function(){return v.isAtom},isUnsafeProtoKey:function(){return _.isUnsafeProtoKey},keepNames:function(){return y.keepNames},keys:function(){return P.keys},loadImage:function(){return P.loadImage},loadNext:function(){return n.loadNext},loadNextStyle:function(){return n.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return S.markDeprecated},markOwner:function(){return P.markOwner},memorizeExec:function(){return P.memorizeExec},options:function(){return g.options},parseQuery:function(){return C.parseQuery},prepareEmbedCode:function(){return E.prepareEmbedCode},prepareMedia:function(){return E.prepareMedia},previewBox:function(){return I.previewBox},refs:function(){return j.refs},reset:function(){return D.reset},resolveElement:function(){return j.resolveElement},scrollIntoViewIfNeeded:function(){return T.scrollIntoViewIfNeeded},set:function(){return A.set},wrapMedia:function(){return k.wrapMedia}});var o=i(25726),n=i(63799),r=i(38837),s=i(29960),a=i(97639),l=i(44710),c=i(66292),u=i(68934),d=i(55877),h=i(41180),p=i(15456),f=i(86583),m=i(96325),g=i(89890),v=i(97735),b=i(94643),y=i(80568),w=i(38420),_=i(69175),S=i(95942),k=i(61477),C=i(82501),E=i(96437),I=i(11628),D=i(58844),T=i(26395),j=i(76078),A=i(3703),x=i(50535),P=i(37790)},69175:function(e,t,i){i.d(t,{isUnsafeProtoKey:function(){return n}});let o=["__proto__","constructor","prototype"];function n(e){return -1!==o.indexOf(e)}i.d(t,["UNSAFE_PROTO_KEYS",0,o])},95942:function(e,t,i){i.d(t,{markDeprecated:function(){return n}});let o=console;function n(e,t=[""],i=null){return(...n)=>(o.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...n))}i.d(t,["cns",0,o])},61477:function(e,t,i){i.d(t,{createMediaWrapper:function(){return a},getMediaWrapper:function(){return s},getWrappedMedia:function(){return r},wrapMedia:function(){return l}});var o=i(2748);let n=(e,t)=>o.Dom.isHTMLElement(e)&&e.nodeName.toLowerCase()===t.tag.toLowerCase()&&e.classList.contains(t.className);function r(e,t){var i;for(let[o,r]of Object.entries(null!=(i=e.o.mediaWrappers)?i:{}))if(n(t,r)){let e=t.querySelector(o);if(e)return e}return null}function s(e,t){return o.Dom.closest(t,t=>!!r(e,t),e.editor)}function a(e,t){var i;let o=null==(i=e.o.mediaWrappers)?void 0:i[t.toLowerCase()];return o?e.createInside.element(o.tag,{class:o.className,contenteditable:!1,draggable:!0}):null}function l(e,t){let i=a(e,t.nodeName);return i?(t.parentNode&&o.Dom.before(t,i),o.Dom.append(i,t),i):t}},82501:function(e,t,i){i.d(t,["parseQuery",0,e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let o=i[e].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t}])},96437:function(e,t,i){i.d(t,{prepareEmbedCode:function(){return s},prepareMedia:function(){return r}});var o=i(25726),n=i(61477);function r(e,t){let i=(0,n.wrapMedia)(e,t),{mediaDefaultAlign:r}=e.o;return r&&"normal"!==r&&(0,o.hAlignElement)(i,r,(0,o.getAlignClasses)(e,i)),i}function s(e,t){let i=e.createInside.div();i.innerHTML=t.trim();let o=i.firstElementChild;return o&&1===i.childNodes.length?r(e,o):t}},11628:function(e,t,i){i.d(t,{previewBox:function(){return a}});var o=i(2748),n=i(70799),r=i(29960),s=i(41180);function a(e,t,i="px",l=null){let c=[],u=function(e,t){let i=[],n=[];o.Dom.each(e.editor,e=>{o.Dom.isTag(e,"img")&&n.push(e)});try{n.forEach(n=>{let s=[(0,r.attr)(n,"width"),(0,r.attr)(n,"height"),(0,r.attr)(n,"src")];(0,r.attr)(n,{width:n.offsetWidth+t,height:n.offsetHeight+t});let a=e.createInside.a();o.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(n,"src")||""),(0,r.attr)(n,"src",a.href),o.Dom.safeRemove(a),i.push(()=>{(0,r.attr)(n,{src:s[2],width:s[0]||null,height:s[1]||null})})})}catch(e){throw i.forEach(e=>e()),i.length=0,e}return i}(e,i);try{let a=e.e.fire("beforePreviewBox",t,i);if(null!=a)return a;let u=e.c.div("jodit__preview-box jodit-context");l&&o.Dom.append(l,u),(0,s.css)(u,{position:"relative",padding:16});let d=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),o.Dom.append(u,t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),u=i.document.body,"function"==typeof ResizeObserver)){let o=!1,n=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(n),(0,s.css)(t,"height",n.offsetHeight+20),e.async.requestAnimationFrame(()=>{o||r.observe(n)})},100)),a=()=>{o=!0,r.unobserve(n),r.disconnect(),e.e.off("beforeDestruct",a)};c.push(a),e.e.on("beforeDestruct",a)}}else(0,s.css)(u,{minWidth:1024,minHeight:600,border:0});let h=(t,i)=>{let s=(0,n.isString)(i)?e.c.div():i;(0,n.isString)(i)&&(s.innerHTML=i);for(let e=0;e<s.childNodes.length;e+=1){let i=s.childNodes[e];if(o.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,r.attr)(e,i.attributes[t].name,i.attributes[t].value);0===i.childNodes.length||o.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):h(e,i);try{o.Dom.append(t,e)}catch(e){}}else try{o.Dom.append(t,i.cloneNode(!0))}catch(e){}}};return h(u,d),e.e.fire("afterPreviewBox",u),[u,()=>{c.forEach(e=>e())}]}finally{u.forEach(e=>e())}}},58844:function(e,t,i){i.d(t,{reset:function(){return a}});var o=i(82758),n=i(23282),r=i(94643);let s={};function a(e){var t,i;if(!(e in s)){let i=o.globalDocument.createElement("iframe");try{if(i.src="about:blank",o.globalDocument.body.appendChild(i),!i.contentWindow)return null;let t=(0,r.get)(e,i.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),i.contentWindow);(0,n.isFunction)(t)&&(s[e]=t.bind(a))}catch(e){if(!o.IS_PROD)throw e}finally{null==(t=i.parentNode)||t.removeChild(i)}}return null!=(i=s[e])?i:null}},26395:function(e,t,i){i.d(t,{inView:function(){return n},scrollIntoViewIfNeeded:function(){return r}});var o=i(2748);function n(e,t,i){let o=e.getBoundingClientRect(),n=e,r=o.top,s=o.height;for(;n&&n!==t&&n.parentNode;)if(r+s>(o=(n=n.parentNode).getBoundingClientRect()).bottom+1&&r>o.top||r+s<=o.top)return!1;return(r+s<=(i.documentElement&&i.documentElement.clientHeight||0)+1||r<=0)&&r+s>=0}function r(e,t,i){if(o.Dom.isHTMLElement(e)&&!n(e,t,i)){if(t.clientHeight!==t.scrollHeight){let i=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<i?i:e.offsetTop}n(e,t,i)||e.scrollIntoView({block:"nearest"})}}},76078:function(e,t,i){i.d(t,{$$:function(){return d},resolveElement:function(){return p}});var o=i(82758),n=i(2748),r=i(4510),s=i(70799),a=i(87058),l=i(29960),c=i(89890);let u=1;function d(e,t){let i;if(!o.IS_ES_NEXT&&/:scope/.test(e)&&o.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let o=t.id,n=o||"_selector_id_"+(Math.random()+"").slice(2)+ ++u;e=e.replace(/:scope/g,"#"+n),o||t.setAttribute("id",n),i=t.parentNode.querySelectorAll(e),o||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,r.toArray)(i).indexOf(e)+1)+"]":"")};function p(e,t){let i=e;if((0,s.isString)(e))try{i=t.querySelector(e)}catch(t){throw(0,c.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!n.Dom.isElement(i)||!i.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return i}i.d(t,["cssPath",0,e=>{if(!n.Dom.isElement(e))return null;let t=[],i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,o=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&o++;while(t)e+=":nth-of-type("+o+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")},"getXPathByElement",0,h,"refs",0,e=>{"container"in e&&(e=e.container);let t={};return n.Dom.each(e,e=>{if(n.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let i=(0,l.attr)(e,"-ref");i&&(0,s.isString)(i)&&(t[(0,a.camelCase)(i)]=e,t[i]=e)}}),t}])},3703:function(e,t,i){i.d(t,{set:function(){return l}});var o=i(68345),n=i(29807),r=i(72430),s=i(70799),a=i(69175);function l(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let c=i;for(let e=0;e<l.length-1;e+=1){let t=l[e];(0,o.isArray)(c[t])||(0,r.isPlainObject)(c[t])||(c[t]=(0,n.isNumeric)(l[e+1])?[]:{}),c=c[t]}c&&(c[l[l.length-1]]=t)}},50535:function(e,t,i){i.d(t,{LimitedStack:function(){return o}});class o{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){this.limit=e,this.stack=[]}}},37790:function(e,t,i){i.d(t,{call:function(){return a},callPromise:function(){return u},callThis:function(){return l},getPropertyDescriptor:function(){return d},markOwner:function(){return c}});var o=i(14773),n=i(86068),r=i(29960),s=i(86583);function a(e,...t){return e(...t)}function l(e,t,...i){return e.apply(t,i)}function c(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function u(e,t){return(0,o.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}function d(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e)return i}i.d(t,["getDataTransfer",0,e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}},"keys",0,(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},"loadImage",0,(e,t)=>t.async.promise((i,o)=>{let n=new Image,r=()=>{t.e.off(n),null==o||o()},s=()=>{t.e.off(n),i(n)};t.e.one(n,"load",s).one(n,"error",r).one(n,"abort",r),n.src=e,n.complete&&s()}),"memorizeExec",0,(e,t,{control:i},o)=>{var r;let a="button"+i.command,l=null!=(r=i.args&&i.args[0])?r:(0,s.dataBind)(e,a);if((0,n.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),o&&(l=o(l)),e.execCommand(i.command,!1,null!=l?l:void 0)}])},31359:function(e,t,i){i.d(t,{init:function(){return s}});var o=i(82758),n=i(60132),r=i(14041);function s(e,t,i,s,a,l,c){if((0,n.isInitable)(s))try{s.init(e)}catch(e){if(!o.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{o.IS_PROD}),s.styles&&(c(e,t,"style").innerHTML=s.styles)}},14041:function(e,t,i){i.d(t,{loadExtras:function(){return u},loadStyle:function(){return l}});var o=i(82758),n=i(12475),r=i(63799),s=i(89672);let a=new Set;async function l(e,t){let i=c(e,t,!1);if(!a.has(i))return a.add(i),(0,r.appendStyleAsync)(e,i)}function c(e,t,i){t=(0,n.kebabCase)(t);let o=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+o+"."+(i?"js":"css")}function u(e,t,i,n){try{let o=i.filter(t=>!e.has((0,s.normalizeName)(t.name)));o.length&&o.map(e=>{let i=e.url||c(t,e.name,!0);return(0,r.appendScriptAsync)(t,i).then(n).catch(()=>null)})}catch(e){if(!o.IS_PROD)throw e}}},48591:function(e,t,i){i.d(t,{makeInstance:function(){return r}});var o=i(82758),n=i(23282);function r(e,t){try{try{return(0,n.isFunction)(t)?new t(e):t}catch(i){if((0,n.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!o.IS_PROD)throw e}return null}},89672:function(e,t,i){i.d(t,{normalizeName:function(){return n}});var o=i(12475);function n(e){return(0,o.kebabCase)(e).toLowerCase()}},50911:function(e,t,i){i.d(t,{Plugin:function(){return o.Plugin}});var o=i(20356);i(41876)},41876:function(e,t,i){i.d(t,{PluginSystem:function(){return p}});var o=i(82758),n=i(57012),r=i(46559),s=i(68345),a=i(60132),l=i(70799),c=i(31359),u=i(14041),d=i(48591),h=i(89672);class p{get size(){return this.__items.size}add(e,t){this.__items.set((0,h.normalizeName)(e),t),n.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,h.normalizeName)(e))}remove(e){this.__items.delete((0,h.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,o)=>{(!e||e.has(o))&&t.push([o,i])}),t}__init(e){let{extraList:t,disableList:i,filter:n}={extraList:e.o.extraPlugins.map(e=>(0,l.isString)(e)?{name:e}:e),disableList:new Set((0,r.splitArray)(e.o.disablePlugins).map(h.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},p=new Map,f={},m=new Set;e.__plugins=f;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(n).forEach(([o,n])=>{if(i.has(o)||p.has(o))return;let r=null==n?void 0:n.requires;if(r&&(0,s.isArray)(r)&&r.length){if(r.some(e=>i.has(e)))return;if(!r.every(e=>p.has(e)))return void m.add(o)}t=!0;let a=(0,d.makeInstance)(e,n);if(!a){p.set(o,null),m.delete(o);return}(0,c.init)(e,o,n,a,p,m,this.opts.getContainer),f[o]=a}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,u.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(f).forEach(t=>{let i=f[t];(0,a.isDestructable)(i)&&i.destruct(e),delete f[t]}),delete e.__plugins}),o.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),n.eventEmitter.off(`plugin:${e}:ready`,i)};n.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){this.opts=e,this.__items=new Map}}},20356:function(e,t,i){i.d(t,{Plugin:function(){return a}});var o=i(91907),n=i(65478),r=i(19306),s=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class a extends o.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,r.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(o.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var e;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(o.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,r.isJoditObject)(t)&&(null==(e=this.buttons)||e.forEach(e=>{null==t||t.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),this.buttons=[],this.hasStyle=!1,this.__inited=!1,e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}a.requires=[],s([n.autobind],a.prototype,"__afterPluginSystemInit",null),s([n.autobind],a.prototype,"__afterInit",null),s([n.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,i){i.d(t,{Ajax:function(){return u}});var o=i(8884),n=i(82758),r=i(45219),s=i(21537),a=i(89890),l=i(6441);i(57459);var c=i(98582);class u{className(){return"Ajax"}__buildParams(e,t){return(0,s.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,s.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,s.isString)(e)||e instanceof n.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,s.isFunction)(e.append)?e:(0,s.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise(async(o,n)=>{var r;let l=()=>{this.__isFulfilled=!0,n(a.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,o(new c.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=u,e.onabort=()=>{this.__isFulfilled=!0,n(a.abort("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let o=0;e.lengthComputable&&(o=e.loaded/e.total*100),null==(i=(t=this.options).onProgress)||i.call(t,o)},e.onreadystatechange=()=>{var i,o;null==(o=(i=this.options).onProgress)||o.call(i,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?u():e.statusText&&(this.__isFulfilled=!0,n(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:d,data:h,method:p}=i;e.open(p,d,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:f}=t;(0,s.isFunction)(f)&&(f=await f.call(this)),f&&e.setRequestHeader&&Object.keys(f).forEach(t=>{e.setRequestHeader(t,f[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)})}async *stream(){var e;this.__activated=!0;let{xhr:t,o:i}=this,o=this.prepareRequest(),n=0,r="",l=[],c=null,u=!1,d=null,h=()=>{if(c){let e=c;c=null,e()}},p=e=>{var i;let o=t.responseText;r+=o.substring(n),n=o.length;let s=r.split(`
11
11
 
12
12
  `);for(let t of(r=e?"":null!=(i=s.pop())?i:"",s)){let e=t.trim();if(!e)continue;let i=[];for(let t of e.split(`
13
13
  `))t.startsWith("data: ")?i.push(t.slice(6)):t.startsWith("data:")&&i.push(t.slice(5));i.length&&l.push(i.join(`
@@ -124,7 +124,7 @@
124
124
  ${i("contains detailed help for using")}
125
125
  </div>
126
126
  <div>${i("Copyright © XDSoft.net - Chupurnov Valerii. All rights reserved.")}</div>
127
- </div>`),(0,r.css)(t.dialog,{minHeight:200,minWidth:420}),t.open(!0,!0)},tooltip:"About Jodit",mode:o.MODE_SOURCE+o.MODE_WYSIWYG},n.pluginSystem.add("about",function(e){e.registerButton({name:"about",group:"info"})}),s.Icon.set("about",l.default)},49399:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M7.5 7a4.5 4.5 0 1 1 7.8 3c-2.1 1.3-3.3 2-3.3 5M12 20h0"/> </g> </svg> '},12391:function(e,t,i){var o=i(65478),n=i(580),r=i(21537),s=i(41180),a=i(41409);i(4604);var l=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let c="addnewline";class u extends a.Plugin{__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,a.Dom.append(this.j.container,this.__line),(0,s.css)(this.__line,"width",this.j.container.clientWidth)))}onLock(e){e&&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(e){e.o.addNewLine&&(e.e.on(this.__line,"mousemove",e=>{e.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 e=this.j;e.e.off(e.editor,"."+c).off(e.container,"."+c).off("."+c).on([e.ow,e.ew,e.editor],"scroll."+c,this.__hideForce).on("finishedCleanHTMLWorker."+c,this.__hideForce).on(e.editor,"click."+c,this.__hide).on(e.container,"mouseleave."+c,this.__hide).on(e.editor,"mousemove."+c,this.__onMouseMove)}onDblClickEditor(e){let t=this.j;if(!t.o.readonly&&t.o.addNewLineOnDBLClick&&e.target===t.editor&&t.s.isCollapsed()){let i=(0,r.offset)(t.editor,t,t.ed),o=e.pageY-t.ew.scrollX,n=t.createInside.element(t.o.enter);Math.abs(o-i.top)<Math.abs(o-(i.height+i.top))&&t.editor.firstChild?a.Dom.prepend(t.editor,n):a.Dom.append(t.editor,n),t.s.setCursorIn(n),t.synchronizeValues(),this.__hideForce(),e.preventDefault()}}__onMouseMove(e){var t;let i=this.j,o=(null!=(t=i.o.shadowRoot)?t:i.ed).elementFromPoint(e.clientX,e.clientY);if(!a.Dom.isHTMLElement(o)||!a.Dom.isOrContains(i.editor,o))return;if(i.editor===o||this.__isMatchedTag(o)||(o=a.Dom.closest(o,this.__isMatchedTag,i.editor)),!o)return void this.__hide();if(this.__isMatchedTag(o)){let e=a.Dom.up(o,a.Dom.isBlock,i.editor);e&&e!==i.editor&&(o=e)}let n=(0,r.position)(o,this.j),l=!1,{clientY:c,clientX:u}=e;if(this.j.iframe){let{top:e,left:t}=(0,r.position)(this.j.iframe,this.j,!0);c+=e,u+=t}let d=this.j.o.addNewLineDeltaShow;Math.abs(c-n.top)<=d?(l=n.top,this.__isBeforeContent=!0):Math.abs(c-(n.top+n.height))<=d&&(l=n.top+n.height,this.__isBeforeContent=!1);let h=i.editor===o;!1===l||(!h||this.__isBeforeContent)&&(h||(0,r.call)(this.__isBeforeContent?a.Dom.prev:a.Dom.next,o,this.__canGetFocus,i.editor))?(this.__current=!1,this.__hide()):((0,s.css)(this.__line,"top",l),this.__current=o,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",u-n.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),a.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(){super(...arguments),this.__line=this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${a.Icon.get("enter")}</span></div>`),this.__isMatchedTag=e=>!!(e&&this.j.o.addNewLineTagsTriggers.includes(e.nodeName.toLowerCase())),this.__isBeforeContent=!1,this.__lineInFocus=!1,this.__isShown=!1,this.__hideForce=()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,a.Dom.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))},this.__canGetFocus=e=>null!=e&&a.Dom.isBlock(e)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName),this.__onClickLine=e=>{let t=this.j,i=t.createInside.element(t.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===t.editor?a.Dom.prepend(t.editor,i):a.Dom.before(this.__current,i):a.Dom.append(t.editor,i),t.s.setCursorIn(i),(0,r.scrollIntoViewIfNeeded)(i,t.editor,t.ed),t.synchronizeValues(),this.__hideForce(),e.preventDefault()}}}l([(0,o.watch)(":lock")],u.prototype,"onLock",null),l([o.autobind],u.prototype,"__hide",null),l([(0,o.watch)(":dblclick")],u.prototype,"onDblClickEditor",null),l([(0,o.throttle)(e=>e.defaultTimeout)],u.prototype,"__onMouseMove",null),n.pluginSystem.add("addNewLine",u)},4604:function(e,t,i){var o=i(12153),n=i(6441),r=i(6342);n.Config.prototype.addNewLine=!0,n.Config.prototype.addNewLineOnDBLClick=!0,n.Config.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],n.Config.prototype.addNewLineDeltaShow=20,o.Icon.set("enter",r.default)},6342:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 5v7a3 3 0 0 1-3 3H4m5-5-5 5 5 5"/> </g> </svg> '},39627:function(e,t,i){var o=i(33433),n=i(37133),r=i(580),s=i(12045),a=i(20356);i(31974);var l=i(32523),c=i(19308),u=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class d extends a.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:e,__dialog:t}=this;return new l.UiAiAssistant(e,{onInsertAfter(i){e.s.focus();let o=e.s.range;o.collapse(!1),e.s.selectRange(o),e.s.insertHTML(i),t.close()},onInsert(i){e.s.focus(),e.s.insertHTML(i),t.close()}})}afterInit(){}onGenerateAiAssistantForm(e){this.__dialog.open(this.__container,"AI Assistant"),this.__container.setPrompt(e)}onInvokeAiAssistant(e){let{jodit:t}=this;t.s.focus();let i=t.s.html;t.async.promise(async(o,n)=>{try{let n=await t.o.aiAssistant.aiAssistantCallback(e,i);o(n)}catch(e){n(e)}}).then(e=>{t.e.fire("ai-assistant-response",e)}).catch(e=>{(0,s.isAbortError)(e)||(t.message.error(e.message),t.e.fire("ai-assistant-error",e.message))})}beforeDestruct(e){var t,i;null==(t=(0,o.cached)(this,"__container"))||t.destruct(),null==(i=(0,o.cached)(this,"__dialog"))||i.destruct()}constructor(e){super(e),this.buttons=[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}],(0,r.extendLang)(c)}}u([o.cache],d.prototype,"__dialog",null),u([o.cache],d.prototype,"__container",null),u([(0,n.watch)(":generateAiAssistantForm.ai-assistant")],d.prototype,"onGenerateAiAssistantForm",null),u([(0,n.watch)(":invokeAiAssistant")],d.prototype,"onInvokeAiAssistant",null),r.pluginSystem.add("ai-assistant",d)},64488:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 17 11-11 4 4L7 21Zm8-8 4 4M5 3v4M3 5h4M19 2v4m-2-2h4m-1 12v4m-2-2h4"/> </g> </svg> '},23658:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="7" width="16" height="13" rx="4"/><path d="M12 3v4M4 11H2v5h2m16-5h2v5h-2M8.5 13.5h0m7 0h0" stroke-width="2.75"/> </g> </svg> '},31974:function(e,t,i){var o=i(12153),n=i(6441),r=i(64488),s=i(23658);let a={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"};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",s.default),o.Icon.set("ai-commands",r.default),n.Config.prototype.controls["ai-commands"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:a,exec(e,t,{control:i}){e.e.fire("generateAiAssistantForm.ai-assistant",i.name)}},n.Config.prototype.controls["ai-assistant"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(e,t,i){e.e.fire("generateAiAssistantForm.ai-assistant")}},i.d(t,["aiAssitentCommands",0,a])},47193:function(e){e.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"}},7886:function(e){e.exports={aiAssistant:"Asistente de IA",aiCommands:"Comandos de IA","AI Assistant":"Asistente de IA","AI Commands":"Comandos de IA","Improve writing":"Mejorar escritura","Make shorter":"Hacer más corto","Make longer":"Hacer más largo","Simplify language":"Simplificar lenguaje",Summarize:"Resumir",Continue:"Continuar",Prompt:"Solicitud",Insert:"Insertar","Insert After":"Insertar después","Try Again":"Intentar de nuevo","Ask AI to improve generated text":"Pida a la IA que mejore el texto generado","Change tone to professional":"Cambiar tono a profesional","Change tone to friendly":"Cambiar tono a amigable","Change tone to formal":"Cambiar tono a formal","Change tone to casual":"Cambiar tono a casual","Change tone to direct":"Cambiar tono a directo","Change tone to confident":"Cambiar tono a confiado","Change tone to business":"Cambiar tono a empresarial","Change style to legal":"Cambiar estilo a legal","Change style to journalism":"Cambiar estilo a periodístico","Change style to poetic":"Cambiar estilo a poético","Translate to Spanish":"Traducir al español","Translate to French":"Traducir al francés","Translate to German":"Traducir al alemán","Translate to Italian":"Traducir al italiano","Translate to Portuguese":"Traducir al portugués","Translate to English":"Traducir al inglés","Translate to Chinese":"Traducir al chino","Translate to Japanese":"Traducid al japonés","Translate to Korean":"Traducir al coreano","Translate to Russian":"Traducir al ruso","Translate to Arabic":"Traducir al árabe",Submit:"Enviar"}},19308:function(e,t,i){i.r(t),i.d(t,{en:function(){return o||(o=i.t(r,2))},es:function(){return n||(n=i.t(s,2))}});var o,n,r=i(47193),s=i(7886)},32523:function(e,t,i){i.d(t,{UiAiAssistant:function(){return u}});var o=i(87325),n=i(37133),r=i(2748),s=i(70799),a=i(67510),l=i(48538),c=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let u=class e extends l.UIElement{className(){return"UIAiAssistant"}render(){return`<div>
127
+ </div>`),(0,r.css)(t.dialog,{minHeight:200,minWidth:420}),t.open(!0,!0)},tooltip:"About Jodit",mode:o.MODE_SOURCE+o.MODE_WYSIWYG},n.pluginSystem.add("about",function(e){e.registerButton({name:"about",group:"info"})}),s.Icon.set("about",l.default)},49399:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M7.5 7a4.5 4.5 0 1 1 7.8 3c-2.1 1.3-3.3 2-3.3 5M12 20h0"/> </g> </svg> '},12391:function(e,t,i){var o=i(82758),n=i(65478),r=i(580),s=i(21537),a=i(41180),l=i(41409);i(4604);var c=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let u="addnewline";class d extends l.Plugin{__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,l.Dom.append(this.j.container,this.__line),(0,a.css)(this.__line,"width",this.j.container.clientWidth)))}onLock(e){e&&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(e){e.o.addNewLine&&(e.e.on(this.__line,"mousemove",e=>{e.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 e=this.j;e.e.off(e.editor,"."+u).off(e.container,"."+u).off("."+u).on([e.ow,e.ew,e.editor],"scroll."+u,this.__hideForce).on("finishedCleanHTMLWorker."+u,this.__hideForce).on(e.editor,"click."+u,this.__hide).on(e.container,"mouseleave."+u,this.__hide).on(e.editor,"mousemove."+u,this.__onMouseMove)}onArrowKey(e){let t=this.j,i=e.key===o.KEY_DOWN||e.key===o.KEY_RIGHT;if(!t.o.addNewLine||t.o.readonly||t.isLocked||e.shiftKey||!(i||e.key===o.KEY_UP||e.key===o.KEY_LEFT)||!t.s.isCollapsed())return;let{startContainer:n,startOffset:r}=t.s.range;t.async.setTimeout(()=>{let{range:o}=t.s,a=l.Dom.closest(n,l.Dom.isBlock,t.editor);if(e.defaultPrevented||!t.s.isInsideArea||!o.collapsed||o.startContainer!==n||o.startOffset!==r||!a||!l.Dom.findNotEmptyNeighbor(a,!i,t.editor))return;let c=t.createInside.element(t.o.enter);i?l.Dom.append(t.editor,c):l.Dom.prepend(t.editor,c),t.s.setCursorIn(c),(0,s.scrollIntoViewIfNeeded)(c,t.editor,t.ed),t.synchronizeValues()},1)}onDblClickEditor(e){let t=this.j;if(!t.o.readonly&&t.o.addNewLineOnDBLClick&&e.target===t.editor&&t.s.isCollapsed()){let i=(0,s.offset)(t.editor,t,t.ed),o=e.pageY-t.ew.scrollX,n=t.createInside.element(t.o.enter);Math.abs(o-i.top)<Math.abs(o-(i.height+i.top))&&t.editor.firstChild?l.Dom.prepend(t.editor,n):l.Dom.append(t.editor,n),t.s.setCursorIn(n),t.synchronizeValues(),this.__hideForce(),e.preventDefault()}}__onMouseMove(e){var t;let i=this.j,o=(null!=(t=i.o.shadowRoot)?t:i.ed).elementFromPoint(e.clientX,e.clientY);if(!l.Dom.isHTMLElement(o)||!l.Dom.isOrContains(i.editor,o))return;if(i.editor===o||this.__isMatchedTag(o)||(o=l.Dom.closest(o,this.__isMatchedTag,i.editor)),!o)return void this.__hide();if(this.__isMatchedTag(o)){let e=l.Dom.up(o,l.Dom.isBlock,i.editor);e&&e!==i.editor&&(o=e)}let n=(0,s.position)(o,this.j),r=!1,{clientY:c,clientX:u}=e;if(this.j.iframe){let{top:e,left:t}=(0,s.position)(this.j.iframe,this.j,!0);c+=e,u+=t}let d=this.j.o.addNewLineDeltaShow;Math.abs(c-n.top)<=d?(r=n.top,this.__isBeforeContent=!0):Math.abs(c-(n.top+n.height))<=d&&(r=n.top+n.height,this.__isBeforeContent=!1);let h=i.editor===o;!1===r||(!h||this.__isBeforeContent)&&(h||(0,s.call)(this.__isBeforeContent?l.Dom.prev:l.Dom.next,o,this.__canGetFocus,i.editor))?(this.__current=!1,this.__hide()):((0,a.css)(this.__line,"top",r),this.__current=o,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",u-n.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],"."+u).off(this.j.container,"."+u).off("."+u)}constructor(){super(...arguments),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>`),this.__isMatchedTag=e=>!!(e&&this.j.o.addNewLineTagsTriggers.includes(e.nodeName.toLowerCase())),this.__isBeforeContent=!1,this.__lineInFocus=!1,this.__isShown=!1,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"))},this.__canGetFocus=e=>null!=e&&l.Dom.isBlock(e)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName),this.__onClickLine=e=>{let t=this.j,i=t.createInside.element(t.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===t.editor?l.Dom.prepend(t.editor,i):l.Dom.before(this.__current,i):l.Dom.append(t.editor,i),t.s.setCursorIn(i),(0,s.scrollIntoViewIfNeeded)(i,t.editor,t.ed),t.synchronizeValues(),this.__hideForce(),e.preventDefault()}}}c([(0,n.watch)(":lock")],d.prototype,"onLock",null),c([n.autobind],d.prototype,"__hide",null),c([(0,n.watch)(":keydown")],d.prototype,"onArrowKey",null),c([(0,n.watch)(":dblclick")],d.prototype,"onDblClickEditor",null),c([(0,n.throttle)(e=>e.defaultTimeout)],d.prototype,"__onMouseMove",null),r.pluginSystem.add("addNewLine",d)},4604:function(e,t,i){var o=i(12153),n=i(6441),r=i(6342);n.Config.prototype.addNewLine=!0,n.Config.prototype.addNewLineOnDBLClick=!0,n.Config.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],n.Config.prototype.addNewLineDeltaShow=20,o.Icon.set("enter",r.default)},6342:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 5v7a3 3 0 0 1-3 3H4m5-5-5 5 5 5"/> </g> </svg> '},39627:function(e,t,i){var o=i(33433),n=i(37133),r=i(580),s=i(12045),a=i(20356);i(31974);var l=i(32523),c=i(19308),u=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class d extends a.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:e,__dialog:t}=this;return new l.UiAiAssistant(e,{onInsertAfter(i){e.s.focus();let o=e.s.range;o.collapse(!1),e.s.selectRange(o),e.s.insertHTML(i),t.close()},onInsert(i){e.s.focus(),e.s.insertHTML(i),t.close()}})}afterInit(){}onGenerateAiAssistantForm(e){this.__dialog.open(this.__container,"AI Assistant"),this.__container.setPrompt(e)}onInvokeAiAssistant(e){let{jodit:t}=this;t.s.focus();let i=t.s.html;t.async.promise(async(o,n)=>{try{let n=await t.o.aiAssistant.aiAssistantCallback(e,i);o(n)}catch(e){n(e)}}).then(e=>{t.e.fire("ai-assistant-response",e)}).catch(e=>{(0,s.isAbortError)(e)||(t.message.error(e.message),t.e.fire("ai-assistant-error",e.message))})}beforeDestruct(e){var t,i;null==(t=(0,o.cached)(this,"__container"))||t.destruct(),null==(i=(0,o.cached)(this,"__dialog"))||i.destruct()}constructor(e){super(e),this.buttons=[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}],(0,r.extendLang)(c)}}u([o.cache],d.prototype,"__dialog",null),u([o.cache],d.prototype,"__container",null),u([(0,n.watch)(":generateAiAssistantForm.ai-assistant")],d.prototype,"onGenerateAiAssistantForm",null),u([(0,n.watch)(":invokeAiAssistant")],d.prototype,"onInvokeAiAssistant",null),r.pluginSystem.add("ai-assistant",d)},64488:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 17 11-11 4 4L7 21Zm8-8 4 4M5 3v4M3 5h4M19 2v4m-2-2h4m-1 12v4m-2-2h4"/> </g> </svg> '},23658:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="7" width="16" height="13" rx="4"/><path d="M12 3v4M4 11H2v5h2m16-5h2v5h-2M8.5 13.5h0m7 0h0" stroke-width="2.75"/> </g> </svg> '},31974:function(e,t,i){var o=i(12153),n=i(6441),r=i(64488),s=i(23658);let a={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"};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",s.default),o.Icon.set("ai-commands",r.default),n.Config.prototype.controls["ai-commands"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:a,exec(e,t,{control:i}){e.e.fire("generateAiAssistantForm.ai-assistant",i.name)}},n.Config.prototype.controls["ai-assistant"]={isDisabled:e=>!e.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(e,t,i){e.e.fire("generateAiAssistantForm.ai-assistant")}},i.d(t,["aiAssitentCommands",0,a])},47193:function(e){e.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"}},7886:function(e){e.exports={aiAssistant:"Asistente de IA",aiCommands:"Comandos de IA","AI Assistant":"Asistente de IA","AI Commands":"Comandos de IA","Improve writing":"Mejorar escritura","Make shorter":"Hacer más corto","Make longer":"Hacer más largo","Simplify language":"Simplificar lenguaje",Summarize:"Resumir",Continue:"Continuar",Prompt:"Solicitud",Insert:"Insertar","Insert After":"Insertar después","Try Again":"Intentar de nuevo","Ask AI to improve generated text":"Pida a la IA que mejore el texto generado","Change tone to professional":"Cambiar tono a profesional","Change tone to friendly":"Cambiar tono a amigable","Change tone to formal":"Cambiar tono a formal","Change tone to casual":"Cambiar tono a casual","Change tone to direct":"Cambiar tono a directo","Change tone to confident":"Cambiar tono a confiado","Change tone to business":"Cambiar tono a empresarial","Change style to legal":"Cambiar estilo a legal","Change style to journalism":"Cambiar estilo a periodístico","Change style to poetic":"Cambiar estilo a poético","Translate to Spanish":"Traducir al español","Translate to French":"Traducir al francés","Translate to German":"Traducir al alemán","Translate to Italian":"Traducir al italiano","Translate to Portuguese":"Traducir al portugués","Translate to English":"Traducir al inglés","Translate to Chinese":"Traducir al chino","Translate to Japanese":"Traducid al japonés","Translate to Korean":"Traducir al coreano","Translate to Russian":"Traducir al ruso","Translate to Arabic":"Traducir al árabe",Submit:"Enviar"}},19308:function(e,t,i){i.r(t),i.d(t,{en:function(){return o||(o=i.t(r,2))},es:function(){return n||(n=i.t(s,2))}});var o,n,r=i(47193),s=i(7886)},32523:function(e,t,i){i.d(t,{UiAiAssistant:function(){return u}});var o=i(87325),n=i(37133),r=i(2748),s=i(70799),a=i(67510),l=i(48538),c=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let u=class e extends l.UIElement{className(){return"UIAiAssistant"}render(){return`<div>
128
128
  <div class="&__container">
129
129
  <div class="&__error"></div>
130
130
  <div class="&__body"></div>
@@ -133,7 +133,7 @@
133
133
  <div class="&__spinner"></div>
134
134
  </div>
135
135
  </div>
136
- </div>`}setPrompt(e){if(e){let{jodit:t}=this,i=t.o.aiAssistant[e],{aiCommonPrefixPrompt:o,aiCommonSuffixPrompt:n}=t.o.aiAssistant;this.promptInput.value=[o,(0,s.isString)(i)?i:"",n].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),r.Dom.detach(this.__results),this.__aiResult=e,r.Dom.append(this.__results,this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,r.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}constructor(e,{onInsert:t,onInsertAfter:i}){super(e),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,a.Button)(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=(0,a.Button)(e,"","Insert After","initial").onAction(()=>i(this.__aiResult));let o=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,a.Button)(e,{icon:{name:"ai-assistant"},name:"ai-assistant",tooltip:"Submit"}).onAction(o),this.__tryAgainButton=(0,a.Button)(e,{icon:{name:"update"},name:"update",tooltip:"Try Again",variant:"initial"}).onAction(o),this.promptInput=new a.UITextArea(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});let n=new a.UIBlock(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new a.UIForm(e,[new a.UIBlock(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),r.Dom.detach(this.__results),r.Dom.append(this.__results,this.__spinner),this.__insertButton.focus()}),r.Dom.append(this.__buttons,n.container),r.Dom.append(this.__body,this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,n.watch)(":ai-assistant-response")],u.prototype,"onAiAssistentResponse",null),c([(0,n.watch)(":ai-assistant-error")],u.prototype,"onAiAssistentError",null),c([(0,n.watch)("promptInput:change")],u.prototype,"onChangePromptValue",null),u=c([o.component],u)},25187:function(e,t,i){i(73391),i(12391),i(93183),i(66707),i(41107),i(71255),i(82439),i(61323),i(93079),i(19063),i(19271),i(1255),i(575),i(11317),i(36243),i(23399),i(96111),i(2169),i(42263),i(16233),i(77469),i(23531),i(80763),i(3215),i(70045),i(93401),i(76295),i(59483),i(91071),i(61019),i(65517),i(20071),i(32309),i(64837),i(79799),i(31571),i(85407),i(59451),i(18363),i(8355),i(58519),i(6687),i(56113),i(9159),i(12019),i(36125),i(9881),i(28545),i(45927),i(52951),i(43809),i(7309),i(68687),i(59495),i(39627),i(767),i(43003),i(72439),i(94529),i(26551),i(96139),i(72253),i(65735),i(83671),i(3115)},93183:function(e,t,i){var o=i(82758),n=i(22732),r=i(580),s=i(23282),a=i(50911),l=i(45124);i(32496);var c=i(11338),u=i(14630);class d extends a.Plugin{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){let i=this.j,r=i.selection;if(r.isFocused()||r.focus(),!r.isInsideArea)return;if((0,c.checkNotCollapsed)(i))return i.e.fire("backSpaceAfterDelete",e),!1;let a=r.range,d=i.createInside.text(o.INVISIBLE_SPACE);try{if(n.Dom.safeInsertNode(a,d),!n.Dom.isOrContains(i.editor,d))return;if(i.e.fire("backSpaceBeforeCases",e,d))return!1;(0,l.moveNodeInsideStart)(i,d,e);let r=i.o.delete.disableCases;if(u.casesMap.some(([n,a])=>{if(!(r&&r.has(n))&&(0,s.isFunction)(a)&&a(i,d,e,t))return o.IS_PROD,!0}))return!1}catch(e){throw o.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,d),this.safeRemoveEmptyNode(d)}return!1}safeRemoveEmptyNode(e){var t,i;let{range:o}=this.j.s;o.startContainer===e&&(e.previousSibling?n.Dom.isText(e.previousSibling)?o.setStart(e.previousSibling,null!=(i=null==(t=e.previousSibling.nodeValue)?void 0:t.length)?i:0):o.setStartAfter(e.previousSibling):e.nextSibling&&(n.Dom.isText(e.nextSibling)?o.setStart(e.nextSibling,0):o.setStartBefore(e.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),n.Dom.safeRemove(e)}}d.requires=["hotkeys"],r.pluginSystem.add("backspace",d)},62845:function(e,t,i){i.d(t,{checkJoinNeighbors:function(){return s}});var o=i(82758),n=i(2748),r=i(63785);function s(e,t,i){if(function(e,t,i){let o=n.Dom.findNotEmptySibling(t,i);if(!n.Dom.isElement(o)||!n.Dom.isBlock(o)||n.Dom.isList(o)||n.Dom.isTag(o,"table")||n.Dom.isCell(o)||!n.Dom.isContentEditable(o,e.editor)||Array.from(o.childNodes).some(e=>n.Dom.isBlock(e)))return!1;let s=(0,r.getMoveFilter)(e);if(i)for(let e=t;e&&!n.Dom.isBlock(e);){let t=e.nextSibling;if(n.Dom.isTag(e,"br")){n.Dom.safeRemove(e);break}s(e)?n.Dom.append(o,e):n.Dom.safeRemove(e),e=t}else{let t=n.Dom.findNotEmptySibling(o,!1);!t||n.Dom.isBlock(t)||n.Dom.isTag(t,"br")||n.Dom.after(o,e.createInside.element("br")),n.Dom.unwrap(o)}return e.s.setCursorBefore(t),!0}(e,t,i))return!0;let s=t,l=s;for(;s&&!n.Dom.findNotEmptySibling(s,i)&&s.parentElement!==e.editor;)l=s=s.parentElement;if(n.Dom.isElement(l)&&n.Dom.isContentEditable(l,e.editor)){var c,u;let s,d,h,p;if(n.Dom.up(t,n.Dom.isCell,l,!0))return!1;let f=n.Dom.findNotEmptySibling(l,i);if(n.Dom.isTag(f,"br"))return n.Dom.safeRemove(f),e.s.setCursorBefore(t),!0;if(i&&n.Dom.isTag(f,"table"))return e.s.setCursorBefore(t),!0;let m=(c=l,(s=n.Dom.up(t,n.Dom.isBlock,c))?n.Dom.isLeaf(s)&&s.parentElement?s.parentElement:s:c);if(f&&(function(e,t,i,s,a){if(a||!(n.Dom.isList(i)||n.Dom.isList(s)))return!1;let l=n.Dom.up(t,n.Dom.isBlock,i,!0),c=n.Dom.isList(s)?s.firstElementChild:s;if(!l||!c||n.Dom.isTag(c,o.INSEPARABLE_TAGS)||n.Dom.isTag(c,"table"))return!1;if(!n.Dom.isEmpty(c)){let t=[];for(let e=c.firstChild;e&&!n.Dom.isBlock(e);e=e.nextSibling)t.push(e);if(!t.length)return!1;let i=(0,r.getMoveFilter)(e);t.forEach(e=>i(e)?n.Dom.append(l,e):n.Dom.safeRemove(e))}let u=c;for(;u&&u!==e.editor&&n.Dom.isEmpty(u);){let e=u.parentElement;n.Dom.safeRemove(u),u=e}return!0}(e,t,m,f,i)||(u=f,d=n.Dom.isTag(u,o.LIST_TAGS),h=n.Dom.isTag(m,o.LIST_TAGS),p=(e,t)=>t?e.firstElementChild:e.lastElementChild,h?(u=e.createInside.element(e.o.enterBlock),n.Dom.before(m,u),a(e,p(m,i),u,i)):!!u&&!!d&&!h&&a(e,m,p(u,!i),i))||function(e,t,i,o){if(n.Dom.isBlock(i)||!n.Dom.isBlock(t)||n.Dom.isList(t)||t.parentNode!==i.parentNode||Array.from(t.childNodes).some(e=>n.Dom.isBlock(e)))return!1;if(o){let i=n.Dom.findNotEmptySibling(t,!1);return!i||n.Dom.isBlock(i)||n.Dom.isTag(i,"br")||n.Dom.after(t,e.createInside.element("br")),n.Dom.unwrap(t),!0}let s=(0,r.getMoveFilter)(e);for(let e=i;e&&!n.Dom.isBlock(e);){let i=e.nextSibling;if(n.Dom.isTag(e,"br")){n.Dom.safeRemove(e);break}s(e)?n.Dom.append(t,e):n.Dom.safeRemove(e),e=i}return!0}(e,m,f,i)||a(e,m,function(e,t,i){let r=e;for(;r;){let e=t?r.lastChild:r.firstChild,s=e&&n.Dom.isEmptyTextNode(e)?n.Dom.findNotEmptySibling(e,t):e;if(!n.Dom.isBlock(s)||n.Dom.isTag(s,o.INSEPARABLE_TAGS)||n.Dom.isTag(s,"table")||!n.Dom.isContentEditable(s,i))break;r=s}return r}(function(e,t){if(!n.Dom.isTag(e,"table"))return e;let i=[];return n.Dom.each(e,e=>{n.Dom.isCell(e)&&i.push(e)}),i.length?i[t?i.length-1:0]:null}(f,i),i,e.editor),i)))return e.s.setCursorBefore(t),!0}return!1}function a(e,t,i,o){if(t&&n.Dom.isElement(i)){n.Dom.moveContent(t,i,!o,(0,r.getMoveFilter)(e));let s=t;for(;s&&s!==e.editor&&n.Dom.isEmpty(s);){let e=s.parentElement;n.Dom.safeRemove(s),s=e}return!0}return!1}},91748:function(e,t,i){i.d(t,{checkJoinTwoLists:function(){return s}});var o=i(2748),n=i(37790),r=i(63785);function s(e,t,i){let s=o.Dom.findSibling(t,i),a=o.Dom.findSibling(t,!i);if(!o.Dom.closest(t,o.Dom.isElement,e.editor)&&o.Dom.isList(s)&&o.Dom.isList(a)&&o.Dom.isTag(s.lastElementChild,"li")&&o.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=e.s,u=s.lastElementChild,d=a.firstElementChild;return(0,n.call)(i?o.Dom.prepend:o.Dom.append,d,t),o.Dom.moveContent(a,s,!i,(0,r.getMoveFilter)(e)),o.Dom.safeRemove(a),(0,n.call)(i?o.Dom.append:o.Dom.prepend,u,t),(0,n.call)(i?l:c,t),!0}return!1}},11338:function(e,t,i){i.d(t,{checkNotCollapsed:function(){return o}});function o(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}},73792:function(e,t,i){i.d(t,{checkRemoveChar:function(){return function e(t,i,s,c,u=!1){var d,h;let p,f=s?-1:1,m=n.Dom.sibling(i,!s),g=n.Dom.sibling(i,s),v=null,b=!1;for(g||(g=a(i,s,t.editor));g&&(n.Dom.isText(g)||n.Dom.isInlineBlock(g));){for(;n.Dom.isInlineBlock(g);)g=s?null==g?void 0:g.lastChild:null==g?void 0:g.firstChild;if(!g)break;if(null==(d=g.nodeValue)?void 0:d.length){if(u&&l(function(e,t){let i=(0,r.toArray)(e),n=t?-1:1,s=t?i.length-1:0;for(;i[s]===o.INVISIBLE_SPACE;)s+=n;return i[s]}(g.nodeValue,s)))break;p=function(e,t,i,s){let a=(0,r.toArray)(e.nodeValue),l=a.length,c=t?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+=t?1:-1}return a=t&&c<0?[]:a.slice(t?0:c+1,t?c:l),function(e,t,i){var s;if(!e||!n.Dom.isText(e)||(!t?/ $/:/^ /).test(null!=(s=e.nodeValue)?s:"")||!(0,r.trimInv)(e.nodeValue||"").length)for(let e=t?i.length-1:0;t?e>=0:e<i.length;e+=t?-1:1)if(" "===i[e])i[e]=o.NBSP_SPACE;else break}(s,t,a),e.nodeValue=a.join(""),u}(g,s,f,m),!g.nodeValue.length&&n.Dom.isInlineBlock(g.parentNode)&&(g.nodeValue=o.INVISIBLE_SPACE)}if((null==(h=g.nodeValue)?void 0:h.length)||(v=g),!(0,r.isVoid)(p)&&p!==o.INVISIBLE_SPACE){(function(t,i,o,s,a,c){(0,r.call)(t?n.Dom.after:n.Dom.before,i,o);let u="word"===s&&!l(a);("sentence"===s||u||"word"===s&&t)&&e(c,o,t,s,u&&t)})(s,g,i,c,p,t),b=!0;break}let y=a(g,s,t.editor);v&&(n.Dom.safeRemove(v),v=null),g=y}return v&&n.Dom.safeRemove(v),b&&(function(e){let t=e.parentElement;for(;t&&n.Dom.isInlineBlock(t)&&n.Dom.isTag(t,"a");){let i=t.parentElement;n.Dom.isEmpty(t)&&(n.Dom.after(t,e),n.Dom.safeRemove(t)),t=i}}(i),i.parentElement!==t.editor&&n.Dom.isBlock(i.parentElement)&&n.Dom.each(i.parentElement,n.Dom.isEmptyTextNode)&&n.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),n.Dom.isTag(i.previousSibling,"br")&&!n.Dom.findNotEmptySibling(i,!1)&&n.Dom.after(i,t.createInside.element("br"))),b}}});var o=i(82758),n=i(22732),r=i(21537),s=i(63785);function a(e,t,i){let o=n.Dom.sibling(e,t);return!o&&e.parentNode&&e.parentNode!==i&&(o=(0,s.findMostNestedNeighbor)(e,!t,i,!0))&&n.Dom.closest(e,n.Dom.isBlock,i)!==n.Dom.closest(o,n.Dom.isBlock,i)?null:o}function l(e){return" "===e||e===o.NBSP_SPACE}},87536:function(e,t,i){i.d(t,{checkRemoveContentNotEditable:function(){return s}});var o=i(22732),n=i(21537),r=i(45124);function s(e,t,i){let s=o.Dom.findSibling(t,i);return!s&&t.parentElement&&t.parentElement!==e.editor&&(s=o.Dom.findSibling(t.parentElement,i)),!(!o.Dom.isElement(s)||o.Dom.isContentEditable(s,e.editor))&&((0,n.call)(i?o.Dom.before:o.Dom.after,s,t),o.Dom.safeRemove(s),(0,r.moveNodeInsideStart)(e,t,i),(0,n.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0)}},12474:function(e,t,i){i.d(t,{checkRemoveEmptyNeighbor:function(){return n}});var o=i(2748);function n(e,t,i){let n=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!n)return!1;let r=o.Dom.findNotEmptySibling(n,i);return!!(r&&o.Dom.isEmpty(r))&&(o.Dom.safeRemove(r),e.s.setCursorBefore(t),!0)}},58940:function(e,t,i){i.d(t,{checkRemoveEmptyParent:function(){return s}});var o=i(82758),n=i(22732),r=i(91748);function s(e,t,i){let s=!1,{setCursorBefore:a,setCursorIn:l}=e.s,c=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!c||!n.Dom.isEmpty(c))return!1;let u=n.Dom.findNotEmptyNeighbor(t,i,e.editor);do if(c&&n.Dom.isEmpty(c)&&!n.Dom.isCell(c)){n.Dom.after(c,t);let i=n.Dom.closest(c,e=>n.Dom.isElement(e)&&e!==c,e.editor);n.Dom.safeRemove(c),s=!0,c=i}else break;while(c)return!!(s&&(0,r.checkJoinTwoLists)(e,t,i))||(!u||n.Dom.isText(u)||n.Dom.isTag(u,o.INSEPARABLE_TAGS)?a(t):l(u,!i),s)}},56825:function(e,t,i){i.d(t,{checkRemoveUnbreakableElement:function(){return s}});var o=i(82758),n=i(2748),r=i(58940);function s(e,t,i){let s=n.Dom.findSibling(t,i);return!!(n.Dom.isElement(s)&&(n.Dom.isTag(s,o.INSEPARABLE_TAGS)||n.Dom.isEmpty(s)))&&(n.Dom.safeRemove(s),n.Dom.isTag(s,"br")&&!n.Dom.findNotEmptySibling(t,!1)&&n.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),n.Dom.isTag(s,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},90240:function(e,t,i){i.d(t,{checkTableCell:function(){return n}});var o=i(2748);function n(e,t){let i=t.parentElement;return!!o.Dom.isCell(i)}},68034:function(e,t,i){i.d(t,{checkUnwrapFirstListItem:function(){return r}});var o=i(2748),n=i(43555);function r(e,t,i){var r;let s=o.Dom.closest(t,o.Dom.isElement,e.editor),{s:a}=e;if(o.Dom.isLeaf(s)&&(null==(r=null==s?void 0:s.parentElement)?void 0:r[i?"firstElementChild":"lastElementChild"])===s&&a.cursorInTheEdge(i,s)){let r=s.parentElement,l=e.createInside.element(e.o.enterBlock);return(0,n.call)(i?o.Dom.before:o.Dom.after,r,l),o.Dom.moveContent(s,l),o.Dom.safeRemove(s),o.Dom.isEmpty(r)&&o.Dom.safeRemove(r),(0,n.call)(i?a.setCursorBefore:a.setCursorAfter,t),!0}return!1}},70921:function(e,t,i){i.d(t,{checkUnwrapListItem:function(){return n}});var o=i(2748);function n(e,t,i){if(!i)return!1;let n=o.Dom.closest(t,"li",e.editor),r=n?n.parentElement:null;if(!n||!o.Dom.isList(r)||!n.previousElementSibling||o.Dom.isEmpty(n)||Array.from(n.childNodes).some(e=>o.Dom.isBlock(e))||!e.s.cursorInTheEdge(!0,n))return!1;let s=e.createInside.element(e.o.enterBlock);if(o.Dom.after(r,s),n.nextElementSibling){let e=r.cloneNode(!1);for(e.removeAttribute("id");n.nextSibling;)o.Dom.append(e,n.nextSibling);if(o.Dom.isTag(r,"ol")){let t=parseInt(r.getAttribute("start")||"1",10)||1;e.setAttribute("start",t+r.children.length-1+"")}o.Dom.after(s,e)}return o.Dom.moveContent(n,s),o.Dom.safeRemove(n),e.s.setCursorBefore(t),!0}},14630:function(e,t,i){var o=i(62845),n=i(91748),r=i(73792),s=i(87536),a=i(12474),l=i(58940),c=i(56825),u=i(90240),d=i(68034),h=i(70921);let p=[["remove-unbreakable",c.checkRemoveUnbreakableElement],["remove-not-editable",s.checkRemoveContentNotEditable],["remove-char",r.checkRemoveChar],["table-cell",u.checkTableCell],["remove-empty-parent",l.checkRemoveEmptyParent],["remove-empty-neighbor",a.checkRemoveEmptyNeighbor],["join-two-lists",n.checkJoinTwoLists],["unwrap-list-item",h.checkUnwrapListItem],["join-neighbors",o.checkJoinNeighbors],["unwrap-first-list-item",d.checkUnwrapFirstListItem]];p.map(([,e])=>e),i.d(t,["casesMap",0,p])},32496:function(e,t,i){var o=i(82758);i(6441).Config.prototype.delete={hotkeys:{delete:o.IS_MAC?["delete"]:["delete","cmd+backspace"],deleteWord:o.IS_MAC?["ctrl+delete"]:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:o.IS_MAC?[]:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(e,t,i){i.d(t,{findMostNestedNeighbor:function(){return n},getMoveFilter:function(){return r}});var o=i(22732);function n(e,t,i,r=!1){let s=e=>t?e.firstChild:e.lastChild,a=o.Dom.findNotEmptyNeighbor(e,!t,i);if(r&&o.Dom.isElement(a)&&!o.Dom.isInlineBlock(a))return null;if(a)do{if(!s(a))return a;a=s(a)}while(a)return null}function r(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}},41107:function(e,t,i){var o=i(580),n=i(21537),r=i(12153),s=i(6441);i(73674);var a=i(820),l=i(53651),c=i(16020),u=i(89758),d=i(98527),h=i(51855);o.pluginSystem.add("bold",function(e){let t=t=>{let i,o=s.Config.defaultOptions.controls[t],r={...o.css};return Object.keys(r).forEach(e=>{i||(i={}),i[e]=(0,n.isArray)(r[e])?r[e][0]:r[e]}),e.s.commitStyle({element:o.tags?o.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),r.Icon.set("bold",a.default).set("italic",l.default).set("strikethrough",c.default).set("subscript",u.default).set("superscript",d.default).set("underline",h.default)},73674:function(e,t,i){var o=i(6441);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"}},820:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.75" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 4h7a4 4 0 0 1 0 8H6V4Zm0 8h8a4 4 0 0 1 0 8H6v-8Z"/> </g> </svg> '},53651:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M10 4h9M5 20h9M15 4 9 20"/> </g> </svg> '},16020:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M17 6c-1-1.5-2.5-2-5-2-3 0-5 1.5-5 4 0 1.8 1.5 3 5 4s5 2.2 5 4c0 2.5-2 4-5 4-2.5 0-4-.5-5-2M3 12h18"/> </g> </svg> '},89758:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 4 9 12M12 4 3 16M16 16a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},98527:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 8 9 12M12 8 3 20M16 4a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},51855:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 3v8a6 6 0 0 0 12 0V3M4 21h16"/> </g> </svg> '},71255:function(e,t,i){var o=i(2748),n=i(580),r=i(37790),s=i(50911),a=i(12153),l=i(6441),c=i(31151);l.Config.prototype.controls.classSpan={command:"applyClassName",exec:r.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(e,t){let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor;return!!(t.control.args&&n.classList.contains(t.control.args[0].toString()))}return!1},isActive(e,t){let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{n.classList.contains(e)&&(r=!0)}),!!(n&&n!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class u extends s.Plugin{afterInit(e){e.registerCommand("applyClassName",(t,i,o)=>(e.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}n.pluginSystem.add("classSpan",u),a.Icon.set("class-span",c.default)},31151:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 4H5v16h3m8-16h3v16h-3M9 15l3-7 3 7m-5-2h4"/> </g> </svg> '},82439:function(e,t,i){var o=i(65478),n=i(2748),r=i(70071),s=i(580),a=i(86518),l=i(20356);i(46776);var c=i(80973),u=i(59498),d=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class h extends l.Plugin{afterInit(){this.onChangeCleanHTML()}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}onInputRemovePlaceholderBr(e){var t;this.isEditMode&&("input"!==e.type||!e.isComposing&&(null==(t=e.inputType)?void 0:t.startsWith("insert")))&&(0,u.removePlaceholderBr)(this.j)}startWalker(){let{jodit:e}=this,t=(0,u.getHash)(this.j.o.cleanHTML.allowTags),i=(0,u.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",o=>(0,u.visitNodeWalker)(e,o,t,i,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?(0,u.removeFormatForCollapsedSelection)(this.j):(0,u.removeFormatForSelection)(this.j),!1}onAfterSetNativeEditorValue(){(0,a.safeHTML)(this.j.editor,this.j.o.cleanHTML)}onBeforeSetNativeEditorValue(e){let[t,i]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return t.innerHTML=e.value,this.j.e.fire("safeHTML",t),this.__replaceOldTags(t),e.value=t.innerHTML,(0,a.safeHTML)(t,{safeJavaScriptLink:!0,removeOnError:!0}),n.Dom.safeRemove(i),!1}__replaceOldTags(e){let{replaceOldTags:t,disableCleanFilter:i}=this.j.o.cleanHTML;!t||(null==i?void 0:i.has("replaceOldTags"))||n.Dom.each(e,e=>{(0,c.replaceOldTags)(this.j,e,!1)})}onAfterGetValueFromEditor(e){if(this.__singleQuotesInFontFamily(e),this.__removeTrailingBr(e),!this.j.o.cleanHTML.collapseEmptyValueToEmptyString)return;let t=/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.exec(e.value.trim());t&&/^(p|div|h[1-6]|blockquote|pre)$/i.test(t[1])&&(e.value="")}__removeTrailingBr(e){if(!this.j.o.cleanHTML.removeTrailingBr||!/<br/i.test(e.value))return;let t=this.j.c.div();t.innerHTML=e.value,[t,...t.querySelectorAll("p, div, li, td, th, h1, h2, h3, h4, h5, h6, blockquote")].forEach(e=>{var t;let i=e.lastChild;if(!n.Dom.isTag(i,"br"))return;let o=i.previousSibling;!o||n.Dom.isTag(o,"br")||(!n.Dom.isText(o)||(null==(t=o.nodeValue)?void 0:t.trim())||o.previousSibling)&&n.Dom.safeRemove(i)}),e.value=t.innerHTML}__singleQuotesInFontFamily(e){this.j.o.cleanHTML.singleQuotesInFontFamily&&e.value.includes("&quot;")&&(e.value=e.value.replace(/\sstyle="([^"]*)"/gi,(e,t)=>{if(!t.includes("&quot;")||!/font-family/i.test(t))return e;let i=t.replace(/font-family\s*:(?:&quot;|[^;])*/gi,e=>e.includes("'")?e:e.replace(/&quot;/g,"'"));return e.replace(t,i)}))}onSafeHTML(e){let t=this.j.o.cleanHTML.sanitizer;t&&(e.innerHTML=t(e.innerHTML)),(0,a.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.j.e.off("safeHTML",this.onSafeHTML).off("beforeSetNativeEditorValue",this.onBeforeSetNativeEditorValue).off("afterSetNativeEditorValue",this.onAfterSetNativeEditorValue),this.walker.destruct()}constructor(e){super(e),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new r.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout}),e.e.on("safeHTML",this.onSafeHTML).on("beforeSetNativeEditorValue",this.onBeforeSetNativeEditorValue).on("afterSetNativeEditorValue",this.onAfterSetNativeEditorValue)}}d([(0,o.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),d([(0,o.watch)([":input","jodit.editor:compositionend"])],h.prototype,"onInputRemovePlaceholderBr",null),d([(0,o.hook)("ready")],h.prototype,"startWalker",null),d([(0,o.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),d([o.autobind],h.prototype,"onAfterSetNativeEditorValue",null),d([o.autobind],h.prototype,"onBeforeSetNativeEditorValue",null),d([(0,o.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),d([o.autobind],h.prototype,"onSafeHTML",null),s.pluginSystem.add("cleanHtml",h)},46776:function(e,t,i){var o=i(6441);o.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,singleQuotesInFontFamily:!0,removeTrailingBr:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},o.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"}},83447:function(e,t,i){i.d(t,{getHash:function(){return r}});var o=i(70799),n=i(49055);function r(e){let t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,o.isString)(e)?(e.split(i).map(e=>{e=(0,n.trim)(e);let o=t.exec(e),a={};if(o){let e=o[2].split(i);o[1]&&(e.forEach(e=>{e=(0,n.trim)(e);let t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),s[o[1].toUpperCase()]=a)}else s[e.toUpperCase()]=!0}),s):!!e&&(Object.keys(e).forEach(t=>{s[t.toUpperCase()]=e[t]}),s)}},59498:function(e,t,i){i.d(t,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return n.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return r.removeFormatForSelection},removePlaceholderBr:function(){return s.removePlaceholderBr},visitNodeWalker:function(){return a.visitNodeWalker}});var o=i(83447),n=i(84272),r=i(42312),s=i(56385),a=i(39516)},15908:function(e,t,i){i.d(t,{isAllowedMediaEmbed:function(){return r}});let o=/^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i,n=/^(https?:)?\/\/player\.vimeo\.com\/video\//i;function r(e){return o.test(e)||n.test(e)}},84272:function(e,t,i){i.d(t,{isInlineBlock:function(){return s},removeFormatForCollapsedSelection:function(){return r}});var o=i(82758),n=i(2748);function r(e,t){let{s:i}=e,o=t;if(!o){o=e.createInside.fake();let{range:t}=i;n.Dom.safeInsertNode(t,o),t.collapse()}let r=n.Dom.furthest(o,s,e.editor);if(r)if(i.cursorOnTheLeft(r))n.Dom.before(r,o);else if(i.cursorOnTheRight(r))n.Dom.after(r,o);else{let e=i.splitSelection(r);e&&n.Dom.after(e,o)}t||(i.setCursorBefore(o),n.Dom.safeRemove(o))}function s(e){return n.Dom.isInlineBlock(e)&&!n.Dom.isTag(e,o.INSEPARABLE_TAGS)}},42312:function(e,t,i){i.d(t,{removeFormatForSelection:function(){return s}});var o=i(2748),n=i(43555),r=i(84272);function s(e){let{s:t,editor:i,createInside:s}=e,{range:a}=t,l=a.cloneRange(),c=a.cloneRange(),u=s.fake(),d=s.fake();l.collapse(!0),c.collapse(!1),o.Dom.safeInsertNode(l,u),o.Dom.safeInsertNode(c,d),a.setStartBefore(u),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,u),a.setEndAfter(d),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d);let h=[];o.Dom.between(u,d,e=>{(0,r.isInlineBlock)(e)&&!o.Dom.isTag(e,"a")&&h.push(e),o.Dom.isElement(e)&&(0,n.attr)(e,"style")&&(0,n.attr)(e,"style",null)}),h.forEach(e=>o.Dom.unwrap(e));let p=(e,t)=>{if(!o.Dom.findNotEmptySibling(e,t)){let o=e.parentNode;if(o&&o!==i&&(0,n.attr)(o,"style"))return(0,n.attr)(o,"style",null),p(o,t),!0}};p(u,!0)&&p(d,!1),a.setStartAfter(u),a.setEndBefore(d),t.selectRange(a),o.Dom.safeRemove(u),o.Dom.safeRemove(d)}},56385:function(e,t,i){i.d(t,{removePlaceholderBr:function(){return a}});var o=i(82758),n=i(2748),r=i(49055);function s(e){let t=e.lastChild;for(;n.Dom.isText(t)&&!t.nodeValue;)t=t.previousSibling;return t}function a(e){var t;let i=n.Dom.closest(e.s.current(),n.Dom.isBlock,e.editor);if(!i||!(0,r.trim)(null!=(t=i.textContent)?t:""))return;let a=s(i);for(;n.Dom.isElement(a)&&!n.Dom.isTag(a,o.INSEPARABLE_TAGS)&&!n.Dom.isBlock(a);)a=s(a);!n.Dom.isTag(a,"br")||n.Dom.each(i,e=>{if(e!==a&&n.Dom.isElement(e)&&(n.Dom.isTag(e,o.INSEPARABLE_TAGS)||n.Dom.isBlock(e)||n.Dom.isHTMLElement(e)&&!e.isContentEditable))return!1})&&n.Dom.safeRemove(a)}},82558:function(e,t,i){i.d(t,{allowAttributes:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i,r){let s=r&&o.Dom.isElement(t)&&r[t.nodeName];if(r&&o.Dom.isElement(t)&&!0!==s){if(!s)return i;let e=t.attributes;if(e&&e.length){let o=[];for(let t=0;t<e.length;t+=1){let i=s[e[t].name];i&&(!0===i||i===e[t].value)||o.push(e[t].name)}o.length&&(i=!0),o.forEach(e=>{(0,n.attrRaw)(t,e,null)})}}return i}},1962:function(e,t,i){i.d(t,{convertUnsafeEmbeds:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=e.o.cleanHTML.convertUnsafeEmbeds;if(!r||!o.Dom.isElement(t))return i;let s=t.nodeName.toLowerCase();if(!r.includes(s))return i;let a=(0,n.attr)(t,"data")||(0,n.attr)(t,"src")||(0,n.attr)(t,"movie")||"";if(!a)return o.Dom.safeRemove(t),!0;let l=e.createInside.element("iframe");return(0,n.attr)(l,{src:a,sandbox:"",frameborder:"0",width:(0,n.attr)(t,"width"),height:(0,n.attr)(t,"height")}),o.Dom.replace(t,l,void 0,!1,!0),!0}},39433:function(e,t,i){i.d(t,{fillEmptyParagraph:function(){return s}});var o=i(82758),n=i(2748);let r=new Set(["table","tbody","thead","tfoot","tr"]);function s(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&n.Dom.isBlock(t)&&n.Dom.isEmpty(t,o.INSEPARABLE_TAGS)&&!n.Dom.isTag(t,r)){let i=e.createInside.element("br");return n.Dom.append(t,i),!0}return i}},45235:function(e,t,i){i.r(t),i.d(t,{allowAttributes:function(){return o.allowAttributes},convertUnsafeEmbeds:function(){return n.convertUnsafeEmbeds},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},safeLinksTarget:function(){return c.safeLinksTarget},sandboxIframesInContent:function(){return u.sandboxIframesInContent},sanitizeAttributes:function(){return d.sanitizeAttributes},sanitizeStyles:function(){return h.sanitizeStyles},tryRemoveNode:function(){return p.tryRemoveNode}});var o=i(82558),n=i(1962),r=i(39433),s=i(53392),a=i(25813),l=i(80973),c=i(95614),u=i(85978),d=i(384),h=i(15583),p=i(28800)},53392:function(e,t,i){i.d(t,{removeEmptyTextNode:function(){return n}});var o=i(2748);function n(e,t,i,n,r,s){return o.Dom.isText(t)&&!t.nodeValue?(t===s&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),o.Dom.safeRemove(t),!0):i}},25813:function(e,t,i){i.d(t,{removeInvTextNodes:function(){return r}});var o=i(82758),n=i(2748);function r(e,t,i,r,s,a){if(a===t||!n.Dom.isText(t)||null==t.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue))return i;let l=n.Dom.furthest(a,n.Dom.isBlock,e.editor);return!l||n.Dom.isOrContains(l,t)?i:(t.nodeValue=t.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),t===a&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||n.Dom.safeRemove(t),!0)}},80973:function(e,t,i){i.d(t,{replaceOldTags:function(){return n}});var o=i(2748);function n(e,t,i){let n=function(e,t,i){if(!i||!o.Dom.isHTMLElement(t))return t;let n=i[t.nodeName.toLowerCase()]||i[t.nodeName];if(n){let i=function(e,t){let{sel:i}=e.s;if(!(null==i?void 0:i.anchorNode)||!i.focusNode||!e.s.isFocused())return null;let{anchorNode:n,anchorOffset:r,focusNode:s,focusOffset:a}=i;return o.Dom.isOrContains(t,n)||o.Dom.isOrContains(t,s)?e=>{i.setBaseAndExtent(n===t?e:n,r,s===t?e:s,a)}:null}(e,t),r=o.Dom.replace(t,n,e.createInside,!0,!1);return null==i||i(r),r}return t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==n||i}},95614:function(e,t,i){i.d(t,{safeLinksTarget:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){if(!e.o.cleanHTML.safeLinksTarget||!o.Dom.isElement(t)||"A"!==t.nodeName||"_blank"!==(0,n.attr)(t,"target"))return i;let r=((0,n.attr)(t,"rel")||"").split(/\s+/).filter(Boolean),s=!1;return(r.includes("noopener")||(r.push("noopener"),s=!0),r.includes("noreferrer")||(r.push("noreferrer"),s=!0),s)?((0,n.attr)(t,"rel",r.join(" ")),!0):i}},85978:function(e,t,i){i.d(t,{sandboxIframesInContent:function(){return s}});var o=i(2748),n=i(29960),r=i(15908);function s(e,t,i){return e.o.cleanHTML.sandboxIframesInContent&&o.Dom.isElement(t)&&"IFRAME"===t.nodeName?(0,r.isAllowedMediaEmbed)((0,n.attr)(t,"src")||"")||t.hasAttribute("sandbox")?i:((0,n.attr)(t,"sandbox",""),!0):i}},384:function(e,t,i){i.d(t,{sanitizeAttributes:function(){return r}});var o=i(2748),n=i(21537);function r(e,t,i){if(!o.Dom.isElement(t))return i;let r=e.options.cleanHTML;return!!(0,n.sanitizeHTMLElement)(t,{safeJavaScriptLink:r.safeJavaScriptLink,removeOnError:r.removeOnError,removeEventAttributes:r.removeEventAttributes,safeLinksTarget:r.safeLinksTarget})||i}},15583:function(e,t,i){i.d(t,{sanitizeStyles:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=e.o.cleanHTML.allowedStyles;if(!r||!o.Dom.isElement(t))return i;let s=(0,n.attr)(t,"style");if(!s)return i;let a=function(e,t){let i=t[e],o=t["*"];if(!i&&!o)return null;let n=new Set;if(o)for(let e of o)n.add(e.toLowerCase());if(i)for(let e of i)n.add(e.toLowerCase());return n}(t.nodeName.toLowerCase(),r);if(!a)return i;let l=s.split(";").map(e=>e.trim()).filter(e=>{if(!e)return!1;let t=e.indexOf(":");if(-1===t)return!1;let i=e.substring(0,t).trim().toLowerCase();return a.has(i)}).join("; ").replace(/;\s*$/,"");return l!==s?((0,n.attr)(t,"style",l||null),!0):i}},28800:function(e,t,i){i.d(t,{tryRemoveNode:function(){return l}});var o=i(82758),n=i(2748),r=i(49055),s=i(29960),a=i(15908);function l(e,t,i,l,c,u){return!function(e,t,i,l,c){if(!n.Dom.isText(t)){let e=t.nodeName.toUpperCase();if(l&&!l[e])return!0;let i="IFRAME"===e&&(0,a.isAllowedMediaEmbed)((0,s.attr)(t,"src")||"");if(!l&&c&&c[e]&&!i)return!0}if(!e.o.cleanHTML.removeEmptyElements)return!1;let u=e.s.isCollapsed()?e.s.range.startContainer:null;return n.Dom.isElement(t)&&null!=t.nodeName.match(o.IS_INLINE)&&!n.Dom.isTemporary(t)&&!(t.hasAttribute("id")||"A"===t.nodeName&&t.hasAttribute("name"))&&0===(0,r.trimInv)(t.innerHTML).length&&(null==i||!n.Dom.isOrContains(t,i))&&(null==u||!n.Dom.isOrContains(t,u))}(e,t,u,l,c)?i:(n.Dom.safeRemove(t),!0)}},39516:function(e,t,i){i.d(t,{visitNodeWalker:function(){return s}});var o=i(82758),n=i(45235);let r=Object.keys(n);function s(e,t,i,s,a){let l=!1,c=e.o.cleanHTML.disableCleanFilter;for(let u of r)if(!(c&&c.has(u))&&(l=(0,n[u])(e,t,l,i,s,a),o.IS_PROD,!t.isConnected))return!0;return l}},61323:function(e,t,i){var o=i(82758),n=i(33433),r=i(2748),s=i(580),a=i(21537);i(79419);class l{init(e){var t;null==(t=this.buttons)||t.forEach(t=>e.registerButton(t)),e.e.off(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`).on(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`,t=>{var i;let n=function(e,t){if(!t||e.s.isCollapsed())return t;let i=e.s.range.commonAncestorContainer;r.Dom.isElement(i)||(i=i.parentElement);let o=t;for(;i&&i!==e.editor&&r.Dom.isElement(i)&&!r.Dom.isBlock(i);){let e=i.cloneNode(!1);e.innerHTML=o,o=e.outerHTML,i=i.parentElement}return o}(e,e.s.html),s=(0,a.getDataTransfer)(t)||(0,a.getDataTransfer)(e.ew)||(0,a.getDataTransfer)(t.originalEvent);s&&(s.setData(o.TEXT_PLAIN,(0,a.stripTags)(n)),s.setData(o.TEXT_HTML,n)),e.buffer.set(o.CLIPBOARD_ID,n),e.e.fire("pasteStack",{html:n,action:e.o.defaultActionOnPaste||o.INSERT_AS_HTML}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null==(i=null==e?void 0:e.events)||i.fire("afterCopy",n)})}destruct(e){var t,i;null==(t=(0,n.cached)(e,"buffer"))||t.set(o.CLIPBOARD_ID,""),null==(i=null==e?void 0:e.events)||i.off("."+o.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}s.pluginSystem.add("clipboard",l)},79419:function(e,t,i){var o=i(12153),n=i(6441),r=i(94775),s=i(23140),a=i(92699),l=i(10052);n.Config.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},n.Config.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},n.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",r.default).set("cut",s.default).set("paste",a.default).set("select-all",l.default)},94775:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="8" y="8" width="13" height="13" rx="2"/><path d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"/> </g> </svg> '},23140:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <circle cx="6" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="m8.2 8.2 12.3 12.3M8.2 15.8 20.5 3.5"/> </g> </svg> '},92699:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="5" width="16" height="16" rx="2"/><rect x="9" y="3" width="6" height="4" rx="1"/> </g> </svg> '},10052:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 6V3h3m4 0h4m4 0h3v3m0 4v4m0 4v3h-3m-4 0h-4m-4 0H3v-3m0-4v-4"/><rect x="7" y="7" width="10" height="10" rx="1"/> </g> </svg> '},46104:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3c-2 3.2-5.5 7-5.5 10a5.5 5.5 0 0 0 11 0c0-3-3.5-6.8-5.5-10Z"/> </g> <rect x="5" y="21" width="14" height="2" rx="1" fill="inherit" stroke="none"/> </svg> '},93079:function(e,t,i){var o=i(580),n=i(21537);i(21988),o.pluginSystem.add("color",function(e){e.registerButton({name:"brush",group:"color"});let t=(t,i,o)=>{var r;let s=(0,n.normalizeColor)(o)||"",a="background"===t?{backgroundColor:s}:{color:s},l=e.getInstance("Table",e.o).getAllSelectedCells();return l.length&&e.s.isCollapsed()?(l.forEach(t=>{e.s.select(t,!0),e.s.commitStyle({attributes:{style:a}})}),null==(r=e.s.sel)||r.removeAllRanges()):e.s.commitStyle({attributes:{style:a}}),e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)})},21988:function(e,t,i){var o=i(2748),n=i(21537),r=i(12153),s=i(6441),a=i(92762),l=i(46104);function c(e,t,i){(0,n.css)(e,t,i),(0,n.attr)(e,"style")||(0,n.attr)(e,"style",null)}r.Icon.set("brush",l.default),s.Config.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup(e,t,i){if(!(0,n.isJoditObject)(e))return;let o=e.getInstance("Table",e.o).getAllSelectedCells();if(!o.length)return!1;let r=t=>(0,a.ColorPickerWidget)(e,n=>{o.forEach(e=>{c(e,t,n)}),e.lock(),e.synchronizeValues(),i(),e.unlock()},(0,n.css)(o[0],t));return(0,a.TabsWidget)(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])},tooltip:"Background"},s.Config.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){let i=(0,n.dataBind)(t,"color"),r=(i,o)=>!!o&&o!==(0,n.css)(e.editor,i).toString()&&(t.state.icon.fill=o,!0);if(i){let e=(0,n.dataBind)(t,"color");r("color"===e?e:"background-color",i);return}let s=e.s.current();if(s&&!t.state.disabled){let t=o.Dom.closest(s,o.Dom.isElement,e.editor)||e.editor,i=r("color",(0,n.css)(t,"color").toString()),a=r("background-color",(0,n.css)(t,"background-color").toString());if(i||a)return}t.state.icon.fill="",t.state.activated=!1},popup(e,t,i,r){let s="",l="",u,d=null;return t&&t!==e.editor&&o.Dom.isNode(t)&&(o.Dom.isElement(t)&&e.s.isCollapsed()&&!o.Dom.isTag(t,new Set(["br","hr"]))&&(d=t),o.Dom.up(t,e=>{if(o.Dom.isHTMLElement(e)){let t=(0,n.css)(e,"color",!0),i=(0,n.css)(e,"background-color",!0);if(t)return s=t.toString(),!0;if(i)return l=i.toString(),!0}},e.editor)),u=[{name:"Background",content:(0,a.ColorPickerWidget)(e,t=>{d?c(d,"backgroundColor",t):e.execCommand("background",!1,t),(0,n.dataBind)(r,"color",t),(0,n.dataBind)(r,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(e,t=>{d?c(d,"color",t):e.execCommand("forecolor",!1,t),(0,n.dataBind)(r,"color",t),(0,n.dataBind)(r,"color-mode","color"),i()},s)}],"background"!==e.o.colorPickerDefaultTab&&(u=u.reverse()),(0,a.TabsWidget)(e,u,d)},exec(e,t,{button:i}){let r=(0,n.dataBind)(i,"color-mode"),s=(0,n.dataBind)(i,"color");if(!r)return!1;if(t&&t!==e.editor&&o.Dom.isNode(t)&&o.Dom.isElement(t))switch(r){case"color":c(t,"color",s);break;case"background":c(t,"backgroundColor",s)}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},19063:function(e,t,i){var o=i(2748),n=i(580),r=i(41180),s=i(12153),a=i(6441),l=i(57487),c=i(23914);let u="copy-format",d=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],h=(e,t,i,o)=>{let n=(0,r.css)(i,t);return n===o[t]&&(n=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?h(e,t,i.parentNode,o):void 0),n};a.Config.prototype.controls.copyformat={exec(e,t,{button:i}){if(t){if(e.buffer.exists(u))e.buffer.delete(u),e.e.off(e.editor,"mouseup."+u);else{let i,n={},s=o.Dom.up(t,e=>e&&!o.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();o.Dom.append(e.editor,a),d.forEach(e=>{n[e]=(0,r.css)(a,e)}),a!==e.editor&&o.Dom.safeRemove(a);let l=(i={},s&&d.forEach(t=>{i[t]=h(e,t,s,n),t.match(/border(Style|Color)/)&&!i.borderWidth&&(i[t]=void 0)}),i);e.e.on(e.editor,"mouseup."+u,()=>{e.buffer.delete(u);let t=e.s.current();t&&(o.Dom.isTag(t,"img")?(0,r.css)(t,l):e.s.commitStyle({attributes:{style:l}})),e.e.off(e.editor,"mouseup."+u)}),e.buffer.set(u,!0)}i.update()}},isActive:e=>e.buffer.exists(u),tooltip:"Paint format"},n.pluginSystem.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),(0,n.extendLang)(c)}),s.Icon.set("copyformat",l.default)},57487:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="14" height="6" rx="1"/><path d="M17 6h4v7H11v3"/><rect x="9" y="16" width="4" height="6" rx="1"/> </g> </svg> '},63819:function(e){e.exports={"copy-format":"نسخ التنسيق"}},72392:function(e){e.exports={"copy-format":"Kopírovat formát"}},74551:function(e){e.exports={"copy-format":"Format kopierenт"}},2536:function(e){e.exports={"copy-format":"Copiar formato"}},52285:function(e){e.exports={"copy-format":"کپی کردن قالب"}},12117:function(e){e.exports={"copy-format":"Kopioi muotoilu"}},35140:function(e){e.exports={"copy-format":"Format de copie"}},28435:function(e){e.exports={"copy-format":"העתק עיצוב"}},98019:function(e){e.exports={"copy-format":"Formátum másolás"}},96457:function(e){e.exports={"copy-format":"salin format"}},23914:function(e,t,i){i.r(t),i.d(t,{ar:function(){return o},cs_cz:function(){return n},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return c},he:function(){return u},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return f},ko:function(){return m},mn:function(){return g},nl:function(){return v},pl:function(){return b},pt_br:function(){return y},ru:function(){return w},tr:function(){return _},zh_cn:function(){return S},zh_tw:function(){return k}});var o=i(63819),n=i(72392),r=i(74551),s=i(2536),a=i(52285),l=i(12117),c=i(35140),u=i(28435),d=i(98019),h=i(96457),p=i(33561),f=i(96545),m=i(52230),g=i(33307),v=i(71042),b=i(32172),y=i(39179),w=i(60629),_=i(68278),S=i(1172),k=i(4164)},33561:function(e){e.exports={"copy-format":"Copia il formato"}},96545:function(e){e.exports={"copy-format":"copyformat"}},52230:function(e){e.exports={"copy-format":"복사 형식"}},33307:function(e){e.exports={"copy-format":"Формат хуулах"}},71042:function(e){e.exports={"copy-format":"opmaak kopiëren"}},32172:function(e){e.exports={"copy-format":"format kopii"}},39179:function(e){e.exports={"copy-format":"Copiar formato"}},60629:function(e){e.exports={"copy-format":"Копировать формат"}},68278:function(e){e.exports={"copy-format":"Kopyalama Biçimi"}},1172:function(e){e.exports={"copy-format":"复制格式"}},4164:function(e){e.exports={"copy-format":"複製格式"}},66707:function(e,t,i){var o=i(22732),n=i(580),r=i(21537),s=i(49055),a=i(50911);let l=new Set(["img","table","jodit","iframe","hr"]);class c extends a.Plugin{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){let e=this.j,t=e.s.current();if(t&&o.Dom.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(0,s.trim)(e.editor.textContent||"")&&!o.Dom.first(e.editor,e=>o.Dom.isTag(e,l))&&(!t||!o.Dom.closest(t,"table",e.editor))){o.Dom.detach(e.editor);let t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){let{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();let t=e.s.range,i=this.__clearSelectedCells(t);if(i&&t.collapsed)return e.s.selectRange(i),!1;t.deleteContents();let n=e.createInside.fake();t.insertNode(n);let r=o.Dom.findSibling(n,!0),s=o.Dom.findSibling(n,!1);return this.__moveContentInLeftSibling(n,r,s),t.setStartBefore(n),t.collapse(!0),this.__moveCursorInEditableSibling(e,r,n,t),this.__addBrInEmptyBlock(n,t),o.Dom.safeRemove(n),e.s.selectRange(null!=i?i:t),!1}__clearSelectedCells(e){let{editor:t,createInside:i}=this.j,n=o.Dom.closest(e.startContainer,o.Dom.isCell,t),s=o.Dom.closest(e.endContainer,o.Dom.isCell,t);if(n===s)return null;let a=o.Dom.closest(n,"table",t),l=o.Dom.closest(s,"table",t),c=e.cloneRange();c.collapse(!0);let u=[],d=t=>{(0,r.toArray)(t.rows).flatMap(e=>(0,r.toArray)(e.cells)).filter(t=>e.intersectsNode(t)).forEach(t=>{let i=e.cloneRange();o.Dom.isOrContains(t,e.startContainer)||i.setStart(t,0),o.Dom.isOrContains(t,e.endContainer)||i.setEnd(t,t.childNodes.length),u.push([t,i])})};return a&&(d(a),a===l?e.collapse(!0):e.setStartAfter(a)),l&&l!==a&&(d(l),e.setEndBefore(l)),u.forEach(([e,t])=>{t.deleteContents(),o.Dom.isEmpty(e)&&(o.Dom.detach(e),o.Dom.append(e,i.element("br")))}),a?c:null}__moveContentInLeftSibling(e,t,i){if(t=this.__defineRightLeftBox(t),o.Dom.isTag(t,"table")){o.Dom.isBlock(i)&&o.Dom.isEmpty(i)&&o.Dom.safeRemove(i);return}if(!o.Dom.isList(i)&&!o.Dom.isTag(i,"table")&&o.Dom.isBlock(i)&&o.Dom.isBlock(t)&&(o.Dom.append(t,e),o.Dom.moveContent(i,t),o.Dom.safeRemove(i)),o.Dom.isList(i)&&o.Dom.isLeaf(i.firstElementChild)){let n=i.firstElementChild;if(!o.Dom.isEmpty(n)&&o.Dom.isBlock(t))for(o.Dom.append(t,e);n.firstChild&&!o.Dom.isBlock(n.firstChild);)o.Dom.append(t,n.firstChild);o.Dom.isEmpty(n)&&o.Dom.safeRemove(n),o.Dom.isEmpty(i)&&o.Dom.safeRemove(i)}}__defineRightLeftBox(e){if(!o.Dom.isList(e))return e;let t=e.lastElementChild;return o.Dom.isLeaf(t)||(t=this.j.createInside.element("li"),o.Dom.append(e,t)),t}__addBrInEmptyBlock(e,t){let i=this.j;if(e.isConnected&&o.Dom.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){let n=i.createInside.element("br");o.Dom.after(e,n),t.setStartBefore(n),t.collapse(!0)}}__moveCursorInEditableSibling(e,t,i,n){var r;if(!t||!o.Dom.isText(t)){let t=null!=(r=o.Dom.closest(i,o.Dom.isBlock,e.editor))?r:e.editor,s=o.Dom.prev(i,o.Dom.isText,t);s&&(n.setStartAfter(s),n.collapse(!0),o.Dom.safeRemove(i))}}}c.requires=["backspace"],n.pluginSystem.add("deleteCommand",c)},44586:function(e,t,i){i(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(e,t,i){var o,n,r=i(65478),s=i(22732),a=i(580),l=i(21537),c=i(50911);i(44586);var u=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};(o=n||(n={}))[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING";class d extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,l.splitArray)(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(e,t){this.isInDestruct||this.state>n.IDLE||!e||this.startDragging(e,t)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>n.IDLE)return;let t=e.target;if(!this.dragList.length||!t)return;let i=e=>!!(e&&this.dragList.includes(e.nodeName.toLowerCase())),o=s.Dom.furthest(t,i,this.j.editor)||(i(t)?t:null);o&&(s.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startDragging(o,e))}startDragging(e,t){this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,l.ctrlKey)(t),this.draggable=e.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",e),this.state=n.WAIT_DRAGGING,this.addDragListeners()}onDrag(e){var t,i;if(!this.draggable||this.state===n.IDLE)return;let o=e.clientX,r=e.clientY;if(this.state===n.WAIT_DRAGGING&&Math.sqrt(Math.pow(o-this.startX,2)+Math.pow(r-this.startY,2))<this.diffStep)return;this.state===n.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=n.DRAGGING),this.j.e.fire("hidePopup hideResizer");let c=this.__ghostOffset();if(!this.draggable.parentNode){let o=(0,l.dataBind)(this.draggable,"target");(0,l.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX+c.left,top:e.clientY+c.top,width:null!=(t=null==o?void 0:o.offsetWidth)?t:100,height:null!=(i=null==o?void 0:o.offsetHeight)?i:100}),s.Dom.append((0,a.getContainer)(this.j,d),this.draggable)}(0,l.css)(this.draggable,{left:e.clientX+c.left,top:e.clientY+c.top}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}__ghostOffset(){let e=this.j.iframe;if(!e)return{left:0,top:0};let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=n.IDLE,this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<n.DRAGGING)return void this.onDragEnd();let e=(0,l.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));let{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),[e.previousSibling,e.nextSibling].forEach(e=>{s.Dom.isEmptyTextNode(e)&&s.Dom.safeRemove(e)}),t&&s.Dom.isEmpty(t)&&!s.Dom.isCell(t)&&s.Dom.safeRemove(t),s.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),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).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=n.IDLE}}u([r.autobind],d.prototype,"onStartDragElement",null),u([r.autobind],d.prototype,"onDragStart",null),u([(0,r.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([r.autobind],d.prototype,"onDragEnd",null),u([r.autobind],d.prototype,"onDrop",null),a.pluginSystem.add("dragAndDropElement",d)},19271:function(e,t,i){var o=i(82758),n=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(8172),u=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class d extends l.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart).on("drop.DragAndDrop",this.onDrop)}onDragStart(e){var t;let i=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=r.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,a.ctrlKey)(e),this.isFragmentFromEditor){let e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,t=i,r.Dom.isElement(t)&&t.classList.contains(c.FileBrowserFiles.prototype.getFullElName("item"))&&(i=r.Dom.first(i,e=>r.Dom.isTag(e,"img"))),r.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,a.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(r.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;let t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),o=this.__getWorkFragment(i,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),o&&this.__insertFragment.call(this,o,i),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let i=null;if(!this.draggable&&e)i=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){let[e,t]="1"===(0,a.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(e),(0,a.attr)(i,t,(0,a.attr)(this.draggable,"data-src")||(0,a.attr)(this.draggable,"src")||""),"a"===e&&(i.textContent=(0,a.attr)(i,t)||"")}else i=(0,a.dataBind)(this.draggable,"target");else if(this.getText(t)){let e=this.j.createInside.div();e.innerHTML=this.getText(t),this.j.e.fire("safeHTML",e),i=e.firstChild===e.lastChild&&e.firstChild?e.firstChild:e}return i}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),r.Dom.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=e=>{let t=(0,a.getDataTransfer)(e);return t?t.getData(o.TEXT_HTML)||t.getData(o.TEXT_PLAIN):null}}}u([n.autobind],d.prototype,"onDragStart",null),u([(0,n.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([n.autobind],d.prototype,"onDragEnd",null),u([n.autobind],d.prototype,"onDrop",null),s.pluginSystem.add("dragAndDrop",d)},46124:function(e,t,i){i.r(t),i.d(t,{removeExtraBr:function(){return o.removeExtraBr}});var o=i(94870)},94870:function(e,t,i){i.d(t,{removeExtraBr:function(){return r}});var o=i(2748);let n=new Set(["table","pre","blockquote","code"]);function r(e,t){if(!e.o.dtd.removeExtraBr||o.Dom.isTag(t,"br"))return;let i=o.Dom.furthest(t,o.Dom.isBlock,e.editor);if(i&&!o.Dom.isTag(i,n)){let i=o.Dom.isTag(t,"br")?t:o.Dom.findNotEmptySibling(t,!1);if(!o.Dom.isTag(i,"br")||o.Dom.findNotEmptySibling(i,!1))return;o.Dom.isOrContains(t,e.s.range.startContainer)||e.s.setCursorBefore(i),o.Dom.safeRemove(i)}}},78720:function(e,t,i){i.d(t,{checkBlockNesting:function(){return n}});var o=i(2748);function n(e,t){var i,n;if(o.Dom.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&o.Dom.isBlock(t)){let r=null,s=null!=(n=null==(i=e.s.current())?void 0:i.parentElement)?n:null;for(;s&&s!==e.editor;){if(o.Dom.isBlock(s)){let t=!r&&o.Dom.isTag(s,e.o.enter)&&o.Dom.isEmpty(s);if(e.o.dtd.blockLimits[s.nodeName.toLowerCase()]&&!t)break;r=s}s=s.parentElement}o.Dom.isLeaf(s)&&o.Dom.isList(t)&&o.Dom.isFragment(t.parentNode)&&!o.Dom.findNotEmptySibling(t,!1)&&(o.Dom.unwrap(t),r=s),r&&function(e,t){var i;let{s:n}=e;if(o.Dom.isEmpty(t)){n.setCursorAfter(t),o.Dom.safeRemove(t);return}n.cursorOnTheRight(t)?n.setCursorAfter(t):n.cursorOnTheLeft(t)?n.setCursorBefore(t):n.setCursorAfter(null!=(i=n.splitSelection(t))?i:t)}(e,r)}}},43267:function(e,t,i){i.r(t),i.d(t,{checkBlockNesting:function(){return o.checkBlockNesting}});var o=i(78720)},9045:function(e,t,i){i(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,dd:1,details:1,dir:1,div:1,dl:1,dt:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,li:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(e,t,i){var o=i(37133),n=i(580),r=i(50911);i(9045);var s=i(46124),a=i(43267),l=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends r.Plugin{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(a).forEach(t=>{a[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(s).forEach(t=>{s[t](this.j,e)})}}l([(0,o.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),l([(0,o.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),n.pluginSystem.add("dtd",c)},575:function(e,t,i){var o=i(82758),n=i(65478),r=i(2748),s=i(580),a=i(87612),l=i(20356),c=i(35399);class u extends l.Plugin{afterInit(e){let t=e.o.enter.toLowerCase(),i=t===o.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?o.PARAGRAPH:t),e.registerCommand("enter",(e,t,i={})=>this.onEnter(i))}onEnterKeyDown(e){if(e.key===o.KEY_ENTER){let t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.history.snapshot.transaction(()=>{t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e)}),t.synchronizeValues(),!1)}}onEnter(e){let{jodit:t}=this,i=t.createInside.fake();try{r.Dom.safeInsertNode(t.s.range,i),(0,c.moveCursorOutFromSpecialTags)(t,i,["a"]);let o=(0,c.getBlockWrapper)(i,t),n=r.Dom.isLeaf(o);if((!n||(null==e?void 0:e.shiftKey))&&(0,c.checkBR)(i,t,null==e?void 0:e.shiftKey,o))return!1;if(o||(0,c.hasPreviousBlock)(i,t)||(o=(0,c.wrapText)(i,t)),!o)return(0,c.insertParagraph)(i,t,n?"li":t.o.enter),!1;if(!(0,c.checkUnsplittableBox)(i,t,o))return!1;if(n&&this.__isEmptyListLeaf(o))return(0,c.processEmptyLILeaf)(i,t,o),!1;(0,c.splitFragment)(i,t,o)}finally{i.isConnected&&t.s.setCursorBefore(i),r.Dom.safeRemove(i)}}__isEmptyListLeaf(e){let t=this.j.e.fire("enterIsEmptyListLeaf",e);return(0,a.isBoolean)(t)?t:r.Dom.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}!function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,n.watch)(":keydown.enter")],u.prototype,"onEnterKeyDown",null),s.pluginSystem.add("enter",u)},41872:function(e,t,i){i.d(t,{checkBR:function(){return s}});var o=i(82758),n=i(2748),r=i(26395);function s(e,t,i,s){let l=!!n.Dom.closest(e,"pre",t.editor)||(s?n.Dom.isTag(s,"blockquote"):!!n.Dom.closest(e,"blockquote",t.editor)),c=!l&&(s?n.Dom.isCell(s):!!n.Dom.closest(e,["td","th"],t.editor));if(t.o.enter.toLowerCase()===o.BR.toLowerCase()||c||i&&!l||!i&&l){var u;let i;if(l&&(i=a(a(u=e)))&&(n.Dom.safeRemove(a(u)),n.Dom.safeRemove(i),1))return!1;let o=t.createInside.element("br");if(n.Dom.before(e,o),!n.Dom.findNotEmptySibling(o,!1)){let t=o.cloneNode();n.Dom.after(o,t),n.Dom.before(t,e)}return(0,r.scrollIntoViewIfNeeded)(o,t.editor,t.ed),!0}return!1}function a(e){if(!e)return!1;let t=n.Dom.findSibling(e,!0);return!!t&&!!n.Dom.isTag(t,"br")&&t}},61991:function(e,t,i){i.d(t,{checkUnsplittableBox:function(){return n}});var o=i(2748);function n(e,t,i){return!!o.Dom.canSplitBlock(i)||(o.Dom.before(e,t.createInside.element("br")),!1)}},54041:function(e,t,i){i.d(t,{getBlockWrapper:function(){return function e(t,i,r=o.IS_BLOCK){let s=t,a=i.editor;do{if(!s||s===a)break;if(r.test(s.nodeName)){if(n.Dom.isLeaf(s))return s;return e(s.parentNode,i,/^li$/i)||s}s=s.parentNode}while(s&&s!==a)return null}}});var o=i(82758),n=i(2748)},19057:function(e,t,i){i.d(t,{hasPreviousBlock:function(){return n}});var o=i(2748);function n(e,t){return!!o.Dom.prev(e,e=>o.Dom.isBlock(e)||o.Dom.isImage(e),t.editor)}},35399:function(e,t,i){i.d(t,{checkBR:function(){return o.checkBR},checkUnsplittableBox:function(){return n.checkUnsplittableBox},getBlockWrapper:function(){return r.getBlockWrapper},hasPreviousBlock:function(){return s.hasPreviousBlock},insertParagraph:function(){return a.insertParagraph},moveCursorOutFromSpecialTags:function(){return l.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return c.processEmptyLILeaf},splitFragment:function(){return u.splitFragment},wrapText:function(){return d.wrapText}});var o=i(41872),n=i(61991),r=i(54041),s=i(19057),a=i(44245),l=i(91388),c=i(65181),u=i(54600),d=i(5287)},44245:function(e,t,i){i.d(t,{insertParagraph:function(){return s}});var o=i(2748),n=i(29960),r=i(26395);function s(e,t,i,s){let a="br"===i.toLowerCase(),{createInside:l}=t,c=l.element(i),u=l.element("br");return a||o.Dom.append(c,u),s&&s.cssText&&(0,n.attr)(c,"style",s.cssText),o.Dom.after(e,c),o.Dom.before(a?c:u,e),(0,r.scrollIntoViewIfNeeded)(c,t.editor,t.ed),c}},91388:function(e,t,i){i.d(t,{moveCursorOutFromSpecialTags:function(){return n}});var o=i(2748);function n(e,t,i){let{s:n}=e,r=o.Dom.closest(t,i,e.editor);if(r){if(n.cursorOnTheRight(r,t))o.Dom.after(r,t);else{if(!n.cursorOnTheLeft(r,t))return;o.Dom.before(r,t)}let e=n.createRange();e.setStartBefore(t),n.selectRange(e)}}},65181:function(e,t,i){i.d(t,{processEmptyLILeaf:function(){return s}});var o=i(2748),n=i(76078),r=i(44245);function s(e,t,i){let s=o.Dom.closest(i,["ol","ul"],t.editor);if(!s)return;let a=s.parentElement,l=o.Dom.isLeaf(a),c=l?a:s,u=t.s.createRange();u.setStartAfter(i),u.setEndAfter(s);let d=u.extractContents();o.Dom.after(c,e),o.Dom.safeRemove(i),(0,n.$$)("li",s).length||o.Dom.safeRemove(s);let h=(0,r.insertParagraph)(e,t,l?"li":t.o.enter);o.Dom.first(d,e=>o.Dom.isTag(e,"li"))&&(l?o.Dom.append(h,d):o.Dom.after(h,d))}},54600:function(e,t,i){i.d(t,{splitFragment:function(){return s}});var o=i(2748),n=i(26395),r=i(44245);function s(e,t,i){let s=t.s,{enter:a}=t.o,l=a.toLowerCase(),c=o.Dom.isLeaf(i),u=i.tagName.toLowerCase()===l||c,d=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!u&&(d||h)){d?o.Dom.after(i,e):o.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!d&&o.Dom.prepend(i,e);return}let{scrollTop:p}=t.editor;s.splitSelection(i,e),t.editor.scrollTop!==p&&(t.editor.scrollTop=p),(0,n.scrollIntoViewIfNeeded)(i,t.editor,t.ed)}},5287:function(e,t,i){i.d(t,{wrapText:function(){return n}});var o=i(2748);function n(e,t){let i=e;o.Dom.up(i,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(i=e)},t.editor);let n=o.Dom.wrapInline(i,t.o.enter,t);if(o.Dom.isEmpty(n)){let i=t.createInside.element("br");o.Dom.append(n,i),o.Dom.before(i,e)}return n}},11317:function(e,t,i){var o=i(2748),n=i(580),r=i(29960),s=i(6441),a=i(92762);function l(e){var t;null==(t=e.files)||t.forEach(t=>{let i=this.createInside.element("a",{href:e.baseurl+t});i.textContent=this.o.uploader.getDisplayName.call(this.uploader,e.baseurl,t),this.s.insertNode(i)})}s.Config.prototype.file={defaultHandlerSuccess:l},s.Config.prototype.controls.file={popup(e,t,i){let n=(t,i="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))},s=null;return t&&(o.Dom.isTag(t,"a")||o.Dom.closest(t,"a",e.editor))&&(s=o.Dom.isTag(t,"a")?t:o.Dom.closest(t,"a",e.editor)),(0,a.FileSelectorWidget)(e,{filebrowser(e){e.files&&e.files.forEach(t=>n(e.baseurl+t)),i()},upload(t){var i,o;(null!=(o=null==(i=e.o.file)?void 0:i.defaultHandlerSuccess)?o:l).call(e,t)},url(e,t){s?((0,r.attr)(s,"href",e),(0,r.attr)(s,"title",t)):n(e,t),i()}},s,i,!1)},tags:["a"],tooltip:"Insert file"},n.pluginSystem.add("file",function(e){e.registerButton({name:"file",group:"media"})})},36243:function(e,t,i){var o=i(82758),n=i(22732),r=i(580),s=i(6441);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,r.pluginSystem.add("focus",function(e){if(e.o.saveSelectionOnBlur){let t=!1;e.e.on("blur",()=>{t=!1,e.isEditorMode()&&e.s.save(!0)}).on("mousedown touchstart",()=>{t=!e.editorIsActive}).on("focus",()=>{e.isEditorMode()&&(t?e.s.removeMarkers():e.s.restore()),t=!1})}let t=()=>{e.s.focus();let t=null;switch(e.o.cursorAfterAutofocus){case"start":t=n.Dom.first(e.editor,e=>n.Dom.isText(e));break;case"end":t=n.Dom.last(e.editor,e=>n.Dom.isText(e))}t&&e.s.setCursorIn(t,"start"===e.o.cursorAfterAutofocus)};e.e.on("afterInit",()=>{if(e.o.autofocus)if(e.defaultTimeout){let i="mousedown touchstart keydown",o=()=>{e.async.clearTimeout(n),e.e.off(i,o)},n=e.async.setTimeout(()=>{e.e.off(i,o),t()},300);e.e.on(i,o)}else t()}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&n.Dom.isBlock(t.target)&&!n.Dom.isTag(t.target,o.INSEPARABLE_TAGS)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},28252:function(e,t,i){var o=i(22732),n=i(68345),r=i(49055),s=i(41180),a=i(12153),l=i(6441),c=i(4104),u=i(83709),d=i(40222);l.Config.prototype.defaultFontSizePoints="px",l.Config.prototype.font={googleFonts:{url:""}},a.Icon.set("font",c.default).set("fontsize",u.default),l.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:e=>e.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value(e,t){var i;let n=e.s.current();if(!n)return;let r=o.Dom.closest(n,o.Dom.isElement,e.editor);if(!r)return;let a=(null==(i=t.control.data)?void 0:i.cssRule)||"font-size",l=(0,s.css)(r,a);if("font-size"===a){let t=parseFloat(l.toString());return"pt"===e.o.defaultFontSizePoints?Math.round(.75*t).toString():Math.round(t).toString()}return l.toString()},isChildActive(e,t){var i,o;let n=t.state.value,r=null!=(o=null==(i=t.control.data)?void 0:i.normalize)?o:e=>e;return!!(n&&t.control.args&&r(t.control.args[0].toString())===r(n.toString()))},isActive(e,t){var i,o;let n=t.state.value;if(!n)return!1;let r=null!=(o=null==(i=t.control.data)?void 0:i.normalize)?o:e=>e,s=t.control.data.cacheListSet;return s||(s=new Set(Object.keys(t.control.list).map(r)),t.control.data.cacheListSet=s),s.has(r(n.toString()))}};let h=new WeakSet;l.Config.prototype.controls.font={...l.Config.prototype.controls.fontsize,command:"fontname",textTemplate(e,t){let[i]=t.split(",");return(0,r.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(e,t,i){let o=!1;try{o=-1===t.indexOf("dings")&&document.fonts.check("16px "+t,i)}catch(e){}return`<span data-style="${t}" style="${o?`font-family: ${t}!important;`:""}">${i}</span>`},popup:(e,t,i,o)=>!!e.o.font.googleFonts.url&&new d.UIFontPicker(e,o,i),data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value(e,t){let i=e.s.current(),r=i&&o.Dom.closest(i,o.Dom.isElement,e.editor);if(r)h.add(t);else if(h.has(t))return;let a=(0,s.css)(r||e.editor,"font-family").toString(),{list:l}=t.control;return a===(0,s.css)(e.editor,"font-family").toString()&&((0,n.isArray)(l)?l.includes(""):""in(null!=l?l:{}))?"":a},tooltip:"Font family"}},40222:function(e,t,i){i.d(t,{UIFontPicker:function(){return g}});var o=i(87325),n=i(37133),r=i(2748),s=i(580),a=i(68345),l=i(29960),c=i(41180),u=i(37790),d=i(48538),h=i(41870),p=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let f=["h1","h2","h3","h4","h5","h6"],m=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]),g=class e extends d.UIElement{className(){return"UIFontPicker"}__render(){var e,t;let{control:i}=this.__button,{list:o={}}=i,n=(0,a.isArray)(o)?o.map(e=>({value:e.toString(),title:e.toString()})):(0,u.keys)(o,!1).map(e=>({value:e,title:o[e].toString()})),s=Array.from(this.__googleFonts.fonts.values(),e=>({value:this.__googleFonts.value(e),title:e.family,font:e})),l=new Map;[...s,...n].forEach(e=>l.set((0,h.firstFamily)(e.value),e));let c=new Map,d=new Map;this.__themeFonts().forEach(e=>{var t;let i=(0,h.firstFamily)(e),o=e.split(",")[0].replace(/["']/g,"").trim(),n=null!=(t=l.get(i))?t:!i||i.startsWith("-")||m.has(i)?void 0:{value:e,title:o};n&&!c.has(i)&&c.set(i,n)}),this.__usedFonts().forEach(e=>{let t=(0,h.firstFamily)(e),i=l.get(t);i&&!c.has(t)&&d.set(t,i)});let p=n.find(e=>""===e.value),f=(0,h.firstFamily)(null!=(t=null==(e=i.value)?void 0:e.call(i,this.j,this.__button))?t:"");r.Dom.detach(this.container),this.__fonts.clear(),p&&this.__append(f,[p]),this.__append(f,[...c.values()],"Theme fonts"),this.__append(f,[...d.values()],"Used fonts"),this.__append(f,n.filter(e=>e!==p),"System fonts"),this.__append(f,s,"Google Fonts"),this.__observeGoogleFonts()}__themeFonts(){let{editor:e}=this.j,t=[(0,c.css)(e,"font-family").toString()];return f.forEach(i=>{let o=this.j.createInside.element(i,{style:"display: none"});r.Dom.append(e,o),t.push((0,c.css)(o,"font-family").toString()),r.Dom.safeRemove(o)}),t}__usedFonts(){return Array.from(this.j.editor.querySelectorAll('[style*="font-family"]'),e=>e.style.fontFamily)}__append(e,t,i){if(!t.length)return;let{control:o}=this.__button,n=this.j.c.div(this.getFullElName("group"));if(i){let e=this.j.c.div(this.getFullElName("heading"),{id:`${this.getFullElName("heading")}-${(0,s.uniqueUid)()}`});e.textContent=this.i18n(i),(0,l.attr)(n,{role:"group","aria-labelledby":e.id}),r.Dom.append(n,e)}t.forEach(t=>{var i,s;let a=this.j.c.element("button",{type:"button",class:this.getFullElName("item"),"data-value":t.value,"aria-pressed":(0,h.firstFamily)(t.value)===e});t.font?(a.textContent=t.title,this.__fonts.set(a,t.font)):a.innerHTML=null!=(s=null==(i=o.childTemplate)?void 0:i.call(o,this.j,t.value,t.title,this.__button))?s:t.title,r.Dom.append(n,a)}),r.Dom.append(this.container,n)}__observeGoogleFonts(){this.j.async.requestAnimationFrame(()=>{var e;if(null==(e=this.__observer)||e.disconnect(),this.isDestructed||!this.__fonts.size)return;let t=new IntersectionObserver(e=>{let i=[];e.forEach(({isIntersecting:e,target:o})=>{let n=this.__fonts.get(o);e&&n&&(i.push(n),(0,c.css)(o,{fontFamily:this.__googleFonts.value(n)}),t.unobserve(o))}),this.__googleFonts.preview(i)},{root:this.container.parentElement,rootMargin:"0px 0px 400px 0px"});this.__fonts.forEach((e,i)=>t.observe(i)),this.__observer=t})}onMouseDown(e){e.preventDefault()}onClick(e){var t;let i=r.Dom.up(e.target,e=>r.Dom.isHTMLElement(e)&&e.hasAttribute("data-value"),this.container);if(!i)return;let o=null!=(t=(0,l.attr)(i,"data-value"))?t:"",n=this.__googleFonts.find(o),s=(0,h.firstFamily)(o)===(0,h.firstFamily)(this.__blockFont());n&&!s&&this.__googleFonts.load(n),this.j.execCommand("fontname",!1,s?"":o),this.__close()}__blockFont(){let e=r.Dom.up(this.j.s.current(),r.Dom.isBlock,this.j.editor);return(0,c.css)(null!=e?e:this.j.editor,"font-family").toString()}destruct(){var e;null==(e=this.__observer)||e.disconnect(),super.destruct()}constructor(e,t,i){super(e),this.__button=t,this.__close=i,this.__fonts=new Map,this.__observer=null,this.__googleFonts=e.getInstance(h.GoogleFonts),this.__render(),this.__googleFonts.fonts.size||this.__googleFonts.ready.then(()=>!this.isDestructed&&this.__render())}};p([(0,n.watch)("container:mousedown")],g.prototype,"onMouseDown",null),p([(0,n.watch)("container:click")],g.prototype,"onClick",null),g=p([o.component],g)},23399:function(e,t,i){var o=i(580),n=i(21537);i(28252);var r=i(41870);o.pluginSystem.add("font",function(e){if(e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"}),e.o.font.googleFonts.url){let t=e.getInstance(r.GoogleFonts),i=e.async.debounce(()=>t.loadUsed(),e.defaultTimeout);t.ready.then(i),e.e.on("afterInit afterSetMode change",i)}e.e.on("afterInit",()=>{e.iframe&&e.e.on(e.ed,"load",()=>e.e.fire("updateToolbar"),{capture:!0})});let t=(t,i,o)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:(0,n.normalizeSize)(o,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:o}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})},41870:function(e,t,i){i.d(t,{GoogleFonts:function(){return c},firstFamily:function(){return l}});var o=i(80480),n=i(2748),r=i(54079);let s={serif:"serif",monospace:"monospace"},a=new Map;function l(e){return e.split(",")[0].replace(/["']/g,"").trim().toLowerCase()}class c extends o.ViewComponent{className(){return"GoogleFonts"}find(e){return this.fonts.get(l(e))}value(e){var t;return`'${e.family}', ${null!=(t=s[e.category])?t:"sans-serif"}`}load(e){let t=this.__loadedInto(this.j.ed);if(t.has(e.family))return;t.add(e.family);let i=[["regular","0,400"],["700","0,700"],["italic","1,400"],["700italic","1,700"]].filter(([t])=>e.variants.includes(t)).map(([,e])=>e);this.__append(this.j.ed,`family=${this.__family(e)}:ital,wght@${i.join(";")}`)}loadUsed(){this.j.editor.querySelectorAll('[style*="font-family"]').forEach(e=>{let t=this.find(e.style.fontFamily);t&&this.load(t)})}preview(e){let t=this.__loadedInto(this.j.od);if(!(e=e.filter(e=>!this.__previewed.has(e.family)&&!t.has(e.family))).length)return;e.forEach(e=>this.__previewed.add(e.family));let i=e.map(e=>"family="+this.__family(e)),o=new Set(e.map(e=>e.family).join(""));this.__append(this.j.od,`${i.join("&")}&text=${encodeURIComponent([...o].join(""))}`)}__loadedInto(e){var t;let i=null!=(t=this.__loaded.get(e))?t:new Set;return this.__loaded.set(e,i),i}__family(e){return encodeURIComponent(e.family).replace(/%20/g,"+")}__append(e,t){let i=e.createElement("link");i.rel="stylesheet",i.href=`https://fonts.googleapis.com/css2?${t}&display=swap`,e.head.appendChild(i),this.__links.push(i)}destruct(){this.__links.forEach(e=>n.Dom.safeRemove(e)),super.destruct()}constructor(e){super(e),this.fonts=new Map,this.__links=[],this.__loaded=new WeakMap,this.__previewed=new Set,this.ready=(function(e,t){let i=a.get(t);if(!i){let o=new r.Ajax({url:t,method:"GET"},e.o.defaultAjaxOptions);i=o.send().then(e=>e.json()).then(({items:e})=>e.filter(e=>e.variants.includes("regular"))).catch(()=>(a.delete(t),[])).finally(()=>o.destruct()),a.set(t,i)}return i})(e,e.o.font.googleFonts.url).then(e=>{e.forEach(e=>this.fonts.set(e.family.toLowerCase(),e))})}}},4104:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m5 17 7-14 7 14M8 12h8M3 21h18"/> </g> </svg> '},83709:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2 5h9M6.5 5v15M4 20h5M19 4v16m-3-13 3-3 3 3m-6 10 3 3 3-3"/> </g> </svg> '},24630:function(e,t,i){var o=i(2748),n=i(72430),r=i(12153),s=i(6441),a=i(89816);r.Icon.set("paragraph",a.default),s.Config.prototype.controls.paragraph={command:"formatBlock",value(e,t){var i,n;let r=t.control,s=e.s.current(),a=o.Dom.closest(s,o.Dom.isBlock,e.editor);return null!=(i=null==a?void 0:a.nodeName.toLowerCase())?i:null==(n=r.data)?void 0:n.currentValue},update(e,t){let i=t.control;if(!e.s.current())return!1;let o=t.state.value,r=i.list;return(0,n.isPlainObject)(r)&&r[o.toString()]&&e.o.textIcons&&(t.state.text=r[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(e,t){var i,o;return t.state.value===(null==(o=null==(i=t.control)?void 0:i.args)?void 0:o[0])},isActive:(e,t)=>t.state.value!==e.o.enter&&(0,n.isPlainObject)(t.control.list)&&!!t.control.list[t.state.value],childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"}},96111:function(e,t,i){var o=i(580);i(24630),o.pluginSystem.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,i,o)=>(e.s.commitStyle({element:o}),e.synchronizeValues(),!1))})},89816:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 4H9a5 5 0 0 0 0 10h3M12 4v17M18 4v17"/> </g> </svg> '},99823:function(e,t,i){var o=i(82758),n=i(12153),r=i(6441),s=i(6950),a=i(28911);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,n.Icon.set("fullsize",s.default).set("shrink",a.default),r.Config.prototype.controls.fullsize={exec(e){e.toggleFullSize()},update(e,t){let i=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=i:t.state.icon.name=i},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},2169:function(e,t,i){var o=i(2748),n=i(580),r=i(19306),s=i(41180);i(99823);let a=new Set;n.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,n=0,l=0,c=0,u=!1,d=()=>{let{container:o,events:r}=e;r&&(t?(u||(i=(0,s.css)(o,"height",!0),n=(0,s.css)(o,"width",!0),u=!0),(0,s.css)(o,{height:e.ow.innerHeight,width:e.ow.innerWidth})):u&&((0,s.css)(o,{height:i||"auto",width:n||"auto"}),u=!1))},h=i=>{let{container:n,events:u}=e;if(n){if(void 0===i&&(i=!n.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,n.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,r.isJoditObject)(e)&&e.toolbarContainer&&o.Dom.append(e.toolbarContainer,e.toolbar.container),(0,s.css)(e.toolbar.container,"width","auto")),i?a.add(n):a.delete(n),e.o.globalFullSize&&(1===a.size&&i||0===a.size&&!i)){i&&(l=e.ow.scrollX,c=e.ow.scrollY);let t=n.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;d(),i||e.ow.scrollTo(l,c)}u.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",d),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==(t=null==e?void 0:e.options)?void 0:t.fullsize)}).on("toggleFullSize",h).on("beforeDestruct",()=>{t&&h(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",d)})})},6950:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5"/> </g> </svg> '},28911:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 8h5V3M8 8 3 3m13 0v5h5m-5 0 5-5M3 16h5v5m0-5-5 5m13 0v-5h5m-5 0 5 5"/> </g> </svg> '},78524:function(e,t,i){i(6441).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"]}},42263:function(e,t,i){var o=i(82758),n=i(580),r=i(21537),s=i(50911);i(78524);class a extends s.Plugin{afterInit(e){(0,r.keys)(e.o.commandToHotkeys,!1).forEach(t=>{let i=e.o.commandToHotkeys[t];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&e.registerHotkeyToCommand(i,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===o.KEY_ESC)return this.j.e.fire("escape",e)}).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 t=!0,e.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=e=>{let t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),o=[t||i];return["alt","ctrl","shift","meta"].forEach(i=>{e[i+"Key"]&&t!==i&&o.push(i)}),(0,r.normalizeKeyAliases)(o.join("+"))},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:"'"}}}n.pluginSystem.add("hotkeys",a)},16233:function(e,t,i){var o=i(22732),n=i(580),r=i(12153),s=i(6441),a=i(72337);r.Icon.set("hr",a.default),s.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},n.pluginSystem.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{var t;let i=e.createInside.element("hr");e.s.insertNode(i,!1,!1);let n=o.Dom.closest(i.parentElement,o.Dom.isBlock,e.editor);n&&o.Dom.isEmpty(n)&&n!==e.editor&&!(null==(t=e.o.dtd)?void 0:t.blockLimits[n.nodeName.toLowerCase()])&&(o.Dom.after(n,i),o.Dom.safeRemove(n));let r=o.Dom.findNotEmptySibling(i,!1);if(o.Dom.isBlock(r))return e.s.setCursorIn(r,!0),!1;if(r||i.parentNode!==e.editor&&!o.Dom.isBlock(o.Dom.findNotEmptySibling(i,!0)))return e.s.setCursorAfter(i),!1;let s=e.createInside.element(e.o.enter);return o.Dom.after(i,s),e.s.setCursorIn(s),!1})})},72337:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M4 12h16"/> </g> </svg> '},50963:function(e,t,i){var o=i(6441);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_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},77469:function(e,t,i){var o=i(82758),n=i(2748),r=i(580),s=i(21537);i(50963),r.pluginSystem.add("iframe",function(e){let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let o=e||i.iframe.contentWindow.document;if(o.open(),o.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,s.defaultLanguage)(t.language)}">`+"<head>"+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=o.createElement("link");(0,s.attr)(t,"rel","stylesheet"),(0,s.attr)(t,"href",e),o.head&&n.Dom.append(o.head,t),i.e.on(t,"load",()=>i.e.fire("resize"))}),t.iframeStyle){let e=o.createElement("style");e.innerHTML=t.iframeStyle,o.head&&n.Dom.append(o.head,e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");(0,s.css)(i,"display","block"),i.src="about:blank",i.className="jodit-wysiwyg_iframe",(0,s.attr)(i,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&(0,s.attr)(i,"sandbox",t.iframeSandbox),n.Dom.append(e.workplace,i),e.iframe=i;let r=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,s.callPromise)(r,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let r=t.editHTMLDocumentMode,a=()=>{(0,s.attr)(i.body,"contenteditable",e.getMode()!==o.MODE_SOURCE&&!e.getReadOnly()||null)},l=e=>{e=e.replace(/<style[^>]+jodit-box[^>]*>[\s\S]*?<\/style>/gi,"");let t=/<body.*<\/body>/im,i="{%%BODY%%}",o=t.exec(e);return o&&(e=e.replace(t,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")),e};if(r){let t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>l(e.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>{if(e.isLocked)return!1;if(/<(html|body)/i.test(t)){if(l(i.documentElement.outerHTML)!==l(t)){var o;let r,c;o=l(t),r=new DOMParser().parseFromString(o,"text/html"),e.e.fire("safeHTML",r.documentElement),c=(0,s.$$)("style.jodit-box",i.head),i.replaceChild(i.adoptNode(r.documentElement),i.documentElement),c.forEach(e=>n.Dom.append(i.head,e)),e.editor=i.body,a(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue")}return!0}return!1},{top:!0})}if(e.editor=i.body,e.e.on("afterSetMode afterInit afterAddPlace",a),"auto"===t.height){i.documentElement&&(0,s.css)(i.documentElement,"overflowY","hidden");let o=e.async.throttle((...i)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){let t=e.ew.getComputedStyle(e.editor),i=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);(0,s.css)(e.iframe,"height",e.editor.offsetHeight+i)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",o).on([e.iframe,e.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let t=new ResizeObserver(o);t.observe(i.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{var i;null==(i=e.events)||i.fire(e.ow,t)}),!1})})})},85745:function(e,t,i){i(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(e,t,i){var o=i(82758),n=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(74569);i(85745);var u=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let d="__jodit_imageprocessor_binded",h=d+"blob-id",p="jodit-wysiwyg_image-selected",f=new Set(["img","jodit","jodit-media"]);class m extends l.Plugin{afterInit(e){e.e.on(e.ed,"selectionchange",this.onSelectionChange),(0,s.getContainer)(e,"image-processor","style",!0).textContent=`.jodit-wysiwyg.${p}::selection,.jodit-wysiwyg.${p} *:not(img)::selection{background:transparent}`}beforeDestruct(e){e.e.off(e.ed,"selectionchange",this.onSelectionChange),e.editor.classList.remove(p);let t=(0,n.cached)(e,"buffer"),i=null==t?void 0:t.get(h);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(h)}}onAfterGetValueFromEditor(e,t){if(t!==o.SOURCE_CONSUMER)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){let{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=t.buffer.get(h);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}onSelectionChange(){let{jodit:e}=this;e.editor.classList.toggle(p,function(e){let{sel:t}=e.s;if(!t||!t.rangeCount)return!1;let{startContainer:i,startOffset:o,endContainer:n,endOffset:s}=t.getRangeAt(0),l=i.childNodes[o];return i===n&&s===o+1&&(r.Dom.isTag(l,f)||!!(0,a.getWrappedMedia)(e,l))&&r.Dom.isOrContains(e.editor,i)}(e))}async afterChange(e){let{jodit:t}=this;t.editor&&(0,a.$$)("img",t.editor).forEach(e=>{(0,a.dataBind)(e,d)||((0,a.dataBind)(e,d,!0),e.complete||t.e.on(e,"load",function i(){var o;t.isInDestruct||null==(o=t.e)||o.fire("resize"),t.e.off(e,"load",i)}),e.src&&/^data:/.test(e.src)&&function(e,t){let i;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let o=t.src;try{i=(0,c.dataURItoBlob)(o)}catch(e){return}t.src=URL.createObjectURL(i),e.e.fire("internalUpdate");let{buffer:n}=e,r=n.get(h)||{};r[t.src]=o,e.buffer.set(h,r)}(t,e),t.e.on(e,"mousedown touchstart",()=>{(function(e){var t;for(let i of["previousSibling","nextSibling"]){let n=e[i];for(;r.Dom.isText(n)&&!(null==(t=n.nodeValue)?void 0:t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""));){let e=n[i];r.Dom.safeRemove(n),n=e}}})(e),t.s.select(e)}))})}}u([(0,n.watch)(":afterGetValueFromEditor")],m.prototype,"onAfterGetValueFromEditor",null),u([(0,n.watch)(":beforeSetElementValue")],m.prototype,"onBeforeSetElementValue",null),u([n.autobind],m.prototype,"onSelectionChange",null),u([(0,n.watch)([":change",":afterInit",":changePlace"]),(0,n.debounce)()],m.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",m)},97536:function(e,t,i){i(6441).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}},3215:function(e,t,i){var o=i(65478),n=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(62843);i(97536);var c=i(59436),u=i(53636),d=i(10263),h=i(94575),p=i(34755),f=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class m extends a.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,d.openImagePopup)(this.j,this.dialog,this.state,e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,p.applyValuesToImage)(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{let i=e.s.createRange();i.setStartBefore(this.state.sourceImage),i.collapse(!0),e.s.removeNode(this.state.sourceImage),t.close(),e.s.selectRange(i)}),i.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),t.e.on(t,"afterClose",()=>{let{sourceImage:t}=this.state;if(e.isInDestruct||!n.Dom.isOrContains(e.editor,t))return;if(e.o.image.selectImageAfterClose)return void e.s.select(t);let i=e.s.createRange();i.setStartAfter(t),i.collapse(!0),e.s.selectRange(i)}),t.setSize(e.o.image.dialogWidth),(0,s.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,l.Button)(e,"ok","Apply","primary"),remove:(0,l.Button)(e,"bin","Delete"),cancel:(0,l.Button)(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.__focusFirstField(),this.async.promise((e,t)=>(0,h.readValuesFromImage)(this.j,this.state).then(e,t)).catch(e=>{(0,s.isAbortError)(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__focusFirstField(){var e;let t=e=>(0,s.toArray)(e.querySelectorAll("input, select, textarea"));null==(e=t(this.form.getElm("tabsBox")).concat(t(this.form.container)).find(e=>null!=e.offsetParent))||e.focus()}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){let t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",i=>{let o=i.target;if(n.Dom.isTag(o,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;t.state.sourceImage=o,t.state.image=o.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(o)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{await e.decode()}catch(e){}if(this.state.sizeIsLocked&&(0,s.isNumeric)(t.imageWidth)){let e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){var t,i,n;Object.values(null!=(t=(0,o.cached)(this,"__buttons"))?t:{}).forEach(e=>e.destruct()),null==(i=(0,o.cached)(this,"dialog"))||i.destruct(),null==(n=(0,o.cached)(this,"form"))||n.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){let{naturalWidth:e,naturalHeight:t}=this.image;return e/t||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:""}},this.activeTabState={activeTab:"Image"}}}f([o.cache],m.prototype,"form",null),f([o.cache],m.prototype,"dialog",null),f([o.cache],m.prototype,"__buttons",null),f([(0,o.watch)("state.image")],m.prototype,"onStateValuesImageSrcChange",null),r.pluginSystem.add("imageProperties",m)},51642:function(e,t,i){i.d(t,{readAlign:function(){return n}});var o=i(25726);function n(e,t,i){let n=(0,o.getHAlign)(e,i);t.align="normal"===n?"":n}},94575:function(e,t,i){i.d(t,{readValuesFromImage:function(){return u}});var o=i(25726),n=i(29960),r=i(41180),s=i(51642),a=i(75595),l=i(47749),c=i(32566);async function u(e,t){let{sourceImage:i,values:u}=t;return(0,s.readAlign)(i,u,(0,o.getAlignClasses)(e,i)),u.borderRadius=parseInt((0,r.cssInline)(i,"border-radius")||"0",10)||0,u.id=(0,n.attr)(i,"id")||"",u.imageTitle=(0,n.attr)(i,"title")||"",u.imageAlt=(0,n.attr)(i,"alt")||"",u.style=(0,n.attr)(i,"style")||"",u.classes=((0,n.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,l.readMargins)(i,u,t),(0,a.readLink)(t,e,u),u.imageSrc=(0,n.attr)(i,"src")||"",(0,c.readSizes)(i,u,t)}},75595:function(e,t,i){i.d(t,{readLink:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=o.Dom.closest(e.sourceImage,"a",t.editor);r?(i.imageLink=(0,n.attr)(r,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,n.attr)(r,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},47749:function(e,t,i){i.d(t,{readMargins:function(){return n}});var o=i(12475);function n(e,t,i){let n=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let s=e.style.getPropertyValue((0,o.kebabCase)(i));if(!s){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),t[i]=s,(r&&t[i]||n&&"marginTop"!==i&&t[i]!==t.marginTop)&&(n=!1)}),i.marginIsLocked=n}},32566:function(e,t,i){i.d(t,{readSizes:function(){return a}});var o=i(29807),n=i(29960),r=i(41180),s=i(14415);async function a(e,t,i){try{await e.decode()}catch(e){}let a=(0,r.css)(e,"width",!0)||(0,n.attr)(e,"width")||!1,l=(0,r.css)(e,"height",!0)||(0,n.attr)(e,"height")||!1;t.imageWidth=!1!==a?(0,s.normalSizeFromString)(a):e.offsetWidth||e.naturalWidth,(0,o.isNumeric)(t.imageWidth)?t.imageHeight=!1!==l?(0,s.normalSizeFromString)(l):e.offsetHeight||e.naturalHeight:t.imageHeight=l||"";let{imageWidth:c,imageHeight:u}=t,d=parseFloat(c.toString());if(!(0,o.isNumeric)(c)||!(0,o.isNumeric)(u)){i.sizeIsLocked=!1;return}if(!1===l){t.imageHeight=Math.round(d/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(d-parseFloat(u.toString())*i.ratio)}},59436:function(e,t,i){i.d(t,{UIImagePropertiesForm:function(){return p}});var o=i(65478),n=i(87325),r=i(2748),s=i(21537),a=i(62405),l=i(12153),c=i(92762),u=i(35105),d=i(29827),h=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p=class e extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){let t=super.getElm(e);if(t)return t;for(let t of this.elements){let i=t.getElm(e);if(i)return i}return null}render(){return`<form>
136
+ </div>`}setPrompt(e){if(e){let{jodit:t}=this,i=t.o.aiAssistant[e],{aiCommonPrefixPrompt:o,aiCommonSuffixPrompt:n}=t.o.aiAssistant;this.promptInput.value=[o,(0,s.isString)(i)?i:"",n].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),r.Dom.detach(this.__results),this.__aiResult=e,r.Dom.append(this.__results,this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,r.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}constructor(e,{onInsert:t,onInsertAfter:i}){super(e),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,a.Button)(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=(0,a.Button)(e,"","Insert After","initial").onAction(()=>i(this.__aiResult));let o=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,a.Button)(e,{icon:{name:"ai-assistant"},name:"ai-assistant",tooltip:"Submit"}).onAction(o),this.__tryAgainButton=(0,a.Button)(e,{icon:{name:"update"},name:"update",tooltip:"Try Again",variant:"initial"}).onAction(o),this.promptInput=new a.UITextArea(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});let n=new a.UIBlock(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new a.UIForm(e,[new a.UIBlock(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),r.Dom.detach(this.__results),r.Dom.append(this.__results,this.__spinner),this.__insertButton.focus()}),r.Dom.append(this.__buttons,n.container),r.Dom.append(this.__body,this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,n.watch)(":ai-assistant-response")],u.prototype,"onAiAssistentResponse",null),c([(0,n.watch)(":ai-assistant-error")],u.prototype,"onAiAssistentError",null),c([(0,n.watch)("promptInput:change")],u.prototype,"onChangePromptValue",null),u=c([o.component],u)},25187:function(e,t,i){i(73391),i(12391),i(93183),i(66707),i(41107),i(71255),i(82439),i(61323),i(93079),i(19063),i(19271),i(1255),i(575),i(11317),i(36243),i(23399),i(96111),i(2169),i(42263),i(16233),i(77469),i(23531),i(80763),i(3215),i(70045),i(93401),i(76295),i(59483),i(91071),i(61019),i(65517),i(20071),i(32309),i(64837),i(79799),i(31571),i(85407),i(59451),i(18363),i(8355),i(58519),i(6687),i(56113),i(9159),i(12019),i(36125),i(9881),i(28545),i(45927),i(52951),i(43809),i(7309),i(68687),i(59495),i(39627),i(767),i(43003),i(72439),i(94529),i(26551),i(96139),i(72253),i(65735),i(83671),i(3115)},93183:function(e,t,i){var o=i(82758),n=i(22732),r=i(580),s=i(23282),a=i(50911),l=i(45124);i(32496);var c=i(11338),u=i(14630),d=i(63785);class h extends a.Plugin{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){let i=this.j,r=i.selection;if(r.isFocused()||r.focus(),!r.isInsideArea)return;if((0,c.checkNotCollapsed)(i))return i.e.fire("backSpaceAfterDelete",e),!1;let a=r.range,d=i.createInside.text(o.INVISIBLE_SPACE);try{if(n.Dom.safeInsertNode(a,d),!n.Dom.isOrContains(i.editor,d))return;if(i.e.fire("backSpaceBeforeCases",e,d))return!1;(0,l.moveNodeInsideStart)(i,d,e);let r=i.o.delete.disableCases;if(u.casesMap.some(([n,a])=>{if(!(r&&r.has(n))&&(0,s.isFunction)(a)&&a(i,d,e,t))return o.IS_PROD,!0}))return!1}catch(e){throw o.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,d),this.moveCaretToTextBefore(d),this.safeRemoveEmptyNode(d)}return!1}moveCaretToTextBefore(e){var t,i;let{jodit:o}=this,{range:r}=o.s;if(!e.parentNode)return;let s=o.ed.createRange();if(s.selectNode(e),!r.collapsed||!s.isPointInRange(r.startContainer,r.startOffset))return;let a=(0,d.findMostNestedNeighbor)(e,!1,o.editor,!0),l=n.Dom.closest(a,"a",o.editor);n.Dom.isText(a)&&n.Dom.isContentEditable(a,o.editor)&&(!l||n.Dom.isOrContains(l,e))&&n.Dom.closest(a,n.Dom.isBlock,o.editor)===n.Dom.closest(e,n.Dom.isBlock,o.editor)&&(r.setStart(a,null!=(i=null==(t=a.nodeValue)?void 0:t.length)?i:0),r.collapse(!0),o.s.selectRange(r))}safeRemoveEmptyNode(e){var t,i,r;let{range:s}=this.j.s;n.Dom.isText(e)&&e.nodeValue!==o.INVISIBLE_SPACE&&(null==(t=e.nodeValue)?void 0:t.startsWith(o.INVISIBLE_SPACE))?e.deleteData(0,o.INVISIBLE_SPACE.length):(s.startContainer===e&&(e.previousSibling?n.Dom.isText(e.previousSibling)?s.setStart(e.previousSibling,null!=(r=null==(i=e.previousSibling.nodeValue)?void 0:i.length)?r:0):s.setStartAfter(e.previousSibling):e.nextSibling&&(n.Dom.isText(e.nextSibling)?s.setStart(e.nextSibling,0):s.setStartBefore(e.nextSibling)),s.collapse(!0),this.j.s.selectRange(s)),n.Dom.safeRemove(e))}}h.requires=["hotkeys"],r.pluginSystem.add("backspace",h)},62845:function(e,t,i){i.d(t,{checkJoinNeighbors:function(){return s}});var o=i(82758),n=i(2748),r=i(63785);function s(e,t,i){return function e(t,i,s,d){if(function(e,t,i){let o=n.Dom.findNotEmptySibling(t,i);if(!n.Dom.isElement(o)||!n.Dom.isBlock(o)||n.Dom.isList(o)||n.Dom.isTag(o,"table")||n.Dom.isCell(o)||!n.Dom.isContentEditable(o,e.editor)||Array.from(o.childNodes).some(e=>n.Dom.isBlock(e)))return!1;let s=(0,r.getMoveFilter)(e);if(i)for(let e=t;e&&!n.Dom.isBlock(e);){let t=e.nextSibling;if(n.Dom.isTag(e,"br")){n.Dom.safeRemove(e);break}s(e)?n.Dom.append(o,e):n.Dom.safeRemove(e),e=t}else{let t=n.Dom.findNotEmptySibling(o,!1);!t||n.Dom.isBlock(t)||n.Dom.isTag(t,"br")||n.Dom.after(o,e.createInside.element("br")),n.Dom.unwrap(o)}return e.s.setCursorBefore(t),!0}(t,i,s))return!0;let h=i,p=h;for(;h&&!n.Dom.findNotEmptySibling(h,s)&&h.parentElement!==t.editor;)p=h=h.parentElement;if(n.Dom.isElement(p)&&n.Dom.isContentEditable(p,t.editor)){var f,m;let h,g,v,b;if(n.Dom.up(i,n.Dom.isCell,p,!0))return!1;let y=n.Dom.findNotEmptySibling(p,s);if(y&&(a(n.Dom.furthest(i,e=>n.Dom.isElement(e)&&!n.Dom.isBlock(e)&&!n.Dom.isOrContains(e,y),t.editor),t.editor)||a(y,t.editor)))return e(t,i,s,d);if(n.Dom.isTag(y,"br"))return n.Dom.safeRemove(y),t.s.setCursorBefore(i),!0;if(s&&n.Dom.isTag(y,"table"))return t.s.setCursorBefore(i),!0;if(n.Dom.isElement(y)&&!n.Dom.isContentEditable(y,t.editor))return!1;let w=(f=p,(h=n.Dom.up(i,n.Dom.isBlock,f))?n.Dom.isLeaf(h)&&h.parentElement?h.parentElement:h:f);if(!d&&y&&function(e,t,i,r,s){if(s||n.Dom.isTag(r,"table")||n.Dom.isTag(r,o.INSEPARABLE_TAGS)||!n.Dom.isContentEditable(r,e.editor))return!1;let a=n.Dom.up(t,n.Dom.isBlock,i,!0),u=l(r,!1,e.editor);if(!a||!u||!n.Dom.isContentEditable(u,e.editor)||!(n.Dom.isLeaf(a)||n.Dom.isLeaf(u))||n.Dom.isLeaf(a.parentElement)||n.Dom.isLeaf(u.parentElement)||c(a)===c(u))return!1;let d=a.parentElement;n.Dom.isLeaf(a)&&n.Dom.isLeaf(u)?n.Dom.before(u,a):n.Dom.isLeaf(a)?n.Dom.before(u,function(e){let t=e.parentElement,i=t.cloneNode(!1),o=Array.from(t.children).indexOf(e);if(o&&(i.removeAttribute("id"),n.Dom.isTag(t,"ol"))){let e=parseInt(t.getAttribute("start")||"1",10)||1;i.setAttribute("start",e+o+"")}return n.Dom.append(i,e),i}(a)):n.Dom.before(u.parentElement,a);let h=d;for(;h&&h!==e.editor&&n.Dom.isEmpty(h);){let e=h.parentElement;n.Dom.safeRemove(h),h=e}return!0}(t,i,w,y,s))return e(t,i,s,!0)||t.s.setCursorBefore(i),!0;if(y&&(function(e,t,i,s,a){if(a||!(n.Dom.isList(i)||n.Dom.isList(s)))return!1;let l=n.Dom.up(t,n.Dom.isBlock,i,!0),c=n.Dom.isList(s)?s.firstElementChild:s;if(!l||!c||n.Dom.isTag(c,o.INSEPARABLE_TAGS)||n.Dom.isTag(c,"table"))return!1;if(!n.Dom.isEmpty(c)){let t=[];for(let e=c.firstChild;e&&!n.Dom.isBlock(e);e=e.nextSibling)t.push(e);if(!t.length)return!1;let i=(0,r.getMoveFilter)(e);t.forEach(e=>i(e)?n.Dom.append(l,e):n.Dom.safeRemove(e))}let u=c;for(;u&&u!==e.editor&&n.Dom.isEmpty(u);){let e=u.parentElement;n.Dom.safeRemove(u),u=e}return!0}(t,i,w,y,s)||(m=y,g=n.Dom.isTag(m,o.LIST_TAGS),v=n.Dom.isTag(w,o.LIST_TAGS),b=(e,t)=>t?e.firstElementChild:e.lastElementChild,v?(m=t.createInside.element(t.o.enterBlock),n.Dom.before(w,m),u(t,b(w,s),m,s)):!!m&&!!g&&!v&&u(t,w,b(m,!s),s))||function(e,t,i,o){if(n.Dom.isBlock(i)||!n.Dom.isBlock(t)||n.Dom.isList(t)||t.parentNode!==i.parentNode||Array.from(t.childNodes).some(e=>n.Dom.isBlock(e)))return!1;if(o){let i=n.Dom.findNotEmptySibling(t,!1);return!i||n.Dom.isBlock(i)||n.Dom.isTag(i,"br")||n.Dom.after(t,e.createInside.element("br")),n.Dom.unwrap(t),!0}let s=(0,r.getMoveFilter)(e);for(let e=i;e&&!n.Dom.isBlock(e);){let i=e.nextSibling;if(n.Dom.isTag(e,"br")){n.Dom.safeRemove(e);break}s(e)?n.Dom.append(t,e):n.Dom.safeRemove(e),e=i}return!0}(t,w,y,s)||u(t,w,l(function(e,t){if(!n.Dom.isTag(e,"table"))return e;let i=[];return n.Dom.each(e,e=>{n.Dom.isCell(e)&&i.push(e)}),i.length?i[t?i.length-1:0]:null}(y,s),s,t.editor),s)))return t.s.setCursorBefore(i),!0}return!1}(e,t,i,!1)}function a(e,t){if(!n.Dom.isElement(e)||n.Dom.isBlock(e))return!1;let i=e=>n.Dom.isBlock(e)&&!n.Dom.isTag(e,o.NO_EMPTY_TAGS);Array.from(e.childNodes).forEach(e=>a(e,t));let r=Array.from(e.childNodes);if(!r.some(i))return!1;let s=null;for(let l of r){if(!i(l)){s||n.Dom.isEmptyTextNode(l)||(s=e.cloneNode(!1),n.Dom.before(l,s)),s&&n.Dom.append(s,l);continue}if(s=null,n.Dom.isTag(l,o.INSEPARABLE_TAGS)||!n.Dom.isContentEditable(l,t))continue;let r=e.cloneNode(!1);n.Dom.moveContent(l,r),n.Dom.append(l,r),a(r,t)}return n.Dom.unwrap(e),!0}function l(e,t,i){let r=e;for(;r;){let e=t?r.lastChild:r.firstChild,s=e&&n.Dom.isEmptyTextNode(e)?n.Dom.findNotEmptySibling(e,t):e;if(!n.Dom.isBlock(s)||n.Dom.isTag(s,o.INSEPARABLE_TAGS)||n.Dom.isTag(s,"table")||!n.Dom.isContentEditable(s,i))break;r=s}return r}function c(e){let t=e.parentElement;for(;n.Dom.isList(t)||n.Dom.isLeaf(t);)t=t.parentElement;return t}function u(e,t,i,o){if(t&&n.Dom.isElement(i)){n.Dom.moveContent(t,i,!o,(0,r.getMoveFilter)(e));let s=t;for(;s&&s!==e.editor&&n.Dom.isEmpty(s);){let e=s.parentElement;n.Dom.safeRemove(s),s=e}return!0}return!1}},91748:function(e,t,i){i.d(t,{checkJoinTwoLists:function(){return s}});var o=i(2748),n=i(37790),r=i(63785);function s(e,t,i){let s=o.Dom.findSibling(t,i),a=o.Dom.findSibling(t,!i);if(!o.Dom.closest(t,o.Dom.isElement,e.editor)&&o.Dom.isList(s)&&o.Dom.isList(a)&&o.Dom.isTag(s.lastElementChild,"li")&&o.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=e.s,u=s.lastElementChild,d=a.firstElementChild;return(0,n.call)(i?o.Dom.prepend:o.Dom.append,d,t),o.Dom.moveContent(a,s,!i,(0,r.getMoveFilter)(e)),o.Dom.safeRemove(a),(0,n.call)(i?o.Dom.append:o.Dom.prepend,u,t),(0,n.call)(i?l:c,t),!0}return!1}},11338:function(e,t,i){i.d(t,{checkNotCollapsed:function(){return o}});function o(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}},73792:function(e,t,i){i.d(t,{checkRemoveChar:function(){return function e(t,i,s,c,u=!1){var d,h;let p,f=s?-1:1,m=n.Dom.sibling(i,!s),g=n.Dom.sibling(i,s),v=null,b=!1;for(g||(g=a(i,s,t.editor));g&&(n.Dom.isText(g)||n.Dom.isInlineBlock(g));){for(;n.Dom.isInlineBlock(g);)g=s?null==g?void 0:g.lastChild:null==g?void 0:g.firstChild;if(!g||n.Dom.isBlock(g))break;if(null==(d=g.nodeValue)?void 0:d.length){if(u&&l(function(e,t){let i=(0,r.toArray)(e),n=t?-1:1,s=t?i.length-1:0;for(;i[s]===o.INVISIBLE_SPACE;)s+=n;return i[s]}(g.nodeValue,s)))break;p=function(e,t,i,s){let a=(0,r.toArray)(e.nodeValue),l=a.length,c=t?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+=t?1:-1}return a=t&&c<0?[]:a.slice(t?0:c+1,t?c:l),function(e,t,i){var s;if(!e||!n.Dom.isText(e)||(!t?/ $/:/^ /).test(null!=(s=e.nodeValue)?s:"")||!(0,r.trimInv)(e.nodeValue||"").length)for(let e=t?i.length-1:0;t?e>=0:e<i.length;e+=t?-1:1)if(" "===i[e])i[e]=o.NBSP_SPACE;else break}(s,t,a),e.nodeValue=a.join(""),u}(g,s,f,m),!g.nodeValue.length&&n.Dom.isInlineBlock(g.parentNode)&&(g.nodeValue=o.INVISIBLE_SPACE)}if((null==(h=g.nodeValue)?void 0:h.length)||(v=g),!(0,r.isVoid)(p)&&p!==o.INVISIBLE_SPACE){(function(t,i,o,s,a,c){(0,r.call)(t?n.Dom.after:n.Dom.before,i,o);let u="word"===s&&!l(a);("sentence"===s||u||"word"===s&&t)&&e(c,o,t,s,u&&t)})(s,g,i,c,p,t),b=!0;break}let y=a(g,s,t.editor);v&&(n.Dom.safeRemove(v),v=null),g=y}return v&&n.Dom.safeRemove(v),b&&(function(e){let t=e.parentElement;for(;t&&n.Dom.isInlineBlock(t)&&n.Dom.isTag(t,"a");){let i=t.parentElement;n.Dom.isEmpty(t)&&(n.Dom.after(t,e),n.Dom.safeRemove(t)),t=i}}(i),i.parentElement!==t.editor&&n.Dom.isBlock(i.parentElement)&&n.Dom.each(i.parentElement,n.Dom.isEmptyTextNode)&&n.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),n.Dom.isTag(i.previousSibling,"br")&&!n.Dom.findNotEmptySibling(i,!1)&&n.Dom.after(i,t.createInside.element("br"))),b}}});var o=i(82758),n=i(22732),r=i(21537),s=i(63785);function a(e,t,i){let o=n.Dom.sibling(e,t);return!o&&e.parentNode&&e.parentNode!==i&&(o=(0,s.findMostNestedNeighbor)(e,!t,i,!0))&&n.Dom.closest(e,n.Dom.isBlock,i)!==n.Dom.closest(o,n.Dom.isBlock,i)?null:o}function l(e){return" "===e||e===o.NBSP_SPACE}},87536:function(e,t,i){i.d(t,{checkRemoveContentNotEditable:function(){return a}});var o=i(22732),n=i(21537),r=i(45124),s=i(62845);function a(e,t,i){let a=t,c=o.Dom.findSibling(a,i);for(;!c&&a.parentElement&&a.parentElement!==e.editor&&!o.Dom.isCell(a.parentElement);)if(a=a.parentElement,c=o.Dom.findSibling(a,i),i&&o.Dom.isLeaf(a)&&!(o.Dom.isLeaf(c)&&l(e,c)))return!1;if(l(e,c)){if(o.Dom.isBlock(c)){let n=!(i&&o.Dom.isLeaf(c));o.Dom.safeRemove(c),n&&(0,s.checkJoinNeighbors)(e,t,i)}else(0,n.call)(i?o.Dom.before:o.Dom.after,c,t),o.Dom.safeRemove(c),(0,r.moveNodeInsideStart)(e,t,i);return(0,n.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0}return!1}function l(e,t){return o.Dom.isElement(t)&&!o.Dom.isContentEditable(t,e.editor)}},12474:function(e,t,i){i.d(t,{checkRemoveEmptyNeighbor:function(){return n}});var o=i(2748);function n(e,t,i){let n=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!n)return!1;let r=o.Dom.findNotEmptySibling(n,i);return!!(r&&o.Dom.isEmpty(r))&&(o.Dom.safeRemove(r),e.s.setCursorBefore(t),!0)}},58940:function(e,t,i){i.d(t,{checkRemoveEmptyParent:function(){return s}});var o=i(82758),n=i(22732),r=i(91748);function s(e,t,i){let s=!1,{setCursorBefore:a,setCursorIn:l}=e.s,c=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!c||!n.Dom.isEmpty(c))return!1;let u=n.Dom.findNotEmptyNeighbor(t,i,e.editor);do if(c&&n.Dom.isEmpty(c)&&!n.Dom.isCell(c)){n.Dom.after(c,t);let i=n.Dom.closest(c,e=>n.Dom.isElement(e)&&e!==c,e.editor);n.Dom.safeRemove(c),s=!0,c=i}else break;while(c)return!!(s&&(0,r.checkJoinTwoLists)(e,t,i))||(!u||n.Dom.isText(u)||n.Dom.isTag(u,o.INSEPARABLE_TAGS)?a(t):l(u,!i),s)}},56825:function(e,t,i){i.d(t,{checkRemoveUnbreakableElement:function(){return s}});var o=i(82758),n=i(2748),r=i(58940);function s(e,t,i){let s=n.Dom.findSibling(t,i);return!!(n.Dom.isElement(s)&&(n.Dom.isTag(s,o.INSEPARABLE_TAGS)||n.Dom.isEmpty(s)))&&(n.Dom.safeRemove(s),n.Dom.isTag(s,"br")&&!n.Dom.findNotEmptySibling(t,!1)&&n.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),n.Dom.isTag(s,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},90240:function(e,t,i){i.d(t,{checkTableCell:function(){return n}});var o=i(2748);function n(e,t){let i=t.parentElement;return!!o.Dom.isCell(i)}},68034:function(e,t,i){i.d(t,{checkUnwrapFirstListItem:function(){return r}});var o=i(2748),n=i(43555);function r(e,t,i){var r;let s=o.Dom.closest(t,o.Dom.isElement,e.editor),{s:a}=e;if(o.Dom.isLeaf(s)&&(null==(r=null==s?void 0:s.parentElement)?void 0:r[i?"firstElementChild":"lastElementChild"])===s&&a.cursorInTheEdge(i,s)){let r=s.parentElement,l=e.createInside.element(e.o.enterBlock);return(0,n.call)(i?o.Dom.before:o.Dom.after,r,l),o.Dom.moveContent(s,l),o.Dom.safeRemove(s),o.Dom.isEmpty(r)&&o.Dom.safeRemove(r),(0,n.call)(i?a.setCursorBefore:a.setCursorAfter,t),!0}return!1}},70921:function(e,t,i){i.d(t,{checkUnwrapListItem:function(){return n}});var o=i(2748);function n(e,t,i){if(!i)return!1;let n=o.Dom.closest(t,"li",e.editor),r=n?n.parentElement:null;if(!n||!o.Dom.isList(r)||!n.previousElementSibling||o.Dom.isEmpty(n)||Array.from(n.childNodes).some(e=>o.Dom.isBlock(e))||!e.s.cursorInTheEdge(!0,n))return!1;let s=e.createInside.element(e.o.enterBlock);if(o.Dom.after(r,s),n.nextElementSibling){let e=r.cloneNode(!1);for(e.removeAttribute("id");n.nextSibling;)o.Dom.append(e,n.nextSibling);if(o.Dom.isTag(r,"ol")){let t=parseInt(r.getAttribute("start")||"1",10)||1;e.setAttribute("start",t+r.children.length-1+"")}o.Dom.after(s,e)}return o.Dom.moveContent(n,s),o.Dom.safeRemove(n),e.s.setCursorBefore(t),!0}},14630:function(e,t,i){var o=i(62845),n=i(91748),r=i(73792),s=i(87536),a=i(12474),l=i(58940),c=i(56825),u=i(90240),d=i(68034),h=i(70921);let p=[["remove-unbreakable",c.checkRemoveUnbreakableElement],["remove-not-editable",s.checkRemoveContentNotEditable],["remove-char",r.checkRemoveChar],["table-cell",u.checkTableCell],["remove-empty-parent",l.checkRemoveEmptyParent],["remove-empty-neighbor",a.checkRemoveEmptyNeighbor],["join-two-lists",n.checkJoinTwoLists],["unwrap-list-item",h.checkUnwrapListItem],["join-neighbors",o.checkJoinNeighbors],["unwrap-first-list-item",d.checkUnwrapFirstListItem]];p.map(([,e])=>e),i.d(t,["casesMap",0,p])},32496:function(e,t,i){var o=i(82758);i(6441).Config.prototype.delete={hotkeys:{delete:o.IS_MAC?["delete"]:["delete","cmd+backspace"],deleteWord:o.IS_MAC?["ctrl+delete"]:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:o.IS_MAC?[]:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(e,t,i){i.d(t,{findMostNestedNeighbor:function(){return n},getMoveFilter:function(){return r}});var o=i(22732);function n(e,t,i,r=!1){let s=e=>t?e.firstChild:e.lastChild,a=o.Dom.findNotEmptyNeighbor(e,!t,i);if(r&&o.Dom.isElement(a)&&!o.Dom.isInlineBlock(a))return null;if(a)do{if(!s(a))return a;a=s(a)}while(a)return null}function r(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}},41107:function(e,t,i){var o=i(580),n=i(21537),r=i(12153),s=i(6441);i(73674);var a=i(820),l=i(53651),c=i(16020),u=i(89758),d=i(98527),h=i(51855);o.pluginSystem.add("bold",function(e){let t=t=>{let i,o=s.Config.defaultOptions.controls[t],r={...o.css};return Object.keys(r).forEach(e=>{i||(i={}),i[e]=(0,n.isArray)(r[e])?r[e][0]:r[e]}),e.s.commitStyle({element:o.tags?o.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),r.Icon.set("bold",a.default).set("italic",l.default).set("strikethrough",c.default).set("subscript",u.default).set("superscript",d.default).set("underline",h.default)},73674:function(e,t,i){var o=i(6441);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"}},820:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.75" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 4h7a4 4 0 0 1 0 8H6V4Zm0 8h8a4 4 0 0 1 0 8H6v-8Z"/> </g> </svg> '},53651:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M10 4h9M5 20h9M15 4 9 20"/> </g> </svg> '},16020:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M17 6c-1-1.5-2.5-2-5-2-3 0-5 1.5-5 4 0 1.8 1.5 3 5 4s5 2.2 5 4c0 2.5-2 4-5 4-2.5 0-4-.5-5-2M3 12h18"/> </g> </svg> '},89758:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 4 9 12M12 4 3 16M16 16a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},98527:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 8 9 12M12 8 3 20M16 4a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},51855:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 3v8a6 6 0 0 0 12 0V3M4 21h16"/> </g> </svg> '},71255:function(e,t,i){var o=i(2748),n=i(580),r=i(37790),s=i(50911),a=i(12153),l=i(6441),c=i(31151);l.Config.prototype.controls.classSpan={command:"applyClassName",exec:r.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(e,t){let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor;return!!(t.control.args&&n.classList.contains(t.control.args[0].toString()))}return!1},isActive(e,t){let i=e.s.current();if(i){let n=o.Dom.closest(i,o.Dom.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{n.classList.contains(e)&&(r=!0)}),!!(n&&n!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class u extends s.Plugin{afterInit(e){e.registerCommand("applyClassName",(t,i,o)=>(e.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}n.pluginSystem.add("classSpan",u),a.Icon.set("class-span",c.default)},31151:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 4H5v16h3m8-16h3v16h-3M9 15l3-7 3 7m-5-2h4"/> </g> </svg> '},82439:function(e,t,i){var o=i(65478),n=i(2748),r=i(70071),s=i(580),a=i(86518),l=i(20356);i(46776);var c=i(80973),u=i(59498),d=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class h extends l.Plugin{afterInit(){this.onChangeCleanHTML()}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}onInputRemovePlaceholderBr(e){var t;this.isEditMode&&("input"!==e.type||!e.isComposing&&(null==(t=e.inputType)?void 0:t.startsWith("insert")))&&(0,u.removePlaceholderBr)(this.j)}startWalker(){let{jodit:e}=this,t=(0,u.getHash)(this.j.o.cleanHTML.allowTags),i=(0,u.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",o=>(0,u.visitNodeWalker)(e,o,t,i,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?(0,u.removeFormatForCollapsedSelection)(this.j):(0,u.removeFormatForSelection)(this.j),!1}onAfterSetNativeEditorValue(){(0,a.safeHTML)(this.j.editor,this.j.o.cleanHTML)}onBeforeSetNativeEditorValue(e){let[t,i]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return t.innerHTML=e.value,this.j.e.fire("safeHTML",t),this.__replaceOldTags(t),e.value=t.innerHTML,(0,a.safeHTML)(t,{safeJavaScriptLink:!0,removeOnError:!0}),n.Dom.safeRemove(i),!1}__replaceOldTags(e){let{replaceOldTags:t,disableCleanFilter:i}=this.j.o.cleanHTML;!t||(null==i?void 0:i.has("replaceOldTags"))||n.Dom.each(e,e=>{(0,c.replaceOldTags)(this.j,e,!1)})}onAfterGetValueFromEditor(e){if(this.__singleQuotesInFontFamily(e),this.__removeTrailingBr(e),!this.j.o.cleanHTML.collapseEmptyValueToEmptyString)return;let t=/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.exec(e.value.trim());t&&/^(p|div|h[1-6]|blockquote|pre)$/i.test(t[1])&&(e.value="")}__removeTrailingBr(e){if(!this.j.o.cleanHTML.removeTrailingBr||!/<br/i.test(e.value))return;let t=this.j.c.div();t.innerHTML=e.value,[t,...t.querySelectorAll("p, div, li, td, th, h1, h2, h3, h4, h5, h6, blockquote")].forEach(e=>{var t;let i=e.lastChild;if(!n.Dom.isTag(i,"br"))return;let o=i.previousSibling;!o||n.Dom.isTag(o,"br")||(!n.Dom.isText(o)||(null==(t=o.nodeValue)?void 0:t.trim())||o.previousSibling)&&n.Dom.safeRemove(i)}),e.value=t.innerHTML}__singleQuotesInFontFamily(e){this.j.o.cleanHTML.singleQuotesInFontFamily&&e.value.includes("&quot;")&&(e.value=e.value.replace(/\sstyle="([^"]*)"/gi,(e,t)=>{if(!t.includes("&quot;")||!/font-family/i.test(t))return e;let i=t.replace(/font-family\s*:(?:&quot;|[^;])*/gi,e=>e.includes("'")?e:e.replace(/&quot;/g,"'"));return e.replace(t,i)}))}onSafeHTML(e){let t=this.j.o.cleanHTML.sanitizer;t&&(e.innerHTML=t(e.innerHTML)),(0,a.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.j.e.off("safeHTML",this.onSafeHTML).off("beforeSetNativeEditorValue",this.onBeforeSetNativeEditorValue).off("afterSetNativeEditorValue",this.onAfterSetNativeEditorValue),this.walker.destruct()}constructor(e){super(e),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new r.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout}),e.e.on("safeHTML",this.onSafeHTML).on("beforeSetNativeEditorValue",this.onBeforeSetNativeEditorValue).on("afterSetNativeEditorValue",this.onAfterSetNativeEditorValue)}}d([(0,o.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),d([(0,o.watch)([":input","jodit.editor:compositionend"])],h.prototype,"onInputRemovePlaceholderBr",null),d([(0,o.hook)("ready")],h.prototype,"startWalker",null),d([(0,o.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),d([o.autobind],h.prototype,"onAfterSetNativeEditorValue",null),d([o.autobind],h.prototype,"onBeforeSetNativeEditorValue",null),d([(0,o.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),d([o.autobind],h.prototype,"onSafeHTML",null),s.pluginSystem.add("cleanHtml",h)},46776:function(e,t,i){var o=i(6441);o.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,singleQuotesInFontFamily:!0,removeTrailingBr:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},o.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"}},83447:function(e,t,i){i.d(t,{getHash:function(){return r}});var o=i(70799),n=i(49055);function r(e){let t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,o.isString)(e)?(e.split(i).map(e=>{e=(0,n.trim)(e);let o=t.exec(e),a={};if(o){let e=o[2].split(i);o[1]&&(e.forEach(e=>{e=(0,n.trim)(e);let t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),s[o[1].toUpperCase()]=a)}else s[e.toUpperCase()]=!0}),s):!!e&&(Object.keys(e).forEach(t=>{s[t.toUpperCase()]=e[t]}),s)}},59498:function(e,t,i){i.d(t,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return n.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return r.removeFormatForSelection},removePlaceholderBr:function(){return s.removePlaceholderBr},visitNodeWalker:function(){return a.visitNodeWalker}});var o=i(83447),n=i(84272),r=i(42312),s=i(56385),a=i(39516)},15908:function(e,t,i){i.d(t,{isAllowedMediaEmbed:function(){return r}});let o=/^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i,n=/^(https?:)?\/\/player\.vimeo\.com\/video\//i;function r(e){return o.test(e)||n.test(e)}},84272:function(e,t,i){i.d(t,{isInlineBlock:function(){return s},removeFormatForCollapsedSelection:function(){return r}});var o=i(82758),n=i(2748);function r(e,t){let{s:i}=e,o=t;if(!o){o=e.createInside.fake();let{range:t}=i;n.Dom.safeInsertNode(t,o),t.collapse()}let r=n.Dom.furthest(o,s,e.editor);if(r)if(i.cursorOnTheLeft(r))n.Dom.before(r,o);else if(i.cursorOnTheRight(r))n.Dom.after(r,o);else{let e=i.splitSelection(r);e&&n.Dom.after(e,o)}t||(i.setCursorBefore(o),n.Dom.safeRemove(o))}function s(e){return n.Dom.isInlineBlock(e)&&!n.Dom.isTag(e,o.INSEPARABLE_TAGS)}},42312:function(e,t,i){i.d(t,{removeFormatForSelection:function(){return s}});var o=i(2748),n=i(43555),r=i(84272);function s(e){let{s:t,editor:i,createInside:s}=e,{range:a}=t,l=a.cloneRange(),c=a.cloneRange(),u=s.fake(),d=s.fake();l.collapse(!0),c.collapse(!1),o.Dom.safeInsertNode(l,u),o.Dom.safeInsertNode(c,d),a.setStartBefore(u),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,u),a.setEndAfter(d),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d);let h=[];o.Dom.between(u,d,e=>{(0,r.isInlineBlock)(e)&&!o.Dom.isTag(e,"a")&&h.push(e),o.Dom.isElement(e)&&(0,n.attr)(e,"style")&&(0,n.attr)(e,"style",null)}),h.forEach(e=>o.Dom.unwrap(e));let p=(e,t)=>{if(!o.Dom.findNotEmptySibling(e,t)){let o=e.parentNode;if(o&&o!==i&&(0,n.attr)(o,"style"))return(0,n.attr)(o,"style",null),p(o,t),!0}};p(u,!0)&&p(d,!1),a.setStartAfter(u),a.setEndBefore(d),t.selectRange(a),o.Dom.safeRemove(u),o.Dom.safeRemove(d)}},56385:function(e,t,i){i.d(t,{removePlaceholderBr:function(){return a}});var o=i(82758),n=i(2748),r=i(49055);function s(e){let t=e.lastChild;for(;n.Dom.isText(t)&&!t.nodeValue;)t=t.previousSibling;return t}function a(e){var t;let i=n.Dom.closest(e.s.current(),n.Dom.isBlock,e.editor);if(!i||!(0,r.trim)(null!=(t=i.textContent)?t:""))return;let a=s(i);for(;n.Dom.isElement(a)&&!n.Dom.isTag(a,o.INSEPARABLE_TAGS)&&!n.Dom.isBlock(a);)a=s(a);!n.Dom.isTag(a,"br")||n.Dom.each(i,e=>{if(e!==a&&n.Dom.isElement(e)&&(n.Dom.isTag(e,o.INSEPARABLE_TAGS)||n.Dom.isBlock(e)||n.Dom.isHTMLElement(e)&&!e.isContentEditable))return!1})&&n.Dom.safeRemove(a)}},82558:function(e,t,i){i.d(t,{allowAttributes:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i,r){let s=r&&o.Dom.isElement(t)&&r[t.nodeName];if(r&&o.Dom.isElement(t)&&!0!==s){if(!s)return i;let e=t.attributes;if(e&&e.length){let o=[];for(let t=0;t<e.length;t+=1){let i=s[e[t].name];i&&(!0===i||i===e[t].value)||o.push(e[t].name)}o.length&&(i=!0),o.forEach(e=>{(0,n.attrRaw)(t,e,null)})}}return i}},1962:function(e,t,i){i.d(t,{convertUnsafeEmbeds:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=e.o.cleanHTML.convertUnsafeEmbeds;if(!r||!o.Dom.isElement(t))return i;let s=t.nodeName.toLowerCase();if(!r.includes(s))return i;let a=(0,n.attr)(t,"data")||(0,n.attr)(t,"src")||(0,n.attr)(t,"movie")||"";if(!a)return o.Dom.safeRemove(t),!0;let l=e.createInside.element("iframe");return(0,n.attr)(l,{src:a,sandbox:"",frameborder:"0",width:(0,n.attr)(t,"width"),height:(0,n.attr)(t,"height")}),o.Dom.replace(t,l,void 0,!1,!0),!0}},39433:function(e,t,i){i.d(t,{fillEmptyParagraph:function(){return s}});var o=i(82758),n=i(2748);let r=new Set(["table","tbody","thead","tfoot","tr"]);function s(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&n.Dom.isBlock(t)&&n.Dom.isEmpty(t,o.INSEPARABLE_TAGS)&&!n.Dom.isTag(t,r)){let i=e.createInside.element("br");return n.Dom.append(t,i),!0}return i}},45235:function(e,t,i){i.r(t),i.d(t,{allowAttributes:function(){return o.allowAttributes},convertUnsafeEmbeds:function(){return n.convertUnsafeEmbeds},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},safeLinksTarget:function(){return c.safeLinksTarget},sandboxIframesInContent:function(){return u.sandboxIframesInContent},sanitizeAttributes:function(){return d.sanitizeAttributes},sanitizeStyles:function(){return h.sanitizeStyles},tryRemoveNode:function(){return p.tryRemoveNode}});var o=i(82558),n=i(1962),r=i(39433),s=i(53392),a=i(25813),l=i(80973),c=i(95614),u=i(85978),d=i(384),h=i(15583),p=i(28800)},53392:function(e,t,i){i.d(t,{removeEmptyTextNode:function(){return n}});var o=i(2748);function n(e,t,i,n,r,s){return o.Dom.isText(t)&&!t.nodeValue?(t===s&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),o.Dom.safeRemove(t),!0):i}},25813:function(e,t,i){i.d(t,{removeInvTextNodes:function(){return r}});var o=i(82758),n=i(2748);function r(e,t,i,r,s,a){if(a===t||!n.Dom.isText(t)||null==t.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue))return i;let l=n.Dom.furthest(a,n.Dom.isBlock,e.editor);return!l||n.Dom.isOrContains(l,t)?i:(t.nodeValue=t.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),t===a&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||n.Dom.safeRemove(t),!0)}},80973:function(e,t,i){i.d(t,{replaceOldTags:function(){return n}});var o=i(2748);function n(e,t,i){let n=function(e,t,i){if(!i||!o.Dom.isHTMLElement(t))return t;let n=i[t.nodeName.toLowerCase()]||i[t.nodeName];if(n){let i=function(e,t){let{sel:i}=e.s;if(!(null==i?void 0:i.anchorNode)||!i.focusNode||!e.s.isFocused())return null;let{anchorNode:n,anchorOffset:r,focusNode:s,focusOffset:a}=i;return o.Dom.isOrContains(t,n)||o.Dom.isOrContains(t,s)?e=>{i.setBaseAndExtent(n===t?e:n,r,s===t?e:s,a)}:null}(e,t),r=o.Dom.replace(t,n,e.createInside,!0,!1);return null==i||i(r),r}return t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==n||i}},95614:function(e,t,i){i.d(t,{safeLinksTarget:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){if(!e.o.cleanHTML.safeLinksTarget||!o.Dom.isElement(t)||"A"!==t.nodeName||"_blank"!==(0,n.attr)(t,"target"))return i;let r=((0,n.attr)(t,"rel")||"").split(/\s+/).filter(Boolean),s=!1;return(r.includes("noopener")||(r.push("noopener"),s=!0),r.includes("noreferrer")||(r.push("noreferrer"),s=!0),s)?((0,n.attr)(t,"rel",r.join(" ")),!0):i}},85978:function(e,t,i){i.d(t,{sandboxIframesInContent:function(){return s}});var o=i(2748),n=i(29960),r=i(15908);function s(e,t,i){return e.o.cleanHTML.sandboxIframesInContent&&o.Dom.isElement(t)&&"IFRAME"===t.nodeName?(0,r.isAllowedMediaEmbed)((0,n.attr)(t,"src")||"")||t.hasAttribute("sandbox")?i:((0,n.attr)(t,"sandbox",""),!0):i}},384:function(e,t,i){i.d(t,{sanitizeAttributes:function(){return r}});var o=i(2748),n=i(21537);function r(e,t,i){if(!o.Dom.isElement(t))return i;let r=e.options.cleanHTML;return!!(0,n.sanitizeHTMLElement)(t,{safeJavaScriptLink:r.safeJavaScriptLink,removeOnError:r.removeOnError,removeEventAttributes:r.removeEventAttributes,safeLinksTarget:r.safeLinksTarget})||i}},15583:function(e,t,i){i.d(t,{sanitizeStyles:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=e.o.cleanHTML.allowedStyles;if(!r||!o.Dom.isElement(t))return i;let s=(0,n.attr)(t,"style");if(!s)return i;let a=function(e,t){let i=t[e],o=t["*"];if(!i&&!o)return null;let n=new Set;if(o)for(let e of o)n.add(e.toLowerCase());if(i)for(let e of i)n.add(e.toLowerCase());return n}(t.nodeName.toLowerCase(),r);if(!a)return i;let l=s.split(";").map(e=>e.trim()).filter(e=>{if(!e)return!1;let t=e.indexOf(":");if(-1===t)return!1;let i=e.substring(0,t).trim().toLowerCase();return a.has(i)}).join("; ").replace(/;\s*$/,"");return l!==s?((0,n.attr)(t,"style",l||null),!0):i}},28800:function(e,t,i){i.d(t,{tryRemoveNode:function(){return l}});var o=i(82758),n=i(2748),r=i(49055),s=i(29960),a=i(15908);function l(e,t,i,l,c,u){return!function(e,t,i,l,c){if(!n.Dom.isText(t)){let e=t.nodeName.toUpperCase();if(l&&!l[e])return!0;let i="IFRAME"===e&&(0,a.isAllowedMediaEmbed)((0,s.attr)(t,"src")||"");if(!l&&c&&c[e]&&!i)return!0}if(!e.o.cleanHTML.removeEmptyElements)return!1;let u=e.s.isCollapsed()?e.s.range.startContainer:null;return n.Dom.isElement(t)&&null!=t.nodeName.match(o.IS_INLINE)&&!n.Dom.isTemporary(t)&&!(t.hasAttribute("id")||"A"===t.nodeName&&t.hasAttribute("name"))&&0===(0,r.trimInv)(t.innerHTML).length&&(null==i||!n.Dom.isOrContains(t,i))&&(null==u||!n.Dom.isOrContains(t,u))}(e,t,u,l,c)?i:(n.Dom.safeRemove(t),!0)}},39516:function(e,t,i){i.d(t,{visitNodeWalker:function(){return s}});var o=i(82758),n=i(45235);let r=Object.keys(n);function s(e,t,i,s,a){let l=!1,c=e.o.cleanHTML.disableCleanFilter;for(let u of r)if(!(c&&c.has(u))&&(l=(0,n[u])(e,t,l,i,s,a),o.IS_PROD,!t.isConnected))return!0;return l}},61323:function(e,t,i){var o=i(82758),n=i(33433),r=i(2748),s=i(580),a=i(21537);i(79419);class l{init(e){var t;null==(t=this.buttons)||t.forEach(t=>e.registerButton(t)),e.e.off(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`).on(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`,t=>{var i;let n=function(e,t){if(!t||e.s.isCollapsed())return t;let i=e.s.range.commonAncestorContainer;r.Dom.isElement(i)||(i=i.parentElement);let o=t;for(;i&&i!==e.editor&&r.Dom.isElement(i)&&!r.Dom.isBlock(i);){let e=i.cloneNode(!1);e.innerHTML=o,o=e.outerHTML,i=i.parentElement}return o}(e,e.s.html),s=(0,a.getDataTransfer)(t)||(0,a.getDataTransfer)(e.ew)||(0,a.getDataTransfer)(t.originalEvent);s&&(s.setData(o.TEXT_PLAIN,(0,a.stripTags)(n)),s.setData(o.TEXT_HTML,n)),e.buffer.set(o.CLIPBOARD_ID,n),e.e.fire("pasteStack",{html:n,action:e.o.defaultActionOnPaste||o.INSERT_AS_HTML}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null==(i=null==e?void 0:e.events)||i.fire("afterCopy",n)})}destruct(e){var t,i;null==(t=(0,n.cached)(e,"buffer"))||t.set(o.CLIPBOARD_ID,""),null==(i=null==e?void 0:e.events)||i.off("."+o.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}s.pluginSystem.add("clipboard",l)},79419:function(e,t,i){var o=i(12153),n=i(6441),r=i(94775),s=i(23140),a=i(92699),l=i(10052);n.Config.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},n.Config.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},n.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",r.default).set("cut",s.default).set("paste",a.default).set("select-all",l.default)},94775:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="8" y="8" width="13" height="13" rx="2"/><path d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"/> </g> </svg> '},23140:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <circle cx="6" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="m8.2 8.2 12.3 12.3M8.2 15.8 20.5 3.5"/> </g> </svg> '},92699:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="5" width="16" height="16" rx="2"/><rect x="9" y="3" width="6" height="4" rx="1"/> </g> </svg> '},10052:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 6V3h3m4 0h4m4 0h3v3m0 4v4m0 4v3h-3m-4 0h-4m-4 0H3v-3m0-4v-4"/><rect x="7" y="7" width="10" height="10" rx="1"/> </g> </svg> '},46104:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3c-2 3.2-5.5 7-5.5 10a5.5 5.5 0 0 0 11 0c0-3-3.5-6.8-5.5-10Z"/> </g> <rect x="5" y="21" width="14" height="2" rx="1" fill="inherit" stroke="none"/> </svg> '},93079:function(e,t,i){var o=i(580),n=i(21537);i(21988),o.pluginSystem.add("color",function(e){e.registerButton({name:"brush",group:"color"});let t=(t,i,o)=>{var r;let s=(0,n.normalizeColor)(o)||"",a="background"===t?{backgroundColor:s}:{color:s},l=e.getInstance("Table",e.o).getAllSelectedCells();return l.length&&e.s.isCollapsed()?(l.forEach(t=>{e.s.select(t,!0),e.s.commitStyle({attributes:{style:a}})}),null==(r=e.s.sel)||r.removeAllRanges()):e.s.commitStyle({attributes:{style:a}}),e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)})},21988:function(e,t,i){var o=i(2748),n=i(21537),r=i(12153),s=i(6441),a=i(92762),l=i(46104);function c(e,t,i){(0,n.css)(e,t,i),(0,n.attr)(e,"style")||(0,n.attr)(e,"style",null)}r.Icon.set("brush",l.default),s.Config.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup(e,t,i){if(!(0,n.isJoditObject)(e))return;let o=e.getInstance("Table",e.o).getAllSelectedCells();if(!o.length)return!1;let r=t=>(0,a.ColorPickerWidget)(e,n=>{o.forEach(e=>{c(e,t,n)}),e.lock(),e.synchronizeValues(),i(),e.unlock()},(0,n.css)(o[0],t));return(0,a.TabsWidget)(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])},tooltip:"Background"},s.Config.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){let i=(0,n.dataBind)(t,"color"),r=(i,o)=>!!o&&o!==(0,n.css)(e.editor,i).toString()&&(t.state.icon.fill=o,!0);if(i){let e=(0,n.dataBind)(t,"color");r("color"===e?e:"background-color",i);return}let s=e.s.current();if(s&&!t.state.disabled){let t=o.Dom.closest(s,o.Dom.isElement,e.editor)||e.editor,i=r("color",(0,n.css)(t,"color").toString()),a=r("background-color",(0,n.css)(t,"background-color").toString());if(i||a)return}t.state.icon.fill="",t.state.activated=!1},popup(e,t,i,r){let s="",l="",u,d=null;return t&&t!==e.editor&&o.Dom.isNode(t)&&(o.Dom.isElement(t)&&e.s.isCollapsed()&&!o.Dom.isTag(t,new Set(["br","hr"]))&&(d=t),o.Dom.up(t,e=>{if(o.Dom.isHTMLElement(e)){let t=(0,n.css)(e,"color",!0),i=(0,n.css)(e,"background-color",!0);if(t)return s=t.toString(),!0;if(i)return l=i.toString(),!0}},e.editor)),u=[{name:"Background",content:(0,a.ColorPickerWidget)(e,t=>{d?c(d,"backgroundColor",t):e.execCommand("background",!1,t),(0,n.dataBind)(r,"color",t),(0,n.dataBind)(r,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(e,t=>{d?c(d,"color",t):e.execCommand("forecolor",!1,t),(0,n.dataBind)(r,"color",t),(0,n.dataBind)(r,"color-mode","color"),i()},s)}],"background"!==e.o.colorPickerDefaultTab&&(u=u.reverse()),(0,a.TabsWidget)(e,u,d)},exec(e,t,{button:i}){let r=(0,n.dataBind)(i,"color-mode"),s=(0,n.dataBind)(i,"color");if(!r)return!1;if(t&&t!==e.editor&&o.Dom.isNode(t)&&o.Dom.isElement(t))switch(r){case"color":c(t,"color",s);break;case"background":c(t,"backgroundColor",s)}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},19063:function(e,t,i){var o=i(2748),n=i(580),r=i(41180),s=i(12153),a=i(6441),l=i(57487),c=i(23914);let u="copy-format",d=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],h=(e,t,i,o)=>{let n=(0,r.css)(i,t);return n===o[t]&&(n=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?h(e,t,i.parentNode,o):void 0),n};a.Config.prototype.controls.copyformat={exec(e,t,{button:i}){if(t){if(e.buffer.exists(u))e.buffer.delete(u),e.e.off(e.editor,"mouseup."+u);else{let i,n={},s=o.Dom.up(t,e=>e&&!o.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();o.Dom.append(e.editor,a),d.forEach(e=>{n[e]=(0,r.css)(a,e)}),a!==e.editor&&o.Dom.safeRemove(a);let l=(i={},s&&d.forEach(t=>{i[t]=h(e,t,s,n),t.match(/border(Style|Color)/)&&!i.borderWidth&&(i[t]=void 0)}),i);e.e.on(e.editor,"mouseup."+u,()=>{e.buffer.delete(u);let t=e.s.current();t&&(o.Dom.isTag(t,"img")?(0,r.css)(t,l):e.s.commitStyle({attributes:{style:l}})),e.e.off(e.editor,"mouseup."+u)}),e.buffer.set(u,!0)}i.update()}},isActive:e=>e.buffer.exists(u),tooltip:"Paint format"},n.pluginSystem.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),(0,n.extendLang)(c)}),s.Icon.set("copyformat",l.default)},57487:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="14" height="6" rx="1"/><path d="M17 6h4v7H11v3"/><rect x="9" y="16" width="4" height="6" rx="1"/> </g> </svg> '},63819:function(e){e.exports={"copy-format":"نسخ التنسيق"}},72392:function(e){e.exports={"copy-format":"Kopírovat formát"}},74551:function(e){e.exports={"copy-format":"Format kopierenт"}},2536:function(e){e.exports={"copy-format":"Copiar formato"}},52285:function(e){e.exports={"copy-format":"کپی کردن قالب"}},12117:function(e){e.exports={"copy-format":"Kopioi muotoilu"}},35140:function(e){e.exports={"copy-format":"Format de copie"}},28435:function(e){e.exports={"copy-format":"העתק עיצוב"}},98019:function(e){e.exports={"copy-format":"Formátum másolás"}},96457:function(e){e.exports={"copy-format":"salin format"}},23914:function(e,t,i){i.r(t),i.d(t,{ar:function(){return o},cs_cz:function(){return n},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return c},he:function(){return u},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return f},ko:function(){return m},mn:function(){return g},nl:function(){return v},pl:function(){return b},pt_br:function(){return y},ru:function(){return w},tr:function(){return _},zh_cn:function(){return S},zh_tw:function(){return k}});var o=i(63819),n=i(72392),r=i(74551),s=i(2536),a=i(52285),l=i(12117),c=i(35140),u=i(28435),d=i(98019),h=i(96457),p=i(33561),f=i(96545),m=i(52230),g=i(33307),v=i(71042),b=i(32172),y=i(39179),w=i(60629),_=i(68278),S=i(1172),k=i(4164)},33561:function(e){e.exports={"copy-format":"Copia il formato"}},96545:function(e){e.exports={"copy-format":"copyformat"}},52230:function(e){e.exports={"copy-format":"복사 형식"}},33307:function(e){e.exports={"copy-format":"Формат хуулах"}},71042:function(e){e.exports={"copy-format":"opmaak kopiëren"}},32172:function(e){e.exports={"copy-format":"format kopii"}},39179:function(e){e.exports={"copy-format":"Copiar formato"}},60629:function(e){e.exports={"copy-format":"Копировать формат"}},68278:function(e){e.exports={"copy-format":"Kopyalama Biçimi"}},1172:function(e){e.exports={"copy-format":"复制格式"}},4164:function(e){e.exports={"copy-format":"複製格式"}},66707:function(e,t,i){var o=i(22732),n=i(580),r=i(21537),s=i(49055),a=i(50911);let l=new Set(["img","table","jodit","iframe","hr"]);class c extends a.Plugin{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){let e=this.j,t=e.s.current();if(t&&o.Dom.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(0,s.trim)(e.editor.textContent||"")&&!o.Dom.first(e.editor,e=>o.Dom.isTag(e,l))&&(!t||!o.Dom.closest(t,"table",e.editor))){o.Dom.detach(e.editor);let t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){let{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();let t=e.s.range,i=this.__clearSelectedCells(t);if(i&&t.collapsed)return e.s.selectRange(i),!1;t.deleteContents();let n=e.createInside.fake();t.insertNode(n);let r=o.Dom.findSibling(n,!0),s=o.Dom.findSibling(n,!1);return this.__moveContentInLeftSibling(n,r,s),t.setStartBefore(n),t.collapse(!0),this.__moveCursorInEditableSibling(e,r,n,t),this.__addBrInEmptyBlock(n,t),o.Dom.safeRemove(n),e.s.selectRange(null!=i?i:t),!1}__clearSelectedCells(e){let{editor:t,createInside:i}=this.j,n=o.Dom.closest(e.startContainer,o.Dom.isCell,t),s=o.Dom.closest(e.endContainer,o.Dom.isCell,t);if(n===s)return null;let a=o.Dom.closest(n,"table",t),l=o.Dom.closest(s,"table",t),c=e.cloneRange();c.collapse(!0);let u=[],d=t=>{(0,r.toArray)(t.rows).flatMap(e=>(0,r.toArray)(e.cells)).filter(t=>e.intersectsNode(t)).forEach(t=>{let i=e.cloneRange();o.Dom.isOrContains(t,e.startContainer)||i.setStart(t,0),o.Dom.isOrContains(t,e.endContainer)||i.setEnd(t,t.childNodes.length),u.push([t,i])})};return a&&(d(a),a===l?e.collapse(!0):e.setStartAfter(a)),l&&l!==a&&(d(l),e.setEndBefore(l)),u.forEach(([e,t])=>{t.deleteContents(),o.Dom.isEmpty(e)&&(o.Dom.detach(e),o.Dom.append(e,i.element("br")))}),a?c:null}__moveContentInLeftSibling(e,t,i){if(t=this.__defineRightLeftBox(t),o.Dom.isTag(t,"table")){o.Dom.isBlock(i)&&o.Dom.isEmpty(i)&&o.Dom.safeRemove(i);return}if(!o.Dom.isList(i)&&!o.Dom.isTag(i,"table")&&o.Dom.isBlock(i)&&o.Dom.isBlock(t)&&(o.Dom.append(t,e),o.Dom.moveContent(i,t),o.Dom.safeRemove(i)),o.Dom.isList(i)&&o.Dom.isLeaf(i.firstElementChild)){let n=i.firstElementChild;if(!o.Dom.isEmpty(n)&&o.Dom.isBlock(t))for(o.Dom.append(t,e);n.firstChild&&!o.Dom.isBlock(n.firstChild);)o.Dom.append(t,n.firstChild);o.Dom.isEmpty(n)&&o.Dom.safeRemove(n),o.Dom.isEmpty(i)&&o.Dom.safeRemove(i)}}__defineRightLeftBox(e){if(!o.Dom.isList(e))return e;let t=e.lastElementChild;return o.Dom.isLeaf(t)||(t=this.j.createInside.element("li"),o.Dom.append(e,t)),t}__addBrInEmptyBlock(e,t){let i=this.j;if(e.isConnected&&o.Dom.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){let n=i.createInside.element("br");o.Dom.after(e,n),t.setStartBefore(n),t.collapse(!0)}}__moveCursorInEditableSibling(e,t,i,n){var r;if(!t||!o.Dom.isText(t)){let t=null!=(r=o.Dom.closest(i,o.Dom.isBlock,e.editor))?r:e.editor,s=o.Dom.prev(i,o.Dom.isText,t);s&&(n.setStartAfter(s),n.collapse(!0),o.Dom.safeRemove(i))}}}c.requires=["backspace"],n.pluginSystem.add("deleteCommand",c)},44586:function(e,t,i){i(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(e,t,i){var o,n,r=i(65478),s=i(22732),a=i(580),l=i(21537),c=i(50911);i(44586);var u=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};(o=n||(n={}))[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING";class d extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,l.splitArray)(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(e,t){this.isInDestruct||this.state>n.IDLE||!e||this.startDragging(e,t)}onDragStart(e){if("dragstart"===e.type&&this.draggable)return!1;if(this.state>n.IDLE)return;let t=e.target;if(!this.dragList.length||!t)return;let i=e=>!!(e&&this.dragList.includes(e.nodeName.toLowerCase())),o=s.Dom.furthest(t,i,this.j.editor)||(i(t)?t:null);o&&(s.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startDragging(o,e))}startDragging(e,t){this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,l.ctrlKey)(t),this.draggable=e.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",e),this.state=n.WAIT_DRAGGING,this.addDragListeners()}onDrag(e){var t,i;if(!this.draggable||this.state===n.IDLE)return;let o=e.clientX,r=e.clientY;if(this.state===n.WAIT_DRAGGING&&Math.sqrt(Math.pow(o-this.startX,2)+Math.pow(r-this.startY,2))<this.diffStep)return;this.state===n.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=n.DRAGGING),this.j.e.fire("hidePopup hideResizer");let c=this.__ghostOffset();if(!this.draggable.parentNode){let o=(0,l.dataBind)(this.draggable,"target");(0,l.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX+c.left,top:e.clientY+c.top,width:null!=(t=null==o?void 0:o.offsetWidth)?t:100,height:null!=(i=null==o?void 0:o.offsetHeight)?i:100}),s.Dom.append((0,a.getContainer)(this.j,d),this.draggable)}(0,l.css)(this.draggable,{left:e.clientX+c.left,top:e.clientY+c.top}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}__ghostOffset(){let e=this.j.iframe;if(!e)return{left:0,top:0};let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=n.IDLE,this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<n.DRAGGING)return void this.onDragEnd();let e=(0,l.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));let{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),[e.previousSibling,e.nextSibling].forEach(e=>{s.Dom.isEmptyTextNode(e)&&s.Dom.safeRemove(e)}),t&&s.Dom.isEmpty(t)&&!s.Dom.isCell(t)&&s.Dom.safeRemove(t),s.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),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).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=n.IDLE}}u([r.autobind],d.prototype,"onStartDragElement",null),u([r.autobind],d.prototype,"onDragStart",null),u([(0,r.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([r.autobind],d.prototype,"onDragEnd",null),u([r.autobind],d.prototype,"onDrop",null),a.pluginSystem.add("dragAndDropElement",d)},19271:function(e,t,i){var o=i(82758),n=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(8172),u=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class d extends l.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart).on("drop.DragAndDrop",this.onDrop)}onDragStart(e){var t;let i=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=r.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,a.ctrlKey)(e),this.isFragmentFromEditor){let e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,t=i,r.Dom.isElement(t)&&t.classList.contains(c.FileBrowserFiles.prototype.getFullElName("item"))&&(i=r.Dom.first(i,e=>r.Dom.isTag(e,"img"))),r.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,a.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(r.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;let t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),o=this.__getWorkFragment(i,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),o&&this.__insertFragment.call(this,o,i),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let i=null;if(!this.draggable&&e)i=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){let[e,t]="1"===(0,a.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(e),(0,a.attr)(i,t,(0,a.attr)(this.draggable,"data-src")||(0,a.attr)(this.draggable,"src")||""),"a"===e&&(i.textContent=(0,a.attr)(i,t)||"")}else i=(0,a.dataBind)(this.draggable,"target");else if(this.getText(t)){let e=this.j.createInside.div();e.innerHTML=this.getText(t),this.j.e.fire("safeHTML",e),i=e.firstChild===e.lastChild&&e.firstChild?e.firstChild:e}return i}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),r.Dom.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=e=>{let t=(0,a.getDataTransfer)(e);return t?t.getData(o.TEXT_HTML)||t.getData(o.TEXT_PLAIN):null}}}u([n.autobind],d.prototype,"onDragStart",null),u([(0,n.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([n.autobind],d.prototype,"onDragEnd",null),u([n.autobind],d.prototype,"onDrop",null),s.pluginSystem.add("dragAndDrop",d)},46124:function(e,t,i){i.r(t),i.d(t,{removeExtraBr:function(){return o.removeExtraBr}});var o=i(94870)},94870:function(e,t,i){i.d(t,{removeExtraBr:function(){return r}});var o=i(2748);let n=new Set(["table","pre","blockquote","code"]);function r(e,t){if(!e.o.dtd.removeExtraBr||o.Dom.isTag(t,"br"))return;let i=o.Dom.furthest(t,o.Dom.isBlock,e.editor);if(i&&!o.Dom.isTag(i,n)){let i=o.Dom.isTag(t,"br")?t:o.Dom.findNotEmptySibling(t,!1);if(!o.Dom.isTag(i,"br")||o.Dom.findNotEmptySibling(i,!1))return;o.Dom.isOrContains(t,e.s.range.startContainer)||e.s.setCursorBefore(i),o.Dom.safeRemove(i)}}},78720:function(e,t,i){i.d(t,{checkBlockNesting:function(){return n}});var o=i(2748);function n(e,t){var i,n;if(o.Dom.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&o.Dom.isBlock(t)){let r=null,s=null!=(n=null==(i=e.s.current())?void 0:i.parentElement)?n:null;for(;s&&s!==e.editor;){if(o.Dom.isBlock(s)){let t=!r&&o.Dom.isTag(s,e.o.enter)&&o.Dom.isEmpty(s);if(e.o.dtd.blockLimits[s.nodeName.toLowerCase()]&&!t)break;r=s}s=s.parentElement}o.Dom.isLeaf(s)&&o.Dom.isList(t)&&o.Dom.isFragment(t.parentNode)&&!o.Dom.findNotEmptySibling(t,!1)&&(o.Dom.unwrap(t),r=s),r&&function(e,t){var i;let{s:n}=e;if(o.Dom.isEmpty(t)){n.setCursorAfter(t),o.Dom.safeRemove(t);return}n.cursorOnTheRight(t)?n.setCursorAfter(t):n.cursorOnTheLeft(t)?n.setCursorBefore(t):n.setCursorAfter(null!=(i=n.splitSelection(t))?i:t)}(e,r)}}},43267:function(e,t,i){i.r(t),i.d(t,{checkBlockNesting:function(){return o.checkBlockNesting}});var o=i(78720)},9045:function(e,t,i){i(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,dd:1,details:1,dir:1,div:1,dl:1,dt:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,li:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(e,t,i){var o=i(37133),n=i(580),r=i(50911);i(9045);var s=i(46124),a=i(43267),l=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends r.Plugin{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(a).forEach(t=>{a[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(s).forEach(t=>{s[t](this.j,e)})}}l([(0,o.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),l([(0,o.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),n.pluginSystem.add("dtd",c)},575:function(e,t,i){var o=i(82758),n=i(65478),r=i(2748),s=i(580),a=i(87612),l=i(20356),c=i(35399);class u extends l.Plugin{afterInit(e){let t=e.o.enter.toLowerCase(),i=t===o.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?o.PARAGRAPH:t),e.registerCommand("enter",(e,t,i={})=>this.onEnter(i))}onEnterKeyDown(e){if(e.key===o.KEY_ENTER){let t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.history.snapshot.transaction(()=>{t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e)}),t.synchronizeValues(),!1)}}onEnter(e){let{jodit:t}=this,i=t.createInside.fake();try{r.Dom.safeInsertNode(t.s.range,i),(0,c.moveCursorOutFromSpecialTags)(t,i,["a"]);let o=(0,c.getBlockWrapper)(i,t),n=r.Dom.isLeaf(o);if((!n||(null==e?void 0:e.shiftKey))&&(0,c.checkBR)(i,t,null==e?void 0:e.shiftKey,o))return!1;if(o||(0,c.hasPreviousBlock)(i,t)||(o=(0,c.wrapText)(i,t)),!o)return(0,c.insertParagraph)(i,t,n?"li":t.o.enter),!1;if(!(0,c.checkUnsplittableBox)(i,t,o))return!1;if(n&&this.__isEmptyListLeaf(o))return(0,c.processEmptyLILeaf)(i,t,o),!1;(0,c.splitFragment)(i,t,o)}finally{i.isConnected&&t.s.setCursorBefore(i),r.Dom.safeRemove(i)}}__isEmptyListLeaf(e){let t=this.j.e.fire("enterIsEmptyListLeaf",e);return(0,a.isBoolean)(t)?t:r.Dom.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}!function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,n.watch)(":keydown.enter")],u.prototype,"onEnterKeyDown",null),s.pluginSystem.add("enter",u)},41872:function(e,t,i){i.d(t,{checkBR:function(){return s}});var o=i(82758),n=i(2748),r=i(26395);function s(e,t,i,s){let l=!!n.Dom.closest(e,"pre",t.editor)||(s?n.Dom.isTag(s,"blockquote"):!!n.Dom.closest(e,"blockquote",t.editor)),c=!l&&(s?n.Dom.isCell(s):!!n.Dom.closest(e,["td","th"],t.editor));if(t.o.enter.toLowerCase()===o.BR.toLowerCase()||c||i&&!l||!i&&l){var u;let i;if(l&&(i=a(a(u=e)))&&(n.Dom.safeRemove(a(u)),n.Dom.safeRemove(i),1))return!1;let o=t.createInside.element("br");if(n.Dom.before(e,o),!n.Dom.findNotEmptySibling(o,!1)){let t=o.cloneNode();n.Dom.after(o,t),n.Dom.before(t,e)}return(0,r.scrollIntoViewIfNeeded)(o,t.editor,t.ed),!0}return!1}function a(e){if(!e)return!1;let t=n.Dom.findSibling(e,!0);return!!t&&!!n.Dom.isTag(t,"br")&&t}},61991:function(e,t,i){i.d(t,{checkUnsplittableBox:function(){return n}});var o=i(2748);function n(e,t,i){return!!o.Dom.canSplitBlock(i)||(o.Dom.before(e,t.createInside.element("br")),!1)}},54041:function(e,t,i){i.d(t,{getBlockWrapper:function(){return function e(t,i,r=o.IS_BLOCK){let s=t,a=i.editor;do{if(!s||s===a)break;if(r.test(s.nodeName)){if(n.Dom.isLeaf(s))return s;return e(s.parentNode,i,/^li$/i)||s}s=s.parentNode}while(s&&s!==a)return null}}});var o=i(82758),n=i(2748)},19057:function(e,t,i){i.d(t,{hasPreviousBlock:function(){return n}});var o=i(2748);function n(e,t){return!!o.Dom.prev(e,e=>o.Dom.isBlock(e)||o.Dom.isImage(e),t.editor)}},35399:function(e,t,i){i.d(t,{checkBR:function(){return o.checkBR},checkUnsplittableBox:function(){return n.checkUnsplittableBox},getBlockWrapper:function(){return r.getBlockWrapper},hasPreviousBlock:function(){return s.hasPreviousBlock},insertParagraph:function(){return a.insertParagraph},moveCursorOutFromSpecialTags:function(){return l.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return c.processEmptyLILeaf},splitFragment:function(){return u.splitFragment},wrapText:function(){return d.wrapText}});var o=i(41872),n=i(61991),r=i(54041),s=i(19057),a=i(44245),l=i(91388),c=i(65181),u=i(54600),d=i(5287)},44245:function(e,t,i){i.d(t,{insertParagraph:function(){return s}});var o=i(2748),n=i(29960),r=i(26395);function s(e,t,i,s){let a="br"===i.toLowerCase(),{createInside:l}=t,c=l.element(i),u=l.element("br");return a||o.Dom.append(c,u),s&&s.cssText&&(0,n.attr)(c,"style",s.cssText),o.Dom.after(e,c),o.Dom.before(a?c:u,e),(0,r.scrollIntoViewIfNeeded)(c,t.editor,t.ed),c}},91388:function(e,t,i){i.d(t,{moveCursorOutFromSpecialTags:function(){return n}});var o=i(2748);function n(e,t,i){let{s:n}=e,r=o.Dom.closest(t,i,e.editor);if(r){if(n.cursorOnTheRight(r,t))o.Dom.after(r,t);else{if(!n.cursorOnTheLeft(r,t))return;o.Dom.before(r,t)}let e=n.createRange();e.setStartBefore(t),n.selectRange(e)}}},65181:function(e,t,i){i.d(t,{processEmptyLILeaf:function(){return s}});var o=i(2748),n=i(76078),r=i(44245);function s(e,t,i){let s=o.Dom.closest(i,["ol","ul"],t.editor);if(!s)return;let a=s.parentElement,l=o.Dom.isLeaf(a),c=l?a:s,u=t.s.createRange();u.setStartAfter(i),u.setEndAfter(s);let d=u.extractContents();o.Dom.after(c,e),o.Dom.safeRemove(i),(0,n.$$)("li",s).length||o.Dom.safeRemove(s);let h=(0,r.insertParagraph)(e,t,l?"li":t.o.enter);o.Dom.first(d,e=>o.Dom.isTag(e,"li"))&&(l?o.Dom.append(h,d):o.Dom.after(h,d))}},54600:function(e,t,i){i.d(t,{splitFragment:function(){return s}});var o=i(2748),n=i(26395),r=i(44245);function s(e,t,i){let s=t.s,{enter:a}=t.o,l=a.toLowerCase(),c=o.Dom.isLeaf(i),u=i.tagName.toLowerCase()===l||c,d=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!u&&(d||h)){d?o.Dom.after(i,e):o.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!d&&o.Dom.prepend(i,e);return}let{scrollTop:p}=t.editor;s.splitSelection(i,e),t.editor.scrollTop!==p&&(t.editor.scrollTop=p),(0,n.scrollIntoViewIfNeeded)(i,t.editor,t.ed)}},5287:function(e,t,i){i.d(t,{wrapText:function(){return n}});var o=i(2748);function n(e,t){let i=e;o.Dom.up(i,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(i=e)},t.editor);let n=o.Dom.wrapInline(i,t.o.enter,t);if(o.Dom.isEmpty(n)){let i=t.createInside.element("br");o.Dom.append(n,i),o.Dom.before(i,e)}return n}},11317:function(e,t,i){var o=i(2748),n=i(580),r=i(29960),s=i(6441),a=i(92762);function l(e){var t;null==(t=e.files)||t.forEach(t=>{let i=this.createInside.element("a",{href:e.baseurl+t});i.textContent=this.o.uploader.getDisplayName.call(this.uploader,e.baseurl,t),this.s.insertNode(i)})}s.Config.prototype.file={defaultHandlerSuccess:l},s.Config.prototype.controls.file={popup(e,t,i){let n=(t,i="")=>{e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))},s=null;return t&&(o.Dom.isTag(t,"a")||o.Dom.closest(t,"a",e.editor))&&(s=o.Dom.isTag(t,"a")?t:o.Dom.closest(t,"a",e.editor)),(0,a.FileSelectorWidget)(e,{filebrowser(e){e.files&&e.files.forEach(t=>n(e.baseurl+t)),i()},upload(t){var i,o;(null!=(o=null==(i=e.o.file)?void 0:i.defaultHandlerSuccess)?o:l).call(e,t)},url(e,t){s?((0,r.attr)(s,"href",e),(0,r.attr)(s,"title",t)):n(e,t),i()}},s,i,!1)},tags:["a"],tooltip:"Insert file"},n.pluginSystem.add("file",function(e){e.registerButton({name:"file",group:"media"})})},36243:function(e,t,i){var o=i(82758),n=i(22732),r=i(580),s=i(6441);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,r.pluginSystem.add("focus",function(e){if(e.o.saveSelectionOnBlur){let t=!1;e.e.on("blur",()=>{t=!1,e.isEditorMode()&&e.s.save(!0)}).on("mousedown touchstart",()=>{t=!e.editorIsActive}).on("focus",()=>{e.isEditorMode()&&(t?e.s.removeMarkers():e.s.restore()),t=!1})}let t=()=>{e.s.focus();let t=null;switch(e.o.cursorAfterAutofocus){case"start":t=n.Dom.first(e.editor,e=>n.Dom.isText(e));break;case"end":t=n.Dom.last(e.editor,e=>n.Dom.isText(e))}t&&e.s.setCursorIn(t,"start"===e.o.cursorAfterAutofocus)};e.e.on("afterInit",()=>{if(e.o.autofocus)if(e.defaultTimeout){let i="mousedown touchstart keydown",o=()=>{e.async.clearTimeout(n),e.e.off(i,o)},n=e.async.setTimeout(()=>{e.e.off(i,o),t()},300);e.e.on(i,o)}else t()}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&n.Dom.isBlock(t.target)&&!n.Dom.isTag(t.target,o.INSEPARABLE_TAGS)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},28252:function(e,t,i){var o=i(22732),n=i(68345),r=i(49055),s=i(41180),a=i(12153),l=i(6441),c=i(4104),u=i(83709),d=i(40222);l.Config.prototype.defaultFontSizePoints="px",l.Config.prototype.font={googleFonts:{url:""}},a.Icon.set("font",c.default).set("fontsize",u.default),l.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:e=>e.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value(e,t){var i;let n=e.s.current();if(!n)return;let r=o.Dom.closest(n,o.Dom.isElement,e.editor);if(!r)return;let a=(null==(i=t.control.data)?void 0:i.cssRule)||"font-size",l=(0,s.css)(r,a);if("font-size"===a){let t=parseFloat(l.toString());return"pt"===e.o.defaultFontSizePoints?Math.round(.75*t).toString():Math.round(t).toString()}return l.toString()},isChildActive(e,t){var i,o;let n=t.state.value,r=null!=(o=null==(i=t.control.data)?void 0:i.normalize)?o:e=>e;return!!(n&&t.control.args&&r(t.control.args[0].toString())===r(n.toString()))},isActive(e,t){var i,o;let n=t.state.value;if(!n)return!1;let r=null!=(o=null==(i=t.control.data)?void 0:i.normalize)?o:e=>e,s=t.control.data.cacheListSet;return s||(s=new Set(Object.keys(t.control.list).map(r)),t.control.data.cacheListSet=s),s.has(r(n.toString()))}};let h=new WeakSet;l.Config.prototype.controls.font={...l.Config.prototype.controls.fontsize,command:"fontname",textTemplate(e,t){let[i]=t.split(",");return(0,r.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(e,t,i){let o=!1;try{o=-1===t.indexOf("dings")&&document.fonts.check("16px "+t,i)}catch(e){}return`<span data-style="${t}" style="${o?`font-family: ${t}!important;`:""}">${i}</span>`},popup:(e,t,i,o)=>!!e.o.font.googleFonts.url&&new d.UIFontPicker(e,o,i),data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value(e,t){let i=e.s.current(),r=i&&o.Dom.closest(i,o.Dom.isElement,e.editor);if(r)h.add(t);else if(h.has(t))return;let a=(0,s.css)(r||e.editor,"font-family").toString(),{list:l}=t.control;return a===(0,s.css)(e.editor,"font-family").toString()&&((0,n.isArray)(l)?l.includes(""):""in(null!=l?l:{}))?"":a},tooltip:"Font family"}},40222:function(e,t,i){i.d(t,{UIFontPicker:function(){return g}});var o=i(87325),n=i(37133),r=i(2748),s=i(580),a=i(68345),l=i(29960),c=i(41180),u=i(37790),d=i(48538),h=i(41870),p=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let f=["h1","h2","h3","h4","h5","h6"],m=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]),g=class e extends d.UIElement{className(){return"UIFontPicker"}__render(){var e,t;let{control:i}=this.__button,{list:o={}}=i,n=(0,a.isArray)(o)?o.map(e=>({value:e.toString(),title:e.toString()})):(0,u.keys)(o,!1).map(e=>({value:e,title:o[e].toString()})),s=Array.from(this.__googleFonts.fonts.values(),e=>({value:this.__googleFonts.value(e),title:e.family,font:e})),l=new Map;[...s,...n].forEach(e=>l.set((0,h.firstFamily)(e.value),e));let c=new Map,d=new Map;this.__themeFonts().forEach(e=>{var t;let i=(0,h.firstFamily)(e),o=e.split(",")[0].replace(/["']/g,"").trim(),n=null!=(t=l.get(i))?t:!i||i.startsWith("-")||m.has(i)?void 0:{value:e,title:o};n&&!c.has(i)&&c.set(i,n)}),this.__usedFonts().forEach(e=>{let t=(0,h.firstFamily)(e),i=l.get(t);i&&!c.has(t)&&d.set(t,i)});let p=n.find(e=>""===e.value),f=(0,h.firstFamily)(null!=(t=null==(e=i.value)?void 0:e.call(i,this.j,this.__button))?t:"");r.Dom.detach(this.container),this.__fonts.clear(),p&&this.__append(f,[p]),this.__append(f,[...c.values()],"Theme fonts"),this.__append(f,[...d.values()],"Used fonts"),this.__append(f,n.filter(e=>e!==p),"System fonts"),this.__append(f,s,"Google Fonts"),this.__observeGoogleFonts()}__themeFonts(){let{editor:e}=this.j,t=[(0,c.css)(e,"font-family").toString()];return f.forEach(i=>{let o=this.j.createInside.element(i,{style:"display: none"});r.Dom.append(e,o),t.push((0,c.css)(o,"font-family").toString()),r.Dom.safeRemove(o)}),t}__usedFonts(){return Array.from(this.j.editor.querySelectorAll('[style*="font-family"]'),e=>e.style.fontFamily)}__append(e,t,i){if(!t.length)return;let{control:o}=this.__button,n=this.j.c.div(this.getFullElName("group"));if(i){let e=this.j.c.div(this.getFullElName("heading"),{id:`${this.getFullElName("heading")}-${(0,s.uniqueUid)()}`});e.textContent=this.i18n(i),(0,l.attr)(n,{role:"group","aria-labelledby":e.id}),r.Dom.append(n,e)}t.forEach(t=>{var i,s;let a=this.j.c.element("button",{type:"button",class:this.getFullElName("item"),"data-value":t.value,"aria-pressed":(0,h.firstFamily)(t.value)===e});t.font?(a.textContent=t.title,this.__fonts.set(a,t.font)):a.innerHTML=null!=(s=null==(i=o.childTemplate)?void 0:i.call(o,this.j,t.value,t.title,this.__button))?s:t.title,r.Dom.append(n,a)}),r.Dom.append(this.container,n)}__observeGoogleFonts(){this.j.async.requestAnimationFrame(()=>{var e;if(null==(e=this.__observer)||e.disconnect(),this.isDestructed||!this.__fonts.size)return;let t=new IntersectionObserver(e=>{let i=[];e.forEach(({isIntersecting:e,target:o})=>{let n=this.__fonts.get(o);e&&n&&(i.push(n),(0,c.css)(o,{fontFamily:this.__googleFonts.value(n)}),t.unobserve(o))}),this.__googleFonts.preview(i)},{root:this.container.parentElement,rootMargin:"0px 0px 400px 0px"});this.__fonts.forEach((e,i)=>t.observe(i)),this.__observer=t})}onMouseDown(e){e.preventDefault()}onClick(e){var t;let i=r.Dom.up(e.target,e=>r.Dom.isHTMLElement(e)&&e.hasAttribute("data-value"),this.container);if(!i)return;let o=null!=(t=(0,l.attr)(i,"data-value"))?t:"",n=this.__googleFonts.find(o),s=(0,h.firstFamily)(o)===(0,h.firstFamily)(this.__blockFont());n&&!s&&this.__googleFonts.load(n),this.j.execCommand("fontname",!1,s?"":o),this.__close()}__blockFont(){let e=r.Dom.up(this.j.s.current(),r.Dom.isBlock,this.j.editor);return(0,c.css)(null!=e?e:this.j.editor,"font-family").toString()}destruct(){var e;null==(e=this.__observer)||e.disconnect(),super.destruct()}constructor(e,t,i){super(e),this.__button=t,this.__close=i,this.__fonts=new Map,this.__observer=null,this.__googleFonts=e.getInstance(h.GoogleFonts),this.__render(),this.__googleFonts.fonts.size||this.__googleFonts.ready.then(()=>!this.isDestructed&&this.__render())}};p([(0,n.watch)("container:mousedown")],g.prototype,"onMouseDown",null),p([(0,n.watch)("container:click")],g.prototype,"onClick",null),g=p([o.component],g)},23399:function(e,t,i){var o=i(580),n=i(21537);i(28252);var r=i(41870);o.pluginSystem.add("font",function(e){if(e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"}),e.o.font.googleFonts.url){let t=e.getInstance(r.GoogleFonts),i=e.async.debounce(()=>t.loadUsed(),e.defaultTimeout);t.ready.then(i),e.e.on("afterInit afterSetMode change",i)}e.e.on("afterInit",()=>{e.iframe&&e.e.on(e.ed,"load",()=>e.e.fire("updateToolbar"),{capture:!0})});let t=(t,i,o)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:(0,n.normalizeSize)(o,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:o}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})},41870:function(e,t,i){i.d(t,{GoogleFonts:function(){return c},firstFamily:function(){return l}});var o=i(80480),n=i(2748),r=i(54079);let s={serif:"serif",monospace:"monospace"},a=new Map;function l(e){return e.split(",")[0].replace(/["']/g,"").trim().toLowerCase()}class c extends o.ViewComponent{className(){return"GoogleFonts"}find(e){return this.fonts.get(l(e))}value(e){var t;return`'${e.family}', ${null!=(t=s[e.category])?t:"sans-serif"}`}load(e){let t=this.__loadedInto(this.j.ed);if(t.has(e.family))return;t.add(e.family);let i=[["regular","0,400"],["700","0,700"],["italic","1,400"],["700italic","1,700"]].filter(([t])=>e.variants.includes(t)).map(([,e])=>e);this.__append(this.j.ed,`family=${this.__family(e)}:ital,wght@${i.join(";")}`)}loadUsed(){this.j.editor.querySelectorAll('[style*="font-family"]').forEach(e=>{let t=this.find(e.style.fontFamily);t&&this.load(t)})}preview(e){let t=this.__loadedInto(this.j.od);if(!(e=e.filter(e=>!this.__previewed.has(e.family)&&!t.has(e.family))).length)return;e.forEach(e=>this.__previewed.add(e.family));let i=e.map(e=>"family="+this.__family(e)),o=new Set(e.map(e=>e.family).join(""));this.__append(this.j.od,`${i.join("&")}&text=${encodeURIComponent([...o].join(""))}`)}__loadedInto(e){var t;let i=null!=(t=this.__loaded.get(e))?t:new Set;return this.__loaded.set(e,i),i}__family(e){return encodeURIComponent(e.family).replace(/%20/g,"+")}__append(e,t){let i=e.createElement("link");i.rel="stylesheet",i.href=`https://fonts.googleapis.com/css2?${t}&display=swap`,e.head.appendChild(i),this.__links.push(i)}destruct(){this.__links.forEach(e=>n.Dom.safeRemove(e)),super.destruct()}constructor(e){super(e),this.fonts=new Map,this.__links=[],this.__loaded=new WeakMap,this.__previewed=new Set,this.ready=(function(e,t){let i=a.get(t);if(!i){let o=new r.Ajax({url:t,method:"GET"},e.o.defaultAjaxOptions);i=o.send().then(e=>e.json()).then(({items:e})=>e.filter(e=>e.variants.includes("regular"))).catch(()=>(a.delete(t),[])).finally(()=>o.destruct()),a.set(t,i)}return i})(e,e.o.font.googleFonts.url).then(e=>{e.forEach(e=>this.fonts.set(e.family.toLowerCase(),e))})}}},4104:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m5 17 7-14 7 14M8 12h8M3 21h18"/> </g> </svg> '},83709:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2 5h9M6.5 5v15M4 20h5M19 4v16m-3-13 3-3 3 3m-6 10 3 3 3-3"/> </g> </svg> '},24630:function(e,t,i){var o=i(2748),n=i(72430),r=i(12153),s=i(6441),a=i(89816);r.Icon.set("paragraph",a.default),s.Config.prototype.controls.paragraph={command:"formatBlock",value(e,t){var i,n;let r=t.control,s=e.s.current(),a=o.Dom.closest(s,o.Dom.isBlock,e.editor);return null!=(i=null==a?void 0:a.nodeName.toLowerCase())?i:null==(n=r.data)?void 0:n.currentValue},update(e,t){let i=t.control;if(!e.s.current())return!1;let o=t.state.value,r=i.list;return(0,n.isPlainObject)(r)&&r[o.toString()]&&e.o.textIcons&&(t.state.text=r[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(e,t){var i,o;return t.state.value===(null==(o=null==(i=t.control)?void 0:i.args)?void 0:o[0])},isActive:(e,t)=>t.state.value!==e.o.enter&&(0,n.isPlainObject)(t.control.list)&&!!t.control.list[t.state.value],childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"}},96111:function(e,t,i){var o=i(580);i(24630),o.pluginSystem.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,i,o)=>(e.s.commitStyle({element:o}),e.synchronizeValues(),!1))})},89816:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 4H9a5 5 0 0 0 0 10h3M12 4v17M18 4v17"/> </g> </svg> '},99823:function(e,t,i){var o=i(82758),n=i(12153),r=i(6441),s=i(6950),a=i(28911);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,n.Icon.set("fullsize",s.default).set("shrink",a.default),r.Config.prototype.controls.fullsize={exec(e){e.toggleFullSize()},update(e,t){let i=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=i:t.state.icon.name=i},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},2169:function(e,t,i){var o=i(2748),n=i(580),r=i(19306),s=i(41180);i(99823);let a=new Set;n.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,n=0,l=0,c=0,u=!1,d=()=>{let{container:o,events:r}=e;r&&(t?(u||(i=(0,s.css)(o,"height",!0),n=(0,s.css)(o,"width",!0),u=!0),(0,s.css)(o,{height:e.ow.innerHeight,width:e.ow.innerWidth})):u&&((0,s.css)(o,{height:i||"auto",width:n||"auto"}),u=!1))},h=i=>{let{container:n,events:u}=e;if(n){if(void 0===i&&(i=!n.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,n.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,r.isJoditObject)(e)&&e.toolbarContainer&&o.Dom.append(e.toolbarContainer,e.toolbar.container),(0,s.css)(e.toolbar.container,"width","auto")),i?a.add(n):a.delete(n),e.o.globalFullSize&&(1===a.size&&i||0===a.size&&!i)){i&&(l=e.ow.scrollX,c=e.ow.scrollY);let t=n.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;d(),i||e.ow.scrollTo(l,c)}u.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",d),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==(t=null==e?void 0:e.options)?void 0:t.fullsize)}).on("toggleFullSize",h).on("beforeDestruct",()=>{t&&h(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",d)})})},6950:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5"/> </g> </svg> '},28911:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 8h5V3M8 8 3 3m13 0v5h5m-5 0 5-5M3 16h5v5m0-5-5 5m13 0v-5h5m-5 0 5 5"/> </g> </svg> '},78524:function(e,t,i){i(6441).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"]}},42263:function(e,t,i){var o=i(82758),n=i(580),r=i(21537),s=i(50911);i(78524);class a extends s.Plugin{afterInit(e){(0,r.keys)(e.o.commandToHotkeys,!1).forEach(t=>{let i=e.o.commandToHotkeys[t];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&e.registerHotkeyToCommand(i,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===o.KEY_ESC)return this.j.e.fire("escape",e)}).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 t=!0,e.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=e=>{let t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),o=[t||i];return["alt","ctrl","shift","meta"].forEach(i=>{e[i+"Key"]&&t!==i&&o.push(i)}),(0,r.normalizeKeyAliases)(o.join("+"))},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:"'"}}}n.pluginSystem.add("hotkeys",a)},16233:function(e,t,i){var o=i(22732),n=i(580),r=i(12153),s=i(6441),a=i(72337);r.Icon.set("hr",a.default),s.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},n.pluginSystem.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{var t;let i=e.createInside.element("hr");e.s.insertNode(i,!1,!1);let n=o.Dom.closest(i.parentElement,o.Dom.isBlock,e.editor);n&&o.Dom.isEmpty(n)&&n!==e.editor&&!(null==(t=e.o.dtd)?void 0:t.blockLimits[n.nodeName.toLowerCase()])&&(o.Dom.after(n,i),o.Dom.safeRemove(n));let r=o.Dom.findNotEmptySibling(i,!1);if(o.Dom.isBlock(r))return e.s.setCursorIn(r,!0),!1;if(r||i.parentNode!==e.editor&&!o.Dom.isBlock(o.Dom.findNotEmptySibling(i,!0)))return e.s.setCursorAfter(i),!1;let s=e.createInside.element(e.o.enter);return o.Dom.after(i,s),e.s.setCursorIn(s),!1})})},72337:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M4 12h16"/> </g> </svg> '},50963:function(e,t,i){var o=i(6441);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_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},77469:function(e,t,i){var o=i(82758),n=i(2748),r=i(580),s=i(21537);i(50963),r.pluginSystem.add("iframe",function(e){let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let o=e||i.iframe.contentWindow.document;if(o.open(),o.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,s.defaultLanguage)(t.language)}">`+"<head>"+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=o.createElement("link");(0,s.attr)(t,"rel","stylesheet"),(0,s.attr)(t,"href",e),o.head&&n.Dom.append(o.head,t),i.e.on(t,"load",()=>i.e.fire("resize"))}),t.iframeStyle){let e=o.createElement("style");e.innerHTML=t.iframeStyle,o.head&&n.Dom.append(o.head,e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");(0,s.css)(i,"display","block"),i.src="about:blank",i.className="jodit-wysiwyg_iframe",(0,s.attr)(i,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&(0,s.attr)(i,"sandbox",t.iframeSandbox),n.Dom.append(e.workplace,i),e.iframe=i;let r=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,s.callPromise)(r,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let r=t.editHTMLDocumentMode,a=()=>{(0,s.attr)(i.body,"contenteditable",e.getMode()!==o.MODE_SOURCE&&!e.getReadOnly()||null)},l=e=>{e=e.replace(/<style[^>]+jodit-box[^>]*>[\s\S]*?<\/style>/gi,"");let t=/<body.*<\/body>/im,i="{%%BODY%%}",o=t.exec(e);return o&&(e=e.replace(t,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")),e};if(r){let t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>l(e.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>{if(e.isLocked)return!1;if(/<(html|body)/i.test(t)){if(l(i.documentElement.outerHTML)!==l(t)){var o;let r,c;o=l(t),r=new DOMParser().parseFromString(o,"text/html"),e.e.fire("safeHTML",r.documentElement),c=(0,s.$$)("style.jodit-box",i.head),i.replaceChild(i.adoptNode(r.documentElement),i.documentElement),c.forEach(e=>n.Dom.append(i.head,e)),e.editor=i.body,a(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue")}return!0}return!1},{top:!0})}if(e.editor=i.body,e.e.on("afterSetMode afterInit afterAddPlace",a),"auto"===t.height){i.documentElement&&(0,s.css)(i.documentElement,"overflowY","hidden");let o=e.async.throttle((...i)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){let t=e.ew.getComputedStyle(e.editor),i=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);(0,s.css)(e.iframe,"height",e.editor.offsetHeight+i)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",o).on([e.iframe,e.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let t=new ResizeObserver(o);t.observe(i.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{var i;null==(i=e.events)||i.fire(e.ow,t)}),!1})})})},85745:function(e,t,i){i(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(e,t,i){var o=i(82758),n=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(74569);i(85745);var u=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let d="__jodit_imageprocessor_binded",h=d+"blob-id",p="jodit-wysiwyg_image-selected",f=new Set(["img","jodit","jodit-media"]);class m extends l.Plugin{afterInit(e){e.e.on(e.ed,"selectionchange",this.onSelectionChange),(0,s.getContainer)(e,"image-processor","style",!0).textContent=`.jodit-wysiwyg.${p}::selection,.jodit-wysiwyg.${p} *:not(img)::selection{background:transparent}`}beforeDestruct(e){e.e.off(e.ed,"selectionchange",this.onSelectionChange),e.editor.classList.remove(p);let t=(0,n.cached)(e,"buffer"),i=null==t?void 0:t.get(h);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(h)}}onAfterGetValueFromEditor(e,t){if(t!==o.SOURCE_CONSUMER)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){let{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=t.buffer.get(h);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}onSelectionChange(){let{jodit:e}=this;e.editor.classList.toggle(p,function(e){let{sel:t}=e.s;if(!t||!t.rangeCount)return!1;let{startContainer:i,startOffset:o,endContainer:n,endOffset:s}=t.getRangeAt(0),l=i.childNodes[o];return i===n&&s===o+1&&(r.Dom.isTag(l,f)||!!(0,a.getWrappedMedia)(e,l))&&r.Dom.isOrContains(e.editor,i)}(e))}async afterChange(e){let{jodit:t}=this;t.editor&&(0,a.$$)("img",t.editor).forEach(e=>{(0,a.dataBind)(e,d)||((0,a.dataBind)(e,d,!0),e.complete||t.e.on(e,"load",function i(){var o;t.isInDestruct||null==(o=t.e)||o.fire("resize"),t.e.off(e,"load",i)}),e.src&&/^data:/.test(e.src)&&function(e,t){let i;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let o=t.src;try{i=(0,c.dataURItoBlob)(o)}catch(e){return}t.src=URL.createObjectURL(i),e.e.fire("internalUpdate");let{buffer:n}=e,r=n.get(h)||{};r[t.src]=o,e.buffer.set(h,r)}(t,e),t.e.on(e,"mousedown touchstart",()=>{(function(e){var t;for(let i of["previousSibling","nextSibling"]){let n=e[i];for(;r.Dom.isText(n)&&!(null==(t=n.nodeValue)?void 0:t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""));){let e=n[i];r.Dom.safeRemove(n),n=e}}})(e),t.s.select(e)}))})}}u([(0,n.watch)(":afterGetValueFromEditor")],m.prototype,"onAfterGetValueFromEditor",null),u([(0,n.watch)(":beforeSetElementValue")],m.prototype,"onBeforeSetElementValue",null),u([n.autobind],m.prototype,"onSelectionChange",null),u([(0,n.watch)([":change",":afterInit",":changePlace"]),(0,n.debounce)()],m.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",m)},97536:function(e,t,i){i(6441).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}},3215:function(e,t,i){var o=i(65478),n=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(62843);i(97536);var c=i(59436),u=i(53636),d=i(10263),h=i(94575),p=i(34755),f=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class m extends a.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,d.openImagePopup)(this.j,this.dialog,this.state,e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,p.applyValuesToImage)(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{let i=e.s.createRange();i.setStartBefore(this.state.sourceImage),i.collapse(!0),e.s.removeNode(this.state.sourceImage),t.close(),e.s.selectRange(i)}),i.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),t.e.on(t,"afterClose",()=>{let{sourceImage:t}=this.state;if(e.isInDestruct||!n.Dom.isOrContains(e.editor,t))return;if(e.o.image.selectImageAfterClose)return void e.s.select(t);let i=e.s.createRange();i.setStartAfter(t),i.collapse(!0),e.s.selectRange(i)}),t.setSize(e.o.image.dialogWidth),(0,s.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,l.Button)(e,"ok","Apply","primary"),remove:(0,l.Button)(e,"bin","Delete"),cancel:(0,l.Button)(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.__focusFirstField(),this.async.promise((e,t)=>(0,h.readValuesFromImage)(this.j,this.state).then(e,t)).catch(e=>{(0,s.isAbortError)(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__focusFirstField(){var e;let t=e=>(0,s.toArray)(e.querySelectorAll("input, select, textarea"));null==(e=t(this.form.getElm("tabsBox")).concat(t(this.form.container)).find(e=>null!=e.offsetParent))||e.focus()}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){let t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",i=>{let o=i.target;if(n.Dom.isTag(o,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;t.state.sourceImage=o,t.state.image=o.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(o)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{await e.decode()}catch(e){}if(this.state.sizeIsLocked&&(0,s.isNumeric)(t.imageWidth)){let e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){var t,i,n;Object.values(null!=(t=(0,o.cached)(this,"__buttons"))?t:{}).forEach(e=>e.destruct()),null==(i=(0,o.cached)(this,"dialog"))||i.destruct(),null==(n=(0,o.cached)(this,"form"))||n.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){let{naturalWidth:e,naturalHeight:t}=this.image;return e/t||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:""}},this.activeTabState={activeTab:"Image"}}}f([o.cache],m.prototype,"form",null),f([o.cache],m.prototype,"dialog",null),f([o.cache],m.prototype,"__buttons",null),f([(0,o.watch)("state.image")],m.prototype,"onStateValuesImageSrcChange",null),r.pluginSystem.add("imageProperties",m)},51642:function(e,t,i){i.d(t,{readAlign:function(){return n}});var o=i(25726);function n(e,t,i){let n=(0,o.getHAlign)(e,i);t.align="normal"===n?"":n}},94575:function(e,t,i){i.d(t,{readValuesFromImage:function(){return u}});var o=i(25726),n=i(29960),r=i(41180),s=i(51642),a=i(75595),l=i(47749),c=i(32566);async function u(e,t){let{sourceImage:i,values:u}=t;return(0,s.readAlign)(i,u,(0,o.getAlignClasses)(e,i)),u.borderRadius=parseInt((0,r.cssInline)(i,"border-radius")||"0",10)||0,u.id=(0,n.attr)(i,"id")||"",u.imageTitle=(0,n.attr)(i,"title")||"",u.imageAlt=(0,n.attr)(i,"alt")||"",u.style=(0,n.attr)(i,"style")||"",u.classes=((0,n.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,l.readMargins)(i,u,t),(0,a.readLink)(t,e,u),u.imageSrc=(0,n.attr)(i,"src")||"",(0,c.readSizes)(i,u,t)}},75595:function(e,t,i){i.d(t,{readLink:function(){return r}});var o=i(2748),n=i(29960);function r(e,t,i){let r=o.Dom.closest(e.sourceImage,"a",t.editor);r?(i.imageLink=(0,n.attr)(r,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,n.attr)(r,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},47749:function(e,t,i){i.d(t,{readMargins:function(){return n}});var o=i(12475);function n(e,t,i){let n=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let s=e.style.getPropertyValue((0,o.kebabCase)(i));if(!s){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),t[i]=s,(r&&t[i]||n&&"marginTop"!==i&&t[i]!==t.marginTop)&&(n=!1)}),i.marginIsLocked=n}},32566:function(e,t,i){i.d(t,{readSizes:function(){return a}});var o=i(29807),n=i(29960),r=i(41180),s=i(14415);async function a(e,t,i){try{await e.decode()}catch(e){}let a=(0,r.css)(e,"width",!0)||(0,n.attr)(e,"width")||!1,l=(0,r.css)(e,"height",!0)||(0,n.attr)(e,"height")||!1;t.imageWidth=!1!==a?(0,s.normalSizeFromString)(a):e.offsetWidth||e.naturalWidth,(0,o.isNumeric)(t.imageWidth)?t.imageHeight=!1!==l?(0,s.normalSizeFromString)(l):e.offsetHeight||e.naturalHeight:t.imageHeight=l||"";let{imageWidth:c,imageHeight:u}=t,d=parseFloat(c.toString());if(!(0,o.isNumeric)(c)||!(0,o.isNumeric)(u)){i.sizeIsLocked=!1;return}if(!1===l){t.imageHeight=Math.round(d/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(d-parseFloat(u.toString())*i.ratio)}},59436:function(e,t,i){i.d(t,{UIImagePropertiesForm:function(){return p}});var o=i(65478),n=i(87325),r=i(2748),s=i(21537),a=i(62405),l=i(12153),c=i(92762),u=i(35105),d=i(29827),h=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p=class e extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){let t=super.getElm(e);if(t)return t;for(let t of this.elements){let i=t.getElm(e);if(i)return i}return null}render(){return`<form>
137
137
  <div class="jodit-grid jodit-grid_xs-column">
138
138
  <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
139
139
  <div class="&__view-box">
@@ -296,4 +296,4 @@
296
296
  <div class="jodit-form__group &__playback">
297
297
  ${Object.entries(p).map(f).join("")}
298
298
  </div>
299
- </form>`}input(e){return this.getElm(e)}show(e,t){(0,c.css)(this.getElm(e),"display",t?null:"none")}onStateMediaChange(){let{media:e}=this.state;this.show("editPoster",s.Dom.isTag(e,"video")),this.show("sizes",!s.Dom.isTag(e,"audio")),this.show("playback",!s.Dom.isTag(e,"iframe")),this.showPreview()}showPreview(){let{media:e,values:t}=this.state,i=s.Dom.isTag(e,"video")&&!!t.poster;this.show("previewBox",i),(0,l.attr)(this.getElm("preview"),"src",i?t.poster:null)}hideChangePoster(){let{uploader:e,filebrowser:t}=this.j.o,i=!1!==e.showTabInFileSelector&&!!(e.url||e.insertImageAsBase64URI||e.customUploadFunction),o=!!(t.ajax.url||t.items.url);this.show("changePoster",i||o)}onStatePosterChange(){let{poster:e}=this.state.values;this.input("poster").value=e,this.show("removePoster",!!e),this.showPreview()}onPosterChange(){this.state.values.poster=this.input("poster").value}onChangePosterClick(e){this.handlers.openPosterPopup(this.getElm("changePoster")),e.stopPropagation()}onRemovePosterClick(){this.state.values.poster=""}onStateSizeIsLockedChange(){this.getElm("lockSize").innerHTML=d.Icon.get(this.state.sizeIsLocked?"lock":"unlock")}onLockSizeClick(){let{state:e}=this,{values:t}=e;e.sizeIsLocked=!e.sizeIsLocked,e.sizeIsLocked&&(0,a.isNumeric)(t.width)&&(t.height=Math.round(parseFloat(t.width.toString())/e.ratio))}onStateSizeChange(){let{values:e}=this.state;["width","height"].forEach(t=>{let i=this.input(t);i!==this.j.od.activeElement&&(i.value=e[t].toString())})}onSizeInput(e){let{state:t}=this,{values:i}=t,o=this.input("width").value,n=this.input("height").value;if(!t.sizeIsLocked||!(0,a.isNumeric)(o)||!(0,a.isNumeric)(n)){i.width=o,i.height=n;return}let r=parseFloat(o),s=parseFloat(n);e.target===this.input("width")?(i.width=r,i.height=Math.round(r/t.ratio)):(i.width=Math.round(s*t.ratio),i.height=s)}onStateFlagsChange(){let{values:e}=this.state;this.input("autoplay").checked=e.autoplay,this.input("loop").checked=e.loop,this.input("muted").checked=e.muted||e.autoplay,this.input("muted").disabled=e.autoplay,this.input("controls").checked=e.controls||!e.autoplay,this.input("controls").disabled=!e.autoplay}onFlagChange(e){Object.keys(p).forEach(t=>{let i=this.input(t);e.target===i&&(this.state.values[t]=i.checked)})}constructor(e,t,i){super(e),this.state=t,this.handlers=i}};h([(0,n.hook)("ready"),(0,r.watch)("state.media")],m.prototype,"onStateMediaChange",null),h([(0,n.hook)("ready")],m.prototype,"hideChangePoster",null),h([(0,n.hook)("ready"),(0,r.watch)("state.values.poster")],m.prototype,"onStatePosterChange",null),h([(0,r.watch)("poster:change")],m.prototype,"onPosterChange",null),h([(0,r.watch)("changePoster:click")],m.prototype,"onChangePosterClick",null),h([(0,r.watch)("removePoster:click")],m.prototype,"onRemovePosterClick",null),h([(0,n.hook)("ready"),(0,r.watch)("state.sizeIsLocked")],m.prototype,"onStateSizeIsLockedChange",null),h([(0,r.watch)("lockSize:click")],m.prototype,"onLockSizeClick",null),h([(0,n.hook)("ready"),(0,r.watch)(["state.values.width","state.values.height"])],m.prototype,"onStateSizeChange",null),h([(0,r.watch)(["width:input","height:input","width:change","height:change"])],m.prototype,"onSizeInput",null),h([(0,n.hook)("ready"),(0,r.watch)(Object.keys(p).map(e=>"state.values."+e))],m.prototype,"onStateFlagsChange",null),h([(0,r.watch)(Object.keys(p).map(e=>`${e}:change`))],m.prototype,"onFlagChange",null),m=h([o.component],m)},96139:function(e,t,i){var o=i(65478),n=i(2748),r=i(580),s=i(68345),a=i(5700),l=i(37790),c=i(20356),u=i(62843),d=i(56917),h=i(34793),p=i(27828),f=i(54426),m=i(96170),g=i(44909),v=i(14984),b=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class y extends c.Plugin{get __size(){let{width:e,height:t}=this.state.values;return`${e}x${t}`}get form(){return new p.UIVideoPropertiesForm(this.j,this.state,{openPosterPopup:e=>this.__openPosterPopup(e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),buttons:["dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,g.applyValues)(e,this.state,this.__size!==this.__readSize),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{e.s.removeNode(this.state.target),t.close()}),i.cancel.onAction(()=>{t.close()}),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),(0,l.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,u.Button)(e,"ok","Apply","primary"),remove:(0,u.Button)(e,"bin","Delete"),cancel:(0,u.Button)(e,"cancel","Cancel")}}open(e){let t=(0,f.editedMedia)(e);t&&(this.state.target=e,this.state.media=t,(0,f.readValues)(this.state),this.__readSize=this.__size,this.dialog.setHeader(this.j.i18n(n.Dom.isTag(t,"audio")?"Audio properties":"Video properties")),this.dialog.open().setModal(!0).setPosition())}onGenerateReplaceVideoTabs(e,t){return(0,v.videoTabs)(this.j,t,t=>(0,m.replaceMedia)(this.j,e,t))}__openPosterPopup(e){let{j:t,state:i}=this,o=new d.Popup(this.dialog),n=()=>{o.close(),o.destruct()};o.setContent((0,h.FileSelectorWidget)(t,{upload(e){e.files&&e.files.length&&(i.values.poster=e.baseurl+e.files[0]),n()},filebrowser(e){(0,s.isArray)(e.files)&&e.files.length&&(i.values.poster=e.files[0],n())}},null,n)).open(()=>(0,a.position)(e))}afterInit(){}beforeDestruct(){var e,t,i;Object.values(null!=(e=(0,o.cached)(this,"__buttons"))?e:{}).forEach(e=>e.destruct()),null==(t=(0,o.cached)(this,"dialog"))||t.destruct(),null==(i=(0,o.cached)(this,"form"))||i.destruct()}constructor(){super(...arguments),this.state={target:this.j.c.element("video"),media:this.j.c.element("video"),ratio:1,sizeIsLocked:!0,values:{width:"",height:"",poster:"",autoplay:!1,loop:!1,muted:!1,controls:!0}},this.__readSize=""}}b([o.cache],y.prototype,"form",null),b([o.cache],y.prototype,"dialog",null),b([o.cache],y.prototype,"__buttons",null),b([(0,o.watch)(":openVideoProperties")],y.prototype,"open",null),b([(0,o.watch)(":generateReplaceVideoTabs")],y.prototype,"onGenerateReplaceVideoTabs",null),r.pluginSystem.add("videoProperties",y)},44909:function(e,t,i){i.d(t,{applyValues:function(){return u}});var o=i(2748),n=i(29960),r=i(41180),s=i(54426),a=i(14415);let l=e=>""===e?null:(0,a.normalSizeToString)(e);function c(e,t,i){e.hasAttribute(t)!==i&&(0,n.attr)(e,t,i?"":null)}function u(e,t,i){let{media:a,values:u}=t;i&&!o.Dom.isTag(a,"audio")&&function(e,t){var i;let{media:a,values:c}=t;if(o.Dom.isTag(a,"iframe")){["width","height"].forEach(e=>{(0,n.attr)(a,e,""===c[e]?null:c[e]),(0,r.cssInline)(a,e)&&(0,r.css)(a,e,l(c[e]))});let e=a.parentElement;e&&(0,n.attr)(e,"data-jodit_iframe_wrapper")&&(0,r.css)(e,{width:a.offsetWidth,height:a.offsetHeight});return}let u=t.sizeIsLocked&&!(0,s.ownSize)(a,"height");(0,r.css)(a,{width:l(c.width),height:u?null:l(c.height)}),(null==(i=(0,n.attr)(a,"style"))?void 0:i.trim())||(0,n.attr)(a,"style",null),e.e.fire(a,"changesize")}(e,t),!o.Dom.isTag(a,"iframe")&&(o.Dom.isTag(a,"video")&&(0,n.attr)(a,"poster",u.poster||null),c(a,"autoplay",u.autoplay),c(a,"muted",u.autoplay||u.muted),c(a,"loop",u.loop),c(a,"controls",u.controls||!u.autoplay),u.autoplay&&o.Dom.isTag(a,"video")&&c(a,"playsinline",!0))}},14984:function(e,t,i){i.d(t,{videoTabs:function(){return d}});var o=i(21537),n=i(62843),r=i(2525),s=i(12153),a=i(6441),l=i(92762),c=i(37775);function u(e){var t;null==(t=e.files)||t.forEach(t=>{this.s.insertNode((0,o.prepareMedia)(this,this.createInside.element("video",{controls:"",src:e.baseurl+t})))})}function d(e,t,i){let s=null!=i?i:t=>{e.s.restore(),t()},a=new r.UIForm(e,[new r.UIBlock(e,[new r.UIInput(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new r.UIBlock(e,[(0,n.Button)(e,"","Insert","primary").onAction(()=>a.submit())])]),c=new r.UIForm(e,[new r.UIBlock(e,[new r.UITextArea(e,{name:"code",required:!0,label:"Embed code"})]),new r.UIBlock(e,[(0,n.Button)(e,"","Insert","primary").onAction(()=>c.submit())])]),d=[],h=i=>{s(()=>e.s.insertHTML((0,o.prepareEmbedCode)(e,i))),t()};i||e.s.save();let{uploader:p}=e.o;!1!==p.showTabInFileSelector&&(p.url||p.customUploadFunction)&&d.push((0,l.UploadTab)(e,t=>{s(()=>{var i,o;return(null!=(o=null==(i=e.o.video)?void 0:i.defaultHandlerSuccess)?o:u).call(e,t)})},{label:"Drop file",accept:"video/*"})),d.push({icon:"link",name:"Link",content:a.container},{icon:"source",name:"Code",content:c.container}),a.onSubmit(t=>{var i,n,r,s;h((0,o.call)(null!=(n=null==(i=e.o.video)?void 0:i.parseUrlToVideoEmbed)?n:o.convertMediaUrlToVideoEmbed,t.url,{width:null==(r=e.o.video)?void 0:r.defaultWidth,height:null==(s=e.o.video)?void 0:s.defaultHeight}))}),c.onSubmit(e=>{h(e.code)});let f=(0,l.TabsWidget)(e,d);return f.classList.add("jodit-file-selector"),f}a.Config.prototype.video={parseUrlToVideoEmbed:o.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345,defaultHandlerSuccess:u},s.Icon.set("video",c.default),a.Config.prototype.controls.video={popup:(e,t,i)=>d(e,i),tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},26551:function(e,t,i){var o=i(580);i(14984),o.pluginSystem.add("video",function(e){e.registerButton({name:"video",group:"media"})})},37775:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="2" y="5" width="13" height="14" rx="2"/><path d="m15 10 7-4v12l-7-4"/> </g> </svg> '},96967:function(e,t,i){i(6441).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},72253:function(e,t,i){var o=i(65478),n=i(22732),r=i(580),s=i(70799),a=i(50911);i(96967);var l=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends a.Plugin{afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.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(e){e.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,i=!1;for(;t;){if(t=function(e,t){let i=e,o=e;do if(n.Dom.isElement(o)&&n.Dom.isLeaf(o)&&!n.Dom.isList(o.parentElement)){let e=n.Dom.findNotEmptySibling(o,!1);n.Dom.isTag(i,"ul")?n.Dom.append(i,o):i=n.Dom.wrap(o,"ul",t.createInside),o=e}else break;while(o)return i}(t,e),this.isSuitableStart(t)){i||e.s.save(),i=!0;let o=e.createInside.element(e.o.enter);for(n.Dom.before(t,o);t&&this.isSuitable(t);){let e=t.nextSibling;n.Dom.append(o,t),t=e}o.normalize(),t=o}t=t&&t.nextSibling}i&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){let{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;let i=e.createInside.element(e.o.enter),o=e.createInside.element("br");n.Dom.append(i,o),n.Dom.append(e.editor,i),(e.s.isFocused()||"backSpaceAfterDelete"===e.e.current)&&e.s.setCursorBefore(o),e.e.fire("internalChange")}constructor(){super(...arguments),this.isSuitableStart=e=>{var t;return n.Dom.isText(e)&&(0,s.isString)(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||(null==(t=e.parentNode)?void 0:t.firstChild)===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!n.Dom.isTemporary(e)},this.isSuitable=e=>n.Dom.isText(e)||this.isNotWrapped(e),this.isNotWrapped=e=>n.Dom.isElement(e)&&!(n.Dom.isBlock(e)||n.Dom.isTag(e,this.j.o.wrapNodes.exclude))}}l([o.autobind],c.prototype,"postProcessSetEditorValue",null),l([o.autobind],c.prototype,"preprocessInput",null),r.pluginSystem.add("wrapNodes",c)},86012:function(e,t,i){i(6441).Config.prototype.showXPathInStatusbar=!0},83671:function(e,t,i){var o=i(82758),n=i(22732),r=i(580),s=i(49055),a=i(29960),l=i(76078),c=i(50911),u=i(80870),d=i(21491);i(86012);class h extends c.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),(0,a.attr)(this.container,"role","list");let e=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===o.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("pointerup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",e),e(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),n.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new u.ContextMenu(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?n.Dom.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();let i=(0,a.attr)(t.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{let e=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch(e){}return this.j.s.select(e),!1},this.tpl=(e,t,i,o)=>{let n=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${o}" tabindex="-1"'>${(0,s.trim)(i)}</a></span>`),r=n.firstChild;return this.j.e.on(r,"click",this.onSelectPath.bind(this,e)).on(r,"contextmenu",this.onContext.bind(this,e)),n},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,d.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&n.Dom.prepend(this.container,this.selectAllButton.container)},this.calcPathImd=()=>{if(this.isDestructed)return;let e=this.j.s.current();if(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),e){let t,i,o;n.Dom.up(e,e=>{e&&this.j.editor!==e&&!n.Dom.isText(e)&&!n.Dom.isComment(e)&&(t=e.nodeName.toLowerCase(),i=(0,l.getXPathByElement)(e,this.j.editor).replace(/^\//,""),o=this.tpl(e,i,t,this.j.i18n("Select %s",t)),this.container&&n.Dom.prepend(this.container,o))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}}r.pluginSystem.add("xpath",h)},78173:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m6 10 6 6 6-6"/> </g> </svg> '},16260:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m14 6-6 6 6 6"/> </g> </svg> '},37663:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m10 6 6 6-6 6"/> </g> </svg> '},51036:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m6 14 6-6 6 6"/> </g> </svg> '},31554:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 6h18M9 6V4h6v2M5 6l1 14h12l1-14M10 10v6m4-6v6"/> </g> </svg> '},18309:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m6 6 12 12M18 6 6 18"/> </g> </svg> '},99762:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M5.3333 5.3333h13.3334M2.6667 12h18.6666M5.3333 18.6667h13.3334" stroke-width="2.6667" stroke-linecap="butt"/> </g> </svg> '},7903:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h9m-7 8 4 4L21 5"/> </g> </svg> '},58032:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m4 8 8 8 8-8"/> </g> </svg> '},52507:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <circle cx="12" cy="5" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="12" cy="19" r="1"/> </g> </svg> '},1647:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3v13m-5-5 5 5 5-5M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4"/> </g> </svg> '},98535:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m4 12 10-9 7 7-10 10H7l-4-4a3 3 0 0 1 1-4Zm3-3 8 7m-4 4h10"/> </g> </svg> '},43478:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z"/><circle cx="12" cy="12" r="3"/> </g> </svg> '},60097:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9l-6-6Zm0 0v6h6"/> </g> </svg> '},49155:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 7V6a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z"/> </g> </svg> '},17555:function(e,t,i){i.r(t),i.d(t,{angle_down:function(){return o.default},angle_left:function(){return n.default},angle_right:function(){return r.default},angle_up:function(){return s.default},bin:function(){return a.default},cancel:function(){return l.default},center:function(){return c.default},check:function(){return u.default},chevron:function(){return d.default},dots:function(){return h.default},download:function(){return p.default},eraser:function(){return f.default},eye:function(){return m.default},file:function(){return g.default},folder:function(){return v.default},info_circle:function(){return b.default},left:function(){return y.default},lock:function(){return w.default},ok:function(){return _.default},pencil:function(){return S.default},plus:function(){return k.default},resize_handler:function(){return C.default},right:function(){return E.default},save:function(){return I.default},settings:function(){return D.default},unlock:function(){return T.default},update:function(){return j.default},upload:function(){return A.default},valign:function(){return x.default}});var o=i(78173),n=i(16260),r=i(37663),s=i(51036),a=i(31554),l=i(18309),c=i(99762),u=i(7903),d=i(58032),h=i(52507),p=i(1647),f=i(98535),m=i(43478),g=i(60097),v=i(49155),b=i(17176),y=i(57882),w=i(58908),_=i(24829),S=i(4038),k=i(45575),C=i(84858),E=i(445),I=i(36886),D=i(10766),T=i(33651),j=i(20362),A=i(12202),x=i(80152)},17176:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7h.01"/> </g> </svg> '},57882:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2.6667 5.3333h18.6666M2.6667 12H16M2.6667 18.6667h18.6666" stroke-width="2.6667" stroke-linecap="butt"/> </g> </svg> '},58908:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="10" width="16" height="11" rx="2"/><path d="M8 10V7a4 4 0 0 1 8 0v3M12 14v3"/> </g> </svg> '},24829:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m4 12 5 5L20 6"/> </g> </svg> '},4038:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m4 15 11-11a2.8 2.8 0 0 1 4 4L8 19l-5 2 1-6Zm9-9 4 4"/> </g> </svg> '},45575:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 5v14M5 12h14"/> </g> </svg> '},84858:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m7 20 13-13m-6 13 6-6"/> </g> </svg> '},445:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2.6667 5.3333h18.6666M8 12h13.3333M2.6667 18.6667h18.6666" stroke-width="2.6667" stroke-linecap="butt"/> </g> </svg> '},36886:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M5 3h12l4 4v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2ZM7 3v6h9V3M7 21v-7h10v7"/> </g> </svg> '},10766:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m10 2-.5 2.5-2 1.2L5 5l-2 3.5 2 1.7v2.6l-2 1.7L5 18l2.5-.7 2 1.2L10 21h4l.5-2.5 2-1.2 2.5.7 2-3.5-2-1.7v-2.6l2-1.7L19 5l-2.5.7-2-1.2L14 2Z"/><circle cx="12" cy="11.5" r="3"/> </g> </svg> '},33651:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="10" width="16" height="11" rx="2"/><path d="M8 10V7a4 4 0 0 1 7.5-2M12 14v3"/> </g> </svg> '},20362:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 9a8.5 8.5 0 1 0 .5 7M20 3v6h-6"/> </g> </svg> '},12202:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 16V3m-5 5 5-5 5 5M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4"/> </g> </svg> '},80152:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3v18M7 8l5-5 5 5M7 16l5 5 5-5"/> </g> </svg> '},31356:function(e,t,i){i.d(t,{ListReconciler:function(){return o}});class o{static reconcile(e,t,i){let{getId:o,isEqual:n=(e,t)=>o(e)===o(t),preserveOrder:r=!0}=i,s=new Map,a=new Map;e.forEach((e,t)=>{let i=o(e);s.set(i,e),a.set(i,t)});let l=new Map,c=new Map;t.forEach((e,t)=>{let i=o(e);l.set(i,e),c.set(i,t)});let u=[],d=[],h=[],p=[];return t.forEach((e,t)=>{let i=o(e),l=s.get(i);l?!n(l,e)||r&&a.get(i)!==t?d.push({oldItem:l,newItem:e,index:r?t:a.get(i)}):p.push(l):u.push(e)}),e.forEach(e=>{let t=o(e);l.has(t)||h.push(e)}),{toCreate:u,toUpdate:d,toRemove:h,unchanged:p}}static applyResult(e,t,i={}){t.toRemove.forEach(t=>{let o=e.indexOf(t);-1!==o&&(i.onRemove?.(t,o),e.splice(o,1))}),t.toUpdate.forEach(({oldItem:t,newItem:o,index:n})=>{let r=e.indexOf(t);-1!==r&&(i.onUpdate?.(t,o,n),e[r]=o)}),t.toCreate.forEach(t=>{i.onCreate?.(t,e.length),e.push(t)})}}},2692:function(e,t,i){i.d(t,{JoditPro:function(){return a}});var o=i(82758),n=i(63799),r=i(41180),s=i(86019);class a extends s.Jodit{static make(e,t){return new this(e,t)}beforeInitHook(){if(o.IS_PROD&&!o.IS_TEST&&this.o.loadExternalConfig)return(0,n.appendScriptAsync)(this,this.basePath+"config.js")}afterInitHook(){(async()=>{if(await this.e.fire("checkReserve",location.host)!=="normal"){if(this.isInDestruct)return;let e=this.c.div("",'Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>');o.IS_TEST||o.IS_PROD,(0,r.css)(e,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(e)}})().catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+o.APP_VERSION}}},49934:function(e,t,i){i.d(t,{autocomplete:function(){return f}});var o=i(82749),n=i(31635);i(53586);var r=i(83725),s=i(64199),a=i(82758),l=i(65478),c=i(2748),u=i(21537),d=i(50911),h=i(56917),p=i(2692);class f extends d.Plugin{get list(){let e=new r.Autocomplete(this.jodit);return e.setDisplayMode(this.jodit.o.autocomplete.displayMode),e}get popup(){let e=new h.Popup(this.jodit);return e.setMod("padding",!1),e.setContent(this.list.container),"inline"===this.jodit.o.autocomplete.displayMode&&e.setMod("autocomplete-inline",!0),this.jodit.e.on(e,"beforeClose",()=>{this.list.currentSelection=0}),e}afterInit(e){e.e.on("select.autocomplete",t=>{let i=t.value;(0,u.isFunction)(t.insertValueRenderer)&&(i=t.insertValueRenderer(t)),c.Dom.isNode(i)||(i=e.createInside.fromHTML(i)),(0,s.replaceTextLeftOfCursorAfterSpace)(e.s.range,i),this.j.s.setCursorAfter(i),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(e){this.sources.push(e)}unregisterAutocompleteSource(e){let t=this.sources.indexOf(e);-1!==t&&this.sources.splice(t,1)}static isControlKey(e){return e===a.KEY_DOWN||e===a.KEY_UP||e===a.KEY_ENTER||e===a.KEY_TAB}async onKeyDown(e){if(e.key===a.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:t}=this.j;if(f.isControlKey(e.key)||!t.isInsideArea||!t.isCollapsed)return;let i=this.j.s.sel?.rangeCount?this.j.s.sel?.getRangeAt(0):null,o=i&&(0,s.getTextLeftOfCursor)(i).split(" ").pop();if(o&&(0,u.trim)(o).length){let e=await this.onAutoComplete(o);if(!this.isQueryStillAnchored(o)){this.popup.isOpened&&this.popup.close();return}if(e.length)return this.openPopup(e)}this.popup.isOpened&&this.popup.close()}isQueryStillAnchored(e){let{s:t}=this.j;if(!t.isInsideArea||!t.isCollapsed)return!1;let i=t.sel?.rangeCount?t.sel.getRangeAt(0):null;return!!i&&!!i.startContainer.isConnected&&((0,s.getTextLeftOfCursor)(i).split(" ").pop()??"").startsWith(e)}onKeyControlDown(e){if(this.popup.isOpened&&f.isControlKey(e.key)){switch(e.key){case a.KEY_DOWN:this.list.selectNext();break;case a.KEY_UP:this.list.selectPrevious();break;case a.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(e.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}async onAutoComplete(e){let t=[];return await Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(async i=>{t.push(...await this.resolveFeed(e,i))})),t}async resolveFeed(e,t,i){let o;if((0,u.isPromise)(t)&&(t=await t),(0,u.isFunction)(t))o=await t(e);else if((0,u.isArray)(t)){let i=t,{isMatchedQuery:n}=this.j.o.autocomplete;o=i.filter(t=>(0,u.isString)(t)?n(e,t):n(e,t.value)).map(e=>(0,u.isString)(e)?{title:e,value:e}:e)}else o=await this.resolveFeed(e,t.feed,t);if(this.j.isDestructed)return[];if(o&&(0,u.isArray)(o)){let{itemRenderer:e,insertValueRenderer:t,maxItems:n}=this.j.o.autocomplete;return(o=o.map(o=>({itemRenderer:i?.itemRenderer??e,insertValueRenderer:i?.insertValueRenderer??t,...o}))).slice(0,n)}return[]}openPopup(e){this.list.build(e),this.popup.open(()=>{let{j:e}=this,t=e.s.range.getBoundingClientRect(),i={left:t.left,top:t.top,height:t.height,width:t.width};if(e.o.iframe&&e.iframe){let t=(0,u.position)(e.iframe,e);i.top+=t.top,i.left+=t.left}return i})}beforeDestruct(e){e.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...e){super(...e),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"sources",[])}}(0,o._)(f,"requires",["enter","license"]),(0,n.__decorate)([l.cache],f.prototype,"list",null),(0,n.__decorate)([l.cache],f.prototype,"popup",null),(0,n.__decorate)([l.autobind],f.prototype,"registerAutocompleteSource",null),(0,n.__decorate)([l.autobind],f.prototype,"unregisterAutocompleteSource",null),(0,n.__decorate)([(0,l.debounce)()],f.prototype,"onKeyDown",null),(0,n.__decorate)([l.autobind],f.prototype,"onKeyControlDown",null),(0,n.__decorate)([l.autobind],f.prototype,"onEnter",null),(0,n.__decorate)([l.autobind],f.prototype,"onAutoComplete",null),(0,n.__decorate)([l.autobind],f.prototype,"resolveFeed",null),p.JoditPro.plugins.add("autocomplete",f)},53586:function(e,t,i){i(6441).Config.prototype.autocomplete={displayMode:"list",sources:[],maxItems:50,isMatchedQuery:(e,t)=>0===t.toLowerCase().indexOf(e.toLowerCase()),itemRenderer:e=>e.title??e.value,insertValueRenderer:e=>e.value+"&nbsp;"}},64199:function(e,t,i){i.d(t,{getTextLeftOfCursor:function(){return n},replaceTextLeftOfCursorAfterSpace:function(){return r}});var o=i(2748);function n(e){let{startContainer:t,startOffset:i}=e;if(o.Dom.isText(t))return t.nodeValue?.substr(0,i)??"";let n=t.childNodes[i];if(!n)return"";if(o.Dom.isText(n))return n.nodeValue??"";let r=o.Dom.findNotEmptyNeighbor(n,!0,t);return o.Dom.isText(r)?n.nodeValue??"":""}function r(e,t){let{startContainer:i,startOffset:n}=e;if(!o.Dom.isText(i)&&(i=i.childNodes[n-1],o.Dom.isText(i)&&(n=i.nodeValue?.length??0)),o.Dom.isText(i)){let o=i.nodeValue??"",r=o.substring(0,n),s=o.substring(n),a=r.split(" ");a[a.length-1]="";let l=a.join(" ");i.nodeValue=l+s,e.setStart(i,l.length),e.insertNode(t);return}}},83725:function(e,t,i){i.d(t,{Autocomplete:function(){return c}});var o=i(82749),n=i(31635),r=i(31356),s=i(35934),a=i(65478),l=i(62405);class c extends l.UIGroup{className(){return"Autocomplete"}setDisplayMode(e){this.displayMode=e,this.setMod("displayMode",e)}onChangeSelection(){this.elements.forEach(e=>{e.setMod("active",!1),e.showShortcut(!1)});let e=this.elements[this.currentSelection];e&&(e.setMod("active",!0),"inline"===this.displayMode&&e.showShortcut(!0),e.container.scrollIntoView(!1))}build(e){let t=this.elements[this.currentSelection]?.item.value,i=e=>e.value,o=r.ListReconciler.reconcile(this.__previousList,e,{getId:i}),n=new Set;o.toRemove.forEach(e=>{let t=i(e);if(n.has(t))return;n.add(t);let o=this.itemsMap.get(t);o&&(-1!==this.elements.indexOf(o)&&(this.remove(o),o.destruct()),this.itemsMap.delete(e.value))}),o.toCreate.forEach(t=>{let o=i(t);if(n.has(o))return;n.add(o);let r=new s.AutocompleteItem(this.jodit,t,t=>{this.currentSelection=e.findIndex(e=>i(e)===t),this.select()});this.itemsMap.set(o,r);let a=e.indexOf(t);this.append(r,a)}),o.toUpdate.forEach(({newItem:e,index:t})=>{let o=i(e);if(n.has(o))return;n.add(o);let r=this.itemsMap.get(o);r&&(r.item=e,this.elements.indexOf(r)!==t&&t<this.elements.length&&(this.remove(r),this.append(r,t)))});let a=this.currentSelection;this.currentSelection=Math.max(0,e.findIndex(e=>i(e)===t)),a===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...e]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...e){super(...e),(0,o._)(this,"elements",[]),(0,o._)(this,"currentSelection",-1),(0,o._)(this,"displayMode","list"),(0,o._)(this,"__previousList",[]),(0,o._)(this,"itemsMap",new Map)}}(0,n.__decorate)([(0,a.watch)("currentSelection")],c.prototype,"onChangeSelection",null),c=(0,n.__decorate)([a.component],c)},35934:function(e,t,i){i.d(t,{AutocompleteItem:function(){return l}});var o=i(82749),n=i(31635),r=i(65478),s=i(27613),a=i(48538);class l extends a.UIElement{className(){return"AutocompleteItem"}showShortcut(e){if(e&&!this.shortcutElm){let e=this.j.c.element("span");e.className="jodit-autocomplete-item__shortcut",e.innerText="tab",this.container.appendChild(e),this.shortcutElm=e}else!e&&this.shortcutElm&&(this.shortcutElm.remove(),this.shortcutElm=null)}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onClickHandler(){this.onClick(this.value)}constructor(e,t,i){super(e),(0,o._)(this,"item",void 0),(0,o._)(this,"onClick",void 0),(0,o._)(this,"value",void 0),(0,o._)(this,"shortcutElm",void 0),this.item=t,this.onClick=i,this.value="",this.shortcutElm=null;let{container:n}=this;if(this.value=t.value,(0,s.isFunction)(t.itemRenderer)){let e=t.itemRenderer(t);(0,s.isString)(e)?n.innerHTML=e:n.appendChild(e)}else n.innerText=t.title??t.value}}(0,n.__decorate)([(0,r.watch)("container:mousedown container:touchstart")],l.prototype,"onClickPrevent",null),(0,n.__decorate)([(0,r.watch)("container:click")],l.prototype,"onClickHandler",null),l=(0,n.__decorate)([r.component],l)},12373:function(e,t,i){i(25187),i(58858),i(21246),i(49934),i(3115)},38882:function(e,t,i){i.d(t,{isAllowedSubdomain:function(){return n},validateLicense:function(){return function e(t,i){var o;let r;if(o=t=(t+"").toUpperCase().replace(/[‐-―−]/g,"-").replace(/\s+/g,"").replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(o)||n(i))return!0;let s=(r=i.split(".")).map(e=>{let t=e[0];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)+1):t}).concat(r.map(e=>{let t=e[e.length-1];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)-1):t})).map(e=>null!=e&&/\w/.test(e)?e:"r"),a=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((e,t)=>e.replace("{part}",s[t]||"[R-T]"));if(RegExp(`^${a.join("-")}$`,"i").test(t))return!0;if(t.substring(12,13)!==(typeof!i).toUpperCase()[5])return!1;let l=i.split(".");return l.shift(),l.length>1&&e(t,l.join("."))}}});let o=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function n(e){return o.some(t=>new RegExp(t.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(e))}},21246:function(e,t,i){i.d(t,{license:function(){return u}});var o=i(38882),n=i(82758),r=i(2748),s=i(87612),a=i(70799),l=i(20356),c=i(2692);class u extends l.Plugin{static make(e){return new u(e)}afterInit(e){this.j.e.on("checkReserve",async e=>{let t=this.j.o.license;if((0,o.isAllowedSubdomain)(e))return"normal";if(!t||!(0,a.isString)(t))return"";let i=(0,o.validateLicense)(t,e);return i||n.IS_TEST||(i=await this.validateLicenseRemote(t,e)),i?"normal":""})}beforeDestruct(e){}async validateLicenseRemote(e,t){let i="validateJoditLicenseRemote",n=this.j.storage.get(i);if(n&&(0,o.validateLicense)(n,t))return!0;let a=document.createElement("script");return a.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(t)}`,this.j.async.promise(e=>{let n=!1,l=t=>{n||(n=!0,r.Dom.safeRemove(a),e(t))};window.onJoditResolveKeyCode=e=>{if((0,s.isBoolean)(e))return l(e);(0,o.validateLicense)(e,t)?(this.j.storage.set(i,e),l(!0)):l(!1)},a.onerror=()=>l(!0),document.body.appendChild(a),this.j.async.setTimeout(()=>l(!0),5e3)})}}c.JoditPro.plugins.add("license",u)},20823:function(e,t,i){i.d(t,{cleanStyles:function(){return n}});let o={"text-justify":["inter-ideograph"]};function n(e){return e.isElement&&e.attributes.style&&Object.keys(o).forEach(t=>{let i=o[t];e.style.has(t)&&i.includes(e.style.get(t)?.toString())&&e.style.set(t,null)}),e}},47064:function(e,t,i){i.d(t,{clearAttributes:function(){return n}});let o=["cellspacing","cellpadding","border","v:shapes","o:spid"];function n(e){if(/^OLE_LINK\d+$/.test(e.attributes.name)&&(e.attributes.name=null,0===e.length))return e.remove(),null;for(let t of("_GoBack"===e.attributes.name&&(e.attributes.name=null),o))e.attributes[t]&&(e.attributes[t]=null);return e}},41157:function(e,t,i){var o=i(49055);i.d(t,["clearClassName",0,e=>(e.attributes.class&&(e.attributes.class=e.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,o.trim)(e.attributes.class)||(e.attributes.class=null)),e)])},53585:function(e,t,i){var o=i(43712);i.d(t,["convertStyleUnitToPixels",0,(e,{jodit:t})=>{if(!t.o.pasteFromWord.convertUnitsToPixel)return e;let{style:i}=e;return i.forEach(e=>{let t=i.get(e);t&&i.set(e,t.toString().replace(/\d+(\.\d+)?(pt|cm)/g,e=>(0,o.convertUnitToPx)(e)+"px"))}),e}])},80591:function(e,t,i){i.d(t,{convertToList:function(){return l}});var o=i(82758),n=i(10058),r=i(97420),s=i(31269),a=i(43712);function l(e){if((0,r.isPseudoLeaf)(e)){e.name="li",e.style.set("text-indent",null);let u=c(e),d=/[\da-np-zA-NP-Z].?/.test(u)?"ol":"ul",h=function(e,t){for(let t in n.listStyleMap)if(RegExp(t).test(e))return n.listStyleMap[t];return"ol"===t?"decimal":"disc"}(u,d);e.attributes[n.TYPE_KEY]=d,e.attributes[n.STYLE_KEY]=h,(0,s.calcListLevels)(e),function(e){for(;e;){let t=e.previousElement;if(!((0,r.isLeaf)(t)||(0,r.isList)(t)))break;if((0,r.isLeaf)(t)){if(e.attributes[n.LEVEL_KEY]<t.attributes[n.LEVEL_KEY]||e.attributes[n.LEVEL_KEY]===t.attributes[n.LEVEL_KEY]&&e.parent&&(0,r.isSameType)(e,e.parent))break;t.append(e);continue}if(e.attributes[n.LEVEL_KEY]<t.attributes[n.LEVEL_KEY]||e.attributes[n.LEVEL_KEY]===t.attributes[n.LEVEL_KEY]&&!(0,r.isSameType)(e,t))break;t.append(e)}}(e);let{parent:p}=e;if(!(0,r.isList)(p)||!(0,r.isSameType)(e,p)){var t,i,o,l;let s,c=(t=e,i=d,o=u,l=h,(s=t.wrap(i)).attributes.start=(0,a.calcStartBySymbol)(o),s.attributes[n.LEVEL_KEY]=t.attributes[n.LEVEL_KEY],s.attributes[n.STYLE_KEY]=t.attributes[n.STYLE_KEY],s.attributes[n.STYLE_VALID_KEY]=t.attributes[n.STYLE_KEY],s.style.set(n.STYLE_CSS_KEY,l),(0,r.isList)(s)&&s.parent?.name!=="li"&&("disc"===s.style.get(n.STYLE_CSS_KEY)||"decimal"===s.style.get(n.STYLE_CSS_KEY))&&s.style.set(n.STYLE_CSS_KEY,null),s);(0,r.isList)(p)&&(c.remove(),p.lastElement?.append(c))}}return e}let c=e=>e.textBetween(e=>e.isComment&&/\[if.*supportLists.*]/.test((0,r.html)(e)),e=>e.isComment&&/\[endif]/.test((0,r.html)(e))).replace(/&nbsp;/g,"").replace((0,o.SPACE_REG_EXP)(),"")},64693:function(e,t,i){var o=i(20823),n=i(47064),r=i(41157),s=i(53585),a=i(80591),l=i(98940),c=i(72621),u=i(1580),d=i(18616),h=i(84021),p=i(69994),f=i(76059),m=i(21357);let g=[u.processImage,l.markPageBreakElements,h.removeExtraTags,f.replaceOldTags,n.clearAttributes,a.convertToList,d.processLinks,p.removeInsideComment,s.convertStyleUnitToPixels,r.clearClassName,c.normalizeImageProps,m.removeWidthFromTableCell,o.cleanStyles];i.d(t,["cases",0,g])},98940:function(e,t,i){i.d(t,["markPageBreakElements",0,e=>((e.isElement&&"always"===e.style.get("page-break-before")||"page"===e.style.get("break-before"))&&(e.attributes["jd-safe"]=!0,e.style.add("page-break-before","always"),e.isSingle&&(e.name="div")),e)])},72621:function(e,t,i){i.d(t,["normalizeImageProps",0,e=>(e.isElement&&"img"===e.name&&(e.attributes.align&&(e.style.add("float",e.attributes.align),e.attributes.align=null),e.attributes.hspace&&(e.style.add("marginLeft",e.attributes.hspace+"px"),e.style.add("marginRight",e.attributes.hspace+"px"),e.attributes.hspace=null)),e)])},1580:function(e,t,i){var o=i(21537);function n(e,t,i,o){for(let n of e.split(i)){let e=n.split("shplid");if(1<e.length){let i,n=e[1],r="";for(let e=0;e<n.length&&!/[{ \r\n\\]/.test(n[e]);e++)r+=n[e];let s=n.split("bliptag");if(s&&s.length<2)continue;let a=null;if(s[0].indexOf("pngblip")?a="image/png":-1!==s[0].indexOf("jpegblip")&&(a="image/jpeg"),!a)continue;let l=s[1].split("}");if(l&&l.length<2)continue;if(2<l.length&&l[0].includes("blipuid"))i=l[1].split(" ");else{if((i=l[0].split(" "))&&i.length<2)continue;i.shift()}o[t+r]={hex:i.join(""),type:a}}}}i.d(t,["processImage",0,(e,t)=>{if(t.rtf&&"#comment"===e.name&&e.attributes.nodeValue&&-1!==e.attributes.nodeValue.indexOf("<v:shape")){t.shapes||(t.shapes={});let i=t.jodit.create.fromHTML(e.attributes.nodeValue);return(0,o.toArray)(i.getElementsByTagName("v:shape")).forEach(e=>{t.shapes[e.id]=e.getAttribute("o:spid")}),e}if("img"!==e.name)return e;if(t.rtf&&e.attributes["v:shapes"]){let i=t.shapes?.[e.attributes["v:shapes"]];if(i){let o=t.imageMap??{};t.imageMap||(t.imageMap=o,n(t.rtf,"i","\\shppict",t.imageMap),n(t.rtf,"s","\\shp{",t.imageMap));let r=o[i.substring(7)];if(r){let t=[],i=r.hex.match(/[0-9a-f]{2}/gi);if(i){for(let e=0;e<i.length;e++){let o=parseInt(i[e],16);t.push(String.fromCharCode(o))}e.attributes.src="data:"+r.type+";base64,"+btoa(t.join(""))}}}}return e}])},18616:function(e,t,i){i.d(t,["processLinks",0,(e,t)=>{let i=t.links??{};if(e.attributes.href&&e.attributes.href.match(/#.+$/)&&(i[e.attributes.href.match(/#(.+)$/)[1]]=e),e.attributes.name&&i[e.attributes.name]){let t=i[e.attributes.name];t.attributes.href=t.attributes.href.replace(/.*#(.*)$/,"#$1")}return t.links=i,e}])},84021:function(e,t,i){i.d(t,{removeExtraTags:function(){return n}});let o=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function n(e){return"none"===e.style.get("display")||0===e.length&&"span"===e.name||o.has(e.name)?(e.remove(),null):e}},69994:function(e,t,i){i.d(t,{removeInsideComment:function(){return r}});var o=i(99658);let n=0;function r(e){return(e.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,o.html)(e))&&(n++,e.remove()),e.isComment&&n>0&&(0,o.html)(e).includes("[endif]")&&(n=n>0?n-1:0,e.remove()),n&&(e.isText||"img"===e.name&&(!e.attributes.src||/^file:/.test(e.attributes.src))))?(e.remove(),null):e}},76059:function(e,t,i){i.d(t,{replaceOldTags:function(){return n}});let o={i:"em",b:"strong"};function n(e){let{name:t}=e;return t in o&&(e.name=o[t]),e}},21357:function(e,t,i){i.d(t,["removeWidthFromTableCell",0,e=>(e.attributes.width&&("th"===e.name||"td"===e.name)&&(e.attributes.width=null),e)])},13085:function(e,t,i){i(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},10058:function(e,t,i){i.d(t,["LEVEL_KEY",0,"jd-list-level","STYLE_CSS_KEY",0,"list-style-type","STYLE_KEY",0,"jd-list-style-type","STYLE_VALID_KEY",0,"data-list-style-type","TYPE_KEY",0,"jd-list-type","listStyleMap",0,{"·":"disc",o:"circle","§":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}])},18594:function(e,t,i){i.d(t,{isLeaf:function(){return s},isList:function(){return r},isPseudoLeaf:function(){return a},isSameType:function(){return l}});var o=i(99658),n=i(10058);function r(e){return!!(e&&("ol"===e.name||"ul"===e.name))}function s(e){return!!(e&&"li"===e.name)}function a(e){return"li"!==e.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(e.attributes.style)||/msolistparagraph/i.test(e.attributes.class)&&!!e.find(e=>e.isComment&&(0,o.html)(e).includes("supportLists")).length}function l(e,t){let i=e.attributes[n.TYPE_KEY],o=e.attributes[n.STYLE_KEY];return t.name===i&&t.attributes[n.STYLE_KEY]===o&&e.attributes[n.LEVEL_KEY]===t.attributes[n.LEVEL_KEY]}},42968:function(e,t,i){i.d(t,{JElement:function(){return u}});var o=i(82749),n=i(99658),r=i(40273),s=i(82758),a=i(2748),l=i(38837);let c=new Set(s.INSEPARABLE_TAGS);class u{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return c.has(this.name)}get length(){return this.children.length}static make(e,t=null){return new u(e,t)}wrap(e){(0,l.assert)(null!=this.parent,"You can't wrap the root element");let t=u.make(document.createElement(e),this.parent),i=this.parent.children.indexOf(this)??-1;return -1===i?this.parent.append(t):this.parent.children[i]=t,t.append(this),t}append(e){return(0,l.assert)(e!==this,"Forbidden to add to yourself"),e.remove(),this.children.push(e),e.parent=this,this}get previousElement(){if(!this.parent)return null;let{children:e}=this.parent,t=e.indexOf(this);if(-1!==t){for(let i=t-1;i>=0;i-=1)if(e[i].isElement)return e[i]}return null}get lastElement(){let{children:e}=this;for(let t=e.length-1;t>=0;t-=1)if(e[t].isElement)return e[t];return null}get previous(){return this.sibling(!1)??this.parent?.previous??null}get next(){return this.sibling(!0)??this.parent?.next??null}sibling(e){if(!this.parent)return null;let{children:t}=this.parent,i=t.indexOf(this);return -1!==i&&t[i+(e?1:-1)]?t[i+(e?1:-1)]:null}forEach(e,t=!1){for(let i of[...this.children])if(!1===e(i)||t&&!1===i.forEach(e,!0))return!1}find(e,t=!0){let i=[];return this.forEach(t=>{e(t)&&i.push(t)},t),i}map(e){return this.children.map(e)}remove(){let e=this.parent?.children.indexOf(this);return null!=e&&-1!==e&&this.parent?.children.splice(e,1),this}textBetween(e,t){let i=!1,o=[];return this.forEach(r=>{if(!i&&e(r)&&(i=!0),i&&r.isText&&o.push((0,n.html)(r)),i&&t(r))return!1},!0),o.join("")}constructor(e,t){(0,o._)(this,"parent",void 0),(0,o._)(this,"name",void 0),(0,o._)(this,"type",void 0),(0,o._)(this,"attributes",void 0),(0,o._)(this,"style",void 0),(0,o._)(this,"children",void 0),this.parent=t,this.name=e.nodeName.toLowerCase(),this.type=e.nodeType,this.attributes=function(e){let t={};if(a.Dom.isElement(e))for(let i=0,o=e.attributes;i<o.length;i+=1)t[o[i].name]=o[i].value;else t.nodeValue=e.nodeValue;return t}(e),this.style=new r.Style(this.attributes.style),this.children=[],e.childNodes.forEach(e=>this.children.push(u.make(e,this)))}}},97420:function(e,t,i){i.d(t,{JElement:function(){return n.JElement},html:function(){return r.html},innerHTML:function(){return r.innerHTML},isLeaf:function(){return o.isLeaf},isList:function(){return o.isList},isPseudoLeaf:function(){return o.isPseudoLeaf},isSameType:function(){return o.isSameType}});var o=i(18594),n=i(42968),r=i(99658)},99658:function(e,t,i){i.d(t,{html:function(){return s},innerHTML:function(){return l}});var o=i(82758),n=i(87612),r=i(49055);function s(e,t=()=>!0,i=!0,n){switch(!0){case e.isComment:case e.isText:{if(!t(e))return"";let{nodeValue:i}=e.attributes;return e.isComment?`<!--${i}-->`:i}case e.isElement:{let{attributes:o}=e,r=l(e,t,i,n);if(!e.attributes["jd-safe"]&&i&&0===r.replace(/[\n\t]/g,"").length&&!e.isSingle)return"";let s=Object.keys(o).map(e=>"style"===e||null==o[e]||/^jd-/.test(e)?"":`${e}="${c(o[e])}"`).filter(Boolean),{str:u}=e.style,d=c(u(e=>a(e,n)));if(d&&s.push(`style="${d}"`),i&&0===s.length&&["span","a"].includes(e.name))return r;let h=s.length?" "+s.join(" "):"";if(!t(e))return r;return e.isSingle?`<${e.name}${h}/>`:`<${e.name}${h}>${r}</${e.name}>`}default:if(!o.IS_PROD)throw Error("Need implementation for this type")}return""}function a(e,t){if(!t)return!0;if(a.cache.has(t)){let i=a.cache.get(t)?.get(e);if((0,n.isBoolean)(i))return i}let i=t.some(t=>new RegExp(t).test(e)),o=a.cache.get(t)||new Map;return o.set(e,i),a.cache.set(t,o),i}function l(e,t=()=>!0,i=!0,o){let n=e.map(e=>s(e,t,i,o)).join("");return"p"===e.name&&0===(0,r.trim)(n).length&&(n="&nbsp;"),n}function c(e){return e.toString().replace(/"/g,"&quot;")}a.cache=new WeakMap},40273:function(e,t,i){i.d(t,{Style:function(){return u}});var o=i(82749),n=i(31635),r=i(45219),s=i(70799),a=i(12475),l=i(49055),c=i(43712);class u{get keys(){return Object.keys(this._data)}forEach(e){this.keys.forEach(t=>e(t))}clear(){this._data={}}set(e,t){this._data[e]=t}get(e){return this._data[e]??null}has(e){return void 0!==this._data[e]}add(e,t){return this._data=d(this.str()+";"+`${e}:${t}`),this}str(e=e=>!0){let t=Object.keys(this._data).filter(t=>t&&!/^mso-/.test(t)&&e(t)&&null!=this.get(t)),i=e=>(0,s.isString)(e)?/^0[a-z]+$/i.test(e)?"0":e:e.toString();return(["padding","margin"].forEach(e=>{if(this._data[e]){let o=t.indexOf(e),n=(0,c.calcMarginParts)(this._data[e]);["top","right","bottom","left"].forEach((r,s)=>{let a=`${e}-${r}`,l=this._data[a];null!=l&&(t.indexOf(a)<o||i(n[s])===i(l))&&-1!==t.indexOf(a)&&t.splice(t.indexOf(a),1)})}}),t.length)?t.map(e=>`${(0,a.kebabCase)(e)}:${this.get(e)}`).join(";"):""}constructor(e){(0,o._)(this,"_data",void 0),this._data=d(e)}}function d(e){return(function(e){let t={},i=[];for(let o=e.length-1;o>=0;o-=1){let n=e[o][0];t[n]||(t[n]=!0,i.unshift(e[o]))}return i})((e??"").replace(/&quot;/g,'"').split(";").filter(Boolean).map(e=>(0,l.trim)(e).split(":").map(l.trim))).reduce((e,[t,i])=>(t&&i&&(e[t]=i),e),{})}(0,n.__decorate)([r.autobind],u.prototype,"forEach",null),(0,n.__decorate)([r.autobind],u.prototype,"clear",null),(0,n.__decorate)([r.autobind],u.prototype,"set",null),(0,n.__decorate)([r.autobind],u.prototype,"get",null),(0,n.__decorate)([r.autobind],u.prototype,"has",null),(0,n.__decorate)([r.autobind],u.prototype,"add",null),(0,n.__decorate)([r.autobind],u.prototype,"str",null)},51586:function(e,t,i){i.d(t,{applyStylesPro:function(){return l}});var o=i(19606),n=i(2748),r=i(29960),s=i(76078),a=i(97420);function l(e,t,i,c=""){let u=document.createElement("iframe");u.style.display="none",document.body.appendChild(u);try{let n=u.contentDocument??u.contentWindow?.document;if(!n)return t;n.open(),n.write(t),n.close();let l="jd-style";for(let e=0;e<n.styleSheets.length;e+=1)try{let t=n.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)t[e].selectorText&&(0,s.$$)(t[e].selectorText,n.body).forEach(i=>{(0,r.attr)(i,l)||((0,r.attr)(i,l,(0,r.attr)(i,"style")||""),(0,r.attr)(i,"style","")),(0,r.attr)(i,"style",`${(0,r.attr)(i,"style")};${t[e].style.cssText}`)})}catch(e){}return(0,s.$$)(`[${l}]`,n.body).forEach(e=>{(0,r.attr)(e,"style",`${(0,r.attr)(e,"style")};${(0,r.attr)(e,l)}`)}),(0,o.transformWordToHtml)(e,a.JElement.make(n.body),i,c)}finally{n.Dom.safeRemove(u)}}},31269:function(e,t,i){i.d(t,{calcListLevels:function(){return s}});var o=i(43712),n=i(10058),r=i(97420);function s(e){if(void 0!==e.attributes[n.LEVEL_KEY])return;let t=[(0,o.realPixelIndent)(e)],i=[e],s=e.next;for(;s;){if(s.isElement&&!s.attributes[n.LEVEL_KEY]&&(0,r.isPseudoLeaf)(s)){let e=(0,o.realPixelIndent)(s);e&&(t.push(e),i.push(s))}s=s.next}let a=Math.min(...t.filter(e=>e>0)),l=t.map(e=>Math.ceil(e/10));-1!==l.indexOf(0)&&(l=l.map(e=>e+1)),i.forEach((e,t)=>{e.attributes[n.LEVEL_KEY]=l[t],e.style.add("margin-left",`${Math.max((0,o.realPixelIndent)(e)-10*l[t]/a*40,0)}px`)})}},43712:function(e,t,i){let o;function n(e){if(!e)return[0,0,0,0];let t=e.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(t.length){case 2:return[0,1,0,1].map(e=>t[e]);case 3:return[0,1,2,1].map(e=>t[e]);case 4:return[0,1,2,3].map(e=>t[e]);default:return[0,0,0,0].map(e=>t[e])}}function r(e){if("number"==typeof e)return e;if(/%$/.test(e))return 0;o||(Object.assign((o=document.createElement("div")).style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(o),setTimeout(()=>{o?.remove(),o=null}));let t=0>parseFloat(e);t&&(e=e.replace("-","")),o.style.width=e;let i=o.clientWidth;return t?-i:i}function s(e){let{style:t}=e,i=t.keys.filter(e=>/margin/.test(e)),o=Math.max(i.indexOf("margin-left"),i.indexOf("margin")),s=o>0?i[o]:"margin-left";return r("margin"===s?n(t.get("margin"))[3]||0:t.get(s)||0)}function a(e){return/\d.\d/.test(e)?e.split(".").pop()||null:/^\d/.test(e)?(parseInt(e,10)||1).toString():null}i.d(t,{calcMarginParts:function(){return n},calcStartBySymbol:function(){return a},convertUnitToPx:function(){return r},realPixelIndent:function(){return s}})},30717:function(e,t,i){i.d(t,{applyStylesPro:function(){return o.applyStylesPro}});var o=i(51586);i(31269),i(19606)},19606:function(e,t,i){i.d(t,{transformWordToHtml:function(){return s}});var o=i(49055),n=i(64693),r=i(97420);function s(e,t,i,s){let a={jodit:e,rtf:s};return t.forEach(function e(t){if(t){for(let e of n.cases)if(null==(t=e(t,a)))break;t?.forEach(e)}}),i&&t.forEach(e=>{e.style.clear()},!0),(0,o.trim)((0,r.innerHTML)(t,e=>!e.isComment,!0,e.o.pasteFromWord.allowedStyleProps))}},58858:function(e,t,i){i.r(t),i.d(t,{PasteFromWordPro:function(){return u}});var o=i(82749);i(13085);var n=i(30717),r=i(82758),s=i(70799),a=i(117),l=i(31571),c=i(2692);class u extends l.pasteFromWord{insertFromWordByType(e,t,i,o){if(this.j.o.pasteFromWord.enable&&(i===r.INSERT_AS_HTML||i===r.INSERT_AS_TEXT)){if(t=(0,n.applyStylesPro)(this.j,t,i===r.INSERT_AS_TEXT,o.rtf),this.j.o.beautifyHTML){let e=this.j.events?.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e)}(0,a.pasteInsertHtml)(e,this.j,t);return}return super.insertFromWordByType(e,t,i,o)}}(0,o._)(u,"requires",["license"]),c.JoditPro.plugins.remove("pasteFromWord"),c.JoditPro.plugins.add("pasteFromWordPro",u)},82749:function(e,t,i){i.d(t,{_:function(){return o}});function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},31635:function(e,t,i){i.d(t,{__decorate:function(){return o}});function o(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={exports:{}};return s[e].call(i.exports,i,i.exports,l),i.exports}l.m=s,e=[],l.O=function(t,i,o,n){if(i){n=n||0;for(var r=e.length;r>0&&e[r-1][2]>n;r--)e[r]=e[r-1];e[r]=[i,o,n];return}for(var s=1/0,r=0;r<e.length;r++){for(var i=e[r][0],o=e[r][1],n=e[r][2],a=!0,c=0;c<i.length;c++)((1&n)==0||s>=n)&&Object.keys(l.O).every(function(e){return l.O[e](i[c])})?i.splice(c--,1):(a=!1,n<s&&(s=n));if(a){e.splice(r--,1);var u=o();void 0!==u&&(t=u)}}return t},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},i=Object.getPrototypeOf,l.t=function(e,o){if(1&o&&(e=this(e)),8&o||"object"==typeof e&&e&&(4&o&&e.__esModule||16&o&&"function"==typeof e.then))return e;var n=Object.create(null);l.r(n);var r={};t=t||[null,i({}),i([]),i(i)];for(var s=2&o&&e;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=i(s))Object.getOwnPropertyNames(s).forEach(function(t){r[t]=function(){return e[t]}});return r.default=function(){return e},l.d(n,r),n},l.d=function(e,t){if(Array.isArray(t))for(var i=0;i<t.length;){var o=t[i++],n=t[i++],r=0===n?{enumerable:!0,value:t[i++]}:{enumerable:!0,get:n};l.o(e,o)||Object.defineProperty(e,o,r)}else for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o={521:0},l.O.j=function(e){return 0===o[e]},n=function(e,t){var i,n,r=t[0],s=t[1],a=t[2],c=0;if(r.some(function(e){return 0!==o[e]})){for(i in s)l.o(s,i)&&(l.m[i]=s[i]);if(a)var u=a(l)}for(e&&e(t);c<r.length;c++)n=r[c],l.o(o,n)&&o[n]&&o[n][0](),o[n]=0;return l.O(u)},(r=self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r));var c={};l.r(c),l.d(c,{Jodit:function(){return d.JoditPro}}),l(12373);var u=l(31356),d=l(2692);return d.JoditPro.plugins.add("poweredByJodit",function(){}),d.JoditPro.modules.ListReconciler=u.ListReconciler,c=l.O(c)}()});
299
+ </form>`}input(e){return this.getElm(e)}show(e,t){(0,c.css)(this.getElm(e),"display",t?null:"none")}onStateMediaChange(){let{media:e}=this.state;this.show("editPoster",s.Dom.isTag(e,"video")),this.show("sizes",!s.Dom.isTag(e,"audio")),this.show("playback",!s.Dom.isTag(e,"iframe")),this.showPreview()}showPreview(){let{media:e,values:t}=this.state,i=s.Dom.isTag(e,"video")&&!!t.poster;this.show("previewBox",i),(0,l.attr)(this.getElm("preview"),"src",i?t.poster:null)}hideChangePoster(){let{uploader:e,filebrowser:t}=this.j.o,i=!1!==e.showTabInFileSelector&&!!(e.url||e.insertImageAsBase64URI||e.customUploadFunction),o=!!(t.ajax.url||t.items.url);this.show("changePoster",i||o)}onStatePosterChange(){let{poster:e}=this.state.values;this.input("poster").value=e,this.show("removePoster",!!e),this.showPreview()}onPosterChange(){this.state.values.poster=this.input("poster").value}onChangePosterClick(e){this.handlers.openPosterPopup(this.getElm("changePoster")),e.stopPropagation()}onRemovePosterClick(){this.state.values.poster=""}onStateSizeIsLockedChange(){this.getElm("lockSize").innerHTML=d.Icon.get(this.state.sizeIsLocked?"lock":"unlock")}onLockSizeClick(){let{state:e}=this,{values:t}=e;e.sizeIsLocked=!e.sizeIsLocked,e.sizeIsLocked&&(0,a.isNumeric)(t.width)&&(t.height=Math.round(parseFloat(t.width.toString())/e.ratio))}onStateSizeChange(){let{values:e}=this.state;["width","height"].forEach(t=>{let i=this.input(t);i!==this.j.od.activeElement&&(i.value=e[t].toString())})}onSizeInput(e){let{state:t}=this,{values:i}=t,o=this.input("width").value,n=this.input("height").value;if(!t.sizeIsLocked||!(0,a.isNumeric)(o)||!(0,a.isNumeric)(n)){i.width=o,i.height=n;return}let r=parseFloat(o),s=parseFloat(n);e.target===this.input("width")?(i.width=r,i.height=Math.round(r/t.ratio)):(i.width=Math.round(s*t.ratio),i.height=s)}onStateFlagsChange(){let{values:e}=this.state;this.input("autoplay").checked=e.autoplay,this.input("loop").checked=e.loop,this.input("muted").checked=e.muted||e.autoplay,this.input("muted").disabled=e.autoplay,this.input("controls").checked=e.controls||!e.autoplay,this.input("controls").disabled=!e.autoplay}onFlagChange(e){Object.keys(p).forEach(t=>{let i=this.input(t);e.target===i&&(this.state.values[t]=i.checked)})}constructor(e,t,i){super(e),this.state=t,this.handlers=i}};h([(0,n.hook)("ready"),(0,r.watch)("state.media")],m.prototype,"onStateMediaChange",null),h([(0,n.hook)("ready")],m.prototype,"hideChangePoster",null),h([(0,n.hook)("ready"),(0,r.watch)("state.values.poster")],m.prototype,"onStatePosterChange",null),h([(0,r.watch)("poster:change")],m.prototype,"onPosterChange",null),h([(0,r.watch)("changePoster:click")],m.prototype,"onChangePosterClick",null),h([(0,r.watch)("removePoster:click")],m.prototype,"onRemovePosterClick",null),h([(0,n.hook)("ready"),(0,r.watch)("state.sizeIsLocked")],m.prototype,"onStateSizeIsLockedChange",null),h([(0,r.watch)("lockSize:click")],m.prototype,"onLockSizeClick",null),h([(0,n.hook)("ready"),(0,r.watch)(["state.values.width","state.values.height"])],m.prototype,"onStateSizeChange",null),h([(0,r.watch)(["width:input","height:input","width:change","height:change"])],m.prototype,"onSizeInput",null),h([(0,n.hook)("ready"),(0,r.watch)(Object.keys(p).map(e=>"state.values."+e))],m.prototype,"onStateFlagsChange",null),h([(0,r.watch)(Object.keys(p).map(e=>`${e}:change`))],m.prototype,"onFlagChange",null),m=h([o.component],m)},96139:function(e,t,i){var o=i(65478),n=i(2748),r=i(580),s=i(68345),a=i(5700),l=i(37790),c=i(20356),u=i(62843),d=i(56917),h=i(34793),p=i(27828),f=i(54426),m=i(96170),g=i(44909),v=i(14984),b=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class y extends c.Plugin{get __size(){let{width:e,height:t}=this.state.values;return`${e}x${t}`}get form(){return new p.UIVideoPropertiesForm(this.j,this.state,{openPosterPopup:e=>this.__openPosterPopup(e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),buttons:["dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,g.applyValues)(e,this.state,this.__size!==this.__readSize),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{e.s.removeNode(this.state.target),t.close()}),i.cancel.onAction(()=>{t.close()}),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),(0,l.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,u.Button)(e,"ok","Apply","primary"),remove:(0,u.Button)(e,"bin","Delete"),cancel:(0,u.Button)(e,"cancel","Cancel")}}open(e){let t=(0,f.editedMedia)(e);t&&(this.state.target=e,this.state.media=t,(0,f.readValues)(this.state),this.__readSize=this.__size,this.dialog.setHeader(this.j.i18n(n.Dom.isTag(t,"audio")?"Audio properties":"Video properties")),this.dialog.open().setModal(!0).setPosition())}onGenerateReplaceVideoTabs(e,t){return(0,v.videoTabs)(this.j,t,t=>(0,m.replaceMedia)(this.j,e,t))}__openPosterPopup(e){let{j:t,state:i}=this,o=new d.Popup(this.dialog),n=()=>{o.close(),o.destruct()};o.setContent((0,h.FileSelectorWidget)(t,{upload(e){e.files&&e.files.length&&(i.values.poster=e.baseurl+e.files[0]),n()},filebrowser(e){(0,s.isArray)(e.files)&&e.files.length&&(i.values.poster=e.files[0],n())}},null,n)).open(()=>(0,a.position)(e))}afterInit(){}beforeDestruct(){var e,t,i;Object.values(null!=(e=(0,o.cached)(this,"__buttons"))?e:{}).forEach(e=>e.destruct()),null==(t=(0,o.cached)(this,"dialog"))||t.destruct(),null==(i=(0,o.cached)(this,"form"))||i.destruct()}constructor(){super(...arguments),this.state={target:this.j.c.element("video"),media:this.j.c.element("video"),ratio:1,sizeIsLocked:!0,values:{width:"",height:"",poster:"",autoplay:!1,loop:!1,muted:!1,controls:!0}},this.__readSize=""}}b([o.cache],y.prototype,"form",null),b([o.cache],y.prototype,"dialog",null),b([o.cache],y.prototype,"__buttons",null),b([(0,o.watch)(":openVideoProperties")],y.prototype,"open",null),b([(0,o.watch)(":generateReplaceVideoTabs")],y.prototype,"onGenerateReplaceVideoTabs",null),r.pluginSystem.add("videoProperties",y)},44909:function(e,t,i){i.d(t,{applyValues:function(){return u}});var o=i(2748),n=i(29960),r=i(41180),s=i(54426),a=i(14415);let l=e=>""===e?null:(0,a.normalSizeToString)(e);function c(e,t,i){e.hasAttribute(t)!==i&&(0,n.attr)(e,t,i?"":null)}function u(e,t,i){let{media:a,values:u}=t;i&&!o.Dom.isTag(a,"audio")&&function(e,t){var i;let{media:a,values:c}=t;if(o.Dom.isTag(a,"iframe")){["width","height"].forEach(e=>{(0,n.attr)(a,e,""===c[e]?null:c[e]),(0,r.cssInline)(a,e)&&(0,r.css)(a,e,l(c[e]))});let e=a.parentElement;e&&(0,n.attr)(e,"data-jodit_iframe_wrapper")&&(0,r.css)(e,{width:a.offsetWidth,height:a.offsetHeight});return}let u=t.sizeIsLocked&&!(0,s.ownSize)(a,"height");(0,r.css)(a,{width:l(c.width),height:u?null:l(c.height)}),(null==(i=(0,n.attr)(a,"style"))?void 0:i.trim())||(0,n.attr)(a,"style",null),e.e.fire(a,"changesize")}(e,t),!o.Dom.isTag(a,"iframe")&&(o.Dom.isTag(a,"video")&&(0,n.attr)(a,"poster",u.poster||null),c(a,"autoplay",u.autoplay),c(a,"muted",u.autoplay||u.muted),c(a,"loop",u.loop),c(a,"controls",u.controls||!u.autoplay),u.autoplay&&o.Dom.isTag(a,"video")&&c(a,"playsinline",!0))}},14984:function(e,t,i){i.d(t,{videoTabs:function(){return d}});var o=i(21537),n=i(62843),r=i(2525),s=i(12153),a=i(6441),l=i(92762),c=i(37775);function u(e){var t;null==(t=e.files)||t.forEach(t=>{this.s.insertNode((0,o.prepareMedia)(this,this.createInside.element("video",{controls:"",src:e.baseurl+t})))})}function d(e,t,i){let s=null!=i?i:t=>{e.s.restore(),t()},a=new r.UIForm(e,[new r.UIBlock(e,[new r.UIInput(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new r.UIBlock(e,[(0,n.Button)(e,"","Insert","primary").onAction(()=>a.submit())])]),c=new r.UIForm(e,[new r.UIBlock(e,[new r.UITextArea(e,{name:"code",required:!0,label:"Embed code"})]),new r.UIBlock(e,[(0,n.Button)(e,"","Insert","primary").onAction(()=>c.submit())])]),d=[],h=i=>{s(()=>e.s.insertHTML((0,o.prepareEmbedCode)(e,i))),t()};i||e.s.save();let{uploader:p}=e.o;!1!==p.showTabInFileSelector&&(p.url||p.customUploadFunction)&&d.push((0,l.UploadTab)(e,t=>{s(()=>{var i,o;return(null!=(o=null==(i=e.o.video)?void 0:i.defaultHandlerSuccess)?o:u).call(e,t)})},{label:"Drop file",accept:"video/*"})),d.push({icon:"link",name:"Link",content:a.container},{icon:"source",name:"Code",content:c.container}),a.onSubmit(t=>{var i,n,r,s;h((0,o.call)(null!=(n=null==(i=e.o.video)?void 0:i.parseUrlToVideoEmbed)?n:o.convertMediaUrlToVideoEmbed,t.url,{width:null==(r=e.o.video)?void 0:r.defaultWidth,height:null==(s=e.o.video)?void 0:s.defaultHeight}))}),c.onSubmit(e=>{h(e.code)});let f=(0,l.TabsWidget)(e,d);return f.classList.add("jodit-file-selector"),f}a.Config.prototype.video={parseUrlToVideoEmbed:o.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345,defaultHandlerSuccess:u},s.Icon.set("video",c.default),a.Config.prototype.controls.video={popup:(e,t,i)=>d(e,i),tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},26551:function(e,t,i){var o=i(580);i(14984),o.pluginSystem.add("video",function(e){e.registerButton({name:"video",group:"media"})})},37775:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="2" y="5" width="13" height="14" rx="2"/><path d="m15 10 7-4v12l-7-4"/> </g> </svg> '},96967:function(e,t,i){i(6441).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},72253:function(e,t,i){var o=i(82758),n=i(65478),r=i(22732),s=i(580),a=i(70799),l=i(50911);i(96967);var c=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class u extends l.Plugin{afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.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(e){e.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,i=!1;for(;t;){if(t=function(e,t){let i=e,o=e;do if(r.Dom.isElement(o)&&r.Dom.isLeaf(o)&&!r.Dom.isList(o.parentElement)){let e=r.Dom.findNotEmptySibling(o,!1);r.Dom.isTag(i,"ul")?r.Dom.append(i,o):i=r.Dom.wrap(o,"ul",t.createInside),o=e}else break;while(o)return i}(t,e),this.isSuitableStart(t)){i||e.s.save(),i=!0;let o=e.createInside.element(e.o.enter);for(r.Dom.before(t,o);t&&(this.isSuitable(t)||r.Dom.isTag(t,"br"));){let e=t.nextSibling;r.Dom.append(o,t),t=e}o.normalize(),t=o}t=t&&t.nextSibling}i&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){let{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;let i=e.createInside.element(e.o.enter),o=e.createInside.element("br");r.Dom.append(i,o),r.Dom.append(e.editor,i),(e.s.isFocused()||"backSpaceAfterDelete"===e.e.current)&&e.s.setCursorBefore(o),e.e.fire("internalChange")}constructor(){super(...arguments),this.isSuitableStart=e=>{var t;return r.Dom.isText(e)&&(0,a.isString)(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||(null==(t=e.parentNode)?void 0:t.firstChild)===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!r.Dom.isTemporary(e)},this.isSuitable=e=>r.Dom.isText(e)||this.isNotWrapped(e),this.isNotWrapped=e=>r.Dom.isElement(e)&&!(r.Dom.isBlock(e)||r.Dom.isTag(e,this.j.o.wrapNodes.exclude)||function(e){for(let t of r.Dom.eachGen(e))if(r.Dom.isBlock(t)&&!r.Dom.isTag(t,o.NO_EMPTY_TAGS))return!0;return!1}(e))}}c([n.autobind],u.prototype,"postProcessSetEditorValue",null),c([n.autobind],u.prototype,"preprocessInput",null),s.pluginSystem.add("wrapNodes",u)},86012:function(e,t,i){i(6441).Config.prototype.showXPathInStatusbar=!0},83671:function(e,t,i){var o=i(82758),n=i(22732),r=i(580),s=i(49055),a=i(29960),l=i(76078),c=i(50911),u=i(80870),d=i(21491);i(86012);class h extends c.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),(0,a.attr)(this.container,"role","list");let e=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===o.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("pointerup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",e),e(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),n.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new u.ContextMenu(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?n.Dom.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();let i=(0,a.attr)(t.target,"-path")||"/";if("/"===i)return this.j.execCommand("selectall"),!1;try{let e=this.j.ed.evaluate(i,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch(e){}return this.j.s.select(e),!1},this.tpl=(e,t,i,o)=>{let n=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${o}" tabindex="-1"'>${(0,s.trim)(i)}</a></span>`),r=n.firstChild;return this.j.e.on(r,"click",this.onSelectPath.bind(this,e)).on(r,"contextmenu",this.onContext.bind(this,e)),n},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,d.makeButton)(this.j,{name:"selectall",...this.j.o.controls.selectall}),this.selectAllButton.state.size="tiny",this.container&&n.Dom.prepend(this.container,this.selectAllButton.container)},this.calcPathImd=()=>{if(this.isDestructed)return;let e=this.j.s.current();if(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),e){let t,i,o;n.Dom.up(e,e=>{e&&this.j.editor!==e&&!n.Dom.isText(e)&&!n.Dom.isComment(e)&&(t=e.nodeName.toLowerCase(),i=(0,l.getXPathByElement)(e,this.j.editor).replace(/^\//,""),o=this.tpl(e,i,t,this.j.i18n("Select %s",t)),this.container&&n.Dom.prepend(this.container,o))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}}r.pluginSystem.add("xpath",h)},78173:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m6 10 6 6 6-6"/> </g> </svg> '},16260:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m14 6-6 6 6 6"/> </g> </svg> '},37663:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m10 6 6 6-6 6"/> </g> </svg> '},51036:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m6 14 6-6 6 6"/> </g> </svg> '},31554:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 6h18M9 6V4h6v2M5 6l1 14h12l1-14M10 10v6m4-6v6"/> </g> </svg> '},18309:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m6 6 12 12M18 6 6 18"/> </g> </svg> '},99762:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M5.3333 5.3333h13.3334M2.6667 12h18.6666M5.3333 18.6667h13.3334" stroke-width="2.6667" stroke-linecap="butt"/> </g> </svg> '},7903:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h9m-7 8 4 4L21 5"/> </g> </svg> '},58032:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m4 8 8 8 8-8"/> </g> </svg> '},52507:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <circle cx="12" cy="5" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="12" cy="19" r="1"/> </g> </svg> '},1647:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3v13m-5-5 5 5 5-5M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4"/> </g> </svg> '},98535:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m4 12 10-9 7 7-10 10H7l-4-4a3 3 0 0 1 1-4Zm3-3 8 7m-4 4h10"/> </g> </svg> '},43478:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z"/><circle cx="12" cy="12" r="3"/> </g> </svg> '},60097:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9l-6-6Zm0 0v6h6"/> </g> </svg> '},49155:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 7V6a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z"/> </g> </svg> '},17555:function(e,t,i){i.r(t),i.d(t,{angle_down:function(){return o.default},angle_left:function(){return n.default},angle_right:function(){return r.default},angle_up:function(){return s.default},bin:function(){return a.default},cancel:function(){return l.default},center:function(){return c.default},check:function(){return u.default},chevron:function(){return d.default},dots:function(){return h.default},download:function(){return p.default},eraser:function(){return f.default},eye:function(){return m.default},file:function(){return g.default},folder:function(){return v.default},info_circle:function(){return b.default},left:function(){return y.default},lock:function(){return w.default},ok:function(){return _.default},pencil:function(){return S.default},plus:function(){return k.default},resize_handler:function(){return C.default},right:function(){return E.default},save:function(){return I.default},settings:function(){return D.default},unlock:function(){return T.default},update:function(){return j.default},upload:function(){return A.default},valign:function(){return x.default}});var o=i(78173),n=i(16260),r=i(37663),s=i(51036),a=i(31554),l=i(18309),c=i(99762),u=i(7903),d=i(58032),h=i(52507),p=i(1647),f=i(98535),m=i(43478),g=i(60097),v=i(49155),b=i(17176),y=i(57882),w=i(58908),_=i(24829),S=i(4038),k=i(45575),C=i(84858),E=i(445),I=i(36886),D=i(10766),T=i(33651),j=i(20362),A=i(12202),x=i(80152)},17176:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <circle cx="12" cy="12" r="9"/><path d="M12 11v6M12 7h.01"/> </g> </svg> '},57882:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2.6667 5.3333h18.6666M2.6667 12H16M2.6667 18.6667h18.6666" stroke-width="2.6667" stroke-linecap="butt"/> </g> </svg> '},58908:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="10" width="16" height="11" rx="2"/><path d="M8 10V7a4 4 0 0 1 8 0v3M12 14v3"/> </g> </svg> '},24829:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m4 12 5 5L20 6"/> </g> </svg> '},4038:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m4 15 11-11a2.8 2.8 0 0 1 4 4L8 19l-5 2 1-6Zm9-9 4 4"/> </g> </svg> '},45575:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 5v14M5 12h14"/> </g> </svg> '},84858:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m7 20 13-13m-6 13 6-6"/> </g> </svg> '},445:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2.6667 5.3333h18.6666M8 12h13.3333M2.6667 18.6667h18.6666" stroke-width="2.6667" stroke-linecap="butt"/> </g> </svg> '},36886:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M5 3h12l4 4v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2ZM7 3v6h9V3M7 21v-7h10v7"/> </g> </svg> '},10766:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m10 2-.5 2.5-2 1.2L5 5l-2 3.5 2 1.7v2.6l-2 1.7L5 18l2.5-.7 2 1.2L10 21h4l.5-2.5 2-1.2 2.5.7 2-3.5-2-1.7v-2.6l2-1.7L19 5l-2.5.7-2-1.2L14 2Z"/><circle cx="12" cy="11.5" r="3"/> </g> </svg> '},33651:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="10" width="16" height="11" rx="2"/><path d="M8 10V7a4 4 0 0 1 7.5-2M12 14v3"/> </g> </svg> '},20362:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 9a8.5 8.5 0 1 0 .5 7M20 3v6h-6"/> </g> </svg> '},12202:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 16V3m-5 5 5-5 5 5M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4"/> </g> </svg> '},80152:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3v18M7 8l5-5 5 5M7 16l5 5 5-5"/> </g> </svg> '},31356:function(e,t,i){i.d(t,{ListReconciler:function(){return o}});class o{static reconcile(e,t,i){let{getId:o,isEqual:n=(e,t)=>o(e)===o(t),preserveOrder:r=!0}=i,s=new Map,a=new Map;e.forEach((e,t)=>{let i=o(e);s.set(i,e),a.set(i,t)});let l=new Map,c=new Map;t.forEach((e,t)=>{let i=o(e);l.set(i,e),c.set(i,t)});let u=[],d=[],h=[],p=[];return t.forEach((e,t)=>{let i=o(e),l=s.get(i);l?!n(l,e)||r&&a.get(i)!==t?d.push({oldItem:l,newItem:e,index:r?t:a.get(i)}):p.push(l):u.push(e)}),e.forEach(e=>{let t=o(e);l.has(t)||h.push(e)}),{toCreate:u,toUpdate:d,toRemove:h,unchanged:p}}static applyResult(e,t,i={}){t.toRemove.forEach(t=>{let o=e.indexOf(t);-1!==o&&(i.onRemove?.(t,o),e.splice(o,1))}),t.toUpdate.forEach(({oldItem:t,newItem:o,index:n})=>{let r=e.indexOf(t);-1!==r&&(i.onUpdate?.(t,o,n),e[r]=o)}),t.toCreate.forEach(t=>{i.onCreate?.(t,e.length),e.push(t)})}}},2692:function(e,t,i){i.d(t,{JoditPro:function(){return a}});var o=i(82758),n=i(63799),r=i(41180),s=i(86019);class a extends s.Jodit{static make(e,t){return new this(e,t)}beforeInitHook(){if(o.IS_PROD&&!o.IS_TEST&&this.o.loadExternalConfig)return(0,n.appendScriptAsync)(this,this.basePath+"config.js")}afterInitHook(){(async()=>{if(await this.e.fire("checkReserve",location.host)!=="normal"){if(this.isInDestruct)return;let e=this.c.div("",'Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>');o.IS_TEST||o.IS_PROD,(0,r.css)(e,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(e)}})().catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+o.APP_VERSION}}},49934:function(e,t,i){i.d(t,{autocomplete:function(){return f}});var o=i(82749),n=i(31635);i(53586);var r=i(83725),s=i(64199),a=i(82758),l=i(65478),c=i(2748),u=i(21537),d=i(50911),h=i(56917),p=i(2692);class f extends d.Plugin{get list(){let e=new r.Autocomplete(this.jodit);return e.setDisplayMode(this.jodit.o.autocomplete.displayMode),e}get popup(){let e=new h.Popup(this.jodit);return e.setMod("padding",!1),e.setContent(this.list.container),"inline"===this.jodit.o.autocomplete.displayMode&&e.setMod("autocomplete-inline",!0),this.jodit.e.on(e,"beforeClose",()=>{this.list.currentSelection=0}),e}afterInit(e){e.e.on("select.autocomplete",t=>{let i=t.value;(0,u.isFunction)(t.insertValueRenderer)&&(i=t.insertValueRenderer(t)),c.Dom.isNode(i)||(i=e.createInside.fromHTML(i)),(0,s.replaceTextLeftOfCursorAfterSpace)(e.s.range,i),this.j.s.setCursorAfter(i),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(e){this.sources.push(e)}unregisterAutocompleteSource(e){let t=this.sources.indexOf(e);-1!==t&&this.sources.splice(t,1)}static isControlKey(e){return e===a.KEY_DOWN||e===a.KEY_UP||e===a.KEY_ENTER||e===a.KEY_TAB}async onKeyDown(e){if(e.key===a.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:t}=this.j;if(f.isControlKey(e.key)||!t.isInsideArea||!t.isCollapsed)return;let i=this.j.s.sel?.rangeCount?this.j.s.sel?.getRangeAt(0):null,o=i&&(0,s.getTextLeftOfCursor)(i).split(" ").pop();if(o&&(0,u.trim)(o).length){let e=await this.onAutoComplete(o);if(!this.isQueryStillAnchored(o)){this.popup.isOpened&&this.popup.close();return}if(e.length)return this.openPopup(e)}this.popup.isOpened&&this.popup.close()}isQueryStillAnchored(e){let{s:t}=this.j;if(!t.isInsideArea||!t.isCollapsed)return!1;let i=t.sel?.rangeCount?t.sel.getRangeAt(0):null;return!!i&&!!i.startContainer.isConnected&&((0,s.getTextLeftOfCursor)(i).split(" ").pop()??"").startsWith(e)}onKeyControlDown(e){if(this.popup.isOpened&&f.isControlKey(e.key)){switch(e.key){case a.KEY_DOWN:this.list.selectNext();break;case a.KEY_UP:this.list.selectPrevious();break;case a.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(e.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}async onAutoComplete(e){let t=[];return await Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(async i=>{t.push(...await this.resolveFeed(e,i))})),t}async resolveFeed(e,t,i){let o;if((0,u.isPromise)(t)&&(t=await t),(0,u.isFunction)(t))o=await t(e);else if((0,u.isArray)(t)){let i=t,{isMatchedQuery:n}=this.j.o.autocomplete;o=i.filter(t=>(0,u.isString)(t)?n(e,t):n(e,t.value)).map(e=>(0,u.isString)(e)?{title:e,value:e}:e)}else o=await this.resolveFeed(e,t.feed,t);if(this.j.isDestructed)return[];if(o&&(0,u.isArray)(o)){let{itemRenderer:e,insertValueRenderer:t,maxItems:n}=this.j.o.autocomplete;return(o=o.map(o=>({itemRenderer:i?.itemRenderer??e,insertValueRenderer:i?.insertValueRenderer??t,...o}))).slice(0,n)}return[]}openPopup(e){this.list.build(e),this.popup.open(()=>{let{j:e}=this,t=e.s.range.getBoundingClientRect(),i={left:t.left,top:t.top,height:t.height,width:t.width};if(e.o.iframe&&e.iframe){let t=(0,u.position)(e.iframe,e);i.top+=t.top,i.left+=t.left}return i})}beforeDestruct(e){e.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...e){super(...e),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"sources",[])}}(0,o._)(f,"requires",["enter","license"]),(0,n.__decorate)([l.cache],f.prototype,"list",null),(0,n.__decorate)([l.cache],f.prototype,"popup",null),(0,n.__decorate)([l.autobind],f.prototype,"registerAutocompleteSource",null),(0,n.__decorate)([l.autobind],f.prototype,"unregisterAutocompleteSource",null),(0,n.__decorate)([(0,l.debounce)()],f.prototype,"onKeyDown",null),(0,n.__decorate)([l.autobind],f.prototype,"onKeyControlDown",null),(0,n.__decorate)([l.autobind],f.prototype,"onEnter",null),(0,n.__decorate)([l.autobind],f.prototype,"onAutoComplete",null),(0,n.__decorate)([l.autobind],f.prototype,"resolveFeed",null),p.JoditPro.plugins.add("autocomplete",f)},53586:function(e,t,i){i(6441).Config.prototype.autocomplete={displayMode:"list",sources:[],maxItems:50,isMatchedQuery:(e,t)=>0===t.toLowerCase().indexOf(e.toLowerCase()),itemRenderer:e=>e.title??e.value,insertValueRenderer:e=>e.value+"&nbsp;"}},64199:function(e,t,i){i.d(t,{getTextLeftOfCursor:function(){return n},replaceTextLeftOfCursorAfterSpace:function(){return r}});var o=i(2748);function n(e){let{startContainer:t,startOffset:i}=e;if(o.Dom.isText(t))return t.nodeValue?.substr(0,i)??"";let n=t.childNodes[i];if(!n)return"";if(o.Dom.isText(n))return n.nodeValue??"";let r=o.Dom.findNotEmptyNeighbor(n,!0,t);return o.Dom.isText(r)?n.nodeValue??"":""}function r(e,t){let{startContainer:i,startOffset:n}=e;if(!o.Dom.isText(i)&&(i=i.childNodes[n-1],o.Dom.isText(i)&&(n=i.nodeValue?.length??0)),o.Dom.isText(i)){let o=i.nodeValue??"",r=o.substring(0,n),s=o.substring(n),a=r.split(" ");a[a.length-1]="";let l=a.join(" ");i.nodeValue=l+s,e.setStart(i,l.length),e.insertNode(t);return}}},83725:function(e,t,i){i.d(t,{Autocomplete:function(){return c}});var o=i(82749),n=i(31635),r=i(31356),s=i(35934),a=i(65478),l=i(62405);class c extends l.UIGroup{className(){return"Autocomplete"}setDisplayMode(e){this.displayMode=e,this.setMod("displayMode",e)}onChangeSelection(){this.elements.forEach(e=>{e.setMod("active",!1),e.showShortcut(!1)});let e=this.elements[this.currentSelection];e&&(e.setMod("active",!0),"inline"===this.displayMode&&e.showShortcut(!0),e.container.scrollIntoView(!1))}build(e){let t=this.elements[this.currentSelection]?.item.value,i=e=>e.value,o=r.ListReconciler.reconcile(this.__previousList,e,{getId:i}),n=new Set;o.toRemove.forEach(e=>{let t=i(e);if(n.has(t))return;n.add(t);let o=this.itemsMap.get(t);o&&(-1!==this.elements.indexOf(o)&&(this.remove(o),o.destruct()),this.itemsMap.delete(e.value))}),o.toCreate.forEach(t=>{let o=i(t);if(n.has(o))return;n.add(o);let r=new s.AutocompleteItem(this.jodit,t,t=>{this.currentSelection=e.findIndex(e=>i(e)===t),this.select()});this.itemsMap.set(o,r);let a=e.indexOf(t);this.append(r,a)}),o.toUpdate.forEach(({newItem:e,index:t})=>{let o=i(e);if(n.has(o))return;n.add(o);let r=this.itemsMap.get(o);r&&(r.item=e,this.elements.indexOf(r)!==t&&t<this.elements.length&&(this.remove(r),this.append(r,t)))});let a=this.currentSelection;this.currentSelection=Math.max(0,e.findIndex(e=>i(e)===t)),a===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...e]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...e){super(...e),(0,o._)(this,"elements",[]),(0,o._)(this,"currentSelection",-1),(0,o._)(this,"displayMode","list"),(0,o._)(this,"__previousList",[]),(0,o._)(this,"itemsMap",new Map)}}(0,n.__decorate)([(0,a.watch)("currentSelection")],c.prototype,"onChangeSelection",null),c=(0,n.__decorate)([a.component],c)},35934:function(e,t,i){i.d(t,{AutocompleteItem:function(){return l}});var o=i(82749),n=i(31635),r=i(65478),s=i(27613),a=i(48538);class l extends a.UIElement{className(){return"AutocompleteItem"}showShortcut(e){if(e&&!this.shortcutElm){let e=this.j.c.element("span");e.className="jodit-autocomplete-item__shortcut",e.innerText="tab",this.container.appendChild(e),this.shortcutElm=e}else!e&&this.shortcutElm&&(this.shortcutElm.remove(),this.shortcutElm=null)}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onClickHandler(){this.onClick(this.value)}constructor(e,t,i){super(e),(0,o._)(this,"item",void 0),(0,o._)(this,"onClick",void 0),(0,o._)(this,"value",void 0),(0,o._)(this,"shortcutElm",void 0),this.item=t,this.onClick=i,this.value="",this.shortcutElm=null;let{container:n}=this;if(this.value=t.value,(0,s.isFunction)(t.itemRenderer)){let e=t.itemRenderer(t);(0,s.isString)(e)?n.innerHTML=e:n.appendChild(e)}else n.innerText=t.title??t.value}}(0,n.__decorate)([(0,r.watch)("container:mousedown container:touchstart")],l.prototype,"onClickPrevent",null),(0,n.__decorate)([(0,r.watch)("container:click")],l.prototype,"onClickHandler",null),l=(0,n.__decorate)([r.component],l)},12373:function(e,t,i){i(25187),i(58858),i(21246),i(49934),i(3115)},38882:function(e,t,i){i.d(t,{isAllowedSubdomain:function(){return n},validateLicense:function(){return function e(t,i){var o;let r;if(o=t=(t+"").toUpperCase().replace(/[‐-―−]/g,"-").replace(/\s+/g,"").replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(o)||n(i))return!0;let s=(r=i.split(".")).map(e=>{let t=e[0];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)+1):t}).concat(r.map(e=>{let t=e[e.length-1];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)-1):t})).map(e=>null!=e&&/\w/.test(e)?e:"r"),a=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((e,t)=>e.replace("{part}",s[t]||"[R-T]"));if(RegExp(`^${a.join("-")}$`,"i").test(t))return!0;if(t.substring(12,13)!==(typeof!i).toUpperCase()[5])return!1;let l=i.split(".");return l.shift(),l.length>1&&e(t,l.join("."))}}});let o=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function n(e){return o.some(t=>new RegExp(t.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(e))}},21246:function(e,t,i){i.d(t,{license:function(){return u}});var o=i(38882),n=i(82758),r=i(2748),s=i(87612),a=i(70799),l=i(20356),c=i(2692);class u extends l.Plugin{static make(e){return new u(e)}afterInit(e){this.j.e.on("checkReserve",async e=>{let t=this.j.o.license;if((0,o.isAllowedSubdomain)(e))return"normal";if(!t||!(0,a.isString)(t))return"";let i=(0,o.validateLicense)(t,e);return i||n.IS_TEST||(i=await this.validateLicenseRemote(t,e)),i?"normal":""})}beforeDestruct(e){}async validateLicenseRemote(e,t){let i="validateJoditLicenseRemote",n=this.j.storage.get(i);if(n&&(0,o.validateLicense)(n,t))return!0;let a=document.createElement("script");return a.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(t)}`,this.j.async.promise(e=>{let n=!1,l=t=>{n||(n=!0,r.Dom.safeRemove(a),e(t))};window.onJoditResolveKeyCode=e=>{if((0,s.isBoolean)(e))return l(e);(0,o.validateLicense)(e,t)?(this.j.storage.set(i,e),l(!0)):l(!1)},a.onerror=()=>l(!0),document.body.appendChild(a),this.j.async.setTimeout(()=>l(!0),5e3)})}}c.JoditPro.plugins.add("license",u)},20823:function(e,t,i){i.d(t,{cleanStyles:function(){return n}});let o={"text-justify":["inter-ideograph"]};function n(e){return e.isElement&&e.attributes.style&&Object.keys(o).forEach(t=>{let i=o[t];e.style.has(t)&&i.includes(e.style.get(t)?.toString())&&e.style.set(t,null)}),e}},47064:function(e,t,i){i.d(t,{clearAttributes:function(){return n}});let o=["cellspacing","cellpadding","border","v:shapes","o:spid"];function n(e){if(/^OLE_LINK\d+$/.test(e.attributes.name)&&(e.attributes.name=null,0===e.length))return e.remove(),null;for(let t of("_GoBack"===e.attributes.name&&(e.attributes.name=null),o))e.attributes[t]&&(e.attributes[t]=null);return e}},41157:function(e,t,i){var o=i(49055);i.d(t,["clearClassName",0,e=>(e.attributes.class&&(e.attributes.class=e.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,o.trim)(e.attributes.class)||(e.attributes.class=null)),e)])},53585:function(e,t,i){var o=i(43712);i.d(t,["convertStyleUnitToPixels",0,(e,{jodit:t})=>{if(!t.o.pasteFromWord.convertUnitsToPixel)return e;let{style:i}=e;return i.forEach(e=>{let t=i.get(e);t&&i.set(e,t.toString().replace(/\d+(\.\d+)?(pt|cm)/g,e=>(0,o.convertUnitToPx)(e)+"px"))}),e}])},80591:function(e,t,i){i.d(t,{convertToList:function(){return l}});var o=i(82758),n=i(10058),r=i(97420),s=i(31269),a=i(43712);function l(e){if((0,r.isPseudoLeaf)(e)){e.name="li",e.style.set("text-indent",null);let u=c(e),d=/[\da-np-zA-NP-Z].?/.test(u)?"ol":"ul",h=function(e,t){for(let t in n.listStyleMap)if(RegExp(t).test(e))return n.listStyleMap[t];return"ol"===t?"decimal":"disc"}(u,d);e.attributes[n.TYPE_KEY]=d,e.attributes[n.STYLE_KEY]=h,(0,s.calcListLevels)(e),function(e){for(;e;){let t=e.previousElement;if(!((0,r.isLeaf)(t)||(0,r.isList)(t)))break;if((0,r.isLeaf)(t)){if(e.attributes[n.LEVEL_KEY]<t.attributes[n.LEVEL_KEY]||e.attributes[n.LEVEL_KEY]===t.attributes[n.LEVEL_KEY]&&e.parent&&(0,r.isSameType)(e,e.parent))break;t.append(e);continue}if(e.attributes[n.LEVEL_KEY]<t.attributes[n.LEVEL_KEY]||e.attributes[n.LEVEL_KEY]===t.attributes[n.LEVEL_KEY]&&!(0,r.isSameType)(e,t))break;t.append(e)}}(e);let{parent:p}=e;if(!(0,r.isList)(p)||!(0,r.isSameType)(e,p)){var t,i,o,l;let s,c=(t=e,i=d,o=u,l=h,(s=t.wrap(i)).attributes.start=(0,a.calcStartBySymbol)(o),s.attributes[n.LEVEL_KEY]=t.attributes[n.LEVEL_KEY],s.attributes[n.STYLE_KEY]=t.attributes[n.STYLE_KEY],s.attributes[n.STYLE_VALID_KEY]=t.attributes[n.STYLE_KEY],s.style.set(n.STYLE_CSS_KEY,l),(0,r.isList)(s)&&s.parent?.name!=="li"&&("disc"===s.style.get(n.STYLE_CSS_KEY)||"decimal"===s.style.get(n.STYLE_CSS_KEY))&&s.style.set(n.STYLE_CSS_KEY,null),s);(0,r.isList)(p)&&(c.remove(),p.lastElement?.append(c))}}return e}let c=e=>e.textBetween(e=>e.isComment&&/\[if.*supportLists.*]/.test((0,r.html)(e)),e=>e.isComment&&/\[endif]/.test((0,r.html)(e))).replace(/&nbsp;/g,"").replace((0,o.SPACE_REG_EXP)(),"")},64693:function(e,t,i){var o=i(20823),n=i(47064),r=i(41157),s=i(53585),a=i(80591),l=i(98940),c=i(72621),u=i(1580),d=i(18616),h=i(84021),p=i(69994),f=i(76059),m=i(21357);let g=[u.processImage,l.markPageBreakElements,h.removeExtraTags,f.replaceOldTags,n.clearAttributes,a.convertToList,d.processLinks,p.removeInsideComment,s.convertStyleUnitToPixels,r.clearClassName,c.normalizeImageProps,m.removeWidthFromTableCell,o.cleanStyles];i.d(t,["cases",0,g])},98940:function(e,t,i){i.d(t,["markPageBreakElements",0,e=>((e.isElement&&"always"===e.style.get("page-break-before")||"page"===e.style.get("break-before"))&&(e.attributes["jd-safe"]=!0,e.style.add("page-break-before","always"),e.isSingle&&(e.name="div")),e)])},72621:function(e,t,i){i.d(t,["normalizeImageProps",0,e=>(e.isElement&&"img"===e.name&&(e.attributes.align&&(e.style.add("float",e.attributes.align),e.attributes.align=null),e.attributes.hspace&&(e.style.add("marginLeft",e.attributes.hspace+"px"),e.style.add("marginRight",e.attributes.hspace+"px"),e.attributes.hspace=null)),e)])},1580:function(e,t,i){var o=i(21537);function n(e,t,i,o){for(let n of e.split(i)){let e=n.split("shplid");if(1<e.length){let i,n=e[1],r="";for(let e=0;e<n.length&&!/[{ \r\n\\]/.test(n[e]);e++)r+=n[e];let s=n.split("bliptag");if(s&&s.length<2)continue;let a=null;if(s[0].indexOf("pngblip")?a="image/png":-1!==s[0].indexOf("jpegblip")&&(a="image/jpeg"),!a)continue;let l=s[1].split("}");if(l&&l.length<2)continue;if(2<l.length&&l[0].includes("blipuid"))i=l[1].split(" ");else{if((i=l[0].split(" "))&&i.length<2)continue;i.shift()}o[t+r]={hex:i.join(""),type:a}}}}i.d(t,["processImage",0,(e,t)=>{if(t.rtf&&"#comment"===e.name&&e.attributes.nodeValue&&-1!==e.attributes.nodeValue.indexOf("<v:shape")){t.shapes||(t.shapes={});let i=t.jodit.create.fromHTML(e.attributes.nodeValue);return(0,o.toArray)(i.getElementsByTagName("v:shape")).forEach(e=>{t.shapes[e.id]=e.getAttribute("o:spid")}),e}if("img"!==e.name)return e;if(t.rtf&&e.attributes["v:shapes"]){let i=t.shapes?.[e.attributes["v:shapes"]];if(i){let o=t.imageMap??{};t.imageMap||(t.imageMap=o,n(t.rtf,"i","\\shppict",t.imageMap),n(t.rtf,"s","\\shp{",t.imageMap));let r=o[i.substring(7)];if(r){let t=[],i=r.hex.match(/[0-9a-f]{2}/gi);if(i){for(let e=0;e<i.length;e++){let o=parseInt(i[e],16);t.push(String.fromCharCode(o))}e.attributes.src="data:"+r.type+";base64,"+btoa(t.join(""))}}}}return e}])},18616:function(e,t,i){i.d(t,["processLinks",0,(e,t)=>{let i=t.links??{};if(e.attributes.href&&e.attributes.href.match(/#.+$/)&&(i[e.attributes.href.match(/#(.+)$/)[1]]=e),e.attributes.name&&i[e.attributes.name]){let t=i[e.attributes.name];t.attributes.href=t.attributes.href.replace(/.*#(.*)$/,"#$1")}return t.links=i,e}])},84021:function(e,t,i){i.d(t,{removeExtraTags:function(){return n}});let o=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function n(e){return"none"===e.style.get("display")||0===e.length&&"span"===e.name||o.has(e.name)?(e.remove(),null):e}},69994:function(e,t,i){i.d(t,{removeInsideComment:function(){return r}});var o=i(99658);let n=0;function r(e){return(e.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,o.html)(e))&&(n++,e.remove()),e.isComment&&n>0&&(0,o.html)(e).includes("[endif]")&&(n=n>0?n-1:0,e.remove()),n&&(e.isText||"img"===e.name&&(!e.attributes.src||/^file:/.test(e.attributes.src))))?(e.remove(),null):e}},76059:function(e,t,i){i.d(t,{replaceOldTags:function(){return n}});let o={i:"em",b:"strong"};function n(e){let{name:t}=e;return t in o&&(e.name=o[t]),e}},21357:function(e,t,i){i.d(t,["removeWidthFromTableCell",0,e=>(e.attributes.width&&("th"===e.name||"td"===e.name)&&(e.attributes.width=null),e)])},13085:function(e,t,i){i(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},10058:function(e,t,i){i.d(t,["LEVEL_KEY",0,"jd-list-level","STYLE_CSS_KEY",0,"list-style-type","STYLE_KEY",0,"jd-list-style-type","STYLE_VALID_KEY",0,"data-list-style-type","TYPE_KEY",0,"jd-list-type","listStyleMap",0,{"·":"disc",o:"circle","§":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}])},18594:function(e,t,i){i.d(t,{isLeaf:function(){return s},isList:function(){return r},isPseudoLeaf:function(){return a},isSameType:function(){return l}});var o=i(99658),n=i(10058);function r(e){return!!(e&&("ol"===e.name||"ul"===e.name))}function s(e){return!!(e&&"li"===e.name)}function a(e){return"li"!==e.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(e.attributes.style)||/msolistparagraph/i.test(e.attributes.class)&&!!e.find(e=>e.isComment&&(0,o.html)(e).includes("supportLists")).length}function l(e,t){let i=e.attributes[n.TYPE_KEY],o=e.attributes[n.STYLE_KEY];return t.name===i&&t.attributes[n.STYLE_KEY]===o&&e.attributes[n.LEVEL_KEY]===t.attributes[n.LEVEL_KEY]}},42968:function(e,t,i){i.d(t,{JElement:function(){return u}});var o=i(82749),n=i(99658),r=i(40273),s=i(82758),a=i(2748),l=i(38837);let c=new Set(s.INSEPARABLE_TAGS);class u{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return c.has(this.name)}get length(){return this.children.length}static make(e,t=null){return new u(e,t)}wrap(e){(0,l.assert)(null!=this.parent,"You can't wrap the root element");let t=u.make(document.createElement(e),this.parent),i=this.parent.children.indexOf(this)??-1;return -1===i?this.parent.append(t):this.parent.children[i]=t,t.append(this),t}append(e){return(0,l.assert)(e!==this,"Forbidden to add to yourself"),e.remove(),this.children.push(e),e.parent=this,this}get previousElement(){if(!this.parent)return null;let{children:e}=this.parent,t=e.indexOf(this);if(-1!==t){for(let i=t-1;i>=0;i-=1)if(e[i].isElement)return e[i]}return null}get lastElement(){let{children:e}=this;for(let t=e.length-1;t>=0;t-=1)if(e[t].isElement)return e[t];return null}get previous(){return this.sibling(!1)??this.parent?.previous??null}get next(){return this.sibling(!0)??this.parent?.next??null}sibling(e){if(!this.parent)return null;let{children:t}=this.parent,i=t.indexOf(this);return -1!==i&&t[i+(e?1:-1)]?t[i+(e?1:-1)]:null}forEach(e,t=!1){for(let i of[...this.children])if(!1===e(i)||t&&!1===i.forEach(e,!0))return!1}find(e,t=!0){let i=[];return this.forEach(t=>{e(t)&&i.push(t)},t),i}map(e){return this.children.map(e)}remove(){let e=this.parent?.children.indexOf(this);return null!=e&&-1!==e&&this.parent?.children.splice(e,1),this}textBetween(e,t){let i=!1,o=[];return this.forEach(r=>{if(!i&&e(r)&&(i=!0),i&&r.isText&&o.push((0,n.html)(r)),i&&t(r))return!1},!0),o.join("")}constructor(e,t){(0,o._)(this,"parent",void 0),(0,o._)(this,"name",void 0),(0,o._)(this,"type",void 0),(0,o._)(this,"attributes",void 0),(0,o._)(this,"style",void 0),(0,o._)(this,"children",void 0),this.parent=t,this.name=e.nodeName.toLowerCase(),this.type=e.nodeType,this.attributes=function(e){let t={};if(a.Dom.isElement(e))for(let i=0,o=e.attributes;i<o.length;i+=1)t[o[i].name]=o[i].value;else t.nodeValue=e.nodeValue;return t}(e),this.style=new r.Style(this.attributes.style),this.children=[],e.childNodes.forEach(e=>this.children.push(u.make(e,this)))}}},97420:function(e,t,i){i.d(t,{JElement:function(){return n.JElement},html:function(){return r.html},innerHTML:function(){return r.innerHTML},isLeaf:function(){return o.isLeaf},isList:function(){return o.isList},isPseudoLeaf:function(){return o.isPseudoLeaf},isSameType:function(){return o.isSameType}});var o=i(18594),n=i(42968),r=i(99658)},99658:function(e,t,i){i.d(t,{html:function(){return s},innerHTML:function(){return l}});var o=i(82758),n=i(87612),r=i(49055);function s(e,t=()=>!0,i=!0,n){switch(!0){case e.isComment:case e.isText:{if(!t(e))return"";let{nodeValue:i}=e.attributes;return e.isComment?`<!--${i}-->`:i}case e.isElement:{let{attributes:o}=e,r=l(e,t,i,n);if(!e.attributes["jd-safe"]&&i&&0===r.replace(/[\n\t]/g,"").length&&!e.isSingle)return"";let s=Object.keys(o).map(e=>"style"===e||null==o[e]||/^jd-/.test(e)?"":`${e}="${c(o[e])}"`).filter(Boolean),{str:u}=e.style,d=c(u(e=>a(e,n)));if(d&&s.push(`style="${d}"`),i&&0===s.length&&["span","a"].includes(e.name))return r;let h=s.length?" "+s.join(" "):"";if(!t(e))return r;return e.isSingle?`<${e.name}${h}/>`:`<${e.name}${h}>${r}</${e.name}>`}default:if(!o.IS_PROD)throw Error("Need implementation for this type")}return""}function a(e,t){if(!t)return!0;if(a.cache.has(t)){let i=a.cache.get(t)?.get(e);if((0,n.isBoolean)(i))return i}let i=t.some(t=>new RegExp(t).test(e)),o=a.cache.get(t)||new Map;return o.set(e,i),a.cache.set(t,o),i}function l(e,t=()=>!0,i=!0,o){let n=e.map(e=>s(e,t,i,o)).join("");return"p"===e.name&&0===(0,r.trim)(n).length&&(n="&nbsp;"),n}function c(e){return e.toString().replace(/"/g,"&quot;")}a.cache=new WeakMap},40273:function(e,t,i){i.d(t,{Style:function(){return u}});var o=i(82749),n=i(31635),r=i(45219),s=i(70799),a=i(12475),l=i(49055),c=i(43712);class u{get keys(){return Object.keys(this._data)}forEach(e){this.keys.forEach(t=>e(t))}clear(){this._data={}}set(e,t){this._data[e]=t}get(e){return this._data[e]??null}has(e){return void 0!==this._data[e]}add(e,t){return this._data=d(this.str()+";"+`${e}:${t}`),this}str(e=e=>!0){let t=Object.keys(this._data).filter(t=>t&&!/^mso-/.test(t)&&e(t)&&null!=this.get(t)),i=e=>(0,s.isString)(e)?/^0[a-z]+$/i.test(e)?"0":e:e.toString();return(["padding","margin"].forEach(e=>{if(this._data[e]){let o=t.indexOf(e),n=(0,c.calcMarginParts)(this._data[e]);["top","right","bottom","left"].forEach((r,s)=>{let a=`${e}-${r}`,l=this._data[a];null!=l&&(t.indexOf(a)<o||i(n[s])===i(l))&&-1!==t.indexOf(a)&&t.splice(t.indexOf(a),1)})}}),t.length)?t.map(e=>`${(0,a.kebabCase)(e)}:${this.get(e)}`).join(";"):""}constructor(e){(0,o._)(this,"_data",void 0),this._data=d(e)}}function d(e){return(function(e){let t={},i=[];for(let o=e.length-1;o>=0;o-=1){let n=e[o][0];t[n]||(t[n]=!0,i.unshift(e[o]))}return i})((e??"").replace(/&quot;/g,'"').split(";").filter(Boolean).map(e=>(0,l.trim)(e).split(":").map(l.trim))).reduce((e,[t,i])=>(t&&i&&(e[t]=i),e),{})}(0,n.__decorate)([r.autobind],u.prototype,"forEach",null),(0,n.__decorate)([r.autobind],u.prototype,"clear",null),(0,n.__decorate)([r.autobind],u.prototype,"set",null),(0,n.__decorate)([r.autobind],u.prototype,"get",null),(0,n.__decorate)([r.autobind],u.prototype,"has",null),(0,n.__decorate)([r.autobind],u.prototype,"add",null),(0,n.__decorate)([r.autobind],u.prototype,"str",null)},51586:function(e,t,i){i.d(t,{applyStylesPro:function(){return l}});var o=i(19606),n=i(2748),r=i(29960),s=i(76078),a=i(97420);function l(e,t,i,c=""){let u=document.createElement("iframe");u.style.display="none",document.body.appendChild(u);try{let n=u.contentDocument??u.contentWindow?.document;if(!n)return t;n.open(),n.write(t),n.close();let l="jd-style";for(let e=0;e<n.styleSheets.length;e+=1)try{let t=n.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)t[e].selectorText&&(0,s.$$)(t[e].selectorText,n.body).forEach(i=>{(0,r.attr)(i,l)||((0,r.attr)(i,l,(0,r.attr)(i,"style")||""),(0,r.attr)(i,"style","")),(0,r.attr)(i,"style",`${(0,r.attr)(i,"style")};${t[e].style.cssText}`)})}catch(e){}return(0,s.$$)(`[${l}]`,n.body).forEach(e=>{(0,r.attr)(e,"style",`${(0,r.attr)(e,"style")};${(0,r.attr)(e,l)}`)}),(0,o.transformWordToHtml)(e,a.JElement.make(n.body),i,c)}finally{n.Dom.safeRemove(u)}}},31269:function(e,t,i){i.d(t,{calcListLevels:function(){return s}});var o=i(43712),n=i(10058),r=i(97420);function s(e){if(void 0!==e.attributes[n.LEVEL_KEY])return;let t=[(0,o.realPixelIndent)(e)],i=[e],s=e.next;for(;s;){if(s.isElement&&!s.attributes[n.LEVEL_KEY]&&(0,r.isPseudoLeaf)(s)){let e=(0,o.realPixelIndent)(s);e&&(t.push(e),i.push(s))}s=s.next}let a=Math.min(...t.filter(e=>e>0)),l=t.map(e=>Math.ceil(e/10));-1!==l.indexOf(0)&&(l=l.map(e=>e+1)),i.forEach((e,t)=>{e.attributes[n.LEVEL_KEY]=l[t],e.style.add("margin-left",`${Math.max((0,o.realPixelIndent)(e)-10*l[t]/a*40,0)}px`)})}},43712:function(e,t,i){let o;function n(e){if(!e)return[0,0,0,0];let t=e.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(t.length){case 2:return[0,1,0,1].map(e=>t[e]);case 3:return[0,1,2,1].map(e=>t[e]);case 4:return[0,1,2,3].map(e=>t[e]);default:return[0,0,0,0].map(e=>t[e])}}function r(e){if("number"==typeof e)return e;if(/%$/.test(e))return 0;o||(Object.assign((o=document.createElement("div")).style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(o),setTimeout(()=>{o?.remove(),o=null}));let t=0>parseFloat(e);t&&(e=e.replace("-","")),o.style.width=e;let i=o.clientWidth;return t?-i:i}function s(e){let{style:t}=e,i=t.keys.filter(e=>/margin/.test(e)),o=Math.max(i.indexOf("margin-left"),i.indexOf("margin")),s=o>0?i[o]:"margin-left";return r("margin"===s?n(t.get("margin"))[3]||0:t.get(s)||0)}function a(e){return/\d.\d/.test(e)?e.split(".").pop()||null:/^\d/.test(e)?(parseInt(e,10)||1).toString():null}i.d(t,{calcMarginParts:function(){return n},calcStartBySymbol:function(){return a},convertUnitToPx:function(){return r},realPixelIndent:function(){return s}})},30717:function(e,t,i){i.d(t,{applyStylesPro:function(){return o.applyStylesPro}});var o=i(51586);i(31269),i(19606)},19606:function(e,t,i){i.d(t,{transformWordToHtml:function(){return s}});var o=i(49055),n=i(64693),r=i(97420);function s(e,t,i,s){let a={jodit:e,rtf:s};return t.forEach(function e(t){if(t){for(let e of n.cases)if(null==(t=e(t,a)))break;t?.forEach(e)}}),i&&t.forEach(e=>{e.style.clear()},!0),(0,o.trim)((0,r.innerHTML)(t,e=>!e.isComment,!0,e.o.pasteFromWord.allowedStyleProps))}},58858:function(e,t,i){i.r(t),i.d(t,{PasteFromWordPro:function(){return u}});var o=i(82749);i(13085);var n=i(30717),r=i(82758),s=i(70799),a=i(117),l=i(31571),c=i(2692);class u extends l.pasteFromWord{insertFromWordByType(e,t,i,o){if(this.j.o.pasteFromWord.enable&&(i===r.INSERT_AS_HTML||i===r.INSERT_AS_TEXT)){if(t=(0,n.applyStylesPro)(this.j,t,i===r.INSERT_AS_TEXT,o.rtf),this.j.o.beautifyHTML){let e=this.j.events?.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e)}(0,a.pasteInsertHtml)(e,this.j,t);return}return super.insertFromWordByType(e,t,i,o)}}(0,o._)(u,"requires",["license"]),c.JoditPro.plugins.remove("pasteFromWord"),c.JoditPro.plugins.add("pasteFromWordPro",u)},82749:function(e,t,i){i.d(t,{_:function(){return o}});function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},31635:function(e,t,i){i.d(t,{__decorate:function(){return o}});function o(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={exports:{}};return s[e].call(i.exports,i,i.exports,l),i.exports}l.m=s,e=[],l.O=function(t,i,o,n){if(i){n=n||0;for(var r=e.length;r>0&&e[r-1][2]>n;r--)e[r]=e[r-1];e[r]=[i,o,n];return}for(var s=1/0,r=0;r<e.length;r++){for(var i=e[r][0],o=e[r][1],n=e[r][2],a=!0,c=0;c<i.length;c++)((1&n)==0||s>=n)&&Object.keys(l.O).every(function(e){return l.O[e](i[c])})?i.splice(c--,1):(a=!1,n<s&&(s=n));if(a){e.splice(r--,1);var u=o();void 0!==u&&(t=u)}}return t},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,{a:t}),t},i=Object.getPrototypeOf,l.t=function(e,o){if(1&o&&(e=this(e)),8&o||"object"==typeof e&&e&&(4&o&&e.__esModule||16&o&&"function"==typeof e.then))return e;var n=Object.create(null);l.r(n);var r={};t=t||[null,i({}),i([]),i(i)];for(var s=2&o&&e;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=i(s))Object.getOwnPropertyNames(s).forEach(function(t){r[t]=function(){return e[t]}});return r.default=function(){return e},l.d(n,r),n},l.d=function(e,t){if(Array.isArray(t))for(var i=0;i<t.length;){var o=t[i++],n=t[i++],r=0===n?{enumerable:!0,value:t[i++]}:{enumerable:!0,get:n};l.o(e,o)||Object.defineProperty(e,o,r)}else for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o={521:0},l.O.j=function(e){return 0===o[e]},n=function(e,t){var i,n,r=t[0],s=t[1],a=t[2],c=0;if(r.some(function(e){return 0!==o[e]})){for(i in s)l.o(s,i)&&(l.m[i]=s[i]);if(a)var u=a(l)}for(e&&e(t);c<r.length;c++)n=r[c],l.o(o,n)&&o[n]&&o[n][0](),o[n]=0;return l.O(u)},(r=self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r));var c={};l.r(c),l.d(c,{Jodit:function(){return d.JoditPro}}),l(12373);var u=l(31356),d=l(2692);return d.JoditPro.plugins.add("poweredByJodit",function(){}),d.JoditPro.modules.ListReconciler=u.ListReconciler,c=l.O(c)}()});