jodit-pro 4.20.4 → 4.20.5

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 (352) hide show
  1. package/es2015/jodit.css +2 -2
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +4 -4
  4. package/es2015/jodit.js +2 -5
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +3 -3
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  11. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  12. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  13. package/es2015/plugins/backup/backup.css +1 -1
  14. package/es2015/plugins/backup/backup.js +1 -1
  15. package/es2015/plugins/backup/backup.min.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.css +1 -1
  17. package/es2015/plugins/button-generator/button-generator.js +1 -1
  18. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  19. package/es2015/plugins/change-case/change-case.js +1 -1
  20. package/es2015/plugins/change-case/change-case.min.js +1 -1
  21. package/es2015/plugins/chart/chart.css +1 -1
  22. package/es2015/plugins/chart/chart.js +1 -1
  23. package/es2015/plugins/chart/chart.min.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.css +1 -1
  25. package/es2015/plugins/color-picker/color-picker.js +1 -1
  26. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  27. package/es2015/plugins/emoji/emoji.css +1 -1
  28. package/es2015/plugins/emoji/emoji.js +1 -1
  29. package/es2015/plugins/emoji/emoji.min.js +1 -1
  30. package/es2015/plugins/export-docs/export-docs.js +1 -1
  31. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  32. package/es2015/plugins/finder/finder.css +1 -1
  33. package/es2015/plugins/finder/finder.js +1 -1
  34. package/es2015/plugins/finder/finder.min.js +1 -1
  35. package/es2015/plugins/google-maps/google-maps.css +1 -1
  36. package/es2015/plugins/google-maps/google-maps.js +1 -1
  37. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  38. package/es2015/plugins/google-search/google-search.js +1 -1
  39. package/es2015/plugins/google-search/google-search.min.js +1 -1
  40. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  41. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  43. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  44. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  45. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  46. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  47. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  48. package/es2015/plugins/keyboard/keyboard.css +1 -1
  49. package/es2015/plugins/keyboard/keyboard.js +1 -1
  50. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  51. package/es2015/plugins/math/math.css +1 -1
  52. package/es2015/plugins/math/math.js +1 -1
  53. package/es2015/plugins/math/math.min.js +1 -1
  54. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  55. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  56. package/es2015/plugins/page-break/page-break.js +1 -1
  57. package/es2015/plugins/page-break/page-break.min.js +1 -1
  58. package/es2015/plugins/paste-code/paste-code.css +1 -1
  59. package/es2015/plugins/paste-code/paste-code.js +1 -1
  60. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  61. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  62. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  63. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  64. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  65. package/es2015/plugins/style/style.css +1 -1
  66. package/es2015/plugins/style/style.js +1 -1
  67. package/es2015/plugins/style/style.min.js +1 -1
  68. package/es2015/plugins/templates/templates.css +1 -1
  69. package/es2015/plugins/templates/templates.js +1 -1
  70. package/es2015/plugins/templates/templates.min.js +1 -1
  71. package/es2015/plugins/todo-list/todo-list.css +1 -1
  72. package/es2015/plugins/todo-list/todo-list.js +1 -1
  73. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  74. package/es2015/plugins/translate/translate.css +1 -1
  75. package/es2015/plugins/translate/translate.js +1 -4
  76. package/es2015/plugins/translate/translate.min.js +2 -2
  77. package/es2015/plugins/tune-block/tune-block.css +1 -1
  78. package/es2015/plugins/tune-block/tune-block.js +1 -1
  79. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  80. package/es2018/jodit.fat.min.css +1 -1
  81. package/es2018/jodit.fat.min.js +4 -4
  82. package/es2018/jodit.min.css +1 -1
  83. package/es2018/jodit.min.js +3 -3
  84. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  85. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  86. package/es2018/plugins/backup/backup.min.js +1 -1
  87. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  88. package/es2018/plugins/change-case/change-case.min.js +1 -1
  89. package/es2018/plugins/chart/chart.min.js +1 -1
  90. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  91. package/es2018/plugins/emoji/emoji.min.js +1 -1
  92. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  93. package/es2018/plugins/finder/finder.min.js +1 -1
  94. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  95. package/es2018/plugins/google-search/google-search.min.js +1 -1
  96. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  97. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  98. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  99. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  100. package/es2018/plugins/math/math.min.js +1 -1
  101. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  102. package/es2018/plugins/page-break/page-break.min.js +1 -1
  103. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  104. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  105. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  106. package/es2018/plugins/style/style.min.js +1 -1
  107. package/es2018/plugins/templates/templates.min.js +1 -1
  108. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  109. package/es2018/plugins/translate/translate.min.js +2 -2
  110. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  111. package/es2021/jodit.css +2 -2
  112. package/es2021/jodit.fat.min.css +1 -1
  113. package/es2021/jodit.fat.min.js +4 -4
  114. package/es2021/jodit.js +2 -5
  115. package/es2021/jodit.min.css +1 -1
  116. package/es2021/jodit.min.js +3 -3
  117. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  118. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  119. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  120. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  121. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  122. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  123. package/es2021/plugins/backup/backup.css +1 -1
  124. package/es2021/plugins/backup/backup.js +1 -1
  125. package/es2021/plugins/backup/backup.min.js +1 -1
  126. package/es2021/plugins/button-generator/button-generator.css +1 -1
  127. package/es2021/plugins/button-generator/button-generator.js +1 -1
  128. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  129. package/es2021/plugins/change-case/change-case.js +1 -1
  130. package/es2021/plugins/change-case/change-case.min.js +1 -1
  131. package/es2021/plugins/chart/chart.css +1 -1
  132. package/es2021/plugins/chart/chart.js +1 -1
  133. package/es2021/plugins/chart/chart.min.js +1 -1
  134. package/es2021/plugins/color-picker/color-picker.css +1 -1
  135. package/es2021/plugins/color-picker/color-picker.js +1 -1
  136. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  137. package/es2021/plugins/emoji/emoji.css +1 -1
  138. package/es2021/plugins/emoji/emoji.js +1 -1
  139. package/es2021/plugins/emoji/emoji.min.js +1 -1
  140. package/es2021/plugins/export-docs/export-docs.js +1 -1
  141. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  142. package/es2021/plugins/finder/finder.css +1 -1
  143. package/es2021/plugins/finder/finder.js +1 -1
  144. package/es2021/plugins/finder/finder.min.js +1 -1
  145. package/es2021/plugins/google-maps/google-maps.css +1 -1
  146. package/es2021/plugins/google-maps/google-maps.js +1 -1
  147. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  148. package/es2021/plugins/google-search/google-search.js +1 -1
  149. package/es2021/plugins/google-search/google-search.min.js +1 -1
  150. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  151. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  152. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  153. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  154. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  155. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  156. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  157. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  158. package/es2021/plugins/keyboard/keyboard.css +1 -1
  159. package/es2021/plugins/keyboard/keyboard.js +1 -1
  160. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  161. package/es2021/plugins/math/math.css +1 -1
  162. package/es2021/plugins/math/math.js +1 -1
  163. package/es2021/plugins/math/math.min.js +1 -1
  164. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  165. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  166. package/es2021/plugins/page-break/page-break.js +1 -1
  167. package/es2021/plugins/page-break/page-break.min.js +1 -1
  168. package/es2021/plugins/paste-code/paste-code.css +1 -1
  169. package/es2021/plugins/paste-code/paste-code.js +1 -1
  170. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  171. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  172. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  173. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  174. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  175. package/es2021/plugins/style/style.css +1 -1
  176. package/es2021/plugins/style/style.js +1 -1
  177. package/es2021/plugins/style/style.min.js +1 -1
  178. package/es2021/plugins/templates/templates.css +1 -1
  179. package/es2021/plugins/templates/templates.js +1 -1
  180. package/es2021/plugins/templates/templates.min.js +1 -1
  181. package/es2021/plugins/todo-list/todo-list.css +1 -1
  182. package/es2021/plugins/todo-list/todo-list.js +1 -1
  183. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  184. package/es2021/plugins/translate/translate.css +1 -1
  185. package/es2021/plugins/translate/translate.js +1 -4
  186. package/es2021/plugins/translate/translate.min.js +2 -2
  187. package/es2021/plugins/tune-block/tune-block.css +1 -1
  188. package/es2021/plugins/tune-block/tune-block.js +1 -1
  189. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  190. package/es2021.en/jodit.css +2 -2
  191. package/es2021.en/jodit.fat.min.css +1 -1
  192. package/es2021.en/jodit.fat.min.js +4 -4
  193. package/es2021.en/jodit.js +2 -5
  194. package/es2021.en/jodit.min.css +1 -1
  195. package/es2021.en/jodit.min.js +3 -3
  196. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  197. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  198. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  199. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  200. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  201. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  202. package/es2021.en/plugins/backup/backup.css +1 -1
  203. package/es2021.en/plugins/backup/backup.js +1 -1
  204. package/es2021.en/plugins/backup/backup.min.js +1 -1
  205. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  206. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  207. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  208. package/es2021.en/plugins/change-case/change-case.js +1 -1
  209. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  210. package/es2021.en/plugins/chart/chart.css +1 -1
  211. package/es2021.en/plugins/chart/chart.js +1 -1
  212. package/es2021.en/plugins/chart/chart.min.js +1 -1
  213. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  214. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  215. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  216. package/es2021.en/plugins/emoji/emoji.css +1 -1
  217. package/es2021.en/plugins/emoji/emoji.js +1 -1
  218. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  219. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  220. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  221. package/es2021.en/plugins/finder/finder.css +1 -1
  222. package/es2021.en/plugins/finder/finder.js +1 -1
  223. package/es2021.en/plugins/finder/finder.min.js +1 -1
  224. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  225. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  226. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  227. package/es2021.en/plugins/google-search/google-search.js +1 -1
  228. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  229. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  230. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  231. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  232. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  233. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  234. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  235. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  236. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  237. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  238. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  239. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  240. package/es2021.en/plugins/math/math.css +1 -1
  241. package/es2021.en/plugins/math/math.js +1 -1
  242. package/es2021.en/plugins/math/math.min.js +1 -1
  243. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  244. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  245. package/es2021.en/plugins/page-break/page-break.js +1 -1
  246. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  247. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  248. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  249. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  250. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  251. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  252. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  253. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  254. package/es2021.en/plugins/style/style.css +1 -1
  255. package/es2021.en/plugins/style/style.js +1 -1
  256. package/es2021.en/plugins/style/style.min.js +1 -1
  257. package/es2021.en/plugins/templates/templates.css +1 -1
  258. package/es2021.en/plugins/templates/templates.js +1 -1
  259. package/es2021.en/plugins/templates/templates.min.js +1 -1
  260. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  261. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  262. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  263. package/es2021.en/plugins/translate/translate.css +1 -1
  264. package/es2021.en/plugins/translate/translate.js +1 -4
  265. package/es2021.en/plugins/translate/translate.min.js +2 -2
  266. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  267. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  268. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  269. package/es5/jodit.css +3 -3
  270. package/es5/jodit.fat.min.css +1 -1
  271. package/es5/jodit.fat.min.js +2 -2
  272. package/es5/jodit.js +2 -5
  273. package/es5/jodit.min.css +3 -3
  274. package/es5/jodit.min.js +2 -2
  275. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  276. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  277. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  278. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  279. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  280. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  281. package/es5/plugins/backup/backup.css +1 -1
  282. package/es5/plugins/backup/backup.js +1 -1
  283. package/es5/plugins/backup/backup.min.js +1 -1
  284. package/es5/plugins/button-generator/button-generator.css +1 -1
  285. package/es5/plugins/button-generator/button-generator.js +1 -1
  286. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  287. package/es5/plugins/change-case/change-case.js +1 -1
  288. package/es5/plugins/change-case/change-case.min.js +1 -1
  289. package/es5/plugins/chart/chart.css +1 -1
  290. package/es5/plugins/chart/chart.js +1 -1
  291. package/es5/plugins/chart/chart.min.js +1 -1
  292. package/es5/plugins/color-picker/color-picker.css +1 -1
  293. package/es5/plugins/color-picker/color-picker.js +1 -1
  294. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  295. package/es5/plugins/emoji/emoji.css +1 -1
  296. package/es5/plugins/emoji/emoji.js +1 -1
  297. package/es5/plugins/emoji/emoji.min.js +1 -1
  298. package/es5/plugins/export-docs/export-docs.js +1 -1
  299. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  300. package/es5/plugins/finder/finder.css +1 -1
  301. package/es5/plugins/finder/finder.js +1 -1
  302. package/es5/plugins/finder/finder.min.js +1 -1
  303. package/es5/plugins/google-maps/google-maps.css +1 -1
  304. package/es5/plugins/google-maps/google-maps.js +1 -1
  305. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  306. package/es5/plugins/google-search/google-search.js +1 -1
  307. package/es5/plugins/google-search/google-search.min.js +1 -1
  308. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  309. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  310. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  311. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  312. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  313. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  314. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  315. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  316. package/es5/plugins/keyboard/keyboard.css +1 -1
  317. package/es5/plugins/keyboard/keyboard.js +1 -1
  318. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  319. package/es5/plugins/math/math.css +1 -1
  320. package/es5/plugins/math/math.js +1 -1
  321. package/es5/plugins/math/math.min.js +1 -1
  322. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  323. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  324. package/es5/plugins/page-break/page-break.js +1 -1
  325. package/es5/plugins/page-break/page-break.min.js +1 -1
  326. package/es5/plugins/paste-code/paste-code.css +1 -1
  327. package/es5/plugins/paste-code/paste-code.js +1 -1
  328. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  329. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  330. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  331. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  332. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  333. package/es5/plugins/style/style.css +1 -1
  334. package/es5/plugins/style/style.js +1 -1
  335. package/es5/plugins/style/style.min.js +1 -1
  336. package/es5/plugins/templates/templates.css +1 -1
  337. package/es5/plugins/templates/templates.js +1 -1
  338. package/es5/plugins/templates/templates.min.js +1 -1
  339. package/es5/plugins/todo-list/todo-list.css +1 -1
  340. package/es5/plugins/todo-list/todo-list.js +1 -1
  341. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  342. package/es5/plugins/translate/translate.css +1 -1
  343. package/es5/plugins/translate/translate.js +1 -4
  344. package/es5/plugins/translate/translate.min.js +2 -2
  345. package/es5/plugins/tune-block/tune-block.css +1 -1
  346. package/es5/plugins/tune-block/tune-block.js +1 -1
  347. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  348. package/es5/polyfills.fat.min.js +1 -1
  349. package/es5/polyfills.js +1 -1
  350. package/es5/polyfills.min.js +1 -1
  351. package/esm/plugins/translate/config.js +1 -1
  352. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.20.4
4
+ * Version: v4.20.5
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
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 n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,function(){return function(){"use strict";var e,t,n,i,o,r,s={6441:function(e,t,n){n.d(t,{Config:function(){return r}});var i=n(82758);let o={};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=i.globalDocument,this.ownerWindow=i.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=i.INSERT_AS_HTML,this.enter=i.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:i.PARAGRAPH,this.defaultMode=i.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:[]},"\n",{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,o)}}o=r.prototype,r.prototype.controls={}},26992:function(e,t,n){n.d(t,{Async:function(){return f}});var i=n(82758),o=n(91898),r=n(12045),s=n(23282),a=n(84767),l=n(72430),c=n(14773),u=n(70799),d=n(86068),h=n(38837),p=n(93661);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...n){if(this.isDestructed)return 0;let i={};(0,d.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(i=t).timeout||0),i.label&&this.clearLabel(i.label);let r=(0,o.setTimeout)(e,t,...n),s=i.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 n=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,o.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,o.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,n=!1){let i=0,a=!1,u=[],d=(...t)=>{if(!a){i=0;let n=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(n)?n.finally(e):e()}}},h=(...r)=>{a=!1,t?(!i&&n&&d(...r),(0,o.clearTimeout)(i),i=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,i)):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 n,i=!1,o=!0;return(...r)=>{if(n=r,i){o=!0;return}o=!0,t&&(o=!1,e(...n)),i=!0,this.__queueMicrotaskNative(()=>{i=!1,!this.isDestructed&&o&&e(...n)})}}throttle(e,t,n=!1){let i=null,o,r,a;return(...n)=>{(o=!0,a=n,t)?i||(r=()=>{o?(e(...a),o=!1,i=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,i)):i=null})():e(...a)}}promise(e){let t=()=>{},n=new Promise((n,i)=>{t=()=>i((0,p.abort)("Abort async")),this.promisesRejections.add(t),e(n,i)});return!n.finally&&"u">typeof process&&!i.IS_ES_NEXT&&(n.finally=e=>(n.then(e).catch(e),n)),n.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),n.rejectCallback=t,n}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 n=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(n),n}requestIdlePromise(e){return this.promise(t=>{let n=this.requestIdleCallback(()=>t(n),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let n=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){var i,o;let r=globalThis.scheduler.postTask(e,(i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({},t),o=o={signal:n.signal},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))}),i));return r.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),r}return this.promise((i,o)=>{let r=this.setTimeout(()=>{try{i(e())}catch(e){o(e)}this.__controllers.delete(n)},t.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(n),o((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,o.clearTimeout)(e)),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,n,i,o;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!=(n=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?n:(e,t)=>{var n;let i=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},null!=(n=null==t?void 0:t.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(o=null==(i=window.cancelIdleCallback)?void 0:i.bind(window))?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,n){n.d(t,{Async:function(){return i.Async}});var i=n(26992)},4012:function(e,t,n){n.d(t,{Component:function(){return l}});var i=n(8884),o=n(78213),r=n(580),s=n(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,n){let i=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),i.push(`__${e}`)),t&&(i.push("_",t),i.push("_",(0,s.isVoid)(n)?"true":n.toString())),i.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===o.STATUSES.ready}get isDestructed(){return this.componentStatus===o.STATUSES.destructed}get isInDestruct(){return o.STATUSES.beforeDestruct===this.componentStatus||o.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(o.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(o.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 n=Object.getPrototypeOf(this);n&&(0,s.isFunction)(n.setStatusComponent)&&n.setStatusComponent(e,t);let i=a.get(this),o=null==i?void 0:i[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let n=a.get(this);n||(n={},a.set(this,n)),n[e]||(n[e]=[]),n[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new i.Async,this.ownerWindow=window,this.__componentStatus=o.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=o.STATUSES},91907:function(e,t,n){n.d(t,{Component:function(){return i.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var i=n(4012),o=n(78213),r=n(80480)},78213:function(e,t,n){n.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},80480:function(e,t,n){n.d(t,{ViewComponent:function(){return o}});var i=n(4012);class o extends i.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,n){n.r(t),n.d(t,{IS_TEST:function(){return i}});let i=!1,o="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",b="ArrowDown",v="Delete",y=[u,d,v,m,b,g,f,h,p,"F3","Tab"],w="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),_=void 0!==o&&/Mac|iPod|iPhone|iPad/.test(o.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(o.location.href)})(),E=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);n.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.20.4","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,"ERROR_CODE_CONFLICT",0,409,"ES",0,"es2015","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,!1,"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,v,"KEY_DOWN",0,b,"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,"\xa0","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,E,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>i=!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,o,"lang",0,{}])},20218:function(e,t,n){n.d(t,{Create:function(){return a}});var i=n(82758),o=n(2748),r=n(21537),s=n(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,n){let i=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(i),t&&((0,r.isPlainObject)(t)?(0,r.attr)(i,t):n=t),n&&(0,r.asArray)(n).forEach(e=>o.Dom.append(i,(0,r.isString)(e)?this.fromHTML(e):e)),i}div(e,t,n){let i=this.element("div",t,n);return e&&(i.className=e),i}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});o.Dom.append(this.doc.body,t);let n=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(n,"iframe.contentWindow.document"),!n)throw Error("Iframe error");return n.open(),n.write("<!DOCTYPE html><html><head></head><body></body></html>"),n.close(),[n.body,t]}span(e,t,n){let i=this.element("span",t,n);return e&&(i.className=e),i}a(e,t,n){let i=this.element("a",t,n);return e&&(i.className=e),i}text(e){return this.doc.createTextNode(e)}fake(){return this.text(i.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let n=this.div();n.innerHTML=e.toString();let i=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(o.Dom.safeRemove(i),t){let e=(0,r.refs)(i);Object.keys(t).forEach(n=>{let i=e[n];i&&!1===t[n]&&o.Dom.hide(i)})}return i}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let n=t[e.tagName.toLowerCase()];(0,r.isFunction)(n)?n(e):(0,r.isPlainObject)(n)&&(0,r.attr)(e,n)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,n){n.d(t,{Create:function(){return i.Create}});var i=n(20218)},45219:function(e,t,n){n.d(t,{autobind:function(){return o}});var i=n(23282);function o(e,t,n){if(!(0,i.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=n.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,n){n.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var i=n(78213),o=n(2748),r=n(27613),s=n(82760);function a(e,t){let n=Object.getOwnPropertyDescriptor(e,t);return!n||(0,r.isFunction)(n.get)?null:n.value}function l(e,t,n){let i=n.get;if(!i)throw(0,s.error)("Getter property descriptor expected");n.get=function(){let e=i.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:e}),e}}function c(e,t,n){let a=n.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;n.value=function(...e){var t;let n,i=null!=(n=this.od)?n:document,r=c.get(i);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&&o.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(i,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(i.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,n){n.d(t,{component:function(){return l},getComponentClass:function(){return c}});var i=n(82758),o=n(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")):i.IS_PROD||s.has(this.constructor)||a.has(this.constructor)||a.add(this.constructor)}}s.add(e),s.add(t);let n=(0,o.getClassName)(e.prototype);if(r.has(n)&&!i.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return r.set(n,t),t}function c(e){return r.get(e)}},81577:function(e,t,n){n.d(t,{debounce:function(){return a},throttle:function(){return l}});var i=n(91907),o=n(27613),r=n(38837),s=n(89890);function a(e,t=!1,n="debounce"){return(a,l)=>{let c=a[l];if(!(0,o.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(i.STATUSES.ready,i=>{let{async:s}=i;(0,r.assert)(null!=s,`Component ${i.componentName||i.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(i):e,c=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:i.defaultTimeout;Object.defineProperty(i,l,{configurable:!0,value:s[n](i[l].bind(i),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,n){n.d(t,{derive:function(){return o}});var i=n(23282);function o(...e){return t=>{let n=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,i.isFunction)(s.value)&&!(0,i.isFunction)(n[t])&&Object.defineProperty(n,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,n){n.d(t,{hook:function(){return r}});var i=n(23282),o=n(89890);function r(e){return(t,n)=>{if(!(0,i.isFunction)(t[n]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[n].call(e)})}}},78927:function(e,t,n){n.d(t,{idle:function(){return s}});var i=n(91907),o=n(23282),r=n(89890);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(i.STATUSES.ready,e=>{let{async:n}=e,i=e[t];e[t]=(...t)=>n.requestIdleCallback(i.bind(e,...t))})}}},65478:function(e,t,n){n.r(t),n.d(t,{autobind:function(){return i.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.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 i=n(45219),o=n(33433),r=n(87325),s=n(81577),a=n(55153),l=n(97357),c=n(78927),u=n(31589),d=n(53213),h=n(13525),p=n(37133)},31589:function(e,t,n){n.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,n){n.d(t,{persistent:function(){return r}});var i=n(78213),o=n(39955);function r(e,t){e.hookStatus(i.STATUSES.ready,e=>{let n=(0,o.isViewObject)(e)?e:e.jodit,i=`${n.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=n.storage.get(i))?e:r},set(e){n.storage.set(i,e)}})})}},13525:function(e,t,n){n.d(t,{wait:function(){return s}});var i=n(78213),o=n(23282),r=n(89890);function s(e){return(t,n)=>{let s=t[n];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(i.STATUSES.ready,t=>{let{async:i}=t,o=t[n],r=0;Object.defineProperty(t,n,{configurable:!0,value:function n(...s){i.clearTimeout(r),e(t)?o.apply(t,s):r=i.setTimeout(()=>n(...s),10)}})})}}},37133:function(e,t,n){n.d(t,{watch:function(){return d}});var i=n(78213),o=n(73026),r=n(46559),s=n(23282),a=n(72430),l=n(39955),c=n(89890),u=n(37790);function d(e,t){return(n,d)=>{var h;if(!(0,s.isFunction)(n[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 i=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...n)=>{if(!t.isInDestruct)return t[d](e,...n)};p||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[n,o]=e.split(":"),r=f;n.length&&(r=t.get(n)),(0,s.isFunction)(r)&&(r=r(t)),i.events.on(r||t,o,c),r||i.events.on(o,c),t.hookStatus("beforeDestruct",()=>{i.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${d.join(".")}`,c);let p=(0,u.getPropertyDescriptor)(n,l);Object.defineProperty(t,l,{configurable:!0,set(e){let n=h;n!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${d.join(".")}`,c),c(l,n,h))},get(){return p&&p.get?p.get.call(t):h}})})};(0,s.isFunction)(n.hookStatus)?n.hookStatus(i.STATUSES.ready,m):m(n)}}},2748:function(e,t,n){n.d(t,{Dom:function(){return y}});var i=n(82758),o=n(4510),r=n(68345),s=n(23282),a=n(58487),l=n(42320),c=n(70799),u=n(86068),d=n(76241),h=n(49055),p=n(38837),f=n(29960),m=n(41180),g=n(86583),b=n(89890),v=n(37790);class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,n){let i,o,r=e;n.s.save();do o=!1,(i=r.nextSibling)&&!y.isBlock(i)&&!y.isTag(i,"br")&&(o=!0,r=i);while(o);return y.__wrapElements(t,n,e,r)}static __wrapElements(e,t,n,i){let o=(0,c.isString)(e)?t.createInside.element(e):e;n.parentNode&&n.parentNode.insertBefore(o,n);let r=n;for(;r&&(r=n.nextSibling,o.appendChild(n),n!==i&&r);)n=r;return t.s.restore(),o}static wrapInline(e,t,n){let i,o,r=e,s=e;n.s.save();do o=!1,(i=r.previousSibling)&&!y.isBlock(i)&&(o=!0,r=i);while(o);do o=!1,(i=s.nextSibling)&&!y.isBlock(i)&&(o=!0,s=i);while(o);return y.__wrapElements(t,n,r,s)}static wrap(e,t,n){let i=(0,c.isString)(t)?n.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,b.error)("Element should be in DOM");e.parentNode.insertBefore(i,e),i.appendChild(e)}else{let t=e.extractContents();e.insertNode(i),i.appendChild(t)}return i}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,n){let i=e;for(;i&&i!==t&&!(e!==i&&n(i));){let e=i.firstChild||i.nextSibling;if(!e){for(;i&&!i.nextSibling;)if((i=i.parentNode)===t)return;e=null==i?void 0:i.nextSibling}i=e}}static replace(e,t,n,i=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,p.assert)(n,"Need create instance for new tag"),t=n.fromHTML(t)),(0,c.isString)(t)?((0,p.assert)(n,"Need create instance for new tag"),s=n.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return i&&y.isElement(e)&&y.isElement(s)&&(0,o.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(i.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){let n=y.closest(e,e=>y.isElement(e)&&e.hasAttribute("contenteditable"),t);return y.isNode(e)&&(null==n?void 0:n.getAttribute("contenteditable"))!=="false"}static isEmpty(e,t=i.NO_EMPTY_TAGS){let n;if(!e)return!0;n=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,h.trim)(e.nodeValue).length;return y.isText(e)?o(e):!(y.isElement(e)&&n(e))&&y.each(e,e=>{if(y.isText(e)&&!o(e)||y.isElement(e)&&n(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,i.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)&&i.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 n=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(n?n.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.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,n){let i=n?"lastChild":"firstChild",o=n?"previousSibling":"nextSibling",r=null==e?void 0:e[i];if(!r)return null;do{if(t(r))return r;let n=r[i]||r[o];if(!n&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[o]&&r.parentNode!==e);n=null==r?void 0:r[o]}r=n}while(r);return null}static prev(e,t,n,i=!0){return y.find(e,t,n,!1,i)}static next(e,t,n,i=!0){return y.find(e,t,n,!0,i)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,n){let i=e=>y.isElement(e)&&e.classList.contains(t),o=e.parentNode;return n?y.prev(e,i,o):y.next(e,i,o)}static find(e,t,n,i=!0,o=!0){let r=this.nextGen(e,n,i,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,n=!0,i=!0){let o=[],r=e;do{let t=n?r.nextSibling:r.previousSibling;for(;t;)o.push(t),t=n?t.nextSibling:t.previousSibling;o.reverse(),yield*this.runInStack(e,o,n,i),r=r.parentNode}while(r&&r!==t);return null}static each(e,t,n=!0){let i=this.eachGen(e,n),o=i.next();for(;!o.done;){if(!1===t(o.value))return!1;o=i.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,n,i=!0){for(;t.length;){let o=t.pop();if(i){let e=n?o.lastChild:o.firstChild;for(;e;)t.push(e),e=n?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,n,i="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=y.findWithCurrent(r[o],t,r,i,o);if(e)return e}for(;r&&!r[i]&&r!==n;)r=r.parentNode;r&&r[i]&&r!==n&&(r=r[i])}while(r&&r!==n);return null}static findSibling(e,t=!0,n=e=>!y.isEmptyTextNode(e)){let i=y.sibling(e,t);for(;i&&!n(i);)i=y.sibling(i,t);return i&&n(i)?i: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,h.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,n){return(0,v.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,h.trim)((null==e?void 0:e.nodeValue)||"").length)),n)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,n,i=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===n||!o.parentNode)break;o=o.parentNode}while(o&&o!==n);return o===n&&i&&t(o)?o:null}static closest(e,t,n){let i,o=e=>e.toLowerCase();if((0,s.isFunction)(t))i=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));i=t=>!!(t&&e.has(o(t.nodeName)))}else i=e=>!!(e&&o(t)===o(e.nodeName));return y.up(e,i,n)}static furthest(e,t,n){let i=null,o=null==e?void 0:e.parentElement;for(;o&&o!==n;)t(o)&&(i=o),o=null==o?void 0:o.parentElement;return i}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var n;null==(n=e.parentNode)||n.insertBefore(t,e.nextSibling)}static before(e,t){var n;null==(n=e.parentNode)||n.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,n=!1,r=()=>!0){let s=(e.ownerDocument||i.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,n?t.firstChild:null)}static isOrContains(e,t,n=!1){return e===t?!n:!!(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 n=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,i.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),n&&e.setStartBefore(n)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,g.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,g.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 n=e.tagName.toLowerCase();return t instanceof Set?t.has(n)||t.has(e.tagName.toUpperCase()):n===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,f.attr)(e,t),(0,f.attr)(e,i.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,f.attr)(e,i.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+i.MARKER_CLASS)}static replaceTemporaryFromString(e){return(0,d.unwrapMarkedTags)(e,null,i.TEMP_ATTR)}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(i.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,n){n.d(t,{Dom:function(){return i.Dom},LazyWalker:function(){return o.LazyWalker}});var i=n(2748),o=n(70071)},70071:function(e,t,n){n.d(t,{LazyWalker:function(){return s}});var i=n(45219),o=n(2748),r=n(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=o.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,n=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<n;){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,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([i.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,n){n.d(t,{EventEmitter:function(){return u}});var i=n(82758),o=n(46559),r=n(68345),s=n(23282),a=n(70799),l=n(89890),c=n(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,o.splitArray)(e).map(e=>e.trim()).forEach(e=>{let n=e.split("."),i=n[1]||c.defaultNameSpace;t.call(this,n[0],i)})}__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 n=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?n.initEvent(t,!0,!0):(n.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","view","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(n,e,{value:t[e],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(n)}get current(){return this.currents[this.currents.length-1]}on(e,t,n,o){let c,u,h,p;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,p=n):(c=e,u=t,h=n,p=o),!((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,b=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(f)&&(b=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 n,o;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:b};if(m.set(e,t,r,null==p?void 0:p.top),d(f)){let t=i.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(n=null==p?void 0:p.capture)&&n}:null!=(o=null==p?void 0:p.capture)&&o;b.options=t,f.addEventListener(e,b,t),this.__memoryDOMSubjectToHandler(f,b)}}}),this}__memoryDOMSubjectToHandler(e,t){let n=this.__domEventsMap.get(e)||new Set;n.add(t),this.__domEventsMap.set(e,n)}__unmemoryDOMSubjectToHandler(e,t){let n=this.__domEventsMap,i=n.get(e)||new Set;i.delete(t),i.size?n.set(e,i):n.delete(e)}one(e,t,n,i){let o,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,r=e,s=t,l=n):(o=e,r=t,s=n,l=i);let c=(...e)=>(this.off(o,r,c),s(...e));return this.on(o,r,c,l),this}off(e,t,n){let i,o,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(i=this,o=e,l=t):(i=e,o=t,l=n),(0,r.isArray)(i))return i.forEach(e=>{this.off(e,o,l)}),this;let u=i,h=this.__getStore(u);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.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 n=h.get(e,t);if(n&&n.length)if((0,s.isFunction)(l)){let i=h.indexOf(e,t,l);!1!==i&&(p(n[i]),n.splice(i,1),n.length||h.clearEvents(t,e))}else n.forEach(p),n.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(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 n=(0,a.isString)(e)?this:e,i=(0,a.isString)(e)?e:t;if("string"!=typeof i)throw(0,l.error)("Need event names");let o=this.__getStore(n);this.__eachEvent(i,(e,t)=>{let i=o.get(e,t);i&&this.__stopped.push(i),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(n,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,...n){let i,o,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...n]:n;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 n=h.get(e,t);if(n)try{[...n].every(t=>!this.__isStopped(n)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...u),this.currents.pop(),void 0!==o&&(i=o),!0))}finally{this.__removeStop(n)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let n=this.fire.apply(this,[r,e+"."+t,...u]);void 0!==n&&(i=n)})}}),i}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=i.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,n){n.d(t,{Eventify:function(){return i}});class i{on(e,t){var n;return this.__map.has(e)||this.__map.set(e,new Set),null==(n=this.__map.get(e))||n.add(t),this}off(e,t){var n;return this.__map.has(e)&&(null==(n=this.__map.get(e))||n.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var n;let i;return this.__map.has(e)&&(null==(n=this.__map.get(e))||n.forEach(e=>{i=e(...t)})),i}constructor(){this.__map=new Map}}},57012:function(e,t,n){let i=new(n(98220)).EventEmitter;n.d(t,["eventEmitter",0,i])},3827:function(e,t,n){n.d(t,{EventEmitter:function(){return i.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var i=n(98220),o=n(72757),r=n(73026),s=n(15738)},73026:function(e,t,n){n.d(t,{observable:function(){return c}});var i=n(68345),o=n(59292),r=n(72430),s=n(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},n={},c=(t,o)=>((0,i.isArray)(t)?t.map(e=>c(e,o)):(n[t]||(n[t]=[]),n[t].push(o)),e),u=(o,...r)=>{if((0,i.isArray)(o))return void o.map(e=>u(e,...r));try{!t[o]&&n[o]&&(t[o]=!0,n[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,n=[])=>{let i={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=n.concat(a).filter(e=>e.length);i[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set:t=>{let n=i[a];if(!(0,o.isFastEqual)(i[a],t)){u(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):i[a]=t;let o=[];u(["change",...l.reduce((e,t)=>(o.push(t),e.push(`change.${o.join(".")}`),e),[])],l.join("."),n,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):i[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(i[a])&&d(i[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,n){n.d(t,{EventHandlersStore:function(){return s}});var i=n(4510),o=n(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let n=this.__store.get(t);return(0,o.assert)(n,"-"),n[e]}}indexOf(e,t,n){let i=this.get(e,t);if(i){for(let e=0;e<i.length;e+=1)if(i[e].originalCallback===n)return e}return!1}namespaces(e=!1){let t=(0,i.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,n,i=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),i?o[e].unshift(n):o[e].push(n)}clear(){this.__store.clear()}clearEvents(e,t){let n=this.__store.get(e);n&&n[t]&&(delete n[t],Object.keys(n).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}n.d(t,["defaultNameSpace",0,r])},580:function(e,t,n){n.d(t,{getContainer:function(){return _},getPopupViewRoot:function(){return S},uniqueUid:function(){return v}});var i=n(19306),o=n(72430),r=n(70799),s=n(39955),a=n(12475),l=n(29960),c=n(41180),u=n(80568),d=n(69175),h=n(41876),p=n(57012),f=n(82758),m=n(22732);let g=1,b=new Set;function v(){function e(){return Math.round(g+=10*(Math.random()+1)).toString(16)}let t=e();for(;b.has(t);)t=e();return b.add(t),t}let y=new h.PluginSystem({getContainer:_}),w=new WeakMap;function _(e,t,n="div",o=!1){let c,d=(0,r.isString)(t)?t:t?(0,u.getClassName)(t.prototype):"jodit-utils",h=w.get(e)||{},p=d+n,f=(0,s.isViewObject)(e)?e:e.j;if(!h[p]){let t=f.c;if(c=S(f.o,f.container,e.od.body),o&&(0,i.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===n?e.ed.head:e.ed.body;c=(0,i.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let r=t.element(n,{className:`jodit jodit-${(0,a.kebabCase)(d)}-container jodit-box`});f.o.nonce&&("style"===n||"script"===n)&&(0,l.attr)(r,"nonce",f.o.nonce),r.classList.add(`jodit_theme_${f.o.theme||"default"}`),m.Dom.append(c,r),h[p]=r,e.hookStatus("beforeDestruct",()=>{f.events.off(r),m.Dom.safeRemove(r),delete h[p],Object.keys(h).length&&w.delete(e)}),w.set(e,h),f.events.fire("getContainer",r)}return h[p].classList.remove("jodit_theme_default","jodit_theme_dark"),h[p].classList.add(`jodit_theme_${f.o.theme||"default"}`),h[p]}function S(e,t,n){var i,o,r;return null!=(r=null!=(o=null!=(i=e.popupRoot)?i:e.shadowRoot)?o:m.Dom.closest(t,e=>m.Dom.isHTMLElement(e)&&(m.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,c.css)(e,"position"))),n))?r:n}let k=p.eventEmitter;n.d(t,["eventEmitter",0,k,"extendLang",0,e=>{Object.keys(e).forEach(t=>{let n,i=(n=e[t],(0,o.isPlainObject)(n)&&(0,o.isPlainObject)(n.default)?n.default:n);!(0,d.isUnsafeProtoKey)(t)&&(0,o.isPlainObject)(i)&&(Object.prototype.hasOwnProperty.call(f.lang,t)&&(0,o.isPlainObject)(f.lang[t])||(f.lang[t]={}),Object.keys(i).forEach(e=>{(0,d.isUnsafeProtoKey)(e)||(f.lang[t][e]=i[e])}))})},"instances",0,{},"modules",0,{},"pluginSystem",0,y])},29999:function(e,t,n){var i=n(68345);n.d(t,["asArray",0,e=>(0,i.isArray)(e)?e:[e]])},76855:function(e,t,n){n.d(t,{asArray:function(){return i.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var i=n(29999),o=n(46559),r=n(4510)},46559:function(e,t,n){n.d(t,{splitArray:function(){return i}});function i(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,n){var i=n(70722),o=n(58844);n.d(t,["toArray",0,function(...e){var t;return((0,i.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},91898:function(e,t,n){n.d(t,{clearTimeout:function(){return i.clearTimeout},setTimeout:function(){return i.setTimeout}});var i=n(13252)},13252:function(e,t,n){n.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var i=n(82758);function o(e,t,...n){return t?i.globalWindow.setTimeout(e,t,...n):(e.call(null,...n),0)}function r(e){i.globalWindow.clearTimeout(e)}},54765:function(e,t,n){n.d(t,{hasBrowserColorPicker:function(){return o}});var i=n(82758);function o(){let e;try{let t=i.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,n){n.d(t,{hasBrowserColorPicker:function(){return i.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.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 b.isNumber},isNumeric:function(){return v.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 D.isVoid},isWindow:function(){return I.isWindow}});var i=n(54765),o=n(12045),r=n(68345),s=n(87612),a=n(59292),l=n(23282),c=n(58487),u=n(29673),d=n(60132),h=n(72913),p=n(19306),f=n(45603),m=n(78116),g=n(70722),b=n(84767),v=n(29807),y=n(72430),w=n(14773),_=n(42320),S=n(70799),k=n(26049),C=n(37508),E=n(39955),D=n(86068),I=n(52742)},12045:function(e,t,n){n.d(t,{isAbortError:function(){return i}});function i(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,n){n.d(t,{isArray:function(){return i}});function i(e){return Array.isArray(e)}},87612:function(e,t,n){n.d(t,{isBoolean:function(){return i}});function i(e){return"boolean"==typeof e}},59292:function(e,t,n){n.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var i=n(67462);function o(e,t){return e===t||(0,i.stringify)(e)===(0,i.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,n){n.d(t,{isFunction:function(){return i}});function i(e){return"function"==typeof e}},29673:function(e,t,n){n.d(t,{isHtmlFromWord:function(){return l}});let i=/\s/,o=/\d/,r=/\w/;function s(e,t){let n=e.indexOf(t);for(;-1!==n;){let r=n+t.length;if(i.test(e.charAt(r))&&o.test(e.charAt(r+1)))return!0;n=e.indexOf(t,r)}return!1}function a(e,t){let n="style="+t,i=e.indexOf(n);for(;-1!==i;){let o=i+n.length,r=e.indexOf(t,o);if(-1===r&&(r=e.length),e.slice(o,r).includes("mso-"))return!0;i=e.indexOf(n,r)}return!1}function l(e){if(e.includes("urn:schemas-microsoft-com:office:word")||e.includes("urn:schemas-microsoft-com:office:excel"))return!0;let t=e.indexOf("<");for(;-1!==t;){if(!r.test(e.charAt(t+1))){t=e.indexOf("<",t+1);continue}let n=e.indexOf(">",t);-1===n&&(n=e.length);let o=e.slice(t,n);if("<meta"===o.slice(0,5).toLowerCase()&&function(e){if(s(e,"Microsoft Word")||s(e,"Microsoft Excel"))return!0;let t=e.toLowerCase(),n=t.indexOf("progid");return -1!==n&&(-1!==t.indexOf("word.",n)||-1!==t.indexOf("excel.",n))||t.includes("libreoffice")||t.includes("openoffice")}(o)||function(e){let t=e.indexOf("class=");for(;-1!==t;){if(t>0&&i.test(e.charAt(t-1))){let n=t+6,i=e.charAt(n);if(('"'===i||"'"===i)&&(n+=1),e.startsWith("Mso",n))return!0}t=e.indexOf("class=",t+6)}return!1}(o))return!0;t=e.indexOf("<",n)}return a(e,"'")||a(e,'"')&&e.includes("<font")}},58487:function(e,t,n){var i=n(70799);let o=/[A-Za-z]/,r=/[A-Za-z0-9]/,s=/\w/;function a(e,t){if(!o.test(e.charAt(t)))return"";let n=t+1;for(;r.test(e.charAt(n));)n+=1;return e.slice(t,n)}n.d(t,["isHTML",0,e=>(0,i.isString)(e)&&function(e){let t=new Map,n=e.indexOf("</");for(;-1!==n;){let i=a(e,n+2);""!==i&&">"===e.charAt(n+2+i.length)&&t.set(i,n),n=e.indexOf("</",n+2)}if(0===t.size)return!1;let i=-1;for(n=e.indexOf("<");-1!==n;){let o=a(e,n+1),r=n+1+o.length;if(""!==o&&!s.test(e.charAt(r))){if(i<r&&(i=e.indexOf(">",r)),-1===i)return!1;let n=t.get(o);if(void 0!==n&&n>i)return!0}n=e.indexOf("<",n+1)}return!1}(e)])},60132:function(e,t,n){n.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var i=n(2748),o=n(23282),r=n(86068);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&i.Dom.isElement(e.container)}},72913:function(e,t,n){n.d(t,{isInt:function(){return r}});var i=n(29807),o=n(70799);function r(e){return(0,o.isString)(e)&&(0,i.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,n){n.d(t,{isJoditObject:function(){return o}});var i=n(23282);function o(e){return!!(e&&e instanceof Object&&(0,i.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,n){var i=n(70799);n.d(t,["isLicense",0,e=>(0,i.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,n){n.d(t,{isMarker:function(){return o}});var i=n(2748);function o(e){return i.Dom.isMarker(e)}},70722:function(e,t,n){n.d(t,{isNativeFunction:function(){return i}});function i(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(String(e)))}},84767:function(e,t,n){n.d(t,{isNumber:function(){return i}});function i(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,n){n.d(t,{isNumeric:function(){return o}});var i=n(70799);function o(e){if((0,i.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,n){n.d(t,{isPlainObject:function(){return o}});var i=n(52742);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,i.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,n){n.d(t,{isPromise:function(){return i}});function i(e){return e&&"function"==typeof e.then}},42320:function(e,t,n){n.d(t,{isSet:function(){return o}});var i=n(23282);function o(e){return!!e&&(0,i.isFunction)(e.has)&&(0,i.isFunction)(e.add)&&(0,i.isFunction)(e.delete)}},70799:function(e,t,n){n.d(t,{isString:function(){return o},isStringArray:function(){return r}});var i=n(68345);function o(e){return"string"==typeof e}function r(e){return(0,i.isArray)(e)&&o(e[0])}},26049:function(e,t,n){n.d(t,{isURL:function(){return o}});var i=n(82758);function o(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=i.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,n){n.d(t,{isValidName:function(){return i}});function i(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,n){n.d(t,{isViewObject:function(){return o}});var i=n(23282);function o(e){return!!(e&&e instanceof Object&&(0,i.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,n){n.d(t,{isVoid:function(){return i}});function i(e){return null==e}},52742:function(e,t,n){n.d(t,{isWindow:function(){return i}});function i(e){return null!=e&&e===e.window}},35278:function(e,t,n){n.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 n=parseInt(t[2],10),i=parseInt(t[3],10),o=(parseInt(t[4],10)|i<<8|n<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}])},32574:function(e,t,n){n.d(t,{applyStyles:function(){return h}});var i=n(82758),o=n(2748),r=n(76241),s=n(90723),a=n(49055),l=n(29960),c=n(41180),u=n(76078);function d(e){let t=e.split(";"),n=t.length-1;return t.filter((e,t)=>{let i=/^\s*([a-z-]{1,64})\s*:/i.exec(e);if(!i)return!0;let o=i[1].toLowerCase();return!(o.startsWith("mso-")||o.startsWith("border")&&t!==n)}).join(";").replace(/([0-9.]{1,32})(pt|cm)/gi,(e,t,n)=>{switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function h(e){let t=(0,r.indexOfOpenTag)(e,"html");if(-1===t)return e;let n=(e=e.substring(t)).toLowerCase().lastIndexOf("</html>");-1!==n&&(e=e.substring(0,n+7));let h=i.globalDocument.createElement("iframe");(0,c.css)(h,"display","none"),o.Dom.append(i.globalDocument.body,h);let p="";try{let t=h.contentDocument||(h.contentWindow?h.contentWindow.document:null);if(t){t.open(),t.write(e),t.close();let n=(0,s.readWordListItems)(t.body);o.Dom.each(t.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,l.attr)(e,"style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let n=t.styleSheets[e].cssRules;for(let e=0;e<n.length;e+=1)""!==n[e].selectorText&&(0,u.$$)(n[e].selectorText,t.body).forEach(t=>{t.style.cssText=d(n[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!i.IS_PROD)throw e}(0,s.wrapWordListItems)(n),o.Dom.each(t.body,e=>{if(o.Dom.isElement(e)){let t=(0,l.attr)(e,"style");t&&(e.style.cssText=d(t)),(0,l.attr)(e,"style")||(0,l.attr)(e,"style",null)}}),p=t.firstChild?(0,a.trim)(t.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(h)}return p&&(e=p),(0,a.trim)((0,r.removeWordWrappers)(e))}},53212:function(e,t,n){n.d(t,{cleanFromWord:function(){return u}});var i=n(82758),o=n(2748),r=n(4510),s=n(76241),a=n(90723),l=n(49055),c=n(29960);function u(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let n=i.globalDocument.createElement("div");n.innerHTML=e;let s=[],l=(0,a.readWordListItems)(n);n.firstChild&&o.Dom.each(n,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,c.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,c.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),(0,a.wrapWordListItems)(l),t=n.innerHTML}catch(e){}return t&&(e=t),e=e.split(/(\n)/).filter(l.trim).join("\n"),(0,s.removeWordWrappers)(e)}},53326:function(e,t,n){n.d(t,{htmlspecialchars:function(){return o}});var i=n(82758);function o(e){let t=i.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},75275:function(e,t,n){n.d(t,{applyStyles:function(){return i.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},indexOfClosingTag:function(){return c.indexOfClosingTag},indexOfOpenTag:function(){return c.indexOfOpenTag},nl2br:function(){return s.nl2br},removeBetween:function(){return c.removeBetween},removeEmptyMarkedTags:function(){return c.removeEmptyMarkedTags},removeTagsByPrefix:function(){return c.removeTagsByPrefix},removeWordWrappers:function(){return c.removeWordWrappers},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags},unwrapMarkedTags:function(){return c.unwrapMarkedTags}});var i=n(32574),o=n(53212),r=n(53326),s=n(45971),a=n(86518),l=n(91003),c=n(76241)},45971:function(e,t,n){n.d(t,{nl2br:function(){return i}});function i(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}},86518:function(e,t,n){n.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return m}});var i=n(2748),o=n(43555),r=n(29960);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var n;if(!i.Dom.isElement(e)&&!i.Dom.isFragment(e))return;let r=[];for(let t of(i.Dom.each(e,e=>{i.Dom.isElement(e)&&i.Dom.up(e.parentNode,a)&&r.push(e)}),r))i.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==i.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)&&i.Dom.safeRemove(t);let l=[];for(let t of(i.Dom.each(e,e=>{i.Dom.isElement(e)&&"NOSCRIPT"===e.nodeName&&l.push(e)}),l))i.Dom.safeRemove(t);let u=null!=(n=t.removeEventAttributes)?n:t.removeOnError,d=e=>{if(i.Dom.isElement(e)&&(u&&c(e),m(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,o.attr)(e,"target"))){let t=((0,o.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}};d(e),i.Dom.each(e,d)}function c(e){if(!i.Dom.isElement(e))return!1;let t=!1,n=[];for(let t=0;t<e.attributes.length;t++)e.attributes[t].name.toLowerCase().startsWith("on")&&n.push(e.attributes[t].name);for(let i of n)(0,r.attrRaw)(e,i,null),t=!0;return t}let u=["src","data","action","formaction","poster","background","xlink:href"],d=new Set(["animate","set","animatemotion","animatetransform"]),h=["values","from","to","by"],p=new Set(["iframe","frame","object","embed"]);function f(e,t){let n=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(n)||/^data:(?:text\/html|application\/xhtml)/.test(n))||/^data:image\/svg/.test(n)&&p.has(t)}function m(e,{safeJavaScriptLink:t,removeOnError:n,removeEventAttributes:s}={safeJavaScriptLink:!0,removeOnError:!0}){if(!i.Dom.isElement(e))return!1;let a=!1;s&&c(e)&&(a=!0),n&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),a=!0);let l=e.nodeName.toLowerCase(),p=(0,o.attr)(e,"href");if(t&&p&&f(p,l)){let t="u">typeof location?location.protocol:"http:";(0,o.attr)(e,"href",t+"//"+p),a=!0}if(t){for(let t of(e.hasAttribute("srcdoc")&&((0,o.attr)(e,"srcdoc",null),a=!0),u)){let n=(0,r.attrRaw)(e,t);n&&f(n,l)&&((0,o.attr)(e,t,null),a=!0)}if(d.has(l))for(let t of h){let n=(0,r.attrRaw)(e,t);n&&n.split(";").some(e=>f(e,"a"))&&((0,o.attr)(e,t,null),a=!0)}}return a}},91003:function(e,t,n){n.d(t,{stripTags:function(){return function e(t,n=document,u=null,d=!1){let h=n.createElement("div");(0,o.isString)(t)?h.innerHTML=t:i.Dom.append(h,t);let p=[];i.Dom.each(h,e=>{i.Dom.isElement(e)&&p.push(e)});let f=new Set,m=()=>{let e=n.createTextNode(d?"%%%jodit-single-br%%%":" ");return f.add(e),e};return p.forEach(t=>{if(!t.parentNode)return;if(u&&i.Dom.isTag(t,u)){let o=t.nodeName.toLowerCase(),r=i.Dom.isTag(t,c)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,n,u,d)}%%%/jodit-${o}%%%`;i.Dom.before(t,n.createTextNode(r)),i.Dom.safeRemove(t);return}if(i.Dom.isTag(t,l))return void i.Dom.safeRemove(t);if(!i.Dom.isTag(t,s))return;let o=t.previousSibling;i.Dom.isTag(t,a)&&o&&!f.has(o)&&!(i.Dom.isText(o)&&/\s$/.test(o.nodeValue||""))&&i.Dom.before(t,m());let r=t.nextSibling;!(i.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&i.Dom.before(r,m())}),(0,r.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,n,i)=>`<${t?"/":""}${i}>`)}}});var i=n(2748),o=n(70799),r=n(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"])},76241:function(e,t,n){n.d(t,{indexOfClosingTag:function(){return a},indexOfOpenTag:function(){return u},removeBetween:function(){return f},removeEmptyMarkedTags:function(){return m},removeTagsByPrefix:function(){return l},removeWordWrappers:function(){return c},unwrapMarkedTags:function(){return h}});let i=/[a-z0-9:-]/i,o=["<html","</html","<col","</col","<o:p","</o:p"];function r(e,t,n){return e.substr(t,n.length).toLowerCase()===n}function s(e,t,n){let i=e.indexOf("<",n);for(;-1!==i;){for(let n of t)if(r(e,i,n))return[i,n];i=e.indexOf("<",i+1)}return[-1,""]}function a(e,t,n){let i="</"+t+">",o=e.indexOf("</",n);for(;-1!==o;){if(r(e,o,i))return o;o=e.indexOf("</",o+2)}return -1}function l(e,t){let n=t.map(e=>e.toLowerCase()),i="",o=0;for(;;){let[t]=s(e,n,o);if(-1===t)break;let r=e.indexOf(">",t);if(-1===r)break;i+=e.slice(o,t),o=r+1}return 0===o?e:i+e.slice(o)}function c(e){return l(l(e,o),["\x3c!--"])}function u(e,t){let n="<"+t.toLowerCase(),i=0;for(;;){let[t]=s(e,[n],i);if(-1===t)return -1;let o=e.charAt(t+n.length);if(">"===o)return t;if(/\s/.test(o)){if(-1===e.indexOf(">",t))return -1;return t}i=t+1}}function d(e,t){let n=t;for(;i.test(e.charAt(n));)n+=1;return e.slice(t,n)}function h(e,t,n,i){let o=n.toLowerCase(),r=[null==t?"<":"<"+t.toLowerCase()],a=function(e){let t=new Map,n=e.indexOf("</");for(;-1!==n;){let i=d(e,n+2).toLowerCase();if(""!==i&&">"===e.charAt(n+2+i.length)){let e=t.get(i);e?e.push(n):t.set(i,[n])}n=e.indexOf("</",n+2)}return t}(e),l="",c=0;for(;;){let[n]=s(e,r,c);if(-1===n)break;let u=(null!=t?t:d(e,n+1)).toLowerCase(),h=e.indexOf(">",n);if(-1===h)break;let p=""!==u&&e.slice(n,h).toLowerCase().includes(o)?function(e,t){if(!e)return -1;let n=0,i=e.length;for(;n<i;){let o=n+i>>1;e[o]<t?n=o+1:i=o}return n<e.length?e[n]:-1}(a.get(u),h+1):-1;if(-1===p){l+=e.slice(c,n+1),c=n+1;continue}let f=e.slice(h+1,p),m=p+u.length+3;l+=e.slice(c,n),l+=""!==f&&(!i||i(f))?f:e.slice(n,m),c=m}return 0===c?e:l+e.slice(c)}function p(e,t,n){let i=t.charAt(0),o=e.indexOf(i,n);for(;-1!==o;){if(r(e,o,t))return o;o=e.indexOf(i,o+1)}return -1}function f(e,t,n,i,o=""){let r=t.toLowerCase(),s=o.toLowerCase(),a="",l=0;for(;;){let o=p(e,r,l);if(-1===o)break;let c=p(e,n,o+t.length);if(-1===c)break;if(""!==s&&!e.slice(o,c).toLowerCase().includes(s)){a+=e.slice(l,c+n.length),l=c+n.length;continue}let u=p(e,i,c+n.length);if(-1===u)break;a+=e.slice(l,o),l=u+i.length}return 0===l?e:a+e.slice(l)}function m(e,t,n){let i=t.toLowerCase(),o=n.toLowerCase(),a="</"+i+">",l="",c=0;for(;;){let[t]=s(e,["<"+i],c);if(-1===t)break;let n=e.indexOf(">",t);if(-1===n)break;if(e.slice(t,n).toLowerCase().includes(o)&&r(e,n+1,a)){l+=e.slice(c,t),c=n+1+a.length;continue}l+=e.slice(c,n+1),c=n+1}return 0===c?e:l+e.slice(c)}},90723:function(e,t,n){n.d(t,{readWordListItems:function(){return a},wrapWordListItems:function(){return l}});var i=n(2748),o=n(4510),r=n(29960);let s={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3};function a(e){let t=[];return(0,o.toArray)(e.querySelectorAll("p")).forEach(e=>{let n=/mso-list:\s*l(\d+)\s+level(\d+)(?:\s+lfo(\d+))?/i.exec((0,r.attr)(e,"style")||"");if(!n)return;let a=(0,o.toArray)(e.querySelectorAll("[style]")).find(e=>/mso-list:\s*ignore/i.test((0,r.attr)(e,"style")||""));t.push(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({paragraph:e,list:`${n[1]}:${n[3]||""}`,level:Number(n[2])},function(e){let t=e.replace(/\s+/g,""),n=/^\(?(?:\d+\.)*(\d+)[.)]?$/.exec(t);if(n)return{tag:"ol",listStyleType:null,start:Number(n[1])};let i=/^\(?([a-z]+|[A-Z]+)[.)]$/.exec(t);if(i){let e=i[1],t=e.toLowerCase(),n=e!==t;if(/^[ivxlcdm]+$/.test(t)&&(t.length>1||"i"===t))return{tag:"ol",listStyleType:n?"upper-roman":"lower-roman",start:function(e){let t=0;for(let n=0;n<e.length;n+=1){let i=s[e[n]];t+=(s[e[n+1]]||0)>i?-i:i}return t}(t)};if(/^([a-z])\1*$/.test(t))return{tag:"ol",listStyleType:n?"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 n=e.parentNode;for(i.Dom.safeRemove(e);n&&n!==t&&i.Dom.isElement(n)&&i.Dom.isEmpty(n);){let e=n.parentNode;i.Dom.safeRemove(n),n=e}}(a,e)}),t}function l(e){let t=[],n=e.map((t,n)=>{var o;return n>0&&(o=e[n-1],i.Dom.findSibling(t.paragraph,!0,e=>!i.Dom.isEmptyTextNode(e)&&!i.Dom.isComment(e))===o.paragraph)});e.forEach((e,s)=>{let{paragraph:a}=e;for(n[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 n=c.createElement(e.tag);e.listStyleType&&(n.style.listStyleType=e.listStyleType),"ol"===e.tag&&1!==e.start&&(0,r.attr)(n,"start",e.start),l&&l.li?l.li.appendChild(n):i.Dom.before(a,n),l={level:e.level,list:e.list,element:n},t.push(l)}let u=c.createElement("li");(0,o.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),i.Dom.moveContent(a,u),i.Dom.safeRemove(a),l.element.appendChild(u),l.li=u})}},21537:function(e,t,n){n.r(t),n.d(t,{$$:function(){return d.$$},AnswerError:function(){return d.AnswerError},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},answer:function(){return d.answer},appendScriptAsync:function(){return d.appendScriptAsync},appendStyleAsync:function(){return d.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return i.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},clearHAlign:function(){return d.clearHAlign},clearTimeout:function(){return o.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},getAnchorName:function(){return d.getAnchorName},getAnchors:function(){return d.getAnchors},getCaptionWrapper:function(){return d.getCaptionWrapper},getCaptionedImage:function(){return d.getCaptionedImage},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},getImageCaption:function(){return d.getImageCaption},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},indexOfClosingTag:function(){return a.indexOfClosingTag},indexOfOpenTag:function(){return a.indexOfOpenTag},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isAnchor:function(){return d.isAnchor},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},removeBetween:function(){return a.removeBetween},removeEmptyMarkedTags:function(){return a.removeEmptyMarkedTags},removeTagsByPrefix:function(){return a.removeTagsByPrefix},removeWordWrappers:function(){return a.removeWordWrappers},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 o.setTimeout},size:function(){return c.size},splitArray:function(){return i.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return i.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},trimInvEnd:function(){return u.trimInvEnd},ucfirst:function(){return u.ucfirst},unwrapMarkedTags:function(){return a.unwrapMarkedTags},wrapMedia:function(){return d.wrapMedia}});var i=n(76855),o=n(91898),r=n(27613),s=n(35278),a=n(75275),l=n(71521),c=n(56175),u=n(59007),d=n(43555)},71521:function(e,t,n){n.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return i.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.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 i=n(21224),o=n(3760),r=n(49033),s=n(12972),a=n(9992),l=n(70091),c=n(46334),u=n(37406)},21224:function(e,t,n){var i=n(35278),o=n(49055);n.d(t,["normalizeColor",0,e=>{let t=["#"],n=(0,i.colorToHex)(e);if(!n)return!1;if(3===(n=(n=(0,o.trim)(n.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(n[e]),t.push(n[e]);return t.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n}])},3760:function(e,t,n){n.d(t,{normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var i=n(29807),o=n(86068),r=n(35278),s=n(12475);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,i.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,i.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}n.d(t,["NUMBER_FIELDS_REG",0,a])},49033:function(e,t,n){n.d(t,{normalizeKeyAliases:function(){return r}});var i=n(82758),o=n(49055);function r(e){let t={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>i.KEY_ALIASES[e]||e).sort((e,t)=>n[e]&&!n[t]?-1:!n[e]&&n[t]?1:n[e]&&n[t]?n[e]-n[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},12972:function(e,t,n){n.d(t,["normalizeLicense",0,(e,t=8)=>{let n=[];for(;e.length;)n.push(e.substr(0,t)),e=e.substr(t);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}])},9992:function(e,t,n){var i=n(49055);n.d(t,["normalizePath",0,(...e)=>e.filter(e=>(0,i.trim)(e).length).map((t,n)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),n&&(t=t.replace(/^\//,"")),n!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")])},70091:function(e,t,n){n.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,n){n.d(t,["normalizeSize",0,(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()])},37406:function(e,t,n){n.d(t,["normalizeUrl",0,(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")])},44506:function(e,t,n){n.d(t,["getContentWidth",0,(e,t)=>{let n=t.getComputedStyle(e);return e.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}])},35224:function(e,t,n){n.d(t,{getFixedPositionOffset:function(){return i}});function i(e){var t,n;let i=null==(t=e.ownerDocument)?void 0:t.defaultView,o=e.parentElement;for(;i&&o;){if(""!==(n=i.getComputedStyle(o)).transform&&"none"!==n.transform||""!==n.perspective&&"none"!==n.perspective||""!==n.filter&&"none"!==n.filter||"transform"===n.willChange||"perspective"===n.willChange||"filter"===n.willChange||"paint"===n.contain||"layout"===n.contain||"strict"===n.contain||"content"===n.contain){let e=o.getBoundingClientRect();return{x:e.left,y:e.top}}o=o.parentElement}let r=null==i?void 0:i.visualViewport;return i&&r&&(r.offsetLeft||r.offsetTop)&&1>Math.abs(r.pageLeft-i.scrollX)&&1>Math.abs(r.pageTop-i.scrollY)?{x:-Math.round(r.offsetLeft),y:-Math.round(r.offsetTop)}:{x:0,y:0}}},16442:function(e,t,n){n.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let n=o.Dom.isHTMLElement(t),s=n&&(0,r.css)(t,"overflowY");return n&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||i.globalDocument.scrollingElement||i.globalDocument.body}}});var i=n(82758),o=n(2748),r=n(43555)},56175:function(e,t,n){n.d(t,{getContentWidth:function(){return i.getContentWidth},getFixedPositionOffset:function(){return o.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 i=n(44506),o=n(35224),r=n(16442),s=n(81630),a=n(21496),l=n(81284),c=n(5700)},81630:function(e,t,n){n.d(t,["innerWidth",0,(e,t)=>{let n=t.getComputedStyle(e);return e.clientWidth-(parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"))}])},21496:function(e,t,n){n.d(t,{size:function(){return o}});var i=n(27613);function o(e){return(0,i.isString)(e)||(0,i.isArray)(e)?e.length:(0,i.isPlainObject)(e)?Object.keys(e).length:0}},81284:function(e,t,n){let i=(e,t,n,o=!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=n.body,c=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=n.defaultView||n.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(!o&&t&&t.options&&t.o.iframe&&m){let{top:e,left:n}=i(m,t,t.od,!0);s=r.top+e,a=r.left+n}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}};n.d(t,["offset",0,i])},5700:function(e,t,n){n.d(t,{position:function(){return function e(t,n,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,i.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(t)&&!o){let{left:t,top:i}=e(n.iframe,n,!0);l+=t,c+=i}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 i=n(19306)},87058:function(e,t,n){n.d(t,["camelCase",0,e=>e.replace(/([-_])(.)/g,(e,t,n)=>n.toUpperCase())])},67477:function(e,t,n){n.d(t,{fuzzySearchIndex:function(){return o}});var i=n(82758);function o(e,t,n=0,r=1){let s=0,a,l=-1,c=0,u=0;for(a=n;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]!==i.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,n){n.d(t,{i18n:function(){return c}});var i=n(82758),o=n(70799),r=n(36409),s=n(43555),a=n(6441);let l=(e,t)=>{if(!t||!t.length)return e;let n=/%([sd])/g,i=n.exec(e),o=e,r=0;for(;i&&void 0!==t[r];)o=o.replace(i[0],t[r].toString()),r+=1,i=n.exec(e);return o};function c(e,t,n){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!(null==n?void 0:n.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==n?void 0:n.language,h),f=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let n=e.toLowerCase();if((0,o.isString)(t[n]))return d(t[n]);let i=(0,r.ucfirst)(e);if((0,o.isString)(t[i]))return d(t[i])};void 0!==i.lang[p]?u=i.lang[p]:c||(u=void 0!==i.lang[h]?i.lang[h]:i.lang.en);let m=null==n?void 0:n.i18n;if(m&&m[p]){let e=f(m[p]);if(e)return e}return f(u)||(!c&&i.lang.en&&(0,o.isString)(i.lang.en[e])&&i.lang.en[e]?d(i.lang.en[e]):c?"{"+e+"}":(i.IS_PROD,d(e)))}n.d(t,["sprintf",0,l])},59007:function(e,t,n){n.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return i.camelCase},fuzzySearchIndex:function(){return o.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},trimInvEnd:function(){return l.trimInvEnd},ucfirst:function(){return c.ucfirst}});var i=n(87058),o=n(67477),r=n(56967),s=n(12475),a=n(67462),l=n(49055),c=n(36409)},12475:function(e,t,n){n.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,n){n.d(t,{stringify:function(){return i}});function i(e,t={}){if("object"!=typeof e)return String(e);let n=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!n.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}},49055:function(e,t,n){n.d(t,{trim:function(){return s},trimChars:function(){return a},trimInv:function(){return l},trimInvEnd:function(){return c}});let i=/[\s\u200b]/,o=/\uFEFF/;function r(e,t){let n=0,i=e.length;for(;n<i&&t.test(e.charAt(n));)n+=1;for(;i>n&&t.test(e.charAt(i-1));)i-=1;return 0===n&&i===e.length?e:e.slice(n,i)}function s(e){return r(e,i)}function a(e,t){return r(e,RegExp(`[${t}]`))}function l(e){return r(e,o)}function c(e){let t=e.length;for(;t>0&&o.test(e.charAt(t-1));)t-=1;return t===e.length?e:e.slice(0,t)}},36409:function(e,t,n){n.d(t,{ucfirst:function(){return i}});function i(e){return e.length?e[0].toUpperCase()+e.substring(1):""}},25726:function(e,t,n){n.d(t,{alignElement:function(){return g},clearAlign:function(){return f},clearHAlign:function(){return h},getAlignClasses:function(){return u},getHAlign:function(){return p},hAlignElement:function(){return d}});var i=n(22732),o=n(68345),r=n(29960),s=n(41180),a=n(68645),l=n(61477);let c=e=>((0,o.isArray)(e)?e:[null!=e?e:""]).map(e=>e.split(/\s+/).filter(Boolean)).filter(e=>e.length);function u(e,t){var n,o,r;if(!t)return null;let s=i.Dom.isTag(t,new Set(["jodit","jodit-media"]))?t.firstElementChild:null!=(n=(0,l.getWrappedMedia)(e,t))?n:(0,a.getCaptionedImage)(e,t);return null!=(r=null==(o=e.o.alignClasses)?void 0:o[(null!=s?s:t).nodeName.toLowerCase()])?r:null}function d(e,t,n){var i;if(n){h(e,n),e.classList.add(...null!=(i=c(n[t||"normal"])[0])?i:[]);return}t&&"normal"!==t?"center"!==t?((0,s.css)(e,"float",t),(0,s.clearCenterAlign)(e)):(0,s.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,s.css)(e,"float")&&-1!==["right","left"].indexOf((0,s.css)(e,"float").toString().toLowerCase())&&(0,s.css)(e,"float",""),(0,s.clearCenterAlign)(e))}function h(e,t){d(e,"normal"),t&&Object.values(t).forEach(t=>c(t).forEach(t=>e.classList.remove(...t))),["class","style"].forEach(t=>{var n;(null==(n=(0,r.attr)(e,t))?void 0:n.trim())||(0,r.attr)(e,t,null)})}function p(e,t){if(t){for(let n of["left","right","center","normal"])if(c(t[n]).some(t=>t.every(t=>e.classList.contains(t))))return n}let n=(0,s.cssInline)(e,"float").toLowerCase();return"left"===n||"right"===n?n:"block"===(0,s.css)(e,"display")&&"auto"===(0,s.cssInline)(e,"margin-left")&&"auto"===(0,s.cssInline)(e,"margin-right")?"center":"normal"}function f(e){i.Dom.each(e,e=>{i.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 m=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function g(e,t){if(i.Dom.isNode(t)&&i.Dom.isElement(t)){f(t);let n=m.get(e.toLowerCase());n&&(0,s.css)(t,"textAlign",n)}}},70442:function(e,t,n){n.d(t,{getAnchorName:function(){return r},getAnchors:function(){return a},isAnchor:function(){return s}});var i=n(2748),o=n(4510);function r(e){return e.id||e.getAttribute("name")||""}function s(e){return i.Dom.isTag(e,"a")&&!e.hasAttribute("href")&&!e.hasChildNodes()&&""!==r(e)}function a(e){return(0,o.toArray)(e.querySelectorAll("a")).filter(s)}},63799:function(e,t,n){n.d(t,{loadNext:function(){return function e(t,n,i=0){return(0,o.isString)(n[i])?c(t,n[i]).then(()=>e(t,n,i+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,n,i=0){return(0,o.isString)(n[i])?u(t,n[i]).then(()=>e(t,n,i+1)):Promise.resolve()}}});var i=n(2748),o=n(70799),r=n(29960),s=n(66292);let a=new Map,l=e=>(t,n)=>{if(a.has(n))return a.get(n);let i=e(t,n);return a.set(n,i),i},c=l((e,t)=>e.async.promise((n,o)=>{if(e.isInDestruct)return o();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",o).one(a,"load",n),i.Dom.append(e.od.body,a)})),u=l((e,t)=>e.async.promise((n,o)=>{if(e.isInDestruct)return o();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",()=>n(a)).on(a,"error",o),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?i.Dom.append(e.o.shadowRoot,a):i.Dom.append(e.od.body,a)}));n.d(t,["alreadyLoadedList",0,a,"appendScriptAsync",0,c,"appendStyleAsync",0,u])},38837:function(e,t,n){n.d(t,{assert:function(){return o}});class i extends Error{constructor(e){super(e),this.name="AssertionError"}}function o(e,t){if(!e)throw new i(`Assertion failed: ${t}`)}},29960:function(e,t,n){n.d(t,{attr:function(){return function e(t,n,l){if(!t||!(0,i.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(n))return Object.keys(n).forEach(i=>{let r=n[i];(0,o.isPlainObject)(r)&&"style"===i?(0,a.css)(t,r):("className"===i&&(i="class"),e(t,i,r))}),null;let c=(0,s.CamelCaseToKebabCase)(n);if(/^-/.test(c)){let n=e(t,`data${c}`);if(n)return n;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 i=n(23282),o=n(72430),r=n(70799),s=n(12475),a=n(41180);function l(e,t,n){if(void 0===n)return e.getAttribute(t);if(null==n){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,n)}},97639:function(e,t,n){n.d(t,["browser",0,e=>{let t=navigator.userAgent.toLowerCase(),n=/(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?n[2]:"webkit"===e?"chrome"===n[1]||"webkit"===n[1]:"ff"===e?"firefox"===n[1]:"msie"===e?"trident"===n[1]||"msie"===n[1]:n[1]===e}])},44710:function(e,t,n){var i=n(72430);let o=(e,t)=>{let n=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];n.push((0,i.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return n.join("&")};n.d(t,["buildQuery",0,o])},66292:function(e,t,n){var i=n(82758);n.d(t,["completeUrl",0,e=>("file:"===i.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)])},68934:function(e,t,n){n.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,u.keys)(t,!1).reduce((n,i)=>(n[i]=(0,o.isPlainObject)(t[i])?e(t[i]):t[i],n),{})}},ConfigFlatten:function(){return d},ConfigMerge:function(){return function e(t,n){Object.keys(n).forEach(i=>{if((0,c.isUnsafeProtoKey)(i))return;let r=n[i],s=t[i];(0,o.isPlainObject)(r)&&(0,o.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[i]=r})}},ConfigProto:function(){return function e(t,n,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(n=>{(0,s.isVoid)(t[n])&&(t[n]=e[n])})}delete t.preset}let h={};return Object.keys(t).forEach(r=>{if((0,c.isUnsafeProtoKey)(r))return;let s=t[r],a=n?n[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,u+1);return}if(0!==u&&(0,i.isArray)(s)&&!(0,l.isAtom)(s)&&(0,i.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,n),h}}});var i=n(68345),o=n(72430),r=n(70799),s=n(86068),a=n(6441),l=n(97735),c=n(69175),u=n(37790);function d(e){return(0,u.keys)(e,!1).reduce((t,n)=>(t[n]=e[n],t),{})}},55877:function(e,t,n){var i=n(82758),o=n(26049),r=n(82501);n.d(t,["convertMediaUrlToVideoEmbed",0,(e,{width:t=400,height:n=345}={})=>{if(!(0,o.isURL)(e))return e;let s=i.globalDocument.createElement("a");s.href=e,t||(t=400),n||(n=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let i=s.pathname.split("/").filter(Boolean),o=i.findIndex(e=>/^\d+$/.test(e));if(-1===o)return e;let r=i[o],l=i[o+1];return l&&0===o&&(r+="/"+l),'<iframe width="'+t+'" height="'+n+'" 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 i=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(i=i.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+n+'" src="'+a+"//www.youtube.com/embed/"+i+'" frameborder="0" allowfullscreen></iframe>':e}}return e}])},41180:function(e,t,n){n.d(t,{css:function(){return l},cssInline:function(){return c}});var i=n(87612),o=n(72430),r=n(3760),s=n(87058),a=n(12475);function l(e,t,n,c=!1){if((0,i.isBoolean)(n)&&(c=n,n=void 0),(0,o.isPlainObject)(t)||void 0!==n){let i=(e,t,n)=>{void 0!==(n=(0,r.normalizeCssNumericValue)(t,n))&&(null==n||l(e,t,!0)!==(0,r.normalizeCssValue)(t,n))&&(e.style[t]=n)};if((0,o.isPlainObject)(t)){let n=Object.keys(t);for(let o=0;o<n.length;o+=1)i(e,(0,s.camelCase)(n[o]),t[n[o]])}else i(e,(0,s.camelCase)(t),n);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))}n.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,n){n.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,n){var i=n(39955);let o=new WeakMap;n.d(t,["dataBind",0,(e,t,n)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,i.isViewObject)(e.j)&&(t=e.j.e),(0,i.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===n?r[t]:(r[t]=n,n)}])},96325:function(e,t,n){var i=n(82758),o=n(70799);n.d(t,["defaultLanguage",0,(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:i.globalDocument.documentElement&&i.globalDocument.documentElement.lang?i.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t])},82760:function(e,t,n){n.d(t,{answer:function(){return a},connection:function(){return r},error:function(){return o},options:function(){return s}});var i=n(32880);function o(e){return TypeError(e)}function r(e){return new i.ConnectionError(e)}function s(e){return new i.OptionsError(e)}function a(e,t,n){return new i.AnswerError(e,t,n)}},93661:function(e,t,n){n.d(t,{abort:function(){return i}});function i(e="Aborted"){return new DOMException(e,"AbortError")}},5311:function(e,t,n){n.d(t,{AnswerError:function(){return i}});class i extends Error{constructor(e,t,n){super(e),this.answer=t,this.code=n,Object.setPrototypeOf(this,i.prototype)}}},86397:function(e,t,n){n.d(t,{ConnectionError:function(){return i}});class i extends Error{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},32880:function(e,t,n){n.d(t,{AnswerError:function(){return o.AnswerError},ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return i.abort}});var i=n(93661),o=n(5311),r=n(86397),s=n(57865)},57865:function(e,t,n){n.d(t,{OptionsError:function(){return i}});class i extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},89890:function(e,t,n){n.d(t,{AnswerError:function(){return o.AnswerError},ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},answer:function(){return i.answer},connection:function(){return i.connection},error:function(){return i.error},options:function(){return i.options}});var i=n(82760),o=n(32880)},97735:function(e,t,n){n.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var i=n(67462);function o(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,i.stringify)(e))}},80568:function(e,t,n){var i=n(23282);let o=new Map;n.d(t,["getClassName",0,e=>{var t;if((0,i.isFunction)(e.className))return e.className();let n=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(n))return o.get(n);if(n.name)return n.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=n.toString().match(r);return s?s[1]:""},"keepNames",0,o])},94643:function(e,t,n){n.d(t,{get:function(){return r}});var i=n(70799),o=n(86068);function r(e,t){if(!(0,i.isString)(e)||!e.length)return null;let n=e.split("."),r=t;try{for(let e of n){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},38420:function(e,t,n){n.d(t,["humanSizeToBytes",0,e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],i=parseFloat(e.substr(0,e.length-2));return -1!==n.indexOf(t)?i*Math.pow(1024,n.indexOf(t)+1):parseInt(e,10)}])},68645:function(e,t,n){n.d(t,{getCaptionWrapper:function(){return l},getCaptionedImage:function(){return a},getImageCaption:function(){return s}});var i=n(2748),o=n(4510);let r=(e,t)=>i.Dom.isHTMLElement(e)&&e.nodeName.toLowerCase()===t.tag.toLowerCase()&&(!t.className||e.classList.contains(t.className));function s(e,t){var n;let i=e.o.imageCaption;return i&&r(t,i.wrapper)&&null!=(n=(0,o.toArray)(t.getElementsByTagName(i.caption.tag)).find(e=>r(e,i.caption)))?n:null}function a(e,t){let n=s(e,t);if(!n)return null;let i=t.getElementsByTagName("img");return 1!==i.length||n.contains(i[0])?null:i[0]}function l(e,t){return i.Dom.closest(t,t=>!!a(e,t),e.editor)}},43555:function(e,t,n){n.d(t,{$$:function(){return x.$$},AnswerError:function(){return b.AnswerError},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return b.ConnectionError},LimitedStack:function(){return L.LimitedStack},OptionsError:function(){return b.OptionsError},UNSAFE_PROTO_KEYS:function(){return k.UNSAFE_PROTO_KEYS},abort:function(){return b.abort},alignElement:function(){return i.alignElement},alreadyLoadedList:function(){return r.alreadyLoadedList},answer:function(){return b.answer},appendScriptAsync:function(){return r.appendScriptAsync},appendStyleAsync:function(){return r.appendStyleAsync},assert:function(){return s.assert},attr:function(){return a.attr},attrRaw:function(){return a.attrRaw},browser:function(){return l.browser},buildQuery:function(){return c.buildQuery},call:function(){return R.call},callPromise:function(){return R.callPromise},callThis:function(){return R.callThis},clearAlign:function(){return i.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},clearHAlign:function(){return i.clearHAlign},cns:function(){return C.cns},completeUrl:function(){return u.completeUrl},connection:function(){return b.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},createMediaWrapper:function(){return E.createMediaWrapper},css:function(){return p.css},cssInline:function(){return p.cssInline},cssPath:function(){return x.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return m.dataBind},defaultLanguage:function(){return g.defaultLanguage},error:function(){return b.error},fastClone:function(){return v.fastClone},get:function(){return y.get},getAlignClasses:function(){return i.getAlignClasses},getAnchorName:function(){return o.getAnchorName},getAnchors:function(){return o.getAnchors},getCaptionWrapper:function(){return S.getCaptionWrapper},getCaptionedImage:function(){return S.getCaptionedImage},getClassName:function(){return w.getClassName},getDataTransfer:function(){return R.getDataTransfer},getHAlign:function(){return i.getHAlign},getImageCaption:function(){return S.getImageCaption},getMediaWrapper:function(){return E.getMediaWrapper},getPropertyDescriptor:function(){return R.getPropertyDescriptor},getWrappedMedia:function(){return E.getWrappedMedia},getXPathByElement:function(){return x.getXPathByElement},hAlignElement:function(){return i.hAlignElement},humanSizeToBytes:function(){return _.humanSizeToBytes},inView:function(){return A.inView},isAnchor:function(){return o.isAnchor},isAtom:function(){return v.isAtom},isUnsafeProtoKey:function(){return k.isUnsafeProtoKey},keepNames:function(){return w.keepNames},keys:function(){return R.keys},loadImage:function(){return R.loadImage},loadNext:function(){return r.loadNext},loadNextStyle:function(){return r.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return R.markOwner},memorizeExec:function(){return R.memorizeExec},options:function(){return b.options},parseQuery:function(){return D.parseQuery},prepareEmbedCode:function(){return I.prepareEmbedCode},prepareMedia:function(){return I.prepareMedia},previewBox:function(){return T.previewBox},refs:function(){return x.refs},reset:function(){return j.reset},resolveElement:function(){return x.resolveElement},scrollIntoViewIfNeeded:function(){return A.scrollIntoViewIfNeeded},set:function(){return P.set},wrapMedia:function(){return E.wrapMedia}});var i=n(25726),o=n(70442),r=n(63799),s=n(38837),a=n(29960),l=n(97639),c=n(44710),u=n(66292),d=n(68934),h=n(55877),p=n(41180),f=n(15456),m=n(86583),g=n(96325),b=n(89890),v=n(97735),y=n(94643),w=n(80568),_=n(38420),S=n(68645),k=n(69175),C=n(95942),E=n(61477),D=n(82501),I=n(96437),T=n(11628),j=n(58844),A=n(26395),x=n(76078),P=n(3703),L=n(50535),R=n(37790)},69175:function(e,t,n){n.d(t,{isUnsafeProtoKey:function(){return o}});let i=["__proto__","constructor","prototype"];function o(e){return -1!==i.indexOf(e)}n.d(t,["UNSAFE_PROTO_KEYS",0,i])},95942:function(e,t,n){n.d(t,{markDeprecated:function(){return o}});let i=console;function o(e,t=[""],n=null){return(...o)=>(i.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(n,...o))}n.d(t,["cns",0,i])},61477:function(e,t,n){n.d(t,{createMediaWrapper:function(){return a},getMediaWrapper:function(){return s},getWrappedMedia:function(){return r},wrapMedia:function(){return l}});var i=n(2748);let o=(e,t)=>i.Dom.isHTMLElement(e)&&e.nodeName.toLowerCase()===t.tag.toLowerCase()&&e.classList.contains(t.className);function r(e,t){var n;for(let[i,r]of Object.entries(null!=(n=e.o.mediaWrappers)?n:{}))if(o(t,r)){let e=t.querySelector(i);if(e)return e}return null}function s(e,t){return i.Dom.closest(t,t=>!!r(e,t),e.editor)}function a(e,t){var n;let i=null==(n=e.o.mediaWrappers)?void 0:n[t.toLowerCase()];return i?e.createInside.element(i.tag,{class:i.className,contenteditable:!1,draggable:!0}):null}function l(e,t){let n=a(e,t.nodeName);return n?(t.parentNode&&i.Dom.before(t,n),i.Dom.append(n,t),n):t}},82501:function(e,t,n){n.d(t,["parseQuery",0,e=>{let t={},n=e.substring(1).split("&");for(let e=0;e<n.length;e+=1){let i=n[e].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}return t}])},96437:function(e,t,n){n.d(t,{prepareEmbedCode:function(){return s},prepareMedia:function(){return r}});var i=n(25726),o=n(61477);function r(e,t){let n=(0,o.wrapMedia)(e,t),{mediaDefaultAlign:r}=e.o;return r&&"normal"!==r&&(0,i.hAlignElement)(n,r,(0,i.getAlignClasses)(e,n)),n}function s(e,t){let n=e.createInside.div();n.innerHTML=t.trim();let i=n.firstElementChild;return i&&1===n.childNodes.length?r(e,i):t}},11628:function(e,t,n){n.d(t,{previewBox:function(){return a}});var i=n(2748),o=n(70799),r=n(29960),s=n(41180);function a(e,t,n="px",l=null){let c=[],u=function(e,t){let n=[],o=[];i.Dom.each(e.editor,e=>{i.Dom.isTag(e,"img")&&o.push(e)});try{o.forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),(0,r.attr)(o,"src")];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();i.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(o,"src")||""),(0,r.attr)(o,"src",a.href),i.Dom.safeRemove(a),n.push(()=>{(0,r.attr)(o,{src:s[2],width:s[0]||null,height:s[1]||null})})})}catch(e){throw n.forEach(e=>e()),n.length=0,e}return n}(e,n);try{let a=e.e.fire("beforePreviewBox",t,n);if(null!=a)return a;let u=e.c.div("jodit__preview-box jodit-context");l&&i.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}),i.Dom.append(u,t);let n=t.contentWindow;if(n&&(e.e.fire("generateDocumentStructure.iframe",n.document,e),u=n.document.body,"function"==typeof ResizeObserver)){let i=!1,o=n.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),(0,s.css)(t,"height",o.offsetHeight+20),e.async.requestAnimationFrame(()=>{i||r.observe(o)})},100)),a=()=>{i=!0,r.unobserve(o),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,n)=>{let s=(0,o.isString)(n)?e.c.div():n;(0,o.isString)(n)&&(s.innerHTML=n);for(let e=0;e<s.childNodes.length;e+=1){let n=s.childNodes[e];if(i.Dom.isElement(n)){let e=t.ownerDocument.createElement(n.nodeName);for(let t=0;t<n.attributes.length;t+=1)(0,r.attr)(e,n.attributes[t].name,n.attributes[t].value);0===n.childNodes.length||i.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(e.textContent=n.textContent):n.innerHTML&&(e.innerHTML=n.innerHTML):h(e,n);try{i.Dom.append(t,e)}catch(e){}}else try{i.Dom.append(t,n.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,n){n.d(t,{reset:function(){return a}});var i=n(82758),o=n(23282),r=n(94643);let s={};function a(e){var t,n;if(!(e in s)){let n=i.globalDocument.createElement("iframe");try{if(n.src="about:blank",i.globalDocument.body.appendChild(n),!n.contentWindow)return null;let t=(0,r.get)(e,n.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),n.contentWindow);(0,o.isFunction)(t)&&(s[e]=t.bind(a))}catch(e){if(!i.IS_PROD)throw e}finally{null==(t=n.parentNode)||t.removeChild(n)}}return null!=(n=s[e])?n:null}},26395:function(e,t,n){n.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var i=n(2748);function o(e,t,n){var i;let o=e.getBoundingClientRect(),r=e,s=o.top,a=o.height;for(;r&&r!==t&&r.parentNode;)if(s+a>(o=(r=r.parentNode).getBoundingClientRect()).bottom+1&&s>o.top||s+a<=o.top)return!1;let l=n.documentElement&&n.documentElement.clientHeight||0,c=null==(i=n.defaultView)?void 0:i.getComputedStyle(n.documentElement),u=(e="")=>e.endsWith("%")?parseFloat(e)*l/100:parseFloat(e)||0,d=u(null==c?void 0:c.scrollPaddingTop);return(s+a<=l-u(null==c?void 0:c.scrollPaddingBottom)+1||d>=s)&&s+a>=d}function r(e,t,n){if(i.Dom.isHTMLElement(e)&&!o(e,t,n)){if(t.clientHeight!==t.scrollHeight){let n=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<n?n:e.offsetTop}o(e,t,n)||e.scrollIntoView({block:"nearest"})}}},76078:function(e,t,n){n.d(t,{$$:function(){return d},resolveElement:function(){return p}});var i=n(82758),o=n(2748),r=n(4510),s=n(70799),a=n(87058),l=n(29960),c=n(89890);let u=1;function d(e,t){let n;if(!i.IS_ES_NEXT&&/:scope/.test(e)&&i.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let i=t.id,o=i||"_selector_id_"+String(Math.random()).slice(2)+ ++u;e=e.replace(/:scope/g,"#"+o),i||t.setAttribute("id",o),n=t.parentNode.querySelectorAll(e),i||t.removeAttribute("id")}else n=t.querySelectorAll(e);return[].slice.call(n)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let n=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(n.length>1?"["+((0,r.toArray)(n).indexOf(e)+1)+"]":"")};function p(e,t){let n=e;if((0,s.isString)(e))try{n=t.querySelector(e)}catch(t){throw(0,c.error)('String "'+e+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!o.Dom.isElement(n)||!n.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return n}n.d(t,["cssPath",0,e=>{if(!o.Dom.isElement(e))return null;let t=[],n=e;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let e=n.nodeName.toLowerCase();if(n.id){e+="#"+n.id,t.unshift(e);break}{let t=n,i=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&i++;while(t);e+=":nth-of-type("+i+")"}t.unshift(e),n=n.parentNode}return t.join(" > ")},"getXPathByElement",0,h,"refs",0,e=>{"container"in e&&(e=e.container);let t={};return o.Dom.each(e,e=>{if(o.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let n=(0,l.attr)(e,"-ref");n&&(0,s.isString)(n)&&(t[(0,a.camelCase)(n)]=e,t[n]=e)}}),t}])},3703:function(e,t,n){n.d(t,{set:function(){return l}});var i=n(68345),o=n(29807),r=n(72430),s=n(70799),a=n(69175);function l(e,t,n){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let c=n;for(let e=0;e<l.length-1;e+=1){let t=l[e];(0,i.isArray)(c[t])||(0,r.isPlainObject)(c[t])||(c[t]=(0,o.isNumeric)(l[e+1])?[]:{}),c=c[t]}c&&(c[l[l.length-1]]=t)}},50535:function(e,t,n){n.d(t,{LimitedStack:function(){return i}});class i{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,n){n.d(t,{call:function(){return a},callPromise:function(){return u},callThis:function(){return l},getPropertyDescriptor:function(){return d},markOwner:function(){return c}});var i=n(14773),o=n(86068),r=n(29960),s=n(86583);function a(e,...t){return e(...t)}function l(e,t,...n){return e.apply(t,n)}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,i.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}function d(e,t){let n;do n=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!n&&e);return n}n.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 n=[];for(let t in e)n.push(t);return n},"loadImage",0,(e,t)=>t.async.promise((n,i)=>{let o=new Image,r=()=>{t.e.off(o),null==i||i()},s=()=>{t.e.off(o),n(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),"memorizeExec",0,(e,t,{control:n},i)=>{var r;let a=`button${n.command}`,l=null!=(r=n.args&&n.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),i&&(l=i(l)),e.execCommand(n.command,!1,null!=l?l:void 0)}])},31359:function(e,t,n){n.d(t,{init:function(){return s}});var i=n(82758),o=n(60132),r=n(14041);function s(e,t,n,s,a,l,c){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!i.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{i.IS_PROD}),s.styles&&(c(e,t,"style").innerHTML=s.styles)}},14041:function(e,t,n){n.d(t,{loadExtras:function(){return d},loadStyle:function(){return c}});var i=n(82758),o=n(12475),r=n(63799),s=n(89672);function a(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}let l=new Set;function c(e,t){var n;return(n=function*(){let n=u(e,t,!1);if(!l.has(n))return l.add(n),(0,r.appendStyleAsync)(e,n)},function(){var e=this,t=arguments;return new Promise(function(i,o){var r=n.apply(e,t);function s(e){a(r,i,o,s,l,"next",e)}function l(e){a(r,i,o,s,l,"throw",e)}s(void 0)})})()}function u(e,t,n){t=(0,o.kebabCase)(t);let i=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+i+"."+(n?"js":"css")}function d(e,t,n,o){try{let i=n.filter(t=>!e.has((0,s.normalizeName)(t.name)));i.length&&i.map(e=>{let n=e.url||u(t,e.name,!0);return(0,r.appendScriptAsync)(t,n).then(o).catch(()=>null)})}catch(e){if(!i.IS_PROD)throw e}}},48591:function(e,t,n){n.d(t,{makeInstance:function(){return r}});var i=n(82758),o=n(23282);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(n){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!i.IS_PROD)throw e}return null}},89672:function(e,t,n){n.d(t,{normalizeName:function(){return o}});var i=n(12475);function o(e){return(0,i.kebabCase)(e).toLowerCase()}},50911:function(e,t,n){n.d(t,{Plugin:function(){return i.Plugin}});var i=n(20356);n(41876)},41876:function(e,t,n){n.d(t,{PluginSystem:function(){return p}});var i=n(82758),o=n(57012),r=n(46559),s=n(68345),a=n(60132),l=n(70799),c=n(31359),u=n(14041),d=n(48591),h=n(89672);class p{get size(){return this.__items.size}add(e,t){this.__items.set((0,h.normalizeName)(e),t),o.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((n,i)=>{(!e||e.has(i))&&t.push([i,n])}),t}__init(e){let{extraList:t,disableList:n,filter:o}={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(o).forEach(([i,o])=>{if(n.has(i)||p.has(i))return;let r=null==o?void 0:o.requires;if(r&&(0,s.isArray)(r)&&r.length){if(r.some(e=>n.has(e)))return;if(!r.every(e=>p.has(e)))return void m.add(i)}t=!0;let a=(0,d.makeInstance)(e,o);if(!a){p.set(i,null),m.delete(i);return}(0,c.init)(e,i,o,a,p,m,this.opts.getContainer),f[i]=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 n=f[t];(0,a.isDestructable)(n)&&n.destruct(e),delete f[t]}),delete e.__plugins}),i.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let n=()=>{t(),o.eventEmitter.off(`plugin:${e}:ready`,n)};o.eventEmitter.on(`plugin:${e}:ready`,n)})}constructor(e){this.opts=e,this.__items=new Map}}},20356:function(e,t,n){n.d(t,{Plugin:function(){return a}});var i=n(91907),o=n(65478),r=n(19306),s=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class a extends i.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(i.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(i.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([o.autobind],a.prototype,"__afterPluginSystemInit",null),s([o.autobind],a.prototype,"__afterInit",null),s([o.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,n){n.d(t,{Ajax:function(){return p}});var i=n(8884),o=n(82758),r=n(45219),s=n(21537),a=n(89890),l=n(6441);n(57459);var c=n(98582);function u(e){var t,n;function i(t,n){try{var r=e[t](n),s=r.value,a=s instanceof h;Promise.resolve(a?s.v:s).then(function(n){if(a){var l="return"===t?"return":"next";if(!s.k||n.done)return i(l,n);n=e[l](n).value}o(r.done?"return":"normal",n)},function(e){i("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise(function(r,s){var a={key:e,arg:o,resolve:r,reject:s,next:null};n?n=n.next=a:(t=n=a,i(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}function d(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function h(e,t){this.v=e,this.k=t}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)};class p{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 o.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}__hasAnswerEnvelope(){let{xhr:e}=this;if(e.responseType&&"text"!==e.responseType)return!1;let t=e.responseText;if(!t||"{"!==t[0])return!1;try{let e=JSON.parse(t);return(0,s.isPlainObject)(e)&&"success"in e}catch(e){return!1}}send(){this.__activated=!0;let{xhr:e,o:t}=this,n=this.prepareRequest();return this.__async.promise((i,o)=>{var r;return(r=function*(){var r;let l=()=>{this.__isFulfilled=!0,o(a.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,i(new c.Response(n,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=u,e.onabort=()=>{this.__isFulfilled=!0,o(a.abort("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,n;let i=0;e.lengthComputable&&(i=e.loaded/e.total*100),null==(n=(t=this.options).onProgress)||n.call(t,i)},e.onreadystatechange=()=>{var n,i;null==(i=(n=this.options).onProgress)||i.call(n,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)||this.__hasAnswerEnvelope()?u():e.statusText&&(this.__isFulfilled=!0,o(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:d,data:h,method:p}=n;e.open(p,d,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:f}=t;(0,s.isFunction)(f)&&(f=yield 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)},function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function s(e){d(o,n,i,s,a,"next",e)}function a(e){d(o,n,i,s,a,"throw",e)}s(void 0)})}).call(this)})}stream(){var e;return(e=function*(){var e,t;this.__activated=!0;let{xhr:n,o:i}=this,o=this.prepareRequest(),r=0,l="",c=[],u=null,d=!1,p=null,f=()=>{if(u){let e=u;u=null,e()}},m=e=>{var t;let i=n.responseText;l+=i.substring(r),r=i.length;let o=l.split("\n\n");for(let n of(l=e?"":null!=(t=o.pop())?t:"",o)){let e=n.trim();if(!e)continue;let t=[];for(let n of e.split("\n"))n.startsWith("data: ")?t.push(n.slice(6)):n.startsWith("data:")&&t.push(n.slice(5));t.length&&c.push(t.join("\n"))}f()};n.onprogress=()=>m(!1),n.onload=()=>{m(!0),d=!0,this.__isFulfilled=!0,f()},n.onerror=()=>{p=a.connection("Connection error"),d=!0,this.__isFulfilled=!0,f()},n.onabort=()=>{p=a.abort("Abort connection"),d=!0,this.__isFulfilled=!0,f()},n.withCredentials=null!=(e=i.withCredentials)&&e;let{url:g,data:b,method:v}=o;n.open(v,g,!0),i.contentType&&n.setRequestHeader&&n.setRequestHeader("Content-type",i.contentType);let{headers:y}=i;(0,s.isFunction)(y)&&(y=yield new h(y.call(this),0)),y&&n.setRequestHeader&&Object.keys(y).forEach(e=>{n.setRequestHeader(e,y[e])}),n.send(b?this.__buildParams(b):void 0);try{for(;;)if(c.length>0)yield c.shift();else if(d)break;else yield(t=new Promise(e=>{u=e}),new h(t,0))}finally{this.__isFulfilled||this.abort()}if(p)throw p},function(){return new u(e.apply(this,arguments))}).call(this)}prepareRequest(){if(!this.o.url)throw a.error("Need URL for AJAX request");let e=this.o.url,t=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&t&&(0,s.isPlainObject)(t)){let n=e.indexOf("?");if(-1!==n){let i=(0,s.parseQuery)(e.substring(n));e=e.substring(0,n)+"?"+(0,s.buildQuery)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({},i,t))}else e+="?"+(0,s.buildQuery)(this.o.data)}let i={url:e,method:n,data:t};return p.log.splice(100),p.log.push(i),i}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=l.Config.prototype.defaultAjaxOptions){this.__async=new i.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,s.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}p.log=[],function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([r.autobind],p.prototype,"destruct",null)},57459:function(e,t,n){n(6441).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},41601:function(e,t,n){n.d(t,{Ajax:function(){return i.Ajax},Response:function(){return o.Response}});var i=n(54079),o=n(98582)},98582:function(e,t,n){function i(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var s=e.apply(t,n);function a(e){i(s,o,r,a,l,"next",e)}function l(e){i(s,o,r,a,l,"throw",e)}a(void 0)})}}n.d(t,{Response:function(){return r}});class r{get url(){return this.request.url}json(){return o(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return o(function*(){return this.body}).call(this)}constructor(e,t,n,i){this.request=e,this.status=t,this.statusText=n,this.body=i}}},79505:function(e,t,n){n.d(t,{composedRanges:function(){return o}});var i=n(27613);function o(e,t){let n=e.getComposedRanges;if(!(0,i.isFunction)(n))return null;for(let i of[[{shadowRoots:[t]}],[t]]){let o;try{o=n.apply(e,i)}catch(e){continue}if(function(e,t){return Array.isArray(e)&&e.length>0&&e.every(e=>{var n;return(n=e.startContainer)===t||t.contains(n)})}(o,t))return o}return null}},45124:function(e,t,n){n.d(t,{composedRanges:function(){return s.composedRanges},cursorInTheEdgeOfString:function(){return c},findCorrectCurrentNode:function(){return u},isMoved:function(){return a.isMoved},moveNodeInsideStart:function(){return l.moveNodeInsideStart}});var i=n(82758),o=n(2748),r=n(49055),s=n(79505),a=n(12604),l=n(26716);function c(e,t,n,o){var s;let a=(null==(s=e.nodeValue)?void 0:s.length)?e.nodeValue:"";if(o&&(0,r.trimInvEnd)(a).length>t)return!0;let l=(0,i.INVISIBLE_SPACE_REG_EXP_START)().exec(a);return n&&(l&&l[0].length<t||!l&&t>0)}function u(e,t,n,i,r,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],n=!0),e&&i&&!o.Dom.isText(e)){if(!n&&o.Dom.isText(e.previousSibling))e=e.previousSibling;else if(r){let t=e=>n?e.lastChild:s(e),i=t(e);for(;i;){if(i&&o.Dom.isText(i)){e=i;break}i=t(i)}}}if(e&&!i&&!o.Dom.isText(e)){let t=e,n=e;do t=t.firstChild,n=n.lastChild;while(t&&n&&!o.Dom.isText(t));t===n&&t&&o.Dom.isText(t)&&(e=t)}return{node:e,rightMode:n}}n(43463)},12604:function(e,t,n){n.d(t,{isMoved:function(){return i}});function i(e,t){let{s:n}=e;if(!t||!n.isInsideArea)return!1;let{range:i}=n;return i.startContainer!==t.startContainer||i.startOffset!==t.startOffset||i.endContainer!==t.endContainer||i.endOffset!==t.endOffset}},26716:function(e,t,n){n.d(t,{moveNodeInsideStart:function(){return r}});var i=n(82758),o=n(2748);function r(e,t,n){let r=e=>{var t;return!o.Dom.isEmptyTextNode(e)||!!(null==(t=e.nodeValue)?void 0:t.includes(i.NBSP_SPACE))},s=o.Dom.findSibling(t,n,r),a=o.Dom.findSibling(t,!n,r);for(;o.Dom.isElement(s)&&!o.Dom.isTag(s,i.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(s,e.editor)&&(!a||!o.Dom.closest(t,o.Dom.isElement,e.editor));)n||!s.firstChild?o.Dom.append(s,t):o.Dom.before(s.firstChild,t),s=o.Dom.sibling(t,n),a=o.Dom.sibling(t,!n)}},43463:function(e,t,n){n.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return o}});var i=n(2748);function o(e,t,n){let o=e;for(;o&&o!==n&&!(i.Dom.findSibling(o,t)||i.Dom.isBlock(o.parentElement));)(o=o.parentElement)&&o!==n&&(t?i.Dom.before(o,e):i.Dom.after(o,e))}},59242:function(e,t,n){n.d(t,{CHANGE:function(){return"change"},CommitStyle:function(){return o.CommitStyle},REPLACE:function(){return r.REPLACE},Selection:function(){return i.Selection},UNWRAP:function(){return"unwrap"},WRAP:function(){return"wrap"}});var i=n(79348),o=n(25639),r=n(77361)},79348:function(e,t,n){n.d(t,{Selection:function(){return f}});var i=n(82758),o=n(65478),r=n(2748),s=n(21537),a=n(27613),l=n(25726),c=n(38837),u=n(43463),d=n(25639),h=n(45124),p=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class f{get j(){return this.jodit}errorNode(e){if(!r.Dom.isNode(e))throw(0,s.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){let{shadowRoot:e}=this.j.o;if(e){if((0,a.isFunction)(e.getSelection))return e.getSelection();let t=this.__composedSelection(e);if(t)return t}return this.win.getSelection()}__composedSelection(e){let t=this.win.getSelection();if(!t)return null;let{anchorNode:n}=t;if(n&&r.Dom.isOrContains(e,n))return null;let i=(0,h.composedRanges)(t,e);if(!i)return null;let o=i.map(e=>{let t=this.createRange();return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),t}),s=o[0],l={rangeCount:o.length,getRangeAt:e=>o[e],isCollapsed:o.every(e=>e.collapsed),anchorNode:s?s.startContainer:null,anchorOffset:s?s.startOffset:0,focusNode:s?s.endContainer:null,focusOffset:s?s.endOffset:0,toString:()=>o.map(e=>e.toString()).join("")};return new Proxy(t,{get(e,t){if((0,a.isString)(t)&&t in l)return l[t];let n=Reflect.get(e,t,e);return(0,a.isFunction)(n)?n.bind(e):n}})}__nativeRangeCount(){var e,t,n,i;let{shadowRoot:o}=this.j.o;return o&&(0,a.isFunction)(o.getSelection)?null!=(t=null==(e=o.getSelection())?void 0:e.rangeCount)?t:0:null!=(i=null==(n=this.win.getSelection())?void 0:n.rangeCount)?i:0}get range(){let e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:e}=this;if(!(null==e?void 0:e.rangeCount))return!1;for(let t=0;t<e.rangeCount;t+=1)if(!r.Dom.isOrContains(this.area,e.getRangeAt(t).commonAncestorContainer))return!1;return!0}createRange(e=!1){let t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){let e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1){let n=e.getRangeAt(t);r.Dom.isOrContains(this.area,n.commonAncestorContainer)&&(n.deleteContents(),n.collapse(!0))}}clear(){var e,t;(null==(e=this.sel)?void 0:e.rangeCount)&&(null==(t=this.sel)||t.removeAllRanges())}removeNode(e){if(!r.Dom.isOrContains(this.j.editor,e,!0))throw(0,s.error)("Selection.removeNode can remove only editor's children");r.Dom.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){var n,i,o,s;try{let a=this.createRange(),l=null==(i=(n=this.doc).caretPositionFromPoint)?void 0:i.call(n,e,t),c=l?null:null==(s=(o=this.doc).caretRangeFromPoint)?void 0:s.call(o,e,t);if(l)a.setStart(l.offsetNode,l.offset);else{if(!c)return!1;a.setStart(c.startContainer,c.startOffset)}if(!r.Dom.isOrContains(this.area,a.startContainer))return!1;return a.collapse(!0),this.removeMarkers(),this.selectRange(a),!0}catch(e){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,s.$$)("span[data-"+i.MARKER_CLASS+"]",this.area)}removeMarkers(){r.Dom.safeRemove(...this.markers)}marker(e=!1,t){var n;let o=null;t&&(o=t.cloneRange()).collapse(e);let a=this.j.createInside.span();if(a.id=i.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),(0,s.css)(a,{lineHeight:"0",display:"none"}),r.Dom.markTemporary(a),(0,s.attr)(a,"data-"+i.MARKER_CLASS,e?"start":"end"),r.Dom.append(a,this.j.createInside.text(i.INVISIBLE_SPACE)),o&&r.Dom.isOrContains(this.area,e?o.startContainer:o.endContainer)){let{startContainer:e,startOffset:t}=o;r.Dom.isText(e)&&0===t?r.Dom.before(e,a):r.Dom.isText(e)&&t===(null==(n=e.nodeValue)?void 0:n.length)?r.Dom.after(e,a):o.insertNode(a)}return a}restore(){var e,t;let n=this.markers,o=new Map(n.map(e=>[e.id,e])),a=[],l=!1;for(let c=0;c<n.length;c+=1){let u=n[c];if("start"!==(0,s.attr)(u,"data-"+i.MARKER_CLASS))continue;l||(l="true"===(0,s.attr)(u,"data-selection-backward"));let d=(0,s.attr)(u,"data-selection-end"),h=d?o.get(d):void 0;!d&&n[c+1]&&"end"===(0,s.attr)(n[c+1],"data-"+i.MARKER_CLASS)&&(h=n[c+1]);let p=this.createRange();if(h)p.setStartAfter(u),p.setEndBefore(h);else{let n=u.previousSibling;r.Dom.isText(n)?p.setStart(n,null!=(t=null==(e=n.nodeValue)?void 0:e.length)?t:0):p.setStartBefore(u),p.collapse(!0)}a.push(p)}r.Dom.safeRemove(...n),a.length&&this.__selectRanges(a,l)}__isBackward(){let e=this.sel;return!!(e&&1===e.rangeCount&&!e.isCollapsed&&e.anchorNode===e.getRangeAt(0).endContainer&&e.anchorOffset===e.getRangeAt(0).endOffset)}__ranges(){let e=this.sel;return e?Array.from({length:e.rangeCount},(t,n)=>e.getRangeAt(n).cloneRange()):[]}fakes(){if(!this.isInsideArea)return[];let e=this.__isBackward(),t=this.__ranges(),n=t.map(e=>{let t=e.collapsed,n=e.cloneRange();n.collapse(!0);let i=this.j.createInside.fake();r.Dom.safeInsertNode(n,i),e.setStartBefore(i);let o=[i];if(t)e.collapse(!0);else{let t=e.cloneRange();t.collapse(!1);let n=this.j.createInside.fake();r.Dom.safeInsertNode(t,n),e.setEndAfter(n),o.push(n)}return o});return this.__fakeSelections.set(n[0][0],{pairs:n,backward:e}),this.__selectRanges(t,e),n[0]}restoreFakes(e){var t,n,i;if(!e.length)return;let o=this.__fakeSelections.get(e[0]);if(this.__fakeSelections.delete(e[0]),this.j.isInDestruct)return;let s=[];for(let a of null!=(t=null==o?void 0:o.pairs)?t:[e]){let e=a.filter(e=>e.isConnected&&r.Dom.isOrContains(this.area,e,!0));if(!e.length)continue;let[t,o]=e,l=this.createRange();for(let s of(l.setStartAfter(t),o?l.setEndBefore(o):l.collapse(!0),e))(null==(n=s.parentNode)?void 0:n.firstChild)!==(null==(i=s.parentNode)?void 0:i.lastChild)&&r.Dom.safeRemove(s);s.push(l)}s.length&&this.__selectRanges(s,null==o?void 0:o.backward)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let n=this.__isBackward(),i=[],o=t.rangeCount,a=[];for(let e=0;o>e;e+=1)if(a[e]=t.getRangeAt(e),!r.Dom.isOrContains(this.area,a[e].commonAncestorContainer))return[];for(let e=0;o>e;e+=1)if(a[e].collapsed){let t=this.marker(!0,a[e]);i[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,a[e]),r=this.marker(!1,a[e]);o>1&&(0,s.attr)(t,"data-selection-end",r.id),n&&(0,s.attr)(t,"data-selection-backward","true"),i[e]={startId:t.id,endId:r.id,collapsed:!1,startMarker:t.outerHTML,endMarker:r.outerHTML}}if(!e){t.removeAllRanges();for(let e=o-1;e>=0;--e){let n=this.area.querySelector("#"+i[e].startId);if(n){if(i[e].collapsed)a[e].setStartAfter(n),a[e].collapse(!0);else if(a[e].setStartBefore(n),i[e].endId){let t=this.area.querySelector("#"+i[e].endId);t&&a[e].setEndAfter(t)}try{t.addRange(a[e].cloneRange())}catch(e){}}}}return i}focus(e={preventScroll:!0}){var t,n;if(!this.isFocused()){let i=(0,s.getScrollParent)(this.j.container),o=null==i?void 0:i.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),o&&(null==i?void 0:i.scrollTo)&&i.scrollTo(0,o);let a=this.sel,l=(null==a?void 0:a.rangeCount)?null==a?void 0:a.getRangeAt(0):null;if(!l||!r.Dom.isOrContains(this.area,l.startContainer)){let e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}return this.j.editorIsActive||null==(n=null==(t=this.j)?void 0:t.events)||n.fire("focus"),!0}return!1}isCollapsed(){let e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){let e=this.doc.activeElement;return!!(this.doc.hasFocus&&this.doc.hasFocus()&&e&&(this.area===e||r.Dom.isHTMLElement(e)&&e.isContentEditable&&r.Dom.isOrContains(this.area,e)))}current(e=!0){if(this.j.getRealMode()!==i.MODE_WYSIWYG)return null;let t=this.sel;if(!t||0===t.rangeCount)return null;let n=t.getRangeAt(0),o=n.startContainer,s=!1;if(!r.Dom.isOrContains(this.area,o))return null;if(r.Dom.isTag(o,"br")&&t.isCollapsed)return o;if(!r.Dom.isText(o)){let i=(0,h.findCorrectCurrentNode)(o,n,s,t.isCollapsed,e,e=>s?e.lastChild:e.firstChild);o=i.node,s=i.rightMode}return o&&r.Dom.isOrContains(this.area,o)?o:null}insertNode(e,t=!0,n=!0){this.errorNode(e),this.j.e.fire("safeHTML",e);let o=r.Dom.isFragment(e)?e.lastChild:e;if(!o||this.j.isInDestruct)return;!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let a=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),!(o=r.Dom.isFragment(e)?e.lastChild:e)||this.j.isInDestruct)return;if(a&&a.rangeCount){let t=a.getRangeAt(0),n=r.Dom.isBlock(e),o=n?e:e.firstChild;r.Dom.isOrContains(this.area,t.commonAncestorContainer)?r.Dom.safeInsertNode(t,e):r.Dom.append(this.area,e),[()=>null==o?void 0:o.previousSibling,()=>null==o?void 0:o.previousSibling,()=>{var e;return null==(e=null==o?void 0:o.previousSibling)?void 0:e.lastChild},()=>n?e.nextSibling:null].forEach(e=>{var t;let n=e();n&&r.Dom.isText(n)&&0===(null!=(t=n.nodeValue)?t:"").replace(i.INVISIBLE_SPACE_REG_EXP(),"").length&&r.Dom.safeRemove(n)})}else r.Dom.append(this.area,e);let n=e=>{if(r.Dom.isBlock(e)){let t=e.lastChild;if(t)return n(t)}this.setCursorAfter(e)};t&&(r.Dom.isFragment(e)?o&&n(o):n(e)),this.j.o.scrollToPastedContent&&(0,s.scrollIntoViewIfNeeded)(null!=o?o:e,this.j.editor,this.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",r.Dom.isFragment(e)?o:e)}insertHTML(e,t=!0){if(""===e)return;let n=this.j.createInside.div(),i=this.j.createInside.fragment();!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),r.Dom.isNode(e)?r.Dom.append(n,e):n.innerHTML=e.toString(),!this.j.isEditorMode()&&!1===this.j.e.fire("insertHTML",n.innerHTML)||n.lastChild&&(r.Dom.moveContent(n,i),this.insertNode(i,t,!1),this.j.__imdSynchronizeValues())}insertImage(e,t=null,n=null){let i=(0,a.isString)(e)?this.j.createInside.element("img"):e;if((0,a.isString)(e)&&(0,s.attr)(i,"src",e),null!=n){let e=n.toString();e&&"auto"!==e&&0>String(e).indexOf("px")&&0>String(e).indexOf("%")&&(e+="px"),(0,s.attr)(i,"width",e)}t&&"object"==typeof t&&(0,s.css)(i,t);let{imageDefaultAlign:o}=this.j.o;o&&"normal"!==o&&(0,l.hAlignElement)(i,o,(0,l.getAlignClasses)(this.j,i));let r=()=>{(i.naturalHeight<i.offsetHeight||i.naturalWidth<i.offsetWidth)&&(0,s.css)(i,{width:"",height:""}),i.removeEventListener("load",r)};this.j.e.on(i,"load",r),i.complete&&r(),this.insertNode(i),this.j.e.fire("afterInsertImage",i)}eachSelection(e){let t=new Set;for(let n of this.__ranges())r.Dom.isOrContains(this.area,n.commonAncestorContainer)&&this.__eachRange(n,n=>{t.has(n)||(t.add(n),e(n))})}__eachRange(e,t){var n;let o=e.commonAncestorContainer;r.Dom.isHTMLElement(o)||(o=o.parentElement);let l=[],c=e.startOffset,u=o.childNodes.length,d=e.startContainer===this.area?o.childNodes[c<u?c:u-1]:e.startContainer,h=e.endContainer===this.area?o.childNodes[e.endOffset-1]:e.endContainer;r.Dom.isText(d)&&d===e.startContainer&&e.startOffset===(null==(n=d.nodeValue)?void 0:n.length)&&d.nextSibling&&(d=d.nextSibling),r.Dom.isText(h)&&h===e.endContainer&&0===e.endOffset&&h.previousSibling&&(h=h.previousSibling);let p=e=>{!e||e===o||r.Dom.isEmptyTextNode(e)||(0,a.isMarker)(e)||l.push(e)};p(d),d!==h&&r.Dom.isOrContains(o,d,!0)&&r.Dom.find(d,e=>(p(e),e===h||e&&e.contains&&e.contains(h)),o,!0,!1);let f=e=>{if(r.Dom.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(e.childNodes).forEach(f);if(r.Dom.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{let t=this.j.createInside.text(i.INVISIBLE_SPACE);r.Dom.append(e,t),e=t}t(e)}};0===l.length&&(r.Dom.isEmptyTextNode(d)&&l.push(d),(null==d?void 0:d.firstChild)&&l.push(d.firstChild)),l.forEach(f)}cursorInTheEdge(e,t,n=null){let i=!e,o=this.sel,s=(null==o?void 0:o.rangeCount)?o.getRangeAt(0):null;if(!s)return null;let a=e?s.startContainer:s.endContainer,l=e?s.startOffset:s.endOffset;if(null!=n||(n=a),!r.Dom.isOrContains(t,a)||!r.Dom.isOrContains(t,n))return null;let c=e=>!!(e&&!r.Dom.isTag(e,"br")&&!r.Dom.isEmptyTextNode(e)&&!r.Dom.isTemporary(e)&&!(r.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(r.Dom.isText(a)){if((0,h.cursorInTheEdgeOfString)(a,l,e,i))return!1}else{let e=a.childNodes,t=i?e.length:l;for(let n=i?l:0;t>n;n+=1)if(c(e[n]))return!1}let u=n;for(;u&&u!==t;){let t=r.Dom.sibling(u,e);if(!t){u=u.parentNode;continue}if(c(u=t))return!1}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){var n,i;if(this.errorNode(e),!r.Dom.isOrContains(this.area,e,!0))throw(0,s.error)("Node element must be in editor");let o=this.createRange(),a=null;return r.Dom.isText(e)?t?o.setStart(e,0):o.setEnd(e,null!=(i=null==(n=e.nodeValue)?void 0:n.length)?i:0):(a=this.j.createInside.fake(),t?o.setStartBefore(e):o.setEndAfter(e),o.collapse(t),r.Dom.safeInsertNode(o,a),o.selectNode(a)),o.collapse(t),this.selectRange(o),a}setCursorIn(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let n=this.createRange(),o=e,a=e;do{if(r.Dom.isText(o)||r.Dom.isTag(o,i.INSEPARABLE_TAGS))break;a=o,o=t?o.firstChild:o.lastChild}while(o);if(!o){let e=this.j.createInside.text(i.INVISIBLE_SPACE);r.Dom.isTag(a,i.INSEPARABLE_TAGS)?o=a:(r.Dom.append(a,e),a=e)}let l=o||a;return r.Dom.isTag(l,i.INSEPARABLE_TAGS)?t||r.Dom.isTag(l,"br")?n.setStartBefore(l):n.setEndAfter(l):n.selectNodeContents(l),n.collapse(t),this.selectRange(n),a}selectRange(e,t=!0){return this.__selectRanges([e],!1,t)}__selectRanges(e,t=!1,n=!0){let i=this.sel;if(n&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),i){if(i.removeAllRanges(),e.forEach(e=>i.addRange(e)),t&&1===e.length){let t=e[0];i.setBaseAndExtent(t.endContainer,t.endOffset,t.startContainer,t.startOffset)}else if(1===e.length&&!this.__nativeRangeCount()&&(0,a.isFunction)(i.setBaseAndExtent)){let t=e[0];i.setBaseAndExtent(t.startContainer,t.startOffset,t.endContainer,t.endOffset)}}return this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let n=!t&&this.__closestNotEditable(e)||e,i=this.createRange();return i[t||n===this.area?"selectNodeContents":"selectNode"](n),this.selectRange(i)}__closestNotEditable(e){let{area:t}=this,n=null,i=e.parentNode;for(;i&&i!==t&&t.contains(i);){if(r.Dom.isElement(i)){let e=i.getAttribute("contenteditable");if("true"===e)break;"false"===e&&(n=i)}i=i.parentNode}return n}get html(){let e=this.sel;if(e&&e.rangeCount>0){let e=this.j.createInside.div();return this.__ranges().forEach(t=>r.Dom.append(e,t.cloneContents())),e.innerHTML}return""}__wrapSelectionFragments(e){this.__splitSelectionBoundaries(e);let t=e.commonAncestorContainer;return(r.Dom.isText(t)&&(t=t.parentNode),t)?this.__wrapSelectionRuns(this.__collectContainedNodes(t,e)):[]}__splitSelectionBoundaries(e){var t,n,i,o;let{endContainer:s,endOffset:a}=e;r.Dom.isText(s)&&a>0&&a<(null!=(n=null==(t=s.nodeValue)?void 0:t.length)?n:0)&&s.splitText(a);let{startContainer:l,startOffset:c}=e;if(r.Dom.isText(l)&&c>0&&c<(null!=(o=null==(i=l.nodeValue)?void 0:i.length)?o:0)){let t=l.splitText(c);e.setStart(t,0)}this.__normalizeRangeBoundary(e,!0),this.__normalizeRangeBoundary(e,!1)}__normalizeRangeBoundary(e,t){var n,i;let o=t?e.startContainer:e.endContainer;if(!r.Dom.isText(o))return;let s=t?e.startOffset:e.endOffset,a=null!=(i=null==(n=o.nodeValue)?void 0:n.length)?i:0;0===s?t?e.setStartBefore(o):e.setEndBefore(o):s>=a&&(t?e.setStartAfter(o):e.setEndAfter(o))}__collectContainedNodes(e,t,n=this.createRange()){let i=[];return(0,s.toArray)(e.childNodes).forEach(e=>{this.__isFullyContained(t,e,n)?i.push(e):e.childNodes.length&&t.intersectsNode(e)&&i.push(...this.__collectContainedNodes(e,t,n))}),i}__isFullyContained(e,t,n){return n.selectNode(t),0>=e.compareBoundaryPoints(Range.START_TO_START,n)&&e.compareBoundaryPoints(Range.END_TO_END,n)>=0}__wrapSelectionRuns(e){let t=[],n=[],i=()=>{n.length&&(t.push(this.__wrapRunInFont(n)),n=[])};return e.forEach(e=>{r.Dom.isElement(e)&&this.__isOrContainsBlock(e)?(i(),t.push(...this.__wrapSelectionRuns((0,s.toArray)(e.childNodes)))):(n.length&&n[n.length-1].parentNode!==e.parentNode&&i(),n.push(e))}),i(),t}__isOrContainsBlock(e){return!!r.Dom.isBlock(e)||(0,s.toArray)(e.childNodes).some(e=>this.__isOrContainsBlock(e))}__wrapRunInFont(e){let t=this.j.createInside.element("font"),[n]=e;return r.Dom.before(n,t),e.forEach(e=>r.Dom.append(t,e)),t}*wrapInTagGen(e){var t;if((null==(t=this.sel)?void 0:t.rangeCount)&&!this.isInsideArea)return;if(this.isCollapsed()){let t=this.jodit.createInside.element("font",i.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&r.Dom.append(t,e[0]);try{yield t}finally{r.Dom.unwrap(t)}return}let n=this.__ranges().flatMap(e=>this.__wrapSelectionFragments(e));try{for(let e of n){if(this.j.isInDestruct||!r.Dom.isOrContains(this.area,e,!0))continue;let{firstChild:t,lastChild:n}=e;if(t&&t===n&&(0,a.isMarker)(t)){r.Dom.unwrap(e);continue}t&&(0,a.isMarker)(t)&&r.Dom.before(e,t),n&&(0,a.isMarker)(n)&&r.Dom.after(e,n),yield e,r.Dom.unwrap(e)}}finally{n.forEach(e=>r.Dom.unwrap(e))}}wrapInTag(e){let t=[];for(let n of this.wrapInTagGen())try{if(n.firstChild&&n.firstChild===n.lastChild&&(0,a.isMarker)(n.firstChild))continue;(0,a.isFunction)(e)?e(n):t.push(r.Dom.replace(n,e,this.j.createInside))}finally{let e=n.parentNode;e&&(r.Dom.unwrap(n),r.Dom.isEmpty(e)&&r.Dom.unwrap(e))}return t}commitStyle(e){(0,c.assert)((0,s.size)(e)>0,"Need to pass at least one option"),new d.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed()||!this.isInsideArea||!r.Dom.isOrContains(this.area,e,!0)||!r.Dom.isOrContains(e,this.range.startContainer)||t&&!r.Dom.isOrContains(e,t,!0))return null;let n=this.createRange(),o=this.range;n.setStartBefore(e);let s=this.cursorOnTheRight(e,t),a=this.cursorOnTheLeft(e,t),l=this.j.createInside.element("br"),u=this.j.createInside.fake(),d=u.cloneNode();try{if(s||a){t?r.Dom.before(t,l):r.Dom.safeInsertNode(o,l);let e=(e,t)=>{let n=t(e);for(;n;){let e=t(n);if(n&&(r.Dom.isTag(n,"br")||r.Dom.isEmptyTextNode(n)))r.Dom.safeRemove(n);else break;n=e}};e(l,e=>e.nextSibling),e(l,e=>e.previousSibling),r.Dom.after(l,d),r.Dom.before(l,u),s?(n.setEndBefore(l),o.setEndBefore(l)):(n.setEndAfter(l),o.setEndAfter(l))}else n.setEnd(o.startContainer,o.startOffset);let h=n.extractContents(),p=e=>r.Dom.each(e,e=>r.Dom.isEmptyTextNode(e)&&r.Dom.safeRemove(e));(0,c.assert)(e.parentNode,"Splitting fails");try{if(p(h),p(e),r.Dom.before(e,h),!t&&s&&(null==l?void 0:l.parentNode)){let e=this.createRange();e.setStartBefore(l),this.selectRange(e)}}catch(e){if(!i.IS_PROD)throw e}let f=e=>{let t=null==e?void 0:e.parentNode;t&&t.firstChild===t.lastChild&&r.Dom.append(t,l.cloneNode())};f(u),f(d)}finally{r.Dom.safeRemove(u),r.Dom.safeRemove(d)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed()||!this.isInsideArea)return this;let e=this.__isBackward(),t=this.__ranges().map(e=>this.__expandRange(e));return this.__selectRanges(t,e),this}__expandRange(e){let t=e.cloneRange();if(!r.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return e;let n=t=>{let n=this.j.createInside.fake(),i=e.cloneRange();return i.collapse(t),r.Dom.safeInsertNode(i,n),(0,u.moveTheNodeAlongTheEdgeOutward)(n,t,this.j.editor),n},i=n(!0),o=n(!1);t.setStartAfter(i),t.setEndBefore(o);let a=r.Dom.findSibling(i,!1),l=r.Dom.findSibling(o,!0);if(a!==l){let e=r.Dom.isElement(a)&&r.Dom.isOrContains(a,o),n=!e&&r.Dom.isElement(l)&&r.Dom.isOrContains(l,i);if(e||n){let n=e?a:l,s=n;for(;r.Dom.isElement(n);)(n=e?n.firstElementChild:n.lastElementChild)&&(e?r.Dom.isOrContains(n,o):r.Dom.isOrContains(n,i))&&(s=n);e?t.setStart(s,0):t.setEnd(s,s.childNodes.length)}}if(r.Dom.safeRemove(i,o),t.collapsed)throw(0,s.error)("Selection is collapsed");return t}constructor(e){this.jodit=e,this.__fakeSelections=new WeakMap,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}p([o.autobind],f.prototype,"createRange",null),p([o.autobind],f.prototype,"focus",null),p([o.autobind],f.prototype,"setCursorAfter",null),p([o.autobind],f.prototype,"setCursorBefore",null),p([o.autobind],f.prototype,"setCursorIn",null)},32526:function(e,t,n){n.d(t,{extractSelectedPart:function(){return s}});var i=n(2748),o=n(78116),r=n(37790);function s(e,t,n){let i=n.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;i.setStartBefore(e),i.setEndBefore(r),a(e,i,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;i.setStartAfter(s),i.setEndAfter(e),a(e,i,!1)}function a(e,t,n){let o=t.extractContents();i.Dom.isEmpty(o)&&o.firstChild&&i.Dom.unwrap(o.firstChild),e.parentNode&&(0,r.call)(n?i.Dom.before:i.Dom.after,e,o)}},49996:function(e,t,n){n.d(t,{FiniteStateMachine:function(){return s}});var i=n(82758),o=n(70799),r=n(38837);class s{setState(e){(0,r.assert)(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(e,t){let n=this.transitions[this.getState()][e];if(n){let e=n.call(this,t);return(0,r.assert)(e&&e!==t,"Action should return new value"),(0,r.assert)((0,o.isString)(e.next),"Value should contain the next state"),(0,r.assert)(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),i.IS_PROD||this.silent,e}throw Error(`invalid action: ${this.getState()}.${e.toString()}`)}constructor(e,t){this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}}},23738:function(e,t,n){n.d(t,{getSuitChild:function(){return s}});var i=n(2748),o=n(29136),r=n(97380);function s(e,t){let{firstChild:n}=t;for(;n&&!(0,o.isNormalNode)(n);)if(!(n=n.nextSibling))return null;return n&&!i.Dom.next(n,o.isNormalNode,t)&&(0,r.isSuitElement)(e,n,!1)?n:null}},44602:function(e,t,n){n.d(t,{getSuitParent:function(){return function e(t,n,s){var a;let{parentNode:l}=n;return l===s||!i.Dom.isHTMLElement(l)||i.Dom.next(n,o.isNormalNode,l)||i.Dom.prev(n,o.isNormalNode,l)?null:t.isElementCommit&&t.elementIsBlock&&!i.Dom.isBlock(l)?e(t,l,s):i.Dom.isTag(l,"li")&&!t.isElementCommit&&(null==(a=t.options.attributes)?void 0:a.style)||(0,r.isSuitElement)(t,l,!1)&&(!i.Dom.isBlock(l)||t.elementIsBlock)?l:t.isElementCommit&&!i.Dom.isBlock(l)?e(t,l,s):null}}});var i=n(2748),o=n(29136),r=n(97380)},22030:function(e,t,n){n.d(t,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return u}});var i=n(82758),o=n(2748),r=n(86068),s=n(3760),a=n(38837),l=n(41180);function c(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(n=>{let i=(0,l.css)(e,n,!0);return""===i&&(""===t[n]||null==t[n])||!(0,r.isVoid)(i)&&""!==i&&!(0,r.isVoid)(t[n])&&(0,s.normalizeCssValue)(n,t[n]).toString().toLowerCase()===i.toString().toLowerCase()}))}if(i.globalDocument){let e=i.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(c(e,{color:"red"}),"Style test"),(0,a.assert)(c(e,{fontSize:null}),"Style test"),(0,a.assert)(c(e,{fontSize:""}),"Style test")}function u(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(t=>""!==(0,l.css)(e,t,!0)))}if(i.globalDocument){let e=i.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(u(e,{color:"red"}),"Style test"),(0,a.assert)(!u(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!u(e,{border:"1px solid #ccc"}),"Style test")}},63687:function(e,t,n){n.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},WRAP_NODES:function(){return h.WRAP_NODES},extractSelectedPart:function(){return i.extractSelectedPart},getSuitChild:function(){return r.getSuitChild},getSuitParent:function(){return s.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},suitableClosest:function(){return l.suitableClosest},toggleAttributes:function(){return u.toggleAttributes},toggleOrderedList:function(){return c.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return h.wrap}});var i=n(32526),o=n(49996),r=n(23738),s=n(44602);n(22030);var a=n(64291);n(29136),n(94466);var l=n(97380),c=n(20199);n(82515);var u=n(44253),d=n(75882),h=n(19263);n(6980)},64291:function(e,t,n){n.d(t,{isInsideInvisibleElement:function(){return o}});var i=n(2748);function o(e,t){return!!i.Dom.closest(e,["style","script"],t)}},29136:function(e,t,n){n.d(t,{isNormalNode:function(){return r}});var i=n(2748),o=n(78116);function r(e){return!!(e&&!i.Dom.isEmptyTextNode(e)&&!i.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},94466:function(e,t,n){n.d(t,{elementsEqualAttributes:function(){return c},isSameAttributes:function(){return l}});var i=n(21496),o=n(43555),r=n(38837),s=n(29960),a=n(22030);function l(e,t){return!(0,i.size)(t)||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(n=>{var i;if("class"===n||"className"===n)return(null!=(i=String(t[n]).match(/[^\t\n\f\r ]+/g))?i:[]).every(t=>e.classList.contains(t));if("style"===n)return(0,a.hasSameStyle)(e,t[n]);let r=t[n];return(0,o.attr)(e,n)===(null==r?r:String(r))}))}function c(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>(0,s.attrRaw)(t,e.name)===e.value)}},97380:function(e,t,n){n.d(t,{isSuitElement:function(){return s},suitableClosest:function(){return a}});var i=n(2748),o=n(22030),r=n(29136);function s(e,t,n,a=!0){var l;if(!t||!(0,r.isNormalNode)(t))return!1;let{element:c,elementIsDefault:u,options:d}=e;if(i.Dom.isList(t)&&e.elementIsList)return!0;let h=i.Dom.isTag(t,c);return!!(h&&!(u&&n)||(null==(l=d.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,d.attributes.style):(0,o.hasSameStyleKeys)(t,d.attributes.style))&&!e.elementIsList)||!h&&!n&&u&&i.Dom.isInlineBlock(t)}function a(e,t,n){return i.Dom.closest(t,t=>s(e,t,!0,!1),n)}},20199:function(e,t,n){n.d(t,{toggleOrderedList:function(){return d}});var i=n(2748),o=n(21496),r=n(38837),s=n(32526),a=n(94466),l=n(44253),c=n(77361),u=n(82515);function d(e,t,n,r,s=!1){if(!t)return r;let f=t.parentElement;if(!f)return r;let m=n.e.fire(`${c._PREFIX}BeforeToggleList`,r,e,f);if(void 0!==m)return m;let g=n.e.fire.bind(n.e,`${c._PREFIX}AfterToggleList`);if("unwrap"!==r){let d="change"===(0,l.toggleAttributes)(e,t.parentElement,n,c.INITIAL,!0),m=i.Dom.isTag(f,e.element);if(m&&d&&r!==c.REPLACE&&function({options:{attributes:e}}){return!!(null==e?void 0:e.style)&&1===(0,o.size)(e)}(e)){let t;return(0,l.toggleAttributes)(e,f,n,"change"),g("change",(t=i.Dom.findSibling(f,!0),"change"===r&&i.Dom.isTag(t,e.element)&&(0,a.elementsEqualAttributes)(t,f)?(i.Dom.append(t,Array.from(f.childNodes)),i.Dom.safeRemove(f),t):f),e),"change"}if(m&&"change"===r)return"change";if(r===c.REPLACE||d||!m){let o;for(let r of s&&!m?Array.from(f.children).filter(e=>i.Dom.isLeaf(e)):[t])o=h(r,t=>(0,u.wrapList)(e,p(c.REPLACE,t,r,n,e),n));return g(c.REPLACE,o,e),c.REPLACE}}return g("unwrap",h(t,i=>p("unwrap",i,t,n,e)),e),"unwrap"}function h(e,t){let n=e.parentElement,o=e.nextElementSibling,r=i.Dom.isTag(n,"ol")?(parseInt(n.getAttribute("start")||"1",10)||1)+Array.from(n.children).indexOf(e):0,s=t(n),a=null==o?void 0:o.parentElement;return r&&i.Dom.isTag(a,"ol")&&(r>1?a.setAttribute("start",String(r)):a.removeAttribute("start")),s}function p(e,t,n,o,a){let l=o.e.fire(`${c._PREFIX}BeforeUnwrapList`,e,t,a);return l?((0,r.assert)(i.Dom.isHTMLElement(l),`${c._PREFIX}BeforeUnwrapList hook must return HTMLElement`),l):((0,s.extractSelectedPart)(t,n,o),(0,r.assert)(i.Dom.isHTMLElement(n.parentElement),"Element should be inside the list"),i.Dom.unwrap(n.parentElement),e===c.REPLACE)?n:i.Dom.replace(n,"br"!==o.o.enter.toLowerCase()?o.o.enter:o.createInside.fragment(),o.createInside)}},82515:function(e,t,n){n.d(t,{wrapList:function(){return a}});var i=n(2748),o=n(94466),r=n(44253),s=n(77361);function a(e,t,n){let a=n.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,t,e),l=null!=a?a:i.Dom.replace(t,"li",n.createInside),c=l.previousElementSibling,u=l.nextElementSibling,d=i.Dom.isTag(c,e.element)?c:null;return null!=d||(d=i.Dom.isTag(u,e.element)?u:null),i.Dom.isList(d)&&(0,o.isSameAttributes)(d,e.options.attributes)||(d=n.createInside.element(e.element),(0,r.toggleAttributes)(e,d,n,s.INITIAL),i.Dom.before(l,d)),c===d?i.Dom.append(d,l):i.Dom.prepend(d,l),i.Dom.isTag(d.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(d,d.nextElementSibling)&&(i.Dom.append(d,Array.from(d.nextElementSibling.childNodes)),i.Dom.safeRemove(d.nextElementSibling)),n.e.fire(`${s._PREFIX}AfterWrapList`,"wrap",d,e),d}},44253:function(e,t,n){n.d(t,{toggleAttributes:function(){return f}});var i=n(82758),o=n(2748),r=n(580),s=n(27613),a=n(3760),l=n(21496),c=n(43555),u=n(41180),d=n(86583),h=n(77361);let p="toggleAttributes";function f(e,t,n,m,g=!1){var b;if(!g&&e.isApplied(t,p))return m;g||e.setApplied(t,p);let{attributes:v}=e.options;return v&&(0,l.size)(v)>0&&Object.keys(v).forEach(e=>{var p,f;let b=v[e];switch(e){case"style":p=m,(0,c.assert)((0,s.isPlainObject)(b)&&(0,l.size)(b),"Style must be an object"),Object.keys(b).forEach(e=>{let s=(0,u.cssInline)(t,e),l=b[e];if(""!==s||null!=l){let h,f,m,b;if(null==l||""===l){s&&(g||(0,u.css)(t,e,null),p="change");return}if(h=function(e){var t;if(void 0!==(0,d.dataBind)(e,"shadowRoot"))return(0,d.dataBind)(e,"shadowRoot");let n=(0,r.getContainer)(e),s=i.globalDocument.createElement("iframe");(0,u.css)(s,{width:0,height:0,position:"absolute",border:0}),(0,c.attr)(s,"src","about:blank"),o.Dom.append(n,s);let a=null==(t=s.contentWindow)?void 0:t.document,l=a?a.body:e.od.body;return(0,d.dataBind)(e,"shadowRoot",l),l}(n),f=n.create.element("div"),(0,u.css)(f,"color",(0,u.css)(n.editor,"color")),m=n.create.element(t.tagName.toLowerCase()),(0,c.attr)(m,"style",(0,c.attr)(t,"style")),o.Dom.append(f,m),o.Dom.append(h,f),b=(0,u.css)(m,e),o.Dom.safeRemove(f),b===(0,a.normalizeCssValue)(e,l)){if(!s)return;g||(0,u.css)(t,e,null),p="unset";return}p="change",g||(0,u.css)(t,e,l)}}),m=p;break;case"className":case"class":m=function(e,t,n,i,o){var r;(0,c.assert)((0,s.isString)(t),"Class name must be a string");let a=null!=(r=t.match(/[^\t\n\f\r ]+/g))?r:[];if(!a.length)return i;let l=e.e.fire.bind(e.e,`${h._PREFIX}AfterToggleAttribute`);return a.every(e=>n.classList.contains(e))?(i="unset",o||(n.classList.remove(...a),0===n.classList.length&&(0,c.attr)(n,"class",null),l(i,n,"class",(0,c.attr)(n,"class")))):(i="change",o||(n.classList.add(...a),l(i,n,"class",t))),i}(n,b,t,m,g);break;default:let y;f=m,(0,c.assert)((0,s.isString)(b)||(0,s.isNumber)(b)||(0,s.isBoolean)(b)||null==b,"Attribute value must be a string or number or boolean or null"),y=n.e.fire.bind(n.e,`${h._PREFIX}AfterToggleAttribute`),(0,c.attr)(t,e)===(null==b?b:String(b))?(g||(0,c.attr)(t,e,null),f="unset",g||y(f,t,e,b)):(f="change",g||((0,c.attr)(t,e,b),y(f,t,e,b))),m=f}}),!g&&(null==v?void 0:v.style)?(b=m,!(0,c.attr)(t,"style")&&((0,c.attr)(t,"style",null),t.attributes.length||t.tagName.toLowerCase()!==e.defaultTag||(o.Dom.unwrap(t),b="unwrap")),b):m}},75882:function(e,t,n){n.d(t,{unwrapChildren:function(){return a}});var i=n(2748),o=n(43555),r=n(22030),s=n(97380);function a(e,t){var n;let a,l=[],c=[],u=null==(n=e.options.attributes)?void 0:n.style,d=Object.keys(null!=u?u:{}),h={};d.forEach(e=>{h[e]=null});let p=t=>{(0,o.css)(t,h),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),!t.attributes.length&&i.Dom.isTag(t,e.element)&&l.push(t)};for(let n of i.Dom.eachGen(t))i.Dom.isContentEditable(n,t)&&((0,s.isSuitElement)(e,n,!0)&&(!u||(0,r.hasSameStyleKeys)(n,u))?(void 0===a&&(a=!0),u?c.push(()=>p(n)):l.push(n)):u&&i.Dom.isHTMLElement(n)&&d.some(e=>""!==(0,o.css)(n,e,!0))?(void 0===a&&(a=!1),c.push(()=>p(n))):i.Dom.isEmptyTextNode(n)||void 0!==a||(a=!1));return c.forEach(e=>e()),l.forEach(i.Dom.unwrap),!!a}},6980:function(e,t,n){n.d(t,{wrapUnwrappedText:function(){return r}});var i=n(2748),o=n(78116);function r(e,t,n){let r=n.editor,s=n.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!i.Dom.isTag(a,n.o.enter)&&(s=a,a=a[t]?a[t]:a.parentNode&&!i.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!i.Dom.isBlock(a)););return s},l=a(t),c=a(t,"nextSibling"),u=n.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let d=u.extractContents(),h=s.element(e.element);return i.Dom.append(h,d),i.Dom.safeInsertNode(u,h),e.elementIsBlock&&i.Dom.isEmpty(h)&&!h.querySelector("br")&&i.Dom.append(h,s.element("br")),h}},19263:function(e,t,n){n.d(t,{wrap:function(){return l}});var i=n(22732),o=n(29960),r=n(41180),s=n(82515),a=n(6980);function l(e,t,n){var l,u,d;let h=(l=e,u=t,d=n,l.elementIsBlock?i.Dom.up(u,e=>i.Dom.isBlock(e)&&!i.Dom.isTag(e,c)&&!Array.from(e.childNodes).some(e=>i.Dom.isBlock(e)),d.editor)||(0,a.wrapUnwrappedText)(l,u,d):((0,o.attr)(u,"size",null),u));if(e.elementIsList)return(0,s.wrapList)(e,h,n);let p=i.Dom.replace(h,e.element,n.createInside,!0);return e.elementIsBlock&&((0,r.css)(p,"fontSize",null),(0,r.css)(p,"fontWeight",null),(0,o.attr)(p,"style")||(0,o.attr)(p,"style",null)),p}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"]);n.d(t,["WRAP_NODES",0,c])},83632:function(e,t,n){n.d(t,{ApplyStyle:function(){return l}});var i=n(2748),o=n(76078),r=n(63687),s=n(77361),a=n(55307);function l(e,t){var n,l;let{s:c,editor:u}=e;null==(n=u.firstChild)||n.normalize();let d=c.fakes(),h=c.isCollapsed(),p=s.INITIAL;try{for(let n of c.wrapInTagGen(d)){(null==(l=t.options.exclude)?void 0:l.length)&&function(e,t,n){let s=e.s.createRange(),a=i.Dom.closest(t.parentNode,n,e.editor);for(;a;){s.selectNodeContents(a),s.setEndBefore(t);let o=s.cloneContents();s.selectNodeContents(a),s.setStartAfter(t),i.Dom.isEmpty(o)&&i.Dom.isEmpty(s.cloneContents())||(0,r.extractSelectedPart)(a,t,e),i.Dom.unwrap(a),a=i.Dom.closest(t.parentNode,n,e.editor)}(0,o.$$)(n.join(","),t).forEach(e=>i.Dom.unwrap(e))}(e,n,t.options.exclude);let s={collapsed:h,mode:p,element:n,next:a.states.START,jodit:e,style:t},c=new r.FiniteStateMachine(a.states.START,a.transactions);for(;!e.isInDestruct&&c.getState()!==a.states.END;)s=c.dispatch("exec",s);p=s.mode}}finally{c.restoreFakes(d)}}},25639:function(e,t,n){n.d(t,{CommitStyle:function(){return a}});var i=n(82758),o=n(87058),r=n(77361),s=n(83632);class a{isApplied(e,t){let n=this.__applyMap.get(e);return!!n&&!!n[t]}setApplied(e,t){var n;let i=null!=(n=this.__applyMap.get(e))?n:{};i[t]=!0,this.__applyMap.set(e,i)}get elementIsList(){return!!(this.options.element&&i.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&i.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(e){let{hooks:t}=this.options,n=t?Object.keys(t):[];try{n.forEach(n=>{e.e.on((0,o.camelCase)(r._PREFIX+"_"+n),t[n])}),(0,s.ApplyStyle)(e,this)}finally{n.forEach(n=>{e.e.off((0,o.camelCase)(r._PREFIX+"_"+n),t[n])}),this.__applyMap=new WeakMap}e.isInDestruct||(e.synchronizeValues(),e.e.fire("afterCommitStyle",this))}constructor(e){this.options=e,this.__applyMap=new WeakMap}}},77361:function(e,t,n){n.d(t,["INITIAL",0,"initial","REPLACE",0,"replace","_PREFIX",0,"commitStyle"])},55307:function(e,t,n){var i=n(82758),o=n(2748),r=n(38837),s=n(63687),a=n(77361);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}function c(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}let u={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},d={[u.START]:{exec(e){let{element:t,jodit:n,style:i,mode:r,collapsed:a}=e;if(!o.Dom.isContentEditable(t,n.editor)||(0,s.isInsideInvisibleElement)(t,n.editor)||!a&&o.Dom.isEmptyContent(t))return c(l({},e),{next:u.END});let d=(0,s.getSuitParent)(i,t,n.editor)||(0,s.getSuitChild)(i,t);if(d)return c(l({},e),{next:u.ELEMENT,element:d});let h=(0,s.suitableClosest)(i,t,n.editor);return i.elementIsList&&o.Dom.isList(h)?c(l({},e),{next:u.LIST}):h?c(l({},e),{next:u.EXTRACT}):c(l({},e),{next:"unwrap"!==r?u.UNWRAP_CHILDREN:u.END})}},[u.LIST]:{exec(e){let{element:t,jodit:n,mode:r}=e;if(r!==a.INITIAL&&"unwrap"!==r&&r!==a.REPLACE&&"change"!==r)return c(l({},e),{next:u.END});let s=o.Dom.closest(t,"li",n.editor);return s&&o.Dom.closest(t,i.LIST_TAGS,n.editor)?c(l({},e),{element:s,next:u.TOGGLE_LIST}):c(l({},e),{next:u.END})}},[u.TOGGLE_LIST]:{exec(e){return c(l({},e),{mode:(0,s.toggleOrderedList)(e.style,e.element,e.jodit,e.mode,e.collapsed),next:u.END})}},[u.EXTRACT]:{exec(e){var t;let{element:n,jodit:i,style:a}=e,d=(0,s.suitableClosest)(a,n,i.editor);return((0,r.assert)(d,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&o.Dom.isBlock(d))?c(l({},e),{next:u.WRAP}):(a.elementIsBlock||(0,s.extractSelectedPart)(d,n,i),c(l({},e),{element:d,next:u.ELEMENT}))}},[u.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:n}=e;return(0,s.unwrapChildren)(n,t)?c(l({},e),{mode:"unwrap",next:u.END}):c(l({},e),{next:u.WRAP})}},[u.WRAP]:{exec(e){let{element:t,jodit:n,style:i}=e,o=(0,s.wrap)(i,t,n);return c(l({},e),{next:i.elementIsList?u.END:u.CHANGE,mode:"wrap",element:o})}},[u.ELEMENT]:{exec(e){let{style:t,element:n,jodit:i}=e;return(0,s.toggleAttributes)(t,n,i,a.INITIAL,!0)!==a.INITIAL?c(l({},e),{next:u.CHANGE}):o.Dom.isTag(n,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{next:u.END})}},[u.CHANGE]:{exec(e){let{style:t,element:n,jodit:i,mode:r}=e,a=(0,s.toggleAttributes)(t,n,i,e.mode);return"wrap"!==r&&"unset"===a&&!n.attributes.length&&o.Dom.isTag(n,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{mode:a,next:u.END})}},[u.UNWRAP]:{exec(e){let{element:t,style:n,jodit:i}=e;if(t.attributes.length&&o.Dom.isTag(t,n.element))return c(l({},e),{next:u.REPLACE_DEFAULT});let r=t.parentElement;return n.elementIsBlock&&!n.elementIsDefault&&r&&r!==i.editor&&o.Dom.isBlock(r)&&!o.Dom.isTag(r,s.WRAP_NODES)?c(l({},e),{next:u.REPLACE_DEFAULT}):(o.Dom.unwrap(t),c(l({},e),{mode:"unwrap",next:u.END}))}},[u.REPLACE_DEFAULT]:{exec(e){return o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),c(l({},e),{mode:a.REPLACE,next:u.END})}},[u.END]:{exec(e){return e}}};n.d(t,["states",0,u,"transactions",0,d])},97333:function(e,t,n){n.d(t,{AsyncStorage:function(){return c}});var i=n(87058),o=n(2621),r=n(65638),s=n(21162);function a(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var r=e.apply(t,n);function s(e){a(r,i,o,s,l,"next",e)}function l(e){a(r,i,o,s,l,"throw",e)}s(void 0)})}}class c{set(e,t){return l(function*(){let n=yield this.provider;return yield n.set((0,i.camelCase)(this.prefix+e),t),this}).call(this)}delete(e){return l(function*(){let t=yield this.provider;return yield t.delete((0,i.camelCase)(this.prefix+e)),this}).call(this)}get(e){return l(function*(){return(yield this.provider).get((0,i.camelCase)(this.prefix+e))}).call(this)}exists(e){return l(function*(){return(yield this.provider).exists((0,i.camelCase)(this.prefix+e))}).call(this)}clear(){return l(function*(){let e=yield this.provider;return yield e.clear(),this}).call(this)}close(){return l(function*(){let e=yield this.provider;"close"in e&&"function"==typeof e.close&&(yield e.close())}).call(this)}static makeStorage(e=!1,t,n){let i,a=null==n?void 0:n.defaultProvider;return null!=a?new c(Promise.resolve(i="local"===a?(0,r.canUsePersistentStorage)("localStorage")?new r.LocalStorageProvider("Jodit_"+(t||"")):new s.MemoryStorageProvider:"memory"===a?new s.MemoryStorageProvider:a),t):("localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider("Jodit_"+(t||""),e)):("indexedDB"===e||!0===e)&&(i=(0,o.canUseIndexedDB)().then(e=>e?new o.IndexedDBProvider("Jodit_"+(t||""),"keyValueStore"):new s.MemoryStorageProvider)),i||(i=new s.MemoryStorageProvider),new c(Promise.resolve(i),t))}constructor(e,t){this.provider=e,this.prefix="Jodit_",t&&(this.prefix+=t)}}},2621:function(e,t,n){n.d(t,{IndexedDBProvider:function(){return s},canUseIndexedDB:function(){return c},clearUseIndexedDBCache:function(){return l}});var i=n(82758);function o(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(e){o(s,i,r,a,l,"next",e)}function l(e){o(s,i,r,a,l,"throw",e)}a(void 0)})}}class s{getDB(){return this.dbPromise||(this.dbPromise=new Promise((e,t)=>{let n=indexedDB.open(this.dbName,this.DB_VERSION);n.onerror=()=>{t(n.error)},n.onsuccess=()=>{e(n.result)},n.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName)}})),this.dbPromise}performTransaction(e,t){return r(function*(){try{let n=(yield this.getDB()).transaction([this.storeName],e).objectStore(this.storeName),i=t(n);return new Promise((e,t)=>{i.onsuccess=()=>{e(i.result)},i.onerror=()=>{t(i.error)}})}catch(e){return Promise.reject(e)}}).call(this)}set(e,t){return r(function*(){try{yield this.performTransaction("readwrite",n=>n.put(t,e))}catch(e){i.IS_PROD}return this}).call(this)}delete(e){return r(function*(){try{yield this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}).call(this)}get(e){return r(function*(){try{return yield this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}).call(this)}exists(e){return r(function*(){try{let t=yield this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}).call(this)}clear(){return r(function*(){try{yield this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}).call(this)}close(){return r(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(e){}this.dbPromise=null}}).call(this)}keys(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e.map(e=>String(e))}catch(e){return[]}}).call(this)}values(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e}catch(e){return[]}}).call(this)}entries(){return r(function*(){try{let[e,t]=yield Promise.all([this.keys(),this.values()]);return e.map((e,n)=>[e,t[n]])}catch(e){return[]}}).call(this)}constructor(e="JoditDB",t="keyValueStore"){this.dbName=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let a=null;function l(){a=null}function c(){return r(function*(){if(null!=a)return a;try{if("u"<typeof indexedDB)return a=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return a=yield new Promise(n=>{t.onerror=()=>{n(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),n(!0)}})}catch(e){return a=!1,!1}})()}},65638:function(e,t,n){n.d(t,{LocalStorageProvider:function(){return i}});class i{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(e,t){try{let n=this.storage.getItem(this.rootKey),i=n?JSON.parse(n):{};i[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(i))}catch(e){}return this}delete(e){try{let t=this.storage.getItem(this.rootKey);if(t){let n=JSON.parse(t);delete n[e],this.storage.setItem(this.rootKey,JSON.stringify(n))}}catch(e){}return this}get(e){try{let t=this.storage.getItem(this.rootKey),n=t?JSON.parse(t):{};return void 0!==n[e]?n[e]:void 0}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}constructor(e,t="localStorage"){this.rootKey=e,this.strategy=t}}n.d(t,["canUsePersistentStorage",0,(e="localStorage")=>{let t=new Map;if(t.has(e))return t.get(e);let n="___Jodit___"+Math.random().toString(),i="sessionStorage"===e?sessionStorage:localStorage;try{i.setItem(n,"1");let o="1"===i.getItem(n);return i.removeItem(n),t.set(e,o),o}catch(e){}return t.set(e,!1),!1}])},21162:function(e,t,n){n.d(t,{MemoryStorageProvider:function(){return i}});class i{set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}constructor(){this.data=new Map}}},12081:function(e,t,n){n.d(t,{AsyncStorage:function(){return i.AsyncStorage},IndexedDBProvider:function(){return o.IndexedDBProvider},LocalStorageProvider:function(){return r.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return"Jodit_"},canUseIndexedDB:function(){return o.canUseIndexedDB},canUsePersistentStorage:function(){return r.canUsePersistentStorage},clearUseIndexedDBCache:function(){return o.clearUseIndexedDBCache}});var i=n(97333),o=n(2621),r=n(65638),s=n(21162),a=n(6700)},6700:function(e,t,n){n.d(t,{Storage:function(){return a}});var i=n(87058),o=n(65638),r=n(21162);let s="Jodit_";class a{set(e,t){return this.provider.set((0,i.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,i.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,i.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,i.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let n;return"localStorage"===e||"sessionStorage"===e?(0,o.canUsePersistentStorage)(e)&&(n=new o.LocalStorageProvider(s+(t||""),e)):!0===e&&(0,o.canUsePersistentStorage)("localStorage")&&(n=new o.LocalStorageProvider(s+(t||""))),n||(n=new r.MemoryStorageProvider),new a(n,t)}constructor(e,t){this.provider=e,this.prefix=s,t&&(this.prefix+=t)}}},70231:function(e,t,n){n.d(t,{Dlgs:function(){return a}});var i=n(580),o=n(27613),r=n(37790),s=n(638);class a{dlg(e){let t=(0,i.getPopupViewRoot)(this.o,this.container,this.od.body),n=new s.Dialog(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},e));return(0,r.markOwner)(this,n.container),n.parent=this,n.bindDestruct(this)}confirm(e,t,n){return e=l(e,this),t=l(t,this),s.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,n)}prompt(e,t,n,i,o){return e=l(e,this),t=l(t,this),i=l(i,this),s.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,i,o)}alert(e,t,n,i){return e=l(e,this),t=l(t,this),s.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,i)}}function l(e,t){return(0,o.isString)(e)&&!(0,o.isHTML)(e)&&(e=t.i18n(e)),e}},14316:function(e,t,n){n.d(t,{Elms:function(){return o}});var i=n(2748);class o{getElm(e){let t=this.getFullElName(e);return i.Dom.first(this.container,e=>i.Dom.isHTMLElement(e)&&e.classList.contains(t))}getElms(e){let t=this.getFullElName(e),n=[];return i.Dom.each(this.container,e=>{i.Dom.isHTMLElement(e)&&e.classList.contains(t)&&n.push(e)}),n}}},34176:function(e,t,n){n.d(t,{Mods:function(){return o}});var i=n(86068);class o{afterSetMod(e,t){}setMod(e,t,n){e=e.toLowerCase();let o=this.mods[e];if(o===t)return this;let r=`${this.componentName}_${e}_`,s=(n||this.container).classList;return null!=o&&s.remove(`${r}${o.toString().toLowerCase()}`),(0,i.isVoid)(t)||""===t||s.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){var t;return null!=(t=this.mods[e])?t:null}}},10830:function(e,t,n){n.d(t,{Button:function(){return b},UIButton:function(){return g}});var i=n(78213),o=n(33433),r=n(87325),s=n(37133),a=n(2748),l=n(23282),c=n(70799),u=n(38837),d=n(29960),h=n(48538),p=n(12153),f=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let m=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:"",scale:void 0},tooltip:"",text:"",tabIndex:void 0}),g=class e extends h.UIElement{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){let e=this.getElm("text");return(0,u.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,u.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,d.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,d.attr)(this.container,"role",this.state.role)}updateSize(){let e=(0,r.getComponentClass)("UIList"),t=this.closest(e);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,d.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,d.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,d.attr)(this.container,"data-ref",this.state.name),(0,d.attr)(this.container,"ref",this.state.name),this.updateAriaLabel()}onChangeTooltip(){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,d.attr)(this.container,"title",e),(0,d.attr)(this.container,"aria-label",e),this.updateAriaLabel()}updateAriaLabel(){let e=this.state.text.trim().length>0,t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):!e&&this.state.name?this.state.name:null;(0,d.attr)(this.container,"aria-label",t),(0,d.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,d.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let e=this.get("j.o.textIcons");if(!0===e||(0,l.isFunction)(e)&&e(this.state.name))return;a.Dom.detach(this.icon);let t=p.Icon.makeIcon(this.j,this.state.icon);t&&a.Dom.append(this.icon,t)}focus(){this.container.focus()}isFocused(){let{activeElement:e}=this.od;return!!(e&&a.Dom.isOrContains(this.container,e))}createContainer(){let e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),n=this.j.c.span(e+"__icon"),i=this.j.c.span(e+"__text");return a.Dom.append(t,n),a.Dom.append(t,i),t}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e)),this.j.e.fire(this,"click",e)}constructor(e,t){super(e),this.isButton=!0,this.state=m(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(i.STATUSES.ready,()=>{this.setState(t)})}};function b(e,t,n,i){let o=new g(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,c.isString)(t)?(o.state.icon.name=t,o.state.name=t,i&&(o.state.variant=i),n&&(o.state.text=n)):o.setState(t),o}f([o.cache],g.prototype,"text",null),f([o.cache],g.prototype,"icon",null),f([(0,s.watch)("state.size",{immediately:!1})],g.prototype,"onChangeSize",null),f([(0,s.watch)("state.type",{immediately:!1})],g.prototype,"onChangeType",null),f([(0,s.watch)("state.role",{immediately:!1})],g.prototype,"onChangeRole",null),f([(0,s.watch)("parentElement")],g.prototype,"updateSize",null),f([(0,s.watch)("state.variant",{immediately:!1})],g.prototype,"onChangeStatus",null),f([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeText",null),f([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeTextSetMode",null),f([(0,s.watch)("state.disabled")],g.prototype,"onChangeDisabled",null),f([(0,s.watch)("state.activated")],g.prototype,"onChangeActivated",null),f([(0,s.watch)("state.name",{immediately:!1})],g.prototype,"onChangeName",null),f([(0,s.watch)("state.tooltip",{immediately:!1})],g.prototype,"onChangeTooltip",null),f([(0,s.watch)("state.tabIndex",{immediately:!1})],g.prototype,"onChangeTabIndex",null),f([(0,s.watch)("state.icon",{immediately:!1})],g.prototype,"onChangeIcon",null),f([o.cacheHTML],g.prototype,"createContainer",null),f([(0,s.watch)("button:click")],g.prototype,"__onActionFire",null),g=f([r.component],g),n.d(t,["UIButtonState",0,m])},71916:function(e,t,n){n.d(t,{UIButtonGroup:function(){return l}});var i=n(87325),o=n(2748),r=n(38837),s=n(10830),a=n(62405);let l=class e extends a.UIGroup{className(){return"UIButtonGroup"}render(e){return`<div>
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 n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,function(){return function(){"use strict";var e,t,n,i,o,r,s={6441:function(e,t,n){n.d(t,{Config:function(){return r}});var i=n(82758);let o={};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=i.globalDocument,this.ownerWindow=i.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=i.INSERT_AS_HTML,this.enter=i.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:i.PARAGRAPH,this.defaultMode=i.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:[]},"\n",{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,o)}}o=r.prototype,r.prototype.controls={}},26992:function(e,t,n){n.d(t,{Async:function(){return f}});var i=n(82758),o=n(91898),r=n(12045),s=n(23282),a=n(84767),l=n(72430),c=n(14773),u=n(70799),d=n(86068),h=n(38837),p=n(93661);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...n){if(this.isDestructed)return 0;let i={};(0,d.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(i=t).timeout||0),i.label&&this.clearLabel(i.label);let r=(0,o.setTimeout)(e,t,...n),s=i.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 n=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,o.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,o.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,n=!1){let i=0,a=!1,u=[],d=(...t)=>{if(!a){i=0;let n=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(n)?n.finally(e):e()}}},h=(...r)=>{a=!1,t?(!i&&n&&d(...r),(0,o.clearTimeout)(i),i=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,i)):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 n,i=!1,o=!0;return(...r)=>{if(n=r,i){o=!0;return}o=!0,t&&(o=!1,e(...n)),i=!0,this.__queueMicrotaskNative(()=>{i=!1,!this.isDestructed&&o&&e(...n)})}}throttle(e,t,n=!1){let i=null,o,r,a;return(...n)=>{(o=!0,a=n,t)?i||(r=()=>{o?(e(...a),o=!1,i=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,i)):i=null})():e(...a)}}promise(e){let t=()=>{},n=new Promise((n,i)=>{t=()=>i((0,p.abort)("Abort async")),this.promisesRejections.add(t),e(n,i)});return!n.finally&&"u">typeof process&&!i.IS_ES_NEXT&&(n.finally=e=>(n.then(e).catch(e),n)),n.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),n.rejectCallback=t,n}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 n=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(n),n}requestIdlePromise(e){return this.promise(t=>{let n=this.requestIdleCallback(()=>t(n),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let n=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){var i,o;let r=globalThis.scheduler.postTask(e,(i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({},t),o=o={signal:n.signal},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))}),i));return r.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),r}return this.promise((i,o)=>{let r=this.setTimeout(()=>{try{i(e())}catch(e){o(e)}this.__controllers.delete(n)},t.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(n),o((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,o.clearTimeout)(e)),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,n,i,o;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!=(n=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?n:(e,t)=>{var n;let i=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},null!=(n=null==t?void 0:t.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(o=null==(i=window.cancelIdleCallback)?void 0:i.bind(window))?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,n){n.d(t,{Async:function(){return i.Async}});var i=n(26992)},4012:function(e,t,n){n.d(t,{Component:function(){return l}});var i=n(8884),o=n(78213),r=n(580),s=n(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,n){let i=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),i.push(`__${e}`)),t&&(i.push("_",t),i.push("_",(0,s.isVoid)(n)?"true":n.toString())),i.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===o.STATUSES.ready}get isDestructed(){return this.componentStatus===o.STATUSES.destructed}get isInDestruct(){return o.STATUSES.beforeDestruct===this.componentStatus||o.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(o.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(o.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 n=Object.getPrototypeOf(this);n&&(0,s.isFunction)(n.setStatusComponent)&&n.setStatusComponent(e,t);let i=a.get(this),o=null==i?void 0:i[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let n=a.get(this);n||(n={},a.set(this,n)),n[e]||(n[e]=[]),n[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new i.Async,this.ownerWindow=window,this.__componentStatus=o.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=o.STATUSES},91907:function(e,t,n){n.d(t,{Component:function(){return i.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var i=n(4012),o=n(78213),r=n(80480)},78213:function(e,t,n){n.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},80480:function(e,t,n){n.d(t,{ViewComponent:function(){return o}});var i=n(4012);class o extends i.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,n){n.r(t),n.d(t,{IS_TEST:function(){return i}});let i=!1,o="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",b="ArrowDown",v="Delete",y=[u,d,v,m,b,g,f,h,p,"F3","Tab"],w="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),_=void 0!==o&&/Mac|iPod|iPhone|iPad/.test(o.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(o.location.href)})(),E=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);n.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.20.5","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,"ERROR_CODE_CONFLICT",0,409,"ES",0,"es2015","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,!1,"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,v,"KEY_DOWN",0,b,"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,"\xa0","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,E,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>i=!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,o,"lang",0,{}])},20218:function(e,t,n){n.d(t,{Create:function(){return a}});var i=n(82758),o=n(2748),r=n(21537),s=n(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,n){let i=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(i),t&&((0,r.isPlainObject)(t)?(0,r.attr)(i,t):n=t),n&&(0,r.asArray)(n).forEach(e=>o.Dom.append(i,(0,r.isString)(e)?this.fromHTML(e):e)),i}div(e,t,n){let i=this.element("div",t,n);return e&&(i.className=e),i}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});o.Dom.append(this.doc.body,t);let n=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(n,"iframe.contentWindow.document"),!n)throw Error("Iframe error");return n.open(),n.write("<!DOCTYPE html><html><head></head><body></body></html>"),n.close(),[n.body,t]}span(e,t,n){let i=this.element("span",t,n);return e&&(i.className=e),i}a(e,t,n){let i=this.element("a",t,n);return e&&(i.className=e),i}text(e){return this.doc.createTextNode(e)}fake(){return this.text(i.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let n=this.div();n.innerHTML=e.toString();let i=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(o.Dom.safeRemove(i),t){let e=(0,r.refs)(i);Object.keys(t).forEach(n=>{let i=e[n];i&&!1===t[n]&&o.Dom.hide(i)})}return i}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let n=t[e.tagName.toLowerCase()];(0,r.isFunction)(n)?n(e):(0,r.isPlainObject)(n)&&(0,r.attr)(e,n)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,n){n.d(t,{Create:function(){return i.Create}});var i=n(20218)},45219:function(e,t,n){n.d(t,{autobind:function(){return o}});var i=n(23282);function o(e,t,n){if(!(0,i.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=n.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,n){n.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var i=n(78213),o=n(2748),r=n(27613),s=n(82760);function a(e,t){let n=Object.getOwnPropertyDescriptor(e,t);return!n||(0,r.isFunction)(n.get)?null:n.value}function l(e,t,n){let i=n.get;if(!i)throw(0,s.error)("Getter property descriptor expected");n.get=function(){let e=i.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:e}),e}}function c(e,t,n){let a=n.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;n.value=function(...e){var t;let n,i=null!=(n=this.od)?n:document,r=c.get(i);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&&o.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(i,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(i.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,n){n.d(t,{component:function(){return l},getComponentClass:function(){return c}});var i=n(82758),o=n(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")):i.IS_PROD||s.has(this.constructor)||a.has(this.constructor)||a.add(this.constructor)}}s.add(e),s.add(t);let n=(0,o.getClassName)(e.prototype);if(r.has(n)&&!i.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return r.set(n,t),t}function c(e){return r.get(e)}},81577:function(e,t,n){n.d(t,{debounce:function(){return a},throttle:function(){return l}});var i=n(91907),o=n(27613),r=n(38837),s=n(89890);function a(e,t=!1,n="debounce"){return(a,l)=>{let c=a[l];if(!(0,o.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(i.STATUSES.ready,i=>{let{async:s}=i;(0,r.assert)(null!=s,`Component ${i.componentName||i.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(i):e,c=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:i.defaultTimeout;Object.defineProperty(i,l,{configurable:!0,value:s[n](i[l].bind(i),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,n){n.d(t,{derive:function(){return o}});var i=n(23282);function o(...e){return t=>{let n=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,i.isFunction)(s.value)&&!(0,i.isFunction)(n[t])&&Object.defineProperty(n,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,n){n.d(t,{hook:function(){return r}});var i=n(23282),o=n(89890);function r(e){return(t,n)=>{if(!(0,i.isFunction)(t[n]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[n].call(e)})}}},78927:function(e,t,n){n.d(t,{idle:function(){return s}});var i=n(91907),o=n(23282),r=n(89890);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(i.STATUSES.ready,e=>{let{async:n}=e,i=e[t];e[t]=(...t)=>n.requestIdleCallback(i.bind(e,...t))})}}},65478:function(e,t,n){n.r(t),n.d(t,{autobind:function(){return i.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.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 i=n(45219),o=n(33433),r=n(87325),s=n(81577),a=n(55153),l=n(97357),c=n(78927),u=n(31589),d=n(53213),h=n(13525),p=n(37133)},31589:function(e,t,n){n.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,n){n.d(t,{persistent:function(){return r}});var i=n(78213),o=n(39955);function r(e,t){e.hookStatus(i.STATUSES.ready,e=>{let n=(0,o.isViewObject)(e)?e:e.jodit,i=`${n.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=n.storage.get(i))?e:r},set(e){n.storage.set(i,e)}})})}},13525:function(e,t,n){n.d(t,{wait:function(){return s}});var i=n(78213),o=n(23282),r=n(89890);function s(e){return(t,n)=>{let s=t[n];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(i.STATUSES.ready,t=>{let{async:i}=t,o=t[n],r=0;Object.defineProperty(t,n,{configurable:!0,value:function n(...s){i.clearTimeout(r),e(t)?o.apply(t,s):r=i.setTimeout(()=>n(...s),10)}})})}}},37133:function(e,t,n){n.d(t,{watch:function(){return d}});var i=n(78213),o=n(73026),r=n(46559),s=n(23282),a=n(72430),l=n(39955),c=n(89890),u=n(37790);function d(e,t){return(n,d)=>{var h;if(!(0,s.isFunction)(n[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 i=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...n)=>{if(!t.isInDestruct)return t[d](e,...n)};p||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[n,o]=e.split(":"),r=f;n.length&&(r=t.get(n)),(0,s.isFunction)(r)&&(r=r(t)),i.events.on(r||t,o,c),r||i.events.on(o,c),t.hookStatus("beforeDestruct",()=>{i.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${d.join(".")}`,c);let p=(0,u.getPropertyDescriptor)(n,l);Object.defineProperty(t,l,{configurable:!0,set(e){let n=h;n!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${d.join(".")}`,c),c(l,n,h))},get(){return p&&p.get?p.get.call(t):h}})})};(0,s.isFunction)(n.hookStatus)?n.hookStatus(i.STATUSES.ready,m):m(n)}}},2748:function(e,t,n){n.d(t,{Dom:function(){return y}});var i=n(82758),o=n(4510),r=n(68345),s=n(23282),a=n(58487),l=n(42320),c=n(70799),u=n(86068),d=n(76241),h=n(49055),p=n(38837),f=n(29960),m=n(41180),g=n(86583),b=n(89890),v=n(37790);class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,n){let i,o,r=e;n.s.save();do o=!1,(i=r.nextSibling)&&!y.isBlock(i)&&!y.isTag(i,"br")&&(o=!0,r=i);while(o);return y.__wrapElements(t,n,e,r)}static __wrapElements(e,t,n,i){let o=(0,c.isString)(e)?t.createInside.element(e):e;n.parentNode&&n.parentNode.insertBefore(o,n);let r=n;for(;r&&(r=n.nextSibling,o.appendChild(n),n!==i&&r);)n=r;return t.s.restore(),o}static wrapInline(e,t,n){let i,o,r=e,s=e;n.s.save();do o=!1,(i=r.previousSibling)&&!y.isBlock(i)&&(o=!0,r=i);while(o);do o=!1,(i=s.nextSibling)&&!y.isBlock(i)&&(o=!0,s=i);while(o);return y.__wrapElements(t,n,r,s)}static wrap(e,t,n){let i=(0,c.isString)(t)?n.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,b.error)("Element should be in DOM");e.parentNode.insertBefore(i,e),i.appendChild(e)}else{let t=e.extractContents();e.insertNode(i),i.appendChild(t)}return i}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,n){let i=e;for(;i&&i!==t&&!(e!==i&&n(i));){let e=i.firstChild||i.nextSibling;if(!e){for(;i&&!i.nextSibling;)if((i=i.parentNode)===t)return;e=null==i?void 0:i.nextSibling}i=e}}static replace(e,t,n,i=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,p.assert)(n,"Need create instance for new tag"),t=n.fromHTML(t)),(0,c.isString)(t)?((0,p.assert)(n,"Need create instance for new tag"),s=n.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return i&&y.isElement(e)&&y.isElement(s)&&(0,o.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(i.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){let n=y.closest(e,e=>y.isElement(e)&&e.hasAttribute("contenteditable"),t);return y.isNode(e)&&(null==n?void 0:n.getAttribute("contenteditable"))!=="false"}static isEmpty(e,t=i.NO_EMPTY_TAGS){let n;if(!e)return!0;n=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,h.trim)(e.nodeValue).length;return y.isText(e)?o(e):!(y.isElement(e)&&n(e))&&y.each(e,e=>{if(y.isText(e)&&!o(e)||y.isElement(e)&&n(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,i.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)&&i.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 n=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(n?n.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.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,n){let i=n?"lastChild":"firstChild",o=n?"previousSibling":"nextSibling",r=null==e?void 0:e[i];if(!r)return null;do{if(t(r))return r;let n=r[i]||r[o];if(!n&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[o]&&r.parentNode!==e);n=null==r?void 0:r[o]}r=n}while(r);return null}static prev(e,t,n,i=!0){return y.find(e,t,n,!1,i)}static next(e,t,n,i=!0){return y.find(e,t,n,!0,i)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,n){let i=e=>y.isElement(e)&&e.classList.contains(t),o=e.parentNode;return n?y.prev(e,i,o):y.next(e,i,o)}static find(e,t,n,i=!0,o=!0){let r=this.nextGen(e,n,i,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,n=!0,i=!0){let o=[],r=e;do{let t=n?r.nextSibling:r.previousSibling;for(;t;)o.push(t),t=n?t.nextSibling:t.previousSibling;o.reverse(),yield*this.runInStack(e,o,n,i),r=r.parentNode}while(r&&r!==t);return null}static each(e,t,n=!0){let i=this.eachGen(e,n),o=i.next();for(;!o.done;){if(!1===t(o.value))return!1;o=i.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,n,i=!0){for(;t.length;){let o=t.pop();if(i){let e=n?o.lastChild:o.firstChild;for(;e;)t.push(e),e=n?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,n,i="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=y.findWithCurrent(r[o],t,r,i,o);if(e)return e}for(;r&&!r[i]&&r!==n;)r=r.parentNode;r&&r[i]&&r!==n&&(r=r[i])}while(r&&r!==n);return null}static findSibling(e,t=!0,n=e=>!y.isEmptyTextNode(e)){let i=y.sibling(e,t);for(;i&&!n(i);)i=y.sibling(i,t);return i&&n(i)?i: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,h.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,n){return(0,v.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,h.trim)((null==e?void 0:e.nodeValue)||"").length)),n)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,n,i=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===n||!o.parentNode)break;o=o.parentNode}while(o&&o!==n);return o===n&&i&&t(o)?o:null}static closest(e,t,n){let i,o=e=>e.toLowerCase();if((0,s.isFunction)(t))i=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));i=t=>!!(t&&e.has(o(t.nodeName)))}else i=e=>!!(e&&o(t)===o(e.nodeName));return y.up(e,i,n)}static furthest(e,t,n){let i=null,o=null==e?void 0:e.parentElement;for(;o&&o!==n;)t(o)&&(i=o),o=null==o?void 0:o.parentElement;return i}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var n;null==(n=e.parentNode)||n.insertBefore(t,e.nextSibling)}static before(e,t){var n;null==(n=e.parentNode)||n.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,n=!1,r=()=>!0){let s=(e.ownerDocument||i.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,n?t.firstChild:null)}static isOrContains(e,t,n=!1){return e===t?!n:!!(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 n=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,i.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),n&&e.setStartBefore(n)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,g.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,g.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 n=e.tagName.toLowerCase();return t instanceof Set?t.has(n)||t.has(e.tagName.toUpperCase()):n===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,f.attr)(e,t),(0,f.attr)(e,i.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,f.attr)(e,i.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+i.MARKER_CLASS)}static replaceTemporaryFromString(e){return(0,d.unwrapMarkedTags)(e,null,i.TEMP_ATTR)}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(i.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,n){n.d(t,{Dom:function(){return i.Dom},LazyWalker:function(){return o.LazyWalker}});var i=n(2748),o=n(70071)},70071:function(e,t,n){n.d(t,{LazyWalker:function(){return s}});var i=n(45219),o=n(2748),r=n(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=o.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,n=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<n;){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,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([i.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,n){n.d(t,{EventEmitter:function(){return u}});var i=n(82758),o=n(46559),r=n(68345),s=n(23282),a=n(70799),l=n(89890),c=n(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,o.splitArray)(e).map(e=>e.trim()).forEach(e=>{let n=e.split("."),i=n[1]||c.defaultNameSpace;t.call(this,n[0],i)})}__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 n=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?n.initEvent(t,!0,!0):(n.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","view","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(n,e,{value:t[e],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(n)}get current(){return this.currents[this.currents.length-1]}on(e,t,n,o){let c,u,h,p;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,p=n):(c=e,u=t,h=n,p=o),!((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,b=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(f)&&(b=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 n,o;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:b};if(m.set(e,t,r,null==p?void 0:p.top),d(f)){let t=i.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(n=null==p?void 0:p.capture)&&n}:null!=(o=null==p?void 0:p.capture)&&o;b.options=t,f.addEventListener(e,b,t),this.__memoryDOMSubjectToHandler(f,b)}}}),this}__memoryDOMSubjectToHandler(e,t){let n=this.__domEventsMap.get(e)||new Set;n.add(t),this.__domEventsMap.set(e,n)}__unmemoryDOMSubjectToHandler(e,t){let n=this.__domEventsMap,i=n.get(e)||new Set;i.delete(t),i.size?n.set(e,i):n.delete(e)}one(e,t,n,i){let o,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,r=e,s=t,l=n):(o=e,r=t,s=n,l=i);let c=(...e)=>(this.off(o,r,c),s(...e));return this.on(o,r,c,l),this}off(e,t,n){let i,o,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(i=this,o=e,l=t):(i=e,o=t,l=n),(0,r.isArray)(i))return i.forEach(e=>{this.off(e,o,l)}),this;let u=i,h=this.__getStore(u);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.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 n=h.get(e,t);if(n&&n.length)if((0,s.isFunction)(l)){let i=h.indexOf(e,t,l);!1!==i&&(p(n[i]),n.splice(i,1),n.length||h.clearEvents(t,e))}else n.forEach(p),n.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(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 n=(0,a.isString)(e)?this:e,i=(0,a.isString)(e)?e:t;if("string"!=typeof i)throw(0,l.error)("Need event names");let o=this.__getStore(n);this.__eachEvent(i,(e,t)=>{let i=o.get(e,t);i&&this.__stopped.push(i),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(n,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,...n){let i,o,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...n]:n;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 n=h.get(e,t);if(n)try{[...n].every(t=>!this.__isStopped(n)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...u),this.currents.pop(),void 0!==o&&(i=o),!0))}finally{this.__removeStop(n)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let n=this.fire.apply(this,[r,e+"."+t,...u]);void 0!==n&&(i=n)})}}),i}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=i.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,n){n.d(t,{Eventify:function(){return i}});class i{on(e,t){var n;return this.__map.has(e)||this.__map.set(e,new Set),null==(n=this.__map.get(e))||n.add(t),this}off(e,t){var n;return this.__map.has(e)&&(null==(n=this.__map.get(e))||n.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var n;let i;return this.__map.has(e)&&(null==(n=this.__map.get(e))||n.forEach(e=>{i=e(...t)})),i}constructor(){this.__map=new Map}}},57012:function(e,t,n){let i=new(n(98220)).EventEmitter;n.d(t,["eventEmitter",0,i])},3827:function(e,t,n){n.d(t,{EventEmitter:function(){return i.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var i=n(98220),o=n(72757),r=n(73026),s=n(15738)},73026:function(e,t,n){n.d(t,{observable:function(){return c}});var i=n(68345),o=n(59292),r=n(72430),s=n(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},n={},c=(t,o)=>((0,i.isArray)(t)?t.map(e=>c(e,o)):(n[t]||(n[t]=[]),n[t].push(o)),e),u=(o,...r)=>{if((0,i.isArray)(o))return void o.map(e=>u(e,...r));try{!t[o]&&n[o]&&(t[o]=!0,n[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,n=[])=>{let i={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=n.concat(a).filter(e=>e.length);i[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set:t=>{let n=i[a];if(!(0,o.isFastEqual)(i[a],t)){u(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):i[a]=t;let o=[];u(["change",...l.reduce((e,t)=>(o.push(t),e.push(`change.${o.join(".")}`),e),[])],l.join("."),n,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):i[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(i[a])&&d(i[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,n){n.d(t,{EventHandlersStore:function(){return s}});var i=n(4510),o=n(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let n=this.__store.get(t);return(0,o.assert)(n,"-"),n[e]}}indexOf(e,t,n){let i=this.get(e,t);if(i){for(let e=0;e<i.length;e+=1)if(i[e].originalCallback===n)return e}return!1}namespaces(e=!1){let t=(0,i.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,n,i=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),i?o[e].unshift(n):o[e].push(n)}clear(){this.__store.clear()}clearEvents(e,t){let n=this.__store.get(e);n&&n[t]&&(delete n[t],Object.keys(n).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}n.d(t,["defaultNameSpace",0,r])},580:function(e,t,n){n.d(t,{getContainer:function(){return _},getPopupViewRoot:function(){return S},uniqueUid:function(){return v}});var i=n(19306),o=n(72430),r=n(70799),s=n(39955),a=n(12475),l=n(29960),c=n(41180),u=n(80568),d=n(69175),h=n(41876),p=n(57012),f=n(82758),m=n(22732);let g=1,b=new Set;function v(){function e(){return Math.round(g+=10*(Math.random()+1)).toString(16)}let t=e();for(;b.has(t);)t=e();return b.add(t),t}let y=new h.PluginSystem({getContainer:_}),w=new WeakMap;function _(e,t,n="div",o=!1){let c,d=(0,r.isString)(t)?t:t?(0,u.getClassName)(t.prototype):"jodit-utils",h=w.get(e)||{},p=d+n,f=(0,s.isViewObject)(e)?e:e.j;if(!h[p]){let t=f.c;if(c=S(f.o,f.container,e.od.body),o&&(0,i.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===n?e.ed.head:e.ed.body;c=(0,i.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let r=t.element(n,{className:`jodit jodit-${(0,a.kebabCase)(d)}-container jodit-box`});f.o.nonce&&("style"===n||"script"===n)&&(0,l.attr)(r,"nonce",f.o.nonce),r.classList.add(`jodit_theme_${f.o.theme||"default"}`),m.Dom.append(c,r),h[p]=r,e.hookStatus("beforeDestruct",()=>{f.events.off(r),m.Dom.safeRemove(r),delete h[p],Object.keys(h).length&&w.delete(e)}),w.set(e,h),f.events.fire("getContainer",r)}return h[p].classList.remove("jodit_theme_default","jodit_theme_dark"),h[p].classList.add(`jodit_theme_${f.o.theme||"default"}`),h[p]}function S(e,t,n){var i,o,r;return null!=(r=null!=(o=null!=(i=e.popupRoot)?i:e.shadowRoot)?o:m.Dom.closest(t,e=>m.Dom.isHTMLElement(e)&&(m.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,c.css)(e,"position"))),n))?r:n}let k=p.eventEmitter;n.d(t,["eventEmitter",0,k,"extendLang",0,e=>{Object.keys(e).forEach(t=>{let n,i=(n=e[t],(0,o.isPlainObject)(n)&&(0,o.isPlainObject)(n.default)?n.default:n);!(0,d.isUnsafeProtoKey)(t)&&(0,o.isPlainObject)(i)&&(Object.prototype.hasOwnProperty.call(f.lang,t)&&(0,o.isPlainObject)(f.lang[t])||(f.lang[t]={}),Object.keys(i).forEach(e=>{(0,d.isUnsafeProtoKey)(e)||(f.lang[t][e]=i[e])}))})},"instances",0,{},"modules",0,{},"pluginSystem",0,y])},29999:function(e,t,n){var i=n(68345);n.d(t,["asArray",0,e=>(0,i.isArray)(e)?e:[e]])},76855:function(e,t,n){n.d(t,{asArray:function(){return i.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var i=n(29999),o=n(46559),r=n(4510)},46559:function(e,t,n){n.d(t,{splitArray:function(){return i}});function i(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,n){var i=n(70722),o=n(58844);n.d(t,["toArray",0,function(...e){var t;return((0,i.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},91898:function(e,t,n){n.d(t,{clearTimeout:function(){return i.clearTimeout},setTimeout:function(){return i.setTimeout}});var i=n(13252)},13252:function(e,t,n){n.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var i=n(82758);function o(e,t,...n){return t?i.globalWindow.setTimeout(e,t,...n):(e.call(null,...n),0)}function r(e){i.globalWindow.clearTimeout(e)}},54765:function(e,t,n){n.d(t,{hasBrowserColorPicker:function(){return o}});var i=n(82758);function o(){let e;try{let t=i.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,n){n.d(t,{hasBrowserColorPicker:function(){return i.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.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 b.isNumber},isNumeric:function(){return v.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 D.isVoid},isWindow:function(){return I.isWindow}});var i=n(54765),o=n(12045),r=n(68345),s=n(87612),a=n(59292),l=n(23282),c=n(58487),u=n(29673),d=n(60132),h=n(72913),p=n(19306),f=n(45603),m=n(78116),g=n(70722),b=n(84767),v=n(29807),y=n(72430),w=n(14773),_=n(42320),S=n(70799),k=n(26049),C=n(37508),E=n(39955),D=n(86068),I=n(52742)},12045:function(e,t,n){n.d(t,{isAbortError:function(){return i}});function i(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,n){n.d(t,{isArray:function(){return i}});function i(e){return Array.isArray(e)}},87612:function(e,t,n){n.d(t,{isBoolean:function(){return i}});function i(e){return"boolean"==typeof e}},59292:function(e,t,n){n.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var i=n(67462);function o(e,t){return e===t||(0,i.stringify)(e)===(0,i.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,n){n.d(t,{isFunction:function(){return i}});function i(e){return"function"==typeof e}},29673:function(e,t,n){n.d(t,{isHtmlFromWord:function(){return l}});let i=/\s/,o=/\d/,r=/\w/;function s(e,t){let n=e.indexOf(t);for(;-1!==n;){let r=n+t.length;if(i.test(e.charAt(r))&&o.test(e.charAt(r+1)))return!0;n=e.indexOf(t,r)}return!1}function a(e,t){let n="style="+t,i=e.indexOf(n);for(;-1!==i;){let o=i+n.length,r=e.indexOf(t,o);if(-1===r&&(r=e.length),e.slice(o,r).includes("mso-"))return!0;i=e.indexOf(n,r)}return!1}function l(e){if(e.includes("urn:schemas-microsoft-com:office:word")||e.includes("urn:schemas-microsoft-com:office:excel"))return!0;let t=e.indexOf("<");for(;-1!==t;){if(!r.test(e.charAt(t+1))){t=e.indexOf("<",t+1);continue}let n=e.indexOf(">",t);-1===n&&(n=e.length);let o=e.slice(t,n);if("<meta"===o.slice(0,5).toLowerCase()&&function(e){if(s(e,"Microsoft Word")||s(e,"Microsoft Excel"))return!0;let t=e.toLowerCase(),n=t.indexOf("progid");return -1!==n&&(-1!==t.indexOf("word.",n)||-1!==t.indexOf("excel.",n))||t.includes("libreoffice")||t.includes("openoffice")}(o)||function(e){let t=e.indexOf("class=");for(;-1!==t;){if(t>0&&i.test(e.charAt(t-1))){let n=t+6,i=e.charAt(n);if(('"'===i||"'"===i)&&(n+=1),e.startsWith("Mso",n))return!0}t=e.indexOf("class=",t+6)}return!1}(o))return!0;t=e.indexOf("<",n)}return a(e,"'")||a(e,'"')&&e.includes("<font")}},58487:function(e,t,n){var i=n(70799);let o=/[A-Za-z]/,r=/[A-Za-z0-9]/,s=/\w/;function a(e,t){if(!o.test(e.charAt(t)))return"";let n=t+1;for(;r.test(e.charAt(n));)n+=1;return e.slice(t,n)}n.d(t,["isHTML",0,e=>(0,i.isString)(e)&&function(e){let t=new Map,n=e.indexOf("</");for(;-1!==n;){let i=a(e,n+2);""!==i&&">"===e.charAt(n+2+i.length)&&t.set(i,n),n=e.indexOf("</",n+2)}if(0===t.size)return!1;let i=-1;for(n=e.indexOf("<");-1!==n;){let o=a(e,n+1),r=n+1+o.length;if(""!==o&&!s.test(e.charAt(r))){if(i<r&&(i=e.indexOf(">",r)),-1===i)return!1;let n=t.get(o);if(void 0!==n&&n>i)return!0}n=e.indexOf("<",n+1)}return!1}(e)])},60132:function(e,t,n){n.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var i=n(2748),o=n(23282),r=n(86068);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&i.Dom.isElement(e.container)}},72913:function(e,t,n){n.d(t,{isInt:function(){return r}});var i=n(29807),o=n(70799);function r(e){return(0,o.isString)(e)&&(0,i.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,n){n.d(t,{isJoditObject:function(){return o}});var i=n(23282);function o(e){return!!(e&&e instanceof Object&&(0,i.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,n){var i=n(70799);n.d(t,["isLicense",0,e=>(0,i.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,n){n.d(t,{isMarker:function(){return o}});var i=n(2748);function o(e){return i.Dom.isMarker(e)}},70722:function(e,t,n){n.d(t,{isNativeFunction:function(){return i}});function i(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(String(e)))}},84767:function(e,t,n){n.d(t,{isNumber:function(){return i}});function i(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,n){n.d(t,{isNumeric:function(){return o}});var i=n(70799);function o(e){if((0,i.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,n){n.d(t,{isPlainObject:function(){return o}});var i=n(52742);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,i.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,n){n.d(t,{isPromise:function(){return i}});function i(e){return e&&"function"==typeof e.then}},42320:function(e,t,n){n.d(t,{isSet:function(){return o}});var i=n(23282);function o(e){return!!e&&(0,i.isFunction)(e.has)&&(0,i.isFunction)(e.add)&&(0,i.isFunction)(e.delete)}},70799:function(e,t,n){n.d(t,{isString:function(){return o},isStringArray:function(){return r}});var i=n(68345);function o(e){return"string"==typeof e}function r(e){return(0,i.isArray)(e)&&o(e[0])}},26049:function(e,t,n){n.d(t,{isURL:function(){return o}});var i=n(82758);function o(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=i.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,n){n.d(t,{isValidName:function(){return i}});function i(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,n){n.d(t,{isViewObject:function(){return o}});var i=n(23282);function o(e){return!!(e&&e instanceof Object&&(0,i.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,n){n.d(t,{isVoid:function(){return i}});function i(e){return null==e}},52742:function(e,t,n){n.d(t,{isWindow:function(){return i}});function i(e){return null!=e&&e===e.window}},35278:function(e,t,n){n.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 n=parseInt(t[2],10),i=parseInt(t[3],10),o=(parseInt(t[4],10)|i<<8|n<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}])},32574:function(e,t,n){n.d(t,{applyStyles:function(){return h}});var i=n(82758),o=n(2748),r=n(76241),s=n(90723),a=n(49055),l=n(29960),c=n(41180),u=n(76078);function d(e){let t=e.split(";"),n=t.length-1;return t.filter((e,t)=>{let i=/^\s*([a-z-]{1,64})\s*:/i.exec(e);if(!i)return!0;let o=i[1].toLowerCase();return!(o.startsWith("mso-")||o.startsWith("border")&&t!==n)}).join(";").replace(/([0-9.]{1,32})(pt|cm)/gi,(e,t,n)=>{switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function h(e){let t=(0,r.indexOfOpenTag)(e,"html");if(-1===t)return e;let n=(e=e.substring(t)).toLowerCase().lastIndexOf("</html>");-1!==n&&(e=e.substring(0,n+7));let h=i.globalDocument.createElement("iframe");(0,c.css)(h,"display","none"),o.Dom.append(i.globalDocument.body,h);let p="";try{let t=h.contentDocument||(h.contentWindow?h.contentWindow.document:null);if(t){t.open(),t.write(e),t.close();let n=(0,s.readWordListItems)(t.body);o.Dom.each(t.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,l.attr)(e,"style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let n=t.styleSheets[e].cssRules;for(let e=0;e<n.length;e+=1)""!==n[e].selectorText&&(0,u.$$)(n[e].selectorText,t.body).forEach(t=>{t.style.cssText=d(n[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!i.IS_PROD)throw e}(0,s.wrapWordListItems)(n),o.Dom.each(t.body,e=>{if(o.Dom.isElement(e)){let t=(0,l.attr)(e,"style");t&&(e.style.cssText=d(t)),(0,l.attr)(e,"style")||(0,l.attr)(e,"style",null)}}),p=t.firstChild?(0,a.trim)(t.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(h)}return p&&(e=p),(0,a.trim)((0,r.removeWordWrappers)(e))}},53212:function(e,t,n){n.d(t,{cleanFromWord:function(){return u}});var i=n(82758),o=n(2748),r=n(4510),s=n(76241),a=n(90723),l=n(49055),c=n(29960);function u(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let n=i.globalDocument.createElement("div");n.innerHTML=e;let s=[],l=(0,a.readWordListItems)(n);n.firstChild&&o.Dom.each(n,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,c.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,c.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),(0,a.wrapWordListItems)(l),t=n.innerHTML}catch(e){}return t&&(e=t),e=e.split(/(\n)/).filter(l.trim).join("\n"),(0,s.removeWordWrappers)(e)}},53326:function(e,t,n){n.d(t,{htmlspecialchars:function(){return o}});var i=n(82758);function o(e){let t=i.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},75275:function(e,t,n){n.d(t,{applyStyles:function(){return i.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},indexOfClosingTag:function(){return c.indexOfClosingTag},indexOfOpenTag:function(){return c.indexOfOpenTag},nl2br:function(){return s.nl2br},removeBetween:function(){return c.removeBetween},removeEmptyMarkedTags:function(){return c.removeEmptyMarkedTags},removeTagsByPrefix:function(){return c.removeTagsByPrefix},removeWordWrappers:function(){return c.removeWordWrappers},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags},unwrapMarkedTags:function(){return c.unwrapMarkedTags}});var i=n(32574),o=n(53212),r=n(53326),s=n(45971),a=n(86518),l=n(91003),c=n(76241)},45971:function(e,t,n){n.d(t,{nl2br:function(){return i}});function i(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}},86518:function(e,t,n){n.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return m}});var i=n(2748),o=n(43555),r=n(29960);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var n;if(!i.Dom.isElement(e)&&!i.Dom.isFragment(e))return;let r=[];for(let t of(i.Dom.each(e,e=>{i.Dom.isElement(e)&&i.Dom.up(e.parentNode,a)&&r.push(e)}),r))i.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==i.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)&&i.Dom.safeRemove(t);let l=[];for(let t of(i.Dom.each(e,e=>{i.Dom.isElement(e)&&"NOSCRIPT"===e.nodeName&&l.push(e)}),l))i.Dom.safeRemove(t);let u=null!=(n=t.removeEventAttributes)?n:t.removeOnError,d=e=>{if(i.Dom.isElement(e)&&(u&&c(e),m(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,o.attr)(e,"target"))){let t=((0,o.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}};d(e),i.Dom.each(e,d)}function c(e){if(!i.Dom.isElement(e))return!1;let t=!1,n=[];for(let t=0;t<e.attributes.length;t++)e.attributes[t].name.toLowerCase().startsWith("on")&&n.push(e.attributes[t].name);for(let i of n)(0,r.attrRaw)(e,i,null),t=!0;return t}let u=["src","data","action","formaction","poster","background","xlink:href"],d=new Set(["animate","set","animatemotion","animatetransform"]),h=["values","from","to","by"],p=new Set(["iframe","frame","object","embed"]);function f(e,t){let n=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(n)||/^data:(?:text\/html|application\/xhtml)/.test(n))||/^data:image\/svg/.test(n)&&p.has(t)}function m(e,{safeJavaScriptLink:t,removeOnError:n,removeEventAttributes:s}={safeJavaScriptLink:!0,removeOnError:!0}){if(!i.Dom.isElement(e))return!1;let a=!1;s&&c(e)&&(a=!0),n&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),a=!0);let l=e.nodeName.toLowerCase(),p=(0,o.attr)(e,"href");if(t&&p&&f(p,l)){let t="u">typeof location?location.protocol:"http:";(0,o.attr)(e,"href",t+"//"+p),a=!0}if(t){for(let t of(e.hasAttribute("srcdoc")&&((0,o.attr)(e,"srcdoc",null),a=!0),u)){let n=(0,r.attrRaw)(e,t);n&&f(n,l)&&((0,o.attr)(e,t,null),a=!0)}if(d.has(l))for(let t of h){let n=(0,r.attrRaw)(e,t);n&&n.split(";").some(e=>f(e,"a"))&&((0,o.attr)(e,t,null),a=!0)}}return a}},91003:function(e,t,n){n.d(t,{stripTags:function(){return function e(t,n=document,u=null,d=!1){let h=n.createElement("div");(0,o.isString)(t)?h.innerHTML=t:i.Dom.append(h,t);let p=[];i.Dom.each(h,e=>{i.Dom.isElement(e)&&p.push(e)});let f=new Set,m=()=>{let e=n.createTextNode(d?"%%%jodit-single-br%%%":" ");return f.add(e),e};return p.forEach(t=>{if(!t.parentNode)return;if(u&&i.Dom.isTag(t,u)){let o=t.nodeName.toLowerCase(),r=i.Dom.isTag(t,c)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,n,u,d)}%%%/jodit-${o}%%%`;i.Dom.before(t,n.createTextNode(r)),i.Dom.safeRemove(t);return}if(i.Dom.isTag(t,l))return void i.Dom.safeRemove(t);if(!i.Dom.isTag(t,s))return;let o=t.previousSibling;i.Dom.isTag(t,a)&&o&&!f.has(o)&&!(i.Dom.isText(o)&&/\s$/.test(o.nodeValue||""))&&i.Dom.before(t,m());let r=t.nextSibling;!(i.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&i.Dom.before(r,m())}),(0,r.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,n,i)=>`<${t?"/":""}${i}>`)}}});var i=n(2748),o=n(70799),r=n(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"])},76241:function(e,t,n){n.d(t,{indexOfClosingTag:function(){return a},indexOfOpenTag:function(){return u},removeBetween:function(){return f},removeEmptyMarkedTags:function(){return m},removeTagsByPrefix:function(){return l},removeWordWrappers:function(){return c},unwrapMarkedTags:function(){return h}});let i=/[a-z0-9:-]/i,o=["<html","</html","<col","</col","<o:p","</o:p"];function r(e,t,n){return e.substr(t,n.length).toLowerCase()===n}function s(e,t,n){let i=e.indexOf("<",n);for(;-1!==i;){for(let n of t)if(r(e,i,n))return[i,n];i=e.indexOf("<",i+1)}return[-1,""]}function a(e,t,n){let i="</"+t+">",o=e.indexOf("</",n);for(;-1!==o;){if(r(e,o,i))return o;o=e.indexOf("</",o+2)}return -1}function l(e,t){let n=t.map(e=>e.toLowerCase()),i="",o=0;for(;;){let[t]=s(e,n,o);if(-1===t)break;let r=e.indexOf(">",t);if(-1===r)break;i+=e.slice(o,t),o=r+1}return 0===o?e:i+e.slice(o)}function c(e){return l(l(e,o),["\x3c!--"])}function u(e,t){let n="<"+t.toLowerCase(),i=0;for(;;){let[t]=s(e,[n],i);if(-1===t)return -1;let o=e.charAt(t+n.length);if(">"===o)return t;if(/\s/.test(o)){if(-1===e.indexOf(">",t))return -1;return t}i=t+1}}function d(e,t){let n=t;for(;i.test(e.charAt(n));)n+=1;return e.slice(t,n)}function h(e,t,n,i){let o=n.toLowerCase(),r=[null==t?"<":"<"+t.toLowerCase()],a=function(e){let t=new Map,n=e.indexOf("</");for(;-1!==n;){let i=d(e,n+2).toLowerCase();if(""!==i&&">"===e.charAt(n+2+i.length)){let e=t.get(i);e?e.push(n):t.set(i,[n])}n=e.indexOf("</",n+2)}return t}(e),l="",c=0;for(;;){let[n]=s(e,r,c);if(-1===n)break;let u=(null!=t?t:d(e,n+1)).toLowerCase(),h=e.indexOf(">",n);if(-1===h)break;let p=""!==u&&e.slice(n,h).toLowerCase().includes(o)?function(e,t){if(!e)return -1;let n=0,i=e.length;for(;n<i;){let o=n+i>>1;e[o]<t?n=o+1:i=o}return n<e.length?e[n]:-1}(a.get(u),h+1):-1;if(-1===p){l+=e.slice(c,n+1),c=n+1;continue}let f=e.slice(h+1,p),m=p+u.length+3;l+=e.slice(c,n),l+=""!==f&&(!i||i(f))?f:e.slice(n,m),c=m}return 0===c?e:l+e.slice(c)}function p(e,t,n){let i=t.charAt(0),o=e.indexOf(i,n);for(;-1!==o;){if(r(e,o,t))return o;o=e.indexOf(i,o+1)}return -1}function f(e,t,n,i,o=""){let r=t.toLowerCase(),s=o.toLowerCase(),a="",l=0;for(;;){let o=p(e,r,l);if(-1===o)break;let c=p(e,n,o+t.length);if(-1===c)break;if(""!==s&&!e.slice(o,c).toLowerCase().includes(s)){a+=e.slice(l,c+n.length),l=c+n.length;continue}let u=p(e,i,c+n.length);if(-1===u)break;a+=e.slice(l,o),l=u+i.length}return 0===l?e:a+e.slice(l)}function m(e,t,n){let i=t.toLowerCase(),o=n.toLowerCase(),a="</"+i+">",l="",c=0;for(;;){let[t]=s(e,["<"+i],c);if(-1===t)break;let n=e.indexOf(">",t);if(-1===n)break;if(e.slice(t,n).toLowerCase().includes(o)&&r(e,n+1,a)){l+=e.slice(c,t),c=n+1+a.length;continue}l+=e.slice(c,n+1),c=n+1}return 0===c?e:l+e.slice(c)}},90723:function(e,t,n){n.d(t,{readWordListItems:function(){return a},wrapWordListItems:function(){return l}});var i=n(2748),o=n(4510),r=n(29960);let s={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3};function a(e){let t=[];return(0,o.toArray)(e.querySelectorAll("p")).forEach(e=>{let n=/mso-list:\s*l(\d+)\s+level(\d+)(?:\s+lfo(\d+))?/i.exec((0,r.attr)(e,"style")||"");if(!n)return;let a=(0,o.toArray)(e.querySelectorAll("[style]")).find(e=>/mso-list:\s*ignore/i.test((0,r.attr)(e,"style")||""));t.push(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({paragraph:e,list:`${n[1]}:${n[3]||""}`,level:Number(n[2])},function(e){let t=e.replace(/\s+/g,""),n=/^\(?(?:\d+\.)*(\d+)[.)]?$/.exec(t);if(n)return{tag:"ol",listStyleType:null,start:Number(n[1])};let i=/^\(?([a-z]+|[A-Z]+)[.)]$/.exec(t);if(i){let e=i[1],t=e.toLowerCase(),n=e!==t;if(/^[ivxlcdm]+$/.test(t)&&(t.length>1||"i"===t))return{tag:"ol",listStyleType:n?"upper-roman":"lower-roman",start:function(e){let t=0;for(let n=0;n<e.length;n+=1){let i=s[e[n]];t+=(s[e[n+1]]||0)>i?-i:i}return t}(t)};if(/^([a-z])\1*$/.test(t))return{tag:"ol",listStyleType:n?"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 n=e.parentNode;for(i.Dom.safeRemove(e);n&&n!==t&&i.Dom.isElement(n)&&i.Dom.isEmpty(n);){let e=n.parentNode;i.Dom.safeRemove(n),n=e}}(a,e)}),t}function l(e){let t=[],n=e.map((t,n)=>{var o;return n>0&&(o=e[n-1],i.Dom.findSibling(t.paragraph,!0,e=>!i.Dom.isEmptyTextNode(e)&&!i.Dom.isComment(e))===o.paragraph)});e.forEach((e,s)=>{let{paragraph:a}=e;for(n[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 n=c.createElement(e.tag);e.listStyleType&&(n.style.listStyleType=e.listStyleType),"ol"===e.tag&&1!==e.start&&(0,r.attr)(n,"start",e.start),l&&l.li?l.li.appendChild(n):i.Dom.before(a,n),l={level:e.level,list:e.list,element:n},t.push(l)}let u=c.createElement("li");(0,o.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),i.Dom.moveContent(a,u),i.Dom.safeRemove(a),l.element.appendChild(u),l.li=u})}},21537:function(e,t,n){n.r(t),n.d(t,{$$:function(){return d.$$},AnswerError:function(){return d.AnswerError},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},answer:function(){return d.answer},appendScriptAsync:function(){return d.appendScriptAsync},appendStyleAsync:function(){return d.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return i.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},clearHAlign:function(){return d.clearHAlign},clearTimeout:function(){return o.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},getAnchorName:function(){return d.getAnchorName},getAnchors:function(){return d.getAnchors},getCaptionWrapper:function(){return d.getCaptionWrapper},getCaptionedImage:function(){return d.getCaptionedImage},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},getImageCaption:function(){return d.getImageCaption},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},indexOfClosingTag:function(){return a.indexOfClosingTag},indexOfOpenTag:function(){return a.indexOfOpenTag},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isAnchor:function(){return d.isAnchor},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},removeBetween:function(){return a.removeBetween},removeEmptyMarkedTags:function(){return a.removeEmptyMarkedTags},removeTagsByPrefix:function(){return a.removeTagsByPrefix},removeWordWrappers:function(){return a.removeWordWrappers},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 o.setTimeout},size:function(){return c.size},splitArray:function(){return i.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return i.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},trimInvEnd:function(){return u.trimInvEnd},ucfirst:function(){return u.ucfirst},unwrapMarkedTags:function(){return a.unwrapMarkedTags},wrapMedia:function(){return d.wrapMedia}});var i=n(76855),o=n(91898),r=n(27613),s=n(35278),a=n(75275),l=n(71521),c=n(56175),u=n(59007),d=n(43555)},71521:function(e,t,n){n.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return i.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.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 i=n(21224),o=n(3760),r=n(49033),s=n(12972),a=n(9992),l=n(70091),c=n(46334),u=n(37406)},21224:function(e,t,n){var i=n(35278),o=n(49055);n.d(t,["normalizeColor",0,e=>{let t=["#"],n=(0,i.colorToHex)(e);if(!n)return!1;if(3===(n=(n=(0,o.trim)(n.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(n[e]),t.push(n[e]);return t.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n}])},3760:function(e,t,n){n.d(t,{normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var i=n(29807),o=n(86068),r=n(35278),s=n(12475);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,i.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,i.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}n.d(t,["NUMBER_FIELDS_REG",0,a])},49033:function(e,t,n){n.d(t,{normalizeKeyAliases:function(){return r}});var i=n(82758),o=n(49055);function r(e){let t={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>i.KEY_ALIASES[e]||e).sort((e,t)=>n[e]&&!n[t]?-1:!n[e]&&n[t]?1:n[e]&&n[t]?n[e]-n[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},12972:function(e,t,n){n.d(t,["normalizeLicense",0,(e,t=8)=>{let n=[];for(;e.length;)n.push(e.substr(0,t)),e=e.substr(t);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}])},9992:function(e,t,n){var i=n(49055);n.d(t,["normalizePath",0,(...e)=>e.filter(e=>(0,i.trim)(e).length).map((t,n)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),n&&(t=t.replace(/^\//,"")),n!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")])},70091:function(e,t,n){n.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,n){n.d(t,["normalizeSize",0,(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()])},37406:function(e,t,n){n.d(t,["normalizeUrl",0,(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")])},44506:function(e,t,n){n.d(t,["getContentWidth",0,(e,t)=>{let n=t.getComputedStyle(e);return e.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}])},35224:function(e,t,n){n.d(t,{getFixedPositionOffset:function(){return i}});function i(e){var t,n;let i=null==(t=e.ownerDocument)?void 0:t.defaultView,o=e.parentElement;for(;i&&o;){if(""!==(n=i.getComputedStyle(o)).transform&&"none"!==n.transform||""!==n.perspective&&"none"!==n.perspective||""!==n.filter&&"none"!==n.filter||"transform"===n.willChange||"perspective"===n.willChange||"filter"===n.willChange||"paint"===n.contain||"layout"===n.contain||"strict"===n.contain||"content"===n.contain){let e=o.getBoundingClientRect();return{x:e.left,y:e.top}}o=o.parentElement}let r=null==i?void 0:i.visualViewport;return i&&r&&(r.offsetLeft||r.offsetTop)&&1>Math.abs(r.pageLeft-i.scrollX)&&1>Math.abs(r.pageTop-i.scrollY)?{x:-Math.round(r.offsetLeft),y:-Math.round(r.offsetTop)}:{x:0,y:0}}},16442:function(e,t,n){n.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let n=o.Dom.isHTMLElement(t),s=n&&(0,r.css)(t,"overflowY");return n&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||i.globalDocument.scrollingElement||i.globalDocument.body}}});var i=n(82758),o=n(2748),r=n(43555)},56175:function(e,t,n){n.d(t,{getContentWidth:function(){return i.getContentWidth},getFixedPositionOffset:function(){return o.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 i=n(44506),o=n(35224),r=n(16442),s=n(81630),a=n(21496),l=n(81284),c=n(5700)},81630:function(e,t,n){n.d(t,["innerWidth",0,(e,t)=>{let n=t.getComputedStyle(e);return e.clientWidth-(parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"))}])},21496:function(e,t,n){n.d(t,{size:function(){return o}});var i=n(27613);function o(e){return(0,i.isString)(e)||(0,i.isArray)(e)?e.length:(0,i.isPlainObject)(e)?Object.keys(e).length:0}},81284:function(e,t,n){let i=(e,t,n,o=!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=n.body,c=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=n.defaultView||n.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(!o&&t&&t.options&&t.o.iframe&&m){let{top:e,left:n}=i(m,t,t.od,!0);s=r.top+e,a=r.left+n}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}};n.d(t,["offset",0,i])},5700:function(e,t,n){n.d(t,{position:function(){return function e(t,n,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,i.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(t)&&!o){let{left:t,top:i}=e(n.iframe,n,!0);l+=t,c+=i}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 i=n(19306)},87058:function(e,t,n){n.d(t,["camelCase",0,e=>e.replace(/([-_])(.)/g,(e,t,n)=>n.toUpperCase())])},67477:function(e,t,n){n.d(t,{fuzzySearchIndex:function(){return o}});var i=n(82758);function o(e,t,n=0,r=1){let s=0,a,l=-1,c=0,u=0;for(a=n;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]!==i.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,n){n.d(t,{i18n:function(){return c}});var i=n(82758),o=n(70799),r=n(36409),s=n(43555),a=n(6441);let l=(e,t)=>{if(!t||!t.length)return e;let n=/%([sd])/g,i=n.exec(e),o=e,r=0;for(;i&&void 0!==t[r];)o=o.replace(i[0],t[r].toString()),r+=1,i=n.exec(e);return o};function c(e,t,n){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!(null==n?void 0:n.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==n?void 0:n.language,h),f=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let n=e.toLowerCase();if((0,o.isString)(t[n]))return d(t[n]);let i=(0,r.ucfirst)(e);if((0,o.isString)(t[i]))return d(t[i])};void 0!==i.lang[p]?u=i.lang[p]:c||(u=void 0!==i.lang[h]?i.lang[h]:i.lang.en);let m=null==n?void 0:n.i18n;if(m&&m[p]){let e=f(m[p]);if(e)return e}return f(u)||(!c&&i.lang.en&&(0,o.isString)(i.lang.en[e])&&i.lang.en[e]?d(i.lang.en[e]):c?"{"+e+"}":(i.IS_PROD,d(e)))}n.d(t,["sprintf",0,l])},59007:function(e,t,n){n.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return i.camelCase},fuzzySearchIndex:function(){return o.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},trimInvEnd:function(){return l.trimInvEnd},ucfirst:function(){return c.ucfirst}});var i=n(87058),o=n(67477),r=n(56967),s=n(12475),a=n(67462),l=n(49055),c=n(36409)},12475:function(e,t,n){n.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,n){n.d(t,{stringify:function(){return i}});function i(e,t={}){if("object"!=typeof e)return String(e);let n=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!n.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}},49055:function(e,t,n){n.d(t,{trim:function(){return s},trimChars:function(){return a},trimInv:function(){return l},trimInvEnd:function(){return c}});let i=/[\s\u200b]/,o=/\uFEFF/;function r(e,t){let n=0,i=e.length;for(;n<i&&t.test(e.charAt(n));)n+=1;for(;i>n&&t.test(e.charAt(i-1));)i-=1;return 0===n&&i===e.length?e:e.slice(n,i)}function s(e){return r(e,i)}function a(e,t){return r(e,RegExp(`[${t}]`))}function l(e){return r(e,o)}function c(e){let t=e.length;for(;t>0&&o.test(e.charAt(t-1));)t-=1;return t===e.length?e:e.slice(0,t)}},36409:function(e,t,n){n.d(t,{ucfirst:function(){return i}});function i(e){return e.length?e[0].toUpperCase()+e.substring(1):""}},25726:function(e,t,n){n.d(t,{alignElement:function(){return g},clearAlign:function(){return f},clearHAlign:function(){return h},getAlignClasses:function(){return u},getHAlign:function(){return p},hAlignElement:function(){return d}});var i=n(22732),o=n(68345),r=n(29960),s=n(41180),a=n(68645),l=n(61477);let c=e=>((0,o.isArray)(e)?e:[null!=e?e:""]).map(e=>e.split(/\s+/).filter(Boolean)).filter(e=>e.length);function u(e,t){var n,o,r;if(!t)return null;let s=i.Dom.isTag(t,new Set(["jodit","jodit-media"]))?t.firstElementChild:null!=(n=(0,l.getWrappedMedia)(e,t))?n:(0,a.getCaptionedImage)(e,t);return null!=(r=null==(o=e.o.alignClasses)?void 0:o[(null!=s?s:t).nodeName.toLowerCase()])?r:null}function d(e,t,n){var i;if(n){h(e,n),e.classList.add(...null!=(i=c(n[t||"normal"])[0])?i:[]);return}t&&"normal"!==t?"center"!==t?((0,s.css)(e,"float",t),(0,s.clearCenterAlign)(e)):(0,s.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,s.css)(e,"float")&&-1!==["right","left"].indexOf((0,s.css)(e,"float").toString().toLowerCase())&&(0,s.css)(e,"float",""),(0,s.clearCenterAlign)(e))}function h(e,t){d(e,"normal"),t&&Object.values(t).forEach(t=>c(t).forEach(t=>e.classList.remove(...t))),["class","style"].forEach(t=>{var n;(null==(n=(0,r.attr)(e,t))?void 0:n.trim())||(0,r.attr)(e,t,null)})}function p(e,t){if(t){for(let n of["left","right","center","normal"])if(c(t[n]).some(t=>t.every(t=>e.classList.contains(t))))return n}let n=(0,s.cssInline)(e,"float").toLowerCase();return"left"===n||"right"===n?n:"block"===(0,s.css)(e,"display")&&"auto"===(0,s.cssInline)(e,"margin-left")&&"auto"===(0,s.cssInline)(e,"margin-right")?"center":"normal"}function f(e){i.Dom.each(e,e=>{i.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 m=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function g(e,t){if(i.Dom.isNode(t)&&i.Dom.isElement(t)){f(t);let n=m.get(e.toLowerCase());n&&(0,s.css)(t,"textAlign",n)}}},70442:function(e,t,n){n.d(t,{getAnchorName:function(){return r},getAnchors:function(){return a},isAnchor:function(){return s}});var i=n(2748),o=n(4510);function r(e){return e.id||e.getAttribute("name")||""}function s(e){return i.Dom.isTag(e,"a")&&!e.hasAttribute("href")&&!e.hasChildNodes()&&""!==r(e)}function a(e){return(0,o.toArray)(e.querySelectorAll("a")).filter(s)}},63799:function(e,t,n){n.d(t,{loadNext:function(){return function e(t,n,i=0){return(0,o.isString)(n[i])?c(t,n[i]).then(()=>e(t,n,i+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,n,i=0){return(0,o.isString)(n[i])?u(t,n[i]).then(()=>e(t,n,i+1)):Promise.resolve()}}});var i=n(2748),o=n(70799),r=n(29960),s=n(66292);let a=new Map,l=e=>(t,n)=>{if(a.has(n))return a.get(n);let i=e(t,n);return a.set(n,i),i},c=l((e,t)=>e.async.promise((n,o)=>{if(e.isInDestruct)return o();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",o).one(a,"load",n),i.Dom.append(e.od.body,a)})),u=l((e,t)=>e.async.promise((n,o)=>{if(e.isInDestruct)return o();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",()=>n(a)).on(a,"error",o),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?i.Dom.append(e.o.shadowRoot,a):i.Dom.append(e.od.body,a)}));n.d(t,["alreadyLoadedList",0,a,"appendScriptAsync",0,c,"appendStyleAsync",0,u])},38837:function(e,t,n){n.d(t,{assert:function(){return o}});class i extends Error{constructor(e){super(e),this.name="AssertionError"}}function o(e,t){if(!e)throw new i(`Assertion failed: ${t}`)}},29960:function(e,t,n){n.d(t,{attr:function(){return function e(t,n,l){if(!t||!(0,i.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(n))return Object.keys(n).forEach(i=>{let r=n[i];(0,o.isPlainObject)(r)&&"style"===i?(0,a.css)(t,r):("className"===i&&(i="class"),e(t,i,r))}),null;let c=(0,s.CamelCaseToKebabCase)(n);if(/^-/.test(c)){let n=e(t,`data${c}`);if(n)return n;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 i=n(23282),o=n(72430),r=n(70799),s=n(12475),a=n(41180);function l(e,t,n){if(void 0===n)return e.getAttribute(t);if(null==n){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,n)}},97639:function(e,t,n){n.d(t,["browser",0,e=>{let t=navigator.userAgent.toLowerCase(),n=/(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?n[2]:"webkit"===e?"chrome"===n[1]||"webkit"===n[1]:"ff"===e?"firefox"===n[1]:"msie"===e?"trident"===n[1]||"msie"===n[1]:n[1]===e}])},44710:function(e,t,n){var i=n(72430);let o=(e,t)=>{let n=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];n.push((0,i.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return n.join("&")};n.d(t,["buildQuery",0,o])},66292:function(e,t,n){var i=n(82758);n.d(t,["completeUrl",0,e=>("file:"===i.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)])},68934:function(e,t,n){n.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,u.keys)(t,!1).reduce((n,i)=>(n[i]=(0,o.isPlainObject)(t[i])?e(t[i]):t[i],n),{})}},ConfigFlatten:function(){return d},ConfigMerge:function(){return function e(t,n){Object.keys(n).forEach(i=>{if((0,c.isUnsafeProtoKey)(i))return;let r=n[i],s=t[i];(0,o.isPlainObject)(r)&&(0,o.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[i]=r})}},ConfigProto:function(){return function e(t,n,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(n=>{(0,s.isVoid)(t[n])&&(t[n]=e[n])})}delete t.preset}let h={};return Object.keys(t).forEach(r=>{if((0,c.isUnsafeProtoKey)(r))return;let s=t[r],a=n?n[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,u+1);return}if(0!==u&&(0,i.isArray)(s)&&!(0,l.isAtom)(s)&&(0,i.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,n),h}}});var i=n(68345),o=n(72430),r=n(70799),s=n(86068),a=n(6441),l=n(97735),c=n(69175),u=n(37790);function d(e){return(0,u.keys)(e,!1).reduce((t,n)=>(t[n]=e[n],t),{})}},55877:function(e,t,n){var i=n(82758),o=n(26049),r=n(82501);n.d(t,["convertMediaUrlToVideoEmbed",0,(e,{width:t=400,height:n=345}={})=>{if(!(0,o.isURL)(e))return e;let s=i.globalDocument.createElement("a");s.href=e,t||(t=400),n||(n=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let i=s.pathname.split("/").filter(Boolean),o=i.findIndex(e=>/^\d+$/.test(e));if(-1===o)return e;let r=i[o],l=i[o+1];return l&&0===o&&(r+="/"+l),'<iframe width="'+t+'" height="'+n+'" 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 i=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(i=i.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+n+'" src="'+a+"//www.youtube.com/embed/"+i+'" frameborder="0" allowfullscreen></iframe>':e}}return e}])},41180:function(e,t,n){n.d(t,{css:function(){return l},cssInline:function(){return c}});var i=n(87612),o=n(72430),r=n(3760),s=n(87058),a=n(12475);function l(e,t,n,c=!1){if((0,i.isBoolean)(n)&&(c=n,n=void 0),(0,o.isPlainObject)(t)||void 0!==n){let i=(e,t,n)=>{void 0!==(n=(0,r.normalizeCssNumericValue)(t,n))&&(null==n||l(e,t,!0)!==(0,r.normalizeCssValue)(t,n))&&(e.style[t]=n)};if((0,o.isPlainObject)(t)){let n=Object.keys(t);for(let o=0;o<n.length;o+=1)i(e,(0,s.camelCase)(n[o]),t[n[o]])}else i(e,(0,s.camelCase)(t),n);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))}n.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,n){n.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,n){var i=n(39955);let o=new WeakMap;n.d(t,["dataBind",0,(e,t,n)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,i.isViewObject)(e.j)&&(t=e.j.e),(0,i.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===n?r[t]:(r[t]=n,n)}])},96325:function(e,t,n){var i=n(82758),o=n(70799);n.d(t,["defaultLanguage",0,(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:i.globalDocument.documentElement&&i.globalDocument.documentElement.lang?i.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t])},82760:function(e,t,n){n.d(t,{answer:function(){return a},connection:function(){return r},error:function(){return o},options:function(){return s}});var i=n(32880);function o(e){return TypeError(e)}function r(e){return new i.ConnectionError(e)}function s(e){return new i.OptionsError(e)}function a(e,t,n){return new i.AnswerError(e,t,n)}},93661:function(e,t,n){n.d(t,{abort:function(){return i}});function i(e="Aborted"){return new DOMException(e,"AbortError")}},5311:function(e,t,n){n.d(t,{AnswerError:function(){return i}});class i extends Error{constructor(e,t,n){super(e),this.answer=t,this.code=n,Object.setPrototypeOf(this,i.prototype)}}},86397:function(e,t,n){n.d(t,{ConnectionError:function(){return i}});class i extends Error{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},32880:function(e,t,n){n.d(t,{AnswerError:function(){return o.AnswerError},ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return i.abort}});var i=n(93661),o=n(5311),r=n(86397),s=n(57865)},57865:function(e,t,n){n.d(t,{OptionsError:function(){return i}});class i extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},89890:function(e,t,n){n.d(t,{AnswerError:function(){return o.AnswerError},ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},answer:function(){return i.answer},connection:function(){return i.connection},error:function(){return i.error},options:function(){return i.options}});var i=n(82760),o=n(32880)},97735:function(e,t,n){n.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var i=n(67462);function o(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,i.stringify)(e))}},80568:function(e,t,n){var i=n(23282);let o=new Map;n.d(t,["getClassName",0,e=>{var t;if((0,i.isFunction)(e.className))return e.className();let n=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(n))return o.get(n);if(n.name)return n.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=n.toString().match(r);return s?s[1]:""},"keepNames",0,o])},94643:function(e,t,n){n.d(t,{get:function(){return r}});var i=n(70799),o=n(86068);function r(e,t){if(!(0,i.isString)(e)||!e.length)return null;let n=e.split("."),r=t;try{for(let e of n){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},38420:function(e,t,n){n.d(t,["humanSizeToBytes",0,e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],i=parseFloat(e.substr(0,e.length-2));return -1!==n.indexOf(t)?i*Math.pow(1024,n.indexOf(t)+1):parseInt(e,10)}])},68645:function(e,t,n){n.d(t,{getCaptionWrapper:function(){return l},getCaptionedImage:function(){return a},getImageCaption:function(){return s}});var i=n(2748),o=n(4510);let r=(e,t)=>i.Dom.isHTMLElement(e)&&e.nodeName.toLowerCase()===t.tag.toLowerCase()&&(!t.className||e.classList.contains(t.className));function s(e,t){var n;let i=e.o.imageCaption;return i&&r(t,i.wrapper)&&null!=(n=(0,o.toArray)(t.getElementsByTagName(i.caption.tag)).find(e=>r(e,i.caption)))?n:null}function a(e,t){let n=s(e,t);if(!n)return null;let i=t.getElementsByTagName("img");return 1!==i.length||n.contains(i[0])?null:i[0]}function l(e,t){return i.Dom.closest(t,t=>!!a(e,t),e.editor)}},43555:function(e,t,n){n.d(t,{$$:function(){return x.$$},AnswerError:function(){return b.AnswerError},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return b.ConnectionError},LimitedStack:function(){return L.LimitedStack},OptionsError:function(){return b.OptionsError},UNSAFE_PROTO_KEYS:function(){return k.UNSAFE_PROTO_KEYS},abort:function(){return b.abort},alignElement:function(){return i.alignElement},alreadyLoadedList:function(){return r.alreadyLoadedList},answer:function(){return b.answer},appendScriptAsync:function(){return r.appendScriptAsync},appendStyleAsync:function(){return r.appendStyleAsync},assert:function(){return s.assert},attr:function(){return a.attr},attrRaw:function(){return a.attrRaw},browser:function(){return l.browser},buildQuery:function(){return c.buildQuery},call:function(){return R.call},callPromise:function(){return R.callPromise},callThis:function(){return R.callThis},clearAlign:function(){return i.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},clearHAlign:function(){return i.clearHAlign},cns:function(){return C.cns},completeUrl:function(){return u.completeUrl},connection:function(){return b.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},createMediaWrapper:function(){return E.createMediaWrapper},css:function(){return p.css},cssInline:function(){return p.cssInline},cssPath:function(){return x.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return m.dataBind},defaultLanguage:function(){return g.defaultLanguage},error:function(){return b.error},fastClone:function(){return v.fastClone},get:function(){return y.get},getAlignClasses:function(){return i.getAlignClasses},getAnchorName:function(){return o.getAnchorName},getAnchors:function(){return o.getAnchors},getCaptionWrapper:function(){return S.getCaptionWrapper},getCaptionedImage:function(){return S.getCaptionedImage},getClassName:function(){return w.getClassName},getDataTransfer:function(){return R.getDataTransfer},getHAlign:function(){return i.getHAlign},getImageCaption:function(){return S.getImageCaption},getMediaWrapper:function(){return E.getMediaWrapper},getPropertyDescriptor:function(){return R.getPropertyDescriptor},getWrappedMedia:function(){return E.getWrappedMedia},getXPathByElement:function(){return x.getXPathByElement},hAlignElement:function(){return i.hAlignElement},humanSizeToBytes:function(){return _.humanSizeToBytes},inView:function(){return A.inView},isAnchor:function(){return o.isAnchor},isAtom:function(){return v.isAtom},isUnsafeProtoKey:function(){return k.isUnsafeProtoKey},keepNames:function(){return w.keepNames},keys:function(){return R.keys},loadImage:function(){return R.loadImage},loadNext:function(){return r.loadNext},loadNextStyle:function(){return r.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return R.markOwner},memorizeExec:function(){return R.memorizeExec},options:function(){return b.options},parseQuery:function(){return D.parseQuery},prepareEmbedCode:function(){return I.prepareEmbedCode},prepareMedia:function(){return I.prepareMedia},previewBox:function(){return T.previewBox},refs:function(){return x.refs},reset:function(){return j.reset},resolveElement:function(){return x.resolveElement},scrollIntoViewIfNeeded:function(){return A.scrollIntoViewIfNeeded},set:function(){return P.set},wrapMedia:function(){return E.wrapMedia}});var i=n(25726),o=n(70442),r=n(63799),s=n(38837),a=n(29960),l=n(97639),c=n(44710),u=n(66292),d=n(68934),h=n(55877),p=n(41180),f=n(15456),m=n(86583),g=n(96325),b=n(89890),v=n(97735),y=n(94643),w=n(80568),_=n(38420),S=n(68645),k=n(69175),C=n(95942),E=n(61477),D=n(82501),I=n(96437),T=n(11628),j=n(58844),A=n(26395),x=n(76078),P=n(3703),L=n(50535),R=n(37790)},69175:function(e,t,n){n.d(t,{isUnsafeProtoKey:function(){return o}});let i=["__proto__","constructor","prototype"];function o(e){return -1!==i.indexOf(e)}n.d(t,["UNSAFE_PROTO_KEYS",0,i])},95942:function(e,t,n){n.d(t,{markDeprecated:function(){return o}});let i=console;function o(e,t=[""],n=null){return(...o)=>(i.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(n,...o))}n.d(t,["cns",0,i])},61477:function(e,t,n){n.d(t,{createMediaWrapper:function(){return a},getMediaWrapper:function(){return s},getWrappedMedia:function(){return r},wrapMedia:function(){return l}});var i=n(2748);let o=(e,t)=>i.Dom.isHTMLElement(e)&&e.nodeName.toLowerCase()===t.tag.toLowerCase()&&e.classList.contains(t.className);function r(e,t){var n;for(let[i,r]of Object.entries(null!=(n=e.o.mediaWrappers)?n:{}))if(o(t,r)){let e=t.querySelector(i);if(e)return e}return null}function s(e,t){return i.Dom.closest(t,t=>!!r(e,t),e.editor)}function a(e,t){var n;let i=null==(n=e.o.mediaWrappers)?void 0:n[t.toLowerCase()];return i?e.createInside.element(i.tag,{class:i.className,contenteditable:!1,draggable:!0}):null}function l(e,t){let n=a(e,t.nodeName);return n?(t.parentNode&&i.Dom.before(t,n),i.Dom.append(n,t),n):t}},82501:function(e,t,n){n.d(t,["parseQuery",0,e=>{let t={},n=e.substring(1).split("&");for(let e=0;e<n.length;e+=1){let i=n[e].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}return t}])},96437:function(e,t,n){n.d(t,{prepareEmbedCode:function(){return s},prepareMedia:function(){return r}});var i=n(25726),o=n(61477);function r(e,t){let n=(0,o.wrapMedia)(e,t),{mediaDefaultAlign:r}=e.o;return r&&"normal"!==r&&(0,i.hAlignElement)(n,r,(0,i.getAlignClasses)(e,n)),n}function s(e,t){let n=e.createInside.div();n.innerHTML=t.trim();let i=n.firstElementChild;return i&&1===n.childNodes.length?r(e,i):t}},11628:function(e,t,n){n.d(t,{previewBox:function(){return a}});var i=n(2748),o=n(70799),r=n(29960),s=n(41180);function a(e,t,n="px",l=null){let c=[],u=function(e,t){let n=[],o=[];i.Dom.each(e.editor,e=>{i.Dom.isTag(e,"img")&&o.push(e)});try{o.forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),(0,r.attr)(o,"src")];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();i.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(o,"src")||""),(0,r.attr)(o,"src",a.href),i.Dom.safeRemove(a),n.push(()=>{(0,r.attr)(o,{src:s[2],width:s[0]||null,height:s[1]||null})})})}catch(e){throw n.forEach(e=>e()),n.length=0,e}return n}(e,n);try{let a=e.e.fire("beforePreviewBox",t,n);if(null!=a)return a;let u=e.c.div("jodit__preview-box jodit-context");l&&i.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}),i.Dom.append(u,t);let n=t.contentWindow;if(n&&(e.e.fire("generateDocumentStructure.iframe",n.document,e),u=n.document.body,"function"==typeof ResizeObserver)){let i=!1,o=n.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),(0,s.css)(t,"height",o.offsetHeight+20),e.async.requestAnimationFrame(()=>{i||r.observe(o)})},100)),a=()=>{i=!0,r.unobserve(o),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,n)=>{let s=(0,o.isString)(n)?e.c.div():n;(0,o.isString)(n)&&(s.innerHTML=n);for(let e=0;e<s.childNodes.length;e+=1){let n=s.childNodes[e];if(i.Dom.isElement(n)){let e=t.ownerDocument.createElement(n.nodeName);for(let t=0;t<n.attributes.length;t+=1)(0,r.attr)(e,n.attributes[t].name,n.attributes[t].value);0===n.childNodes.length||i.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(e.textContent=n.textContent):n.innerHTML&&(e.innerHTML=n.innerHTML):h(e,n);try{i.Dom.append(t,e)}catch(e){}}else try{i.Dom.append(t,n.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,n){n.d(t,{reset:function(){return a}});var i=n(82758),o=n(23282),r=n(94643);let s={};function a(e){var t,n;if(!(e in s)){let n=i.globalDocument.createElement("iframe");try{if(n.src="about:blank",i.globalDocument.body.appendChild(n),!n.contentWindow)return null;let t=(0,r.get)(e,n.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),n.contentWindow);(0,o.isFunction)(t)&&(s[e]=t.bind(a))}catch(e){if(!i.IS_PROD)throw e}finally{null==(t=n.parentNode)||t.removeChild(n)}}return null!=(n=s[e])?n:null}},26395:function(e,t,n){n.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var i=n(2748);function o(e,t,n){var i;let o=e.getBoundingClientRect(),r=e,s=o.top,a=o.height;for(;r&&r!==t&&r.parentNode;)if(s+a>(o=(r=r.parentNode).getBoundingClientRect()).bottom+1&&s>o.top||s+a<=o.top)return!1;let l=n.documentElement&&n.documentElement.clientHeight||0,c=null==(i=n.defaultView)?void 0:i.getComputedStyle(n.documentElement),u=(e="")=>e.endsWith("%")?parseFloat(e)*l/100:parseFloat(e)||0,d=u(null==c?void 0:c.scrollPaddingTop);return(s+a<=l-u(null==c?void 0:c.scrollPaddingBottom)+1||d>=s)&&s+a>=d}function r(e,t,n){if(i.Dom.isHTMLElement(e)&&!o(e,t,n)){if(t.clientHeight!==t.scrollHeight){let n=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<n?n:e.offsetTop}o(e,t,n)||e.scrollIntoView({block:"nearest"})}}},76078:function(e,t,n){n.d(t,{$$:function(){return d},resolveElement:function(){return p}});var i=n(82758),o=n(2748),r=n(4510),s=n(70799),a=n(87058),l=n(29960),c=n(89890);let u=1;function d(e,t){let n;if(!i.IS_ES_NEXT&&/:scope/.test(e)&&i.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let i=t.id,o=i||"_selector_id_"+String(Math.random()).slice(2)+ ++u;e=e.replace(/:scope/g,"#"+o),i||t.setAttribute("id",o),n=t.parentNode.querySelectorAll(e),i||t.removeAttribute("id")}else n=t.querySelectorAll(e);return[].slice.call(n)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let n=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(n.length>1?"["+((0,r.toArray)(n).indexOf(e)+1)+"]":"")};function p(e,t){let n=e;if((0,s.isString)(e))try{n=t.querySelector(e)}catch(t){throw(0,c.error)('String "'+e+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!o.Dom.isElement(n)||!n.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return n}n.d(t,["cssPath",0,e=>{if(!o.Dom.isElement(e))return null;let t=[],n=e;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let e=n.nodeName.toLowerCase();if(n.id){e+="#"+n.id,t.unshift(e);break}{let t=n,i=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&i++;while(t);e+=":nth-of-type("+i+")"}t.unshift(e),n=n.parentNode}return t.join(" > ")},"getXPathByElement",0,h,"refs",0,e=>{"container"in e&&(e=e.container);let t={};return o.Dom.each(e,e=>{if(o.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let n=(0,l.attr)(e,"-ref");n&&(0,s.isString)(n)&&(t[(0,a.camelCase)(n)]=e,t[n]=e)}}),t}])},3703:function(e,t,n){n.d(t,{set:function(){return l}});var i=n(68345),o=n(29807),r=n(72430),s=n(70799),a=n(69175);function l(e,t,n){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let c=n;for(let e=0;e<l.length-1;e+=1){let t=l[e];(0,i.isArray)(c[t])||(0,r.isPlainObject)(c[t])||(c[t]=(0,o.isNumeric)(l[e+1])?[]:{}),c=c[t]}c&&(c[l[l.length-1]]=t)}},50535:function(e,t,n){n.d(t,{LimitedStack:function(){return i}});class i{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,n){n.d(t,{call:function(){return a},callPromise:function(){return u},callThis:function(){return l},getPropertyDescriptor:function(){return d},markOwner:function(){return c}});var i=n(14773),o=n(86068),r=n(29960),s=n(86583);function a(e,...t){return e(...t)}function l(e,t,...n){return e.apply(t,n)}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,i.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}function d(e,t){let n;do n=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!n&&e);return n}n.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 n=[];for(let t in e)n.push(t);return n},"loadImage",0,(e,t)=>t.async.promise((n,i)=>{let o=new Image,r=()=>{t.e.off(o),null==i||i()},s=()=>{t.e.off(o),n(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),"memorizeExec",0,(e,t,{control:n},i)=>{var r;let a=`button${n.command}`,l=null!=(r=n.args&&n.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),i&&(l=i(l)),e.execCommand(n.command,!1,null!=l?l:void 0)}])},31359:function(e,t,n){n.d(t,{init:function(){return s}});var i=n(82758),o=n(60132),r=n(14041);function s(e,t,n,s,a,l,c){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!i.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{i.IS_PROD}),s.styles&&(c(e,t,"style").innerHTML=s.styles)}},14041:function(e,t,n){n.d(t,{loadExtras:function(){return d},loadStyle:function(){return c}});var i=n(82758),o=n(12475),r=n(63799),s=n(89672);function a(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}let l=new Set;function c(e,t){var n;return(n=function*(){let n=u(e,t,!1);if(!l.has(n))return l.add(n),(0,r.appendStyleAsync)(e,n)},function(){var e=this,t=arguments;return new Promise(function(i,o){var r=n.apply(e,t);function s(e){a(r,i,o,s,l,"next",e)}function l(e){a(r,i,o,s,l,"throw",e)}s(void 0)})})()}function u(e,t,n){t=(0,o.kebabCase)(t);let i=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+i+"."+(n?"js":"css")}function d(e,t,n,o){try{let i=n.filter(t=>!e.has((0,s.normalizeName)(t.name)));i.length&&i.map(e=>{let n=e.url||u(t,e.name,!0);return(0,r.appendScriptAsync)(t,n).then(o).catch(()=>null)})}catch(e){if(!i.IS_PROD)throw e}}},48591:function(e,t,n){n.d(t,{makeInstance:function(){return r}});var i=n(82758),o=n(23282);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(n){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!i.IS_PROD)throw e}return null}},89672:function(e,t,n){n.d(t,{normalizeName:function(){return o}});var i=n(12475);function o(e){return(0,i.kebabCase)(e).toLowerCase()}},50911:function(e,t,n){n.d(t,{Plugin:function(){return i.Plugin}});var i=n(20356);n(41876)},41876:function(e,t,n){n.d(t,{PluginSystem:function(){return p}});var i=n(82758),o=n(57012),r=n(46559),s=n(68345),a=n(60132),l=n(70799),c=n(31359),u=n(14041),d=n(48591),h=n(89672);class p{get size(){return this.__items.size}add(e,t){this.__items.set((0,h.normalizeName)(e),t),o.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((n,i)=>{(!e||e.has(i))&&t.push([i,n])}),t}__init(e){let{extraList:t,disableList:n,filter:o}={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(o).forEach(([i,o])=>{if(n.has(i)||p.has(i))return;let r=null==o?void 0:o.requires;if(r&&(0,s.isArray)(r)&&r.length){if(r.some(e=>n.has(e)))return;if(!r.every(e=>p.has(e)))return void m.add(i)}t=!0;let a=(0,d.makeInstance)(e,o);if(!a){p.set(i,null),m.delete(i);return}(0,c.init)(e,i,o,a,p,m,this.opts.getContainer),f[i]=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 n=f[t];(0,a.isDestructable)(n)&&n.destruct(e),delete f[t]}),delete e.__plugins}),i.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let n=()=>{t(),o.eventEmitter.off(`plugin:${e}:ready`,n)};o.eventEmitter.on(`plugin:${e}:ready`,n)})}constructor(e){this.opts=e,this.__items=new Map}}},20356:function(e,t,n){n.d(t,{Plugin:function(){return a}});var i=n(91907),o=n(65478),r=n(19306),s=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class a extends i.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(i.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(i.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([o.autobind],a.prototype,"__afterPluginSystemInit",null),s([o.autobind],a.prototype,"__afterInit",null),s([o.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,n){n.d(t,{Ajax:function(){return p}});var i=n(8884),o=n(82758),r=n(45219),s=n(21537),a=n(89890),l=n(6441);n(57459);var c=n(98582);function u(e){var t,n;function i(t,n){try{var r=e[t](n),s=r.value,a=s instanceof h;Promise.resolve(a?s.v:s).then(function(n){if(a){var l="return"===t?"return":"next";if(!s.k||n.done)return i(l,n);n=e[l](n).value}o(r.done?"return":"normal",n)},function(e){i("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise(function(r,s){var a={key:e,arg:o,resolve:r,reject:s,next:null};n?n=n.next=a:(t=n=a,i(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}function d(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function h(e,t){this.v=e,this.k=t}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)};class p{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 o.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}__hasAnswerEnvelope(){let{xhr:e}=this;if(e.responseType&&"text"!==e.responseType)return!1;let t=e.responseText;if(!t||"{"!==t[0])return!1;try{let e=JSON.parse(t);return(0,s.isPlainObject)(e)&&"success"in e}catch(e){return!1}}send(){this.__activated=!0;let{xhr:e,o:t}=this,n=this.prepareRequest();return this.__async.promise((i,o)=>{var r;return(r=function*(){var r;let l=()=>{this.__isFulfilled=!0,o(a.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,i(new c.Response(n,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=u,e.onabort=()=>{this.__isFulfilled=!0,o(a.abort("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,n;let i=0;e.lengthComputable&&(i=e.loaded/e.total*100),null==(n=(t=this.options).onProgress)||n.call(t,i)},e.onreadystatechange=()=>{var n,i;null==(i=(n=this.options).onProgress)||i.call(n,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)||this.__hasAnswerEnvelope()?u():e.statusText&&(this.__isFulfilled=!0,o(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:d,data:h,method:p}=n;e.open(p,d,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:f}=t;(0,s.isFunction)(f)&&(f=yield 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)},function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function s(e){d(o,n,i,s,a,"next",e)}function a(e){d(o,n,i,s,a,"throw",e)}s(void 0)})}).call(this)})}stream(){var e;return(e=function*(){var e,t;this.__activated=!0;let{xhr:n,o:i}=this,o=this.prepareRequest(),r=0,l="",c=[],u=null,d=!1,p=null,f=()=>{if(u){let e=u;u=null,e()}},m=e=>{var t;let i=n.responseText;l+=i.substring(r),r=i.length;let o=l.split("\n\n");for(let n of(l=e?"":null!=(t=o.pop())?t:"",o)){let e=n.trim();if(!e)continue;let t=[];for(let n of e.split("\n"))n.startsWith("data: ")?t.push(n.slice(6)):n.startsWith("data:")&&t.push(n.slice(5));t.length&&c.push(t.join("\n"))}f()};n.onprogress=()=>m(!1),n.onload=()=>{m(!0),d=!0,this.__isFulfilled=!0,f()},n.onerror=()=>{p=a.connection("Connection error"),d=!0,this.__isFulfilled=!0,f()},n.onabort=()=>{p=a.abort("Abort connection"),d=!0,this.__isFulfilled=!0,f()},n.withCredentials=null!=(e=i.withCredentials)&&e;let{url:g,data:b,method:v}=o;n.open(v,g,!0),i.contentType&&n.setRequestHeader&&n.setRequestHeader("Content-type",i.contentType);let{headers:y}=i;(0,s.isFunction)(y)&&(y=yield new h(y.call(this),0)),y&&n.setRequestHeader&&Object.keys(y).forEach(e=>{n.setRequestHeader(e,y[e])}),n.send(b?this.__buildParams(b):void 0);try{for(;;)if(c.length>0)yield c.shift();else if(d)break;else yield(t=new Promise(e=>{u=e}),new h(t,0))}finally{this.__isFulfilled||this.abort()}if(p)throw p},function(){return new u(e.apply(this,arguments))}).call(this)}prepareRequest(){if(!this.o.url)throw a.error("Need URL for AJAX request");let e=this.o.url,t=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&t&&(0,s.isPlainObject)(t)){let n=e.indexOf("?");if(-1!==n){let i=(0,s.parseQuery)(e.substring(n));e=e.substring(0,n)+"?"+(0,s.buildQuery)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({},i,t))}else e+="?"+(0,s.buildQuery)(this.o.data)}let i={url:e,method:n,data:t};return p.log.splice(100),p.log.push(i),i}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=l.Config.prototype.defaultAjaxOptions){this.__async=new i.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,s.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}p.log=[],function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([r.autobind],p.prototype,"destruct",null)},57459:function(e,t,n){n(6441).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},41601:function(e,t,n){n.d(t,{Ajax:function(){return i.Ajax},Response:function(){return o.Response}});var i=n(54079),o=n(98582)},98582:function(e,t,n){function i(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var s=e.apply(t,n);function a(e){i(s,o,r,a,l,"next",e)}function l(e){i(s,o,r,a,l,"throw",e)}a(void 0)})}}n.d(t,{Response:function(){return r}});class r{get url(){return this.request.url}json(){return o(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return o(function*(){return this.body}).call(this)}constructor(e,t,n,i){this.request=e,this.status=t,this.statusText=n,this.body=i}}},79505:function(e,t,n){n.d(t,{composedRanges:function(){return o}});var i=n(27613);function o(e,t){let n=e.getComposedRanges;if(!(0,i.isFunction)(n))return null;for(let i of[[{shadowRoots:[t]}],[t]]){let o;try{o=n.apply(e,i)}catch(e){continue}if(function(e,t){return Array.isArray(e)&&e.length>0&&e.every(e=>{var n;return(n=e.startContainer)===t||t.contains(n)})}(o,t))return o}return null}},45124:function(e,t,n){n.d(t,{composedRanges:function(){return s.composedRanges},cursorInTheEdgeOfString:function(){return c},findCorrectCurrentNode:function(){return u},isMoved:function(){return a.isMoved},moveNodeInsideStart:function(){return l.moveNodeInsideStart}});var i=n(82758),o=n(2748),r=n(49055),s=n(79505),a=n(12604),l=n(26716);function c(e,t,n,o){var s;let a=(null==(s=e.nodeValue)?void 0:s.length)?e.nodeValue:"";if(o&&(0,r.trimInvEnd)(a).length>t)return!0;let l=(0,i.INVISIBLE_SPACE_REG_EXP_START)().exec(a);return n&&(l&&l[0].length<t||!l&&t>0)}function u(e,t,n,i,r,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],n=!0),e&&i&&!o.Dom.isText(e)){if(!n&&o.Dom.isText(e.previousSibling))e=e.previousSibling;else if(r){let t=e=>n?e.lastChild:s(e),i=t(e);for(;i;){if(i&&o.Dom.isText(i)){e=i;break}i=t(i)}}}if(e&&!i&&!o.Dom.isText(e)){let t=e,n=e;do t=t.firstChild,n=n.lastChild;while(t&&n&&!o.Dom.isText(t));t===n&&t&&o.Dom.isText(t)&&(e=t)}return{node:e,rightMode:n}}n(43463)},12604:function(e,t,n){n.d(t,{isMoved:function(){return i}});function i(e,t){let{s:n}=e;if(!t||!n.isInsideArea)return!1;let{range:i}=n;return i.startContainer!==t.startContainer||i.startOffset!==t.startOffset||i.endContainer!==t.endContainer||i.endOffset!==t.endOffset}},26716:function(e,t,n){n.d(t,{moveNodeInsideStart:function(){return r}});var i=n(82758),o=n(2748);function r(e,t,n){let r=e=>{var t;return!o.Dom.isEmptyTextNode(e)||!!(null==(t=e.nodeValue)?void 0:t.includes(i.NBSP_SPACE))},s=o.Dom.findSibling(t,n,r),a=o.Dom.findSibling(t,!n,r);for(;o.Dom.isElement(s)&&!o.Dom.isTag(s,i.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(s,e.editor)&&(!a||!o.Dom.closest(t,o.Dom.isElement,e.editor));)n||!s.firstChild?o.Dom.append(s,t):o.Dom.before(s.firstChild,t),s=o.Dom.sibling(t,n),a=o.Dom.sibling(t,!n)}},43463:function(e,t,n){n.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return o}});var i=n(2748);function o(e,t,n){let o=e;for(;o&&o!==n&&!(i.Dom.findSibling(o,t)||i.Dom.isBlock(o.parentElement));)(o=o.parentElement)&&o!==n&&(t?i.Dom.before(o,e):i.Dom.after(o,e))}},59242:function(e,t,n){n.d(t,{CHANGE:function(){return"change"},CommitStyle:function(){return o.CommitStyle},REPLACE:function(){return r.REPLACE},Selection:function(){return i.Selection},UNWRAP:function(){return"unwrap"},WRAP:function(){return"wrap"}});var i=n(79348),o=n(25639),r=n(77361)},79348:function(e,t,n){n.d(t,{Selection:function(){return f}});var i=n(82758),o=n(65478),r=n(2748),s=n(21537),a=n(27613),l=n(25726),c=n(38837),u=n(43463),d=n(25639),h=n(45124),p=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class f{get j(){return this.jodit}errorNode(e){if(!r.Dom.isNode(e))throw(0,s.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){let{shadowRoot:e}=this.j.o;if(e){if((0,a.isFunction)(e.getSelection))return e.getSelection();let t=this.__composedSelection(e);if(t)return t}return this.win.getSelection()}__composedSelection(e){let t=this.win.getSelection();if(!t)return null;let{anchorNode:n}=t;if(n&&r.Dom.isOrContains(e,n))return null;let i=(0,h.composedRanges)(t,e);if(!i)return null;let o=i.map(e=>{let t=this.createRange();return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),t}),s=o[0],l={rangeCount:o.length,getRangeAt:e=>o[e],isCollapsed:o.every(e=>e.collapsed),anchorNode:s?s.startContainer:null,anchorOffset:s?s.startOffset:0,focusNode:s?s.endContainer:null,focusOffset:s?s.endOffset:0,toString:()=>o.map(e=>e.toString()).join("")};return new Proxy(t,{get(e,t){if((0,a.isString)(t)&&t in l)return l[t];let n=Reflect.get(e,t,e);return(0,a.isFunction)(n)?n.bind(e):n}})}__nativeRangeCount(){var e,t,n,i;let{shadowRoot:o}=this.j.o;return o&&(0,a.isFunction)(o.getSelection)?null!=(t=null==(e=o.getSelection())?void 0:e.rangeCount)?t:0:null!=(i=null==(n=this.win.getSelection())?void 0:n.rangeCount)?i:0}get range(){let e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:e}=this;if(!(null==e?void 0:e.rangeCount))return!1;for(let t=0;t<e.rangeCount;t+=1)if(!r.Dom.isOrContains(this.area,e.getRangeAt(t).commonAncestorContainer))return!1;return!0}createRange(e=!1){let t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){let e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1){let n=e.getRangeAt(t);r.Dom.isOrContains(this.area,n.commonAncestorContainer)&&(n.deleteContents(),n.collapse(!0))}}clear(){var e,t;(null==(e=this.sel)?void 0:e.rangeCount)&&(null==(t=this.sel)||t.removeAllRanges())}removeNode(e){if(!r.Dom.isOrContains(this.j.editor,e,!0))throw(0,s.error)("Selection.removeNode can remove only editor's children");r.Dom.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){var n,i,o,s;try{let a=this.createRange(),l=null==(i=(n=this.doc).caretPositionFromPoint)?void 0:i.call(n,e,t),c=l?null:null==(s=(o=this.doc).caretRangeFromPoint)?void 0:s.call(o,e,t);if(l)a.setStart(l.offsetNode,l.offset);else{if(!c)return!1;a.setStart(c.startContainer,c.startOffset)}if(!r.Dom.isOrContains(this.area,a.startContainer))return!1;return a.collapse(!0),this.removeMarkers(),this.selectRange(a),!0}catch(e){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,s.$$)("span[data-"+i.MARKER_CLASS+"]",this.area)}removeMarkers(){r.Dom.safeRemove(...this.markers)}marker(e=!1,t){var n;let o=null;t&&(o=t.cloneRange()).collapse(e);let a=this.j.createInside.span();if(a.id=i.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),(0,s.css)(a,{lineHeight:"0",display:"none"}),r.Dom.markTemporary(a),(0,s.attr)(a,"data-"+i.MARKER_CLASS,e?"start":"end"),r.Dom.append(a,this.j.createInside.text(i.INVISIBLE_SPACE)),o&&r.Dom.isOrContains(this.area,e?o.startContainer:o.endContainer)){let{startContainer:e,startOffset:t}=o;r.Dom.isText(e)&&0===t?r.Dom.before(e,a):r.Dom.isText(e)&&t===(null==(n=e.nodeValue)?void 0:n.length)?r.Dom.after(e,a):o.insertNode(a)}return a}restore(){var e,t;let n=this.markers,o=new Map(n.map(e=>[e.id,e])),a=[],l=!1;for(let c=0;c<n.length;c+=1){let u=n[c];if("start"!==(0,s.attr)(u,"data-"+i.MARKER_CLASS))continue;l||(l="true"===(0,s.attr)(u,"data-selection-backward"));let d=(0,s.attr)(u,"data-selection-end"),h=d?o.get(d):void 0;!d&&n[c+1]&&"end"===(0,s.attr)(n[c+1],"data-"+i.MARKER_CLASS)&&(h=n[c+1]);let p=this.createRange();if(h)p.setStartAfter(u),p.setEndBefore(h);else{let n=u.previousSibling;r.Dom.isText(n)?p.setStart(n,null!=(t=null==(e=n.nodeValue)?void 0:e.length)?t:0):p.setStartBefore(u),p.collapse(!0)}a.push(p)}r.Dom.safeRemove(...n),a.length&&this.__selectRanges(a,l)}__isBackward(){let e=this.sel;return!!(e&&1===e.rangeCount&&!e.isCollapsed&&e.anchorNode===e.getRangeAt(0).endContainer&&e.anchorOffset===e.getRangeAt(0).endOffset)}__ranges(){let e=this.sel;return e?Array.from({length:e.rangeCount},(t,n)=>e.getRangeAt(n).cloneRange()):[]}fakes(){if(!this.isInsideArea)return[];let e=this.__isBackward(),t=this.__ranges(),n=t.map(e=>{let t=e.collapsed,n=e.cloneRange();n.collapse(!0);let i=this.j.createInside.fake();r.Dom.safeInsertNode(n,i),e.setStartBefore(i);let o=[i];if(t)e.collapse(!0);else{let t=e.cloneRange();t.collapse(!1);let n=this.j.createInside.fake();r.Dom.safeInsertNode(t,n),e.setEndAfter(n),o.push(n)}return o});return this.__fakeSelections.set(n[0][0],{pairs:n,backward:e}),this.__selectRanges(t,e),n[0]}restoreFakes(e){var t,n,i;if(!e.length)return;let o=this.__fakeSelections.get(e[0]);if(this.__fakeSelections.delete(e[0]),this.j.isInDestruct)return;let s=[];for(let a of null!=(t=null==o?void 0:o.pairs)?t:[e]){let e=a.filter(e=>e.isConnected&&r.Dom.isOrContains(this.area,e,!0));if(!e.length)continue;let[t,o]=e,l=this.createRange();for(let s of(l.setStartAfter(t),o?l.setEndBefore(o):l.collapse(!0),e))(null==(n=s.parentNode)?void 0:n.firstChild)!==(null==(i=s.parentNode)?void 0:i.lastChild)&&r.Dom.safeRemove(s);s.push(l)}s.length&&this.__selectRanges(s,null==o?void 0:o.backward)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let n=this.__isBackward(),i=[],o=t.rangeCount,a=[];for(let e=0;o>e;e+=1)if(a[e]=t.getRangeAt(e),!r.Dom.isOrContains(this.area,a[e].commonAncestorContainer))return[];for(let e=0;o>e;e+=1)if(a[e].collapsed){let t=this.marker(!0,a[e]);i[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,a[e]),r=this.marker(!1,a[e]);o>1&&(0,s.attr)(t,"data-selection-end",r.id),n&&(0,s.attr)(t,"data-selection-backward","true"),i[e]={startId:t.id,endId:r.id,collapsed:!1,startMarker:t.outerHTML,endMarker:r.outerHTML}}if(!e){t.removeAllRanges();for(let e=o-1;e>=0;--e){let n=this.area.querySelector("#"+i[e].startId);if(n){if(i[e].collapsed)a[e].setStartAfter(n),a[e].collapse(!0);else if(a[e].setStartBefore(n),i[e].endId){let t=this.area.querySelector("#"+i[e].endId);t&&a[e].setEndAfter(t)}try{t.addRange(a[e].cloneRange())}catch(e){}}}}return i}focus(e={preventScroll:!0}){var t,n;if(!this.isFocused()){let i=(0,s.getScrollParent)(this.j.container),o=null==i?void 0:i.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),o&&(null==i?void 0:i.scrollTo)&&i.scrollTo(0,o);let a=this.sel,l=(null==a?void 0:a.rangeCount)?null==a?void 0:a.getRangeAt(0):null;if(!l||!r.Dom.isOrContains(this.area,l.startContainer)){let e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}return this.j.editorIsActive||null==(n=null==(t=this.j)?void 0:t.events)||n.fire("focus"),!0}return!1}isCollapsed(){let e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){let e=this.doc.activeElement;return!!(this.doc.hasFocus&&this.doc.hasFocus()&&e&&(this.area===e||r.Dom.isHTMLElement(e)&&e.isContentEditable&&r.Dom.isOrContains(this.area,e)))}current(e=!0){if(this.j.getRealMode()!==i.MODE_WYSIWYG)return null;let t=this.sel;if(!t||0===t.rangeCount)return null;let n=t.getRangeAt(0),o=n.startContainer,s=!1;if(!r.Dom.isOrContains(this.area,o))return null;if(r.Dom.isTag(o,"br")&&t.isCollapsed)return o;if(!r.Dom.isText(o)){let i=(0,h.findCorrectCurrentNode)(o,n,s,t.isCollapsed,e,e=>s?e.lastChild:e.firstChild);o=i.node,s=i.rightMode}return o&&r.Dom.isOrContains(this.area,o)?o:null}insertNode(e,t=!0,n=!0){this.errorNode(e),this.j.e.fire("safeHTML",e);let o=r.Dom.isFragment(e)?e.lastChild:e;if(!o||this.j.isInDestruct)return;!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let a=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),!(o=r.Dom.isFragment(e)?e.lastChild:e)||this.j.isInDestruct)return;if(a&&a.rangeCount){let t=a.getRangeAt(0),n=r.Dom.isBlock(e),o=n?e:e.firstChild;r.Dom.isOrContains(this.area,t.commonAncestorContainer)?r.Dom.safeInsertNode(t,e):r.Dom.append(this.area,e),[()=>null==o?void 0:o.previousSibling,()=>null==o?void 0:o.previousSibling,()=>{var e;return null==(e=null==o?void 0:o.previousSibling)?void 0:e.lastChild},()=>n?e.nextSibling:null].forEach(e=>{var t;let n=e();n&&r.Dom.isText(n)&&0===(null!=(t=n.nodeValue)?t:"").replace(i.INVISIBLE_SPACE_REG_EXP(),"").length&&r.Dom.safeRemove(n)})}else r.Dom.append(this.area,e);let n=e=>{if(r.Dom.isBlock(e)){let t=e.lastChild;if(t)return n(t)}this.setCursorAfter(e)};t&&(r.Dom.isFragment(e)?o&&n(o):n(e)),this.j.o.scrollToPastedContent&&(0,s.scrollIntoViewIfNeeded)(null!=o?o:e,this.j.editor,this.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",r.Dom.isFragment(e)?o:e)}insertHTML(e,t=!0){if(""===e)return;let n=this.j.createInside.div(),i=this.j.createInside.fragment();!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),r.Dom.isNode(e)?r.Dom.append(n,e):n.innerHTML=e.toString(),!this.j.isEditorMode()&&!1===this.j.e.fire("insertHTML",n.innerHTML)||n.lastChild&&(r.Dom.moveContent(n,i),this.insertNode(i,t,!1),this.j.__imdSynchronizeValues())}insertImage(e,t=null,n=null){let i=(0,a.isString)(e)?this.j.createInside.element("img"):e;if((0,a.isString)(e)&&(0,s.attr)(i,"src",e),null!=n){let e=n.toString();e&&"auto"!==e&&0>String(e).indexOf("px")&&0>String(e).indexOf("%")&&(e+="px"),(0,s.attr)(i,"width",e)}t&&"object"==typeof t&&(0,s.css)(i,t);let{imageDefaultAlign:o}=this.j.o;o&&"normal"!==o&&(0,l.hAlignElement)(i,o,(0,l.getAlignClasses)(this.j,i));let r=()=>{(i.naturalHeight<i.offsetHeight||i.naturalWidth<i.offsetWidth)&&(0,s.css)(i,{width:"",height:""}),i.removeEventListener("load",r)};this.j.e.on(i,"load",r),i.complete&&r(),this.insertNode(i),this.j.e.fire("afterInsertImage",i)}eachSelection(e){let t=new Set;for(let n of this.__ranges())r.Dom.isOrContains(this.area,n.commonAncestorContainer)&&this.__eachRange(n,n=>{t.has(n)||(t.add(n),e(n))})}__eachRange(e,t){var n;let o=e.commonAncestorContainer;r.Dom.isHTMLElement(o)||(o=o.parentElement);let l=[],c=e.startOffset,u=o.childNodes.length,d=e.startContainer===this.area?o.childNodes[c<u?c:u-1]:e.startContainer,h=e.endContainer===this.area?o.childNodes[e.endOffset-1]:e.endContainer;r.Dom.isText(d)&&d===e.startContainer&&e.startOffset===(null==(n=d.nodeValue)?void 0:n.length)&&d.nextSibling&&(d=d.nextSibling),r.Dom.isText(h)&&h===e.endContainer&&0===e.endOffset&&h.previousSibling&&(h=h.previousSibling);let p=e=>{!e||e===o||r.Dom.isEmptyTextNode(e)||(0,a.isMarker)(e)||l.push(e)};p(d),d!==h&&r.Dom.isOrContains(o,d,!0)&&r.Dom.find(d,e=>(p(e),e===h||e&&e.contains&&e.contains(h)),o,!0,!1);let f=e=>{if(r.Dom.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(e.childNodes).forEach(f);if(r.Dom.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{let t=this.j.createInside.text(i.INVISIBLE_SPACE);r.Dom.append(e,t),e=t}t(e)}};0===l.length&&(r.Dom.isEmptyTextNode(d)&&l.push(d),(null==d?void 0:d.firstChild)&&l.push(d.firstChild)),l.forEach(f)}cursorInTheEdge(e,t,n=null){let i=!e,o=this.sel,s=(null==o?void 0:o.rangeCount)?o.getRangeAt(0):null;if(!s)return null;let a=e?s.startContainer:s.endContainer,l=e?s.startOffset:s.endOffset;if(null!=n||(n=a),!r.Dom.isOrContains(t,a)||!r.Dom.isOrContains(t,n))return null;let c=e=>!!(e&&!r.Dom.isTag(e,"br")&&!r.Dom.isEmptyTextNode(e)&&!r.Dom.isTemporary(e)&&!(r.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(r.Dom.isText(a)){if((0,h.cursorInTheEdgeOfString)(a,l,e,i))return!1}else{let e=a.childNodes,t=i?e.length:l;for(let n=i?l:0;t>n;n+=1)if(c(e[n]))return!1}let u=n;for(;u&&u!==t;){let t=r.Dom.sibling(u,e);if(!t){u=u.parentNode;continue}if(c(u=t))return!1}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){var n,i;if(this.errorNode(e),!r.Dom.isOrContains(this.area,e,!0))throw(0,s.error)("Node element must be in editor");let o=this.createRange(),a=null;return r.Dom.isText(e)?t?o.setStart(e,0):o.setEnd(e,null!=(i=null==(n=e.nodeValue)?void 0:n.length)?i:0):(a=this.j.createInside.fake(),t?o.setStartBefore(e):o.setEndAfter(e),o.collapse(t),r.Dom.safeInsertNode(o,a),o.selectNode(a)),o.collapse(t),this.selectRange(o),a}setCursorIn(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let n=this.createRange(),o=e,a=e;do{if(r.Dom.isText(o)||r.Dom.isTag(o,i.INSEPARABLE_TAGS))break;a=o,o=t?o.firstChild:o.lastChild}while(o);if(!o){let e=this.j.createInside.text(i.INVISIBLE_SPACE);r.Dom.isTag(a,i.INSEPARABLE_TAGS)?o=a:(r.Dom.append(a,e),a=e)}let l=o||a;return r.Dom.isTag(l,i.INSEPARABLE_TAGS)?t||r.Dom.isTag(l,"br")?n.setStartBefore(l):n.setEndAfter(l):n.selectNodeContents(l),n.collapse(t),this.selectRange(n),a}selectRange(e,t=!0){return this.__selectRanges([e],!1,t)}__selectRanges(e,t=!1,n=!0){let i=this.sel;if(n&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),i){if(i.removeAllRanges(),e.forEach(e=>i.addRange(e)),t&&1===e.length){let t=e[0];i.setBaseAndExtent(t.endContainer,t.endOffset,t.startContainer,t.startOffset)}else if(1===e.length&&!this.__nativeRangeCount()&&(0,a.isFunction)(i.setBaseAndExtent)){let t=e[0];i.setBaseAndExtent(t.startContainer,t.startOffset,t.endContainer,t.endOffset)}}return this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let n=!t&&this.__closestNotEditable(e)||e,i=this.createRange();return i[t||n===this.area?"selectNodeContents":"selectNode"](n),this.selectRange(i)}__closestNotEditable(e){let{area:t}=this,n=null,i=e.parentNode;for(;i&&i!==t&&t.contains(i);){if(r.Dom.isElement(i)){let e=i.getAttribute("contenteditable");if("true"===e)break;"false"===e&&(n=i)}i=i.parentNode}return n}get html(){let e=this.sel;if(e&&e.rangeCount>0){let e=this.j.createInside.div();return this.__ranges().forEach(t=>r.Dom.append(e,t.cloneContents())),e.innerHTML}return""}__wrapSelectionFragments(e){this.__splitSelectionBoundaries(e);let t=e.commonAncestorContainer;return(r.Dom.isText(t)&&(t=t.parentNode),t)?this.__wrapSelectionRuns(this.__collectContainedNodes(t,e)):[]}__splitSelectionBoundaries(e){var t,n,i,o;let{endContainer:s,endOffset:a}=e;r.Dom.isText(s)&&a>0&&a<(null!=(n=null==(t=s.nodeValue)?void 0:t.length)?n:0)&&s.splitText(a);let{startContainer:l,startOffset:c}=e;if(r.Dom.isText(l)&&c>0&&c<(null!=(o=null==(i=l.nodeValue)?void 0:i.length)?o:0)){let t=l.splitText(c);e.setStart(t,0)}this.__normalizeRangeBoundary(e,!0),this.__normalizeRangeBoundary(e,!1)}__normalizeRangeBoundary(e,t){var n,i;let o=t?e.startContainer:e.endContainer;if(!r.Dom.isText(o))return;let s=t?e.startOffset:e.endOffset,a=null!=(i=null==(n=o.nodeValue)?void 0:n.length)?i:0;0===s?t?e.setStartBefore(o):e.setEndBefore(o):s>=a&&(t?e.setStartAfter(o):e.setEndAfter(o))}__collectContainedNodes(e,t,n=this.createRange()){let i=[];return(0,s.toArray)(e.childNodes).forEach(e=>{this.__isFullyContained(t,e,n)?i.push(e):e.childNodes.length&&t.intersectsNode(e)&&i.push(...this.__collectContainedNodes(e,t,n))}),i}__isFullyContained(e,t,n){return n.selectNode(t),0>=e.compareBoundaryPoints(Range.START_TO_START,n)&&e.compareBoundaryPoints(Range.END_TO_END,n)>=0}__wrapSelectionRuns(e){let t=[],n=[],i=()=>{n.length&&(t.push(this.__wrapRunInFont(n)),n=[])};return e.forEach(e=>{r.Dom.isElement(e)&&this.__isOrContainsBlock(e)?(i(),t.push(...this.__wrapSelectionRuns((0,s.toArray)(e.childNodes)))):(n.length&&n[n.length-1].parentNode!==e.parentNode&&i(),n.push(e))}),i(),t}__isOrContainsBlock(e){return!!r.Dom.isBlock(e)||(0,s.toArray)(e.childNodes).some(e=>this.__isOrContainsBlock(e))}__wrapRunInFont(e){let t=this.j.createInside.element("font"),[n]=e;return r.Dom.before(n,t),e.forEach(e=>r.Dom.append(t,e)),t}*wrapInTagGen(e){var t;if((null==(t=this.sel)?void 0:t.rangeCount)&&!this.isInsideArea)return;if(this.isCollapsed()){let t=this.jodit.createInside.element("font",i.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&r.Dom.append(t,e[0]);try{yield t}finally{r.Dom.unwrap(t)}return}let n=this.__ranges().flatMap(e=>this.__wrapSelectionFragments(e));try{for(let e of n){if(this.j.isInDestruct||!r.Dom.isOrContains(this.area,e,!0))continue;let{firstChild:t,lastChild:n}=e;if(t&&t===n&&(0,a.isMarker)(t)){r.Dom.unwrap(e);continue}t&&(0,a.isMarker)(t)&&r.Dom.before(e,t),n&&(0,a.isMarker)(n)&&r.Dom.after(e,n),yield e,r.Dom.unwrap(e)}}finally{n.forEach(e=>r.Dom.unwrap(e))}}wrapInTag(e){let t=[];for(let n of this.wrapInTagGen())try{if(n.firstChild&&n.firstChild===n.lastChild&&(0,a.isMarker)(n.firstChild))continue;(0,a.isFunction)(e)?e(n):t.push(r.Dom.replace(n,e,this.j.createInside))}finally{let e=n.parentNode;e&&(r.Dom.unwrap(n),r.Dom.isEmpty(e)&&r.Dom.unwrap(e))}return t}commitStyle(e){(0,c.assert)((0,s.size)(e)>0,"Need to pass at least one option"),new d.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed()||!this.isInsideArea||!r.Dom.isOrContains(this.area,e,!0)||!r.Dom.isOrContains(e,this.range.startContainer)||t&&!r.Dom.isOrContains(e,t,!0))return null;let n=this.createRange(),o=this.range;n.setStartBefore(e);let s=this.cursorOnTheRight(e,t),a=this.cursorOnTheLeft(e,t),l=this.j.createInside.element("br"),u=this.j.createInside.fake(),d=u.cloneNode();try{if(s||a){t?r.Dom.before(t,l):r.Dom.safeInsertNode(o,l);let e=(e,t)=>{let n=t(e);for(;n;){let e=t(n);if(n&&(r.Dom.isTag(n,"br")||r.Dom.isEmptyTextNode(n)))r.Dom.safeRemove(n);else break;n=e}};e(l,e=>e.nextSibling),e(l,e=>e.previousSibling),r.Dom.after(l,d),r.Dom.before(l,u),s?(n.setEndBefore(l),o.setEndBefore(l)):(n.setEndAfter(l),o.setEndAfter(l))}else n.setEnd(o.startContainer,o.startOffset);let h=n.extractContents(),p=e=>r.Dom.each(e,e=>r.Dom.isEmptyTextNode(e)&&r.Dom.safeRemove(e));(0,c.assert)(e.parentNode,"Splitting fails");try{if(p(h),p(e),r.Dom.before(e,h),!t&&s&&(null==l?void 0:l.parentNode)){let e=this.createRange();e.setStartBefore(l),this.selectRange(e)}}catch(e){if(!i.IS_PROD)throw e}let f=e=>{let t=null==e?void 0:e.parentNode;t&&t.firstChild===t.lastChild&&r.Dom.append(t,l.cloneNode())};f(u),f(d)}finally{r.Dom.safeRemove(u),r.Dom.safeRemove(d)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed()||!this.isInsideArea)return this;let e=this.__isBackward(),t=this.__ranges().map(e=>this.__expandRange(e));return this.__selectRanges(t,e),this}__expandRange(e){let t=e.cloneRange();if(!r.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return e;let n=t=>{let n=this.j.createInside.fake(),i=e.cloneRange();return i.collapse(t),r.Dom.safeInsertNode(i,n),(0,u.moveTheNodeAlongTheEdgeOutward)(n,t,this.j.editor),n},i=n(!0),o=n(!1);t.setStartAfter(i),t.setEndBefore(o);let a=r.Dom.findSibling(i,!1),l=r.Dom.findSibling(o,!0);if(a!==l){let e=r.Dom.isElement(a)&&r.Dom.isOrContains(a,o),n=!e&&r.Dom.isElement(l)&&r.Dom.isOrContains(l,i);if(e||n){let n=e?a:l,s=n;for(;r.Dom.isElement(n);)(n=e?n.firstElementChild:n.lastElementChild)&&(e?r.Dom.isOrContains(n,o):r.Dom.isOrContains(n,i))&&(s=n);e?t.setStart(s,0):t.setEnd(s,s.childNodes.length)}}if(r.Dom.safeRemove(i,o),t.collapsed)throw(0,s.error)("Selection is collapsed");return t}constructor(e){this.jodit=e,this.__fakeSelections=new WeakMap,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}p([o.autobind],f.prototype,"createRange",null),p([o.autobind],f.prototype,"focus",null),p([o.autobind],f.prototype,"setCursorAfter",null),p([o.autobind],f.prototype,"setCursorBefore",null),p([o.autobind],f.prototype,"setCursorIn",null)},32526:function(e,t,n){n.d(t,{extractSelectedPart:function(){return s}});var i=n(2748),o=n(78116),r=n(37790);function s(e,t,n){let i=n.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;i.setStartBefore(e),i.setEndBefore(r),a(e,i,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;i.setStartAfter(s),i.setEndAfter(e),a(e,i,!1)}function a(e,t,n){let o=t.extractContents();i.Dom.isEmpty(o)&&o.firstChild&&i.Dom.unwrap(o.firstChild),e.parentNode&&(0,r.call)(n?i.Dom.before:i.Dom.after,e,o)}},49996:function(e,t,n){n.d(t,{FiniteStateMachine:function(){return s}});var i=n(82758),o=n(70799),r=n(38837);class s{setState(e){(0,r.assert)(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(e,t){let n=this.transitions[this.getState()][e];if(n){let e=n.call(this,t);return(0,r.assert)(e&&e!==t,"Action should return new value"),(0,r.assert)((0,o.isString)(e.next),"Value should contain the next state"),(0,r.assert)(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),i.IS_PROD||this.silent,e}throw Error(`invalid action: ${this.getState()}.${e.toString()}`)}constructor(e,t){this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}}},23738:function(e,t,n){n.d(t,{getSuitChild:function(){return s}});var i=n(2748),o=n(29136),r=n(97380);function s(e,t){let{firstChild:n}=t;for(;n&&!(0,o.isNormalNode)(n);)if(!(n=n.nextSibling))return null;return n&&!i.Dom.next(n,o.isNormalNode,t)&&(0,r.isSuitElement)(e,n,!1)?n:null}},44602:function(e,t,n){n.d(t,{getSuitParent:function(){return function e(t,n,s){var a;let{parentNode:l}=n;return l===s||!i.Dom.isHTMLElement(l)||i.Dom.next(n,o.isNormalNode,l)||i.Dom.prev(n,o.isNormalNode,l)?null:t.isElementCommit&&t.elementIsBlock&&!i.Dom.isBlock(l)?e(t,l,s):i.Dom.isTag(l,"li")&&!t.isElementCommit&&(null==(a=t.options.attributes)?void 0:a.style)||(0,r.isSuitElement)(t,l,!1)&&(!i.Dom.isBlock(l)||t.elementIsBlock)?l:t.isElementCommit&&!i.Dom.isBlock(l)?e(t,l,s):null}}});var i=n(2748),o=n(29136),r=n(97380)},22030:function(e,t,n){n.d(t,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return u}});var i=n(82758),o=n(2748),r=n(86068),s=n(3760),a=n(38837),l=n(41180);function c(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(n=>{let i=(0,l.css)(e,n,!0);return""===i&&(""===t[n]||null==t[n])||!(0,r.isVoid)(i)&&""!==i&&!(0,r.isVoid)(t[n])&&(0,s.normalizeCssValue)(n,t[n]).toString().toLowerCase()===i.toString().toLowerCase()}))}if(i.globalDocument){let e=i.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(c(e,{color:"red"}),"Style test"),(0,a.assert)(c(e,{fontSize:null}),"Style test"),(0,a.assert)(c(e,{fontSize:""}),"Style test")}function u(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(t=>""!==(0,l.css)(e,t,!0)))}if(i.globalDocument){let e=i.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(u(e,{color:"red"}),"Style test"),(0,a.assert)(!u(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!u(e,{border:"1px solid #ccc"}),"Style test")}},63687:function(e,t,n){n.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},WRAP_NODES:function(){return h.WRAP_NODES},extractSelectedPart:function(){return i.extractSelectedPart},getSuitChild:function(){return r.getSuitChild},getSuitParent:function(){return s.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},suitableClosest:function(){return l.suitableClosest},toggleAttributes:function(){return u.toggleAttributes},toggleOrderedList:function(){return c.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return h.wrap}});var i=n(32526),o=n(49996),r=n(23738),s=n(44602);n(22030);var a=n(64291);n(29136),n(94466);var l=n(97380),c=n(20199);n(82515);var u=n(44253),d=n(75882),h=n(19263);n(6980)},64291:function(e,t,n){n.d(t,{isInsideInvisibleElement:function(){return o}});var i=n(2748);function o(e,t){return!!i.Dom.closest(e,["style","script"],t)}},29136:function(e,t,n){n.d(t,{isNormalNode:function(){return r}});var i=n(2748),o=n(78116);function r(e){return!!(e&&!i.Dom.isEmptyTextNode(e)&&!i.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},94466:function(e,t,n){n.d(t,{elementsEqualAttributes:function(){return c},isSameAttributes:function(){return l}});var i=n(21496),o=n(43555),r=n(38837),s=n(29960),a=n(22030);function l(e,t){return!(0,i.size)(t)||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(n=>{var i;if("class"===n||"className"===n)return(null!=(i=String(t[n]).match(/[^\t\n\f\r ]+/g))?i:[]).every(t=>e.classList.contains(t));if("style"===n)return(0,a.hasSameStyle)(e,t[n]);let r=t[n];return(0,o.attr)(e,n)===(null==r?r:String(r))}))}function c(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>(0,s.attrRaw)(t,e.name)===e.value)}},97380:function(e,t,n){n.d(t,{isSuitElement:function(){return s},suitableClosest:function(){return a}});var i=n(2748),o=n(22030),r=n(29136);function s(e,t,n,a=!0){var l;if(!t||!(0,r.isNormalNode)(t))return!1;let{element:c,elementIsDefault:u,options:d}=e;if(i.Dom.isList(t)&&e.elementIsList)return!0;let h=i.Dom.isTag(t,c);return!!(h&&!(u&&n)||(null==(l=d.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,d.attributes.style):(0,o.hasSameStyleKeys)(t,d.attributes.style))&&!e.elementIsList)||!h&&!n&&u&&i.Dom.isInlineBlock(t)}function a(e,t,n){return i.Dom.closest(t,t=>s(e,t,!0,!1),n)}},20199:function(e,t,n){n.d(t,{toggleOrderedList:function(){return d}});var i=n(2748),o=n(21496),r=n(38837),s=n(32526),a=n(94466),l=n(44253),c=n(77361),u=n(82515);function d(e,t,n,r,s=!1){if(!t)return r;let f=t.parentElement;if(!f)return r;let m=n.e.fire(`${c._PREFIX}BeforeToggleList`,r,e,f);if(void 0!==m)return m;let g=n.e.fire.bind(n.e,`${c._PREFIX}AfterToggleList`);if("unwrap"!==r){let d="change"===(0,l.toggleAttributes)(e,t.parentElement,n,c.INITIAL,!0),m=i.Dom.isTag(f,e.element);if(m&&d&&r!==c.REPLACE&&function({options:{attributes:e}}){return!!(null==e?void 0:e.style)&&1===(0,o.size)(e)}(e)){let t;return(0,l.toggleAttributes)(e,f,n,"change"),g("change",(t=i.Dom.findSibling(f,!0),"change"===r&&i.Dom.isTag(t,e.element)&&(0,a.elementsEqualAttributes)(t,f)?(i.Dom.append(t,Array.from(f.childNodes)),i.Dom.safeRemove(f),t):f),e),"change"}if(m&&"change"===r)return"change";if(r===c.REPLACE||d||!m){let o;for(let r of s&&!m?Array.from(f.children).filter(e=>i.Dom.isLeaf(e)):[t])o=h(r,t=>(0,u.wrapList)(e,p(c.REPLACE,t,r,n,e),n));return g(c.REPLACE,o,e),c.REPLACE}}return g("unwrap",h(t,i=>p("unwrap",i,t,n,e)),e),"unwrap"}function h(e,t){let n=e.parentElement,o=e.nextElementSibling,r=i.Dom.isTag(n,"ol")?(parseInt(n.getAttribute("start")||"1",10)||1)+Array.from(n.children).indexOf(e):0,s=t(n),a=null==o?void 0:o.parentElement;return r&&i.Dom.isTag(a,"ol")&&(r>1?a.setAttribute("start",String(r)):a.removeAttribute("start")),s}function p(e,t,n,o,a){let l=o.e.fire(`${c._PREFIX}BeforeUnwrapList`,e,t,a);return l?((0,r.assert)(i.Dom.isHTMLElement(l),`${c._PREFIX}BeforeUnwrapList hook must return HTMLElement`),l):((0,s.extractSelectedPart)(t,n,o),(0,r.assert)(i.Dom.isHTMLElement(n.parentElement),"Element should be inside the list"),i.Dom.unwrap(n.parentElement),e===c.REPLACE)?n:i.Dom.replace(n,"br"!==o.o.enter.toLowerCase()?o.o.enter:o.createInside.fragment(),o.createInside)}},82515:function(e,t,n){n.d(t,{wrapList:function(){return a}});var i=n(2748),o=n(94466),r=n(44253),s=n(77361);function a(e,t,n){let a=n.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,t,e),l=null!=a?a:i.Dom.replace(t,"li",n.createInside),c=l.previousElementSibling,u=l.nextElementSibling,d=i.Dom.isTag(c,e.element)?c:null;return null!=d||(d=i.Dom.isTag(u,e.element)?u:null),i.Dom.isList(d)&&(0,o.isSameAttributes)(d,e.options.attributes)||(d=n.createInside.element(e.element),(0,r.toggleAttributes)(e,d,n,s.INITIAL),i.Dom.before(l,d)),c===d?i.Dom.append(d,l):i.Dom.prepend(d,l),i.Dom.isTag(d.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(d,d.nextElementSibling)&&(i.Dom.append(d,Array.from(d.nextElementSibling.childNodes)),i.Dom.safeRemove(d.nextElementSibling)),n.e.fire(`${s._PREFIX}AfterWrapList`,"wrap",d,e),d}},44253:function(e,t,n){n.d(t,{toggleAttributes:function(){return f}});var i=n(82758),o=n(2748),r=n(580),s=n(27613),a=n(3760),l=n(21496),c=n(43555),u=n(41180),d=n(86583),h=n(77361);let p="toggleAttributes";function f(e,t,n,m,g=!1){var b;if(!g&&e.isApplied(t,p))return m;g||e.setApplied(t,p);let{attributes:v}=e.options;return v&&(0,l.size)(v)>0&&Object.keys(v).forEach(e=>{var p,f;let b=v[e];switch(e){case"style":p=m,(0,c.assert)((0,s.isPlainObject)(b)&&(0,l.size)(b),"Style must be an object"),Object.keys(b).forEach(e=>{let s=(0,u.cssInline)(t,e),l=b[e];if(""!==s||null!=l){let h,f,m,b;if(null==l||""===l){s&&(g||(0,u.css)(t,e,null),p="change");return}if(h=function(e){var t;if(void 0!==(0,d.dataBind)(e,"shadowRoot"))return(0,d.dataBind)(e,"shadowRoot");let n=(0,r.getContainer)(e),s=i.globalDocument.createElement("iframe");(0,u.css)(s,{width:0,height:0,position:"absolute",border:0}),(0,c.attr)(s,"src","about:blank"),o.Dom.append(n,s);let a=null==(t=s.contentWindow)?void 0:t.document,l=a?a.body:e.od.body;return(0,d.dataBind)(e,"shadowRoot",l),l}(n),f=n.create.element("div"),(0,u.css)(f,"color",(0,u.css)(n.editor,"color")),m=n.create.element(t.tagName.toLowerCase()),(0,c.attr)(m,"style",(0,c.attr)(t,"style")),o.Dom.append(f,m),o.Dom.append(h,f),b=(0,u.css)(m,e),o.Dom.safeRemove(f),b===(0,a.normalizeCssValue)(e,l)){if(!s)return;g||(0,u.css)(t,e,null),p="unset";return}p="change",g||(0,u.css)(t,e,l)}}),m=p;break;case"className":case"class":m=function(e,t,n,i,o){var r;(0,c.assert)((0,s.isString)(t),"Class name must be a string");let a=null!=(r=t.match(/[^\t\n\f\r ]+/g))?r:[];if(!a.length)return i;let l=e.e.fire.bind(e.e,`${h._PREFIX}AfterToggleAttribute`);return a.every(e=>n.classList.contains(e))?(i="unset",o||(n.classList.remove(...a),0===n.classList.length&&(0,c.attr)(n,"class",null),l(i,n,"class",(0,c.attr)(n,"class")))):(i="change",o||(n.classList.add(...a),l(i,n,"class",t))),i}(n,b,t,m,g);break;default:let y;f=m,(0,c.assert)((0,s.isString)(b)||(0,s.isNumber)(b)||(0,s.isBoolean)(b)||null==b,"Attribute value must be a string or number or boolean or null"),y=n.e.fire.bind(n.e,`${h._PREFIX}AfterToggleAttribute`),(0,c.attr)(t,e)===(null==b?b:String(b))?(g||(0,c.attr)(t,e,null),f="unset",g||y(f,t,e,b)):(f="change",g||((0,c.attr)(t,e,b),y(f,t,e,b))),m=f}}),!g&&(null==v?void 0:v.style)?(b=m,!(0,c.attr)(t,"style")&&((0,c.attr)(t,"style",null),t.attributes.length||t.tagName.toLowerCase()!==e.defaultTag||(o.Dom.unwrap(t),b="unwrap")),b):m}},75882:function(e,t,n){n.d(t,{unwrapChildren:function(){return a}});var i=n(2748),o=n(43555),r=n(22030),s=n(97380);function a(e,t){var n;let a,l=[],c=[],u=null==(n=e.options.attributes)?void 0:n.style,d=Object.keys(null!=u?u:{}),h={};d.forEach(e=>{h[e]=null});let p=t=>{(0,o.css)(t,h),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),!t.attributes.length&&i.Dom.isTag(t,e.element)&&l.push(t)};for(let n of i.Dom.eachGen(t))i.Dom.isContentEditable(n,t)&&((0,s.isSuitElement)(e,n,!0)&&(!u||(0,r.hasSameStyleKeys)(n,u))?(void 0===a&&(a=!0),u?c.push(()=>p(n)):l.push(n)):u&&i.Dom.isHTMLElement(n)&&d.some(e=>""!==(0,o.css)(n,e,!0))?(void 0===a&&(a=!1),c.push(()=>p(n))):i.Dom.isEmptyTextNode(n)||void 0!==a||(a=!1));return c.forEach(e=>e()),l.forEach(i.Dom.unwrap),!!a}},6980:function(e,t,n){n.d(t,{wrapUnwrappedText:function(){return r}});var i=n(2748),o=n(78116);function r(e,t,n){let r=n.editor,s=n.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!i.Dom.isTag(a,n.o.enter)&&(s=a,a=a[t]?a[t]:a.parentNode&&!i.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!i.Dom.isBlock(a)););return s},l=a(t),c=a(t,"nextSibling"),u=n.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let d=u.extractContents(),h=s.element(e.element);return i.Dom.append(h,d),i.Dom.safeInsertNode(u,h),e.elementIsBlock&&i.Dom.isEmpty(h)&&!h.querySelector("br")&&i.Dom.append(h,s.element("br")),h}},19263:function(e,t,n){n.d(t,{wrap:function(){return l}});var i=n(22732),o=n(29960),r=n(41180),s=n(82515),a=n(6980);function l(e,t,n){var l,u,d;let h=(l=e,u=t,d=n,l.elementIsBlock?i.Dom.up(u,e=>i.Dom.isBlock(e)&&!i.Dom.isTag(e,c)&&!Array.from(e.childNodes).some(e=>i.Dom.isBlock(e)),d.editor)||(0,a.wrapUnwrappedText)(l,u,d):((0,o.attr)(u,"size",null),u));if(e.elementIsList)return(0,s.wrapList)(e,h,n);let p=i.Dom.replace(h,e.element,n.createInside,!0);return e.elementIsBlock&&((0,r.css)(p,"fontSize",null),(0,r.css)(p,"fontWeight",null),(0,o.attr)(p,"style")||(0,o.attr)(p,"style",null)),p}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"]);n.d(t,["WRAP_NODES",0,c])},83632:function(e,t,n){n.d(t,{ApplyStyle:function(){return l}});var i=n(2748),o=n(76078),r=n(63687),s=n(77361),a=n(55307);function l(e,t){var n,l;let{s:c,editor:u}=e;null==(n=u.firstChild)||n.normalize();let d=c.fakes(),h=c.isCollapsed(),p=s.INITIAL;try{for(let n of c.wrapInTagGen(d)){(null==(l=t.options.exclude)?void 0:l.length)&&function(e,t,n){let s=e.s.createRange(),a=i.Dom.closest(t.parentNode,n,e.editor);for(;a;){s.selectNodeContents(a),s.setEndBefore(t);let o=s.cloneContents();s.selectNodeContents(a),s.setStartAfter(t),i.Dom.isEmpty(o)&&i.Dom.isEmpty(s.cloneContents())||(0,r.extractSelectedPart)(a,t,e),i.Dom.unwrap(a),a=i.Dom.closest(t.parentNode,n,e.editor)}(0,o.$$)(n.join(","),t).forEach(e=>i.Dom.unwrap(e))}(e,n,t.options.exclude);let s={collapsed:h,mode:p,element:n,next:a.states.START,jodit:e,style:t},c=new r.FiniteStateMachine(a.states.START,a.transactions);for(;!e.isInDestruct&&c.getState()!==a.states.END;)s=c.dispatch("exec",s);p=s.mode}}finally{c.restoreFakes(d)}}},25639:function(e,t,n){n.d(t,{CommitStyle:function(){return a}});var i=n(82758),o=n(87058),r=n(77361),s=n(83632);class a{isApplied(e,t){let n=this.__applyMap.get(e);return!!n&&!!n[t]}setApplied(e,t){var n;let i=null!=(n=this.__applyMap.get(e))?n:{};i[t]=!0,this.__applyMap.set(e,i)}get elementIsList(){return!!(this.options.element&&i.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&i.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(e){let{hooks:t}=this.options,n=t?Object.keys(t):[];try{n.forEach(n=>{e.e.on((0,o.camelCase)(r._PREFIX+"_"+n),t[n])}),(0,s.ApplyStyle)(e,this)}finally{n.forEach(n=>{e.e.off((0,o.camelCase)(r._PREFIX+"_"+n),t[n])}),this.__applyMap=new WeakMap}e.isInDestruct||(e.synchronizeValues(),e.e.fire("afterCommitStyle",this))}constructor(e){this.options=e,this.__applyMap=new WeakMap}}},77361:function(e,t,n){n.d(t,["INITIAL",0,"initial","REPLACE",0,"replace","_PREFIX",0,"commitStyle"])},55307:function(e,t,n){var i=n(82758),o=n(2748),r=n(38837),s=n(63687),a=n(77361);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}function c(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}let u={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},d={[u.START]:{exec(e){let{element:t,jodit:n,style:i,mode:r,collapsed:a}=e;if(!o.Dom.isContentEditable(t,n.editor)||(0,s.isInsideInvisibleElement)(t,n.editor)||!a&&o.Dom.isEmptyContent(t))return c(l({},e),{next:u.END});let d=(0,s.getSuitParent)(i,t,n.editor)||(0,s.getSuitChild)(i,t);if(d)return c(l({},e),{next:u.ELEMENT,element:d});let h=(0,s.suitableClosest)(i,t,n.editor);return i.elementIsList&&o.Dom.isList(h)?c(l({},e),{next:u.LIST}):h?c(l({},e),{next:u.EXTRACT}):c(l({},e),{next:"unwrap"!==r?u.UNWRAP_CHILDREN:u.END})}},[u.LIST]:{exec(e){let{element:t,jodit:n,mode:r}=e;if(r!==a.INITIAL&&"unwrap"!==r&&r!==a.REPLACE&&"change"!==r)return c(l({},e),{next:u.END});let s=o.Dom.closest(t,"li",n.editor);return s&&o.Dom.closest(t,i.LIST_TAGS,n.editor)?c(l({},e),{element:s,next:u.TOGGLE_LIST}):c(l({},e),{next:u.END})}},[u.TOGGLE_LIST]:{exec(e){return c(l({},e),{mode:(0,s.toggleOrderedList)(e.style,e.element,e.jodit,e.mode,e.collapsed),next:u.END})}},[u.EXTRACT]:{exec(e){var t;let{element:n,jodit:i,style:a}=e,d=(0,s.suitableClosest)(a,n,i.editor);return((0,r.assert)(d,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&o.Dom.isBlock(d))?c(l({},e),{next:u.WRAP}):(a.elementIsBlock||(0,s.extractSelectedPart)(d,n,i),c(l({},e),{element:d,next:u.ELEMENT}))}},[u.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:n}=e;return(0,s.unwrapChildren)(n,t)?c(l({},e),{mode:"unwrap",next:u.END}):c(l({},e),{next:u.WRAP})}},[u.WRAP]:{exec(e){let{element:t,jodit:n,style:i}=e,o=(0,s.wrap)(i,t,n);return c(l({},e),{next:i.elementIsList?u.END:u.CHANGE,mode:"wrap",element:o})}},[u.ELEMENT]:{exec(e){let{style:t,element:n,jodit:i}=e;return(0,s.toggleAttributes)(t,n,i,a.INITIAL,!0)!==a.INITIAL?c(l({},e),{next:u.CHANGE}):o.Dom.isTag(n,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{next:u.END})}},[u.CHANGE]:{exec(e){let{style:t,element:n,jodit:i,mode:r}=e,a=(0,s.toggleAttributes)(t,n,i,e.mode);return"wrap"!==r&&"unset"===a&&!n.attributes.length&&o.Dom.isTag(n,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{mode:a,next:u.END})}},[u.UNWRAP]:{exec(e){let{element:t,style:n,jodit:i}=e;if(t.attributes.length&&o.Dom.isTag(t,n.element))return c(l({},e),{next:u.REPLACE_DEFAULT});let r=t.parentElement;return n.elementIsBlock&&!n.elementIsDefault&&r&&r!==i.editor&&o.Dom.isBlock(r)&&!o.Dom.isTag(r,s.WRAP_NODES)?c(l({},e),{next:u.REPLACE_DEFAULT}):(o.Dom.unwrap(t),c(l({},e),{mode:"unwrap",next:u.END}))}},[u.REPLACE_DEFAULT]:{exec(e){return o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),c(l({},e),{mode:a.REPLACE,next:u.END})}},[u.END]:{exec(e){return e}}};n.d(t,["states",0,u,"transactions",0,d])},97333:function(e,t,n){n.d(t,{AsyncStorage:function(){return c}});var i=n(87058),o=n(2621),r=n(65638),s=n(21162);function a(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var r=e.apply(t,n);function s(e){a(r,i,o,s,l,"next",e)}function l(e){a(r,i,o,s,l,"throw",e)}s(void 0)})}}class c{set(e,t){return l(function*(){let n=yield this.provider;return yield n.set((0,i.camelCase)(this.prefix+e),t),this}).call(this)}delete(e){return l(function*(){let t=yield this.provider;return yield t.delete((0,i.camelCase)(this.prefix+e)),this}).call(this)}get(e){return l(function*(){return(yield this.provider).get((0,i.camelCase)(this.prefix+e))}).call(this)}exists(e){return l(function*(){return(yield this.provider).exists((0,i.camelCase)(this.prefix+e))}).call(this)}clear(){return l(function*(){let e=yield this.provider;return yield e.clear(),this}).call(this)}close(){return l(function*(){let e=yield this.provider;"close"in e&&"function"==typeof e.close&&(yield e.close())}).call(this)}static makeStorage(e=!1,t,n){let i,a=null==n?void 0:n.defaultProvider;return null!=a?new c(Promise.resolve(i="local"===a?(0,r.canUsePersistentStorage)("localStorage")?new r.LocalStorageProvider("Jodit_"+(t||"")):new s.MemoryStorageProvider:"memory"===a?new s.MemoryStorageProvider:a),t):("localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider("Jodit_"+(t||""),e)):("indexedDB"===e||!0===e)&&(i=(0,o.canUseIndexedDB)().then(e=>e?new o.IndexedDBProvider("Jodit_"+(t||""),"keyValueStore"):new s.MemoryStorageProvider)),i||(i=new s.MemoryStorageProvider),new c(Promise.resolve(i),t))}constructor(e,t){this.provider=e,this.prefix="Jodit_",t&&(this.prefix+=t)}}},2621:function(e,t,n){n.d(t,{IndexedDBProvider:function(){return s},canUseIndexedDB:function(){return c},clearUseIndexedDBCache:function(){return l}});var i=n(82758);function o(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(e){o(s,i,r,a,l,"next",e)}function l(e){o(s,i,r,a,l,"throw",e)}a(void 0)})}}class s{getDB(){return this.dbPromise||(this.dbPromise=new Promise((e,t)=>{let n=indexedDB.open(this.dbName,this.DB_VERSION);n.onerror=()=>{t(n.error)},n.onsuccess=()=>{e(n.result)},n.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName)}})),this.dbPromise}performTransaction(e,t){return r(function*(){try{let n=(yield this.getDB()).transaction([this.storeName],e).objectStore(this.storeName),i=t(n);return new Promise((e,t)=>{i.onsuccess=()=>{e(i.result)},i.onerror=()=>{t(i.error)}})}catch(e){return Promise.reject(e)}}).call(this)}set(e,t){return r(function*(){try{yield this.performTransaction("readwrite",n=>n.put(t,e))}catch(e){i.IS_PROD}return this}).call(this)}delete(e){return r(function*(){try{yield this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}).call(this)}get(e){return r(function*(){try{return yield this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}).call(this)}exists(e){return r(function*(){try{let t=yield this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}).call(this)}clear(){return r(function*(){try{yield this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}).call(this)}close(){return r(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(e){}this.dbPromise=null}}).call(this)}keys(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e.map(e=>String(e))}catch(e){return[]}}).call(this)}values(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e}catch(e){return[]}}).call(this)}entries(){return r(function*(){try{let[e,t]=yield Promise.all([this.keys(),this.values()]);return e.map((e,n)=>[e,t[n]])}catch(e){return[]}}).call(this)}constructor(e="JoditDB",t="keyValueStore"){this.dbName=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let a=null;function l(){a=null}function c(){return r(function*(){if(null!=a)return a;try{if("u"<typeof indexedDB)return a=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return a=yield new Promise(n=>{t.onerror=()=>{n(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),n(!0)}})}catch(e){return a=!1,!1}})()}},65638:function(e,t,n){n.d(t,{LocalStorageProvider:function(){return i}});class i{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(e,t){try{let n=this.storage.getItem(this.rootKey),i=n?JSON.parse(n):{};i[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(i))}catch(e){}return this}delete(e){try{let t=this.storage.getItem(this.rootKey);if(t){let n=JSON.parse(t);delete n[e],this.storage.setItem(this.rootKey,JSON.stringify(n))}}catch(e){}return this}get(e){try{let t=this.storage.getItem(this.rootKey),n=t?JSON.parse(t):{};return void 0!==n[e]?n[e]:void 0}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}constructor(e,t="localStorage"){this.rootKey=e,this.strategy=t}}n.d(t,["canUsePersistentStorage",0,(e="localStorage")=>{let t=new Map;if(t.has(e))return t.get(e);let n="___Jodit___"+Math.random().toString(),i="sessionStorage"===e?sessionStorage:localStorage;try{i.setItem(n,"1");let o="1"===i.getItem(n);return i.removeItem(n),t.set(e,o),o}catch(e){}return t.set(e,!1),!1}])},21162:function(e,t,n){n.d(t,{MemoryStorageProvider:function(){return i}});class i{set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}constructor(){this.data=new Map}}},12081:function(e,t,n){n.d(t,{AsyncStorage:function(){return i.AsyncStorage},IndexedDBProvider:function(){return o.IndexedDBProvider},LocalStorageProvider:function(){return r.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return"Jodit_"},canUseIndexedDB:function(){return o.canUseIndexedDB},canUsePersistentStorage:function(){return r.canUsePersistentStorage},clearUseIndexedDBCache:function(){return o.clearUseIndexedDBCache}});var i=n(97333),o=n(2621),r=n(65638),s=n(21162),a=n(6700)},6700:function(e,t,n){n.d(t,{Storage:function(){return a}});var i=n(87058),o=n(65638),r=n(21162);let s="Jodit_";class a{set(e,t){return this.provider.set((0,i.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,i.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,i.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,i.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let n;return"localStorage"===e||"sessionStorage"===e?(0,o.canUsePersistentStorage)(e)&&(n=new o.LocalStorageProvider(s+(t||""),e)):!0===e&&(0,o.canUsePersistentStorage)("localStorage")&&(n=new o.LocalStorageProvider(s+(t||""))),n||(n=new r.MemoryStorageProvider),new a(n,t)}constructor(e,t){this.provider=e,this.prefix=s,t&&(this.prefix+=t)}}},70231:function(e,t,n){n.d(t,{Dlgs:function(){return a}});var i=n(580),o=n(27613),r=n(37790),s=n(638);class a{dlg(e){let t=(0,i.getPopupViewRoot)(this.o,this.container,this.od.body),n=new s.Dialog(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},e));return(0,r.markOwner)(this,n.container),n.parent=this,n.bindDestruct(this)}confirm(e,t,n){return e=l(e,this),t=l(t,this),s.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,n)}prompt(e,t,n,i,o){return e=l(e,this),t=l(t,this),i=l(i,this),s.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,i,o)}alert(e,t,n,i){return e=l(e,this),t=l(t,this),s.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,i)}}function l(e,t){return(0,o.isString)(e)&&!(0,o.isHTML)(e)&&(e=t.i18n(e)),e}},14316:function(e,t,n){n.d(t,{Elms:function(){return o}});var i=n(2748);class o{getElm(e){let t=this.getFullElName(e);return i.Dom.first(this.container,e=>i.Dom.isHTMLElement(e)&&e.classList.contains(t))}getElms(e){let t=this.getFullElName(e),n=[];return i.Dom.each(this.container,e=>{i.Dom.isHTMLElement(e)&&e.classList.contains(t)&&n.push(e)}),n}}},34176:function(e,t,n){n.d(t,{Mods:function(){return o}});var i=n(86068);class o{afterSetMod(e,t){}setMod(e,t,n){e=e.toLowerCase();let o=this.mods[e];if(o===t)return this;let r=`${this.componentName}_${e}_`,s=(n||this.container).classList;return null!=o&&s.remove(`${r}${o.toString().toLowerCase()}`),(0,i.isVoid)(t)||""===t||s.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){var t;return null!=(t=this.mods[e])?t:null}}},10830:function(e,t,n){n.d(t,{Button:function(){return b},UIButton:function(){return g}});var i=n(78213),o=n(33433),r=n(87325),s=n(37133),a=n(2748),l=n(23282),c=n(70799),u=n(38837),d=n(29960),h=n(48538),p=n(12153),f=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let m=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:"",scale:void 0},tooltip:"",text:"",tabIndex:void 0}),g=class e extends h.UIElement{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){let e=this.getElm("text");return(0,u.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,u.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,d.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,d.attr)(this.container,"role",this.state.role)}updateSize(){let e=(0,r.getComponentClass)("UIList"),t=this.closest(e);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,d.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,d.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,d.attr)(this.container,"data-ref",this.state.name),(0,d.attr)(this.container,"ref",this.state.name),this.updateAriaLabel()}onChangeTooltip(){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,d.attr)(this.container,"title",e),(0,d.attr)(this.container,"aria-label",e),this.updateAriaLabel()}updateAriaLabel(){let e=this.state.text.trim().length>0,t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):!e&&this.state.name?this.state.name:null;(0,d.attr)(this.container,"aria-label",t),(0,d.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,d.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let e=this.get("j.o.textIcons");if(!0===e||(0,l.isFunction)(e)&&e(this.state.name))return;a.Dom.detach(this.icon);let t=p.Icon.makeIcon(this.j,this.state.icon);t&&a.Dom.append(this.icon,t)}focus(){this.container.focus()}isFocused(){let{activeElement:e}=this.od;return!!(e&&a.Dom.isOrContains(this.container,e))}createContainer(){let e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),n=this.j.c.span(e+"__icon"),i=this.j.c.span(e+"__text");return a.Dom.append(t,n),a.Dom.append(t,i),t}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e)),this.j.e.fire(this,"click",e)}constructor(e,t){super(e),this.isButton=!0,this.state=m(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(i.STATUSES.ready,()=>{this.setState(t)})}};function b(e,t,n,i){let o=new g(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,c.isString)(t)?(o.state.icon.name=t,o.state.name=t,i&&(o.state.variant=i),n&&(o.state.text=n)):o.setState(t),o}f([o.cache],g.prototype,"text",null),f([o.cache],g.prototype,"icon",null),f([(0,s.watch)("state.size",{immediately:!1})],g.prototype,"onChangeSize",null),f([(0,s.watch)("state.type",{immediately:!1})],g.prototype,"onChangeType",null),f([(0,s.watch)("state.role",{immediately:!1})],g.prototype,"onChangeRole",null),f([(0,s.watch)("parentElement")],g.prototype,"updateSize",null),f([(0,s.watch)("state.variant",{immediately:!1})],g.prototype,"onChangeStatus",null),f([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeText",null),f([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeTextSetMode",null),f([(0,s.watch)("state.disabled")],g.prototype,"onChangeDisabled",null),f([(0,s.watch)("state.activated")],g.prototype,"onChangeActivated",null),f([(0,s.watch)("state.name",{immediately:!1})],g.prototype,"onChangeName",null),f([(0,s.watch)("state.tooltip",{immediately:!1})],g.prototype,"onChangeTooltip",null),f([(0,s.watch)("state.tabIndex",{immediately:!1})],g.prototype,"onChangeTabIndex",null),f([(0,s.watch)("state.icon",{immediately:!1})],g.prototype,"onChangeIcon",null),f([o.cacheHTML],g.prototype,"createContainer",null),f([(0,s.watch)("button:click")],g.prototype,"__onActionFire",null),g=f([r.component],g),n.d(t,["UIButtonState",0,m])},71916:function(e,t,n){n.d(t,{UIButtonGroup:function(){return l}});var i=n(87325),o=n(2748),r=n(38837),s=n(10830),a=n(62405);let l=class e extends a.UIGroup{className(){return"UIButtonGroup"}render(e){return`<div>
9
9
  <div class="&__label">~${e.label}~</div>
10
10
  <div class="&__options"></div>
11
11
  </div>`}appendChildToContainer(e){let t=this.getElm("options");(0,r.assert)(null!=t,"Options does not exist"),o.Dom.append(t,e)}select(e){var t,n;this.elements.forEach((t,n)=>{n===e||t.state.value===e?t.state.activated=!0:this.options.radio&&(t.state.activated=!1)});let i=this.elements.filter(e=>e.state.activated).map(e=>({text:e.state.text,value:e.state.value}));this.jodit.e.fire(this,"select",i),null==(n=(t=this.options).onChange)||n.call(t,i)}constructor(e,t={radio:!0}){var n,i;super(e,null==(n=t.options)?void 0:n.map(t=>{let n=new s.UIButton(e,{text:t.text,value:t.value,variant:"primary"});return n.onAction(()=>{this.select(t.value)}),n}),t),this.options=t,this.select(null!=(i=t.value)?i:0)}};l=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}([i.component],l)},62843:function(e,t,n){n.d(t,{Button:function(){return i.Button},UIButton:function(){return i.UIButton},UIButtonGroup:function(){return o.UIButtonGroup},UIButtonState:function(){return i.UIButtonState},UITooltip:function(){return r.UITooltip}});var i=n(10830),o=n(71916),r=n(57340)},57340:function(e,t,n){n.d(t,{UITooltip:function(){return m}});var i,o=n(91907),r=n(65478),s=n(22732),a=n(580),l=n(35224),c=n(5700),u=n(43555),d=n(48538),h=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let p=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],f=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"],m=i=class e extends d.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}get __isEnabled(){let{o:e}=this.j;return!e.textIcons&&!!e.showTooltip&&!e.useNativeTooltip}attach(e){this.__isEnabled&&this.__onAttach(e)}__onAttach(e){s.Dom.append((0,a.getContainer)(this.j,i),this.container),this.__attachedContainers.add(e),this.__attachedContainers.add(this.j.container),this.j.e.on(e,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(e,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let e=this.j;e.e.on(e.ow,p,this.__hide).on(f,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let e=this.j;e.e.off(e.ow,p,this.__hide).off(f,this.__hide)}__onMouseLeave(e){this.__currentTarget===e.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(e){if(!s.Dom.isHTMLElement(e.target))return;let t=(0,u.attr)(e.target,"aria-label");if(!t||(0,u.attr)(e.target,"disabled")||!e.target.className.includes("jodit")||"dialog"===(0,u.attr)(e.target,"role")||s.Dom.isTag(e.target,"input")&&"file"===e.target.type)return;this.__currentTarget=e.target;let n=e.target;this.__open(()=>{let e=(0,c.position)(n);return{x:e.left+e.width/2,y:e.top+e.height}},t)}__open(e,t){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let n=this.j.o.showTooltipDelay||this.j.defaultTimeout;n?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(e,t),n):this.__show(e,t)}__show(e,t){this.setMod("visible",!0),this.setMod("above",!1),this.getElm("content").innerHTML=t;let n=e(),i=(0,l.getFixedPositionOffset)(this.container);(0,u.css)(this.container,{left:n.x-i.x,top:n.y-i.y});let o=(0,c.position)(this.container),r=this.j.ow.innerHeight;if(o.top+o.height>r){let e=(0,c.position)(this.__currentTarget);this.setMod("above",!0),(0,u.css)(this.container,{top:e.top-o.height-i.y})}}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),s.Dom.detach(this.getElm("content")),(0,u.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(e=>{this.j.e.off(e,"mouseenter.tooltip",this.__onMouseEnter).off(e,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(e){super(e),this.__isOpened=!1,this.__attachedContainers=new Set,this.__listenClose=!1,this.__currentTarget=null,this.__delayShowTimeout=0,this.__hideTimeout=0,this.__isEnabled&&(this.j.e.on("getContainer",e=>{this.__onAttach(e)}),e.hookStatus(o.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}};h([r.autobind],m.prototype,"__onMouseLeave",null),h([r.autobind],m.prototype,"__onMouseEnter",null),h([r.autobind],m.prototype,"__hide",null),h([r.autobind],m.prototype,"__hideDelay",null),m=i=h([r.component],m)},48538:function(e,t,n){n.d(t,{UIElement:function(){return h}});var i,o=n(91907),r=n(55153),s=n(2748),a=n(70799),l=n(29960),c=n(14316),u=n(34176),d=n(12153);let h=i=class e extends o.ViewComponent{getRole(){var e;return(null==(e=this.options)?void 0:e.role)||""}get parentElement(){return this.__parentElement}set parentElement(e){this.__parentElement=e,e&&e.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(e){let t=this.parentElement;for(;t;)e(t),t=t.parentElement;return this}updateParentElement(e){var t;return null==(t=this.__parentElement)||t.updateParentElement(e),this}get(e,t){return super.get(e,t)||this.getElm(e)}closest(e){let t="object"==typeof e?t=>t===e:t=>o.Component.isInstanceOf(t,e),n=this.__parentElement;for(;n;){if(t(n))return n;n=!n.parentElement&&n.container.parentElement?i.closestElement(n.container.parentElement,i):n.parentElement}return null}static closestElement(e,t){let n=s.Dom.up(e,e=>{if(e){let{component:n}=e;return n&&o.Component.isInstanceOf(n,t)}return!1});return n?null==n?void 0:n.component:null}update(){}appendTo(e){return s.Dom.append(e,this.container),this}clearName(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}render(e){return this.j.c.div(this.componentName)}createContainer(e){let t=this.render(e);if((0,a.isString)(t)){let e=this.parseTemplate(t);return e.classList.add(this.componentName),e}return t}parseTemplate(e){return this.j.c.fromHTML(e.replace(/\*([^*]+?)\*/g,(e,t)=>d.Icon.get(t)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(e,t)=>this.i18n(t)))}destruct(){return s.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(e,t){super(e),this.name="",this.__parentElement=null,this.mods={},this.options=t,this.container=this.createContainer(t);let n=this.getRole();n&&(0,l.attr)(this.container,"role",n),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}};h=i=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}([(0,r.derive)(u.Mods,c.Elms)],h)},19070:function(e,t,n){n.d(t,{UIBlock:function(){return s}});var i=n(87325),o=n(43555),r=n(62405);let s=class e extends r.UIGroup{className(){return"UIBlock"}constructor(e,t,n={align:"left"}){super(e,t),this.options=n,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,o.attr)(this.container,"data-ref",n.ref),(0,o.attr)(this.container,"ref",n.ref)}};s=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}([i.component],s)},86327:function(e,t,n){n.d(t,{UIForm:function(){return c}});var i=n(4012),o=n(87325),r=n(43555),s=n(80256),a=n(12234),l=n(62405);let c=class e extends l.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let e of this.allChildren.filter(e=>i.Component.isInstanceOf(e,s.UIInput)))if(!e.validate())return!1;for(let e of this.allChildren.filter(e=>i.Component.isInstanceOf(e,a.UISelect)))if(!e.validate())return!1;return!0}onSubmit(e){return this.j.e.on(this.container,"submit",()=>{let t=this.allChildren.filter(e=>i.Component.isInstanceOf(e,s.UIInput));return!!this.validate()&&(e(t.reduce((e,t)=>(e[t.state.name]=t.value,e),{})),!1)}),this}createContainer(){let e=this.j.c.element("form");return e.classList.add(this.componentName),(0,r.attr)(e,"dir",this.j.o.direction||"auto"),(0,r.attr)(e,"novalidate",""),e}constructor(...e){var t,n;super(...e),(null==(t=this.options)?void 0:t.className)&&this.container.classList.add(null==(n=this.options)?void 0:n.className)}};c=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}([o.component],c)},2525:function(e,t,n){n.d(t,{UIBlock:function(){return i.UIBlock},UICheckbox:function(){return r.UICheckbox},UIFileInput:function(){return r.UIFileInput},UIForm:function(){return o.UIForm},UIInput:function(){return r.UIInput},UISelect:function(){return r.UISelect},UITextArea:function(){return r.UITextArea}});var i=n(19070),o=n(86327),r=n(8959)},85120:function(e,t,n){n.d(t,{UITextArea:function(){return h}});var i,o,r,s=n(65478),a=n(87325),l=n(41180),c=n(80256);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}var d=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let h=r=class e extends c.UIInput{className(){return"UITextArea"}createNativeInput(e){return this.j.create.element("textarea")}onChangeStateSize(){let{size:e,resizable:t}=this.state;(0,l.css)(this.nativeInput,"resize",t?"auto":"none"),this.nativeInput.rows=null!=e?e:5}constructor(e,t){super(e,t),this.state=u({},r.defaultState),Object.assign(this.state,t),!1===this.state.resizable&&(0,l.css)(this.nativeInput,"resize","none")}};h.defaultState=(i=u({},c.UIInput.defaultState),o=o={size:5,resizable:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))}),i),d([(0,s.watch)(["state.size","state.resizable"])],h.prototype,"onChangeStateSize",null),h=r=d([a.component],h)},17328:function(e,t,n){n.d(t,{UICheckbox:function(){return u}});var i,o=n(65478),r=n(2748),s=n(80256);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}function l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var c=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let u=i=class e extends s.UIInput{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),r.Dom.after(this.nativeInput,e)):r.Dom.safeRemove(e)}constructor(e,t){super(e,l(a({},t),{type:"checkbox"})),this.state=a({},i.defaultState),Object.assign(this.state,t)}};u.defaultState=l(a({},s.UIInput.defaultState),{checked:!1,switch:!1}),c([(0,o.watch)("state.checked"),(0,o.hook)("ready")],u.prototype,"onChangeChecked",null),c([(0,o.watch)("nativeInput:change")],u.prototype,"onChangeNativeCheckBox",null),c([(0,o.watch)("state.switch"),(0,o.hook)("ready")],u.prototype,"onChangeSwitch",null),u=i=c([o.component],u)},4242:function(e,t,n){n.d(t,{UIFileInput:function(){return l}});var i=n(87325),o=n(2748),r=n(10830),s=n(80256);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}let l=class e extends s.UIInput{className(){return"UIFileInput"}createContainer(e){this.button=new r.UIButton(this.j,{tooltip:e.tooltip,icon:{name:"plus"}});let{container:t}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(e));let{nativeInput:n}=this;return n.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),o.Dom.append(t,n),t}createNativeInput(e){return this.j.create.fromHTML(`<input
@@ -259,7 +259,7 @@
259
259
  <button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
260
260
  </div>
261
261
  </div>
262
- </div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;let{j:t}=this;if(t.getRealMode()===i.MODE_WYSIWYG)switch(e.key){case i.KEY_ESC:this.close();break;case i.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,n=!1){this.isOpened||(r.Dom.append(this.j.workplace,this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",n);let i=null!=e?e:(this.j.s.sel||"").toString();i&&(this.queryInput.value=i),t&&(this.replaceInput.value=t),this.setMod("empty-query",!i.length),this.j.e.fire(this,"needUpdateCounters"),i?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),r.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){let e=(0,s.position)(this.j.toolbarContainer);(0,s.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,s.css)(this.container,{top:null,left:null})}constructor(e){var t;let n;super(e),t=this,this.selInfo=null,this._currentIndex=0,this.isOpened=!1;let{query:o,replace:r,cancel:a,next:c,prev:u,replaceBtn:d,current:h,count:p}=(0,s.refs)(this.container);this.queryInput=o,this.replaceInput=r,this.closeButton=a,this.replaceButton=d,this.currentBox=h,this.countBox=p;let f=()=>this.close(),m=()=>void e.e.fire(this,"pressReplaceButton"),g=()=>void e.e.fire("searchNext"),b=()=>void e.e.fire("searchPrevious"),v=e=>t=>{t.detail||(t.preventDefault(),e())};e.e.on(this.closeButton,"pointerdown",()=>(f(),!1)).on(this.closeButton,"click",v(f)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(m(),!1)).on(this.replaceButton,"click",v(m)).on(c,"pointerdown",()=>(g(),!1)).on(c,"click",v(g)).on(u,"pointerdown",()=>(b(),!1)).on(u,"click",v(b)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,s.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(n=this.j.async.debounce(n=>{var o;return(o=function*(){n.key===i.KEY_ENTER?(yield e.e.fire("searchNext"))&&t.close():e.e.fire(t,"needUpdateCounters")},function(){var e=this,t=arguments;return new Promise(function(n,i){var r=o.apply(e,t);function s(e){l(r,n,i,s,a,"next",e)}function a(e){l(r,n,i,s,a,"throw",e)}s(void 0)})})()},this.j.defaultTimeout),e=>{e.key===i.KEY_ENTER&&(e.preventDefault(),e.stopImmediatePropagation()),n(e)}))}};c([(0,o.watch)([":keydown","queryInput:keydown"])],u.prototype,"onEditorKeyDown",null),c([o.autobind],u.prototype,"open",null),c([o.autobind],u.prototype,"close",null),c([(0,o.watch)(":toggleSticky")],u.prototype,"calcSticky",null),u=c([o.component],u)},55311:function(e,t,n){n(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(e,t,n){var i=n(82758),o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(50911),c=n(45124),u=n(67510),d=n(76014);n(55311);var h=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let p="table_processor_observer";class f extends l.Plugin{get __tableModule(){return this.j.getInstance(d.Table,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown",this.__onKeyDown,{top:!0}).on("clickEditor",this.__onClickAfterDrag,{top:!0}).on("keydown.select-cells",e=>{e.key===i.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody clickThead clickTfoot clickTable",()=>{var e;let t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&(null==(e=this.j.s.sel)||e.removeAllRanges()),!1})}__onKeyDown(e){(null==e?void 0:e.repeat)&&this.__followCaret(),this.__keyDownCell=this.__caretCell(),this.__keyDownRange=this.j.s.range.cloneRange(),this.__keyDownInLink=this.__isInLink()}__isInLink(){return!!r.Dom.closest(this.j.s.range.startContainer,"a",this.j.editor)}__caretCell(){return r.Dom.closest(this.j.s.range.startContainer,r.Dom.isCell,this.j.editor)}onKeyUp(){this.__followCaret()}__followCaret(){let e=this.__keyDownRange;if(this.__keyDownRange=null,this.j.o.readonly||!(0,c.isMoved)(this.j,e))return;let t=this.__caretCell(),n=this.__keyDownInLink&&!this.__isInLink();if(t===this.__keyDownCell&&!(t&&n))return;let i=this.__tableModule.getAllSelectedCells().length>0;if(this.unselectCells(),!t){i&&this.j.e.fire("hidePopup","cells");return}let o=r.Dom.closest(t,"table",this.j.editor);o&&(this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.fire("showPopup",o,this.__markedBound,"cells"))}__markedBound(){let e=this.__tableModule.getAllSelectedCells().filter(e=>e.isConnected).map(e=>(0,a.position)(e,this.j));if(!e.length)return{left:0,top:0,width:0,height:0};let t=Math.min(...e.map(e=>e.left)),n=Math.min(...e.map(e=>e.top));return{left:t,top:n,width:Math.max(...e.map(e=>e.left+e.width))-t,height:Math.max(...e.map(e=>e.top+e.height))-n}}onStartSelection(e,t){var n;if(this.j.o.readonly)return;let i=r.Dom.closest(e,"table",this.j.editor);return((null==t?void 0:t.ctrlKey)||(null==t?void 0:t.metaKey))&&e!==this.j.editor&&i&&r.Dom.isCell(e)?(this.__tableModule.getAllSelectedCells().includes(e)?this.__tableModule.removeSelection(e):(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__tableModule.addSelection(e)),this.__selectedCell=e,null==(n=this.j.s.sel)||n.removeAllRanges(),this.__tableModule.getAllSelectedCells().length?this.j.e.fire("showPopup",i,this.__markedBound,"cells"):this.j.e.fire("hidePopup","cells"),!1):(this.unselectCells(),e===this.j.editor)?void 0:e&&i?(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__movedTo=e,this.__tableModule.addSelection(e),this.j.e.on(i,"mousemove.select-cells touchmove.select-cells",this.__onMove.bind(this,i)).on(i,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,i)),new Set([this.j.ew,this.j.ow]).forEach(e=>this.j.e.on(e,"mouseup.select-cells touchend.select-cells",this.__onRelease.bind(this,i))),!1):void 0}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onMouseDown(){this.__keepMarks=!1}__onClickAfterDrag(){var e;if(this.__keepMarks)return this.__keepMarks=!1,null==(e=this.j.s.sel)||e.removeAllRanges(),this.j.e.stopPropagation("clickEditor"),!1}onPress(e){this.__inPopup=!!(e&&r.Dom.isNode(e.target)&&u.UIElement.closestElement(e.target,u.Popup))}onChange(){this.j.isLocked||this.__isSelectionMode||this.__inPopup||this.__onRemoveSelection()}__onMove(e,t){var n;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(p))return;let i=this.__cellUnder(t,e);if(!i||!this.__selectedCell||i===this.__movedTo)return;this.__movedTo=i,i!==this.__selectedCell&&this.j.lock(p),this.unselectCells();let o=this.__tableModule.getSelectedBound(e,[i,this.__selectedCell]),r=this.__tableModule.formalMatrix(e);for(let e=o[0][0];e<=o[1][0];e+=1)for(let t=o[0][1];t<=o[1][1];t+=1)this.__tableModule.addSelection(r[e][t]);this.__tableModule.getAllSelectedCells().length>1&&(null==(n=this.j.s.sel)||n.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation()}__onRemoveSelection(e){var t;if(!(null==(t=null==e?void 0:e.buffer)?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__cellUnder(e,t){var n;let i=(null!=(n=this.j.o.shadowRoot)?n:this.j.ed).elementFromPoint(e.clientX,e.clientY);return r.Dom.closest(i,e=>r.Dom.isCell(e)&&!r.Dom.closest(e,"table",t),t)}__onStopSelection(e,t){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let n=this.__cellUnder(t,e);n&&(this.__showCellsPopup(e,[n,this.__selectedCell]),this.__stopListening())}__onRelease(e,t){if(this.__isSelectionMode){this.__isSelectionMode=!1,this.j.isLockedNotBy(p)||this.j.unlock();let n=this.__tableModule.getAllSelectedCells();n.length>1&&r.Dom.isOrContains(this.j.editor,t.target)&&(this.__keepMarks=!0,this.__showCellsPopup(e,n))}this.__stopListening()}__showCellsPopup(e,t){var n,i;let o=this.__tableModule.getSelectedBound(e,t),r=this.__tableModule.formalMatrix(e),s=null==(n=r[o[1][0]])?void 0:n[o[1][1]];(null==(i=r[o[0][0]])?void 0:i[o[0][1]])&&s&&this.j.e.fire("showPopup",e,this.__markedBound,"cells")}__stopListening(){(0,a.$$)("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),new Set([this.j.ew,this.j.ow]).forEach(e=>this.j.e.off(e,"mouseup.select-cells touchend.select-cells")),this.__movedTo=null}unselectCells(e){let t=this.__tableModule,n=t.getAllSelectedCells();n.length&&n.forEach(n=>{e&&e===n||t.removeSelection(n)})}onExecCommand(e){if(/^(delete|backspace)(word|sentence)?button$/.test(e)&&this.__tableModule.getAllSelectedCells().length>1){let e=this.__tableModule.getAllSelectedCells();return e.forEach(e=>{r.Dom.detach(e),r.Dom.append(e,this.j.createInside.element("br"))}),this.unselectCells(),this.j.s.setCursorIn(e[0]),this.j.synchronizeValues(),!1}if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow|headerrow)/.test(e)){e=e.replace("table","");let t=this.__tableModule.getAllSelectedCells();if(t.length){let[n]=t;if(!n)return;let i=r.Dom.closest(n,"table",this.j.editor);if(!i)return;switch(e){case"splitv":this.__tableModule.splitVertical(i);break;case"splitg":this.__tableModule.splitHorizontal(i);break;case"merge":this.__tableModule.mergeSelected(i);break;case"empty":t.forEach(e=>{r.Dom.detach(e),r.Dom.append(e,this.j.createInside.element("br"))});break;case"bin":this.__removeTable(i);break;case"binrow":{let e=new Set(t.map(e=>e.parentNode)),o=this.__nearestCell(i,n,(0,a.toArray)(e).map(e=>e.rowIndex),!0);e.forEach(e=>{this.__tableModule.removeRow(i,e.rowIndex)}),o&&this.j.s.setCursorIn(o)}break;case"bincolumn":{let e=new Set,o=[];t.forEach(t=>{let[,n]=this.__tableModule.formalCoordinate(i,t);e.has(n)||(o.push(n),e.add(n))});let r=this.__nearestCell(i,n,o,!1);o.sort((e,t)=>t-e).forEach(e=>{this.__tableModule.removeColumn(i,e)}),r&&this.j.s.setCursorIn(r)}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(i,n,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(i,n.parentNode,"addrowafter"===e);break;case"headerrow":this.__toggleHeaderRow(i,t)}/^split/.test(e)&&t.forEach(e=>this.__tableModule.addSelection(e)),/^bin(row|column)$/.test(e)&&!this.__tableModule.getColumnsCount(i)&&this.__removeTable(i)}return!1}}__toggleHeaderRow(e,t){let n=this.__tableModule;this.j.s.save();let i=n.toggleHeaderRow(e);this.j.s.restore(),t.forEach(e=>{let t=i.get(e);t&&(n.removeSelection(e),n.addSelection(t))})}__nearestCell(e,t,n,i){let o=this.__tableModule.formalMatrix(e),[r,s]=this.__tableModule.formalCoordinate(e,t),a=i?r:s,l=i?o.length:o[r].length,c=e=>!n.includes(e)&&(i?o[e][s]:o[r][e])||null;for(let e=a+1;e<l;e+=1){let t=c(e);if(t)return t}for(let e=a-1;e>=0;e-=1){let t=c(e);if(t)return t}return null}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>(0,a.alignElement)(e,t))}__removeTable(e){let t=e.parentNode,n=r.Dom.findNotEmptySibling(e,!1),i=r.Dom.findNotEmptySibling(e,!0);r.Dom.safeRemove(e),this.j.s.setCursorIn(n||i||t,!!n)}beforeDestruct(e){this.__onRemoveSelection(),this.__stopListening(),e.e.off(".select-cells").off("keydown",this.__onKeyDown).off("clickEditor",this.__onClickAfterDrag)}constructor(){super(...arguments),this.__keyDownCell=null,this.__keyDownRange=null,this.__keyDownInLink=!1,this.__selectedCell=null,this.__isSelectionMode=!1,this.__movedTo=null,this.__keepMarks=!1,this.__inPopup=!1}}f.requires=["select"],h([o.autobind],f.prototype,"__onKeyDown",null),h([(0,o.watch)(":keyup")],f.prototype,"onKeyUp",null),h([o.autobind],f.prototype,"__markedBound",null),h([o.autobind],f.prototype,"onStartSelection",null),h([(0,o.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),h([(0,o.watch)([":mousedown",":touchstart"])],f.prototype,"onMouseDown",null),h([o.autobind],f.prototype,"__onClickAfterDrag",null),h([(0,o.watch)(["ow:mousedown","ow:touchstart","ow:keydown",":mousedown",":touchstart",":keydown"])],f.prototype,"onPress",null),h([(0,o.watch)(":change")],f.prototype,"onChange",null),h([o.autobind],f.prototype,"__onRemoveSelection",null),h([o.autobind],f.prototype,"__onStopSelection",null),h([o.autobind],f.prototype,"onExecCommand",null),h([o.autobind],f.prototype,"onAfterCommand",null),s.pluginSystem.add("selectCells",f)},67215:function(e,t,n){n(6441).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},9881:function(e,t,n){var i=n(82758),o=n(65478),r=n(2748),s=n(580),a=n(4510),l=n(87058),c=n(49055),u=n(76078),d=n(50911),h=n(67510);n(67215);var p=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let f=`url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg'><filter id='s' x='0' y='0' width='1' height='1' color-interpolation-filters='sRGB'><feFlood flood-color='#84bbfc' flood-opacity='.6'/><feComposite in2='SourceGraphic'/></filter></svg>")}#s")`;class m extends d.Plugin{afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)}),e.e.on("dblclick",this.__onDblClickBesideRow,{top:!0}),e.e.on(e.ed,"selectionchange",this.__markSelectedMedia)}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.off(t+".select",this.onStartSelection)}),this.__endPressBesideRow(),e.e.off("dblclick",this.__onDblClickBesideRow),e.e.off(e.ed,"selectionchange",this.__markSelectedMedia)}__markSelectedMedia(){var e;let{s:t,editor:n,o}=this.j,a=(null==(e=t.sel)?void 0:e.rangeCount)?t.sel.getRangeAt(0):null,l=[];a&&!a.collapsed&&!o.readonly&&this.j.getMode()!==i.MODE_SOURCE&&!y(a)&&r.Dom.isOrContains(n,a.commonAncestorContainer)&&v(a,n).forEach(e=>{let t=e.querySelector("video, iframe, audio, object, embed"),n=(0,u.cssPath)(e);t&&n&&l.push(`${n}::selection,${n} ::selection{background:transparent}`,`${(0,u.cssPath)(t)}{filter:${f}}`)});let c=l.join("");c!==this.__selectedMediaStyle&&(this.__selectedMediaStyle=c,(0,s.getContainer)(this.j,m,"style",!0).textContent=c)}onStartSelection(e){let{j:t}=this,n,i=e.target;for(;void 0===n&&i&&i!==t.editor;)n=t.e.fire((0,l.camelCase)(e.type+"_"+i.nodeName.toLowerCase()),i,e),i=i.parentElement;"click"===e.type&&void 0===n&&i===t.editor&&t.e.fire(e.type+"Editor",i,e)}onOutsidePress(e){this.__pressTarget=e.target}onOutsideClick(e){let t=e.target,n=this.__pressTarget;this.__pressTarget=null,r.Dom.up(t,e=>e===this.j.editor)||n&&h.UIElement.closestElement(n,h.Popup)||r.Dom.isNode(t)&&!t.isConnected||h.UIElement.closestElement(t,h.Popup)||this.j.e.fire("outsideClick",e)}beforeCommandCut(){let{s:e}=this.j;if(!e.isCollapsed()){let t=e.current();t&&r.Dom.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onClickRightOfNestedListItem(e){let{s:t}=this.j,n=t.range;if(!n.collapsed||0!==n.startOffset||!r.Dom.isText(n.startContainer))return;let o=n.startContainer,s=o.parentNode;if(!r.Dom.isTag(s,"li")||!r.Dom.first(s,e=>r.Dom.isTag(e,i.LIST_TAGS)))return;let a=this.j.ed.createRange();a.selectNodeContents(o);let l=a.getBoundingClientRect();e.clientX>l.right&&t.setCursorAfter(o)}__rowBeside(e){var t;let{j:n}=this,i=e.target;if(n.o.readonly||0!==e.button||e.detail>2||!r.Dom.isHTMLElement(i)||r.Dom.closest(i,r.Dom.isCell,n.editor))return null;let o=(0,a.toArray)(i.children).find(t=>{if(!r.Dom.isTag(t,"table"))return!1;let n=t.getBoundingClientRect();return e.clientX>=n.right&&e.clientY>=n.top&&e.clientY<n.bottom}),s=o?(0,a.toArray)(o.rows).filter(e=>e.cells.length):[];return o&&s.length?{table:o,row:null!=(t=s.find(t=>e.clientY<t.getBoundingClientRect().bottom))?t:s[s.length-1]}:null}onMouseDownBesideTableRow(e){let{j:t}=this,n=this.__rowBeside(e);n&&(this.__endPressBesideRow(),e.preventDefault(),this.__putCaretBesideRow(n.table,n.row),this.__pressBesideRow={row:n.row,caret:t.s.range.cloneRange()},t.e.on(t.ew,"mousemove",this.__onDragFromRow),new Set([t.ew,t.ow]).forEach(e=>t.e.on(e,"mouseup",this.__onReleaseFromRow)))}__onDragFromRow(e){var t,n;let{s:i}=this.j,o=this.__pressBesideRow;if(!o||!(1&e.buttons))return void this.__endPressBesideRow();if((null==(t=this.__rowBeside(e))?void 0:t.row)===o.row){i.isCollapsed()||i.selectRange(o.caret.cloneRange());return}let{cells:r}=o.row,s=r[r.length-1];if(i.insertCursorAtPoint(e.clientX,e.clientY)){let{startContainer:e,startOffset:t}=i.range;null==(n=i.sel)||n.setBaseAndExtent(s,s.childNodes.length,e,t)}}__onReleaseFromRow(){let e=this.__pressBesideRow;this.__endPressBesideRow(),e&&this.j.s.isCollapsed()&&this.j.s.selectRange(e.caret)}__endPressBesideRow(){let{j:e}=this;this.__pressBesideRow=null,e.e.off(e.ew,"mousemove",this.__onDragFromRow),new Set([e.ew,e.ow]).forEach(t=>e.e.off(t,"mouseup",this.__onReleaseFromRow))}__onDblClickBesideRow(e){if(this.__rowBeside(e))return this.j.e.stopPropagation("dblclick"),!1}__putCaretBesideRow(e,t){let{j:n}=this,i=(0,a.toArray)(e.rows),o=i.slice(i.indexOf(t)+1).find(e=>e.cells.length),s=e.nextSibling;for(;s&&r.Dom.isEmptyTextNode(s);)s=s.nextSibling;o?n.s.setCursorIn(o.cells[0],!0):r.Dom.isBlock(s)&&!r.Dom.isTag(s,"table")&&r.Dom.isContentEditable(s,n.editor)?n.s.setCursorIn(s,!0):n.s.setCursorAfter(e)}onClickKeepPendingFormat(){var e,t;let{s:n}=this.j,o=n.range;if(!o.collapsed||!r.Dom.isText(o.startContainer))return;let s=o.startContainer;if(o.startOffset!==(null!=(t=null==(e=s.nodeValue)?void 0:e.length)?t:0))return;let a=s.nextSibling;if(!r.Dom.isElement(a)||!a.nodeName.match(i.IS_INLINE)||!r.Dom.isEmpty(a))return;let l=a;for(;r.Dom.isElement(l.firstElementChild)&&l.firstElementChild.nodeName.match(i.IS_INLINE);)l=l.firstElementChild;n.setCursorIn(l)}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;let{s:t}=this.j,{startContainer:n,startOffset:i}=t.range;0===i&&r.Dom.isText(n)&&t.select(r.Dom.closest(n,r.Dom.isBlock,this.j.editor)||n,!0)}onDblClickPastLineEnd(){let{s:e,editor:t,o:n}=this.j,i=e.range;!n.readonly&&r.Dom.isOrContains(t,i.commonAncestorContainer)&&function(e,t){let{startContainer:n,endContainer:i}=e;if(e.collapsed||(0,c.trim)(e.toString())&&(0,c.trim)(b(e.cloneContents())))return!1;let o=r.Dom.closest(n,r.Dom.isBlock,t)!==r.Dom.closest(i,r.Dom.isBlock,t),s=t=>!e.intersectsNode(t)||(r.Dom.isOrContains(t,n)||r.Dom.isOrContains(t,i)?(0,a.toArray)(t.childNodes).every(s):r.Dom.isTag(t,"br")?(o=!0,!0):r.Dom.isText(t)||function e(t){let n=(0,a.toArray)(t.childNodes);return g(t)||r.Dom.isBlock(t)&&n.some(e)&&n.every(t=>r.Dom.isEmptyTextNode(t)||e(t))}(t));return s(e.commonAncestorContainer)&&o}(i,t)&&(i.collapse(!0),e.selectRange(i))}onMouseUpOnUneditableLine(e){var t,n;let{s:i,editor:o,o:s}=this.j,{sel:a}=i;if(s.readonly||!(null==a?void 0:a.rangeCount)||a.isCollapsed)return;let l=a.getRangeAt(0).cloneRange();if(y(l))return;let u=a.anchorNode===l.startContainer&&a.anchorOffset===l.startOffset,d=v(l,o).map(e=>{var t;return null!=(t=r.Dom.closest(e,r.Dom.isBlock,o))?t:e}).filter(e=>!(0,c.trim)(b(e))),h=t=>{let n=t.getBoundingClientRect();return u?e.clientY<n.bottom:e.clientY>n.top},p=u?d.find(h):d.reverse().find(h);if(!p)return;let f=e=>r.Dom.isText(e)&&!r.Dom.isEmptyTextNode(e)||r.Dom.isTag(e,"br"),m=r.Dom.findNotEmptySibling(p,u),g=r.Dom.isBlock(m)?u?r.Dom.last(m,f):r.Dom.first(m,f):null;if(!g)return;r.Dom.isText(g)?u?l.setEnd(g,null!=(n=null==(t=g.nodeValue)?void 0:t.length)?n:0):l.setStart(g,0):u?l.setEndBefore(g):l.setStartBefore(g);let{startContainer:w,startOffset:_,endContainer:S,endOffset:k}=l;u?a.setBaseAndExtent(w,_,S,k):a.setBaseAndExtent(S,k,w,_)}onCopyNormalizeSelectionBound(e){let{s:t,editor:n,o:i}=this.j;!i.select.normalizeSelectionBeforeCutAndCopy||t.isCollapsed()||(!e||e.isTrusted&&r.Dom.isNode(e.target)&&r.Dom.isOrContains(n,e.target))&&this.jodit.s.expandSelection()}constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"],this.__selectedMediaStyle="",this.__pressTarget=null,this.__pressBesideRow=null}}p([(0,o.watch)([":change",":readonly",":afterSetMode"]),o.autobind],m.prototype,"__markSelectedMedia",null),p([o.autobind],m.prototype,"onStartSelection",null),p([(0,o.watch)(["ow:mousedown","ow:touchstart"])],m.prototype,"onOutsidePress",null),p([(0,o.watch)("ow:click")],m.prototype,"onOutsideClick",null),p([(0,o.watch)([":beforeCommandCut"])],m.prototype,"beforeCommandCut",null),p([(0,o.watch)([":beforeCommandSelectall"])],m.prototype,"beforeCommandSelectAll",null),p([(0,o.watch)([":click"])],m.prototype,"onClickRightOfNestedListItem",null),p([(0,o.watch)(":mousedown")],m.prototype,"onMouseDownBesideTableRow",null),p([o.autobind],m.prototype,"__onDragFromRow",null),p([o.autobind],m.prototype,"__onReleaseFromRow",null),p([o.autobind],m.prototype,"__onDblClickBesideRow",null),p([(0,o.watch)([":click"])],m.prototype,"onClickKeepPendingFormat",null),p([(0,o.watch)([":click"])],m.prototype,"onTripleClickNormalizeSelection",null),p([(0,o.watch)([":dblclick"])],m.prototype,"onDblClickPastLineEnd",null),p([(0,o.watch)([":mouseup"])],m.prototype,"onMouseUpOnUneditableLine",null),p([(0,o.watch)([":copy",":cut"])],m.prototype,"onCopyNormalizeSelectionBound",null);let g=e=>r.Dom.isElement(e)&&"false"===e.getAttribute("contenteditable"),b=e=>{var t;return g(e)?"":r.Dom.isText(e)?null!=(t=e.nodeValue)?t:"":(0,a.toArray)(e.childNodes).map(b).join("")};function v(e,t){let n=e.commonAncestorContainer;return r.Dom.isElement(n)?(0,a.toArray)(n.querySelectorAll('[contenteditable="false"]')).filter(n=>{if(!e.intersectsNode(n))return!1;let i=n.ownerDocument.createRange();return i.selectNode(n),0>=e.compareBoundaryPoints(Range.START_TO_START,i)&&e.compareBoundaryPoints(Range.END_TO_END,i)>=0&&!r.Dom.closest(n.parentNode,g,t)}):[]}function y(e){let{startContainer:t,startOffset:n,endContainer:i,endOffset:o}=e;return t===i&&o-n==1&&r.Dom.isElement(t.childNodes[n])}s.pluginSystem.add("select",m)},80792:function(e,t,n){var i=n(6441);i.Config.prototype.minWidth=200,i.Config.prototype.maxWidth="100%",i.Config.prototype.minHeight=200,i.Config.prototype.maxHeight="auto",i.Config.prototype.saveHeightInStorage=!1},45927:function(e,t,n){var i=n(65478),o=n(580),r=n(84767),s=n(41180),a=n(20356);n(80792);var l=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class c extends a.Plugin{afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){let n=e.storage.get("height");n&&(t=n)}(0,s.css)(e.editor,{minHeight:"100%"}),(0,s.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){let{clientHeight:t,clientWidth:n}=this.j.container;if((0,r.isNumber)(e)){let{minHeight:t,maxHeight:n}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(n)&&n<e&&(e=n)}(0,s.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:n})}__setWidth(e){let{clientHeight:t,clientWidth:n}=this.j.container;if((0,r.isNumber)(e)){let{minWidth:t,maxWidth:n}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(n)&&e>n&&(e=n)}(0,s.css)(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:n})}__getNotWorkHeight(){var e;let t=this.j.toolbarContainer;return(t&&this.j.container.contains(t)?t.offsetHeight:0)+((null==(e=this.j.statusbar)?void 0:e.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let n=((0,s.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,r.isNumber)(n)&&n>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,s.css)(e,"minHeight",n)}),this.j.e.fire("setMinHeight",n)),(0,r.isNumber)(this.j.o.maxHeight)){let e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,s.css)(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}if(this.j.container){let e="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,s.css)(this.j.workplace,"height",e),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,r.isNumber)(e)?e+"px":e)}let{clientHeight:i,clientWidth:o}=this.j.container;(e!==i||t!==o)&&this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}l([(0,i.throttle)()],c.prototype,"__initialize",null),l([i.autobind],c.prototype,"__setHeight",null),l([i.autobind],c.prototype,"__setWidth",null),l([i.autobind],c.prototype,"__resizeWorkspaceImd",null),o.pluginSystem.add("size",c)},36204:function(e,t,n){var i=n(82758),o=n(12153),r=n(6441),s=n(35599);r.Config.prototype.beautifyHTML=!i.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.Icon.set("source",s.default),r.Config.prototype.controls.source={mode:i.MODE_SPLIT,exec:e=>{e.toggleMode()},isActive:e=>e.getRealMode()===i.MODE_SOURCE,tooltip:"Change mode"}},60031:function(e,t,n){n.d(t,{AceEditor:function(){return l}});var i=n(82758),o=n(45219),r=n(2748),s=n(21537),a=n(23370);class l extends a.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){let e=this.instance.session.getLength(),t=[],n=0;for(let i=0;e>i;i++)n+=this.getLastColumnIndex(i),i>0&&(n+=1),t[i]=n;return t}getRowColumnIndices(e){let t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let n=1;for(let i=1;i<t.length;i++)e>t[i]&&(n=i+1);let i=e-t[n-1]-1;return{row:n,column:i}}setSelectionRangeIndices(e,t){let n=this.getRowColumnIndices(e),i=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:n,end:i})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){let t=()=>{if(void 0!==this.instance||!this.aceExists())return;let t=this.j.c.div("jodit-source__mirror-fake");r.Dom.append(this.container,t);let n=e.ow.ace;this.instance=n.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setOptions(e.o.sourceEditorNativeOptions),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.__onChange),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==i.MODE_WYSIWYG&&this.setValue(this.getValue());let o=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===i.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",o).on("afterResize afterSetMode",o),o(),this.onReady()},n=!1,o=()=>{if(!e.isInDestruct&&(e.getRealMode()===i.MODE_SOURCE||e.getMode()===i.MODE_SPLIT)){if(!this.aceExists()){n||(n=!0,(0,s.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(o).catch(()=>null));return}t()}};e.e.on("afterSetMode",o),o()}destruct(){var e,t;this.instance.off("change",this.__onChange),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=null==(e=this.j)?void 0:e.events)||t.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,s.isString)(t)&&(e=t)}this.__settingValue=!0;try{this.instance.setValue(e)}finally{this.__settingValue=!1}this.instance.clearSelection()}__onChange(){this.__settingValue||this.toWYSIWYG()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),n=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:n},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{e.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)},this.__settingValue=!1}}!function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([o.autobind],l.prototype,"__onChange",null)},7483:function(e,t,n){n.d(t,{TextAreaEditor:function(){return a}});var i=n(2748),o=n(29960),r=n(41180),s=n(23370);class a extends s.SourceEditor{init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),i.Dom.append(this.container,this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{(0,r.css)(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus blur",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){i.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){let t=this.getValue();if(this.getSelectionStart()>=0){let n=this.getSelectionStart(),i=this.getSelectionEnd();this.setValue(t.substring(0,n)+e+t.substring(i,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){(0,o.attr)(this.instance,"placeholder",e)}setReadOnly(e){(0,o.attr)(this.instance,"readonly",e?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){let{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(){super(...arguments),this.autosize=this.j.async.debounce(()=>{(0,r.css)(this.instance,"height","auto"),(0,r.css)(this.instance,"height",this.instance.scrollHeight)},this.j.defaultTimeout,!0)}}},52968:function(e,t,n){n.d(t,{AceEditor:function(){return i.AceEditor},TextAreaEditor:function(){return o.TextAreaEditor}});var i=n(60031),o=n(7483)},70022:function(e,t,n){n.d(t,{createSourceEditor:function(){return r}});var i=n(21537),o=n(52968);function r(e,t,n,r,s){let a;if((0,i.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,n,r,s);break}default:a=new o.TextAreaEditor(t,n,r,s)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},23370:function(e,t,n){n.d(t,{SourceEditor:function(){return i}});class i{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){var t;this.isReady?e():null==(t=this.j.events)||t.on(this,"ready",e)}constructor(e,t,n,i){this.jodit=e,this.container=t,this.toWYSIWYG=n,this.fromWYSIWYG=i,this.className="",this.isReady=!1}}},52951:function(e,t,n){var i=n(82758),o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(50911);n(36204);var c=n(70022),u=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class d extends l.Plugin{onInsertHTML(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null==(t=this.sourceEditor)||t.insertRaw(e),this.toWYSIWYG(),!1}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;let e=this.j.getEditorValue(!1,i.SOURCE_CONSUMER);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__filledValue=this.getMirrorValue(),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let n=0;n<e.length;n+=1)t+=i.INVISIBLE_SPACE;return t});e>0&&t[e]===i.INVISIBLE_SPACE;)e--;let n=e;for(;n>0;){if("<"===t[--n]&&void 0!==t[n+1]&&t[n+1].match(/[\w/]+/i))return n;if(">"===t[n])break}return e}clnInv(e){return e.replace(i.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===i.MODE_SOURCE)return null==(t=this.sourceEditor)||t.selectAll(),!1}getMirrorValue(){var e;return(null==(e=this.sourceEditor)?void 0:e.getValue())||""}setMirrorValue(e){var t;null==(t=this.sourceEditor)||t.setValue(e)}setFocusToMirror(){var e;let t=this.j.od.activeElement;(!t||t===this.j.od.body||this.j.container.contains(t))&&(null==(e=this.sourceEditor)||e.focus())}saveSelection(){if(this.j.getRealMode()===i.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let t=this.j.s.marker(!0),n=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,n)+this.clnInv(t.outerHTML)+e.substring(n))}else{let t=this.j.s.marker(!0),n=this.j.s.marker(!1),i=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,i)+this.clnInv(t.outerHTML)+e.slice(i,o)+this.clnInv(n.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){let e,t;if(this.j.getRealMode()===i.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let n=this.getMirrorValue();try{if(n=n.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",n);(0,a.isString)(e)&&(n=e)}if(t=e=n.indexOf(this.tempMarkerStart),n=n.replace(this.tempMarkerStartReg,""),-1!==e){let e=n.indexOf(this.tempMarkerEnd);-1!==e&&(t=e)}n=n.replace(this.tempMarkerEndReg,"")}finally{n=n.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(n),this.setMirrorSelectionRange(e,t),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var n;null==(n=this.sourceEditor)||n.setSelectionRange(e,t)}onReadonlyReact(){var e;null==(e=this.sourceEditor)||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),r.Dom.append(e.workplace,this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{r.Dom.append(e.workplace,this.mirrorContainer)}),this.sourceEditor=(0,c.createSourceEditor)("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{var t;e.key===i.KEY_ESC&&(null==(t=this.sourceEditor)?void 0:t.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{var t;null==(t=this.sourceEditor)||t.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){let t=()=>{var t;if(e.isInDestruct)return!1;let n=e.ow.html_beautify;return!!n&&!e.isInDestruct&&(null==(t=e.events)||t.off("beautifyHTML").on("beautifyHTML",e=>n(e)),!0)};if(!t()){let n=!1,o=()=>{n||e.getMode()!==i.MODE_SOURCE&&e.getMode()!==i.MODE_SPLIT||(n=!0,(0,a.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(()=>{t()&&this.beautifyUntouched()},()=>null))};e.e.on("afterSetMode.source",o),o()}}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){let t=this.j;(t.getMode()===i.MODE_SPLIT||t.getMode()===i.MODE_SOURCE)&&this.fromWYSIWYG(e)}initSourceEditor(e){var t;if("area"!==e.o.sourceEditor){let t=(0,c.createSourceEditor)(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{var n;this.takeOver(t),null==(n=e.events)||n.fire("sourceEditorReady",e)})}else null==(t=this.sourceEditor)||t.onReadyAlways(()=>{var t;this.syncValueFromWYSIWYG(!0),null==(t=e.events)||t.fire("sourceEditorReady",e)})}takeOver(e){let t=this.sourceEditor;if(!t||t===e){this.sourceEditor=e,this.syncValueFromWYSIWYG(!0);return}let n=t.getValue(),i=t.getSelectionStart(),o=t.getSelectionEnd(),r=t.isFocused,s=n===this.__filledValue;t.destruct(),this.sourceEditor=e,s?this.syncValueFromWYSIWYG(!0):(e.setValue(n),this.toWYSIWYG()),i>=0&&e.setSelectionRange(i,o),r&&e.focus()}beautifyUntouched(){var e,t;let n=this.getMirrorValue();if(this.j.o.editHTMLDocumentMode||!n||n!==this.__filledValue)return;let i=this.j.e.fire("beautifyHTML",n);if((0,a.isString)(i)&&i!==n){let n=null==(e=this.sourceEditor)?void 0:e.isFocused;this.setMirrorValue(i),this.__filledValue=this.getMirrorValue(),n&&(null==(t=this.sourceEditor)||t.focus())}}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),r.Dom.safeRemove(this.mirrorContainer)}constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.__filledValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionStart())?t:0},this.getSelectionEnd=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionEnd())?t:0}}}u([(0,o.watch)(":insertHTML.source")],d.prototype,"onInsertHTML",null),u([o.autobind],d.prototype,"fromWYSIWYG",null),u([o.autobind],d.prototype,"toWYSIWYG",null),u([o.autobind],d.prototype,"getNormalPosition",null),u([(0,o.watch)(":beforeCommand.source")],d.prototype,"onSelectAll",null),u([(0,o.watch)(":beforeSetMode.source")],d.prototype,"saveSelection",null),u([(0,o.watch)(":afterSetMode.source")],d.prototype,"removeSelection",null),u([o.autobind],d.prototype,"setMirrorSelectionRange",null),u([(0,o.watch)(":readonly.source")],d.prototype,"onReadonlyReact",null),u([o.autobind],d.prototype,"syncValueFromWYSIWYG",null),s.pluginSystem.add("source",d)},35599: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.5 6-5 6 5 6m11-12 5 6-5 6M14 3l-4 18"/> </g> </svg> '},46614:function(e,t,n){var i=n(87612),o=n(70799),r=n(29960),s=n(86583),a=n(12153),l=n(6441),c=n(26532),u=n(93602),d=n(75259);l.Config.prototype.speechRecognize={api:void 0!==c.SpeechRecognition?c.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.Icon.set("speech-recognize",d.default),l.Config.prototype.controls.speechRecognize={isVisible(e){return!!e.o.speechRecognize.api},isActive(e,t){let n=(0,s.dataBind)(e,"speech");return!!(null==n?void 0:n.isEnabled)},isDisabled(e){return!e.o.speechRecognize.api},exec(e,t,{button:n,control:a}){var l;let{api:c,lang:d,continuous:h,interimResults:p,sound:f}=e.o.speechRecognize;if(!c)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,s.dataBind)(e,"speech");if(!m){let t=new c;(m=new u.RecognizeManager(e.async,t)).lang=(0,o.isString)(d)?d:null!=(l=(0,r.attr)(e.od.documentElement,"lang"))?l:void 0,m.continuous=h,m.interimResults=p,m.sound=f,(0,s.dataBind)(e,"speech",m),m.on("pulse",e=>{n.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),e.hookStatus("beforeDestruct",()=>{(0,s.dataBind)(e,"speech",null),m.destruct()})}if(a.args){let e=a.args[0];if((0,i.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&n.setMod("pulse",!0),n.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,n){var i;let o=(0,s.dataBind)(e,"speech"),r=null!=(i=null==o?void 0:o[t])?i:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${r?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${n}</span>`},mods:{stroke:!1}}},26532:function(e,t,n){var i=n(82758);let o=i.globalWindow?i.globalWindow.SpeechRecognition||i.globalWindow.webkitSpeechRecognition:void 0;n.d(t,["SpeechRecognition",0,o])},54076:function(e,t,n){n.d(t,{execSpellCommand:function(){return i}});function i(e,t){let[n,i]=t.split("::");"open"===n.toLowerCase()&&i&&/^(javascript:|data:|vbscript:)/i.test(i.trim())||e.execCommand(n,null,i)}},93602:function(e,t,n){n.d(t,{RecognizeManager:function(){return a}});var i=n(65478),o=n(72757),r=n(37643),s=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class a extends o.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,r.closeSound)(this),a._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,a._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let n=e.results.item(t);if(n.length){let{transcript:e}=n.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,r.sound)(this,{frequency:e})}constructor(e,t){super(),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(940)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,a._instances.add(this)}}a._instances=new Set,s([i.autobind],a.prototype,"_onResults",null),s([i.autobind],a.prototype,"_onProgress",null),s([i.autobind],a.prototype,"_onError",null)},37643:function(e,t,n){n.d(t,{closeSound:function(){return s},sound:function(){return r}});var i=n(82758);let o=new WeakMap;function r(e,{sec:t=.1,frequency:n=440,gain:s=.1,type:a="sine"}={}){let l=function(e){if(!i.globalWindow)return null;let t=o.get(e);if(t&&"closed"!==t.state)return t;let n=i.globalWindow.AudioContext||i.globalWindow.webkitAudioContext;if(!n)return null;let r=new n;return o.set(e,r),r}(e);if(!l)return;let c=l.createGain(),u=l.createOscillator();u.type=a,u.frequency.value=n,c.gain.value=s,u.connect(c),c.connect(l.destination),u.start(),u.stop(l.currentTime+t)}function s(e){let t=o.get(e);t&&(o.delete(e),"closed"!==t.state&&t.close())}},71705:function(e){e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},89930:function(e){e.exports={newline:"ř\xe1dek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpozn\xe1n\xed Řeči",Sound:"Zvuk","Interim Results":"Průběžn\xe9 V\xfdsledky"}},34945:function(e){e.exports={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},63134:function(e){e.exports={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},66835:function(e){e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},1115:function(e){e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},59302:function(e){e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},94141:function(e){e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},24877:function(e){e.exports={newline:"\xfajsor",delete:"t\xf6rl\xe9s",space:"t\xe9r","Speech Recognize":"A Besz\xe9d Felismeri",Sound:"Hang","Interim Results":"Idők\xf6zi Eredm\xe9nyek"}},80651:function(e){e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},90492:function(e,t,n){n.r(t),n.d(t,{ar:function(){return i||(i=n.t(I,2))},cs_cz:function(){return o||(o=n.t(T,2))},de:function(){return r||(r=n.t(j,2))},es:function(){return s||(s=n.t(A,2))},fa:function(){return a||(a=n.t(x,2))},fi:function(){return l||(l=n.t(P,2))},fr:function(){return c||(c=n.t(L,2))},he:function(){return u||(u=n.t(R,2))},hu:function(){return d||(d=n.t(O,2))},id:function(){return h||(h=n.t(z,2))},it:function(){return p||(p=n.t(M,2))},ja:function(){return f||(f=n.t(N,2))},ko:function(){return m||(m=n.t(B,2))},mn:function(){return g||(g=n.t(F,2))},nl:function(){return b||(b=n.t(H,2))},no:function(){return v||(v=n.t(U,2))},pl:function(){return y||(y=n.t(V,2))},pt_br:function(){return w||(w=n.t(W,2))},ru:function(){return _||(_=n.t(K,2))},sk:function(){return S||(S=n.t(Y,2))},tr:function(){return k||(k=n.t($,2))},ua:function(){return C||(C=n.t(G,2))},zh_cn:function(){return E||(E=n.t(J,2))},zh_tw:function(){return D||(D=n.t(q,2))}});var i,o,r,s,a,l,c,u,d,h,p,f,m,g,b,v,y,w,_,S,k,C,E,D,I=n(71705),T=n(89930),j=n(34945),A=n(63134),x=n(66835),P=n(1115),L=n(59302),R=n(94141),O=n(24877),z=n(80651),M=n(62395),N=n(16407),B=n(37272),F=n(22113),H=n(22432),U=n(17081),V=n(30798),W=n(8661),K=n(19147),Y=n(76220),$=n(93620),G=n(40372),J=n(69874),q=n(88774)},62395:function(e){e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},16407:function(e){e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},37272:function(e){e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},22113:function(e){e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},22432:function(e){e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},17081:function(e){e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},30798:function(e){e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},8661:function(e){e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},19147:function(e){e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},76220:function(e){e.exports={newline:"nov\xfd riadok",delete:"vymazať",space:"medzera","Speech Recognize":"Rozpozn\xe1vanie reči",Sound:"Zvuk","Interim Results":"Predbežn\xe9 v\xfdsledky"}},93620:function(e){e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},40372:function(e){e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},69874:function(e){e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},88774:function(e){e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},3115:function(e,t,n){var i=n(37133),o=n(2748),r=n(580),s=n(37790),a=n(50911);n(46614);var l=n(2303),c=n(54076),u=n(90492),d=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class h extends a.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,r.extendLang)(u),(0,s.keys)(t,!1).forEach(n=>{n.split("|").forEach(i=>{i=i.trim().toLowerCase(),this._commandToWord[i]=t[n];let o=e.i18n(i);o!==i&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[n].trim()})})}))}beforeDestruct(e){o.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),o.Dom.append(this.j.workplace,this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{o.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),o.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:n}=t;if(!this._checkCommand(e)){let{range:i}=n,r=n.current();if(n.isCollapsed()&&o.Dom.isText(r)&&o.Dom.isOrContains(t.editor,r)&&r.nodeValue){let o=r.nodeValue;r.nodeValue=o+(/[\u00A0 ]\uFEFF*$/.test(o)?"":" ")+e,i.setStartAfter(r),n.selectRange(i),t.synchronizeValues()}else n.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,c.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(){super(...arguments),this.buttons=[{group:"state",name:"speechRecognize"}],this._commandToWord={}}}d([(0,i.watch)(":speechRecognizeProgressResult")],h.prototype,"onSpeechRecognizeProgressResult",null),d([(0,i.watch)(":speechRecognizeResult")],h.prototype,"onSpeechRecognizeResult",null),l.Jodit.plugins.add("speech-recognize",h)},75259: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="9" y="2" width="6" height="13" rx="3"/><path d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"/> </g> </svg> '},99085:function(e,t,n){var i=n(12153),o=n(6441),r=n(10937);o.Config.prototype.spellcheck=!1,i.Icon.set("spellcheck",r.default),o.Config.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:r.default,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},28906:function(e){e.exports={Spellcheck:"التدقيق الإملائي"}},24351:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},32806:function(e){e.exports={Spellcheck:"Rechtschreibpr\xfcfung"}},77725:function(e){e.exports={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},26428:function(e){e.exports={Spellcheck:"غلطیابی املایی"}},42820:function(e){e.exports={Spellcheck:"Oikeinkirjoituksen tarkistus"}},60373:function(e){e.exports={Spellcheck:"V\xe9rification Orthographique"}},98370:function(e){e.exports={Spellcheck:"בדיקת איות"}},44850:function(e){e.exports={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},3636:function(e){e.exports={Spellcheck:"Spellchecking"}},26529:function(e,t,n){n.r(t),n.d(t,{ar:function(){return i||(i=n.t(I,2))},cs_cz:function(){return o||(o=n.t(T,2))},de:function(){return r||(r=n.t(j,2))},es:function(){return s||(s=n.t(A,2))},fa:function(){return a||(a=n.t(x,2))},fi:function(){return l||(l=n.t(P,2))},fr:function(){return c||(c=n.t(L,2))},he:function(){return u||(u=n.t(R,2))},hu:function(){return d||(d=n.t(O,2))},id:function(){return h||(h=n.t(z,2))},it:function(){return p||(p=n.t(M,2))},ja:function(){return f||(f=n.t(N,2))},ko:function(){return m||(m=n.t(B,2))},mn:function(){return g||(g=n.t(F,2))},nl:function(){return b||(b=n.t(H,2))},no:function(){return v||(v=n.t(U,2))},pl:function(){return y||(y=n.t(V,2))},pt_br:function(){return w||(w=n.t(W,2))},ru:function(){return _||(_=n.t(K,2))},sk:function(){return S||(S=n.t(Y,2))},tr:function(){return k||(k=n.t($,2))},ua:function(){return C||(C=n.t(G,2))},zh_cn:function(){return E||(E=n.t(J,2))},zh_tw:function(){return D||(D=n.t(q,2))}});var i,o,r,s,a,l,c,u,d,h,p,f,m,g,b,v,y,w,_,S,k,C,E,D,I=n(28906),T=n(24351),j=n(32806),A=n(77725),x=n(26428),P=n(42820),L=n(60373),R=n(98370),O=n(44850),z=n(3636),M=n(73220),N=n(55776),B=n(13995),F=n(6402),H=n(1879),U=n(1322),V=n(53361),W=n(70824),K=n(65140),Y=n(60407),$=n(42247),G=n(68891),J=n(63195),q=n(42107)},73220:function(e){e.exports={Spellcheck:"Controllo ortografico"}},55776:function(e){e.exports={Spellcheck:"スペルチェック"}},13995:function(e){e.exports={Spellcheck:"맞춤법 검사"}},6402:function(e){e.exports={Spellcheck:"Дүрмийн алдаа шалгах"}},1879:function(e){e.exports={Spellcheck:"Spellingcontrole"}},1322:function(e){e.exports={Spellcheck:"Stavekontroll"}},53361:function(e){e.exports={Spellcheck:"Sprawdzanie pisowni"}},70824:function(e){e.exports={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},65140:function(e){e.exports={Spellcheck:"Проверка орфографии"}},60407:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},42247:function(e){e.exports={Spellcheck:"Yazım denetimi"}},68891:function(e){e.exports={Spellcheck:"Перевірка орфографії"}},63195:function(e){e.exports={Spellcheck:"拼写检查"}},42107:function(e){e.exports={Spellcheck:"拼字檢查"}},43809:function(e,t,n){var i=n(65478),o=n(580),r=n(29960),s=n(50911);n(99085);var a=n(26529);class l extends s.Plugin{afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,r.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),this.buttons=[{group:"state",name:"spellcheck"}],(0,o.extendLang)(a)}}!function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([i.autobind],l.prototype,"toggleSpellcheck",null),o.pluginSystem.add("spellcheck",l)},10937: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 14 5-11 5 11M5 10h6m0 8 3 3 7-8"/> </g> </svg> '},99649:function(e,t,n){var i=n(6441);i.Config.prototype.showCharsCounter=!0,i.Config.prototype.countHTMLChars=!1,i.Config.prototype.countTextSpaces=!1,i.Config.prototype.showWordsCounter=!0},7309:function(e,t,n){var i=n(82758),o=n(2748),r=n(580),s=n(20356);n(99649);class a extends s.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){o.Dom.safeRemove(this.charCounter),o.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,this.reInit=()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()},this.calc=this.j.async.throttle(()=>{let e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace((0,i.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):e.replace((0,i.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace((0,i.INVISIBLE_SPACE_REG_EXP)(),"").split((0,i.SPACE_REG_EXP)()).filter(e=>e.length).length))},this.j.defaultTimeout)}}r.pluginSystem.add("stat",a)},48038:function(e,t,n){var i=n(6441);i.Config.prototype.toolbarSticky=!0,i.Config.prototype.toolbarDisableStickyForMobile=!0,i.Config.prototype.toolbarStickyOffset=0},68687:function(e,t,n){var i=n(82758),o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(20356);n(48038);let c=!i.IS_ES_NEXT&&i.IS_IE;class u extends l.Plugin{afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;let t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,n=(0,a.offset)(e.container,e,e.od,!0),o=e.getMode()===i.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>n.top&&t+e.o.toolbarStickyOffset<n.top+n.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===o)return;let r=e.toolbarContainer;r&&(o?this.addSticky(r):this.removeSticky(r)),e.e.fire("toggleSticky",o)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){r.Dom.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(){super(...arguments),this.__isToolbarStuck=!1,this.__createDummy=e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),r.Dom.before(e,this.__dummyBox)},this.addSticky=e=>{this.__isToolbarStuck||(c&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,a.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,a.css)(this.__dummyBox,{height:e.offsetHeight})},this.removeSticky=e=>{this.__isToolbarStuck&&((0,a.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}}!function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([(0,o.throttle)()],u.prototype,"__onScroll",null),s.pluginSystem.add("sticky",u)},87394:function(e,t,n){var i=n(2748),o=n(12153),r=n(6441),s=n(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],o.Icon.set("symbols",s.default),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(e,t,n)=>{let o=e.e.fire("generateSpecialCharactersTable.symbols");if(o){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),i.Dom.append(t,o),e.e.on(o,"close_dialog",n),t}e.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=i.Dom.first(o,e=>i.Dom.isTag(e,"a"));t&&t.focus()}}}},20741:function(e){e.exports={symbols:"رمز"}},3958:function(e){e.exports={symbols:"symbol"}},53437:function(e){e.exports={symbols:"Symbol"}},56882:function(e){e.exports={symbols:"S\xedmbolo"}},75703:function(e){e.exports={symbols:"سمبل"}},49759:function(e){e.exports={symbols:"Symbolit"}},44730:function(e){e.exports={symbols:"caract\xe8re"}},70945:function(e){e.exports={symbols:"תו מיוחד"}},49841:function(e){e.exports={symbols:"Szimb\xf3lum"}},33295:function(e){e.exports={symbols:"simbol"}},32824:function(e,t,n){n.r(t),n.d(t,{ar:function(){return i||(i=n.t(E,2))},cs_cz:function(){return o||(o=n.t(D,2))},de:function(){return r||(r=n.t(I,2))},es:function(){return s||(s=n.t(T,2))},fa:function(){return a||(a=n.t(j,2))},fi:function(){return l||(l=n.t(A,2))},fr:function(){return c||(c=n.t(x,2))},he:function(){return u||(u=n.t(P,2))},hu:function(){return d||(d=n.t(L,2))},id:function(){return h||(h=n.t(R,2))},it:function(){return p||(p=n.t(O,2))},ja:function(){return f||(f=n.t(z,2))},ko:function(){return m||(m=n.t(M,2))},mn:function(){return g||(g=n.t(N,2))},nl:function(){return b||(b=n.t(B,2))},pl:function(){return v||(v=n.t(F,2))},pt_br:function(){return y||(y=n.t(H,2))},ru:function(){return w||(w=n.t(U,2))},tr:function(){return _||(_=n.t(V,2))},ua:function(){return S||(S=n.t(W,2))},zh_cn:function(){return k||(k=n.t(K,2))},zh_tw:function(){return C||(C=n.t(Y,2))}});var i,o,r,s,a,l,c,u,d,h,p,f,m,g,b,v,y,w,_,S,k,C,E=n(20741),D=n(3958),I=n(53437),T=n(56882),j=n(75703),A=n(49759),x=n(44730),P=n(70945),L=n(49841),R=n(33295),O=n(47615),z=n(83059),M=n(22396),N=n(58285),B=n(51804),F=n(53650),H=n(41369),U=n(57855),V=n(44328),W=n(91080),K=n(89702),Y=n(66434)},47615:function(e){e.exports={symbols:"Simbolo"}},83059:function(e){e.exports={symbols:"symbol"}},22396:function(e){e.exports={symbols:"기호"}},58285:function(e){e.exports={symbols:"тэмдэгт"}},51804:function(e){e.exports={symbols:"symbool"}},53650:function(e){e.exports={symbols:"symbol"}},41369:function(e){e.exports={symbols:"S\xedmbolo"}},57855:function(e){e.exports={symbols:"символ"}},44328:function(e){e.exports={symbols:"Sembol"}},91080:function(e){e.exports={symbols:"символ"}},89702:function(e){e.exports={symbols:"符号"}},66434:function(e){e.exports={symbols:"符號"}},59495:function(e,t,n){var i=n(82758),o=n(2748),r=n(580),s=n(43555),a=n(20356);n(87394);var l=n(32824);class c extends a.Plugin{afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{let t=e.c.fromHTML(`<div class="jodit-symbols__container">
262
+ </div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;let{j:t}=this;if(t.getRealMode()===i.MODE_WYSIWYG)switch(e.key){case i.KEY_ESC:this.close();break;case i.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,n=!1){this.isOpened||(r.Dom.append(this.j.workplace,this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",n);let i=null!=e?e:(this.j.s.sel||"").toString();i&&(this.queryInput.value=i),t&&(this.replaceInput.value=t),this.setMod("empty-query",!i.length),this.j.e.fire(this,"needUpdateCounters"),i?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),r.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){let e=(0,s.position)(this.j.toolbarContainer);(0,s.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,s.css)(this.container,{top:null,left:null})}constructor(e){var t;let n;super(e),t=this,this.selInfo=null,this._currentIndex=0,this.isOpened=!1;let{query:o,replace:r,cancel:a,next:c,prev:u,replaceBtn:d,current:h,count:p}=(0,s.refs)(this.container);this.queryInput=o,this.replaceInput=r,this.closeButton=a,this.replaceButton=d,this.currentBox=h,this.countBox=p;let f=()=>this.close(),m=()=>void e.e.fire(this,"pressReplaceButton"),g=()=>void e.e.fire("searchNext"),b=()=>void e.e.fire("searchPrevious"),v=e=>t=>{t.detail||(t.preventDefault(),e())};e.e.on(this.closeButton,"pointerdown",()=>(f(),!1)).on(this.closeButton,"click",v(f)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(m(),!1)).on(this.replaceButton,"click",v(m)).on(c,"pointerdown",()=>(g(),!1)).on(c,"click",v(g)).on(u,"pointerdown",()=>(b(),!1)).on(u,"click",v(b)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,s.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(n=this.j.async.debounce(n=>{var o;return(o=function*(){n.key===i.KEY_ENTER?(yield e.e.fire("searchNext"))&&t.close():e.e.fire(t,"needUpdateCounters")},function(){var e=this,t=arguments;return new Promise(function(n,i){var r=o.apply(e,t);function s(e){l(r,n,i,s,a,"next",e)}function a(e){l(r,n,i,s,a,"throw",e)}s(void 0)})})()},this.j.defaultTimeout),e=>{e.key===i.KEY_ENTER&&(e.preventDefault(),e.stopImmediatePropagation()),n(e)}))}};c([(0,o.watch)([":keydown","queryInput:keydown"])],u.prototype,"onEditorKeyDown",null),c([o.autobind],u.prototype,"open",null),c([o.autobind],u.prototype,"close",null),c([(0,o.watch)(":toggleSticky")],u.prototype,"calcSticky",null),u=c([o.component],u)},55311:function(e,t,n){n(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(e,t,n){var i=n(82758),o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(50911),c=n(45124),u=n(67510),d=n(76014);n(55311);var h=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let p="table_processor_observer";class f extends l.Plugin{get __tableModule(){return this.j.getInstance(d.Table,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown",this.__onKeyDown,{top:!0}).on("clickEditor",this.__onClickAfterDrag,{top:!0}).on("keydown.select-cells",e=>{e.key===i.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody clickThead clickTfoot clickTable",()=>{var e;let t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&(null==(e=this.j.s.sel)||e.removeAllRanges()),!1})}__onKeyDown(e){(null==e?void 0:e.repeat)&&this.__followCaret(),this.__keyDownCell=this.__caretCell(),this.__keyDownRange=this.j.s.range.cloneRange(),this.__keyDownInLink=this.__isInLink()}__isInLink(){return!!r.Dom.closest(this.j.s.range.startContainer,"a",this.j.editor)}__caretCell(){return r.Dom.closest(this.j.s.range.startContainer,r.Dom.isCell,this.j.editor)}onKeyUp(){this.__followCaret()}__followCaret(){let e=this.__keyDownRange;if(this.__keyDownRange=null,this.j.o.readonly||!(0,c.isMoved)(this.j,e))return;let t=this.__caretCell(),n=this.__keyDownInLink&&!this.__isInLink();if(t===this.__keyDownCell&&!(t&&n))return;let i=this.__tableModule.getAllSelectedCells().length>0;if(this.unselectCells(),!t){i&&this.j.e.fire("hidePopup","cells");return}let o=r.Dom.closest(t,"table",this.j.editor);o&&(this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.fire("showPopup",o,this.__markedBound,"cells"))}__markedBound(){let e=this.__tableModule.getAllSelectedCells().filter(e=>e.isConnected).map(e=>(0,a.position)(e,this.j));if(!e.length)return{left:0,top:0,width:0,height:0};let t=Math.min(...e.map(e=>e.left)),n=Math.min(...e.map(e=>e.top));return{left:t,top:n,width:Math.max(...e.map(e=>e.left+e.width))-t,height:Math.max(...e.map(e=>e.top+e.height))-n}}onStartSelection(e,t){var n;if(this.j.o.readonly)return;let i=r.Dom.closest(e,"table",this.j.editor);return((null==t?void 0:t.ctrlKey)||(null==t?void 0:t.metaKey))&&e!==this.j.editor&&i&&r.Dom.isCell(e)?(this.__tableModule.getAllSelectedCells().includes(e)?this.__tableModule.removeSelection(e):(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__tableModule.addSelection(e)),this.__selectedCell=e,null==(n=this.j.s.sel)||n.removeAllRanges(),this.__tableModule.getAllSelectedCells().length?this.j.e.fire("showPopup",i,this.__markedBound,"cells"):this.j.e.fire("hidePopup","cells"),!1):(this.unselectCells(),e===this.j.editor)?void 0:e&&i?(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__movedTo=e,this.__tableModule.addSelection(e),this.j.e.on(i,"mousemove.select-cells touchmove.select-cells",this.__onMove.bind(this,i)).on(i,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,i)),new Set([this.j.ew,this.j.ow]).forEach(e=>this.j.e.on(e,"mouseup.select-cells touchend.select-cells",this.__onRelease.bind(this,i))),!1):void 0}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onMouseDown(){this.__keepMarks=!1}__onClickAfterDrag(){var e;if(this.__keepMarks)return this.__keepMarks=!1,null==(e=this.j.s.sel)||e.removeAllRanges(),this.j.e.stopPropagation("clickEditor"),!1}onPress(e){this.__inPopup=!!(e&&r.Dom.isNode(e.target)&&u.UIElement.closestElement(e.target,u.Popup))}onChange(){this.j.isLocked||this.__isSelectionMode||this.__inPopup||this.__onRemoveSelection()}__onMove(e,t){var n;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(p))return;let i=this.__cellUnder(t,e);if(!i||!this.__selectedCell||i===this.__movedTo)return;this.__movedTo=i,i!==this.__selectedCell&&this.j.lock(p),this.unselectCells();let o=this.__tableModule.getSelectedBound(e,[i,this.__selectedCell]),r=this.__tableModule.formalMatrix(e);for(let e=o[0][0];e<=o[1][0];e+=1)for(let t=o[0][1];t<=o[1][1];t+=1)this.__tableModule.addSelection(r[e][t]);this.__tableModule.getAllSelectedCells().length>1&&(null==(n=this.j.s.sel)||n.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation()}__onRemoveSelection(e){var t;if(!(null==(t=null==e?void 0:e.buffer)?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__cellUnder(e,t){var n;let i=(null!=(n=this.j.o.shadowRoot)?n:this.j.ed).elementFromPoint(e.clientX,e.clientY);return r.Dom.closest(i,e=>r.Dom.isCell(e)&&!r.Dom.closest(e,"table",t),t)}__onStopSelection(e,t){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let n=this.__cellUnder(t,e);n&&(this.__showCellsPopup(e,[n,this.__selectedCell]),this.__stopListening())}__onRelease(e,t){if(this.__isSelectionMode){this.__isSelectionMode=!1,this.j.isLockedNotBy(p)||this.j.unlock();let n=this.__tableModule.getAllSelectedCells();n.length>1&&r.Dom.isOrContains(this.j.editor,t.target)&&(this.__keepMarks=!0,this.__showCellsPopup(e,n))}this.__stopListening()}__showCellsPopup(e,t){var n,i;let o=this.__tableModule.getSelectedBound(e,t),r=this.__tableModule.formalMatrix(e),s=null==(n=r[o[1][0]])?void 0:n[o[1][1]];(null==(i=r[o[0][0]])?void 0:i[o[0][1]])&&s&&this.j.e.fire("showPopup",e,this.__markedBound,"cells")}__stopListening(){(0,a.$$)("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),new Set([this.j.ew,this.j.ow]).forEach(e=>this.j.e.off(e,"mouseup.select-cells touchend.select-cells")),this.__movedTo=null}unselectCells(e){let t=this.__tableModule,n=t.getAllSelectedCells();n.length&&n.forEach(n=>{e&&e===n||t.removeSelection(n)})}onExecCommand(e){if(/^(delete|backspace)(word|sentence)?button$/.test(e)&&this.__tableModule.getAllSelectedCells().length>1){let e=this.__tableModule.getAllSelectedCells();return e.forEach(e=>{r.Dom.detach(e),r.Dom.append(e,this.j.createInside.element("br"))}),this.unselectCells(),this.j.s.setCursorIn(e[0]),this.j.synchronizeValues(),!1}if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow|headerrow)/.test(e)){e=e.replace("table","");let t=this.__tableModule.getAllSelectedCells();if(t.length){let[n]=t;if(!n)return;let i=r.Dom.closest(n,"table",this.j.editor);if(!i)return;switch(e){case"splitv":this.__tableModule.splitVertical(i);break;case"splitg":this.__tableModule.splitHorizontal(i);break;case"merge":this.__tableModule.mergeSelected(i);break;case"empty":t.forEach(e=>{r.Dom.detach(e),r.Dom.append(e,this.j.createInside.element("br"))});break;case"bin":this.__removeTable(i);break;case"binrow":{let e=new Set(t.map(e=>e.parentNode)),o=this.__nearestCell(i,n,(0,a.toArray)(e).map(e=>e.rowIndex),!0);e.forEach(e=>{this.__tableModule.removeRow(i,e.rowIndex)}),o&&this.j.s.setCursorIn(o)}break;case"bincolumn":{let e=new Set,o=[];t.forEach(t=>{let[,n]=this.__tableModule.formalCoordinate(i,t);e.has(n)||(o.push(n),e.add(n))});let r=this.__nearestCell(i,n,o,!1);o.sort((e,t)=>t-e).forEach(e=>{this.__tableModule.removeColumn(i,e)}),r&&this.j.s.setCursorIn(r)}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(i,n,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(i,n.parentNode,"addrowafter"===e);break;case"headerrow":this.__toggleHeaderRow(i,t)}/^split/.test(e)&&t.forEach(e=>this.__tableModule.addSelection(e)),/^bin(row|column)$/.test(e)&&!this.__tableModule.getColumnsCount(i)&&this.__removeTable(i)}return!1}}__toggleHeaderRow(e,t){let n=this.__tableModule;this.j.s.save();let i=n.toggleHeaderRow(e);this.j.s.restore(),t.forEach(e=>{let t=i.get(e);t&&(n.removeSelection(e),n.addSelection(t))})}__nearestCell(e,t,n,i){let o=this.__tableModule.formalMatrix(e),[r,s]=this.__tableModule.formalCoordinate(e,t),a=i?r:s,l=i?o.length:o[r].length,c=e=>!n.includes(e)&&(i?o[e][s]:o[r][e])||null;for(let e=a+1;e<l;e+=1){let t=c(e);if(t)return t}for(let e=a-1;e>=0;e-=1){let t=c(e);if(t)return t}return null}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>(0,a.alignElement)(e,t))}__removeTable(e){let t=e.parentNode,n=r.Dom.findNotEmptySibling(e,!1),i=r.Dom.findNotEmptySibling(e,!0);r.Dom.safeRemove(e),this.j.s.setCursorIn(n||i||t,!!n)}beforeDestruct(e){this.__onRemoveSelection(),this.__stopListening(),e.e.off(".select-cells").off("keydown",this.__onKeyDown).off("clickEditor",this.__onClickAfterDrag)}constructor(){super(...arguments),this.__keyDownCell=null,this.__keyDownRange=null,this.__keyDownInLink=!1,this.__selectedCell=null,this.__isSelectionMode=!1,this.__movedTo=null,this.__keepMarks=!1,this.__inPopup=!1}}f.requires=["select"],h([o.autobind],f.prototype,"__onKeyDown",null),h([(0,o.watch)(":keyup")],f.prototype,"onKeyUp",null),h([o.autobind],f.prototype,"__markedBound",null),h([o.autobind],f.prototype,"onStartSelection",null),h([(0,o.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),h([(0,o.watch)([":mousedown",":touchstart"])],f.prototype,"onMouseDown",null),h([o.autobind],f.prototype,"__onClickAfterDrag",null),h([(0,o.watch)(["ow:mousedown","ow:touchstart","ow:keydown",":mousedown",":touchstart",":keydown"])],f.prototype,"onPress",null),h([(0,o.watch)(":change")],f.prototype,"onChange",null),h([o.autobind],f.prototype,"__onRemoveSelection",null),h([o.autobind],f.prototype,"__onStopSelection",null),h([o.autobind],f.prototype,"onExecCommand",null),h([o.autobind],f.prototype,"onAfterCommand",null),s.pluginSystem.add("selectCells",f)},67215:function(e,t,n){n(6441).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},9881:function(e,t,n){var i=n(82758),o=n(65478),r=n(2748),s=n(580),a=n(4510),l=n(87058),c=n(49055),u=n(76078),d=n(50911),h=n(67510);n(67215);var p=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let f=`url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg'><filter id='s' x='0' y='0' width='1' height='1' color-interpolation-filters='sRGB'><feFlood flood-color='#84bbfc' flood-opacity='.6'/><feComposite in2='SourceGraphic'/></filter></svg>")}#s")`;class m extends d.Plugin{afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)}),e.e.on("dblclick",this.__onDblClickBesideRow,{top:!0}),e.e.on(e.ed,"selectionchange",this.__markSelectedMedia)}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.off(t+".select",this.onStartSelection)}),this.__endPressBesideRow(),e.e.off("dblclick",this.__onDblClickBesideRow),e.e.off(e.ed,"selectionchange",this.__markSelectedMedia)}__markSelectedMedia(){var e;let{s:t,editor:n,o}=this.j,a=(null==(e=t.sel)?void 0:e.rangeCount)?t.sel.getRangeAt(0):null,l=[];a&&!a.collapsed&&!o.readonly&&this.j.getMode()!==i.MODE_SOURCE&&!y(a)&&r.Dom.isOrContains(n,a.commonAncestorContainer)&&v(a,n).forEach(e=>{let t=e.querySelector("video, iframe, audio, object, embed"),n=(0,u.cssPath)(e);t&&n&&l.push(`${n}::selection,${n} ::selection{background:transparent}`,`${(0,u.cssPath)(t)}{filter:${f}}`)});let c=l.join("");c!==this.__selectedMediaStyle&&(this.__selectedMediaStyle=c,(0,s.getContainer)(this.j,m,"style",!0).textContent=c)}onStartSelection(e){let{j:t}=this,n,i=e.target;for(;void 0===n&&i&&i!==t.editor;)n=t.e.fire((0,l.camelCase)(e.type+"_"+i.nodeName.toLowerCase()),i,e),i=i.parentElement;"click"===e.type&&void 0===n&&i===t.editor&&t.e.fire(e.type+"Editor",i,e)}onOutsidePress(e){this.__pressTarget=e.target}onOutsideClick(e){let t=e.target,n=this.__pressTarget;this.__pressTarget=null,r.Dom.up(t,e=>e===this.j.editor)||n&&h.UIElement.closestElement(n,h.Popup)||r.Dom.isNode(t)&&!t.isConnected||h.UIElement.closestElement(t,h.Popup)||this.j.e.fire("outsideClick",e)}beforeCommandCut(){let{s:e}=this.j;if(!e.isCollapsed()){let t=e.current();t&&r.Dom.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onClickRightOfNestedListItem(e){let{s:t}=this.j,n=t.range;if(!n.collapsed||0!==n.startOffset||!r.Dom.isText(n.startContainer))return;let o=n.startContainer,s=o.parentNode;if(!r.Dom.isTag(s,"li")||!r.Dom.first(s,e=>r.Dom.isTag(e,i.LIST_TAGS)))return;let a=this.j.ed.createRange();a.selectNodeContents(o);let l=a.getBoundingClientRect();e.clientX>l.right&&t.setCursorAfter(o)}__rowBeside(e){var t;let{j:n}=this,i=e.target;if(n.o.readonly||0!==e.button||e.detail>2||!r.Dom.isHTMLElement(i)||r.Dom.closest(i,r.Dom.isCell,n.editor))return null;let o=(0,a.toArray)(i.children).find(t=>{if(!r.Dom.isTag(t,"table"))return!1;let n=t.getBoundingClientRect();return e.clientX>=n.right&&e.clientY>=n.top&&e.clientY<n.bottom}),s=o?(0,a.toArray)(o.rows).filter(e=>e.cells.length):[];return o&&s.length?{table:o,row:null!=(t=s.find(t=>e.clientY<t.getBoundingClientRect().bottom))?t:s[s.length-1]}:null}onMouseDownBesideTableRow(e){let{j:t}=this,n=this.__rowBeside(e);n&&(this.__endPressBesideRow(),e.preventDefault(),this.__putCaretBesideRow(n.table,n.row),this.__pressBesideRow={row:n.row,caret:t.s.range.cloneRange()},t.e.on(t.ew,"mousemove",this.__onDragFromRow),new Set([t.ew,t.ow]).forEach(e=>t.e.on(e,"mouseup",this.__onReleaseFromRow)))}__onDragFromRow(e){var t,n;let{s:i}=this.j,o=this.__pressBesideRow;if(!o||!(1&e.buttons))return void this.__endPressBesideRow();if((null==(t=this.__rowBeside(e))?void 0:t.row)===o.row){i.isCollapsed()||i.selectRange(o.caret.cloneRange());return}let{cells:r}=o.row,s=r[r.length-1];if(i.insertCursorAtPoint(e.clientX,e.clientY)){let{startContainer:e,startOffset:t}=i.range;null==(n=i.sel)||n.setBaseAndExtent(s,s.childNodes.length,e,t)}}__onReleaseFromRow(){let e=this.__pressBesideRow;this.__endPressBesideRow(),e&&this.j.s.isCollapsed()&&this.j.s.selectRange(e.caret)}__endPressBesideRow(){let{j:e}=this;this.__pressBesideRow=null,e.e.off(e.ew,"mousemove",this.__onDragFromRow),new Set([e.ew,e.ow]).forEach(t=>e.e.off(t,"mouseup",this.__onReleaseFromRow))}__onDblClickBesideRow(e){if(this.__rowBeside(e))return this.j.e.stopPropagation("dblclick"),!1}__putCaretBesideRow(e,t){let{j:n}=this,i=(0,a.toArray)(e.rows),o=i.slice(i.indexOf(t)+1).find(e=>e.cells.length),s=e.nextSibling;for(;s&&r.Dom.isEmptyTextNode(s);)s=s.nextSibling;o?n.s.setCursorIn(o.cells[0],!0):r.Dom.isBlock(s)&&!r.Dom.isTag(s,"table")&&r.Dom.isContentEditable(s,n.editor)?n.s.setCursorIn(s,!0):n.s.setCursorAfter(e)}onClickKeepPendingFormat(){var e,t;let{s:n}=this.j,o=n.range;if(!o.collapsed||!r.Dom.isText(o.startContainer))return;let s=o.startContainer;if(o.startOffset!==(null!=(t=null==(e=s.nodeValue)?void 0:e.length)?t:0))return;let a=s.nextSibling;if(!r.Dom.isElement(a)||!a.nodeName.match(i.IS_INLINE)||!r.Dom.isEmpty(a))return;let l=a;for(;r.Dom.isElement(l.firstElementChild)&&l.firstElementChild.nodeName.match(i.IS_INLINE);)l=l.firstElementChild;n.setCursorIn(l)}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;let{s:t}=this.j,{startContainer:n,startOffset:i}=t.range;0===i&&r.Dom.isText(n)&&t.select(r.Dom.closest(n,r.Dom.isBlock,this.j.editor)||n,!0)}onDblClickPastLineEnd(){let{s:e,editor:t,o:n}=this.j,i=e.range;!n.readonly&&r.Dom.isOrContains(t,i.commonAncestorContainer)&&function(e,t){let{startContainer:n,endContainer:i}=e;if(e.collapsed||(0,c.trim)(e.toString())&&(0,c.trim)(b(e.cloneContents())))return!1;let o=r.Dom.closest(n,r.Dom.isBlock,t)!==r.Dom.closest(i,r.Dom.isBlock,t),s=t=>!e.intersectsNode(t)||(r.Dom.isOrContains(t,n)||r.Dom.isOrContains(t,i)?(0,a.toArray)(t.childNodes).every(s):r.Dom.isTag(t,"br")?(o=!0,!0):r.Dom.isText(t)||function e(t){let n=(0,a.toArray)(t.childNodes);return g(t)||r.Dom.isBlock(t)&&n.some(e)&&n.every(t=>r.Dom.isEmptyTextNode(t)||e(t))}(t));return s(e.commonAncestorContainer)&&o}(i,t)&&(i.collapse(!0),e.selectRange(i))}onMouseUpOnUneditableLine(e){var t,n;let{s:i,editor:o,o:s}=this.j,{sel:a}=i;if(s.readonly||!(null==a?void 0:a.rangeCount)||a.isCollapsed)return;let l=a.getRangeAt(0).cloneRange();if(y(l))return;let u=a.anchorNode===l.startContainer&&a.anchorOffset===l.startOffset,d=v(l,o).map(e=>{var t;return null!=(t=r.Dom.closest(e,r.Dom.isBlock,o))?t:e}).filter(e=>!(0,c.trim)(b(e))),h=t=>{let n=t.getBoundingClientRect();return u?e.clientY<n.bottom:e.clientY>n.top},p=u?d.find(h):d.reverse().find(h);if(!p)return;let f=e=>r.Dom.isText(e)&&!r.Dom.isEmptyTextNode(e)||r.Dom.isTag(e,"br"),m=r.Dom.findNotEmptySibling(p,u),g=r.Dom.isBlock(m)?u?r.Dom.last(m,f):r.Dom.first(m,f):null;if(!g)return;r.Dom.isText(g)?u?l.setEnd(g,null!=(n=null==(t=g.nodeValue)?void 0:t.length)?n:0):l.setStart(g,0):u?l.setEndBefore(g):l.setStartBefore(g);let{startContainer:w,startOffset:_,endContainer:S,endOffset:k}=l;u?a.setBaseAndExtent(w,_,S,k):a.setBaseAndExtent(S,k,w,_)}onCopyNormalizeSelectionBound(e){let{s:t,editor:n,o:i}=this.j;!i.select.normalizeSelectionBeforeCutAndCopy||t.isCollapsed()||(!e||e.isTrusted&&r.Dom.isNode(e.target)&&r.Dom.isOrContains(n,e.target))&&this.jodit.s.expandSelection()}constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"],this.__selectedMediaStyle="",this.__pressTarget=null,this.__pressBesideRow=null}}p([(0,o.watch)([":change",":readonly",":afterSetMode"]),o.autobind],m.prototype,"__markSelectedMedia",null),p([o.autobind],m.prototype,"onStartSelection",null),p([(0,o.watch)(["ow:mousedown","ow:touchstart"])],m.prototype,"onOutsidePress",null),p([(0,o.watch)("ow:click")],m.prototype,"onOutsideClick",null),p([(0,o.watch)([":beforeCommandCut"])],m.prototype,"beforeCommandCut",null),p([(0,o.watch)([":beforeCommandSelectall"])],m.prototype,"beforeCommandSelectAll",null),p([(0,o.watch)([":click"])],m.prototype,"onClickRightOfNestedListItem",null),p([(0,o.watch)(":mousedown")],m.prototype,"onMouseDownBesideTableRow",null),p([o.autobind],m.prototype,"__onDragFromRow",null),p([o.autobind],m.prototype,"__onReleaseFromRow",null),p([o.autobind],m.prototype,"__onDblClickBesideRow",null),p([(0,o.watch)([":click"])],m.prototype,"onClickKeepPendingFormat",null),p([(0,o.watch)([":click"])],m.prototype,"onTripleClickNormalizeSelection",null),p([(0,o.watch)([":dblclick"])],m.prototype,"onDblClickPastLineEnd",null),p([(0,o.watch)([":mouseup"])],m.prototype,"onMouseUpOnUneditableLine",null),p([(0,o.watch)([":copy",":cut"])],m.prototype,"onCopyNormalizeSelectionBound",null);let g=e=>r.Dom.isElement(e)&&"false"===e.getAttribute("contenteditable"),b=e=>{var t;return g(e)?"":r.Dom.isText(e)?null!=(t=e.nodeValue)?t:"":(0,a.toArray)(e.childNodes).map(b).join("")};function v(e,t){let n=e.commonAncestorContainer;return r.Dom.isElement(n)?(0,a.toArray)(n.querySelectorAll('[contenteditable="false"]')).filter(n=>{if(!e.intersectsNode(n))return!1;let i=n.ownerDocument.createRange();return i.selectNode(n),0>=e.compareBoundaryPoints(Range.START_TO_START,i)&&e.compareBoundaryPoints(Range.END_TO_END,i)>=0&&!r.Dom.closest(n.parentNode,g,t)}):[]}function y(e){let{startContainer:t,startOffset:n,endContainer:i,endOffset:o}=e;return t===i&&o-n==1&&r.Dom.isElement(t.childNodes[n])}s.pluginSystem.add("select",m)},80792:function(e,t,n){var i=n(6441);i.Config.prototype.minWidth=200,i.Config.prototype.maxWidth="100%",i.Config.prototype.minHeight=200,i.Config.prototype.maxHeight="auto",i.Config.prototype.saveHeightInStorage=!1},45927:function(e,t,n){var i=n(65478),o=n(580),r=n(84767),s=n(41180),a=n(20356);n(80792);var l=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class c extends a.Plugin{afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){let n=e.storage.get("height");n&&(t=n)}(0,s.css)(e.editor,{minHeight:"100%"}),(0,s.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){let{clientHeight:t,clientWidth:n}=this.j.container;if((0,r.isNumber)(e)){let{minHeight:t,maxHeight:n}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(n)&&n<e&&(e=n)}(0,s.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:n})}__setWidth(e){let{clientHeight:t,clientWidth:n}=this.j.container;if((0,r.isNumber)(e)){let{minWidth:t,maxWidth:n}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(n)&&e>n&&(e=n)}(0,s.css)(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:n})}__getNotWorkHeight(){var e;let t=this.j.toolbarContainer;return(t&&this.j.container.contains(t)?t.offsetHeight:0)+((null==(e=this.j.statusbar)?void 0:e.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let n=((0,s.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,r.isNumber)(n)&&n>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,s.css)(e,"minHeight",n)}),this.j.e.fire("setMinHeight",n)),(0,r.isNumber)(this.j.o.maxHeight)){let e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,s.css)(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}if(this.j.container){let e="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,s.css)(this.j.workplace,"height",e),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,r.isNumber)(e)?e+"px":e)}let{clientHeight:i,clientWidth:o}=this.j.container;(e!==i||t!==o)&&this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}l([(0,i.throttle)()],c.prototype,"__initialize",null),l([i.autobind],c.prototype,"__setHeight",null),l([i.autobind],c.prototype,"__setWidth",null),l([i.autobind],c.prototype,"__resizeWorkspaceImd",null),o.pluginSystem.add("size",c)},36204:function(e,t,n){var i=n(82758),o=n(12153),r=n(6441),s=n(35599);r.Config.prototype.beautifyHTML=!i.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.Icon.set("source",s.default),r.Config.prototype.controls.source={mode:i.MODE_SPLIT,exec:e=>{e.toggleMode()},isActive:e=>e.getRealMode()===i.MODE_SOURCE,tooltip:"Change mode"}},60031:function(e,t,n){n.d(t,{AceEditor:function(){return l}});var i=n(82758),o=n(45219),r=n(2748),s=n(21537),a=n(23370);class l extends a.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){let e=this.instance.session.getLength(),t=[],n=0;for(let i=0;e>i;i++)n+=this.getLastColumnIndex(i),i>0&&(n+=1),t[i]=n;return t}getRowColumnIndices(e){let t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let n=1;for(let i=1;i<t.length;i++)e>t[i]&&(n=i+1);let i=e-t[n-1]-1;return{row:n,column:i}}setSelectionRangeIndices(e,t){let n=this.getRowColumnIndices(e),i=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:n,end:i})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){let t=()=>{if(void 0!==this.instance||!this.aceExists())return;let t=this.j.c.div("jodit-source__mirror-fake");r.Dom.append(this.container,t);let n=e.ow.ace;this.instance=n.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setOptions(e.o.sourceEditorNativeOptions),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.__onChange),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==i.MODE_WYSIWYG&&this.setValue(this.getValue());let o=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===i.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",o).on("afterResize afterSetMode",o),o(),this.onReady()},n=!1,o=()=>{if(!e.isInDestruct&&(e.getRealMode()===i.MODE_SOURCE||e.getMode()===i.MODE_SPLIT)){if(!this.aceExists()){n||(n=!0,(0,s.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(o).catch(()=>null));return}t()}};e.e.on("afterSetMode",o),o()}destruct(){var e,t;this.instance.off("change",this.__onChange),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=null==(e=this.j)?void 0:e.events)||t.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,s.isString)(t)&&(e=t)}this.__settingValue=!0;try{this.instance.setValue(e)}finally{this.__settingValue=!1}this.instance.clearSelection()}__onChange(){this.__settingValue||this.toWYSIWYG()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),n=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:n},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{e.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)},this.__settingValue=!1}}!function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([o.autobind],l.prototype,"__onChange",null)},7483:function(e,t,n){n.d(t,{TextAreaEditor:function(){return a}});var i=n(2748),o=n(29960),r=n(41180),s=n(23370);class a extends s.SourceEditor{init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),i.Dom.append(this.container,this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{(0,r.css)(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus blur",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){i.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){let t=this.getValue();if(this.getSelectionStart()>=0){let n=this.getSelectionStart(),i=this.getSelectionEnd();this.setValue(t.substring(0,n)+e+t.substring(i,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){(0,o.attr)(this.instance,"placeholder",e)}setReadOnly(e){(0,o.attr)(this.instance,"readonly",e?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){let{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(){super(...arguments),this.autosize=this.j.async.debounce(()=>{(0,r.css)(this.instance,"height","auto"),(0,r.css)(this.instance,"height",this.instance.scrollHeight)},this.j.defaultTimeout,!0)}}},52968:function(e,t,n){n.d(t,{AceEditor:function(){return i.AceEditor},TextAreaEditor:function(){return o.TextAreaEditor}});var i=n(60031),o=n(7483)},70022:function(e,t,n){n.d(t,{createSourceEditor:function(){return r}});var i=n(21537),o=n(52968);function r(e,t,n,r,s){let a;if((0,i.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,n,r,s);break}default:a=new o.TextAreaEditor(t,n,r,s)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},23370:function(e,t,n){n.d(t,{SourceEditor:function(){return i}});class i{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){var t;this.isReady?e():null==(t=this.j.events)||t.on(this,"ready",e)}constructor(e,t,n,i){this.jodit=e,this.container=t,this.toWYSIWYG=n,this.fromWYSIWYG=i,this.className="",this.isReady=!1}}},52951:function(e,t,n){var i=n(82758),o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(50911);n(36204);var c=n(70022),u=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class d extends l.Plugin{onInsertHTML(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null==(t=this.sourceEditor)||t.insertRaw(e),this.toWYSIWYG(),!1}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;let e=this.j.getEditorValue(!1,i.SOURCE_CONSUMER);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__filledValue=this.getMirrorValue(),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let n=0;n<e.length;n+=1)t+=i.INVISIBLE_SPACE;return t});e>0&&t[e]===i.INVISIBLE_SPACE;)e--;let n=e;for(;n>0;){if("<"===t[--n]&&void 0!==t[n+1]&&t[n+1].match(/[\w/]+/i))return n;if(">"===t[n])break}return e}clnInv(e){return e.replace(i.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===i.MODE_SOURCE)return null==(t=this.sourceEditor)||t.selectAll(),!1}getMirrorValue(){var e;return(null==(e=this.sourceEditor)?void 0:e.getValue())||""}setMirrorValue(e){var t;null==(t=this.sourceEditor)||t.setValue(e)}setFocusToMirror(){var e;let t=this.j.od.activeElement;(!t||t===this.j.od.body||this.j.container.contains(t))&&(null==(e=this.sourceEditor)||e.focus())}saveSelection(){if(this.j.getRealMode()===i.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let t=this.j.s.marker(!0),n=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,n)+this.clnInv(t.outerHTML)+e.substring(n))}else{let t=this.j.s.marker(!0),n=this.j.s.marker(!1),i=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,i)+this.clnInv(t.outerHTML)+e.slice(i,o)+this.clnInv(n.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){let e,t;if(this.j.getRealMode()===i.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let n=this.getMirrorValue();try{if(n=n.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",n);(0,a.isString)(e)&&(n=e)}if(t=e=n.indexOf(this.tempMarkerStart),n=n.replace(this.tempMarkerStartReg,""),-1!==e){let e=n.indexOf(this.tempMarkerEnd);-1!==e&&(t=e)}n=n.replace(this.tempMarkerEndReg,"")}finally{n=n.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(n),this.setMirrorSelectionRange(e,t),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var n;null==(n=this.sourceEditor)||n.setSelectionRange(e,t)}onReadonlyReact(){var e;null==(e=this.sourceEditor)||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),r.Dom.append(e.workplace,this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{r.Dom.append(e.workplace,this.mirrorContainer)}),this.sourceEditor=(0,c.createSourceEditor)("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{var t;e.key===i.KEY_ESC&&(null==(t=this.sourceEditor)?void 0:t.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{var t;null==(t=this.sourceEditor)||t.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){let t=()=>{var t;if(e.isInDestruct)return!1;let n=e.ow.html_beautify;return!!n&&!e.isInDestruct&&(null==(t=e.events)||t.off("beautifyHTML").on("beautifyHTML",e=>n(e)),!0)};if(!t()){let n=!1,o=()=>{n||e.getMode()!==i.MODE_SOURCE&&e.getMode()!==i.MODE_SPLIT||(n=!0,(0,a.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(()=>{t()&&this.beautifyUntouched()},()=>null))};e.e.on("afterSetMode.source",o),o()}}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){let t=this.j;(t.getMode()===i.MODE_SPLIT||t.getMode()===i.MODE_SOURCE)&&this.fromWYSIWYG(e)}initSourceEditor(e){var t;if("area"!==e.o.sourceEditor){let t=(0,c.createSourceEditor)(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{var n;this.takeOver(t),null==(n=e.events)||n.fire("sourceEditorReady",e)})}else null==(t=this.sourceEditor)||t.onReadyAlways(()=>{var t;this.syncValueFromWYSIWYG(!0),null==(t=e.events)||t.fire("sourceEditorReady",e)})}takeOver(e){let t=this.sourceEditor;if(!t||t===e){this.sourceEditor=e,this.syncValueFromWYSIWYG(!0);return}let n=t.getValue(),i=t.getSelectionStart(),o=t.getSelectionEnd(),r=t.isFocused,s=n===this.__filledValue;t.destruct(),this.sourceEditor=e,s?this.syncValueFromWYSIWYG(!0):(e.setValue(n),this.toWYSIWYG()),i>=0&&e.setSelectionRange(i,o),r&&e.focus()}beautifyUntouched(){var e,t;let n=this.getMirrorValue();if(this.j.o.editHTMLDocumentMode||!n||n!==this.__filledValue)return;let i=this.j.e.fire("beautifyHTML",n);if((0,a.isString)(i)&&i!==n){let n=null==(e=this.sourceEditor)?void 0:e.isFocused;this.setMirrorValue(i),this.__filledValue=this.getMirrorValue(),n&&(null==(t=this.sourceEditor)||t.focus())}}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),r.Dom.safeRemove(this.mirrorContainer)}constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.__filledValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionStart())?t:0},this.getSelectionEnd=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionEnd())?t:0}}}u([(0,o.watch)(":insertHTML.source")],d.prototype,"onInsertHTML",null),u([o.autobind],d.prototype,"fromWYSIWYG",null),u([o.autobind],d.prototype,"toWYSIWYG",null),u([o.autobind],d.prototype,"getNormalPosition",null),u([(0,o.watch)(":beforeCommand.source")],d.prototype,"onSelectAll",null),u([(0,o.watch)(":beforeSetMode.source")],d.prototype,"saveSelection",null),u([(0,o.watch)(":afterSetMode.source")],d.prototype,"removeSelection",null),u([o.autobind],d.prototype,"setMirrorSelectionRange",null),u([(0,o.watch)(":readonly.source")],d.prototype,"onReadonlyReact",null),u([o.autobind],d.prototype,"syncValueFromWYSIWYG",null),s.pluginSystem.add("source",d)},35599: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.5 6-5 6 5 6m11-12 5 6-5 6M14 3l-4 18"/> </g> </svg> '},46614:function(e,t,n){var i=n(87612),o=n(70799),r=n(29960),s=n(86583),a=n(12153),l=n(6441),c=n(26532),u=n(93602),d=n(75259);l.Config.prototype.speechRecognize={api:void 0!==c.SpeechRecognition?c.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.Icon.set("speech-recognize",d.default),l.Config.prototype.controls.speechRecognize={isVisible(e){return!!e.o.speechRecognize.api},isActive(e,t){let n=(0,s.dataBind)(e,"speech");return!!(null==n?void 0:n.isEnabled)},isDisabled(e){return!e.o.speechRecognize.api},exec(e,t,{button:n,control:a}){var l;let{api:c,lang:d,continuous:h,interimResults:p,sound:f}=e.o.speechRecognize;if(!c)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,s.dataBind)(e,"speech");if(!m){let t=new c;(m=new u.RecognizeManager(e.async,t)).lang=(0,o.isString)(d)?d:null!=(l=(0,r.attr)(e.od.documentElement,"lang"))?l:void 0,m.continuous=h,m.interimResults=p,m.sound=f,(0,s.dataBind)(e,"speech",m),m.on("pulse",e=>{n.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),e.hookStatus("beforeDestruct",()=>{(0,s.dataBind)(e,"speech",null),m.destruct()})}if(a.args){let e=a.args[0];if((0,i.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&n.setMod("pulse",!0),n.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,n){var i;let o=(0,s.dataBind)(e,"speech"),r=null!=(i=null==o?void 0:o[t])?i:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${r?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${n}</span>`}}},26532:function(e,t,n){var i=n(82758);let o=i.globalWindow?i.globalWindow.SpeechRecognition||i.globalWindow.webkitSpeechRecognition:void 0;n.d(t,["SpeechRecognition",0,o])},54076:function(e,t,n){n.d(t,{execSpellCommand:function(){return i}});function i(e,t){let[n,i]=t.split("::");"open"===n.toLowerCase()&&i&&/^(javascript:|data:|vbscript:)/i.test(i.trim())||e.execCommand(n,null,i)}},93602:function(e,t,n){n.d(t,{RecognizeManager:function(){return a}});var i=n(65478),o=n(72757),r=n(37643),s=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class a extends o.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,r.closeSound)(this),a._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,a._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let n=e.results.item(t);if(n.length){let{transcript:e}=n.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,r.sound)(this,{frequency:e})}constructor(e,t){super(),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(940)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,a._instances.add(this)}}a._instances=new Set,s([i.autobind],a.prototype,"_onResults",null),s([i.autobind],a.prototype,"_onProgress",null),s([i.autobind],a.prototype,"_onError",null)},37643:function(e,t,n){n.d(t,{closeSound:function(){return s},sound:function(){return r}});var i=n(82758);let o=new WeakMap;function r(e,{sec:t=.1,frequency:n=440,gain:s=.1,type:a="sine"}={}){let l=function(e){if(!i.globalWindow)return null;let t=o.get(e);if(t&&"closed"!==t.state)return t;let n=i.globalWindow.AudioContext||i.globalWindow.webkitAudioContext;if(!n)return null;let r=new n;return o.set(e,r),r}(e);if(!l)return;let c=l.createGain(),u=l.createOscillator();u.type=a,u.frequency.value=n,c.gain.value=s,u.connect(c),c.connect(l.destination),u.start(),u.stop(l.currentTime+t)}function s(e){let t=o.get(e);t&&(o.delete(e),"closed"!==t.state&&t.close())}},71705:function(e){e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},89930:function(e){e.exports={newline:"ř\xe1dek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpozn\xe1n\xed Řeči",Sound:"Zvuk","Interim Results":"Průběžn\xe9 V\xfdsledky"}},34945:function(e){e.exports={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},63134:function(e){e.exports={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},66835:function(e){e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},1115:function(e){e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},59302:function(e){e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},94141:function(e){e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},24877:function(e){e.exports={newline:"\xfajsor",delete:"t\xf6rl\xe9s",space:"t\xe9r","Speech Recognize":"A Besz\xe9d Felismeri",Sound:"Hang","Interim Results":"Idők\xf6zi Eredm\xe9nyek"}},80651:function(e){e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},90492:function(e,t,n){n.r(t),n.d(t,{ar:function(){return i||(i=n.t(I,2))},cs_cz:function(){return o||(o=n.t(T,2))},de:function(){return r||(r=n.t(j,2))},es:function(){return s||(s=n.t(A,2))},fa:function(){return a||(a=n.t(x,2))},fi:function(){return l||(l=n.t(P,2))},fr:function(){return c||(c=n.t(L,2))},he:function(){return u||(u=n.t(R,2))},hu:function(){return d||(d=n.t(O,2))},id:function(){return h||(h=n.t(z,2))},it:function(){return p||(p=n.t(M,2))},ja:function(){return f||(f=n.t(N,2))},ko:function(){return m||(m=n.t(B,2))},mn:function(){return g||(g=n.t(F,2))},nl:function(){return b||(b=n.t(H,2))},no:function(){return v||(v=n.t(U,2))},pl:function(){return y||(y=n.t(V,2))},pt_br:function(){return w||(w=n.t(W,2))},ru:function(){return _||(_=n.t(K,2))},sk:function(){return S||(S=n.t(Y,2))},tr:function(){return k||(k=n.t($,2))},ua:function(){return C||(C=n.t(G,2))},zh_cn:function(){return E||(E=n.t(J,2))},zh_tw:function(){return D||(D=n.t(q,2))}});var i,o,r,s,a,l,c,u,d,h,p,f,m,g,b,v,y,w,_,S,k,C,E,D,I=n(71705),T=n(89930),j=n(34945),A=n(63134),x=n(66835),P=n(1115),L=n(59302),R=n(94141),O=n(24877),z=n(80651),M=n(62395),N=n(16407),B=n(37272),F=n(22113),H=n(22432),U=n(17081),V=n(30798),W=n(8661),K=n(19147),Y=n(76220),$=n(93620),G=n(40372),J=n(69874),q=n(88774)},62395:function(e){e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},16407:function(e){e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},37272:function(e){e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},22113:function(e){e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},22432:function(e){e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},17081:function(e){e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},30798:function(e){e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},8661:function(e){e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},19147:function(e){e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},76220:function(e){e.exports={newline:"nov\xfd riadok",delete:"vymazať",space:"medzera","Speech Recognize":"Rozpozn\xe1vanie reči",Sound:"Zvuk","Interim Results":"Predbežn\xe9 v\xfdsledky"}},93620:function(e){e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},40372:function(e){e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},69874:function(e){e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},88774:function(e){e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},3115:function(e,t,n){var i=n(37133),o=n(2748),r=n(580),s=n(37790),a=n(50911);n(46614);var l=n(2303),c=n(54076),u=n(90492),d=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class h extends a.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,r.extendLang)(u),(0,s.keys)(t,!1).forEach(n=>{n.split("|").forEach(i=>{i=i.trim().toLowerCase(),this._commandToWord[i]=t[n];let o=e.i18n(i);o!==i&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[n].trim()})})}))}beforeDestruct(e){o.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),o.Dom.append(this.j.workplace,this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{o.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),o.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:n}=t;if(!this._checkCommand(e)){let{range:i}=n,r=n.current();if(n.isCollapsed()&&o.Dom.isText(r)&&o.Dom.isOrContains(t.editor,r)&&r.nodeValue){let o=r.nodeValue;r.nodeValue=o+(/[\u00A0 ]\uFEFF*$/.test(o)?"":" ")+e,i.setStartAfter(r),n.selectRange(i),t.synchronizeValues()}else n.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,c.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(){super(...arguments),this.buttons=[{group:"state",name:"speechRecognize"}],this._commandToWord={}}}d([(0,i.watch)(":speechRecognizeProgressResult")],h.prototype,"onSpeechRecognizeProgressResult",null),d([(0,i.watch)(":speechRecognizeResult")],h.prototype,"onSpeechRecognizeResult",null),l.Jodit.plugins.add("speech-recognize",h)},75259: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="9" y="2" width="6" height="13" rx="3"/><path d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"/> </g> </svg> '},99085:function(e,t,n){var i=n(12153),o=n(6441),r=n(10937);o.Config.prototype.spellcheck=!1,i.Icon.set("spellcheck",r.default),o.Config.prototype.controls.spellcheck={isActive(e){return e.o.spellcheck},icon:r.default,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},28906:function(e){e.exports={Spellcheck:"التدقيق الإملائي"}},24351:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},32806:function(e){e.exports={Spellcheck:"Rechtschreibpr\xfcfung"}},77725:function(e){e.exports={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},26428:function(e){e.exports={Spellcheck:"غلطیابی املایی"}},42820:function(e){e.exports={Spellcheck:"Oikeinkirjoituksen tarkistus"}},60373:function(e){e.exports={Spellcheck:"V\xe9rification Orthographique"}},98370:function(e){e.exports={Spellcheck:"בדיקת איות"}},44850:function(e){e.exports={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},3636:function(e){e.exports={Spellcheck:"Spellchecking"}},26529:function(e,t,n){n.r(t),n.d(t,{ar:function(){return i||(i=n.t(I,2))},cs_cz:function(){return o||(o=n.t(T,2))},de:function(){return r||(r=n.t(j,2))},es:function(){return s||(s=n.t(A,2))},fa:function(){return a||(a=n.t(x,2))},fi:function(){return l||(l=n.t(P,2))},fr:function(){return c||(c=n.t(L,2))},he:function(){return u||(u=n.t(R,2))},hu:function(){return d||(d=n.t(O,2))},id:function(){return h||(h=n.t(z,2))},it:function(){return p||(p=n.t(M,2))},ja:function(){return f||(f=n.t(N,2))},ko:function(){return m||(m=n.t(B,2))},mn:function(){return g||(g=n.t(F,2))},nl:function(){return b||(b=n.t(H,2))},no:function(){return v||(v=n.t(U,2))},pl:function(){return y||(y=n.t(V,2))},pt_br:function(){return w||(w=n.t(W,2))},ru:function(){return _||(_=n.t(K,2))},sk:function(){return S||(S=n.t(Y,2))},tr:function(){return k||(k=n.t($,2))},ua:function(){return C||(C=n.t(G,2))},zh_cn:function(){return E||(E=n.t(J,2))},zh_tw:function(){return D||(D=n.t(q,2))}});var i,o,r,s,a,l,c,u,d,h,p,f,m,g,b,v,y,w,_,S,k,C,E,D,I=n(28906),T=n(24351),j=n(32806),A=n(77725),x=n(26428),P=n(42820),L=n(60373),R=n(98370),O=n(44850),z=n(3636),M=n(73220),N=n(55776),B=n(13995),F=n(6402),H=n(1879),U=n(1322),V=n(53361),W=n(70824),K=n(65140),Y=n(60407),$=n(42247),G=n(68891),J=n(63195),q=n(42107)},73220:function(e){e.exports={Spellcheck:"Controllo ortografico"}},55776:function(e){e.exports={Spellcheck:"スペルチェック"}},13995:function(e){e.exports={Spellcheck:"맞춤법 검사"}},6402:function(e){e.exports={Spellcheck:"Дүрмийн алдаа шалгах"}},1879:function(e){e.exports={Spellcheck:"Spellingcontrole"}},1322:function(e){e.exports={Spellcheck:"Stavekontroll"}},53361:function(e){e.exports={Spellcheck:"Sprawdzanie pisowni"}},70824:function(e){e.exports={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},65140:function(e){e.exports={Spellcheck:"Проверка орфографии"}},60407:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},42247:function(e){e.exports={Spellcheck:"Yazım denetimi"}},68891:function(e){e.exports={Spellcheck:"Перевірка орфографії"}},63195:function(e){e.exports={Spellcheck:"拼写检查"}},42107:function(e){e.exports={Spellcheck:"拼字檢查"}},43809:function(e,t,n){var i=n(65478),o=n(580),r=n(29960),s=n(50911);n(99085);var a=n(26529);class l extends s.Plugin{afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,r.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),this.buttons=[{group:"state",name:"spellcheck"}],(0,o.extendLang)(a)}}!function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([i.autobind],l.prototype,"toggleSpellcheck",null),o.pluginSystem.add("spellcheck",l)},10937: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 14 5-11 5 11M5 10h6m0 8 3 3 7-8"/> </g> </svg> '},99649:function(e,t,n){var i=n(6441);i.Config.prototype.showCharsCounter=!0,i.Config.prototype.countHTMLChars=!1,i.Config.prototype.countTextSpaces=!1,i.Config.prototype.showWordsCounter=!0},7309:function(e,t,n){var i=n(82758),o=n(2748),r=n(580),s=n(20356);n(99649);class a extends s.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){o.Dom.safeRemove(this.charCounter),o.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,this.reInit=()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()},this.calc=this.j.async.throttle(()=>{let e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace((0,i.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):e.replace((0,i.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace((0,i.INVISIBLE_SPACE_REG_EXP)(),"").split((0,i.SPACE_REG_EXP)()).filter(e=>e.length).length))},this.j.defaultTimeout)}}r.pluginSystem.add("stat",a)},48038:function(e,t,n){var i=n(6441);i.Config.prototype.toolbarSticky=!0,i.Config.prototype.toolbarDisableStickyForMobile=!0,i.Config.prototype.toolbarStickyOffset=0},68687:function(e,t,n){var i=n(82758),o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(20356);n(48038);let c=!i.IS_ES_NEXT&&i.IS_IE;class u extends l.Plugin{afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;let t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,n=(0,a.offset)(e.container,e,e.od,!0),o=e.getMode()===i.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>n.top&&t+e.o.toolbarStickyOffset<n.top+n.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===o)return;let r=e.toolbarContainer;r&&(o?this.addSticky(r):this.removeSticky(r)),e.e.fire("toggleSticky",o)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){r.Dom.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(){super(...arguments),this.__isToolbarStuck=!1,this.__createDummy=e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),r.Dom.before(e,this.__dummyBox)},this.addSticky=e=>{this.__isToolbarStuck||(c&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,a.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,a.css)(this.__dummyBox,{height:e.offsetHeight})},this.removeSticky=e=>{this.__isToolbarStuck&&((0,a.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}}!function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([(0,o.throttle)()],u.prototype,"__onScroll",null),s.pluginSystem.add("sticky",u)},87394:function(e,t,n){var i=n(2748),o=n(12153),r=n(6441),s=n(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],o.Icon.set("symbols",s.default),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(e,t,n)=>{let o=e.e.fire("generateSpecialCharactersTable.symbols");if(o){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),i.Dom.append(t,o),e.e.on(o,"close_dialog",n),t}e.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=i.Dom.first(o,e=>i.Dom.isTag(e,"a"));t&&t.focus()}}}},20741:function(e){e.exports={symbols:"رمز"}},3958:function(e){e.exports={symbols:"symbol"}},53437:function(e){e.exports={symbols:"Symbol"}},56882:function(e){e.exports={symbols:"S\xedmbolo"}},75703:function(e){e.exports={symbols:"سمبل"}},49759:function(e){e.exports={symbols:"Symbolit"}},44730:function(e){e.exports={symbols:"caract\xe8re"}},70945:function(e){e.exports={symbols:"תו מיוחד"}},49841:function(e){e.exports={symbols:"Szimb\xf3lum"}},33295:function(e){e.exports={symbols:"simbol"}},32824:function(e,t,n){n.r(t),n.d(t,{ar:function(){return i||(i=n.t(E,2))},cs_cz:function(){return o||(o=n.t(D,2))},de:function(){return r||(r=n.t(I,2))},es:function(){return s||(s=n.t(T,2))},fa:function(){return a||(a=n.t(j,2))},fi:function(){return l||(l=n.t(A,2))},fr:function(){return c||(c=n.t(x,2))},he:function(){return u||(u=n.t(P,2))},hu:function(){return d||(d=n.t(L,2))},id:function(){return h||(h=n.t(R,2))},it:function(){return p||(p=n.t(O,2))},ja:function(){return f||(f=n.t(z,2))},ko:function(){return m||(m=n.t(M,2))},mn:function(){return g||(g=n.t(N,2))},nl:function(){return b||(b=n.t(B,2))},pl:function(){return v||(v=n.t(F,2))},pt_br:function(){return y||(y=n.t(H,2))},ru:function(){return w||(w=n.t(U,2))},tr:function(){return _||(_=n.t(V,2))},ua:function(){return S||(S=n.t(W,2))},zh_cn:function(){return k||(k=n.t(K,2))},zh_tw:function(){return C||(C=n.t(Y,2))}});var i,o,r,s,a,l,c,u,d,h,p,f,m,g,b,v,y,w,_,S,k,C,E=n(20741),D=n(3958),I=n(53437),T=n(56882),j=n(75703),A=n(49759),x=n(44730),P=n(70945),L=n(49841),R=n(33295),O=n(47615),z=n(83059),M=n(22396),N=n(58285),B=n(51804),F=n(53650),H=n(41369),U=n(57855),V=n(44328),W=n(91080),K=n(89702),Y=n(66434)},47615:function(e){e.exports={symbols:"Simbolo"}},83059:function(e){e.exports={symbols:"symbol"}},22396:function(e){e.exports={symbols:"기호"}},58285:function(e){e.exports={symbols:"тэмдэгт"}},51804:function(e){e.exports={symbols:"symbool"}},53650:function(e){e.exports={symbols:"symbol"}},41369:function(e){e.exports={symbols:"S\xedmbolo"}},57855:function(e){e.exports={symbols:"символ"}},44328:function(e){e.exports={symbols:"Sembol"}},91080:function(e){e.exports={symbols:"символ"}},89702:function(e){e.exports={symbols:"符号"}},66434:function(e){e.exports={symbols:"符號"}},59495:function(e,t,n){var i=n(82758),o=n(2748),r=n(580),s=n(43555),a=n(20356);n(87394);var l=n(32824);class c extends a.Plugin{afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{let t=e.c.fromHTML(`<div class="jodit-symbols__container">
263
263
  <div class="jodit-symbols__container_table">
264
264
  <table class="jodit-symbols__table"><tbody></tbody></table>
265
265
  </div>