jodit-pro 4.11.2 → 4.11.6

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 (308) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +4 -4
  3. package/es2015/jodit.js +3 -2
  4. package/es2015/jodit.min.js +3 -3
  5. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  6. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  9. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  10. package/es2015/plugins/backup/backup.css +1 -1
  11. package/es2015/plugins/backup/backup.js +1 -1
  12. package/es2015/plugins/backup/backup.min.js +1 -1
  13. package/es2015/plugins/button-generator/button-generator.css +1 -1
  14. package/es2015/plugins/button-generator/button-generator.js +1 -1
  15. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  16. package/es2015/plugins/change-case/change-case.js +1 -1
  17. package/es2015/plugins/change-case/change-case.min.js +1 -1
  18. package/es2015/plugins/color-picker/color-picker.css +1 -1
  19. package/es2015/plugins/color-picker/color-picker.js +1 -1
  20. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  21. package/es2015/plugins/emoji/emoji.css +1 -1
  22. package/es2015/plugins/emoji/emoji.js +1 -1
  23. package/es2015/plugins/emoji/emoji.min.js +1 -1
  24. package/es2015/plugins/export-docs/export-docs.js +53 -31
  25. package/es2015/plugins/export-docs/export-docs.min.js +2 -2
  26. package/es2015/plugins/finder/finder.css +1 -1
  27. package/es2015/plugins/finder/finder.js +1 -1
  28. package/es2015/plugins/finder/finder.min.js +1 -1
  29. package/es2015/plugins/google-maps/google-maps.css +1 -1
  30. package/es2015/plugins/google-maps/google-maps.js +1 -1
  31. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  32. package/es2015/plugins/google-search/google-search.js +1 -1
  33. package/es2015/plugins/google-search/google-search.min.js +1 -1
  34. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  35. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  36. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  37. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  38. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  39. package/es2015/plugins/keyboard/keyboard.css +1 -1
  40. package/es2015/plugins/keyboard/keyboard.js +1 -1
  41. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  42. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  43. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  44. package/es2015/plugins/page-break/page-break.js +1 -1
  45. package/es2015/plugins/page-break/page-break.min.js +1 -1
  46. package/es2015/plugins/paste-code/paste-code.css +1 -1
  47. package/es2015/plugins/paste-code/paste-code.js +1 -1
  48. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  49. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  50. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  51. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  52. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  53. package/es2015/plugins/style/style.css +1 -1
  54. package/es2015/plugins/style/style.js +1 -1
  55. package/es2015/plugins/style/style.min.js +1 -1
  56. package/es2015/plugins/templates/templates.css +1 -1
  57. package/es2015/plugins/templates/templates.js +1 -1
  58. package/es2015/plugins/templates/templates.min.js +1 -1
  59. package/es2015/plugins/todo-list/todo-list.css +1 -1
  60. package/es2015/plugins/todo-list/todo-list.js +1 -1
  61. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  62. package/es2015/plugins/translate/translate.css +1 -1
  63. package/es2015/plugins/translate/translate.js +1 -1
  64. package/es2015/plugins/translate/translate.min.js +1 -1
  65. package/es2015/plugins/tune-block/tune-block.css +1 -1
  66. package/es2015/plugins/tune-block/tune-block.js +1 -1
  67. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  68. package/es2018/jodit.fat.min.js +4 -4
  69. package/es2018/jodit.min.js +3 -3
  70. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  71. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  72. package/es2018/plugins/backup/backup.min.js +1 -1
  73. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  74. package/es2018/plugins/change-case/change-case.min.js +1 -1
  75. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  76. package/es2018/plugins/emoji/emoji.min.js +1 -1
  77. package/es2018/plugins/export-docs/export-docs.min.js +2 -2
  78. package/es2018/plugins/finder/finder.min.js +1 -1
  79. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  80. package/es2018/plugins/google-search/google-search.min.js +1 -1
  81. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  82. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  83. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  84. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  85. package/es2018/plugins/page-break/page-break.min.js +1 -1
  86. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  87. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  88. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  89. package/es2018/plugins/style/style.min.js +1 -1
  90. package/es2018/plugins/templates/templates.min.js +1 -1
  91. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  92. package/es2018/plugins/translate/translate.min.js +1 -1
  93. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  94. package/es2021/jodit.css +1 -1
  95. package/es2021/jodit.fat.min.js +4 -4
  96. package/es2021/jodit.js +3 -2
  97. package/es2021/jodit.min.js +3 -3
  98. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  99. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  100. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  101. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  102. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  103. package/es2021/plugins/backup/backup.css +1 -1
  104. package/es2021/plugins/backup/backup.js +1 -1
  105. package/es2021/plugins/backup/backup.min.js +1 -1
  106. package/es2021/plugins/button-generator/button-generator.css +1 -1
  107. package/es2021/plugins/button-generator/button-generator.js +1 -1
  108. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  109. package/es2021/plugins/change-case/change-case.js +1 -1
  110. package/es2021/plugins/change-case/change-case.min.js +1 -1
  111. package/es2021/plugins/color-picker/color-picker.css +1 -1
  112. package/es2021/plugins/color-picker/color-picker.js +1 -1
  113. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  114. package/es2021/plugins/emoji/emoji.css +1 -1
  115. package/es2021/plugins/emoji/emoji.js +1 -1
  116. package/es2021/plugins/emoji/emoji.min.js +1 -1
  117. package/es2021/plugins/export-docs/export-docs.js +49 -29
  118. package/es2021/plugins/export-docs/export-docs.min.js +3 -3
  119. package/es2021/plugins/finder/finder.css +1 -1
  120. package/es2021/plugins/finder/finder.js +1 -1
  121. package/es2021/plugins/finder/finder.min.js +1 -1
  122. package/es2021/plugins/google-maps/google-maps.css +1 -1
  123. package/es2021/plugins/google-maps/google-maps.js +1 -1
  124. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  125. package/es2021/plugins/google-search/google-search.js +1 -1
  126. package/es2021/plugins/google-search/google-search.min.js +1 -1
  127. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  128. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  129. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  130. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  131. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  132. package/es2021/plugins/keyboard/keyboard.css +1 -1
  133. package/es2021/plugins/keyboard/keyboard.js +1 -1
  134. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  135. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  136. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  137. package/es2021/plugins/page-break/page-break.js +1 -1
  138. package/es2021/plugins/page-break/page-break.min.js +1 -1
  139. package/es2021/plugins/paste-code/paste-code.css +1 -1
  140. package/es2021/plugins/paste-code/paste-code.js +1 -1
  141. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  142. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  143. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  144. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  145. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  146. package/es2021/plugins/style/style.css +1 -1
  147. package/es2021/plugins/style/style.js +1 -1
  148. package/es2021/plugins/style/style.min.js +1 -1
  149. package/es2021/plugins/templates/templates.css +1 -1
  150. package/es2021/plugins/templates/templates.js +1 -1
  151. package/es2021/plugins/templates/templates.min.js +1 -1
  152. package/es2021/plugins/todo-list/todo-list.css +1 -1
  153. package/es2021/plugins/todo-list/todo-list.js +1 -1
  154. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  155. package/es2021/plugins/translate/translate.css +1 -1
  156. package/es2021/plugins/translate/translate.js +1 -1
  157. package/es2021/plugins/translate/translate.min.js +1 -1
  158. package/es2021/plugins/tune-block/tune-block.css +1 -1
  159. package/es2021/plugins/tune-block/tune-block.js +1 -1
  160. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  161. package/es2021.en/jodit.css +1 -1
  162. package/es2021.en/jodit.fat.min.js +4 -4
  163. package/es2021.en/jodit.js +3 -2
  164. package/es2021.en/jodit.min.js +3 -3
  165. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  166. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  167. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  168. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  169. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  170. package/es2021.en/plugins/backup/backup.css +1 -1
  171. package/es2021.en/plugins/backup/backup.js +1 -1
  172. package/es2021.en/plugins/backup/backup.min.js +1 -1
  173. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  174. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  175. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  176. package/es2021.en/plugins/change-case/change-case.js +1 -1
  177. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  178. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  179. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  180. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  181. package/es2021.en/plugins/emoji/emoji.css +1 -1
  182. package/es2021.en/plugins/emoji/emoji.js +1 -1
  183. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  184. package/es2021.en/plugins/export-docs/export-docs.js +49 -29
  185. package/es2021.en/plugins/export-docs/export-docs.min.js +3 -3
  186. package/es2021.en/plugins/finder/finder.css +1 -1
  187. package/es2021.en/plugins/finder/finder.js +1 -1
  188. package/es2021.en/plugins/finder/finder.min.js +1 -1
  189. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  190. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  191. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  192. package/es2021.en/plugins/google-search/google-search.js +1 -1
  193. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  194. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  195. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  196. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  197. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  198. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  199. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  200. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  201. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  202. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  203. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  204. package/es2021.en/plugins/page-break/page-break.js +1 -1
  205. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  206. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  207. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  208. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  209. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  210. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  211. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  212. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  213. package/es2021.en/plugins/style/style.css +1 -1
  214. package/es2021.en/plugins/style/style.js +1 -1
  215. package/es2021.en/plugins/style/style.min.js +1 -1
  216. package/es2021.en/plugins/templates/templates.css +1 -1
  217. package/es2021.en/plugins/templates/templates.js +1 -1
  218. package/es2021.en/plugins/templates/templates.min.js +1 -1
  219. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  220. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  221. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  222. package/es2021.en/plugins/translate/translate.css +1 -1
  223. package/es2021.en/plugins/translate/translate.js +1 -1
  224. package/es2021.en/plugins/translate/translate.min.js +1 -1
  225. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  226. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  227. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  228. package/es5/jodit.css +2 -2
  229. package/es5/jodit.fat.min.js +2 -2
  230. package/es5/jodit.js +3 -2
  231. package/es5/jodit.min.css +2 -2
  232. package/es5/jodit.min.js +2 -2
  233. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  234. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  235. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  236. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  237. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  238. package/es5/plugins/backup/backup.css +1 -1
  239. package/es5/plugins/backup/backup.js +1 -1
  240. package/es5/plugins/backup/backup.min.js +1 -1
  241. package/es5/plugins/button-generator/button-generator.css +1 -1
  242. package/es5/plugins/button-generator/button-generator.js +1 -1
  243. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  244. package/es5/plugins/change-case/change-case.js +1 -1
  245. package/es5/plugins/change-case/change-case.min.js +1 -1
  246. package/es5/plugins/color-picker/color-picker.css +1 -1
  247. package/es5/plugins/color-picker/color-picker.js +1 -1
  248. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  249. package/es5/plugins/emoji/emoji.css +1 -1
  250. package/es5/plugins/emoji/emoji.js +1 -1
  251. package/es5/plugins/emoji/emoji.min.js +1 -1
  252. package/es5/plugins/export-docs/export-docs.js +113 -59
  253. package/es5/plugins/export-docs/export-docs.min.js +2 -2
  254. package/es5/plugins/finder/finder.css +1 -1
  255. package/es5/plugins/finder/finder.js +1 -1
  256. package/es5/plugins/finder/finder.min.js +1 -1
  257. package/es5/plugins/google-maps/google-maps.css +1 -1
  258. package/es5/plugins/google-maps/google-maps.js +1 -1
  259. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  260. package/es5/plugins/google-search/google-search.js +1 -1
  261. package/es5/plugins/google-search/google-search.min.js +1 -1
  262. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  263. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  264. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  265. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  266. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  267. package/es5/plugins/keyboard/keyboard.css +1 -1
  268. package/es5/plugins/keyboard/keyboard.js +1 -1
  269. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  270. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  271. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  272. package/es5/plugins/page-break/page-break.js +1 -1
  273. package/es5/plugins/page-break/page-break.min.js +1 -1
  274. package/es5/plugins/paste-code/paste-code.css +1 -1
  275. package/es5/plugins/paste-code/paste-code.js +1 -1
  276. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  277. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  278. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  279. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  280. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  281. package/es5/plugins/style/style.css +1 -1
  282. package/es5/plugins/style/style.js +1 -1
  283. package/es5/plugins/style/style.min.js +1 -1
  284. package/es5/plugins/templates/templates.css +1 -1
  285. package/es5/plugins/templates/templates.js +1 -1
  286. package/es5/plugins/templates/templates.min.js +1 -1
  287. package/es5/plugins/todo-list/todo-list.css +1 -1
  288. package/es5/plugins/todo-list/todo-list.js +1 -1
  289. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  290. package/es5/plugins/translate/translate.css +1 -1
  291. package/es5/plugins/translate/translate.js +1 -1
  292. package/es5/plugins/translate/translate.min.js +1 -1
  293. package/es5/plugins/tune-block/tune-block.css +1 -1
  294. package/es5/plugins/tune-block/tune-block.js +1 -1
  295. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  296. package/es5/polyfills.fat.min.js +1 -1
  297. package/es5/polyfills.js +1 -1
  298. package/es5/polyfills.min.js +1 -1
  299. package/esm/config.d.ts +3 -0
  300. package/esm/plugins/export-docs/config.d.ts +3 -0
  301. package/esm/plugins/export-docs/config.js +1 -1
  302. package/esm/plugins/export-docs/export-docs.d.ts +1 -0
  303. package/esm/plugins/export-docs/export-docs.js +2 -2
  304. package/esm/plugins/license/helpers/helpers.js +1 -1
  305. package/package.json +1 -1
  306. package/types/config.d.ts +3 -0
  307. package/types/plugins/export-docs/config.d.ts +3 -0
  308. package/types/plugins/export-docs/export-docs.d.ts +1 -0
@@ -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.11.2
4
+ * Version: v4.11.6
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(t,i){if("object"==typeof exports&&"object"==typeof module)module.exports=i();else if("function"==typeof define&&define.amd)define([],i);else{var n=i();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(self,function(){var t={94668:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Plus icon with document/context --\x3e <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </svg>'},86428:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Background rounded rect --\x3e <rect x="1" y="1" width="22" height="22" rx="3"/> \x3c!-- Letter A - outer shape --\x3e <polygon points="8,5 2,19 5,19 6.5,16 11.5,16 13,19 16,19 10,5" fill="white"/> \x3c!-- Letter A - inner triangle (hole) --\x3e <polygon points="9,9 7.5,13 10.5,13" fill="currentColor"/> \x3c!-- Letter I --\x3e <rect x="17" y="5" width="3" height="14" fill="white"/> </svg>'},75966:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Wand handle - diagonal line --\x3e <rect x="12" y="10" width="13" height="3.5" rx="0.5" transform="rotate(45 12 12)"/> \x3c!-- Wand tip - diamond --\x3e <rect x="3" y="3" width="6" height="6" rx="1" transform="rotate(45 6 6)"/> \x3c!-- Large sparkle - top --\x3e <polygon points="15,0 16,4 15,8 14,4"/> <polygon points="11,4 15,5 19,4 15,3"/> \x3c!-- Medium sparkle - left --\x3e <polygon points="1,11 2,14 1,17 0,14"/> <polygon points="-2,14 1,15 4,14 1,13"/> \x3c!-- Small sparkle - middle --\x3e <polygon points="8,14 8.5,16 8,18 7.5,16"/> <polygon points="6,16 8,16.5 10,16 8,15.5"/> </svg>'},99219:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="22" y1="2" x2="11" y2="13"></line> <polygon points="22 2 15 22 11 13 2 9 22 2"></polygon> </svg>'},68583:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><title/><g id="Upload"><path d="M16,26h8V50a2,2,0,0,0,2,2H38a2,2,0,0,0,2-2V26h8a2,2,0,0,0,1.4946-3.3291l-16-18a2,2,0,0,0-2.9892,0l-16,18A2,2,0,0,0,16,26ZM32,9.0107,43.5464,22H38a2,2,0,0,0-2,2V48H28V24a2,2,0,0,0-2-2H20.4536Z"/><path d="M53,42a2,2,0,0,0-2,2V54a2.0023,2.0023,0,0,1-2,2H15a2.0023,2.0023,0,0,1-2-2V44a2,2,0,0,0-4,0V54a6.0066,6.0066,0,0,0,6,6H49a6.0066,6.0066,0,0,0,6-6V44A2,2,0,0,0,53,42Z"/></g></svg>'},34586:function(t){t.exports='<svg stroke="black" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <style type="text/css"> .st0{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} </style> <path class="st0" d="M29,23H3c-1.1,0-2-0.9-2-2V11c0-1.1,0.9-2,2-2h26c1.1,0,2,0.9,2,2v10C31,22.1,30.1,23,29,23z"/> <path class="st0" d="M13,19L13,19c-1.1,0-2-0.9-2-2v-2c0-1.1,0.9-2,2-2h0c1.1,0,2,0.9,2,2v2C15,18.1,14.1,19,13,19z"/> <line class="st0" x1="18" x2="18" y1="13" y2="19"/> <line class="st0" x1="21" x2="18" y1="13" y2="17"/> <line class="st0" x1="21" x2="19" y1="19" y2="16"/> </svg>'},91729:function(t){t.exports='<svg width="19" height="13" viewBox="0 0 19 13" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.799 11.449V12H7.764V11.449L8.695 11.487C9.075 11.525 9.265 11.373 9.265 11.031C9.265 10.8157 9.20167 10.5687 9.075 10.29L8.144 8.048H3.717L2.843 10.176C2.66567 10.5687 2.577 10.8853 2.577 11.126C2.577 11.392 2.71633 11.5187 2.995 11.506L3.907 11.449V12H0.62V11.449L1.114 11.487H1.19C1.44333 11.487 1.65233 11.3667 1.817 11.126C2.007 10.8473 2.197 10.48 2.387 10.024L6.358 0.466999H6.852L10.861 10.062C11.0383 10.518 11.222 10.879 11.412 11.145C11.5893 11.373 11.811 11.487 12.077 11.487H12.172L12.799 11.449ZM3.945 7.516H7.916L5.921 2.728L3.945 7.516Z" fill="black"/> <path d="M18.45 11.61V12H16.32C16.33 11.93 16.34 11.84 16.35 11.73C16.37 11.61 16.38 11.515 16.38 11.445L16.41 10.86C16.19 11.29 15.905 11.6 15.555 11.79C15.215 11.98 14.805 12.075 14.325 12.075C13.695 12.075 13.215 11.935 12.885 11.655C12.565 11.365 12.405 10.94 12.405 10.38C12.405 9.61 12.725 9.045 13.365 8.685C14.015 8.315 15.03 8.13 16.41 8.13V7.26C16.41 6.79 16.3 6.455 16.08 6.255C15.86 6.055 15.505 5.955 15.015 5.955C14.255 5.955 13.875 6.165 13.875 6.585C13.875 6.665 13.895 6.76 13.935 6.87C13.985 6.97 14.01 7.065 14.01 7.155C14.01 7.325 13.955 7.455 13.845 7.545C13.735 7.625 13.595 7.665 13.425 7.665C13.215 7.665 13.05 7.6 12.93 7.47C12.82 7.34 12.765 7.17 12.765 6.96C12.765 6.54 12.985 6.2 13.425 5.94C13.865 5.68 14.455 5.55 15.195 5.55C16.865 5.55 17.7 6.255 17.7 7.665V11.355C17.7 11.545 17.765 11.64 17.895 11.64L18.45 11.61ZM14.775 11.535C15.215 11.535 15.59 11.355 15.9 10.995C16.21 10.625 16.38 10.15 16.41 9.57V8.535C15.47 8.535 14.795 8.675 14.385 8.955C13.975 9.225 13.77 9.66 13.77 10.26C13.77 10.68 13.855 11 14.025 11.22C14.205 11.43 14.455 11.535 14.775 11.535Z" fill="black"/> </svg>'},46995:function(t){t.exports='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1262 1075q-37 121-138 195t-228 74-228-74-138-195q-8-25 4-48.5t38-31.5q25-8 48.5 4t31.5 38q25 80 92.5 129.5t151.5 49.5 151.5-49.5 92.5-129.5q8-26 32-38t49-4 37 31.5 4 48.5zm-494-435q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm512 0q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm256 256q0-130-51-248.5t-136.5-204-204-136.5-248.5-51-248.5 51-204 136.5-136.5 204-51 248.5 51 248.5 136.5 204 204 136.5 248.5 51 248.5-51 204-136.5 136.5-204 51-248.5zm128 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},53121:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M19,21H5a2,2,0,0,1-2-2V17a1,1,0,0,1,2,0v2H19V17a1,1,0,0,1,2,0v2A2,2,0,0,1,19,21Z"/> <path d="M18,5H6A1,1,0,0,1,6,3H18a1,1,0,0,1,0,2Z"/> <path d="M15.71,10.29l-3-3a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-3,3a1,1,0,0,0-.21,1.09A1,1,0,0,0,9,12h2v3a1,1,0,0,0,2,0V12h2a1,1,0,0,0,.92-.62A1,1,0,0,0,15.71,10.29Z"/> </svg>'},7307:function(t){t.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> <path d="M365.4,59.628c60.56,0,109.6,49.03,109.6,109.47c0,109.47-109.6,171.8-219.06,281.271 C146.47,340.898,37,278.568,37,169.099c0-60.44,49.04-109.47,109.47-109.47c54.73,0,82.1,27.37,109.47,82.1 C283.3,86.999,310.67,59.628,365.4,59.628z"/> </svg>'},24928:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M28.7,16.3l-12-13c-0.4-0.4-1.1-0.4-1.5,0l-12,13C3,16.6,2.9,17,3.1,17.4C3.2,17.8,3.6,18,4,18h3v10c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1V18h3c0.4,0,0.8-0.2,0.9-0.6C29.1,17,29,16.6,28.7,16.3z"/> </svg>'},96910:function(t){t.exports='<svg viewBox="0 0 252 252" xmlns="http://www.w3.org/2000/svg"> <path d="M0 16C0 7.16344 7.16344 0 16 0H85.6364C86.5205 0 87.3797 0.29288 88.0796 0.832871L120.92 26.1671C121.62 26.7071 122.48 27 123.364 27H227C235.837 27 243 34.1634 243 43V132.335C243 134.779 240.234 136.198 238.25 134.772L233 131L226.5 127L220 124L212.5 122L202.5 120L189 120.5L179.5 122.5L170.5 125.5L161.5 130.5L157 133.5L153 137L146.5 144L141 152L137 160L134 168L132.5 178L132 183.5V189.5L133 197.5L135 205.5L137.5 211.5L139.524 214.996C141.068 217.663 139.144 221 136.062 221H16C7.16344 221 0 213.837 0 205V16Z"/> <circle cx="197" cy="185" r="56"/> <path d="M188.364 215.955V151.591H204.636V215.955H188.364ZM164.318 191.909V175.636H228.682V191.909H164.318Z" fill="white"/> </svg>'},81122:function(t){t.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},49377:function(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},46425:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},86820:function(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},36576:function(t){t.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},27622:function(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},89687:function(t){t.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'},25088:function(t){t.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'},67008:function(t){t.exports='<svg viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <rect fill="none" height="32" width="32"/> <path d="M28,14H18v2h10V14z M28,18H18v2h10V18z M24,22h-6v2h6V22z M14,14H4v10h10V14z M0,6v26h32V6H0z M30,30H2l0.08-20H30V30z"/> </svg>'},63643:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},27926:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},10690:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},91997:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},11699:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},98126:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},27222:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},17405:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},75689:function(t){t.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},78879:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},18993:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="2" width="20" height="9" rx="1.5" fill="none"/> <rect x="2" y="14" width="9" height="8" rx="1.5" fill="none"/> <rect x="13" y="14" width="9" height="8" rx="1.5" fill="currentColor"/> </svg>'},11373:function(t){t.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},74922:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},34575:function(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},46146:function(t){"u">typeof self&&self,t.exports=function(){var t=[function(t,i,n){"use strict";var o=n(3);function r(t){return!0===o(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var i,n;return!1!==r(t)&&"function"==typeof(i=t.constructor)&&!1!==r(n=i.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VERSION=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=i.getLuminance=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.parseColorToRgba=i.parseColorToRgb=i.from=i.createPicker=void 0;var o=function(){function t(t,i){for(var n=0;n<i.length;n++){var o=i[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(i,n,o){return n&&t(i.prototype,n),o&&t(i,o),i}}(),r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=n(2),a=c(n(0)),l=c(n(4));function c(t){return t&&t.__esModule?t:{default:t}}function u(t,i){if(!(t instanceof i))throw TypeError("Cannot call a class as a function")}function d(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var h="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,p="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,f={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},m="COLOR",g="RGBA_USER",b="HSLA_USER";function v(t,i,n){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):n?i:null:i}function y(t){var i=t.getContext("2d"),n=+t.width,o=+t.height,a=i.createLinearGradient(1,1,1,o-1);return a.addColorStop(0,"white"),a.addColorStop(1,"black"),{setHue:function(t){var r=i.createLinearGradient(1,0,n-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),i.fillStyle=a,i.fillRect(0,0,n,o),i.fillStyle=r,i.globalCompositeOperation="multiply",i.fillRect(0,0,n,o),i.globalCompositeOperation="source-over"},grabColor:function(t,n){return i.getImageData(t,n,1,1).data},findColor:function(t,i,a){var l=r((0,s.rgbToHsv)(t,i,a),3);return[l[1]*n,o-l[2]*o]}}}function w(t,i,n){return null===t?i:/^\s*$/.test(t)?n:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&i}function _(t,i,n){if(null===t)return i;if(/^\s*$/.test(t))return n;var o=t.split(",").map(Number);return 2===o.length&&o[0]&&o[1]?o:i}var C=function(){function t(i,n){if(u(this,t),n?(i=v(i),this.options=Object.assign({},f,n)):i&&(0,a.default)(i)?(this.options=Object.assign({},f,i),i=v(this.options.attachTo)):(this.options=Object.assign({},f),i=v((0,s.nvl)(i,this.options.attachTo))),!i)throw Error("Container not found: "+this.options.attachTo);!function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(i.hasAttribute(n+"show-hsl")&&(t.showHSL=w(i.getAttribute(n+"show-hsl"),f.showHSL,!0)),i.hasAttribute(n+"show-rgb")&&(t.showRGB=w(i.getAttribute(n+"show-rgb"),f.showRGB,!0)),i.hasAttribute(n+"show-hex")&&(t.showHEX=w(i.getAttribute(n+"show-hex"),f.showHEX,!0)),i.hasAttribute(n+"show-alpha")&&(t.showAlpha=w(i.getAttribute(n+"show-alpha"),f.showAlpha,!0)),i.hasAttribute(n+"palette-editable")&&(t.paletteEditable=w(i.getAttribute(n+"palette-editable"),f.paletteEditable,!0)),i.hasAttribute(n+"sl-bar-size")&&(t.slBarSize=_(i.getAttribute(n+"sl-bar-size"),f.slBarSize,[232,150])),i.hasAttribute(n+"hue-bar-size")&&(t.hueBarSize=_(i.getAttribute(n+"hue-bar-size"),f.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),i.hasAttribute(n+"palette")){var o=i.getAttribute(n+"palette");switch(o){case"PALETTE_MATERIAL_500":t.palette=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=s.PALETTE_MATERIAL_CHROME;break;default:t.palette=o.split(/[;|]/)}}i.hasAttribute(n+"color")&&(t.color=i.getAttribute(n+"color"))}(this.options,i),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=l.default,i.appendChild(this.element);var o=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(o),this.hueBarHelper=y(o),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=y(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(m,this.options.color)}return o(t,[{key:"setupHueCanvas",value:function(t){var i=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var n=t.getContext("2d"),o=n.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;r<=1;r+=1/360)o.addColorStop(r,"hsl("+360*r+", 100%, 50%)");n.fillStyle=o,n.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var a=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.hueBarSize[0]),r=Math.round(360*o/i.options.hueBarSize[0]);i.huePointer.style.left=o-7+"px",i.onValueChanged("H",r)},l=function t(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){a(t),document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)})}},{key:"setupSlCanvas",value:function(t){var i=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var n=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.slBarSize[0]-1),r=(0,s.limit)(n.clientY-t.getBoundingClientRect().top,0,i.options.slBarSize[1]-1),a=i.slBarHelper.grabColor(o,r);i.slPointer.style.left=o-7+"px",i.slPointer.style.top=r-7+"px",i.onValueChanged("RGB",a)},o=function t(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){n(t),document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)})}},{key:"setupAlphaCanvas",value:function(t){var i=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var n=t.getContext("2d"),o=n.createLinearGradient(0,0,t.width-1,0);o.addColorStop(0,"hsla(0, 0%, 50%, 0)"),o.addColorStop(1,"hsla(0, 0%, 50%, 1)"),n.fillStyle=o,n.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.alphaBarSize[0]),r=+(o/i.options.alphaBarSize[0]).toFixed(2);i.alphaPointer.style.left=o-7+"px",i.onValueChanged("ALPHA",r)},a=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)})}},{key:"setupInput",value:function(t){var i=this,n=+t.min,o=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",function(){t.select()}),"text"===t.type?t.addEventListener("change",function(){i.onValueChanged(r,t.value)}):((h||p)&&t.addEventListener("keydown",function(a){"Up"===a.key?(t.value=(0,s.limit)(+t.value+1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1):"Down"===a.key&&(t.value=(0,s.limit)(t.value-1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1)}),t.addEventListener("change",function(){var a=+t.value;i.onValueChanged(r,(0,s.limit)(a,n,o))}))}},{key:"setupClipboard",value:function(t){var i=this;t.title="click to copy",t.addEventListener("click",function(){t.value=(0,s.parseColor)([i.R,i.G,i.B,i.A],"hexcss4"),t.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(t){var i=this,n="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,o=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":o=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":o=s.PALETTE_MATERIAL_CHROME;break;default:o=(0,s.ensureArray)(this.options.palette)}if(this.options.paletteEditable||o.length>0){var r=function(n,o,r){var s=t.querySelector('.a-color-picker-palette-color[data-color="'+n+'"]')||document.createElement("div");s.className="a-color-picker-palette-color",s.style.backgroundColor=n,s.setAttribute("data-color",n),s.title=n,t.insertBefore(s,o),i.palette[n]=!0,r&&i.onPaletteColorAdd(n)},a=function(n,o){n?(t.removeChild(n),i.palette[n.getAttribute("data-color")]=!1,o&&i.onPaletteColorRemove(n.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(i){t.removeChild(i)}),Object.keys(i.palette).forEach(function(t){i.palette[t]=!1}),o&&i.onPaletteColorRemove())};if(o.map(function(t){return(0,s.parseColor)(t,n?"rgbcss4":"hex")}).filter(function(t){return!!t}).forEach(function(t){return r(t)}),this.options.paletteEditable){var l=document.createElement("div");l.className="a-color-picker-palette-color a-color-picker-palette-add",l.innerHTML="+",t.appendChild(l),t.addEventListener("click",function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?a(null,!0):r(n?(0,s.parseColor)([i.R,i.G,i.B,i.A],"rgbcss4"):(0,s.rgbToHex)(i.R,i.G,i.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?a(t.target,!0):i.onValueChanged(m,t.target.getAttribute("data-color")))})}else t.addEventListener("click",function(t){/a-color-picker-palette-color/.test(t.target.className)&&i.onValueChanged(m,t.target.getAttribute("data-color"))})}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=i;var o=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=o[0],this.G=o[1],this.B=o[2],this.slBarHelper.setHue(i),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=i;var a=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=i;var l=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=i;var c=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=i;var u=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=u[0],this.S=u[1],this.L=u[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=i;var d=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var h=r(i,3);this.R=h[0],this.G=h[1],this.B=h[2];var p=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=p[0],this.S=p[1],this.L=p[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case g:var f=r(i,4);this.R=f[0],this.G=f[1],this.B=f[2],this.A=f[3];var v=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case b:var y=r(i,4);this.H=y[0],this.S=y[1],this.L=y[2],this.A=y[3];var w=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=w[0],this.G=w[1],this.B=w[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var _=r((0,s.cssColorToRgb)(i)||[this.R,this.G,this.B],3);this.R=_[0],this.G=_[1],this.B=_[2];var C=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=C[0],this.S=C[1],this.L=C[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case m:var k=r((0,s.parseColor)(i,"rgba")||[0,0,0,1],4);this.R=k[0],this.G=k[1],this.B=k[2],this.A=k[3];var S=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=S[0],this.S=S[1],this.L=S[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=i}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",n&&n.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,i,n){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=i,this.inputL.value=n)}},{key:"updateInputRGB",value:function(t,i,n){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=i,this.inputB.value=n)}},{key:"updateInputRGBHEX",value:function(t,i,n){this.options.showHEX&&(this.inputRGBHEX.value=(0,s.rgbToHex)(t,i,n))}},{key:"updatePointerH",value:function(t){var i=this.options.hueBarSize[0]*t/360;this.huePointer.style.left=i-7+"px"}},{key:"updatePointerSL",value:function(t,i,n){var o=r((0,s.hslToRgb)(t,i,n),3),a=o[0],l=o[1],c=o[2],u=r(this.slBarHelper.findColor(a,l,c),2),d=u[0],h=u[1];d>=0&&(this.slPointer.style.left=d-7+"px",this.slPointer.style.top=h-7+"px")}},{key:"updatePointerA",value:function(t){if(this.options.showAlpha){var i=this.options.alphaBarSize[0]*t;this.alphaPointer.style.left=i-7+"px"}}}]),t}(),k=function(){function t(i){u(this,t),this.name=i,this.listeners=[]}return o(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter(function(i){return i!==t}):[]}},{key:"emit",value:function(t,i){for(var n=this.listeners.slice(0),o=0;o<n.length;o++)n[o].apply(i,t)}}]),t}();function S(t,i){var n=new C(t,i),o={change:new k("change"),coloradd:new k("coloradd"),colorremove:new k("colorremove")},a=!0,l={},c={get element(){return n.element},get rgb(){return[n.R,n.G,n.B]},set rgb(e){var u=r(e,3),d=u[0],h=u[1],p=u[2],f=[(0,s.limit)(d,0,255),(0,s.limit)(h,0,255),(0,s.limit)(p,0,255)];d=f[0],h=f[1],p=f[2],n.onValueChanged(g,[d,h,p,1])},get hsl(){return[n.H,n.S,n.L]},set hsl(e){var v=r(e,3),y=v[0],w=v[1],_=v[2],S=[(0,s.limit)(y,0,360),(0,s.limit)(w,0,100),(0,s.limit)(_,0,100)];y=S[0],w=S[1],_=S[2],n.onValueChanged(b,[y,w,_,1])},get rgbhex(){return this.all.hex},get rgba(){return[n.R,n.G,n.B,n.A]},set rgba(e){var x=r(e,4),I=x[0],E=x[1],T=x[2],A=x[3],j=[(0,s.limit)(I,0,255),(0,s.limit)(E,0,255),(0,s.limit)(T,0,255),(0,s.limit)(A,0,1)];I=j[0],E=j[1],T=j[2],A=j[3],n.onValueChanged(g,[I,E,T,A])},get hsla(){return[n.H,n.S,n.L,n.A]},set hsla(e){var L=r(e,4),D=L[0],P=L[1],R=L[2],M=L[3],z=[(0,s.limit)(D,0,360),(0,s.limit)(P,0,100),(0,s.limit)(R,0,100),(0,s.limit)(M,0,1)];D=z[0],P=z[1],R=z[2],M=z[3],n.onValueChanged(b,[D,P,R,M])},get color(){return this.all.toString()},set color(e){n.onValueChanged(m,e)},setColor:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.onValueChanged(m,t,{silent:i})},get all(){if(a){var B=[n.R,n.G,n.B,n.A],N=n.A<1?"rgba("+n.R+","+n.G+","+n.B+","+n.A+")":s.rgbToHex.apply(void 0,B);(l=(0,s.parseColor)(B,l)).toString=function(){return N},a=!1}return Object.assign({},l)},get onchange(){return o.change&&o.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return o.coloradd&&o.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return o.colorremove&&o.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(n.palette).filter(function(t){return n.palette[t]})},set palette(e){n.updatePalette(e)},show:function(){n.element.classList.remove("hidden")},hide:function(){n.element.classList.add("hidden")},toggle:function(){n.element.classList.toggle("hidden")},on:function(t,i){return t&&o[t]&&o[t].on(i),this},off:function(t,i){return t&&o[t]&&o[t].off(i),this},destroy:function(){o.change.off(),o.coloradd.off(),o.colorremove.off(),n.element.remove(),o=null,n=null}};return n.onchange=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];a=!0,o.change.emit([c].concat(i),c)},n.oncoloradd=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.coloradd.emit([c].concat(i),c)},n.oncolorremove=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.colorremove.emit([c].concat(i),c)},n.element.ctrl=c,c}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=n(5).toString(),I=document.createElement("style");I.setAttribute("type","text/css"),I.setAttribute("data-source","a-color-picker"),I.innerHTML=x,document.querySelector("head").appendChild(I)}i.createPicker=S,i.from=function(t,i){var n=(t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(d(t)):"string"==typeof t?[].concat(d(document.querySelectorAll(t))):t.jquery?t.get():[]:[]).map(function(t,n){var o=S(t,i);return o.index=n,o});return n.on=function(t,i){return n.forEach(function(n){return n.on(t,i)}),this},n.off=function(t){return n.forEach(function(i){return i.off(t)}),this},n},i.parseColorToRgb=s.parseColorToRgb,i.parseColorToRgba=s.parseColorToRgba,i.parseColorToHsl=s.parseColorToHsl,i.parseColorToHsla=s.parseColorToHsla,i.parseColor=s.parseColor,i.rgbToHex=s.rgbToHex,i.hslToRgb=s.hslToRgb,i.rgbToHsl=s.rgbToHsl,i.rgbToHsv=s.rgbToHsv,i.rgbToInt=s.rgbToInt,i.intToRgb=s.intToRgb,i.getLuminance=s.getLuminance,i.COLOR_NAMES=s.COLOR_NAMES,i.PALETTE_MATERIAL_500=s.PALETTE_MATERIAL_500,i.PALETTE_MATERIAL_CHROME=s.PALETTE_MATERIAL_CHROME,i.VERSION="1.2.1"},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.nvl=i.ensureArray=i.limit=i.getLuminance=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.cssHslaToHsla=i.cssHslToHsl=i.parseColorToRgba=i.parseColorToRgb=i.cssRgbaToRgba=i.cssRgbToRgb=i.cssColorToRgba=i.cssColorToRgb=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=void 0;var o,r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=(o=n(0))&&o.__esModule?o:{default:o};function a(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var l={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function c(t,i,n){return isNaN(t*=1)||i>t?i:t>n?n:t}function u(t,i){return null==t?i:t}function d(t,i,n){var o=[c(t,0,255),c(i,0,255),c(n,0,255)];return"#"+("000000"+((t=o[0])<<16|(i=o[1])<<8|(n=o[2])).toString(16)).slice(-6)}function h(t,i,n){var o=void 0,r=void 0,s=void 0,a=[c(t,0,360)/360,c(i,0,100)/100,c(n,0,100)/100];if(t=a[0],n=a[2],0==(i=a[1]))o=r=s=n;else{var l=function(t,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(i-t)*n:n<.5?i:n<2/3?t+(i-t)*(2/3-n)*6:t},u=n<.5?n*(1+i):n+i-n*i,d=2*n-u;o=l(d,u,t+1/3),r=l(d,u,t),s=l(d,u,t-1/3)}return[255*o,255*r,255*s].map(Math.round)}function p(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r=Math.max(t=o[0],i=o[1],n=o[2]),s=Math.min(t,i,n),a=void 0,l=void 0,u=(r+s)/2;if(r==s)a=l=0;else{var d=r-s;switch(l=u>.5?d/(2-r-s):d/(r+s),r){case t:a=(i-n)/d+6*(i<n);break;case i:a=(n-t)/d+2;break;case n:a=(t-i)/d+4}a/=6}return[360*a,100*l,100*u].map(Math.round)}function f(t,i,n){return t<<16|i<<8|n}function m(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(i||t)||[],10),o=n[3],s=n[4],a=n[5],c=n[7],u=n[8],d=n[9];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16)];if(void 0!==c)return[parseInt(c,16),parseInt(u,16),parseInt(d,16)]}}function g(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(i||t)||[],12),o=n[3],s=n[4],a=n[5],c=n[6],u=n[8],d=n[9],h=n[10],p=n[11];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==u)return[parseInt(u,16),parseInt(d,16),parseInt(h,16),p?+(parseInt(p,16)/255).toFixed(2):1]}}function b(t){if(t){var i=r(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,255),c(s,0,255),c(a,0,255)]:void 0}}function v(t){if(t){var i=r(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function y(t){if(Array.isArray(t))return[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255),c(u(t[3],1),0,1)];var i=g(t)||v(t);return i&&3===i.length&&i.push(1),i}function w(t){if(t){var i=r(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,360),c(s,0,100),c(a,0,100)]:void 0}}function _(t){if(t){var i=r(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100),c(u(t[3],1),0,1)];var i=_(t);return i&&3===i.length&&i.push(1),i}function k(t,i){switch(i){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return p.apply(void 0,a(t));case"hslcss":return"hsl("+(t=p.apply(void 0,a(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var n=p.apply(void 0,a(t));return"hsl("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hsla":return[].concat(a(p.apply(void 0,a(t))),[t[3]]);case"hslacss":var o=p.apply(void 0,a(t));return"hsla("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hex":return d.apply(void 0,a(t));case"hexcss4":return d.apply(void 0,a(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return f.apply(void 0,a(t))}}i.COLOR_NAMES=l,i.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],i.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],i.rgbToHex=d,i.hslToRgb=h,i.rgbToHsl=p,i.rgbToHsv=function(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r,s=Math.max(t=o[0],i=o[1],n=o[2]),a=Math.min(t,i,n),l=void 0,u=s-a;if(r=0===s?0:u/s,s==a)l=0;else{switch(s){case t:l=(i-n)/u+6*(i<n);break;case i:l=(n-t)/u+2;break;case n:l=(t-i)/u+4}l/=6}return[l,r,s]},i.rgbToInt=f,i.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},i.cssColorToRgb=m,i.cssColorToRgba=g,i.cssRgbToRgb=b,i.cssRgbaToRgba=v,i.parseColorToRgb=function(t){return Array.isArray(t)?t=[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255)]:m(t)||b(t)},i.parseColorToRgba=y,i.cssHslToHsl=w,i.cssHslaToHsla=_,i.parseColorToHsl=function(t){return Array.isArray(t)?t=[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100)]:w(t)},i.parseColorToHsla=C,i.parseColor=function(t,i){if(i=i||"rgb",null!=t){var n=void 0;if((n=y(t))||(n=C(t))&&(n=[].concat(a(h.apply(void 0,a(n))),[n[3]])))return(0,s.default)(i)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(t,i){return t[i]=k(n,i),t},i||{}):k(n,i.toString().toLowerCase())}},i.getLuminance=function(t,i,n){return .2126*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i=(i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*((n/=255)<.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},i.limit=c,i.ensureArray=function(t){return t?Array.from(t):[]},i.nvl=u},function(t,i,n){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,i){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,i,n){var o=n(6);t.exports="string"==typeof o?o:o.toString()},function(t,i,n){(t.exports=n(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(t,i){t.exports=function(t){var i=[];return i.toString=function(){return this.map(function(i){var n=function(t,i){var n=t[1]||"",o=t[3];if(!o)return n;if(i&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */";return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([r]).join("\n")}return[n].join("\n")}(i,t);return i[2]?"@media "+i[2]+"{"+n+"}":n}).join("")},i.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(o[s]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),i.push(a))}},i}}],i={};function n(o){if(i[o])return i[o].exports;var r=i[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=i,n.d=function(t,i,o){n.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},n.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,i){if(1&i&&(t=n(t)),8&i||4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)n.d(o,r,(function(i){return t[i]}).bind(null,r));return o},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},n.p="",n(n.s=1)}()},6441:function(t,i,n){"use strict";n.d(i,{Config:function(){return s}});var o=n(82758);let r={};class s{static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__defaultOptions}constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=o.globalDocument,this.ownerWindow=o.globalWindow,this.shadowRoot=null,this.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.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=o.INSERT_AS_HTML,this.enter=o.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.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,r)}}r=s.prototype,s.prototype.controls={}},26992:function(t,i,n){"use strict";n.d(i,{Async:function(){return m}});var o=n(82758),r=n(91898),s=n(12045),a=n(23282),l=n(84767),c=n(72430),u=n(14773),d=n(70799),h=n(86068),p=n(38837),f=n(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...n){if(this.isDestructed)return 0;let o={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(o=i).timeout||0),o.label&&this.clearLabel(o.label);let s=(0,r.setTimeout)(t,i,...n),a=o.label||s;return this.timers.set(a,s),this.__callbacks.set(a,t),s}updateTimeout(t,i){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let n=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{label:t,timeout:i})}clearLabel(t){t&&this.timers.has(t)&&((0,r.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,d.isString)(t))return this.clearLabel(t);(0,r.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,i,n=!1){let o=0,l=!1,d=[],h=(...i)=>{if(!l){o=0;let n=t(...i);if(l=!0,d.length){let t=()=>{d.forEach(t=>t()),d.length=0};(0,u.isPromise)(n)?n.finally(t):t()}}},p=(...s)=>{l=!1,i?(!o&&n&&h(...s),(0,r.clearTimeout)(o),o=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,o)):h(...s)};return(0,c.isPlainObject)(i)&&i.promisify?(...t)=>{let i=this.promise(t=>{d.push(t)}).catch(t=>{if((0,s.isAbortError)(t))return null;throw t});return p(...t),i}:p}microDebounce(t,i=!1){let n,o=!1,r=!0;return(...s)=>{if(n=s,o){r=!0;return}r=!0,i&&(r=!1,t(...n)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&r&&t(...n)})}}throttle(t,i,n=!1){let o=null,r,s,l;return(...n)=>{(r=!0,l=n,i)?o||(s=()=>{r?(t(...l),r=!1,o=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,o)):o=null})():t(...l)}}promise(t){let i=()=>{},n=new Promise((n,o)=>{i=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(n,o)});return!n.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(n.finally=t=>(n.then(t).catch(t),n)),n.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),n.rejectCallback=i,n}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(i=>{t.then(t=>(i("fulfilled"),t),t=>{throw i("rejected"),t}),this.setTimeout(()=>{i("pending")},100)});let i={};return Promise.race([t,i]).then(t=>t===i?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,i={timeout:100}){let n=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(n),n}requestIdlePromise(t){return this.promise(i=>{let n=this.requestIdleCallback(()=>i(n),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let n=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(t,{...i,signal:n.signal});return o.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),o}return this.promise((o,r)=>{let s=this.setTimeout(()=>{try{o(t())}catch(t){r(t)}this.__controllers.delete(n)},i.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(n),r((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let i=requestAnimationFrame(t);return this.__requestsRaf.add(i),i}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,r.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var t,i,n,o,r;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(t=null==queueMicrotask?void 0:queueMicrotask.bind(window))?t: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==(i=window.requestIdleCallback)?void 0:i.bind(window))?n:(t,i)=>{var n;let o=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(n=null==i?void 0:i.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(r=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},8884:function(t,i,n){"use strict";n.d(i,{Async:function(){return o.Async}});var o=n(26992)},4012:function(t,i,n){"use strict";n.d(i,{Component:function(){return c}});var o=n(8884),r=n(78213),s=n(580),a=n(21537);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,i,n){let o=[this.componentName];return t&&(t=t.replace(/[^a-z0-9-]/gi,"-"),o.push(`__${t}`)),i&&(o.push("_",i),o.push("_",(0,a.isVoid)(n)?"true":n.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,i){return(0,a.get)(t,i||this)}get isReady(){return this.componentStatus===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,i){if(t===this.__componentStatus)return;i===this&&(this.__componentStatus=t);let n=Object.getPrototypeOf(this);n&&(0,a.isFunction)(n.setStatusComponent)&&n.setStatusComponent(t,i);let o=l.get(this),r=null==o?void 0:o[t];r&&r.length&&r.forEach(t=>t(i))}hookStatus(t,i){let n=l.get(this);n||(n={},l.set(this,n)),n[t]||(n[t]=[]),n[t].push(i)}static isInstanceOf(t,i){return t instanceof i}constructor(){this.async=new o.Async,this.ownerWindow=window,this.__componentStatus=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,s.uniqueUid)()}}c.STATUSES=r.STATUSES},91907:function(t,i,n){"use strict";n.d(i,{Component:function(){return o.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return s.ViewComponent}});var o=n(4012),r=n(78213),s=n(80480)},78213:function(t,i,n){"use strict";n.d(i,{STATUSES:function(){return o}});let o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(t,i,n){"use strict";n.d(i,{ViewComponent:function(){return r}});var o=n(4012);class r extends o.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...i){return this.j.i18n(t,...i)}setParentView(t){return this.jodit=t,t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),this.setParentView(t)}}},82758:function(t,i,n){"use strict";n.r(i),n.d(i,{ACCURACY:function(){return V},APP_VERSION:function(){return o},BASE_PATH:function(){return ep},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return $},CLIPBOARD_ID:function(){return eb},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return ei},ES:function(){return r},FAT_MODE:function(){return u},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return er},INSERT_CLEAR_HTML:function(){return eo},INSERT_ONLY_TEXT:function(){return es},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return S},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return X},IS_INLINE:function(){return x},IS_MAC:function(){return el},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return ec},KEY_ALT:function(){return M},KEY_BACKSPACE:function(){return L},KEY_DELETE:function(){return H},KEY_DOWN:function(){return O},KEY_ENTER:function(){return P},KEY_ESC:function(){return R},KEY_F3:function(){return U},KEY_LEFT:function(){return z},KEY_META:function(){return j},KEY_RIGHT:function(){return N},KEY_SPACE:function(){return F},KEY_TAB:function(){return D},KEY_UP:function(){return B},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return et},MODE_SOURCE:function(){return Y},MODE_SPLIT:function(){return J},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return m},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return A},PARAGRAPH:function(){return G},PASSIVE_EVENTS:function(){return ey},SAFE_COUNT_CHANGE_CALL:function(){return ea},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return y},SPACE_REG_EXP_END:function(){return _},SPACE_REG_EXP_START:function(){return w},TEMP_ATTR:function(){return em},TEXT_HTML:function(){return Q},TEXT_PLAIN:function(){return Z},TEXT_RTF:function(){return ee},TOKENS:function(){return p},globalDocument:function(){return k},globalWindow:function(){return C},lang:function(){return eg}});let o="4.11.2",r="es2018",s=!0,a=!1,l=!0,c=!1,u=!0,d="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m="\xa0",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+/g,w=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,C="u">typeof window?window:void 0,k="u">typeof document?document:void 0,S=/^(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,x=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),E=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...E,"br","hr"]),A=new Set(E),j="Meta",L="Backspace",D="Tab",P="Enter",R="Escape",M="Alt",z="ArrowLeft",B="ArrowUp",N="ArrowRight",O="ArrowDown",F="Space",H="Delete",U="F3",q=5,V=10,W=[j,L,H,B,O,N,z,P,R,U,D],$="br",G="p",K=1,Y=2,J=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Z=X?"text":"text/plain",Q=X?"html":"text/html",ee=X?"rtf":"text/rtf",et="jodit-selection_marker",ei=300,en="insert_as_html",eo="insert_clear_html",er="insert_as_text",es="insert_only_text",ea=10,el=void 0!==C&&/Mac|iPod|iPhone|iPad/.test(C.navigator.platform),ec={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:el?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:ed,isMin:eh}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=k.currentScript;if(t)return eu(t.src);let i=k.querySelectorAll("script[src]");return i&&i.length?eu(i[i.length-1].src):eu(C.location.href)})(),ep=ed,ef=eh,em="data-jodit-temp",eg={},eb="clipboard",ev="source-consumer",ey=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(t,i,n){"use strict";n.d(i,{Create:function(){return l}});var o=n(82758),r=n(2748),s=n(21537),a=n(38837);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(t,i,n){let o=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(o),i&&((0,s.isPlainObject)(i)?(0,s.attr)(o,i):n=i),n&&(0,s.asArray)(n).forEach(t=>o.appendChild((0,s.isString)(t)?this.fromHTML(t):t)),o}div(t,i,n){let o=this.element("div",i,n);return t&&(o.className=t),o}sandbox(){var t;let i=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(i);let n=null==(t=i.contentWindow)?void 0:t.document;if((0,a.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,i]}span(t,i,n){let o=this.element("span",i,n);return t&&(o.className=t),o}a(t,i,n){let o=this.element("a",i,n);return t&&(o.className=t),o}text(t){return this.doc.createTextNode(t)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,i){let n=this.div();n.innerHTML=t.toString();let o=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(r.Dom.safeRemove(o),i){let t=(0,s.refs)(o);Object.keys(i).forEach(n=>{let o=t[n];o&&!1===i[n]&&r.Dom.hide(o)})}return o}applyCreateAttributes(t){if(this.createAttributes){let i=this.createAttributes;if(i&&i[t.tagName.toLowerCase()]){let n=i[t.tagName.toLowerCase()];(0,s.isFunction)(n)?n(t):(0,s.isPlainObject)(n)&&(0,s.attr)(t,n)}}}constructor(t,i){this.document=t,this.createAttributes=i}}},12060:function(t,i,n){"use strict";n.d(i,{Create:function(){return o.Create}});var o=n(20218)},45219:function(t,i,n){"use strict";n.d(i,{autobind:function(){return r}});var o=n(23282);function r(t,i,n){if(!(0,o.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=n.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},33433:function(t,i,n){"use strict";n.d(i,{cache:function(){return c},cacheHTML:function(){return u},cached:function(){return l}});var o=n(78213),r=n(2748),s=n(27613),a=n(82760);function l(t,i){let n=Object.getOwnPropertyDescriptor(t,i);return!n||(0,s.isFunction)(n.get)?null:n.value}function c(t,i,n){let o=n.get;if(!o)throw(0,a.error)("Getter property descriptor expected");n.get=function(){let t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,i,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:t}),t}}function u(t,i,n){let l=n.value;if(!(0,s.isFunction)(l))throw(0,a.error)("Handler must be a Function");let c=!0,u=new WeakMap;n.value=function(...t){var i;if(c&&u.has(this.constructor))return null==(i=u.get(this.constructor))?void 0:i.cloneNode(!0);let n=l.apply(this,t);return c&&r.Dom.isElement(n)&&u.set(this.constructor,n),c?n.cloneNode(!0):n},t.hookStatus(o.STATUSES.ready,t=>{c=!!((0,s.isViewObject)(t)?t:t.jodit).options.cache})}},87325:function(t,i,n){"use strict";n.d(i,{component:function(){return a},getComponentClass:function(){return l}});var o=n(82758),r=n(80568);let s=new Map;function a(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}let n=(0,r.getClassName)(t.prototype);if(s.has(n)&&!o.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return s.set(n,i),i}function l(t){return s.get(t)}},81577:function(t,i,n){"use strict";n.d(i,{debounce:function(){return l},throttle:function(){return c}});var o=n(91907),r=n(27613),s=n(38837),a=n(89890);function l(t,i=!1,n="debounce"){return(l,c)=>{let u=l[c];if(!(0,r.isFunction)(u))throw(0,a.error)("Handler must be a Function");return l.hookStatus(o.STATUSES.ready,o=>{let{async:a}=o;(0,s.assert)(null!=a,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let l=(0,r.isFunction)(t)?t(o):t,u=(0,r.isNumber)(l)||(0,r.isPlainObject)(l)?l:o.defaultTimeout;Object.defineProperty(o,c,{configurable:!0,value:a[n](o[c].bind(o),u,i)})}),{configurable:!0,get(){return u.bind(this)}}}}function c(t,i=!1){return l(t,i,"throttle")}},55153:function(t,i,n){"use strict";n.d(i,{derive:function(){return r}});var o=n(23282);function r(...t){return i=>{let n=i.prototype;for(let i=0;i<t.length;i++){let r=t[i],s=Object.getOwnPropertyNames(r.prototype);for(let t=0;t<s.length;t++){let i=s[t],a=Object.getOwnPropertyDescriptor(r.prototype,i);null!=a&&(0,o.isFunction)(a.value)&&!(0,o.isFunction)(n[i])&&Object.defineProperty(n,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},97357:function(t,i,n){"use strict";n.d(i,{hook:function(){return s}});var o=n(23282),r=n(89890);function s(t){return(i,n)=>{if(!(0,o.isFunction)(i[n]))throw(0,r.error)("Handler must be a Function");i.hookStatus(t,t=>{t[n].call(t)})}}},78927:function(t,i,n){"use strict";n.d(i,{idle:function(){return a}});var o=n(91907),r=n(23282),s=n(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:n}=t,o=t[i];t[i]=(...i)=>n.requestIdleCallback(o.bind(t,...i))})}}},65478:function(t,i,n){"use strict";n.r(i),n.d(i,{autobind:function(){return o.autobind},cache:function(){return r.cache},cacheHTML:function(){return r.cacheHTML},cached:function(){return r.cached},component:function(){return s.component},debounce:function(){return a.debounce},derive:function(){return l.derive},getComponentClass:function(){return s.getComponentClass},hook:function(){return c.hook},idle:function(){return u.idle},nonenumerable:function(){return d.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return a.throttle},wait:function(){return p.wait},watch:function(){return f.watch}});var o=n(45219),r=n(33433),s=n(87325),a=n(81577),l=n(55153),c=n(97357),u=n(78927),d=n(31589),h=n(53213),p=n(13525),f=n(37133)},31589:function(t,i,n){"use strict";n.d(i,{nonenumerable:function(){return o}});let o=(t,i)=>{!1!==(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable&&Object.defineProperty(t,i,{enumerable:!1,set(t){Object.defineProperty(this,i,{enumerable:!1,writable:!0,value:t})}})}},53213:function(t,i,n){"use strict";n.d(i,{persistent:function(){return s}});var o=n(78213),r=n(39955);function s(t,i){t.hookStatus(o.STATUSES.ready,t=>{let n=(0,r.isViewObject)(t)?t:t.jodit,o=`${n.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=n.storage.get(o))?t:s},set(t){n.storage.set(o,t)}})})}},13525:function(t,i,n){"use strict";n.d(i,{wait:function(){return a}});var o=n(78213),r=n(23282),s=n(89890);function a(t){return(i,n)=>{let a=i[n];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(o.STATUSES.ready,i=>{let{async:o}=i,r=i[n],s=0;Object.defineProperty(i,n,{configurable:!0,value:function n(...a){o.clearTimeout(s),t(i)?r.apply(i,a):s=o.setTimeout(()=>n(...a),10)}})})}}},37133:function(t,i,n){"use strict";n.d(i,{watch:function(){return h}});var o=n(78213),r=n(73026),s=n(46559),a=n(23282),l=n(72430),c=n(39955),u=n(89890),d=n(37790);function h(t,i){return(n,h)=>{var p;if(!(0,a.isFunction)(n[h]))throw(0,u.error)("Handler must be a Function");let f=null==(p=null==i?void 0:i.immediately)||p,m=null==i?void 0:i.context,g=i=>{let o=(0,c.isViewObject)(i)?i:i.jodit,u=(t,...n)=>{if(!i.isInDestruct)return i[h](t,...n)};f||(u=i.async.microDebounce(u,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[n,r]=t.split(":"),s=m;n.length&&(s=i.get(n)),(0,a.isFunction)(s)&&(s=s(i)),o.events.on(s||i,r,u),s||o.events.on(r,u),i.hookStatus("beforeDestruct",()=>{o.events.off(s||i,r,u).off(r,u)});return}let s=t.split("."),[c]=s,h=s.slice(1),p=i[c];(0,l.isPlainObject)(p)&&(0,r.observable)(p).on(`change.${h.join(".")}`,u);let f=(0,d.getPropertyDescriptor)(n,c);Object.defineProperty(i,c,{configurable:!0,set(t){let n=p;n!==t&&(p=t,f&&f.set&&f.set.call(i,t),(0,l.isPlainObject)(p)&&(p=(0,r.observable)(p)).on(`change.${h.join(".")}`,u),u(c,n,p))},get(){return f&&f.get?f.get.call(i):p}})})};(0,a.isFunction)(n.hookStatus)?n.hookStatus(o.STATUSES.ready,g):g(n)}}},2748:function(t,i,n){"use strict";n.d(i,{Dom:function(){return y}});var o=n(82758),r=n(4510),s=n(68345),a=n(23282),l=n(58487),c=n(42320),u=n(70799),d=n(86068),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(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,i,n){let o,r=t;n.s.save();let s=!1;do s=!1,(o=r.nextSibling)&&!y.isBlock(o)&&!y.isTag(o,"br")&&(s=!0,r=o);while(s);return y.__wrapElements(i,n,t,r)}static __wrapElements(t,i,n,o){let r=(0,u.isString)(t)?i.createInside.element(t):t;n.parentNode&&n.parentNode.insertBefore(r,n);let s=n;for(;s&&(s=n.nextSibling,r.appendChild(n),n!==o&&s);)n=s;return i.s.restore(),r}static wrapInline(t,i,n){let o,r=t,s=t;n.s.save();let a=!1;do a=!1,(o=r.previousSibling)&&!y.isBlock(o)&&(a=!0,r=o);while(a);do a=!1,(o=s.nextSibling)&&!y.isBlock(o)&&(a=!0,s=o);while(a);return y.__wrapElements(i,n,r,s)}static wrap(t,i,n){let o=(0,u.isString)(i)?n.element(i):i;if(y.isNode(t)){if(!t.parentNode)throw(0,b.error)("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{let i=t.extractContents();t.insertNode(o),o.appendChild(i)}return o}static unwrap(t){let i=t.parentNode;if(i){for(;t.firstChild;)i.insertBefore(t.firstChild,t);y.safeRemove(t)}}static between(t,i,n){let o=t;for(;o&&o!==i&&!(t!==o&&n(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)o=o.parentNode;t=null==o?void 0:o.nextSibling}o=t}}static replace(t,i,n,o=!1,s=!1){let a;if((0,l.isHTML)(i)&&((0,p.assert)(n,"Need create instance for new tag"),i=n.fromHTML(i)),(0,u.isString)(i)?((0,p.assert)(n,"Need create instance for new tag"),a=n.element(i)):a=i,!s)for(;t.firstChild;)a.appendChild(t.firstChild);return o&&y.isElement(t)&&y.isElement(a)&&(0,r.toArray)(t.attributes).forEach(t=>{a.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return y.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return y.each(t,t=>y.isEmptyTextNode(t))}static isContentEditable(t,i){return y.isNode(t)&&!y.closest(t,t=>y.isElement(t)&&"false"===t.getAttribute("contenteditable"),i)}static isEmpty(t,i=o.NO_EMPTY_TAGS){let n;if(!t)return!0;n=(0,a.isFunction)(i)?i:t=>i.has(t.nodeName.toLowerCase());let r=t=>null==t.nodeValue||0===(0,h.trim)(t.nodeValue).length;return y.isText(t)?r(t):!(y.isElement(t)&&n(t))&&y.each(t,t=>{if(y.isText(t)&&!r(t)||y.isElement(t)&&n(t))return!1})}static isNode(t){return!!(t&&(0,u.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,a.isFunction)(t.appendChild))}static isCell(t){return y.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return y.isTag(t,o.LIST_TAGS)}static isLeaf(t){return y.isTag(t,"li")}static isImage(t){return y.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,d.isVoid)(t)&&"object"==typeof t&&y.isNode(t)&&o.IS_BLOCK.test(t.nodeName)}static isText(t){return!!(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return!!(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){var i;return!!y.isNode(t)&&!!((null==(i=t.ownerDocument)?void 0:i.defaultView)&&t.nodeType===Node.ELEMENT_NODE)}static isFragment(t){var i;return!!y.isNode(t)&&!!((null==(i=t.ownerDocument)?void 0:i.defaultView)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){var i;if(!y.isNode(t))return!1;let n=null==(i=t.ownerDocument)?void 0:i.defaultView;return!!(n&&t instanceof n.HTMLElement)}static isInlineBlock(t){return y.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(t,"display").toString())}static canSplitBlock(t){return!(0,d.isVoid)(t)&&y.isHTMLElement(t)&&y.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static last(t,i){let n=null==t?void 0:t.lastChild;if(!n)return null;do{if(i(n))return n;let o=n.lastChild;if(o||(o=n.previousSibling),!o&&n.parentNode!==t){do n=n.parentNode;while(n&&!(null==n?void 0:n.previousSibling)&&n.parentNode!==t);o=null==n?void 0:n.previousSibling}n=o}while(n);return null}static prev(t,i,n,o=!0){return y.find(t,i,n,!1,o)}static next(t,i,n,o=!0){return y.find(t,i,n,!0,o)}static prevWithClass(t,i){return y.prev(t,t=>y.isElement(t)&&t.classList.contains(i),t.parentNode)}static nextWithClass(t,i){return y.next(t,t=>y.isElement(t)&&t.classList.contains(i),t.parentNode)}static find(t,i,n,o=!0,r=!0){let s=this.nextGen(t,n,o,r),a=s.next();for(;!a.done;){if(i(a.value))return a.value;a=s.next()}return null}static*nextGen(t,i,n=!0,o=!0){let r=[],s=t;do{let i=n?s.nextSibling:s.previousSibling;for(;i;)r.unshift(i),i=n?i.nextSibling:i.previousSibling;yield*this.runInStack(t,r,n,o),s=s.parentNode}while(s&&s!==i);return null}static each(t,i,n=!0){let o=this.eachGen(t,n),r=o.next();for(;!r.done;){if(!1===i(r.value))return!1;r=o.next()}return!0}static eachGen(t,i=!0){return this.runInStack(t,[t],i)}static*runInStack(t,i,n,o=!0){for(;i.length;){let r=i.pop();if(o){let t=n?r.lastChild:r.firstChild;for(;t;)i.push(t),t=n?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,i,n,o="nextSibling",r="firstChild"){let s=t;do{if(i(s))return s||null;if(r&&s&&s[r]){let t=y.findWithCurrent(s[r],i,s,o,r);if(t)return t}for(;s&&!s[o]&&s!==n;)s=s.parentNode;s&&s[o]&&s!==n&&(s=s[o])}while(s&&s!==n);return null}static findSibling(t,i=!0,n=t=>!y.isEmptyTextNode(t)){let o=y.sibling(t,i);for(;o&&!n(o);)o=y.sibling(o,i);return o&&n(o)?o:null}static findNotEmptySibling(t,i){return y.findSibling(t,i,t=>{var i;return!y.isEmptyTextNode(t)&&!!(!y.isText(t)||(null==(i=t.nodeValue)?void 0:i.length)&&(0,h.trim)(t.nodeValue))})}static findNotEmptyNeighbor(t,i,n){return(0,v.call)(i?y.prev:y.next,t,t=>!!(t&&(!(y.isText(t)||y.isComment(t))||(0,h.trim)((null==t?void 0:t.nodeValue)||"").length)),n)}static sibling(t,i){return i?t.previousSibling:t.nextSibling}static up(t,i,n,o=!1){let r=t;if(!r)return null;do{if(i(r))return r;if(r===n||!r.parentNode)break;r=r.parentNode}while(r&&r!==n);return r===n&&o&&i(r)?r:null}static closest(t,i,n){let o,r=t=>t.toLowerCase();if((0,a.isFunction)(i))o=i;else if((0,s.isArray)(i)||(0,c.isSet)(i)){let t=(0,c.isSet)(i)?i:new Set(i.map(r));o=i=>!!(i&&t.has(r(i.nodeName)))}else o=t=>!!(t&&r(i)===r(t.nodeName));return y.up(t,o,n)}static furthest(t,i,n){let o=null,r=null==t?void 0:t.parentElement;for(;r&&r!==n;)i(r)&&(o=r),r=null==r?void 0:r.parentElement;return o}static appendChildFirst(t,i){let n=t.firstChild;n?n!==i&&t.insertBefore(i,n):t.appendChild(i)}static after(t,i){let{parentNode:n}=t;n&&(n.lastChild===t?n.appendChild(i):n.insertBefore(i,t.nextSibling))}static before(t,i){let{parentNode:n}=t;n&&n.insertBefore(i,t)}static prepend(t,i){t.insertBefore(i,t.firstChild)}static append(t,i){(0,s.isArray)(i)?i.forEach(i=>{this.append(t,i)}):t.appendChild(i)}static moveContent(t,i,n=!1,s=()=>!0){let a=(t.ownerDocument||o.globalDocument).createDocumentFragment();(0,r.toArray)(t.childNodes).filter(t=>!!s(t)||(y.safeRemove(t),!1)).forEach(t=>{a.appendChild(t)}),n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a)}static isOrContains(t,i,n=!1){return t===i?!n:!!(i&&t&&this.up(i,i=>i===t,t,!0))}static safeRemove(...t){t.forEach(t=>y.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,i){t.collapsed||t.deleteContents();let n=y.isFragment(i)?i.lastChild:i;t.startContainer===t.endContainer&&t.collapsed&&y.isTag(t.startContainer,o.INSEPARABLE_TAGS)?y.after(t.startContainer,i):(t.insertNode(i),n&&t.setStartBefore(n)),t.collapse(!0),[i.nextSibling,i.previousSibling].forEach(t=>y.isText(t)&&!t.nodeValue&&y.safeRemove(t))}static hide(t){t&&((0,g.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let i=(0,g.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=i||"")}static isTag(t,i){if(!this.isElement(t))return!1;let n=t.tagName.toLowerCase(),o=t.tagName.toUpperCase();if(i instanceof Set)return i.has(n)||i.has(o);if(Array.isArray(i))throw TypeError("Dom.isTag does not support array");return n===i||o===i}static markTemporary(t,i){return i&&(0,f.attr)(t,i),(0,f.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!y.isElement(t)&&(y.isMarker(t)||"true"===(0,f.attr)(t,o.TEMP_ATTR))}static isMarker(t){return y.isNode(t)&&y.isTag(t,"span")&&t.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,r.toArray)(t.querySelectorAll(`[${o.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(t,i,n){"use strict";n.d(i,{Dom:function(){return o.Dom},LazyWalker:function(){return r.LazyWalker}});var o=n(2748),r=n(70071)},70071:function(t,i,n){"use strict";n.d(i,{LazyWalker:function(){return a}});var o=n(45219),r=n(2748),s=n(72757);class a extends s.Eventify{setWork(t){return this.isWorked&&this.break(),this.workNodes=r.Dom.eachGen(t,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}__workPerform(){var t;if(this.workNodes){this.isWorked=!0;let i=0,n=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<=n;){let t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){var i;return!!t&&(void 0===this.options.whatToShow||t.nodeType===this.options.whatToShow)&&null!=(i=this.emit("visit",t))&&i}constructor(t,i={}){super(),this.async=t,this.options=i,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0,this.__schedulerController=null}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],a.prototype,"__workPerform",null)},98220:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return d}});var o=n(82758),r=n(46559),s=n(68345),a=n(23282),l=n(70799),c=n(89890),u=n(15738);class d{mute(t){return this.__mutedEvents.add(null!=t?t:"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(null!=t?t:"*"),this}__eachEvent(t,i){(0,r.splitArray)(t).map(t=>t.trim()).forEach(t=>{let n=t.split("."),o=n[1]||u.defaultNameSpace;i.call(this,n[0],o)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let i=new u.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:i})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,i){let n=this.__doc.createEvent("HTMLEvents");(0,l.isString)(i)?n.initEvent(i,!0,!0):(n.initEvent(i.type,i.bubbles,i.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(n,t,{value:i[t],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:i,enumerable:!0})),t.dispatchEvent(n)}get current(){return this.currents[this.currents.length-1]}on(t,i,n,r){let u,d,p,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(u=this,d=t,p=i,f=n):(u=t,d=i,p=n,f=r),!((0,l.isString)(d)||(0,l.isStringArray)(d))||0===d.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(p))throw(0,c.error)("Need event handler");if((0,s.isArray)(u))return u.forEach(t=>{this.on(t,d,p,f)}),this;let m=u,g=this.__getStore(m),b=this,v=function(t,...i){if(!b.isMuted(t))return p&&p.call(this,...i)};return h(m)&&(v=function(t){if(!b.isMuted(t.type)&&(b.__prepareEvent(t),p&&!1===p.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(d,(t,i)=>{var n,r;if(0===t.length)throw(0,c.error)("Need event name");if(!1===g.indexOf(t,i,p)){let s={event:t,originalCallback:p,syntheticCallback:v};if(g.set(t,i,s,null==f?void 0:f.top),h(m)){let i=o.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!=(n=null==f?void 0:f.capture)&&n}:null!=(r=null==f?void 0:f.capture)&&r;v.options=i,m.addEventListener(t,v,i),this.__memoryDOMSubjectToHandler(m,v)}}}),this}__memoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap.get(t)||new Set;n.add(i),this.__domEventsMap.set(t,n)}__unmemoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap,o=n.get(t)||new Set;o.delete(i),o.size?n.set(t,o):n.delete(t)}one(t,i,n,o){let r,s,a,c;(0,l.isString)(t)||(0,l.isStringArray)(t)?(r=this,s=t,a=i,c=n):(r=t,s=i,a=n,c=o);let u=(...t)=>(this.off(r,s,u),a(...t));return this.on(r,s,u,c),this}off(t,i,n){let o,r,c;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(o=this,r=t,c=i):(o=t,r=i,c=n),(0,s.isArray)(o))return o.forEach(t=>{this.off(t,r,c)}),this;let d=o,p=this.__getStore(d);if(!((0,l.isString)(r)||(0,l.isStringArray)(r))||0===r.length)return p.namespaces().forEach(t=>{this.off(d,"."+t)}),this.__removeStoreFromSubject(d),this;let f=t=>{var i;h(d)&&(d.removeEventListener(t.event,t.syntheticCallback,null!=(i=t.syntheticCallback.options)&&i),this.__unmemoryDOMSubjectToHandler(d,t.syntheticCallback))},m=(t,i)=>{if(""===t)return void p.events(i).forEach(t=>{""!==t&&m(t,i)});let n=p.get(t,i);if(n&&n.length)if((0,a.isFunction)(c)){let o=p.indexOf(t,i,c);!1!==o&&(f(n[o]),n.splice(o,1),n.length||p.clearEvents(i,t))}else n.forEach(f),n.length=0,p.clearEvents(i,t)};return this.__eachEvent(r,(t,i)=>{i===u.defaultNameSpace?p.namespaces().forEach(i=>{m(t,i)}):m(t,i)}),p.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(t,i){let n=(0,l.isString)(t)?this:t,o=(0,l.isString)(t)?t:i;if("string"!=typeof o)throw(0,c.error)("Need event names");let r=this.__getStore(n);this.__eachEvent(o,(t,i)=>{let o=r.get(t,i);o&&this.__stopped.push(o),i===u.defaultNameSpace&&r.namespaces(!0).forEach(i=>this.stopPropagation(n,t+"."+i))})}__removeStop(t){if(t){let i=this.__stopped.indexOf(t);-1!==i&&this.__stopped.splice(0,i+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,i,...n){let o,r,s=(0,l.isString)(t)?this:t,a=(0,l.isString)(t)?t:i,d=(0,l.isString)(t)?[i,...n]:n;if(!h(s)&&!(0,l.isString)(a))throw(0,c.error)("Need events names");let p=this.__getStore(s);return!(0,l.isString)(a)&&h(s)?this.__triggerNativeEvent(s,i):this.__eachEvent(a,(t,i)=>{if(h(s))this.__triggerNativeEvent(s,t);else{let n=p.get(t,i);if(n)try{[...n].every(i=>!this.__isStopped(n)&&(this.currents.push(t),r=i.syntheticCallback.call(s,t,...d),this.currents.pop(),void 0!==r&&(o=r),!0))}finally{this.__removeStop(n)}i!==u.defaultNameSpace||h(s)||p.namespaces().filter(t=>t!==i).forEach(i=>{let n=this.fire.apply(this,[s,t+"."+i,...d]);void 0!==n&&(o=n)})}}),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((t,i)=>{this.off(i)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=o.globalDocument,this.__prepareEvent=t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(i=>{Object.defineProperty(t,i,{value:t.changedTouches[0][i],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=new Date().getTime()}}function h(t){return(0,a.isFunction)(t.addEventListener)}},72757:function(t,i,n){"use strict";n.d(i,{Eventify:function(){return o}});class o{on(t,i){var n;return this.__map.has(t)||this.__map.set(t,new Set),null==(n=this.__map.get(t))||n.add(i),this}off(t,i){var n;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.delete(i)),this}destruct(){this.__map.clear()}emit(t,...i){var n;let o;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.forEach(t=>{o=t(...i)})),o}constructor(){this.__map=new Map}}},57012:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return o}});let o=new(n(98220)).EventEmitter},3827:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return a.EventHandlersStore},Eventify:function(){return r.Eventify},defaultNameSpace:function(){return a.defaultNameSpace},observable:function(){return s.observable}});var o=n(98220),r=n(72757),s=n(73026),a=n(15738)},73026:function(t,i,n){"use strict";n.d(i,{observable:function(){return u}});var o=n(68345),r=n(59292),s=n(72430),a=n(37790);let l=Symbol("observable-object");function c(t){return void 0!==t[l]}function u(t){if(c(t))return t;let i={},n={},u=(i,r)=>((0,o.isArray)(i)?i.map(t=>u(t,r)):(n[i]||(n[i]=[]),n[i].push(r)),t),d=(r,...s)=>{if((0,o.isArray)(r))return void r.map(t=>d(t,...s));try{!i[r]&&n[r]&&(i[r]=!0,n[r].forEach(i=>i.call(t,...s)))}finally{i[r]=!1}},h=(i,n=[])=>{let o={};c(i)||(Object.defineProperty(i,l,{enumerable:!1,value:!0}),Object.keys(i).forEach(l=>{let c=n.concat(l).filter(t=>t.length);o[l]=i[l];let u=(0,a.getPropertyDescriptor)(i,l);Object.defineProperty(i,l,{set:i=>{let n=o[l];if(!(0,r.isFastEqual)(o[l],i)){d(["beforeChange",`beforeChange.${c.join(".")}`],l,i),(0,s.isPlainObject)(i)&&h(i,c),u&&u.set?u.set.call(t,i):o[l]=i;let r=[];d(["change",...c.reduce((t,i)=>(r.push(i),t.push(`change.${r.join(".")}`),t),[])],c.join("."),n,(null==i?void 0:i.valueOf)?i.valueOf():i)}},get:()=>u&&u.get?u.get.call(t):o[l],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(o[l])&&h(o[l],c)}),Object.defineProperty(t,"on",{value:u}))};return h(t),t}},15738:function(t,i,n){"use strict";n.d(i,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var o=n(4510),r=n(38837);let s="JoditEventDefaultNamespace";class a{get(t,i){if(this.__store.has(i)){let n=this.__store.get(i);return(0,r.assert)(n,"-"),n[t]}}indexOf(t,i,n){let o=this.get(t,i);if(o){for(let t=0;t<o.length;t+=1)if(o[t].originalCallback===n)return t}return!1}namespaces(t=!1){let i=(0,o.toArray)(this.__store.keys());return t?i.filter(t=>t!==s):i}events(t){let i=this.__store.get(t);return i?Object.keys(i):[]}set(t,i,n,o=!1){let r=this.__store.get(i);r||(r={},this.__store.set(i,r)),void 0===r[t]&&(r[t]=[]),o?r[t].unshift(n):r[t].push(n)}clear(){this.__store.clear()}clearEvents(t,i){let n=this.__store.get(t);n&&n[i]&&(delete n[i],Object.keys(n).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return S},extendLang:function(){return w},getContainer:function(){return C},getPopupViewRoot:function(){return k},instances:function(){return f},modules:function(){return y},pluginSystem:function(){return v},uniqueUid:function(){return b}});var o=n(19306),r=n(70799),s=n(39955),a=n(12475),l=n(41180),c=n(80568),u=n(41876),d=n(57012),h=n(82758),p=n(22732);let f={},m=1,g=new Set;function b(){function t(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let i=t();for(;g.has(i);)i=t();return g.add(i),i}let v=new u.PluginSystem({getContainer:C}),y={},w=t=>{Object.keys(t).forEach(i=>{h.lang[i]?Object.assign(h.lang[i],t[i]):h.lang[i]=t[i]})},_=new WeakMap;function C(t,i,n="div",l=!1){let u=(0,r.isString)(i)?i:i?(0,c.getClassName)(i.prototype):"jodit-utils",d=_.get(t)||{},h=u+n,f=(0,s.isViewObject)(t)?t:t.j,m=null;if(!d[h]){let i=f.c;if(m=k(f.o,f.container,t.od.body),l&&(0,o.isJoditObject)(t)&&t.od!==t.ed){i=t.createInside;let r="style"===n?t.ed.head:t.ed.body;m=(0,o.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}let r=i.element(n,{className:`jodit jodit-${(0,a.kebabCase)(u)}-container jodit-box`});r.classList.add(`jodit_theme_${f.o.theme||"default"}`),m.appendChild(r),d[h]=r,t.hookStatus("beforeDestruct",()=>{f.events.off(r),p.Dom.safeRemove(r),delete d[h],Object.keys(d).length&&_.delete(t)}),_.set(t,d),f.events.fire("getContainer",r)}return d[h].classList.remove("jodit_theme_default","jodit_theme_dark"),d[h].classList.add(`jodit_theme_${f.o.theme||"default"}`),d[h]}function k(t,i,n){var o,r,s;return null!=(s=null!=(r=null!=(o=t.popupRoot)?o:t.shadowRoot)?r:p.Dom.closest(i,t=>p.Dom.isHTMLElement(t)&&(p.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,l.css)(t,"position"))),n))?s:n}let S=d.eventEmitter},29999:function(t,i,n){"use strict";n.d(i,{asArray:function(){return r}});var o=n(68345);let r=t=>(0,o.isArray)(t)?t:[t]},76855:function(t,i,n){"use strict";n.d(i,{asArray:function(){return o.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var o=n(29999),r=n(46559),s=n(4510)},46559:function(t,i,n){"use strict";function o(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}n.d(i,{splitArray:function(){return o}})},4510:function(t,i,n){"use strict";n.d(i,{toArray:function(){return s}});var o=n(70722),r=n(58844);let s=function(...t){var i;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},91898:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=n(13252)},13252:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var o=n(82758);function r(t,i,...n){return i?o.globalWindow.setTimeout(t,i,...n):(t.call(null,...n),0)}function s(t){o.globalWindow.clearTimeout(t)}},54765:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return r}});var o=n(82758);function r(){let t=!0;try{let i=o.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},27613:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return r.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return a.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return l.isEqual},isFastEqual:function(){return l.isFastEqual},isFunction:function(){return c.isFunction},isHTML:function(){return u.isHTML},isHtmlFromWord:function(){return d.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return p.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return g.isMarker},isNativeFunction:function(){return b.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return y.isNumeric},isPlainObject:function(){return w.isPlainObject},isPromise:function(){return _.isPromise},isSet:function(){return C.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return S.isURL},isValidName:function(){return x.isValidName},isViewObject:function(){return I.isViewObject},isVoid:function(){return E.isVoid},isWindow:function(){return T.isWindow}});var o=n(54765),r=n(12045),s=n(68345),a=n(87612),l=n(59292),c=n(23282),u=n(58487),d=n(29673),h=n(60132),p=n(72913),f=n(19306),m=n(45603),g=n(78116),b=n(70722),v=n(84767),y=n(29807),w=n(72430),_=n(14773),C=n(42320),k=n(70799),S=n(26049),x=n(37508),I=n(39955),E=n(86068),T=n(52742)},12045:function(t,i,n){"use strict";function o(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}n.d(i,{isAbortError:function(){return o}})},68345:function(t,i,n){"use strict";function o(t){return Array.isArray(t)}n.d(i,{isArray:function(){return o}})},87612:function(t,i,n){"use strict";function o(t){return"boolean"==typeof t}n.d(i,{isBoolean:function(){return o}})},59292:function(t,i,n){"use strict";n.d(i,{isEqual:function(){return r},isFastEqual:function(){return s}});var o=n(67462);function r(t,i){return t===i||(0,o.stringify)(t)===(0,o.stringify)(i)}function s(t,i){return t===i}},23282:function(t,i,n){"use strict";function o(t){return"function"==typeof t}n.d(i,{isFunction:function(){return o}})},29673:function(t,i,n){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}n.d(i,{isHtmlFromWord:function(){return o}})},58487:function(t,i,n){"use strict";n.d(i,{isHTML:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},60132:function(t,i,n){"use strict";n.d(i,{hasContainer:function(){return c},isDestructable:function(){return l},isInitable:function(){return a}});var o=n(2748),r=n(23282),s=n(86068);function a(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.init)}function l(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.destruct)}function c(t){return!(0,s.isVoid)(t)&&o.Dom.isElement(t.container)}},72913:function(t,i,n){"use strict";n.d(i,{isInt:function(){return s}});var o=n(29807),r=n(70799);function s(t){return(0,r.isString)(t)&&(0,o.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},19306:function(t,i,n){"use strict";n.d(i,{isJoditObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},45603:function(t,i,n){"use strict";n.d(i,{isLicense:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},78116:function(t,i,n){"use strict";n.d(i,{isMarker:function(){return r}});var o=n(2748);function r(t){return o.Dom.isMarker(t)}},70722:function(t,i,n){"use strict";function o(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(t)))}n.d(i,{isNativeFunction:function(){return o}})},84767:function(t,i,n){"use strict";function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}n.d(i,{isNumber:function(){return o}})},29807:function(t,i,n){"use strict";n.d(i,{isNumeric:function(){return r}});var o=n(70799);function r(t){if((0,o.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},72430:function(t,i,n){"use strict";n.d(i,{isPlainObject:function(){return r}});var o=n(52742);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},14773:function(t,i,n){"use strict";function o(t){return t&&"function"==typeof t.then}n.d(i,{isPromise:function(){return o}})},42320:function(t,i,n){"use strict";n.d(i,{isSet:function(){return r}});var o=n(23282);function r(t){return!!t&&(0,o.isFunction)(t.has)&&(0,o.isFunction)(t.add)&&(0,o.isFunction)(t.delete)}},70799:function(t,i,n){"use strict";n.d(i,{isString:function(){return r},isStringArray:function(){return s}});var o=n(68345);function r(t){return"string"==typeof t}function s(t){return(0,o.isArray)(t)&&r(t[0])}},26049:function(t,i,n){"use strict";n.d(i,{isURL:function(){return r}});var o=n(82758);function r(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let i=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(i.protocol)}catch(t){return!1}let i=o.globalDocument.createElement("a");return i.href=t,!!i.hostname}},37508:function(t,i,n){"use strict";function o(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}n.d(i,{isValidName:function(){return o}})},39955:function(t,i,n){"use strict";n.d(i,{isViewObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&t.isView)}},86068:function(t,i,n){"use strict";function o(t){return null==t}n.d(i,{isVoid:function(){return o}})},52742:function(t,i,n){"use strict";function o(t){return null!=t&&t===t.window}n.d(i,{isWindow:function(){return o}})},35278:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o}});let o=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let i=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!i)return"#000000";let n=parseInt(i[2],10),o=parseInt(i[3],10),r=(parseInt(i[4],10)|o<<8|n<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return i[1]+"#"+r}},58149:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o.colorToHex}});var o=n(35278)},32574:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return c}});var o=n(82758),r=n(2748),s=n(49055),a=n(76078);function l(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(t,i,n)=>{switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(i)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(i)).toFixed(0)+"px"}return t})}function c(t){if(-1===t.indexOf("<html "))return t;t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7);let i=o.globalDocument.createElement("iframe");i.style.display="none",o.globalDocument.body.appendChild(i);let n="";try{let c=i.contentDocument||(i.contentWindow?i.contentWindow.document:null);if(c){c.open(),c.write(t),c.close();try{for(let t=0;t<c.styleSheets.length;t+=1){let i=c.styleSheets[t].cssRules;for(let t=0;t<i.length;t+=1)""!==i[t].selectorText&&(0,a.$$)(i[t].selectorText,c.body).forEach(n=>{n.style.cssText=l(i[t].style.cssText+";"+n.style.cssText)})}}catch(t){if(!o.IS_PROD)throw t}r.Dom.each(c.body,t=>{if(r.Dom.isElement(t)){let i=t.getAttribute("style");i&&(t.style.cssText=l(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),n=c.firstChild?(0,s.trim)(c.body.innerHTML):""}}catch(t){}finally{r.Dom.safeRemove(i)}return n&&(t=n),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(t,i,n){"use strict";n.d(i,{cleanFromWord:function(){return l}});var o=n(82758),r=n(2748),s=n(4510),a=n(49055);function l(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let i="";try{let n=o.globalDocument.createElement("div");n.innerHTML=t;let a=[];n.firstChild&&r.Dom.each(n,t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":a.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":r.Dom.unwrap(t);break;default:(0,s.toArray)(t.attributes).forEach(i=>{-1===["src","href","rel","content"].indexOf(i.name.toLowerCase())&&t.removeAttribute(i.name)})}break;case Node.TEXT_NODE:break;default:a.push(t)}}),r.Dom.safeRemove.apply(null,a),i=n.innerHTML}catch(t){}return i&&(t=i),(t=t.split(/(\n)/).filter(a.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(t,i,n){"use strict";n.d(i,{htmlspecialchars:function(){return r}});var o=n(82758);function r(t){let i=o.globalDocument.createElement("div");return i.textContent=t,i.innerHTML}},75275:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return r.cleanFromWord},htmlspecialchars:function(){return s.htmlspecialchars},nl2br:function(){return a.nl2br},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},stripTags:function(){return c.stripTags}});var o=n(32574),r=n(53212),s=n(53326),a=n(45971),l=n(86518),c=n(91003)},45971:function(t,i,n){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}n.d(i,{nl2br:function(){return o}})},86518:function(t,i,n){"use strict";n.d(i,{safeHTML:function(){return s},sanitizeHTMLElement:function(){return l}});var o=n(2748),r=n(43555);function s(t,i){var n;(o.Dom.isElement(t)||o.Dom.isFragment(t))&&((null!=(n=i.removeEventAttributes)?n:i.removeOnError)?(a(t),(0,r.$$)("*",t).forEach(t=>a(t))):i.removeOnError&&(l(t,i),(0,r.$$)("[onerror]",t).forEach(t=>l(t,i))),i.safeJavaScriptLink&&(l(t,i),(0,r.$$)('a[href^="javascript"]',t).forEach(t=>l(t,i))),i.safeLinksTarget&&(0,r.$$)('a[target="_blank"]',t).forEach(t=>{let i=(t.getAttribute("rel")||"").split(/\s+/).filter(Boolean);i.includes("noopener")||i.push("noopener"),i.includes("noreferrer")||i.push("noreferrer"),(0,r.attr)(t,"rel",i.join(" "))}))}function a(t){if(!o.Dom.isElement(t))return!1;let i=!1,n=[];for(let i=0;i<t.attributes.length;i++)t.attributes[i].name.toLowerCase().startsWith("on")&&n.push(t.attributes[i].name);for(let o of n)t.removeAttribute(o),i=!0;return i}function l(t,{safeJavaScriptLink:i,removeOnError:n}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let s=!1;n&&t.hasAttribute("onerror")&&((0,r.attr)(t,"onerror",null),s=!0);let a=t.getAttribute("href");return i&&a&&0===a.trim().indexOf("javascript")&&((0,r.attr)(t,"href",location.protocol+"//"+a),s=!0),s}},91003:function(t,i,n){"use strict";n.d(i,{stripTags:function(){return function t(i,n=document,d=null){let h=n.createElement("div");return(0,r.isString)(i)?h.innerHTML=i:h.appendChild(i),(0,a.$$)("*",h).forEach(i=>{let r=i.parentNode;if(!r)return;if(d&&o.Dom.isTag(i,d)){let r=i.nodeName.toLowerCase(),s=o.Dom.isTag(i,u)?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${t(i.innerHTML,n,d)}%%%/jodit-${r}%%%`;o.Dom.before(i,n.createTextNode(s)),o.Dom.safeRemove(i);return}if(o.Dom.isTag(i,c))return void o.Dom.safeRemove(i);if(!o.Dom.isTag(i,l))return;let s=i.nextSibling;!(o.Dom.isText(s)&&/^\s/.test(s.nodeValue||""))&&s&&r.insertBefore(n.createTextNode(" "),s)}),(0,s.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,i,n,o)=>`<${i?"/":""}${o}>`)}}});var o=n(2748),r=n(70799),s=n(49055),a=n(43555);let l=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),c=new Set(["script","style"]),u=new Set(["br","hr","input"])},21537:function(t,i,n){"use strict";n.r(i),n.d(i,{$$:function(){return h.$$},CamelCaseToKebabCase:function(){return d.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return h.ConfigDeepFlatten},ConfigFlatten:function(){return h.ConfigFlatten},ConfigProto:function(){return h.ConfigProto},ConnectionError:function(){return h.ConnectionError},LimitedStack:function(){return h.LimitedStack},NUMBER_FIELDS_REG:function(){return c.NUMBER_FIELDS_REG},OptionsError:function(){return h.OptionsError},abort:function(){return h.abort},alignElement:function(){return h.alignElement},alreadyLoadedList:function(){return h.alreadyLoadedList},appendScriptAsync:function(){return h.appendScriptAsync},appendStyleAsync:function(){return h.appendStyleAsync},applyStyles:function(){return l.applyStyles},asArray:function(){return o.asArray},assert:function(){return h.assert},attr:function(){return h.attr},browser:function(){return h.browser},buildQuery:function(){return h.buildQuery},call:function(){return h.call},callPromise:function(){return h.callPromise},callThis:function(){return h.callThis},camelCase:function(){return d.camelCase},cleanFromWord:function(){return l.cleanFromWord},clearAlign:function(){return h.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},clearTimeout:function(){return r.clearTimeout},cns:function(){return h.cns},colorToHex:function(){return a.colorToHex},completeUrl:function(){return h.completeUrl},connection:function(){return h.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssPath:function(){return h.cssPath},ctrlKey:function(){return h.ctrlKey},dataBind:function(){return h.dataBind},defaultLanguage:function(){return h.defaultLanguage},error:function(){return h.error},fastClone:function(){return h.fastClone},fuzzySearchIndex:function(){return d.fuzzySearchIndex},get:function(){return h.get},getClassName:function(){return h.getClassName},getContentWidth:function(){return u.getContentWidth},getDataTransfer:function(){return h.getDataTransfer},getPropertyDescriptor:function(){return h.getPropertyDescriptor},getScrollParent:function(){return u.getScrollParent},getXPathByElement:function(){return h.getXPathByElement},hAlignElement:function(){return h.hAlignElement},hasBrowserColorPicker:function(){return s.hasBrowserColorPicker},hasContainer:function(){return s.hasContainer},htmlspecialchars:function(){return l.htmlspecialchars},humanSizeToBytes:function(){return h.humanSizeToBytes},i18n:function(){return d.i18n},inView:function(){return h.inView},innerWidth:function(){return u.innerWidth},isAbortError:function(){return s.isAbortError},isArray:function(){return s.isArray},isAtom:function(){return h.isAtom},isBoolean:function(){return s.isBoolean},isDestructable:function(){return s.isDestructable},isEqual:function(){return s.isEqual},isFastEqual:function(){return s.isFastEqual},isFunction:function(){return s.isFunction},isHTML:function(){return s.isHTML},isHtmlFromWord:function(){return s.isHtmlFromWord},isInitable:function(){return s.isInitable},isInt:function(){return s.isInt},isJoditObject:function(){return s.isJoditObject},isLicense:function(){return s.isLicense},isMarker:function(){return s.isMarker},isNativeFunction:function(){return s.isNativeFunction},isNumber:function(){return s.isNumber},isNumeric:function(){return s.isNumeric},isPlainObject:function(){return s.isPlainObject},isPromise:function(){return s.isPromise},isSet:function(){return s.isSet},isString:function(){return s.isString},isStringArray:function(){return s.isStringArray},isURL:function(){return s.isURL},isValidName:function(){return s.isValidName},isViewObject:function(){return s.isViewObject},isVoid:function(){return s.isVoid},isWindow:function(){return s.isWindow},kebabCase:function(){return d.kebabCase},keepNames:function(){return h.keepNames},keys:function(){return h.keys},loadImage:function(){return h.loadImage},loadNext:function(){return h.loadNext},loadNextStyle:function(){return h.loadNextStyle},markAsAtomic:function(){return h.markAsAtomic},markDeprecated:function(){return h.markDeprecated},markOwner:function(){return h.markOwner},memorizeExec:function(){return h.memorizeExec},nl2br:function(){return l.nl2br},normalizeColor:function(){return c.normalizeColor},normalizeCssNumericValue:function(){return c.normalizeCssNumericValue},normalizeCssValue:function(){return c.normalizeCssValue},normalizeKeyAliases:function(){return c.normalizeKeyAliases},normalizeLicense:function(){return c.normalizeLicense},normalizePath:function(){return c.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return c.normalizeUrl},offset:function(){return u.offset},options:function(){return h.options},parseQuery:function(){return h.parseQuery},position:function(){return u.position},previewBox:function(){return h.previewBox},refs:function(){return h.refs},reset:function(){return h.reset},resolveElement:function(){return h.resolveElement},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return h.scrollIntoViewIfNeeded},set:function(){return h.set},setTimeout:function(){return r.setTimeout},size:function(){return u.size},splitArray:function(){return o.splitArray},sprintf:function(){return d.sprintf},stringify:function(){return d.stringify},stripTags:function(){return l.stripTags},toArray:function(){return o.toArray},trim:function(){return d.trim},trimChars:function(){return d.trimChars},trimInv:function(){return d.trimInv},ucfirst:function(){return d.ucfirst}});var o=n(76855),r=n(91898),s=n(27613),a=n(58149),l=n(75275),c=n(71521),u=n(56175),d=n(59007),h=n(43555)},71521:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return r.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return r.normalizeCssNumericValue},normalizeCssValue:function(){return r.normalizeCssValue},normalizeKeyAliases:function(){return s.normalizeKeyAliases},normalizeLicense:function(){return a.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return u.normalizeSize},normalizeUrl:function(){return d.normalizeUrl}});var o=n(21224),r=n(3760),s=n(49033),a=n(12972),l=n(9992),c=n(70091),u=n(46334),d=n(37406)},21224:function(t,i,n){"use strict";n.d(i,{normalizeColor:function(){return s}});var o=n(35278),r=n(49055);let s=t=>{let i=["#"],n=(0,o.colorToHex)(t);if(!n)return!1;if(3===(n=(n=(0,r.trim)(n.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)i.push(n[t]),i.push(n[t]);return i.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n}},3760:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return l},normalizeCssNumericValue:function(){return c},normalizeCssValue:function(){return u}});var o=n(29807),r=n(86068),s=n(35278),a=n(12475);let l=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function c(t,i){return!(0,r.isVoid)(i)&&l.test(t)&&(0,o.isNumeric)(i.toString())?parseInt(i.toString(),10)+"px":i}function u(t,i){if("font-weight"===(0,a.kebabCase)(t)){switch(i.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.isNumeric)(i)?Number(i):i}return/color/i.test(t)&&/^rgb/i.test(i.toString())&&(0,s.colorToHex)(i.toString())||i}},49033:function(t,i,n){"use strict";n.d(i,{normalizeKeyAliases:function(){return s}});var o=n(82758),r=n(49055);function s(t){let i={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(t=>(0,r.trim)(t.toLowerCase())).map(t=>o.KEY_ALIASES[t]||t).sort((t,i)=>n[t]&&!n[i]?-1:!n[t]&&n[i]?1:n[t]&&n[i]?n[t]-n[i]:t>i?1:-1).filter(t=>!i[t]&&""!==t&&(i[t]=!0)).join("+")}},12972:function(t,i,n){"use strict";n.d(i,{normalizeLicense:function(){return o}});let o=(t,i=8)=>{let n=[];for(;t.length;)n.push(t.substr(0,i)),t=t.substr(i);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}},9992:function(t,i,n){"use strict";n.d(i,{normalizePath:function(){return r}});var o=n(49055);let r=(...t)=>t.filter(t=>(0,o.trim)(t).length).map((i,n)=>(i=i.replace(/([^:])[\\/]+/g,"$1/"),n&&(i=i.replace(/^\//,"")),n!==t.length-1&&(i=i.replace(/\/$/,"")),i)).join("/")},70091:function(t,i,n){"use strict";n.d(i,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,i)=>{switch(i){case"":case".":break;case"..":t.pop();break;default:t.push(i)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},46334:function(t,i,n){"use strict";n.d(i,{normalizeSize:function(){return o}});let o=(t,i)=>/^[0-9]+$/.test(t.toString())?t+i:t.toString()},37406:function(t,i,n){"use strict";n.d(i,{normalizeUrl:function(){return o}});let o=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},16442:function(t,i,n){"use strict";n.d(i,{getScrollParent:function(){return function t(i){if(!i)return null;let n=r.Dom.isHTMLElement(i),a=n&&(0,s.css)(i,"overflowY");return n&&"visible"!==a&&"hidden"!==a&&i.scrollHeight>=i.clientHeight?i:t(i.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=n(82758),r=n(2748),s=n(43555)},56175:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o.getContentWidth},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return c.position},size:function(){return a.size}});var o=n(44506),r=n(16442),s=n(81630),a=n(21496),l=n(81284),c=n(5700)},81630:function(t,i,n){"use strict";n.d(i,{innerWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.clientWidth-(parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"))}},21496:function(t,i,n){"use strict";n.d(i,{size:function(){return r}});var o=n(27613);function r(t){return(0,o.isString)(t)||(0,o.isArray)(t)?t.length:(0,o.isPlainObject)(t)?Object.keys(t).length:0}},81284:function(t,i,n){"use strict";n.d(i,{offset:function(){return o}});let o=(t,i,n,r=!1)=>{let s,a,l;try{s=t.getBoundingClientRect()}catch(t){s={top:0,bottom:0,left:0,right:0,width:0,height:0}}let c=n.body,u=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},d=n.defaultView||n.parentWindow,h=d.pageYOffset||u.scrollTop||c.scrollTop,p=d.pageXOffset||u.scrollLeft||c.scrollLeft,f=u.clientTop||c.clientTop||0,m=u.clientLeft||c.clientLeft||0,g=i.iframe;if(!r&&i&&i.options&&i.o.iframe&&g){let{top:t,left:n}=o(g,i,i.od,!0);a=s.top+t,l=s.left+n}else a=s.top+h-f,l=s.left+p-m;return{top:Math.round(a),left:Math.round(l),width:s.width,height:s.height}}},5700:function(t,i,n){"use strict";n.d(i,{position:function(){return function t(i,n,r=!1){var s,a;let l=i.getBoundingClientRect(),c=l.left,u=l.top;if((0,o.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(i)&&!r){let{left:i,top:o}=t(n.iframe,n,!0);c+=i,u+=o}return{left:Math.round(c),top:Math.round(u),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var o=n(19306)},87058:function(t,i,n){"use strict";n.d(i,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,i,n)=>n.toUpperCase())},67477:function(t,i,n){"use strict";n.d(i,{fuzzySearchIndex:function(){return r}});var o=n(82758);function r(t,i,n=0,s=1){let a=0,l=0,c=-1,u=0,d=0;for(l=n;a<t.length&&l<i.length;)t[a].toLowerCase()===i[l].toLowerCase()?(a++,u++,d=0,-1===c&&(c=l)):a>0&&(d>=s&&i[l]!==o.INVISIBLE_SPACE?(a=0,c=-1,u=0,d=0,l--):(d++,u++)),l++;return a===t.length?[c,u]:[-1,0]}},56967:function(t,i,n){"use strict";n.d(i,{i18n:function(){return u},sprintf:function(){return c}});var o=n(82758),r=n(70799),s=n(36409),a=n(43555),l=n(6441);let c=(t,i)=>{if(!i||!i.length)return t;let n=/%([sd])/g,o=n.exec(t),r=t,s=0;for(;o&&void 0!==i[s];)r=r.replace(o[0],i[s].toString()),s+=1,o=n.exec(t);return r};function u(t,i,n){if(!(0,r.isString)(t))throw(0,a.error)("i18n: Need string in first argument");if(!t.length)return t;let u=!!(null==n?void 0:n.debugLanguage),d={},h=t=>i&&i.length?c(t,i):t,p=(0,a.defaultLanguage)(l.Config.defaultOptions.language,l.Config.defaultOptions.language),f=(0,a.defaultLanguage)(null==n?void 0:n.language,p),m=i=>{if(!i)return;if((0,r.isString)(i[t]))return h(i[t]);let n=t.toLowerCase();if((0,r.isString)(i[n]))return h(i[n]);let o=(0,s.ucfirst)(t);if((0,r.isString)(i[o]))return h(i[o])};void 0!==o.lang[f]?d=o.lang[f]:u||(d=void 0!==o.lang[p]?o.lang[p]:o.lang.en);let g=null==n?void 0:n.i18n;if(g&&g[f]){let t=m(g[f]);if(t)return t}return m(d)||(!u&&o.lang.en&&(0,r.isString)(o.lang.en[t])&&o.lang.en[t]?h(o.lang.en[t]):u?"{"+t+"}":(o.IS_PROD,h(t)))}},59007:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return a.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return r.fuzzySearchIndex},i18n:function(){return s.i18n},kebabCase:function(){return a.kebabCase},sprintf:function(){return s.sprintf},stringify:function(){return l.stringify},trim:function(){return c.trim},trimChars:function(){return c.trimChars},trimInv:function(){return c.trimInv},ucfirst:function(){return u.ucfirst}});var o=n(87058),r=n(67477),s=n(56967),a=n(12475),l=n(67462),c=n(49055),u=n(36409)},12475:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return r},kebabCase:function(){return o}});let o=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},67462:function(t,i,n){"use strict";function o(t,i={}){if("object"!=typeof t)return String(t);let n=new Set(i.excludeKeys),r=new WeakMap;return JSON.stringify(t,(t,i)=>{if(!n.has(t)){if("object"==typeof i&&null!=i){if(r.get(i))return"[refObject]";r.set(i,!0)}return i}},i.prettify)}n.d(i,{stringify:function(){return o}})},49055:function(t,i,n){"use strict";n.d(i,{trim:function(){return r},trimChars:function(){return s},trimInv:function(){return a}});var o=n(82758);function r(t){return t.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function s(t,i){return t.replace(RegExp(`[${i}]+$`),"").replace(RegExp(`^[${i}]+`),"")}function a(t){return t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(t,i,n){"use strict";function o(t){return t.length?t[0].toUpperCase()+t.substring(1):""}n.d(i,{ucfirst:function(){return o}})},25726:function(t,i,n){"use strict";n.d(i,{alignElement:function(){return l},clearAlign:function(){return a},hAlignElement:function(){return s}});var o=n(22732),r=n(41180);function s(t,i){i&&"normal"!==i?"center"!==i?((0,r.css)(t,"float",i),(0,r.clearCenterAlign)(t)):(0,r.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(t,"float")&&-1!==["right","left"].indexOf((0,r.css)(t,"float").toString().toLowerCase())&&(0,r.css)(t,"float",""),(0,r.clearCenterAlign)(t))}function a(t){o.Dom.each(t,t=>{o.Dom.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))})}function l(t,i){if(o.Dom.isNode(i)&&o.Dom.isElement(i))switch(a(i),t.toLowerCase()){case"justifyfull":i.style.textAlign="justify";break;case"justifyright":i.style.textAlign="right";break;case"justifyleft":i.style.textAlign="left";break;case"justifycenter":i.style.textAlign="center"}}},63799:function(t,i,n){"use strict";n.d(i,{alreadyLoadedList:function(){return s},appendScriptAsync:function(){return l},appendStyleAsync:function(){return c},loadNext:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?l(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}},loadNextStyle:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?c(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}}});var o=n(70799),r=n(66292);let s=new Map,a=t=>(i,n)=>{if(s.has(n))return s.get(n);let o=t(i,n);return s.set(n,o),o},l=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,r.completeUrl)(i)});t.e.one(s,"error",o).one(s,"load",n),t.od.body.appendChild(s)})),c=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("link");s.rel="stylesheet",s.media="all",s.crossOrigin="anonymous",t.isInDestruct||t.e.on(s,"load",()=>n(s)).on(s,"error",o),s.href=(0,r.completeUrl)(i),t.o.shadowRoot?t.o.shadowRoot.appendChild(s):t.od.body.appendChild(s)}))},38837:function(t,i,n){"use strict";n.d(i,{assert:function(){return r}});class o extends Error{constructor(t){super(t),this.name="AssertionError"}}function r(t,i){if(!t)throw new o(`Assertion failed: ${i}`)}},29960:function(t,i,n){"use strict";n.d(i,{attr:function(){return function t(i,n,c){if(!i||!(0,o.isFunction)(i.getAttribute))return null;if(!(0,s.isString)(n))return Object.keys(n).forEach(o=>{let s=n[o];(0,r.isPlainObject)(s)&&"style"===o?(0,l.css)(i,s):("className"===o&&(o="class"),t(i,o,s))}),null;let u=(0,a.CamelCaseToKebabCase)(n);if(/^-/.test(u)){let n=t(i,`data${u}`);if(n)return n;u=u.substr(1)}if(void 0!==c)if(null==c)i.hasAttribute(u)&&i.removeAttribute(u);else{let t=c.toString();return"IMG"===i.nodeName&&("width"===u||"height"===u)&&(t=t.replace("px","")),i.setAttribute(u,t),t}return i.getAttribute(u)}}});var o=n(23282),r=n(72430),s=n(70799),a=n(12475),l=n(41180)},97639:function(t,i,n){"use strict";n.d(i,{browser:function(){return o}});let o=t=>{let i=navigator.userAgent.toLowerCase(),n=/(firefox)[\s/]([\w.]+)/.exec(i)||/(chrome)[\s/]([\w.]+)/.exec(i)||/(webkit)[\s/]([\w.]+)/.exec(i)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(i)||/(msie)[\s]([\w.]+)/.exec(i)||/(trident)\/([\w.]+)/.exec(i)||0>i.indexOf("compatible")||[];return"version"===t?n[2]:"webkit"===t?"chrome"===n[1]||"webkit"===n[1]:"ff"===t?"firefox"===n[1]:"msie"===t?"trident"===n[1]||"msie"===n[1]:n[1]===t}},44710:function(t,i,n){"use strict";n.d(i,{buildQuery:function(){return r}});var o=n(72430);let r=(t,i)=>{let n=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,c=t[a];n.push((0,o.isPlainObject)(c)?r(c,l):s(l)+"="+s(c))}return n.join("&")}},66292:function(t,i,n){"use strict";n.d(i,{completeUrl:function(){return r}});var o=n(82758);let r=t=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},68934:function(t,i,n){"use strict";n.d(i,{ConfigDeepFlatten:function(){return function t(i){return(0,u.keys)(i,!1).reduce((n,o)=>(n[o]=(0,r.isPlainObject)(i[o])?t(i[o]):i[o],n),{})}},ConfigFlatten:function(){return d},ConfigProto:function(){return function t(i,n,u=0){if(Object.getPrototypeOf(i)!==Object.prototype)return i;let d=l.Config.defaultOptions;if((0,s.isString)(i.preset)){if(void 0!==d.presets[i.preset]){let t=d.presets[i.preset];Object.keys(t).forEach(n=>{(0,a.isVoid)(i[n])&&(i[n]=t[n])})}delete i.preset}let h={};return Object.keys(i).forEach(s=>{let a=i[s],l=n?n[s]:null;if((0,r.isPlainObject)(a)&&(0,r.isPlainObject)(l)&&!(0,c.isAtom)(a)){h[s]=t(a,l,u+1);return}if(0!==u&&(0,o.isArray)(a)&&!(0,c.isAtom)(a)&&(0,o.isArray)(l)){h[s]=[...a,...l.slice(a.length)];return}h[s]=a}),Object.setPrototypeOf(h,n),h}}});var o=n(68345),r=n(72430),s=n(70799),a=n(86068),l=n(6441),c=n(97735),u=n(37790);function d(t){return(0,u.keys)(t,!1).reduce((i,n)=>(i[n]=t[n],i),{})}},55877:function(t,i,n){"use strict";n.d(i,{convertMediaUrlToVideoEmbed:function(){return a}});var o=n(82758),r=n(26049),s=n(82501);let a=(t,{width:i=400,height:n=345}={})=>{if(!(0,r.isURL)(t))return t;let a=o.globalDocument.createElement("a"),l=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;a.href=t,i||(i=400),n||(n=345);let c=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":return l.test(t)?t.replace(l,'<iframe width="'+i+'" height="'+n+'" src="'+c+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):t;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{let o=a.search?(0,s.parseQuery)(a.search):{v:a.pathname.substring(1)};return/^embed\/.*/.test(o.v)&&(o.v=o.v.substring(6)),o.v?'<iframe width="'+i+'" height="'+n+'" src="'+c+"//www.youtube.com/embed/"+o.v+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},41180:function(t,i,n){"use strict";n.d(i,{clearCenterAlign:function(){return u},css:function(){return c}});var o=n(87612),r=n(72430),s=n(3760),a=n(87058),l=n(12475);function c(t,i,n,u=!1){if((0,o.isBoolean)(n)&&(u=n,n=void 0),(0,r.isPlainObject)(i)||void 0!==n){let o=(t,i,n)=>{void 0!==(n=(0,s.normalizeCssNumericValue)(i,n))&&(null==n||c(t,i,!0)!==(0,s.normalizeCssValue)(i,n))&&(t.style[i]=n)};if((0,r.isPlainObject)(i)){let n=Object.keys(i);for(let r=0;r<n.length;r+=1)o(t,(0,a.camelCase)(n[r]),i[n[r]])}else o(t,(0,a.camelCase)(i),n);return""}let d=(0,l.kebabCase)(i),h=t.ownerDocument||document,p=!!h&&(h.defaultView||h.parentWindow),f=t.style[i],m="";return void 0!==f&&""!==f?m=f:p&&!u&&(m=p.getComputedStyle(t).getPropertyValue(d)),s.NUMBER_FIELDS_REG.test(i)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,s.normalizeCssValue)(i,m)}let u=t=>{"block"===c(t,"display")&&c(t,"display","");let{style:i}=t;"auto"===i.marginLeft&&"auto"===i.marginRight&&(i.marginLeft="",i.marginRight="")}},15456:function(t,i,n){"use strict";n.d(i,{ctrlKey:function(){return o}});let o=t=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1}},86583:function(t,i,n){"use strict";n.d(i,{dataBind:function(){return s}});var o=n(39955);let r=new WeakMap,s=(t,i,n)=>{let s=r.get(t);if(!s){s={},r.set(t,s);let i=null;(0,o.isViewObject)(t.j)&&(i=t.j.e),(0,o.isViewObject)(t)&&(i=t.e),i&&i.on("beforeDestruct",()=>{r.delete(t)})}return void 0===n?s[i]:(s[i]=n,n)}},96325:function(t,i,n){"use strict";n.d(i,{defaultLanguage:function(){return s}});var o=n(82758),r=n(70799);let s=(t,i="en")=>"auto"!==t&&(0,r.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):i},82760:function(t,i,n){"use strict";n.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var o=n(32880);function r(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function a(t){return new o.OptionsError(t)}},93661:function(t,i,n){"use strict";function o(t="Aborted"){return new DOMException(t,"AbortError")}n.d(i,{abort:function(){return o}})},86397:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},32880:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return o.abort}});var o=n(93661),r=n(86397),s=n(57865)},57865:function(t,i,n){"use strict";n.d(i,{OptionsError:function(){return o}});class o extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},89890:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return r.abort},connection:function(){return o.connection},error:function(){return o.error},options:function(){return o.options}});var o=n(82760),r=n(32880)},97735:function(t,i,n){"use strict";n.d(i,{fastClone:function(){return a},isAtom:function(){return r},markAsAtomic:function(){return s}});var o=n(67462);function r(t){return t&&t.isAtom}function s(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function a(t){return JSON.parse((0,o.stringify)(t))}},80568:function(t,i,n){"use strict";n.d(i,{getClassName:function(){return s},keepNames:function(){return r}});var o=n(23282);let r=new Map,s=t=>{var i;if((0,o.isFunction)(t.className))return t.className();let n=(null==(i=t.constructor)?void 0:i.originalConstructor)||t.constructor;if(r.has(n))return r.get(n);if(n.name)return n.name;let s=new RegExp(/^\s*function\s*(\S*)\s*\(/),a=n.toString().match(s);return a?a[1]:""}},94643:function(t,i,n){"use strict";n.d(i,{get:function(){return s}});var o=n(70799),r=n(86068);function s(t,i){if(!(0,o.isString)(t)||!t.length)return null;let n=t.split("."),s=i;try{for(let t of n){if((0,r.isVoid)(s[t]))return null;s=s[t]}}catch(t){return null}return(0,r.isVoid)(s)?null:s}},38420:function(t,i,n){"use strict";n.d(i,{humanSizeToBytes:function(){return o}});let o=t=>{if(/^[0-9.]+$/.test(t.toString()))return parseFloat(t);let i=t.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],o=parseFloat(t.substr(0,t.length-2));return -1!==n.indexOf(i)?o*Math.pow(1024,n.indexOf(i)+1):parseInt(t,10)}},43555:function(t,i,n){"use strict";n.d(i,{$$:function(){return E.$$},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return b.ConnectionError},LimitedStack:function(){return A.LimitedStack},OptionsError:function(){return b.OptionsError},abort:function(){return b.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return r.alreadyLoadedList},appendScriptAsync:function(){return r.appendScriptAsync},appendStyleAsync:function(){return r.appendStyleAsync},assert:function(){return s.assert},attr:function(){return a.attr},browser:function(){return l.browser},buildQuery:function(){return c.buildQuery},call:function(){return j.call},callPromise:function(){return j.callPromise},callThis:function(){return j.callThis},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},cns:function(){return C.cns},completeUrl:function(){return u.completeUrl},connection:function(){return b.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return p.css},cssPath:function(){return E.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},getClassName:function(){return w.getClassName},getDataTransfer:function(){return j.getDataTransfer},getPropertyDescriptor:function(){return j.getPropertyDescriptor},getXPathByElement:function(){return E.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return _.humanSizeToBytes},inView:function(){return I.inView},isAtom:function(){return v.isAtom},keepNames:function(){return w.keepNames},keys:function(){return j.keys},loadImage:function(){return j.loadImage},loadNext:function(){return r.loadNext},loadNextStyle:function(){return r.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return j.markOwner},memorizeExec:function(){return j.memorizeExec},options:function(){return b.options},parseQuery:function(){return k.parseQuery},previewBox:function(){return S.previewBox},refs:function(){return E.refs},reset:function(){return x.reset},resolveElement:function(){return E.resolveElement},scrollIntoViewIfNeeded:function(){return I.scrollIntoViewIfNeeded},set:function(){return T.set}});var o=n(25726),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),C=n(95942),k=n(82501),S=n(11628),x=n(58844),I=n(26395),E=n(76078),T=n(3703),A=n(50535),j=n(37790)},95942:function(t,i,n){"use strict";n.d(i,{cns:function(){return o},markDeprecated:function(){return r}});let o=console;function r(t,i=[""],n=null){return(...r)=>(o.warn(`Method "${i[0]}" deprecated.`+(i[1]?` Use "${i[1]}" instead`:"")),t.call(n,...r))}},82501:function(t,i,n){"use strict";n.d(i,{parseQuery:function(){return o}});let o=t=>{let i={},n=t.substring(1).split("&");for(let t=0;t<n.length;t+=1){let o=n[t].split("=");i[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return i}},11628:function(t,i,n){"use strict";n.d(i,{previewBox:function(){return c}});var o=n(2748),r=n(70799),s=n(29960),a=n(41180),l=n(76078);function c(t,i,n="px",u=null){let d=[],h=function(t,i){let n=[];try{(0,l.$$)("img",t.editor).forEach(r=>{let a=[(0,s.attr)(r,"width"),(0,s.attr)(r,"height"),r.src];(0,s.attr)(r,{width:r.offsetWidth+i,height:r.offsetHeight+i});let l=t.createInside.a();t.ed.body.appendChild(l),l.href=r.src,r.src=l.href,o.Dom.safeRemove(l),n.push(()=>{var t;r.src=null!=(t=a[2])?t:"",(0,s.attr)(r,{width:a[0]||null,height:a[1]||null})})})}catch(t){throw n.forEach(t=>t()),n.length=0,t}return n}(t,n);try{let l=t.e.fire("beforePreviewBox",i,n);if(null!=l)return l;let c=t.c.div("jodit__preview-box jodit-context");u&&u.appendChild(c),(0,a.css)(c,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let i=t.create.element("iframe");(0,a.css)(i,{minWidth:800,minHeight:600,border:0}),c.appendChild(i);let n=i.contentWindow;if(n&&(t.e.fire("generateDocumentStructure.iframe",n.document,t),c=n.document.body,"function"==typeof ResizeObserver)){let o=!1,r=n.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(r),i.style.height=`${r.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||s.observe(r)})},100)),a=()=>{o=!0,s.unobserve(r),s.disconnect(),t.e.off("beforeDestruct",a)};d.push(a),t.e.on("beforeDestruct",a)}}else(0,a.css)(c,{minWidth:1024,minHeight:600,border:0});let p=(i,n)=>{let a=(0,r.isString)(n)?t.c.div():n;(0,r.isString)(n)&&(a.innerHTML=n);for(let t=0;t<a.childNodes.length;t+=1){let n=a.childNodes[t];if(o.Dom.isElement(n)){let t=i.ownerDocument.createElement(n.nodeName);for(let i=0;i<n.attributes.length;i+=1)(0,s.attr)(t,n.attributes[i].nodeName,n.attributes[i].nodeValue);0===n.childNodes.length||o.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(t.textContent=n.textContent):n.innerHTML&&(t.innerHTML=n.innerHTML):p(t,n);try{i.appendChild(t)}catch(t){}}else try{i.appendChild(n.cloneNode(!0))}catch(t){}}};return p(c,h),t.e.fire("afterPreviewBox",c),[c,()=>{d.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},58844:function(t,i,n){"use strict";n.d(i,{reset:function(){return l}});var o=n(82758),r=n(23282),s=n(94643);let a={};function l(t){var i,n;if(!(t in a)){let n=o.globalDocument.createElement("iframe");try{if(n.src="about:blank",o.globalDocument.body.appendChild(n),!n.contentWindow)return null;let i=(0,s.get)(t,n.contentWindow),l=(0,s.get)(t.split(".").slice(0,-1).join("."),n.contentWindow);(0,r.isFunction)(i)&&(a[t]=i.bind(l))}catch(t){if(!o.IS_PROD)throw t}finally{null==(i=n.parentNode)||i.removeChild(n)}}return null!=(n=a[t])?n:null}},26395:function(t,i,n){"use strict";n.d(i,{inView:function(){return r},scrollIntoViewIfNeeded:function(){return s}});var o=n(2748);function r(t,i,n){let o=t.getBoundingClientRect(),r=t,s=o.top,a=o.height;for(;r&&r!==i&&r.parentNode;)if(!(s<=(o=(r=r.parentNode).getBoundingClientRect()).bottom)||s+a<=o.top)return!1;return s<=(n.documentElement&&n.documentElement.clientHeight||0)}function s(t,i,n){o.Dom.isHTMLElement(t)&&!r(t,i,n)&&(i.clientHeight!==i.scrollHeight&&(i.scrollTop=t.offsetTop),r(t,i,n)||t.scrollIntoView())}},76078:function(t,i,n){"use strict";n.d(i,{$$:function(){return h},cssPath:function(){return m},getXPathByElement:function(){return p},refs:function(){return f},resolveElement:function(){return g}});var o=n(82758),r=n(2748),s=n(4510),a=n(70799),l=n(87058),c=n(29960),u=n(89890);let d=1;function h(t,i){let n;if(!o.IS_ES_NEXT&&/:scope/.test(t)&&o.IS_IE&&!(i&&i.nodeType===Node.DOCUMENT_NODE)){let o=i.id,r=o||"_selector_id_"+String(Math.random()).slice(2)+ ++d;t=t.replace(/:scope/g,"#"+r),o||i.setAttribute("id",r),n=i.parentNode.querySelectorAll(t),o||i.removeAttribute("id")}else n=i.querySelectorAll(t);return[].slice.call(n)}let p=(t,i)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||i===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let n=[].filter.call(t.parentNode.childNodes,i=>i.nodeName===t.nodeName);return p(t.parentNode,i)+"/"+t.nodeName.toLowerCase()+(n.length>1?"["+((0,s.toArray)(n).indexOf(t)+1)+"]":"")},f=t=>("container"in t&&(t=t.container),h("[ref],[data-ref]",t).reduce((t,i)=>{let n=(0,c.attr)(i,"-ref");return n&&(0,a.isString)(n)&&(t[(0,l.camelCase)(n)]=i,t[n]=i),t},{})),m=t=>{if(!r.Dom.isElement(t))return null;let i=[],n=t;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let t=n.nodeName.toLowerCase();if(n.id){t+="#"+n.id,i.unshift(t);break}{let i=n,o=1;do(i=i.previousElementSibling)&&i.nodeName.toLowerCase()===t&&o++;while(i);t+=":nth-of-type("+o+")"}i.unshift(t),n=n.parentNode}return i.join(" > ")};function g(t,i){let n=t;if((0,a.isString)(t))try{n=i.querySelector(t)}catch(i){throw(0,u.error)('String "'+t+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!r.Dom.isElement(n)||!n.cloneNode)throw(0,u.error)('Element "'+t+'" should be string or HTMLElement instance');return n}},3703:function(t,i,n){"use strict";n.d(i,{set:function(){return l}});var o=n(68345),r=n(29807),s=n(72430),a=n(70799);function l(t,i,n){if(!(0,a.isString)(t)||!t.length)return;let l=t.split("."),c=n,u=l[0];for(let t=0;t<l.length-1;t+=1)u=l[t],(0,o.isArray)(c[u])||(0,s.isPlainObject)(c[u])||(c[u]=(0,r.isNumeric)(l[t+1])?[]:{}),c=c[u];c&&(c[l[l.length-1]]=i)}},50535:function(t,i,n){"use strict";n.d(i,{LimitedStack:function(){return o}});class o{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){this.limit=t,this.stack=[]}}},37790:function(t,i,n){"use strict";n.d(i,{call:function(){return l},callPromise:function(){return d},callThis:function(){return c},getDataTransfer:function(){return m},getPropertyDescriptor:function(){return g},keys:function(){return p},loadImage:function(){return h},markOwner:function(){return u},memorizeExec:function(){return f}});var o=n(14773),r=n(86068),s=n(29960),a=n(86583);function l(t,...i){return t(...i)}function c(t,i,...n){return t.apply(i,n)}function u(t,i){(0,s.attr)(i,"data-editor_id",t.id),i.component||Object.defineProperty(i,"jodit",{value:t})}function d(t,i){return(0,o.isPromise)(t)?t.then(t=>t,()=>null).finally(i):null==i?void 0:i()}let h=(t,i)=>i.async.promise((n,o)=>{let r=new Image,s=()=>{i.e.off(r),null==o||o()},a=()=>{i.e.off(r),n(r)};i.e.one(r,"load",a).one(r,"error",s).one(r,"abort",s),r.src=t,r.complete&&a()}),p=(t,i=!0)=>{if(i)return Object.keys(t);let n=[];for(let i in t)n.push(i);return n},f=(t,i,{control:n},o)=>{var s;let l=`button${n.command}`,c=null!=(s=n.args&&n.args[0])?s:(0,a.dataBind)(t,l);if((0,r.isVoid)(c))return!1;(0,a.dataBind)(t,l,c),o&&(c=o(c)),t.execCommand(n.command,!1,null!=c?c:void 0)},m=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch(t){return null}};function g(t,i){let n;do n=Object.getOwnPropertyDescriptor(t,i),t=Object.getPrototypeOf(t);while(!n&&t);return n}},31359:function(t,i,n){"use strict";n.d(i,{init:function(){return a}});var o=n(82758),r=n(60132),s=n(14041);function a(t,i,n,a,l,c,u){if((0,r.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(i,a),c.delete(i),a.hasStyle&&(0,s.loadStyle)(t,i).catch(t=>{o.IS_PROD}),a.styles&&(u(t,i,"style").innerHTML=a.styles)}},14041:function(t,i,n){"use strict";n.d(i,{loadExtras:function(){return d},loadStyle:function(){return c}});var o=n(82758),r=n(12475),s=n(63799),a=n(89672);let l=new Set;async function c(t,i){let n=u(t,i,!1);if(!l.has(n))return l.add(n),(0,s.appendStyleAsync)(t,n)}function u(t,i,n){i=(0,r.kebabCase)(i);let o=t.minified?".min":"";return t.basePath+"plugins/"+i+"/"+i+o+"."+(n?"js":"css")}function d(t,i,n,r){try{let o=n.filter(i=>!t.has((0,a.normalizeName)(i.name)));o.length&&o.map(t=>{let n=t.url||u(i,t.name,!0);return(0,s.appendScriptAsync)(i,n).then(r).catch(()=>null)})}catch(t){if(!o.IS_PROD)throw t}}},48591:function(t,i,n){"use strict";n.d(i,{makeInstance:function(){return s}});var o=n(82758),r=n(23282);function s(t,i){try{try{return(0,r.isFunction)(i)?new i(t):i}catch(n){if((0,r.isFunction)(i)&&!i.prototype)return i(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},89672:function(t,i,n){"use strict";n.d(i,{normalizeName:function(){return r}});var o=n(12475);function r(t){return(0,o.kebabCase)(t).toLowerCase()}},50911:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return o.Plugin}});var o=n(20356);n(41876)},41876:function(t,i,n){"use strict";n.d(i,{PluginSystem:function(){return f}});var o=n(82758),r=n(57012),s=n(46559),a=n(68345),l=n(60132),c=n(70799),u=n(31359),d=n(14041),h=n(48591),p=n(89672);class f{get size(){return this.__items.size}add(t,i){this.__items.set((0,p.normalizeName)(t),i),r.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,p.normalizeName)(t))}remove(t){this.__items.delete((0,p.normalizeName)(t))}__getFullPluginsList(t){let i=[];return this.__items.forEach((n,o)=>{(!t||t.has(o))&&i.push([o,n])}),i}__init(t){let{extraList:i,disableList:n,filter:r}={extraList:t.o.extraPlugins.map(t=>(0,c.isString)(t)?{name:t}:t),disableList:new Set((0,s.splitArray)(t.o.disablePlugins).map(p.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},f=new Map,m={},g=new Set;t.__plugins=m;let b=()=>{if(t.isInDestruct)return;let i=!1;this.__getFullPluginsList(r).forEach(([o,r])=>{if(n.has(o)||f.has(o))return;let s=null==r?void 0:r.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(t=>n.has(t)))return;if(!s.every(t=>f.has(t)))return void g.add(o)}i=!0;let l=(0,h.makeInstance)(t,r);if(!l){f.set(o,null),g.delete(o);return}(0,u.init)(t,o,r,l,f,g,this.opts.getContainer),m[o]=l}),i&&(t.e.fire("updatePlugins"),b())};i&&i.length&&(0,d.loadExtras)(this.__items,t,i,b),b(),t.e.on("beforeDestruct",()=>{Object.keys(m).forEach(i=>{let n=m[i];(0,l.isDestructable)(n)&&n.destruct(t),delete m[i]}),delete t.__plugins}),o.IS_PROD||g.size}wait(t){return new Promise(i=>{if(this.get(t))return i();let n=()=>{i(),r.eventEmitter.off(`plugin:${t}:ready`,n)};r.eventEmitter.on(`plugin:${t}:ready`,n)})}constructor(t){this.opts=t,this.__items=new Map}}},20356:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return l}});var o=n(91907),r=n(65478),s=n(19306),a=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class l extends o.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:t,buttons:i}=this;i&&(0,s.isJoditObject)(t)&&i.forEach(i=>{t.registerButton(i)})}__afterInit(){this.__inited=!0,this.setStatus(o.STATUSES.ready),this.afterInit(this.jodit)}init(t){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var t;if(this.isInDestruct)return;let{j:i}=this;if(i.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(o.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,s.isJoditObject)(i)&&(null==(t=this.buttons)||t.forEach(t=>{null==i||i.unregisterButton(t)})),this.beforeDestruct(this.j),super.destruct()}constructor(t){super(t),this.buttons=[],this.hasStyle=!1,this.__inited=!1,t.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}l.requires=[],a([r.autobind],l.prototype,"__afterPluginSystemInit",null),a([r.autobind],l.prototype,"__afterInit",null),a([r.autobind],l.prototype,"__beforeDestruct",null)},54079:function(t,i,n){"use strict";n.d(i,{Ajax:function(){return d}});var o=n(8884),r=n(82758),s=n(45219),a=n(21537),l=n(89890),c=n(6441);n(57459);var u=n(98582);class d{className(){return"Ajax"}__buildParams(t,i){return(0,a.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,a.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,i):(0,a.isString)(t)||t instanceof r.globalWindow.FormData||"object"==typeof t&&null!=t&&(0,a.isFunction)(t.append)?t:(0,a.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(t){}return this}send(){this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest();return this.__async.promise(async(o,r)=>{var s;let c=()=>{this.__isFulfilled=!0,r(l.connection("Connection error"))},d=()=>{this.__isFulfilled=!0,o(new u.Response(n,t.status,t.statusText,!t.responseType?t.responseText:t.response))};t.onload=d,t.onabort=()=>{this.__isFulfilled=!0,r(l.abort("Abort connection"))},t.onerror=c,t.ontimeout=c,i.responseType&&(t.responseType=i.responseType),t.onprogress=t=>{var i,n;let o=0;t.lengthComputable&&(o=t.loaded/t.total*100),null==(n=(i=this.options).onProgress)||n.call(i,o)},t.onreadystatechange=()=>{var n,o;null==(o=(n=this.options).onProgress)||o.call(n,10),t.readyState===XMLHttpRequest.DONE&&(i.successStatuses.includes(t.status)?d():t.statusText&&(this.__isFulfilled=!0,r(l.connection(t.statusText))))},t.withCredentials=null!=(s=i.withCredentials)&&s;let{url:h,data:p,method:f}=n;t.open(f,h,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:m}=i;(0,a.isFunction)(m)&&(m=await m.call(this)),m&&t.setRequestHeader&&Object.keys(m).forEach(i=>{t.setRequestHeader(i,m[i])}),this.__async.setTimeout(()=>{t.send(p?this.__buildParams(p):void 0)},0)})}prepareRequest(){if(!this.o.url)throw l.error("Need URL for AJAX request");let t=this.o.url,i=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&i&&(0,a.isPlainObject)(i)){let n=t.indexOf("?");if(-1!==n){let o=(0,a.parseQuery)(t);t=t.substring(0,n)+"?"+(0,a.buildQuery)({...o,...i})}else t+="?"+(0,a.buildQuery)(this.o.data)}let o={url:t,method:n,data:i};return d.log.splice(100),d.log.push(o),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(t,i=c.Config.prototype.defaultAjaxOptions){this.__async=new o.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,a.ConfigProto)(t||{},i),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}d.log=[],function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([s.autobind],d.prototype,"destruct",null)},57459:function(t,i,n){"use strict";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(t,i,n){"use strict";n.d(i,{Ajax:function(){return o.Ajax},Response:function(){return r.Response}});var o=n(54079),r=n(98582)},98582:function(t,i,n){"use strict";n.d(i,{Response:function(){return o}});class o{get url(){return this.request.url}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}constructor(t,i,n,o){this.request=t,this.status=i,this.statusText=n,this.body=o}}},45124:function(t,i,n){"use strict";n.d(i,{cursorInTheEdgeOfString:function(){return a},findCorrectCurrentNode:function(){return l},moveNodeInsideStart:function(){return s.moveNodeInsideStart}});var o=n(82758),r=n(2748),s=n(26716);function a(t,i,n,r){var s;let a=(null==(s=t.nodeValue)?void 0:s.length)?t.nodeValue:"";if(r&&a.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>i)return!0;let l=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(a);return n&&(l&&l[0].length<i||!l&&i>0)}function l(t,i,n,o,s,a){if((t=i.startContainer.childNodes[i.startOffset])||(t=i.startContainer.childNodes[i.startOffset-1],n=!0),t&&o&&!r.Dom.isText(t)){if(!n&&r.Dom.isText(t.previousSibling))t=t.previousSibling;else if(s){let i=a(t);for(;i;){if(i&&r.Dom.isText(i)){t=i;break}i=a(i)}}}if(t&&!o&&!r.Dom.isText(t)){let i=t,n=t;do i=i.firstChild,n=n.lastChild;while(i&&n&&!r.Dom.isText(i));i===n&&i&&r.Dom.isText(i)&&(t=i)}return{node:t,rightMode:n}}n(43463)},26716:function(t,i,n){"use strict";n.d(i,{moveNodeInsideStart:function(){return s}});var o=n(82758),r=n(2748);function s(t,i,n){let s=r.Dom.findSibling(i,n),a=r.Dom.findSibling(i,!n);for(;r.Dom.isElement(s)&&!r.Dom.isTag(s,o.INSEPARABLE_TAGS)&&r.Dom.isContentEditable(s,t.editor)&&(!a||!r.Dom.closest(i,r.Dom.isElement,t.editor));)n||!s.firstChild?s.appendChild(i):r.Dom.before(s.firstChild,i),s=r.Dom.sibling(i,n),a=r.Dom.sibling(i,!n)}},43463:function(t,i,n){"use strict";n.d(i,{moveTheNodeAlongTheEdgeOutward:function(){return r}});var o=n(2748);function r(t,i,n){let r=t;for(;r&&r!==n&&!(o.Dom.findSibling(r,i)||o.Dom.isBlock(r.parentElement));)(r=r.parentElement)&&r!==n&&(i?o.Dom.before(r,t):o.Dom.after(r,t))}},59242:function(t,i,n){"use strict";n.d(i,{CHANGE:function(){return s.CHANGE},CommitStyle:function(){return r.CommitStyle},REPLACE:function(){return s.REPLACE},Selection:function(){return o.Selection},UNWRAP:function(){return s.UNWRAP},WRAP:function(){return s.WRAP}});var o=n(79348),r=n(25639),s=n(77361)},79348:function(t,i,n){"use strict";n.d(i,{Selection:function(){return f}});var o=n(82758),r=n(65478),s=n(2748),a=n(21537),l=n(27613),c=n(38837),u=n(43463),d=n(25639),h=n(45124),p=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class f{get j(){return this.jodit}errorNode(t){if(!s.Dom.isNode(t))throw(0,a.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,l.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:t}=this,i=(null==t?void 0:t.rangeCount)?t.getRangeAt(0):null;return!(!i||!s.Dom.isOrContains(this.area,i.startContainer))}createRange(t=!1){let i=this.doc.createRange();return t&&this.selectRange(i),i}remove(){let t=this.sel,i=this.current();if(t&&i)for(let i=0;i<t.rangeCount;i+=1)t.getRangeAt(i).deleteContents(),t.getRangeAt(i).collapse(!0)}clear(){var t,i;(null==(t=this.sel)?void 0:t.rangeCount)&&(null==(i=this.sel)||i.removeAllRanges())}removeNode(t){if(!s.Dom.isOrContains(this.j.editor,t,!0))throw(0,a.error)("Selection.removeNode can remove only editor's children");s.Dom.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,i){this.removeMarkers();try{let n=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let o=this.doc.caretPositionFromPoint(t,i);if(o)return n.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){let o=this.doc.caretRangeFromPoint(t,i);(0,c.assert)(o,"Incorrect caretRangeFromPoint behaviour"),n.setStart(o.startContainer,o.startOffset)}})(),n.collapse(!0),this.selectRange(n),!0}catch(t){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,a.$$)("span[data-"+o.MARKER_CLASS+"]",this.area)}removeMarkers(){s.Dom.safeRemove.apply(null,this.markers)}marker(t=!1,i){let n=null;i&&(n=i.cloneRange()).collapse(t);let r=this.j.createInside.span();return r.id=o.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),r.style.lineHeight="0",r.style.display="none",s.Dom.markTemporary(r),(0,a.attr)(r,"data-"+o.MARKER_CLASS,t?"start":"end"),r.appendChild(this.j.createInside.text(o.INVISIBLE_SPACE)),n&&s.Dom.isOrContains(this.area,t?n.startContainer:n.endContainer)&&n.insertNode(r),r}restore(){let t=!1,i=t=>`span[data-${o.MARKER_CLASS}=${t?"start":"end"}]`,n=this.area.querySelector(i(!0)),r=this.area.querySelector(i(!1));if(n){if(t=this.createRange(),r)t.setStartAfter(n),s.Dom.safeRemove(n),t.setEndBefore(r),s.Dom.safeRemove(r);else{let i=n.previousSibling;s.Dom.isText(i)?t.setStart(i,i.nodeValue?i.nodeValue.length:0):t.setStartBefore(n),s.Dom.safeRemove(n),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){let t=this.sel;if(!t||!t.rangeCount)return[];let i=t.getRangeAt(0);(0,c.assert)(i,"Range is null");let n=i.cloneRange();n.collapse(!0);let o=this.j.createInside.fake();s.Dom.safeInsertNode(n,o),i.setStartBefore(o);let r=[o];if(!i.collapsed){let t=i.cloneRange();t.collapse(!1);let n=this.j.createInside.fake();s.Dom.safeInsertNode(t,n),i.setEndAfter(n),r.push(n)}return this.selectRange(i),r}restoreFakes(t){var i,n,o,r;let a=t.filter(t=>t.isConnected);if(!a.length)return;let[l,c]=a,u=this.createRange();u.setStartAfter(l),c&&u.setEndBefore(c),this.selectRange(u),(null==(i=l.parentNode)?void 0:i.firstChild)!==(null==(n=l.parentNode)?void 0:n.lastChild)&&s.Dom.safeRemove(l),(null==(o=null==c?void 0:c.parentNode)?void 0:o.firstChild)!==(null==(r=null==c?void 0:c.parentNode)?void 0:r.lastChild)&&s.Dom.safeRemove(c)}save(t=!1){if(this.hasMarkers)return[];let i=this.sel;if(!i||!i.rangeCount)return[];let n=[],o=i.rangeCount,r=[];for(let t=0;o>t;t+=1)if(r[t]=i.getRangeAt(t),r[t].collapsed){let i=this.marker(!0,r[t]);n[t]={startId:i.id,collapsed:!0,startMarker:i.outerHTML}}else{let i=this.marker(!0,r[t]),o=this.marker(!1,r[t]);n[t]={startId:i.id,endId:o.id,collapsed:!1,startMarker:i.outerHTML,endMarker:o.outerHTML}}if(!t){i.removeAllRanges();for(let t=o-1;t>=0;--t){let o=this.doc.getElementById(n[t].startId);if(o){if(n[t].collapsed)r[t].setStartAfter(o),r[t].collapse(!0);else if(r[t].setStartBefore(o),n[t].endId){let i=this.doc.getElementById(n[t].endId);i&&r[t].setEndAfter(i)}try{i.addRange(r[t].cloneRange())}catch(t){}}}}return n}focus(t={preventScroll:!0}){var i,n;if(!this.isFocused()){let o=(0,a.getScrollParent)(this.j.container),r=null==o?void 0:o.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),r&&(null==o?void 0:o.scrollTo)&&o.scrollTo(0,r);let l=this.sel,c=(null==l?void 0:l.rangeCount)?null==l?void 0:l.getRangeAt(0):null;if(!c||!s.Dom.isOrContains(this.area,c.startContainer)){let t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||null==(n=null==(i=this.j)?void 0:i.events)||n.fire("focus"),!0}return!1}isCollapsed(){let t=this.sel;for(let i=0;t&&i<t.rangeCount;i+=1)if(!t.getRangeAt(i).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.j.getRealMode()!==o.MODE_WYSIWYG)return null;let i=this.sel;if(!i||0===i.rangeCount)return null;let n=i.getRangeAt(0),r=n.startContainer,a=!1;if(s.Dom.isTag(r,"br")&&i.isCollapsed)return r;if(!s.Dom.isText(r)){let o=(0,h.findCorrectCurrentNode)(r,n,a,i.isCollapsed,t,t=>a?t.lastChild:t.firstChild);r=o.node,a=o.rightMode}return r&&s.Dom.isOrContains(this.area,r)?r:null}insertNode(t,i=!0,n=!0){this.errorNode(t);let o=s.Dom.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let r=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),r&&r.rangeCount){let i=r.getRangeAt(0),{firstChild:n}=t;s.Dom.isOrContains(this.area,i.commonAncestorContainer)?s.Dom.safeInsertNode(i,t):this.area.appendChild(t),[()=>null==n?void 0:n.previousSibling,()=>null==n?void 0:n.previousSibling,()=>{var t;return null==(t=null==n?void 0:n.previousSibling)?void 0:t.lastChild}].forEach(t=>{let i=t();i&&s.Dom.isEmptyTextNode(i)&&s.Dom.safeRemove(i)})}else this.area.appendChild(t);let n=t=>{if(s.Dom.isBlock(t)){let i=t.lastChild;if(i)return n(i)}this.setCursorAfter(t)};i&&(s.Dom.isFragment(t)?o&&n(o):n(t)),this.j.o.scrollToPastedContent&&(0,a.scrollIntoViewIfNeeded)(null!=o?o:t,this.j.editor,this.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",s.Dom.isFragment(t)?o:t)}insertHTML(t,i=!0){if(""===t)return;let n=this.j.createInside.div(),o=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),s.Dom.isNode(t)?n.appendChild(t):n.innerHTML=t.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",n.innerHTML))&&n.lastChild){for(;n.firstChild;)n.firstChild,o.appendChild(n.firstChild);this.insertNode(o,i,!1),this.j.__imdSynchronizeValues()}}insertImage(t,i=null,n=null){let o=(0,l.isString)(t)?this.j.createInside.element("img"):t;if((0,l.isString)(t)&&o.setAttribute("src",t),null!=n){let t=n.toString();t&&"auto"!==t&&0>String(t).indexOf("px")&&0>String(t).indexOf("%")&&(t+="px"),(0,a.attr)(o,"width",t)}i&&"object"==typeof i&&(0,a.css)(o,i);let r=()=>{(o.naturalHeight<o.offsetHeight||o.naturalWidth<o.offsetWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",r)};this.j.e.on(o,"load",r),o.complete&&r(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(t){var i;let n=this.sel;if(!n||!n.rangeCount)return;let r=n.getRangeAt(0),c=r.commonAncestorContainer;s.Dom.isHTMLElement(c)||(c=c.parentElement);let u=[],d=r.startOffset,h=c.childNodes.length,p=r.startContainer===this.area?c.childNodes[d<h?d:h-1]:r.startContainer,f=r.endContainer===this.area?c.childNodes[r.endOffset-1]:r.endContainer;s.Dom.isText(p)&&p===r.startContainer&&r.startOffset===(null==(i=p.nodeValue)?void 0:i.length)&&p.nextSibling&&(p=p.nextSibling),s.Dom.isText(f)&&f===r.endContainer&&0===r.endOffset&&f.previousSibling&&(f=f.previousSibling);let m=t=>{!t||t===c||s.Dom.isEmptyTextNode(t)||(0,l.isMarker)(t)||u.push(t)};m(p),p!==f&&s.Dom.isOrContains(c,p,!0)&&s.Dom.find(p,t=>(m(t),t===f||t&&t.contains&&t.contains(f)),c,!0,!1);let g=i=>{if(s.Dom.isOrContains(this.j.editor,i,!0)){if(i.nodeName.match(/^(UL|OL)$/))return(0,a.toArray)(i.childNodes).forEach(g);if(s.Dom.isTag(i,"li"))if(i.firstChild)i=i.firstChild;else{let t=this.j.createInside.text(o.INVISIBLE_SPACE);i.appendChild(t),i=t}t(i)}};0===u.length&&(s.Dom.isEmptyTextNode(p)&&u.push(p),p.firstChild&&u.push(p.firstChild)),u.forEach(g)}cursorInTheEdge(t,i,n=null){var o;let r=!t,l=null==(o=this.sel)?void 0:o.getRangeAt(0);if(null!=n||(n=this.current(!1)),!l||!n||!s.Dom.isOrContains(i,n,!0))return null;let c=t?l.startContainer:l.endContainer,u=t?l.startOffset:l.endOffset,d=t=>!!(t&&!s.Dom.isTag(t,"br")&&!s.Dom.isEmptyTextNode(t)&&!s.Dom.isTemporary(t)&&!(s.Dom.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t)));if(s.Dom.isText(c)){if((0,h.cursorInTheEdgeOfString)(c,u,t,r))return!1}else{let t=(0,a.toArray)(c.childNodes);if(r){if(t.slice(u).some(d))return!1}else if(t.slice(0,u).some(d))return!1}let p=n;for(;p&&p!==i;){let i=s.Dom.sibling(p,t);if(!i){p=p.parentNode;continue}if((p=i)&&d(p))return!1}return!0}cursorOnTheLeft(t,i){return this.cursorInTheEdge(!0,t,i)}cursorOnTheRight(t,i){return this.cursorInTheEdge(!1,t,i)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,i){var n,o;if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let r=this.createRange(),l=null;return s.Dom.isText(t)?i?r.setStart(t,0):r.setEnd(t,null!=(o=null==(n=t.nodeValue)?void 0:n.length)?o:0):(l=this.j.createInside.fake(),i?r.setStartBefore(t):r.setEndAfter(t),r.collapse(i),s.Dom.safeInsertNode(r,l),r.selectNode(l)),r.collapse(i),this.selectRange(r),l}setCursorIn(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange(),r=t,l=t;do{if(s.Dom.isText(r)||s.Dom.isTag(r,o.INSEPARABLE_TAGS))break;l=r,r=i?r.firstChild:r.lastChild}while(r);if(!r){let t=this.j.createInside.text(o.INVISIBLE_SPACE);s.Dom.isTag(l,o.INSEPARABLE_TAGS)?r=l:(l.appendChild(t),l=t)}let c=r||l;return s.Dom.isTag(c,o.INSEPARABLE_TAGS)?i||s.Dom.isTag(c,"br")?n.setStartBefore(c):n.setEndAfter(c):n.selectNodeContents(c),n.collapse(i),this.selectRange(n),l}selectRange(t,i=!0){let n=this.sel;return i&&!this.isFocused()&&this.focus(),n&&(n.removeAllRanges(),n.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange();return n[i?"selectNodeContents":"selectNode"](t),this.selectRange(n)}get html(){let t=this.sel;if(t&&t.rangeCount>0){let i=t.getRangeAt(0).cloneContents(),n=this.j.createInside.div();return n.appendChild(i),n.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){let i=this.jodit.createInside.element("font",o.INVISIBLE_SPACE);this.insertNode(i,!1,!1),t&&t[0]&&i.appendChild(t[0]),yield i,s.Dom.unwrap(i);return}for(let t of((0,a.$$)("*[style*=font-size]",this.area).forEach(t=>{(0,a.attr)(t,"data-font-size",t.style.fontSize.toString()),t.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,a.$$)("*[data-font-size]",this.area).forEach(t=>{let i=(0,a.attr)(t,"data-font-size");i&&(t.style.fontSize=i,(0,a.attr)(t,"data-font-size",null))}),(0,a.$$)('font[size="7"]',this.area))){let{firstChild:i,lastChild:n}=t;if(i&&i===n&&(0,l.isMarker)(i)){s.Dom.unwrap(t);continue}i&&(0,l.isMarker)(i)&&s.Dom.before(t,i),n&&(0,l.isMarker)(n)&&s.Dom.after(t,n),yield t,s.Dom.unwrap(t)}}wrapInTag(t){let i=[];for(let n of this.wrapInTagGen())try{if(n.firstChild&&n.firstChild===n.lastChild&&(0,l.isMarker)(n.firstChild))continue;(0,l.isFunction)(t)?t(n):i.push(s.Dom.replace(n,t,this.j.createInside))}finally{let t=n.parentNode;t&&(s.Dom.unwrap(n),s.Dom.isEmpty(t)&&s.Dom.unwrap(t))}return i}commitStyle(t){(0,c.assert)((0,a.size)(t)>0,"Need to pass at least one option"),new d.CommitStyle(t).apply(this.j)}splitSelection(t,i){if(!this.isCollapsed())return null;let n=this.createRange(),r=this.range;n.setStartBefore(t);let a=this.cursorOnTheRight(t,i),l=this.cursorOnTheLeft(t,i),u=this.j.createInside.element("br"),d=this.j.createInside.fake(),h=d.cloneNode();try{if(a||l){i?s.Dom.before(i,u):s.Dom.safeInsertNode(r,u);let t=(t,i)=>{let n=i(t);for(;n;){let t=i(n);if(n&&(s.Dom.isTag(n,"br")||s.Dom.isEmptyTextNode(n)))s.Dom.safeRemove(n);else break;n=t}};t(u,t=>t.nextSibling),t(u,t=>t.previousSibling),s.Dom.after(u,h),s.Dom.before(u,d),a?(n.setEndBefore(u),r.setEndBefore(u)):(n.setEndAfter(u),r.setEndAfter(u))}else n.setEnd(r.startContainer,r.startOffset);let p=n.extractContents(),f=t=>s.Dom.each(t,t=>s.Dom.isEmptyTextNode(t)&&s.Dom.safeRemove(t));(0,c.assert)(t.parentNode,"Splitting fails");try{if(f(p),f(t),t.parentNode.insertBefore(p,t),!i&&a&&(null==u?void 0:u.parentNode)){let t=this.createRange();t.setStartBefore(u),this.selectRange(t)}}catch(t){if(!o.IS_PROD)throw t}let m=t=>{var i,n,o;(null==(i=null==t?void 0:t.parentNode)?void 0:i.firstChild)===(null==(n=null==t?void 0:t.parentNode)?void 0:n.lastChild)&&(null==(o=null==t?void 0:t.parentNode)||o.appendChild(u.cloneNode()))};m(d),m(h)}finally{s.Dom.safeRemove(d),s.Dom.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:t}=this,i=t.cloneRange();if(!s.Dom.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;let n=i=>{let n=this.j.createInside.fake(),o=t.cloneRange();return o.collapse(i),s.Dom.safeInsertNode(o,n),(0,u.moveTheNodeAlongTheEdgeOutward)(n,i,this.j.editor),n},o=n(!0),r=n(!1);i.setStartAfter(o),i.setEndBefore(r);let l=s.Dom.findSibling(o,!1),c=s.Dom.findSibling(r,!0);if(l!==c){let t=s.Dom.isElement(l)&&s.Dom.isOrContains(l,r),n=!t&&s.Dom.isElement(c)&&s.Dom.isOrContains(c,o);if(t||n){let n=t?l:c,a=n;for(;s.Dom.isElement(n);)(n=t?n.firstElementChild:n.lastElementChild)&&(t?s.Dom.isOrContains(n,r):s.Dom.isOrContains(n,o))&&(a=n);t?i.setStart(a,0):i.setEnd(a,a.childNodes.length)}}if(this.selectRange(i),s.Dom.safeRemove(o,r),this.isCollapsed())throw(0,a.error)("Selection is collapsed");return this}constructor(t){this.jodit=t,t.e.on("removeMarkers",()=>{this.removeMarkers()})}}p([r.autobind],f.prototype,"createRange",null),p([r.autobind],f.prototype,"focus",null),p([r.autobind],f.prototype,"setCursorAfter",null),p([r.autobind],f.prototype,"setCursorBefore",null),p([r.autobind],f.prototype,"setCursorIn",null)},32526:function(t,i,n){"use strict";n.d(i,{extractSelectedPart:function(){return l}});var o=n(2748),r=n(78116),s=n(49055),a=n(37790);function l(t,i,n){let o=n.s.createRange(),s=(0,r.isMarker)(i.previousSibling)?i.previousSibling:i;o.setStartBefore(t),o.setEndBefore(s),c(t,o,!0);let a=(0,r.isMarker)(i.nextSibling)?i.nextSibling:i;o.setStartAfter(a),o.setEndAfter(t),c(t,o,!1)}function c(t,i,n){let r=i.extractContents();r.textContent&&(0,s.trim)(r.textContent).length||!r.firstChild||o.Dom.unwrap(r.firstChild),t.parentNode&&(0,a.call)(n?o.Dom.before:o.Dom.after,t,r)}},49996:function(t,i,n){"use strict";n.d(i,{FiniteStateMachine:function(){return a}});var o=n(82758),r=n(70799),s=n(38837);class a{setState(t){(0,s.assert)(!this.__previewsStates.has(t),"Circled states"),this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(t,i){let n=this.transitions[this.getState()][t];if(n){let t=n.call(this,i);return(0,s.assert)(t&&t!==i,"Action should return new value"),(0,s.assert)((0,r.isString)(t.next),"Value should contain the next state"),(0,s.assert)(t.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(t.next),o.IS_PROD||this.silent,t}throw Error(`invalid action: ${this.getState()}.${t.toString()}`)}constructor(t,i){this.transitions=i,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}}},23738:function(t,i,n){"use strict";n.d(i,{getSuitChild:function(){return a}});var o=n(2748),r=n(29136),s=n(97380);function a(t,i){let{firstChild:n}=i;for(;n&&!(0,r.isNormalNode)(n);)if(!(n=n.nextSibling))return null;return n&&!o.Dom.next(n,r.isNormalNode,i)&&(0,s.isSuitElement)(t,n,!1)?n:null}},44602:function(t,i,n){"use strict";n.d(i,{getSuitParent:function(){return function t(i,n,a){let{parentNode:l}=n;return l===a||!o.Dom.isHTMLElement(l)||o.Dom.next(n,r.isNormalNode,l)||o.Dom.prev(n,r.isNormalNode,l)?null:i.isElementCommit&&i.elementIsBlock&&!o.Dom.isBlock(l)?t(i,l,a):(0,s.isSuitElement)(i,l,!1)&&(!o.Dom.isBlock(l)||i.elementIsBlock)?l:i.isElementCommit&&!o.Dom.isBlock(l)?t(i,l,a):null}}});var o=n(2748),r=n(29136),s=n(97380)},22030:function(t,i,n){"use strict";n.d(i,{hasSameStyle:function(){return u},hasSameStyleKeys:function(){return d}});var o=n(82758),r=n(2748),s=n(86068),a=n(3760),l=n(38837),c=n(41180);function u(t,i){return!!(!r.Dom.isTag(t,"font")&&r.Dom.isHTMLElement(t)&&Object.keys(i).every(n=>{let o=(0,c.css)(t,n,!0);return""===o&&(""===i[n]||null==i[n])||!(0,s.isVoid)(o)&&""!==o&&!(0,s.isVoid)(i[n])&&(0,a.normalizeCssValue)(n,i[n]).toString().toLowerCase()===o.toString().toLowerCase()}))}if(o.globalDocument){let t=o.globalDocument.createElement("div");t.style.color="red",(0,l.assert)(u(t,{color:"red"}),"Style test"),(0,l.assert)(u(t,{fontSize:null}),"Style test"),(0,l.assert)(u(t,{fontSize:""}),"Style test")}function d(t,i){return!!(!r.Dom.isTag(t,"font")&&r.Dom.isHTMLElement(t)&&Object.keys(i).every(i=>""!==(0,c.css)(t,i,!0)))}if(o.globalDocument){let t=o.globalDocument.createElement("div");t.style.color="red",(0,l.assert)(d(t,{color:"red"}),"Style test"),(0,l.assert)(!d(t,{font:"Arial",color:"red"}),"Style test"),(0,l.assert)(!d(t,{border:"1px solid #ccc"}),"Style test")}},63687:function(t,i,n){"use strict";n.d(i,{FiniteStateMachine:function(){return r.FiniteStateMachine},extractSelectedPart:function(){return o.extractSelectedPart},getSuitChild:function(){return s.getSuitChild},getSuitParent:function(){return a.getSuitParent},isInsideInvisibleElement:function(){return l.isInsideInvisibleElement},suitableClosest:function(){return c.suitableClosest},toggleAttributes:function(){return d.toggleAttributes},toggleOrderedList:function(){return u.toggleOrderedList},unwrapChildren:function(){return h.unwrapChildren},wrap:function(){return p.wrap}});var o=n(32526),r=n(49996),s=n(23738),a=n(44602);n(22030);var l=n(64291);n(29136),n(94466);var c=n(97380),u=n(20199);n(82515);var d=n(44253),h=n(75882),p=n(19263);n(6980)},64291:function(t,i,n){"use strict";n.d(i,{isInsideInvisibleElement:function(){return r}});var o=n(2748);function r(t,i){return!!o.Dom.closest(t,["style","script"],i)}},29136:function(t,i,n){"use strict";n.d(i,{isNormalNode:function(){return s}});var o=n(2748),r=n(78116);function s(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,r.isMarker)(t))}},94466:function(t,i,n){"use strict";n.d(i,{elementsEqualAttributes:function(){return c},isSameAttributes:function(){return l}});var o=n(21496),r=n(43555),s=n(38837),a=n(22030);function l(t,i){return!((t.attributes.length||(0,o.size)(i))&&(0,o.size)(i))||((0,s.assert)(i,"Attrs must be a non-empty object"),Object.keys(i).every(n=>"class"===n||"className"===n?t.classList.contains(i[n]):"style"===n?(0,a.hasSameStyle)(t,i[n]):(0,r.attr)(t,n)===i[n]))}function c(t,i){return t.attributes.length===i.attributes.length&&Array.from(t.attributes).every(t=>i.hasAttribute(t.name)&&i.getAttribute(t.name)===t.value)}},97380:function(t,i,n){"use strict";n.d(i,{isSameStyleChild:function(){return c},isSuitElement:function(){return a},suitableClosest:function(){return l}});var o=n(2748),r=n(22030),s=n(29136);function a(t,i,n,l=!0){var c;if(!i||!(0,s.isNormalNode)(i))return!1;let{element:u,elementIsDefault:d,options:h}=t;if(o.Dom.isList(i)&&t.elementIsList)return!0;let p=o.Dom.isTag(i,u);return!!(p&&!(d&&n)||(null==(c=h.attributes)?void 0:c.style)&&(l?(0,r.hasSameStyle)(i,h.attributes.style):(0,r.hasSameStyleKeys)(i,h.attributes.style))&&!t.elementIsList)||!p&&!n&&d&&o.Dom.isInlineBlock(i)}function l(t,i,n){return o.Dom.closest(i,i=>a(t,i,!0,!1),n)}function c(t,i){var n,o;let{element:a,options:l}=t;if(!i||!(0,s.isNormalNode)(i))return!1;let c=i.nodeName.toLowerCase()===a,u=!!((null==(n=l.attributes)?void 0:n.style)&&(0,r.hasSameStyleKeys)(i,null==(o=l.attributes)?void 0:o.style));return c&&u}},20199:function(t,i,n){"use strict";n.d(i,{toggleOrderedList:function(){return u}});var o=n(2748),r=n(38837),s=n(32526),a=n(44253),l=n(77361),c=n(82515);function u(t,i,n,o){if(!i)return o;let r=i.parentElement;if(!r)return o;let s=n.e.fire(`${l._PREFIX}BeforeToggleList`,o,t,r);if(void 0!==s)return s;let u=n.e.fire.bind(n.e,`${l._PREFIX}AfterToggleList`);if(o!==l.UNWRAP){let s=(0,a.toggleAttributes)(t,i.parentElement,n,l.INITIAL,!0)===l.CHANGE;if(o===l.REPLACE||s||r.tagName.toLowerCase()!==t.element){let o=d(l.REPLACE,r,i,n,t),s=(0,c.wrapList)(t,o,n);return u(l.REPLACE,s,t),l.REPLACE}}let h=d(l.UNWRAP,r,i,n,t);return u(l.UNWRAP,h,t),l.UNWRAP}function d(t,i,n,a,c){let u=a.e.fire(`${l._PREFIX}BeforeUnwrapList`,t,i,c);return u?((0,r.assert)(o.Dom.isHTMLElement(u),`${l._PREFIX}BeforeUnwrapList hook must return HTMLElement`),u):((0,s.extractSelectedPart)(i,n,a),(0,r.assert)(o.Dom.isHTMLElement(n.parentElement),"Element should be inside the list"),o.Dom.unwrap(n.parentElement),o.Dom.replace(n,"br"!==a.o.enter.toLowerCase()?a.o.enter:a.createInside.fragment(),a.createInside))}},82515:function(t,i,n){"use strict";n.d(i,{wrapList:function(){return l}});var o=n(2748),r=n(94466),s=n(44253),a=n(77361);function l(t,i,n){let l=n.e.fire(`${a._PREFIX}BeforeWrapList`,a.REPLACE,i,t),c=null!=l?l:o.Dom.replace(i,"li",n.createInside),u=c.previousElementSibling,d=c.nextElementSibling,h=o.Dom.isTag(u,t.element)?u:null;return null!=h||(h=o.Dom.isTag(d,t.element)?d:null),o.Dom.isList(h)&&(0,r.isSameAttributes)(h,t.options.attributes)||(h=n.createInside.element(t.element),(0,s.toggleAttributes)(t,h,n,a.INITIAL),o.Dom.before(c,h)),u===h?o.Dom.append(h,c):o.Dom.prepend(h,c),o.Dom.isTag(h.nextElementSibling,t.element)&&(0,r.elementsEqualAttributes)(h,h.nextElementSibling)&&(o.Dom.append(h,Array.from(h.nextElementSibling.childNodes)),o.Dom.safeRemove(h.nextElementSibling)),n.e.fire(`${a._PREFIX}AfterWrapList`,a.WRAP,h,t),h}},44253:function(t,i,n){"use strict";n.d(i,{toggleAttributes:function(){return g}});var o=n(82758),r=n(2748),s=n(580),a=n(27613),l=n(3760),c=n(21496),u=n(12475),d=n(43555),h=n(41180),p=n(86583),f=n(77361);let m="toggleAttributes";function g(t,i,n,v,y=!1){if(!y&&t.isApplied(i,m))return v;y||t.setApplied(i,m);let{attributes:w}=t.options;return w&&(0,c.size)(w)>0&&Object.keys(w).forEach(m=>{var g,_,C;let k=w[m];switch(m){case"style":g=v,(0,d.assert)((0,a.isPlainObject)(k)&&(0,c.size)(k),"Style must be an object"),Object.keys(k).forEach(a=>{let c=i.style.getPropertyValue((0,u.kebabCase)(a)),d=k[a];if(""!==c||null!=d){let u,m;if((u=n.create.element(i.tagName.toLowerCase())).style.cssText=i.style.cssText,(function(t){var i;if(void 0!==(0,p.dataBind)(t,"shadowRoot"))return(0,p.dataBind)(t,"shadowRoot");let n=(0,s.getContainer)(t),r=o.globalDocument.createElement("iframe");(0,h.css)(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",n.appendChild(r);let a=null==(i=r.contentWindow)?void 0:i.document,l=a?a.body:t.od.body;return(0,p.dataBind)(t,"shadowRoot",l),l})(n).appendChild(u),m=(0,h.css)(u,a),r.Dom.safeRemove(u),m===(0,l.normalizeCssValue)(a,d)){if(!c)return;y||(0,h.css)(i,a,null),g=b(t,i,g=f.UNSET);return}g=f.CHANGE,y||((0,h.css)(i,a,d),g=b(t,i,g))}}),v=g;break;case"className":case"class":let S;_=v,(0,d.assert)((0,a.isString)(k),"Class name must be a string"),S=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),i.classList.contains(k.toString())?(_=f.UNSET,y||(i.classList.remove(k),0===i.classList.length&&((0,d.attr)(i,"class",null),S(_,i,"class",null)))):(_=f.CHANGE,y||(i.classList.add(k),S(_,i,"class",k))),v=_;break;default:let x;C=v,(0,d.assert)((0,a.isString)(k)||(0,a.isNumber)(k)||(0,a.isBoolean)(k)||null==k,"Attribute value must be a string or number or boolean or null"),x=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),(0,d.attr)(i,m)===k?(y||(0,d.attr)(i,m,null),C=f.UNSET,y||x(C,i,m,k)):(C=f.CHANGE,y||((0,d.attr)(i,m,k),x(C,i,m,k))),v=C}}),v}function b(t,i,n){return(0,d.attr)(i,"style")||((0,d.attr)(i,"style",null),i.tagName.toLowerCase()===t.defaultTag&&(r.Dom.unwrap(i),n=f.UNWRAP)),n}},75882:function(t,i,n){"use strict";n.d(i,{unwrapChildren:function(){return l}});var o=n(2748),r=n(43555),s=n(22030),a=n(97380);function l(t,i){var n;let l,c=[],u=[],d=null==(n=t.options.attributes)?void 0:n.style;if(i.firstChild){let n=o.Dom.eachGen(i),h=n.next();for(;!h.done;){let i=h.value;(0,a.isSuitElement)(t,i,!0)&&(!d||(0,s.hasSameStyleKeys)(i,d))?(void 0===l&&(l=!0),c.push(i)):d&&(0,a.isSameStyleChild)(t,i)?(void 0===l&&(l=!1),u.push(()=>{(0,r.css)(i,Object.keys(d).reduce((t,i)=>(t[i]=null,t),{})),(0,r.attr)(i,"style")||(0,r.attr)(i,"style",null),(0,r.attr)(i,"style")||i.nodeName.toLowerCase()!==t.element||c.push(i)})):o.Dom.isEmptyTextNode(i)||void 0!==l||(l=!1),h=n.next()}}return u.forEach(t=>t()),c.forEach(o.Dom.unwrap),!!l}},6980:function(t,i,n){"use strict";n.d(i,{wrapUnwrappedText:function(){return s}});var o=n(2748),r=n(78116);function s(t,i,n){let s=n.editor,a=n.createInside,l=(t,i="previousSibling")=>{let a=t,l=t;for(;l&&!(0,r.isMarker)(l)&&!o.Dom.isTag(l,n.o.enter)&&(a=l,l=l[i]?l[i]:l.parentNode&&!o.Dom.isBlock(l.parentNode)&&l.parentNode!==s?l.parentNode:null,!o.Dom.isBlock(l)););return a},c=l(i),u=l(i,"nextSibling"),d=n.s.createRange();d.setStartBefore(c),d.setEndAfter(u);let h=d.extractContents(),p=a.element(t.element);return p.appendChild(h),o.Dom.safeInsertNode(d,p),t.elementIsBlock&&o.Dom.isEmpty(p)&&!o.Dom.isTag(p.firstElementChild,"br")&&p.appendChild(a.element("br")),p}},19263:function(t,i,n){"use strict";n.d(i,{wrap:function(){return l}});var o=n(22732),r=n(29960),s=n(82515),a=n(6980);function l(t,i,n){var l,u,d;let h=(l=t,u=i,d=n,l.elementIsBlock?o.Dom.up(u,t=>o.Dom.isBlock(t)&&!o.Dom.isTag(t,c),d.editor)||(0,a.wrapUnwrappedText)(l,u,d):((0,r.attr)(u,"size",null),u));return t.elementIsList?(0,s.wrapList)(t,h,n):o.Dom.replace(h,t.element,n.createInside,!0)}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"])},83632:function(t,i,n){"use strict";n.d(i,{ApplyStyle:function(){return a}});var o=n(63687),r=n(77361),s=n(55307);function a(t,i){var n;let{s:a,editor:l}=t;null==(n=l.firstChild)||n.normalize();let c=a.fakes(),u=t.s.wrapInTagGen(c),d=u.next();if(d.done)return;let h={collapsed:a.isCollapsed(),mode:r.INITIAL,element:d.value,next:s.states.START,jodit:t,style:i};for(;d&&!d.done;){let t=new o.FiniteStateMachine(s.states.START,s.transactions);for(h.element=d.value;t.getState()!==s.states.END;)h=t.dispatch("exec",h);d=u.next()}a.restoreFakes(c)}},25639:function(t,i,n){"use strict";n.d(i,{CommitStyle:function(){return l}});var o=n(82758),r=n(87058),s=n(77361),a=n(83632);class l{isApplied(t,i){let n=this.__applyMap.get(t);return!!n&&n[i]}setApplied(t,i){var n;let o=null!=(n=this.__applyMap.get(t))?n:{};o[i]=!0,this.__applyMap.set(t,o)}get elementIsList(){return!!(this.options.element&&o.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&o.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:i}=this.options,n=i?Object.keys(i):[];try{n.forEach(n=>{t.e.on((0,r.camelCase)(s._PREFIX+"_"+n),i[n])}),(0,a.ApplyStyle)(t,this)}finally{n.forEach(n=>{t.e.off((0,r.camelCase)(s._PREFIX+"_"+n),i[n])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){this.options=t,this.__applyMap=new WeakMap}}},77361:function(t,i,n){"use strict";n.d(i,{CHANGE:function(){return s},INITIAL:function(){return l},REPLACE:function(){return c},UNSET:function(){return a},UNWRAP:function(){return r},WRAP:function(){return o},_PREFIX:function(){return u}});let o="wrap",r="unwrap",s="change",a="unset",l="initial",c="replace",u="commitStyle"},55307:function(t,i,n){"use strict";n.d(i,{states:function(){return c},transactions:function(){return u}});var o=n(82758),r=n(2748),s=n(38837),a=n(63687),l=n(77361);let c={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"},u={[c.START]:{exec(t){let{element:i,jodit:n,style:o,mode:s,collapsed:u}=t;if((0,a.isInsideInvisibleElement)(i,n.editor)||!u&&r.Dom.isEmptyContent(i))return{...t,next:c.END};let d=(0,a.getSuitParent)(o,i,n.editor)||(0,a.getSuitChild)(o,i);if(d)return{...t,next:c.ELEMENT,element:d};let h=(0,a.suitableClosest)(o,i,n.editor);return o.elementIsList&&r.Dom.isList(h)?{...t,next:c.LIST}:h?{...t,next:c.EXTRACT}:{...t,next:s!==l.UNWRAP?c.UNWRAP_CHILDREN:c.END}}},[c.LIST]:{exec(t){let{element:i,jodit:n,mode:s}=t;if(s!==l.INITIAL&&s!==l.UNWRAP&&s!==l.REPLACE)return{...t,next:c.END};let a=r.Dom.closest(i,"li",n.editor);return a&&r.Dom.closest(i,o.LIST_TAGS,n.editor)?{...t,element:a,next:c.TOGGLE_LIST}:{...t,next:c.END}}},[c.TOGGLE_LIST]:{exec(t){return{...t,mode:(0,a.toggleOrderedList)(t.style,t.element,t.jodit,t.mode),next:c.END}}},[c.EXTRACT]:{exec(t){var i;let{element:n,jodit:o,style:l}=t,u=(0,a.suitableClosest)(l,n,o.editor);return((0,s.assert)(u,"This place should have an element"),!l.elementIsBlock&&(null==(i=l.options.attributes)?void 0:i.style)&&r.Dom.isBlock(u))?{...t,next:c.WRAP}:(l.elementIsBlock||(0,a.extractSelectedPart)(u,n,o),{...t,element:u,next:c.ELEMENT})}},[c.UNWRAP_CHILDREN]:{exec(t){let{element:i,style:n}=t;return(0,a.unwrapChildren)(n,i)?{...t,mode:l.UNWRAP,next:c.END}:{...t,next:c.WRAP}}},[c.WRAP]:{exec(t){let{element:i,jodit:n,style:o}=t,r=(0,a.wrap)(o,i,n);return{...t,next:o.elementIsList?c.END:c.CHANGE,mode:l.WRAP,element:r}}},[c.ELEMENT]:{exec(t){let{style:i,element:n,jodit:o}=t;return(0,a.toggleAttributes)(i,n,o,l.INITIAL,!0)!==l.INITIAL?{...t,next:c.CHANGE}:r.Dom.isTag(n,i.element)?{...t,next:c.UNWRAP}:{...t,next:c.END}}},[c.CHANGE]:{exec(t){let{style:i,element:n,jodit:o,mode:s}=t,u=(0,a.toggleAttributes)(i,n,o,t.mode);return s!==l.WRAP&&u===l.UNSET&&!n.attributes.length&&r.Dom.isTag(n,i.element)?{...t,next:c.UNWRAP}:{...t,mode:u,next:c.END}}},[c.UNWRAP]:{exec(t){return t.element.attributes.length&&r.Dom.isTag(t.element,t.style.element)?{...t,next:c.REPLACE_DEFAULT}:(r.Dom.unwrap(t.element),{...t,mode:l.UNWRAP,next:c.END})}},[c.REPLACE_DEFAULT]:{exec(t){return r.Dom.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:l.REPLACE,next:c.END}}},[c.END]:{exec(t){return t}}}},97333:function(t,i,n){"use strict";n.d(i,{AsyncStorage:function(){return c}});var o=n(87058),r=n(2621),s=n(65638),a=n(21162),l=n(6700);class c{async set(t,i){let n=await this.provider;return await n.set((0,o.camelCase)(this.prefix+t),i),this}async delete(t){let i=await this.provider;return await i.delete((0,o.camelCase)(this.prefix+t)),this}async get(t){return(await this.provider).get((0,o.camelCase)(this.prefix+t))}async exists(t){return(await this.provider).exists((0,o.camelCase)(this.prefix+t))}async clear(){let t=await this.provider;return await t.clear(),this}async close(){let t=await this.provider;"close"in t&&"function"==typeof t.close&&await t.close()}static makeStorage(t=!1,i){let n;return"localStorage"===t||"sessionStorage"===t?(0,s.canUsePersistentStorage)(t)&&(n=new s.LocalStorageProvider(l.StorageKey+(i||""),t)):("indexedDB"===t||!0===t)&&(n=(0,r.canUseIndexedDB)().then(t=>t?new r.IndexedDBProvider(l.StorageKey+(i||""),"keyValueStore"):new a.MemoryStorageProvider)),n||(n=new a.MemoryStorageProvider),new c(Promise.resolve(n),i)}constructor(t,i){this.provider=t,this.prefix=l.StorageKey,i&&(this.prefix+=i)}}},2621:function(t,i,n){"use strict";n.d(i,{IndexedDBProvider:function(){return r},canUseIndexedDB:function(){return l},clearUseIndexedDBCache:function(){return a}});var o=n(82758);class r{getDB(){return this.dbPromise||(this.dbPromise=new Promise((t,i)=>{let n=indexedDB.open(this.dbName,this.DB_VERSION);n.onerror=()=>{i(n.error)},n.onsuccess=()=>{t(n.result)},n.onupgradeneeded=t=>{let i=t.target.result;i.objectStoreNames.contains(this.storeName)||i.createObjectStore(this.storeName)}})),this.dbPromise}async performTransaction(t,i){try{let n=(await this.getDB()).transaction([this.storeName],t).objectStore(this.storeName),o=i(n);return new Promise((t,i)=>{o.onsuccess=()=>{t(o.result)},o.onerror=()=>{i(o.error)}})}catch(t){return Promise.reject(t)}}async set(t,i){try{await this.performTransaction("readwrite",n=>n.put(i,t))}catch(t){o.IS_PROD}return this}async delete(t){try{await this.performTransaction("readwrite",i=>i.delete(t))}catch(t){}return this}async get(t){try{return await this.performTransaction("readonly",i=>i.get(t))}catch(t){return}}async exists(t){try{let i=await this.performTransaction("readonly",i=>i.get(t));return void 0!==i}catch(t){return!1}}async clear(){try{await this.performTransaction("readwrite",t=>t.clear())}catch(t){}return this}async close(){if(this.dbPromise){try{(await this.dbPromise).close()}catch(t){}this.dbPromise=null}}async keys(){try{let t=await this.performTransaction("readonly",t=>t.getAllKeys());return t&&"object"==typeof t&&"then"in t&&(t=await t),t.map(t=>String(t))}catch(t){return[]}}async values(){try{let t=await this.performTransaction("readonly",t=>t.getAll());return t&&"object"==typeof t&&"then"in t&&(t=await t),t}catch(t){return[]}}async entries(){try{let[t,i]=await Promise.all([this.keys(),this.values()]);return t.map((t,n)=>[t,i[n]])}catch(t){return[]}}constructor(t="JoditDB",i="keyValueStore"){this.dbName=t,this.dbPromise=null,this.DB_VERSION=1,this.storeName=i}}let s=null;function a(){s=null}async function l(){if(null!=s)return s;try{if("u"<typeof indexedDB)return s=!1,!1;let t="___Jodit___"+Math.random().toString(),i=indexedDB.open(t);return s=await new Promise(n=>{i.onerror=()=>{n(!1)},i.onsuccess=()=>{indexedDB.deleteDatabase(t),n(!0)}})}catch(t){return s=!1,!1}}},65638:function(t,i,n){"use strict";n.d(i,{LocalStorageProvider:function(){return r},canUsePersistentStorage:function(){return o}});let o=(t="localStorage")=>{let i=new Map;if(i.has(t))return i.get(t);let n="___Jodit___"+Math.random().toString(),o="sessionStorage"===t?sessionStorage:localStorage;try{o.setItem(n,"1");let r="1"===o.getItem(n);return o.removeItem(n),i.set(t,r),r}catch(t){}return i.set(t,!1),!1};class r{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(t,i){try{let n=this.storage.getItem(this.rootKey),o=n?JSON.parse(n):{};o[t]=i,this.storage.setItem(this.rootKey,JSON.stringify(o))}catch(t){}return this}delete(t){try{this.storage.removeItem(this.rootKey)}catch(t){}return this}get(t){try{let i=this.storage.getItem(this.rootKey),n=i?JSON.parse(i):{};return void 0!==n[t]?n[t]:void 0}catch(t){}}exists(t){return null!=this.get(t)}clear(){try{this.storage.removeItem(this.rootKey)}catch(t){}return this}constructor(t,i="localStorage"){this.rootKey=t,this.strategy=i}}},21162:function(t,i,n){"use strict";n.d(i,{MemoryStorageProvider:function(){return o}});class o{set(t,i){return this.data.set(t,i),this}delete(t){return this.data.delete(t),this}get(t){return this.data.get(t)}exists(t){return this.data.has(t)}clear(){return this.data.clear(),this}constructor(){this.data=new Map}}},12081:function(t,i,n){"use strict";n.d(i,{AsyncStorage:function(){return o.AsyncStorage},IndexedDBProvider:function(){return r.IndexedDBProvider},LocalStorageProvider:function(){return s.LocalStorageProvider},MemoryStorageProvider:function(){return a.MemoryStorageProvider},Storage:function(){return l.Storage},StorageKey:function(){return l.StorageKey},canUseIndexedDB:function(){return r.canUseIndexedDB},canUsePersistentStorage:function(){return s.canUsePersistentStorage},clearUseIndexedDBCache:function(){return r.clearUseIndexedDBCache}});var o=n(97333),r=n(2621),s=n(65638),a=n(21162),l=n(6700)},6700:function(t,i,n){"use strict";n.d(i,{Storage:function(){return l},StorageKey:function(){return a}});var o=n(87058),r=n(65638),s=n(21162);let a="Jodit_";class l{set(t,i){return this.provider.set((0,o.camelCase)(this.prefix+t),i),this}delete(t){return this.provider.delete((0,o.camelCase)(this.prefix+t)),this}get(t){return this.provider.get((0,o.camelCase)(this.prefix+t))}exists(t){return this.provider.exists((0,o.camelCase)(this.prefix+t))}clear(){return this.provider.clear(),this}static makeStorage(t=!1,i){let n;return"localStorage"===t||"sessionStorage"===t?(0,r.canUsePersistentStorage)(t)&&(n=new r.LocalStorageProvider(a+(i||""),t)):!0===t&&(0,r.canUsePersistentStorage)("localStorage")&&(n=new r.LocalStorageProvider(a+(i||""))),n||(n=new s.MemoryStorageProvider),new l(n,i)}constructor(t,i){this.provider=t,this.prefix=a,i&&(this.prefix+=i)}}},70231:function(t,i,n){"use strict";n.d(i,{Dlgs:function(){return l}});var o=n(580),r=n(27613),s=n(37790),a=n(638);class l{dlg(t){let i=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),n=new a.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:i,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,s.markOwner)(this,n.container),n.parent=this,n.bindDestruct(this)}confirm(t,i,n){return t=c(t,this),i=c(i,this),a.Confirm.call(this.dlg({closeOnClickOverlay:!0}),t,i,n)}prompt(t,i,n,o,r){return t=c(t,this),i=c(i,this),o=c(o,this),a.Prompt.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o,r)}alert(t,i,n,o){return t=c(t,this),i=c(i,this),a.Alert.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o)}}function c(t,i){return(0,r.isString)(t)&&!(0,r.isHTML)(t)&&(t=i.i18n(t)),t}},14316:function(t,i,n){"use strict";n.d(i,{Elms:function(){return r}});var o=n(4510);class r{getElm(t){return this.container.querySelector(`.${this.getFullElName(t)}`)}getElms(t){return(0,o.toArray)(this.container.querySelectorAll(`.${this.getFullElName(t)}`))}}},34176:function(t,i,n){"use strict";n.d(i,{Mods:function(){return r}});var o=n(86068);class r{afterSetMod(t,i){}setMod(t,i,n){t=t.toLowerCase();let r=this.mods[t];if(r===i)return this;let s=`${this.componentName}_${t}_`,a=(n||this.container).classList;return null!=r&&a.remove(`${s}${r.toString().toLowerCase()}`),(0,o.isVoid)(i)||""===i||a.add(`${s}${i.toString().toLowerCase()}`),this.mods[t]=i,this.afterSetMod(t,i),this}getMod(t){var i;return null!=(i=this.mods[t])?i:null}}},10830:function(t,i,n){"use strict";n.d(i,{Button:function(){return v},UIButton:function(){return b},UIButtonState:function(){return g}});var o=n(78213),r=n(33433),s=n(87325),a=n(37133),l=n(2748),c=n(23282),u=n(70799),d=n(38837),h=n(29960),p=n(48538),f=n(12153),m=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let g=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0}),b=class t extends p.UIElement{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){let t=this.getElm("text");return(0,d.assert)(t,"Text element not found"),t}get icon(){let t=this.getElm("icon");return(0,d.assert)(t,"Icon element not found"),t}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,h.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,h.attr)(this.container,"role",this.state.role)}updateSize(){let t=(0,s.getComponentClass)("UIList"),i=this.closest(t);if(i){this.state.size=i.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,h.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,h.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,h.attr)(this.container,"data-ref",this.state.name),(0,h.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,h.attr)(this.container,"title",t),(0,h.attr)(this.container,"aria-label",t),this.updateAriaLabel()}updateAriaLabel(){let t=this.state.text.trim().length>0,i=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,h.attr)(this.container,"aria-label",i),(0,h.attr)(this.button,"aria-label",t?null:i)}onChangeTabIndex(){(0,h.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let t=this.get("j.o.textIcons");if(!0===t||(0,c.isFunction)(t)&&t(this.state.name))return;l.Dom.detach(this.icon);let i=f.Icon.makeIcon(this.j,this.state.icon);i&&this.icon.appendChild(i)}focus(){this.container.focus()}isFocused(){let{activeElement:t}=this.od;return!!(t&&l.Dom.isOrContains(this.container,t))}createContainer(){let t=this.componentName,i=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),n=this.j.c.span(t+"__icon"),o=this.j.c.span(t+"__text");return i.appendChild(n),i.appendChild(o),i}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(t){return this.actionHandlers.push(t),this}__onActionFire(t){t.buffer={actionTrigger:this},this.actionHandlers.forEach(i=>i.call(this,t)),this.j.e.fire(this,"click",t)}constructor(t,i){super(t),this.isButton=!0,this.state=g(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),i&&this.hookStatus(o.STATUSES.ready,()=>{this.setState(i)})}};function v(t,i,n,o){let r=new b(t);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,u.isString)(i)?(r.state.icon.name=i,r.state.name=i,o&&(r.state.variant=o),n&&(r.state.text=n)):r.setState(i),r}m([r.cache],b.prototype,"text",null),m([r.cache],b.prototype,"icon",null),m([(0,a.watch)("state.size",{immediately:!1})],b.prototype,"onChangeSize",null),m([(0,a.watch)("state.type",{immediately:!1})],b.prototype,"onChangeType",null),m([(0,a.watch)("state.role",{immediately:!1})],b.prototype,"onChangeRole",null),m([(0,a.watch)("parentElement")],b.prototype,"updateSize",null),m([(0,a.watch)("state.variant",{immediately:!1})],b.prototype,"onChangeStatus",null),m([(0,a.watch)("state.text",{immediately:!1})],b.prototype,"onChangeText",null),m([(0,a.watch)("state.text",{immediately:!1})],b.prototype,"onChangeTextSetMode",null),m([(0,a.watch)("state.disabled")],b.prototype,"onChangeDisabled",null),m([(0,a.watch)("state.activated")],b.prototype,"onChangeActivated",null),m([(0,a.watch)("state.name",{immediately:!1})],b.prototype,"onChangeName",null),m([(0,a.watch)("state.tooltip",{immediately:!1})],b.prototype,"onChangeTooltip",null),m([(0,a.watch)("state.tabIndex",{immediately:!1})],b.prototype,"onChangeTabIndex",null),m([(0,a.watch)("state.icon",{immediately:!1})],b.prototype,"onChangeIcon",null),m([r.cacheHTML],b.prototype,"createContainer",null),m([(0,a.watch)("button:click")],b.prototype,"__onActionFire",null),b=m([s.component],b)},71916:function(t,i,n){"use strict";n.d(i,{UIButtonGroup:function(){return l}});var o=n(87325),r=n(38837),s=n(10830),a=n(62405);let l=class t extends a.UIGroup{className(){return"UIButtonGroup"}render(t){return`<div>
8
+ !function(t,i){if("object"==typeof exports&&"object"==typeof module)module.exports=i();else if("function"==typeof define&&define.amd)define([],i);else{var n=i();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(self,function(){var t={94668:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Plus icon with document/context --\x3e <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </svg>'},86428:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Background rounded rect --\x3e <rect x="1" y="1" width="22" height="22" rx="3"/> \x3c!-- Letter A - outer shape --\x3e <polygon points="8,5 2,19 5,19 6.5,16 11.5,16 13,19 16,19 10,5" fill="white"/> \x3c!-- Letter A - inner triangle (hole) --\x3e <polygon points="9,9 7.5,13 10.5,13" fill="currentColor"/> \x3c!-- Letter I --\x3e <rect x="17" y="5" width="3" height="14" fill="white"/> </svg>'},75966:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Wand handle - diagonal line --\x3e <rect x="12" y="10" width="13" height="3.5" rx="0.5" transform="rotate(45 12 12)"/> \x3c!-- Wand tip - diamond --\x3e <rect x="3" y="3" width="6" height="6" rx="1" transform="rotate(45 6 6)"/> \x3c!-- Large sparkle - top --\x3e <polygon points="15,0 16,4 15,8 14,4"/> <polygon points="11,4 15,5 19,4 15,3"/> \x3c!-- Medium sparkle - left --\x3e <polygon points="1,11 2,14 1,17 0,14"/> <polygon points="-2,14 1,15 4,14 1,13"/> \x3c!-- Small sparkle - middle --\x3e <polygon points="8,14 8.5,16 8,18 7.5,16"/> <polygon points="6,16 8,16.5 10,16 8,15.5"/> </svg>'},99219:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="22" y1="2" x2="11" y2="13"></line> <polygon points="22 2 15 22 11 13 2 9 22 2"></polygon> </svg>'},68583:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><title/><g id="Upload"><path d="M16,26h8V50a2,2,0,0,0,2,2H38a2,2,0,0,0,2-2V26h8a2,2,0,0,0,1.4946-3.3291l-16-18a2,2,0,0,0-2.9892,0l-16,18A2,2,0,0,0,16,26ZM32,9.0107,43.5464,22H38a2,2,0,0,0-2,2V48H28V24a2,2,0,0,0-2-2H20.4536Z"/><path d="M53,42a2,2,0,0,0-2,2V54a2.0023,2.0023,0,0,1-2,2H15a2.0023,2.0023,0,0,1-2-2V44a2,2,0,0,0-4,0V54a6.0066,6.0066,0,0,0,6,6H49a6.0066,6.0066,0,0,0,6-6V44A2,2,0,0,0,53,42Z"/></g></svg>'},34586:function(t){t.exports='<svg stroke="black" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <style type="text/css"> .st0{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} </style> <path class="st0" d="M29,23H3c-1.1,0-2-0.9-2-2V11c0-1.1,0.9-2,2-2h26c1.1,0,2,0.9,2,2v10C31,22.1,30.1,23,29,23z"/> <path class="st0" d="M13,19L13,19c-1.1,0-2-0.9-2-2v-2c0-1.1,0.9-2,2-2h0c1.1,0,2,0.9,2,2v2C15,18.1,14.1,19,13,19z"/> <line class="st0" x1="18" x2="18" y1="13" y2="19"/> <line class="st0" x1="21" x2="18" y1="13" y2="17"/> <line class="st0" x1="21" x2="19" y1="19" y2="16"/> </svg>'},91729:function(t){t.exports='<svg width="19" height="13" viewBox="0 0 19 13" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.799 11.449V12H7.764V11.449L8.695 11.487C9.075 11.525 9.265 11.373 9.265 11.031C9.265 10.8157 9.20167 10.5687 9.075 10.29L8.144 8.048H3.717L2.843 10.176C2.66567 10.5687 2.577 10.8853 2.577 11.126C2.577 11.392 2.71633 11.5187 2.995 11.506L3.907 11.449V12H0.62V11.449L1.114 11.487H1.19C1.44333 11.487 1.65233 11.3667 1.817 11.126C2.007 10.8473 2.197 10.48 2.387 10.024L6.358 0.466999H6.852L10.861 10.062C11.0383 10.518 11.222 10.879 11.412 11.145C11.5893 11.373 11.811 11.487 12.077 11.487H12.172L12.799 11.449ZM3.945 7.516H7.916L5.921 2.728L3.945 7.516Z" fill="black"/> <path d="M18.45 11.61V12H16.32C16.33 11.93 16.34 11.84 16.35 11.73C16.37 11.61 16.38 11.515 16.38 11.445L16.41 10.86C16.19 11.29 15.905 11.6 15.555 11.79C15.215 11.98 14.805 12.075 14.325 12.075C13.695 12.075 13.215 11.935 12.885 11.655C12.565 11.365 12.405 10.94 12.405 10.38C12.405 9.61 12.725 9.045 13.365 8.685C14.015 8.315 15.03 8.13 16.41 8.13V7.26C16.41 6.79 16.3 6.455 16.08 6.255C15.86 6.055 15.505 5.955 15.015 5.955C14.255 5.955 13.875 6.165 13.875 6.585C13.875 6.665 13.895 6.76 13.935 6.87C13.985 6.97 14.01 7.065 14.01 7.155C14.01 7.325 13.955 7.455 13.845 7.545C13.735 7.625 13.595 7.665 13.425 7.665C13.215 7.665 13.05 7.6 12.93 7.47C12.82 7.34 12.765 7.17 12.765 6.96C12.765 6.54 12.985 6.2 13.425 5.94C13.865 5.68 14.455 5.55 15.195 5.55C16.865 5.55 17.7 6.255 17.7 7.665V11.355C17.7 11.545 17.765 11.64 17.895 11.64L18.45 11.61ZM14.775 11.535C15.215 11.535 15.59 11.355 15.9 10.995C16.21 10.625 16.38 10.15 16.41 9.57V8.535C15.47 8.535 14.795 8.675 14.385 8.955C13.975 9.225 13.77 9.66 13.77 10.26C13.77 10.68 13.855 11 14.025 11.22C14.205 11.43 14.455 11.535 14.775 11.535Z" fill="black"/> </svg>'},46995:function(t){t.exports='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1262 1075q-37 121-138 195t-228 74-228-74-138-195q-8-25 4-48.5t38-31.5q25-8 48.5 4t31.5 38q25 80 92.5 129.5t151.5 49.5 151.5-49.5 92.5-129.5q8-26 32-38t49-4 37 31.5 4 48.5zm-494-435q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm512 0q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm256 256q0-130-51-248.5t-136.5-204-204-136.5-248.5-51-248.5 51-204 136.5-136.5 204-51 248.5 51 248.5 136.5 204 204 136.5 248.5 51 248.5-51 204-136.5 136.5-204 51-248.5zm128 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},53121:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M19,21H5a2,2,0,0,1-2-2V17a1,1,0,0,1,2,0v2H19V17a1,1,0,0,1,2,0v2A2,2,0,0,1,19,21Z"/> <path d="M18,5H6A1,1,0,0,1,6,3H18a1,1,0,0,1,0,2Z"/> <path d="M15.71,10.29l-3-3a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-3,3a1,1,0,0,0-.21,1.09A1,1,0,0,0,9,12h2v3a1,1,0,0,0,2,0V12h2a1,1,0,0,0,.92-.62A1,1,0,0,0,15.71,10.29Z"/> </svg>'},7307:function(t){t.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> <path d="M365.4,59.628c60.56,0,109.6,49.03,109.6,109.47c0,109.47-109.6,171.8-219.06,281.271 C146.47,340.898,37,278.568,37,169.099c0-60.44,49.04-109.47,109.47-109.47c54.73,0,82.1,27.37,109.47,82.1 C283.3,86.999,310.67,59.628,365.4,59.628z"/> </svg>'},24928:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M28.7,16.3l-12-13c-0.4-0.4-1.1-0.4-1.5,0l-12,13C3,16.6,2.9,17,3.1,17.4C3.2,17.8,3.6,18,4,18h3v10c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1V18h3c0.4,0,0.8-0.2,0.9-0.6C29.1,17,29,16.6,28.7,16.3z"/> </svg>'},96910:function(t){t.exports='<svg viewBox="0 0 252 252" xmlns="http://www.w3.org/2000/svg"> <path d="M0 16C0 7.16344 7.16344 0 16 0H85.6364C86.5205 0 87.3797 0.29288 88.0796 0.832871L120.92 26.1671C121.62 26.7071 122.48 27 123.364 27H227C235.837 27 243 34.1634 243 43V132.335C243 134.779 240.234 136.198 238.25 134.772L233 131L226.5 127L220 124L212.5 122L202.5 120L189 120.5L179.5 122.5L170.5 125.5L161.5 130.5L157 133.5L153 137L146.5 144L141 152L137 160L134 168L132.5 178L132 183.5V189.5L133 197.5L135 205.5L137.5 211.5L139.524 214.996C141.068 217.663 139.144 221 136.062 221H16C7.16344 221 0 213.837 0 205V16Z"/> <circle cx="197" cy="185" r="56"/> <path d="M188.364 215.955V151.591H204.636V215.955H188.364ZM164.318 191.909V175.636H228.682V191.909H164.318Z" fill="white"/> </svg>'},81122:function(t){t.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},49377:function(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},46425:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},86820:function(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},36576:function(t){t.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},27622:function(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},89687:function(t){t.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'},25088:function(t){t.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'},67008:function(t){t.exports='<svg viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <rect fill="none" height="32" width="32"/> <path d="M28,14H18v2h10V14z M28,18H18v2h10V18z M24,22h-6v2h6V22z M14,14H4v10h10V14z M0,6v26h32V6H0z M30,30H2l0.08-20H30V30z"/> </svg>'},63643:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},27926:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},10690:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},91997:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},11699:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},98126:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},27222:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},17405:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},75689:function(t){t.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},78879:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},18993:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="2" width="20" height="9" rx="1.5" fill="none"/> <rect x="2" y="14" width="9" height="8" rx="1.5" fill="none"/> <rect x="13" y="14" width="9" height="8" rx="1.5" fill="currentColor"/> </svg>'},11373:function(t){t.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},74922:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},34575:function(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},46146:function(t){"u">typeof self&&self,t.exports=function(){var t=[function(t,i,n){"use strict";var o=n(3);function r(t){return!0===o(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var i,n;return!1!==r(t)&&"function"==typeof(i=t.constructor)&&!1!==r(n=i.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VERSION=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=i.getLuminance=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.parseColorToRgba=i.parseColorToRgb=i.from=i.createPicker=void 0;var o=function(){function t(t,i){for(var n=0;n<i.length;n++){var o=i[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(i,n,o){return n&&t(i.prototype,n),o&&t(i,o),i}}(),r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=n(2),a=c(n(0)),l=c(n(4));function c(t){return t&&t.__esModule?t:{default:t}}function u(t,i){if(!(t instanceof i))throw TypeError("Cannot call a class as a function")}function d(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var h="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,p="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,f={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},m="COLOR",g="RGBA_USER",b="HSLA_USER";function v(t,i,n){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):n?i:null:i}function y(t){var i=t.getContext("2d"),n=+t.width,o=+t.height,a=i.createLinearGradient(1,1,1,o-1);return a.addColorStop(0,"white"),a.addColorStop(1,"black"),{setHue:function(t){var r=i.createLinearGradient(1,0,n-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),i.fillStyle=a,i.fillRect(0,0,n,o),i.fillStyle=r,i.globalCompositeOperation="multiply",i.fillRect(0,0,n,o),i.globalCompositeOperation="source-over"},grabColor:function(t,n){return i.getImageData(t,n,1,1).data},findColor:function(t,i,a){var l=r((0,s.rgbToHsv)(t,i,a),3);return[l[1]*n,o-l[2]*o]}}}function w(t,i,n){return null===t?i:/^\s*$/.test(t)?n:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&i}function _(t,i,n){if(null===t)return i;if(/^\s*$/.test(t))return n;var o=t.split(",").map(Number);return 2===o.length&&o[0]&&o[1]?o:i}var C=function(){function t(i,n){if(u(this,t),n?(i=v(i),this.options=Object.assign({},f,n)):i&&(0,a.default)(i)?(this.options=Object.assign({},f,i),i=v(this.options.attachTo)):(this.options=Object.assign({},f),i=v((0,s.nvl)(i,this.options.attachTo))),!i)throw Error("Container not found: "+this.options.attachTo);!function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(i.hasAttribute(n+"show-hsl")&&(t.showHSL=w(i.getAttribute(n+"show-hsl"),f.showHSL,!0)),i.hasAttribute(n+"show-rgb")&&(t.showRGB=w(i.getAttribute(n+"show-rgb"),f.showRGB,!0)),i.hasAttribute(n+"show-hex")&&(t.showHEX=w(i.getAttribute(n+"show-hex"),f.showHEX,!0)),i.hasAttribute(n+"show-alpha")&&(t.showAlpha=w(i.getAttribute(n+"show-alpha"),f.showAlpha,!0)),i.hasAttribute(n+"palette-editable")&&(t.paletteEditable=w(i.getAttribute(n+"palette-editable"),f.paletteEditable,!0)),i.hasAttribute(n+"sl-bar-size")&&(t.slBarSize=_(i.getAttribute(n+"sl-bar-size"),f.slBarSize,[232,150])),i.hasAttribute(n+"hue-bar-size")&&(t.hueBarSize=_(i.getAttribute(n+"hue-bar-size"),f.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),i.hasAttribute(n+"palette")){var o=i.getAttribute(n+"palette");switch(o){case"PALETTE_MATERIAL_500":t.palette=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=s.PALETTE_MATERIAL_CHROME;break;default:t.palette=o.split(/[;|]/)}}i.hasAttribute(n+"color")&&(t.color=i.getAttribute(n+"color"))}(this.options,i),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=l.default,i.appendChild(this.element);var o=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(o),this.hueBarHelper=y(o),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=y(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(m,this.options.color)}return o(t,[{key:"setupHueCanvas",value:function(t){var i=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var n=t.getContext("2d"),o=n.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;r<=1;r+=1/360)o.addColorStop(r,"hsl("+360*r+", 100%, 50%)");n.fillStyle=o,n.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var a=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.hueBarSize[0]),r=Math.round(360*o/i.options.hueBarSize[0]);i.huePointer.style.left=o-7+"px",i.onValueChanged("H",r)},l=function t(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){a(t),document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)})}},{key:"setupSlCanvas",value:function(t){var i=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var n=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.slBarSize[0]-1),r=(0,s.limit)(n.clientY-t.getBoundingClientRect().top,0,i.options.slBarSize[1]-1),a=i.slBarHelper.grabColor(o,r);i.slPointer.style.left=o-7+"px",i.slPointer.style.top=r-7+"px",i.onValueChanged("RGB",a)},o=function t(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){n(t),document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)})}},{key:"setupAlphaCanvas",value:function(t){var i=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var n=t.getContext("2d"),o=n.createLinearGradient(0,0,t.width-1,0);o.addColorStop(0,"hsla(0, 0%, 50%, 0)"),o.addColorStop(1,"hsla(0, 0%, 50%, 1)"),n.fillStyle=o,n.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.alphaBarSize[0]),r=+(o/i.options.alphaBarSize[0]).toFixed(2);i.alphaPointer.style.left=o-7+"px",i.onValueChanged("ALPHA",r)},a=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)})}},{key:"setupInput",value:function(t){var i=this,n=+t.min,o=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",function(){t.select()}),"text"===t.type?t.addEventListener("change",function(){i.onValueChanged(r,t.value)}):((h||p)&&t.addEventListener("keydown",function(a){"Up"===a.key?(t.value=(0,s.limit)(+t.value+1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1):"Down"===a.key&&(t.value=(0,s.limit)(t.value-1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1)}),t.addEventListener("change",function(){var a=+t.value;i.onValueChanged(r,(0,s.limit)(a,n,o))}))}},{key:"setupClipboard",value:function(t){var i=this;t.title="click to copy",t.addEventListener("click",function(){t.value=(0,s.parseColor)([i.R,i.G,i.B,i.A],"hexcss4"),t.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(t){var i=this,n="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,o=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":o=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":o=s.PALETTE_MATERIAL_CHROME;break;default:o=(0,s.ensureArray)(this.options.palette)}if(this.options.paletteEditable||o.length>0){var r=function(n,o,r){var s=t.querySelector('.a-color-picker-palette-color[data-color="'+n+'"]')||document.createElement("div");s.className="a-color-picker-palette-color",s.style.backgroundColor=n,s.setAttribute("data-color",n),s.title=n,t.insertBefore(s,o),i.palette[n]=!0,r&&i.onPaletteColorAdd(n)},a=function(n,o){n?(t.removeChild(n),i.palette[n.getAttribute("data-color")]=!1,o&&i.onPaletteColorRemove(n.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(i){t.removeChild(i)}),Object.keys(i.palette).forEach(function(t){i.palette[t]=!1}),o&&i.onPaletteColorRemove())};if(o.map(function(t){return(0,s.parseColor)(t,n?"rgbcss4":"hex")}).filter(function(t){return!!t}).forEach(function(t){return r(t)}),this.options.paletteEditable){var l=document.createElement("div");l.className="a-color-picker-palette-color a-color-picker-palette-add",l.innerHTML="+",t.appendChild(l),t.addEventListener("click",function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?a(null,!0):r(n?(0,s.parseColor)([i.R,i.G,i.B,i.A],"rgbcss4"):(0,s.rgbToHex)(i.R,i.G,i.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?a(t.target,!0):i.onValueChanged(m,t.target.getAttribute("data-color")))})}else t.addEventListener("click",function(t){/a-color-picker-palette-color/.test(t.target.className)&&i.onValueChanged(m,t.target.getAttribute("data-color"))})}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=i;var o=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=o[0],this.G=o[1],this.B=o[2],this.slBarHelper.setHue(i),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=i;var a=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=i;var l=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=i;var c=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=i;var u=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=u[0],this.S=u[1],this.L=u[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=i;var d=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var h=r(i,3);this.R=h[0],this.G=h[1],this.B=h[2];var p=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=p[0],this.S=p[1],this.L=p[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case g:var f=r(i,4);this.R=f[0],this.G=f[1],this.B=f[2],this.A=f[3];var v=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case b:var y=r(i,4);this.H=y[0],this.S=y[1],this.L=y[2],this.A=y[3];var w=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=w[0],this.G=w[1],this.B=w[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var _=r((0,s.cssColorToRgb)(i)||[this.R,this.G,this.B],3);this.R=_[0],this.G=_[1],this.B=_[2];var C=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=C[0],this.S=C[1],this.L=C[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case m:var k=r((0,s.parseColor)(i,"rgba")||[0,0,0,1],4);this.R=k[0],this.G=k[1],this.B=k[2],this.A=k[3];var S=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=S[0],this.S=S[1],this.L=S[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=i}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",n&&n.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,i,n){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=i,this.inputL.value=n)}},{key:"updateInputRGB",value:function(t,i,n){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=i,this.inputB.value=n)}},{key:"updateInputRGBHEX",value:function(t,i,n){this.options.showHEX&&(this.inputRGBHEX.value=(0,s.rgbToHex)(t,i,n))}},{key:"updatePointerH",value:function(t){var i=this.options.hueBarSize[0]*t/360;this.huePointer.style.left=i-7+"px"}},{key:"updatePointerSL",value:function(t,i,n){var o=r((0,s.hslToRgb)(t,i,n),3),a=o[0],l=o[1],c=o[2],u=r(this.slBarHelper.findColor(a,l,c),2),d=u[0],h=u[1];d>=0&&(this.slPointer.style.left=d-7+"px",this.slPointer.style.top=h-7+"px")}},{key:"updatePointerA",value:function(t){if(this.options.showAlpha){var i=this.options.alphaBarSize[0]*t;this.alphaPointer.style.left=i-7+"px"}}}]),t}(),k=function(){function t(i){u(this,t),this.name=i,this.listeners=[]}return o(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter(function(i){return i!==t}):[]}},{key:"emit",value:function(t,i){for(var n=this.listeners.slice(0),o=0;o<n.length;o++)n[o].apply(i,t)}}]),t}();function S(t,i){var n=new C(t,i),o={change:new k("change"),coloradd:new k("coloradd"),colorremove:new k("colorremove")},a=!0,l={},c={get element(){return n.element},get rgb(){return[n.R,n.G,n.B]},set rgb(e){var u=r(e,3),d=u[0],h=u[1],p=u[2],f=[(0,s.limit)(d,0,255),(0,s.limit)(h,0,255),(0,s.limit)(p,0,255)];d=f[0],h=f[1],p=f[2],n.onValueChanged(g,[d,h,p,1])},get hsl(){return[n.H,n.S,n.L]},set hsl(e){var v=r(e,3),y=v[0],w=v[1],_=v[2],S=[(0,s.limit)(y,0,360),(0,s.limit)(w,0,100),(0,s.limit)(_,0,100)];y=S[0],w=S[1],_=S[2],n.onValueChanged(b,[y,w,_,1])},get rgbhex(){return this.all.hex},get rgba(){return[n.R,n.G,n.B,n.A]},set rgba(e){var x=r(e,4),I=x[0],E=x[1],T=x[2],A=x[3],j=[(0,s.limit)(I,0,255),(0,s.limit)(E,0,255),(0,s.limit)(T,0,255),(0,s.limit)(A,0,1)];I=j[0],E=j[1],T=j[2],A=j[3],n.onValueChanged(g,[I,E,T,A])},get hsla(){return[n.H,n.S,n.L,n.A]},set hsla(e){var L=r(e,4),D=L[0],P=L[1],R=L[2],M=L[3],z=[(0,s.limit)(D,0,360),(0,s.limit)(P,0,100),(0,s.limit)(R,0,100),(0,s.limit)(M,0,1)];D=z[0],P=z[1],R=z[2],M=z[3],n.onValueChanged(b,[D,P,R,M])},get color(){return this.all.toString()},set color(e){n.onValueChanged(m,e)},setColor:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.onValueChanged(m,t,{silent:i})},get all(){if(a){var B=[n.R,n.G,n.B,n.A],N=n.A<1?"rgba("+n.R+","+n.G+","+n.B+","+n.A+")":s.rgbToHex.apply(void 0,B);(l=(0,s.parseColor)(B,l)).toString=function(){return N},a=!1}return Object.assign({},l)},get onchange(){return o.change&&o.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return o.coloradd&&o.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return o.colorremove&&o.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(n.palette).filter(function(t){return n.palette[t]})},set palette(e){n.updatePalette(e)},show:function(){n.element.classList.remove("hidden")},hide:function(){n.element.classList.add("hidden")},toggle:function(){n.element.classList.toggle("hidden")},on:function(t,i){return t&&o[t]&&o[t].on(i),this},off:function(t,i){return t&&o[t]&&o[t].off(i),this},destroy:function(){o.change.off(),o.coloradd.off(),o.colorremove.off(),n.element.remove(),o=null,n=null}};return n.onchange=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];a=!0,o.change.emit([c].concat(i),c)},n.oncoloradd=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.coloradd.emit([c].concat(i),c)},n.oncolorremove=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.colorremove.emit([c].concat(i),c)},n.element.ctrl=c,c}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=n(5).toString(),I=document.createElement("style");I.setAttribute("type","text/css"),I.setAttribute("data-source","a-color-picker"),I.innerHTML=x,document.querySelector("head").appendChild(I)}i.createPicker=S,i.from=function(t,i){var n=(t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(d(t)):"string"==typeof t?[].concat(d(document.querySelectorAll(t))):t.jquery?t.get():[]:[]).map(function(t,n){var o=S(t,i);return o.index=n,o});return n.on=function(t,i){return n.forEach(function(n){return n.on(t,i)}),this},n.off=function(t){return n.forEach(function(i){return i.off(t)}),this},n},i.parseColorToRgb=s.parseColorToRgb,i.parseColorToRgba=s.parseColorToRgba,i.parseColorToHsl=s.parseColorToHsl,i.parseColorToHsla=s.parseColorToHsla,i.parseColor=s.parseColor,i.rgbToHex=s.rgbToHex,i.hslToRgb=s.hslToRgb,i.rgbToHsl=s.rgbToHsl,i.rgbToHsv=s.rgbToHsv,i.rgbToInt=s.rgbToInt,i.intToRgb=s.intToRgb,i.getLuminance=s.getLuminance,i.COLOR_NAMES=s.COLOR_NAMES,i.PALETTE_MATERIAL_500=s.PALETTE_MATERIAL_500,i.PALETTE_MATERIAL_CHROME=s.PALETTE_MATERIAL_CHROME,i.VERSION="1.2.1"},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.nvl=i.ensureArray=i.limit=i.getLuminance=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.cssHslaToHsla=i.cssHslToHsl=i.parseColorToRgba=i.parseColorToRgb=i.cssRgbaToRgba=i.cssRgbToRgb=i.cssColorToRgba=i.cssColorToRgb=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=void 0;var o,r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=(o=n(0))&&o.__esModule?o:{default:o};function a(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var l={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function c(t,i,n){return isNaN(t*=1)||i>t?i:t>n?n:t}function u(t,i){return null==t?i:t}function d(t,i,n){var o=[c(t,0,255),c(i,0,255),c(n,0,255)];return"#"+("000000"+((t=o[0])<<16|(i=o[1])<<8|(n=o[2])).toString(16)).slice(-6)}function h(t,i,n){var o=void 0,r=void 0,s=void 0,a=[c(t,0,360)/360,c(i,0,100)/100,c(n,0,100)/100];if(t=a[0],n=a[2],0==(i=a[1]))o=r=s=n;else{var l=function(t,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(i-t)*n:n<.5?i:n<2/3?t+(i-t)*(2/3-n)*6:t},u=n<.5?n*(1+i):n+i-n*i,d=2*n-u;o=l(d,u,t+1/3),r=l(d,u,t),s=l(d,u,t-1/3)}return[255*o,255*r,255*s].map(Math.round)}function p(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r=Math.max(t=o[0],i=o[1],n=o[2]),s=Math.min(t,i,n),a=void 0,l=void 0,u=(r+s)/2;if(r==s)a=l=0;else{var d=r-s;switch(l=u>.5?d/(2-r-s):d/(r+s),r){case t:a=(i-n)/d+6*(i<n);break;case i:a=(n-t)/d+2;break;case n:a=(t-i)/d+4}a/=6}return[360*a,100*l,100*u].map(Math.round)}function f(t,i,n){return t<<16|i<<8|n}function m(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(i||t)||[],10),o=n[3],s=n[4],a=n[5],c=n[7],u=n[8],d=n[9];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16)];if(void 0!==c)return[parseInt(c,16),parseInt(u,16),parseInt(d,16)]}}function g(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(i||t)||[],12),o=n[3],s=n[4],a=n[5],c=n[6],u=n[8],d=n[9],h=n[10],p=n[11];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16),c?+(parseInt(c+c,16)/255).toFixed(2):1];if(void 0!==u)return[parseInt(u,16),parseInt(d,16),parseInt(h,16),p?+(parseInt(p,16)/255).toFixed(2):1]}}function b(t){if(t){var i=r(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,255),c(s,0,255),c(a,0,255)]:void 0}}function v(t){if(t){var i=r(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function y(t){if(Array.isArray(t))return[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255),c(u(t[3],1),0,1)];var i=g(t)||v(t);return i&&3===i.length&&i.push(1),i}function w(t){if(t){var i=r(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[c(o,0,360),c(s,0,100),c(a,0,100)]:void 0}}function _(t){if(t){var i=r(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[c(o,0,255),c(s,0,255),c(a,0,255),c(u(l,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100),c(u(t[3],1),0,1)];var i=_(t);return i&&3===i.length&&i.push(1),i}function k(t,i){switch(i){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return p.apply(void 0,a(t));case"hslcss":return"hsl("+(t=p.apply(void 0,a(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var n=p.apply(void 0,a(t));return"hsl("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hsla":return[].concat(a(p.apply(void 0,a(t))),[t[3]]);case"hslacss":var o=p.apply(void 0,a(t));return"hsla("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hex":return d.apply(void 0,a(t));case"hexcss4":return d.apply(void 0,a(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return f.apply(void 0,a(t))}}i.COLOR_NAMES=l,i.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],i.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],i.rgbToHex=d,i.hslToRgb=h,i.rgbToHsl=p,i.rgbToHsv=function(t,i,n){var o=[c(t,0,255)/255,c(i,0,255)/255,c(n,0,255)/255],r,s=Math.max(t=o[0],i=o[1],n=o[2]),a=Math.min(t,i,n),l=void 0,u=s-a;if(r=0===s?0:u/s,s==a)l=0;else{switch(s){case t:l=(i-n)/u+6*(i<n);break;case i:l=(n-t)/u+2;break;case n:l=(t-i)/u+4}l/=6}return[l,r,s]},i.rgbToInt=f,i.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},i.cssColorToRgb=m,i.cssColorToRgba=g,i.cssRgbToRgb=b,i.cssRgbaToRgba=v,i.parseColorToRgb=function(t){return Array.isArray(t)?t=[c(t[0],0,255),c(t[1],0,255),c(t[2],0,255)]:m(t)||b(t)},i.parseColorToRgba=y,i.cssHslToHsl=w,i.cssHslaToHsla=_,i.parseColorToHsl=function(t){return Array.isArray(t)?t=[c(t[0],0,360),c(t[1],0,100),c(t[2],0,100)]:w(t)},i.parseColorToHsla=C,i.parseColor=function(t,i){if(i=i||"rgb",null!=t){var n=void 0;if((n=y(t))||(n=C(t))&&(n=[].concat(a(h.apply(void 0,a(n))),[n[3]])))return(0,s.default)(i)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(t,i){return t[i]=k(n,i),t},i||{}):k(n,i.toString().toLowerCase())}},i.getLuminance=function(t,i,n){return .2126*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i=(i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*((n/=255)<.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},i.limit=c,i.ensureArray=function(t){return t?Array.from(t):[]},i.nvl=u},function(t,i,n){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,i){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,i,n){var o=n(6);t.exports="string"==typeof o?o:o.toString()},function(t,i,n){(t.exports=n(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(t,i){t.exports=function(t){var i=[];return i.toString=function(){return this.map(function(i){var n=function(t,i){var n=t[1]||"",o=t[3];if(!o)return n;if(i&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */";return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([r]).join("\n")}return[n].join("\n")}(i,t);return i[2]?"@media "+i[2]+"{"+n+"}":n}).join("")},i.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(o[s]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),i.push(a))}},i}}],i={};function n(o){if(i[o])return i[o].exports;var r=i[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=i,n.d=function(t,i,o){n.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},n.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,i){if(1&i&&(t=n(t)),8&i||4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)n.d(o,r,(function(i){return t[i]}).bind(null,r));return o},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},n.p="",n(n.s=1)}()},6441:function(t,i,n){"use strict";n.d(i,{Config:function(){return s}});var o=n(82758);let r={};class s{static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__defaultOptions}constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=o.globalDocument,this.ownerWindow=o.globalWindow,this.shadowRoot=null,this.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.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=o.INSERT_AS_HTML,this.enter=o.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.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,r)}}r=s.prototype,s.prototype.controls={}},26992:function(t,i,n){"use strict";n.d(i,{Async:function(){return m}});var o=n(82758),r=n(91898),s=n(12045),a=n(23282),l=n(84767),c=n(72430),u=n(14773),d=n(70799),h=n(86068),p=n(38837),f=n(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...n){if(this.isDestructed)return 0;let o={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(o=i).timeout||0),o.label&&this.clearLabel(o.label);let s=(0,r.setTimeout)(t,i,...n),a=o.label||s;return this.timers.set(a,s),this.__callbacks.set(a,t),s}updateTimeout(t,i){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let n=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{label:t,timeout:i})}clearLabel(t){t&&this.timers.has(t)&&((0,r.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,d.isString)(t))return this.clearLabel(t);(0,r.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,i,n=!1){let o=0,l=!1,d=[],h=(...i)=>{if(!l){o=0;let n=t(...i);if(l=!0,d.length){let t=()=>{d.forEach(t=>t()),d.length=0};(0,u.isPromise)(n)?n.finally(t):t()}}},p=(...s)=>{l=!1,i?(!o&&n&&h(...s),(0,r.clearTimeout)(o),o=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,o)):h(...s)};return(0,c.isPlainObject)(i)&&i.promisify?(...t)=>{let i=this.promise(t=>{d.push(t)}).catch(t=>{if((0,s.isAbortError)(t))return null;throw t});return p(...t),i}:p}microDebounce(t,i=!1){let n,o=!1,r=!0;return(...s)=>{if(n=s,o){r=!0;return}r=!0,i&&(r=!1,t(...n)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&r&&t(...n)})}}throttle(t,i,n=!1){let o=null,r,s,l;return(...n)=>{(r=!0,l=n,i)?o||(s=()=>{r?(t(...l),r=!1,o=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,o)):o=null})():t(...l)}}promise(t){let i=()=>{},n=new Promise((n,o)=>{i=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(n,o)});return!n.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(n.finally=t=>(n.then(t).catch(t),n)),n.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),n.rejectCallback=i,n}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(i=>{t.then(t=>(i("fulfilled"),t),t=>{throw i("rejected"),t}),this.setTimeout(()=>{i("pending")},100)});let i={};return Promise.race([t,i]).then(t=>t===i?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,i={timeout:100}){let n=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(n),n}requestIdlePromise(t){return this.promise(i=>{let n=this.requestIdleCallback(()=>i(n),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let n=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(t,{...i,signal:n.signal});return o.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),o}return this.promise((o,r)=>{let s=this.setTimeout(()=>{try{o(t())}catch(t){r(t)}this.__controllers.delete(n)},i.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(n),r((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let i=requestAnimationFrame(t);return this.__requestsRaf.add(i),i}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,r.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var t,i,n,o,r;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(t=null==queueMicrotask?void 0:queueMicrotask.bind(window))?t: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==(i=window.requestIdleCallback)?void 0:i.bind(window))?n:(t,i)=>{var n;let o=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(n=null==i?void 0:i.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(r=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},8884:function(t,i,n){"use strict";n.d(i,{Async:function(){return o.Async}});var o=n(26992)},4012:function(t,i,n){"use strict";n.d(i,{Component:function(){return c}});var o=n(8884),r=n(78213),s=n(580),a=n(21537);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,i,n){let o=[this.componentName];return t&&(t=t.replace(/[^a-z0-9-]/gi,"-"),o.push(`__${t}`)),i&&(o.push("_",i),o.push("_",(0,a.isVoid)(n)?"true":n.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,i){return(0,a.get)(t,i||this)}get isReady(){return this.componentStatus===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,i){if(t===this.__componentStatus)return;i===this&&(this.__componentStatus=t);let n=Object.getPrototypeOf(this);n&&(0,a.isFunction)(n.setStatusComponent)&&n.setStatusComponent(t,i);let o=l.get(this),r=null==o?void 0:o[t];r&&r.length&&r.forEach(t=>t(i))}hookStatus(t,i){let n=l.get(this);n||(n={},l.set(this,n)),n[t]||(n[t]=[]),n[t].push(i)}static isInstanceOf(t,i){return t instanceof i}constructor(){this.async=new o.Async,this.ownerWindow=window,this.__componentStatus=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,s.uniqueUid)()}}c.STATUSES=r.STATUSES},91907:function(t,i,n){"use strict";n.d(i,{Component:function(){return o.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return s.ViewComponent}});var o=n(4012),r=n(78213),s=n(80480)},78213:function(t,i,n){"use strict";n.d(i,{STATUSES:function(){return o}});let o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(t,i,n){"use strict";n.d(i,{ViewComponent:function(){return r}});var o=n(4012);class r extends o.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...i){return this.j.i18n(t,...i)}setParentView(t){return this.jodit=t,t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),this.setParentView(t)}}},82758:function(t,i,n){"use strict";n.r(i),n.d(i,{ACCURACY:function(){return V},APP_VERSION:function(){return o},BASE_PATH:function(){return ep},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return $},CLIPBOARD_ID:function(){return eb},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return ei},ES:function(){return r},FAT_MODE:function(){return u},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return T},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return er},INSERT_CLEAR_HTML:function(){return eo},INSERT_ONLY_TEXT:function(){return es},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return S},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return X},IS_INLINE:function(){return x},IS_MAC:function(){return el},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return ec},KEY_ALT:function(){return M},KEY_BACKSPACE:function(){return L},KEY_DELETE:function(){return H},KEY_DOWN:function(){return O},KEY_ENTER:function(){return P},KEY_ESC:function(){return R},KEY_F3:function(){return U},KEY_LEFT:function(){return z},KEY_META:function(){return j},KEY_RIGHT:function(){return N},KEY_SPACE:function(){return F},KEY_TAB:function(){return D},KEY_UP:function(){return B},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return et},MODE_SOURCE:function(){return Y},MODE_SPLIT:function(){return J},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return m},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return A},PARAGRAPH:function(){return G},PASSIVE_EVENTS:function(){return ey},SAFE_COUNT_CHANGE_CALL:function(){return ea},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return y},SPACE_REG_EXP_END:function(){return _},SPACE_REG_EXP_START:function(){return w},TEMP_ATTR:function(){return em},TEXT_HTML:function(){return Q},TEXT_PLAIN:function(){return Z},TEXT_RTF:function(){return ee},TOKENS:function(){return p},globalDocument:function(){return k},globalWindow:function(){return C},lang:function(){return eg}});let o="4.11.6",r="es2018",s=!0,a=!1,l=!0,c=!1,u=!0,d="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m="\xa0",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+/g,w=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,C="u">typeof window?window:void 0,k="u">typeof document?document:void 0,S=/^(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,x=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),E=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...E,"br","hr"]),A=new Set(E),j="Meta",L="Backspace",D="Tab",P="Enter",R="Escape",M="Alt",z="ArrowLeft",B="ArrowUp",N="ArrowRight",O="ArrowDown",F="Space",H="Delete",U="F3",q=5,V=10,W=[j,L,H,B,O,N,z,P,R,U,D],$="br",G="p",K=1,Y=2,J=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Z=X?"text":"text/plain",Q=X?"html":"text/html",ee=X?"rtf":"text/rtf",et="jodit-selection_marker",ei=300,en="insert_as_html",eo="insert_clear_html",er="insert_as_text",es="insert_only_text",ea=10,el=void 0!==C&&/Mac|iPod|iPhone|iPad/.test(C.navigator.platform),ec={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:el?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:ed,isMin:eh}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=k.currentScript;if(t)return eu(t.src);let i=k.querySelectorAll("script[src]");return i&&i.length?eu(i[i.length-1].src):eu(C.location.href)})(),ep=ed,ef=eh,em="data-jodit-temp",eg={},eb="clipboard",ev="source-consumer",ey=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(t,i,n){"use strict";n.d(i,{Create:function(){return l}});var o=n(82758),r=n(2748),s=n(21537),a=n(38837);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(t,i,n){let o=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(o),i&&((0,s.isPlainObject)(i)?(0,s.attr)(o,i):n=i),n&&(0,s.asArray)(n).forEach(t=>o.appendChild((0,s.isString)(t)?this.fromHTML(t):t)),o}div(t,i,n){let o=this.element("div",i,n);return t&&(o.className=t),o}sandbox(){var t;let i=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(i);let n=null==(t=i.contentWindow)?void 0:t.document;if((0,a.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,i]}span(t,i,n){let o=this.element("span",i,n);return t&&(o.className=t),o}a(t,i,n){let o=this.element("a",i,n);return t&&(o.className=t),o}text(t){return this.doc.createTextNode(t)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,i){let n=this.div();n.innerHTML=t.toString();let o=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(r.Dom.safeRemove(o),i){let t=(0,s.refs)(o);Object.keys(i).forEach(n=>{let o=t[n];o&&!1===i[n]&&r.Dom.hide(o)})}return o}applyCreateAttributes(t){if(this.createAttributes){let i=this.createAttributes;if(i&&i[t.tagName.toLowerCase()]){let n=i[t.tagName.toLowerCase()];(0,s.isFunction)(n)?n(t):(0,s.isPlainObject)(n)&&(0,s.attr)(t,n)}}}constructor(t,i){this.document=t,this.createAttributes=i}}},12060:function(t,i,n){"use strict";n.d(i,{Create:function(){return o.Create}});var o=n(20218)},45219:function(t,i,n){"use strict";n.d(i,{autobind:function(){return r}});var o=n(23282);function r(t,i,n){if(!(0,o.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=n.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},33433:function(t,i,n){"use strict";n.d(i,{cache:function(){return c},cacheHTML:function(){return u},cached:function(){return l}});var o=n(78213),r=n(2748),s=n(27613),a=n(82760);function l(t,i){let n=Object.getOwnPropertyDescriptor(t,i);return!n||(0,s.isFunction)(n.get)?null:n.value}function c(t,i,n){let o=n.get;if(!o)throw(0,a.error)("Getter property descriptor expected");n.get=function(){let t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,i,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:t}),t}}function u(t,i,n){let l=n.value;if(!(0,s.isFunction)(l))throw(0,a.error)("Handler must be a Function");let c=!0,u=new WeakMap;n.value=function(...t){var i;if(c&&u.has(this.constructor))return null==(i=u.get(this.constructor))?void 0:i.cloneNode(!0);let n=l.apply(this,t);return c&&r.Dom.isElement(n)&&u.set(this.constructor,n),c?n.cloneNode(!0):n},t.hookStatus(o.STATUSES.ready,t=>{c=!!((0,s.isViewObject)(t)?t:t.jodit).options.cache})}},87325:function(t,i,n){"use strict";n.d(i,{component:function(){return a},getComponentClass:function(){return l}});var o=n(82758),r=n(80568);let s=new Map;function a(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}let n=(0,r.getClassName)(t.prototype);if(s.has(n)&&!o.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return s.set(n,i),i}function l(t){return s.get(t)}},81577:function(t,i,n){"use strict";n.d(i,{debounce:function(){return l},throttle:function(){return c}});var o=n(91907),r=n(27613),s=n(38837),a=n(89890);function l(t,i=!1,n="debounce"){return(l,c)=>{let u=l[c];if(!(0,r.isFunction)(u))throw(0,a.error)("Handler must be a Function");return l.hookStatus(o.STATUSES.ready,o=>{let{async:a}=o;(0,s.assert)(null!=a,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let l=(0,r.isFunction)(t)?t(o):t,u=(0,r.isNumber)(l)||(0,r.isPlainObject)(l)?l:o.defaultTimeout;Object.defineProperty(o,c,{configurable:!0,value:a[n](o[c].bind(o),u,i)})}),{configurable:!0,get(){return u.bind(this)}}}}function c(t,i=!1){return l(t,i,"throttle")}},55153:function(t,i,n){"use strict";n.d(i,{derive:function(){return r}});var o=n(23282);function r(...t){return i=>{let n=i.prototype;for(let i=0;i<t.length;i++){let r=t[i],s=Object.getOwnPropertyNames(r.prototype);for(let t=0;t<s.length;t++){let i=s[t],a=Object.getOwnPropertyDescriptor(r.prototype,i);null!=a&&(0,o.isFunction)(a.value)&&!(0,o.isFunction)(n[i])&&Object.defineProperty(n,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},97357:function(t,i,n){"use strict";n.d(i,{hook:function(){return s}});var o=n(23282),r=n(89890);function s(t){return(i,n)=>{if(!(0,o.isFunction)(i[n]))throw(0,r.error)("Handler must be a Function");i.hookStatus(t,t=>{t[n].call(t)})}}},78927:function(t,i,n){"use strict";n.d(i,{idle:function(){return a}});var o=n(91907),r=n(23282),s=n(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:n}=t,o=t[i];t[i]=(...i)=>n.requestIdleCallback(o.bind(t,...i))})}}},65478:function(t,i,n){"use strict";n.r(i),n.d(i,{autobind:function(){return o.autobind},cache:function(){return r.cache},cacheHTML:function(){return r.cacheHTML},cached:function(){return r.cached},component:function(){return s.component},debounce:function(){return a.debounce},derive:function(){return l.derive},getComponentClass:function(){return s.getComponentClass},hook:function(){return c.hook},idle:function(){return u.idle},nonenumerable:function(){return d.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return a.throttle},wait:function(){return p.wait},watch:function(){return f.watch}});var o=n(45219),r=n(33433),s=n(87325),a=n(81577),l=n(55153),c=n(97357),u=n(78927),d=n(31589),h=n(53213),p=n(13525),f=n(37133)},31589:function(t,i,n){"use strict";n.d(i,{nonenumerable:function(){return o}});let o=(t,i)=>{!1!==(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable&&Object.defineProperty(t,i,{enumerable:!1,set(t){Object.defineProperty(this,i,{enumerable:!1,writable:!0,value:t})}})}},53213:function(t,i,n){"use strict";n.d(i,{persistent:function(){return s}});var o=n(78213),r=n(39955);function s(t,i){t.hookStatus(o.STATUSES.ready,t=>{let n=(0,r.isViewObject)(t)?t:t.jodit,o=`${n.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=n.storage.get(o))?t:s},set(t){n.storage.set(o,t)}})})}},13525:function(t,i,n){"use strict";n.d(i,{wait:function(){return a}});var o=n(78213),r=n(23282),s=n(89890);function a(t){return(i,n)=>{let a=i[n];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(o.STATUSES.ready,i=>{let{async:o}=i,r=i[n],s=0;Object.defineProperty(i,n,{configurable:!0,value:function n(...a){o.clearTimeout(s),t(i)?r.apply(i,a):s=o.setTimeout(()=>n(...a),10)}})})}}},37133:function(t,i,n){"use strict";n.d(i,{watch:function(){return h}});var o=n(78213),r=n(73026),s=n(46559),a=n(23282),l=n(72430),c=n(39955),u=n(89890),d=n(37790);function h(t,i){return(n,h)=>{var p;if(!(0,a.isFunction)(n[h]))throw(0,u.error)("Handler must be a Function");let f=null==(p=null==i?void 0:i.immediately)||p,m=null==i?void 0:i.context,g=i=>{let o=(0,c.isViewObject)(i)?i:i.jodit,u=(t,...n)=>{if(!i.isInDestruct)return i[h](t,...n)};f||(u=i.async.microDebounce(u,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[n,r]=t.split(":"),s=m;n.length&&(s=i.get(n)),(0,a.isFunction)(s)&&(s=s(i)),o.events.on(s||i,r,u),s||o.events.on(r,u),i.hookStatus("beforeDestruct",()=>{o.events.off(s||i,r,u).off(r,u)});return}let s=t.split("."),[c]=s,h=s.slice(1),p=i[c];(0,l.isPlainObject)(p)&&(0,r.observable)(p).on(`change.${h.join(".")}`,u);let f=(0,d.getPropertyDescriptor)(n,c);Object.defineProperty(i,c,{configurable:!0,set(t){let n=p;n!==t&&(p=t,f&&f.set&&f.set.call(i,t),(0,l.isPlainObject)(p)&&(p=(0,r.observable)(p)).on(`change.${h.join(".")}`,u),u(c,n,p))},get(){return f&&f.get?f.get.call(i):p}})})};(0,a.isFunction)(n.hookStatus)?n.hookStatus(o.STATUSES.ready,g):g(n)}}},2748:function(t,i,n){"use strict";n.d(i,{Dom:function(){return y}});var o=n(82758),r=n(4510),s=n(68345),a=n(23282),l=n(58487),c=n(42320),u=n(70799),d=n(86068),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(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,i,n){let o,r=t;n.s.save();let s=!1;do s=!1,(o=r.nextSibling)&&!y.isBlock(o)&&!y.isTag(o,"br")&&(s=!0,r=o);while(s);return y.__wrapElements(i,n,t,r)}static __wrapElements(t,i,n,o){let r=(0,u.isString)(t)?i.createInside.element(t):t;n.parentNode&&n.parentNode.insertBefore(r,n);let s=n;for(;s&&(s=n.nextSibling,r.appendChild(n),n!==o&&s);)n=s;return i.s.restore(),r}static wrapInline(t,i,n){let o,r=t,s=t;n.s.save();let a=!1;do a=!1,(o=r.previousSibling)&&!y.isBlock(o)&&(a=!0,r=o);while(a);do a=!1,(o=s.nextSibling)&&!y.isBlock(o)&&(a=!0,s=o);while(a);return y.__wrapElements(i,n,r,s)}static wrap(t,i,n){let o=(0,u.isString)(i)?n.element(i):i;if(y.isNode(t)){if(!t.parentNode)throw(0,b.error)("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{let i=t.extractContents();t.insertNode(o),o.appendChild(i)}return o}static unwrap(t){let i=t.parentNode;if(i){for(;t.firstChild;)i.insertBefore(t.firstChild,t);y.safeRemove(t)}}static between(t,i,n){let o=t;for(;o&&o!==i&&!(t!==o&&n(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)o=o.parentNode;t=null==o?void 0:o.nextSibling}o=t}}static replace(t,i,n,o=!1,s=!1){let a;if((0,l.isHTML)(i)&&((0,p.assert)(n,"Need create instance for new tag"),i=n.fromHTML(i)),(0,u.isString)(i)?((0,p.assert)(n,"Need create instance for new tag"),a=n.element(i)):a=i,!s)for(;t.firstChild;)a.appendChild(t.firstChild);return o&&y.isElement(t)&&y.isElement(a)&&(0,r.toArray)(t.attributes).forEach(t=>{a.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return y.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return y.each(t,t=>y.isEmptyTextNode(t))}static isContentEditable(t,i){return y.isNode(t)&&!y.closest(t,t=>y.isElement(t)&&"false"===t.getAttribute("contenteditable"),i)}static isEmpty(t,i=o.NO_EMPTY_TAGS){let n;if(!t)return!0;n=(0,a.isFunction)(i)?i:t=>i.has(t.nodeName.toLowerCase());let r=t=>null==t.nodeValue||0===(0,h.trim)(t.nodeValue).length;return y.isText(t)?r(t):!(y.isElement(t)&&n(t))&&y.each(t,t=>{if(y.isText(t)&&!r(t)||y.isElement(t)&&n(t))return!1})}static isNode(t){return!!(t&&(0,u.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,a.isFunction)(t.appendChild))}static isCell(t){return y.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return y.isTag(t,o.LIST_TAGS)}static isLeaf(t){return y.isTag(t,"li")}static isImage(t){return y.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,d.isVoid)(t)&&"object"==typeof t&&y.isNode(t)&&o.IS_BLOCK.test(t.nodeName)}static isText(t){return!!(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return!!(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){var i;return!!y.isNode(t)&&!!((null==(i=t.ownerDocument)?void 0:i.defaultView)&&t.nodeType===Node.ELEMENT_NODE)}static isFragment(t){var i;return!!y.isNode(t)&&!!((null==(i=t.ownerDocument)?void 0:i.defaultView)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){var i;if(!y.isNode(t))return!1;let n=null==(i=t.ownerDocument)?void 0:i.defaultView;return!!(n&&t instanceof n.HTMLElement)}static isInlineBlock(t){return y.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(t,"display").toString())}static canSplitBlock(t){return!(0,d.isVoid)(t)&&y.isHTMLElement(t)&&y.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static last(t,i){let n=null==t?void 0:t.lastChild;if(!n)return null;do{if(i(n))return n;let o=n.lastChild;if(o||(o=n.previousSibling),!o&&n.parentNode!==t){do n=n.parentNode;while(n&&!(null==n?void 0:n.previousSibling)&&n.parentNode!==t);o=null==n?void 0:n.previousSibling}n=o}while(n);return null}static prev(t,i,n,o=!0){return y.find(t,i,n,!1,o)}static next(t,i,n,o=!0){return y.find(t,i,n,!0,o)}static prevWithClass(t,i){return y.prev(t,t=>y.isElement(t)&&t.classList.contains(i),t.parentNode)}static nextWithClass(t,i){return y.next(t,t=>y.isElement(t)&&t.classList.contains(i),t.parentNode)}static find(t,i,n,o=!0,r=!0){let s=this.nextGen(t,n,o,r),a=s.next();for(;!a.done;){if(i(a.value))return a.value;a=s.next()}return null}static*nextGen(t,i,n=!0,o=!0){let r=[],s=t;do{let i=n?s.nextSibling:s.previousSibling;for(;i;)r.unshift(i),i=n?i.nextSibling:i.previousSibling;yield*this.runInStack(t,r,n,o),s=s.parentNode}while(s&&s!==i);return null}static each(t,i,n=!0){let o=this.eachGen(t,n),r=o.next();for(;!r.done;){if(!1===i(r.value))return!1;r=o.next()}return!0}static eachGen(t,i=!0){return this.runInStack(t,[t],i)}static*runInStack(t,i,n,o=!0){for(;i.length;){let r=i.pop();if(o){let t=n?r.lastChild:r.firstChild;for(;t;)i.push(t),t=n?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,i,n,o="nextSibling",r="firstChild"){let s=t;do{if(i(s))return s||null;if(r&&s&&s[r]){let t=y.findWithCurrent(s[r],i,s,o,r);if(t)return t}for(;s&&!s[o]&&s!==n;)s=s.parentNode;s&&s[o]&&s!==n&&(s=s[o])}while(s&&s!==n);return null}static findSibling(t,i=!0,n=t=>!y.isEmptyTextNode(t)){let o=y.sibling(t,i);for(;o&&!n(o);)o=y.sibling(o,i);return o&&n(o)?o:null}static findNotEmptySibling(t,i){return y.findSibling(t,i,t=>{var i;return!y.isEmptyTextNode(t)&&!!(!y.isText(t)||(null==(i=t.nodeValue)?void 0:i.length)&&(0,h.trim)(t.nodeValue))})}static findNotEmptyNeighbor(t,i,n){return(0,v.call)(i?y.prev:y.next,t,t=>!!(t&&(!(y.isText(t)||y.isComment(t))||(0,h.trim)((null==t?void 0:t.nodeValue)||"").length)),n)}static sibling(t,i){return i?t.previousSibling:t.nextSibling}static up(t,i,n,o=!1){let r=t;if(!r)return null;do{if(i(r))return r;if(r===n||!r.parentNode)break;r=r.parentNode}while(r&&r!==n);return r===n&&o&&i(r)?r:null}static closest(t,i,n){let o,r=t=>t.toLowerCase();if((0,a.isFunction)(i))o=i;else if((0,s.isArray)(i)||(0,c.isSet)(i)){let t=(0,c.isSet)(i)?i:new Set(i.map(r));o=i=>!!(i&&t.has(r(i.nodeName)))}else o=t=>!!(t&&r(i)===r(t.nodeName));return y.up(t,o,n)}static furthest(t,i,n){let o=null,r=null==t?void 0:t.parentElement;for(;r&&r!==n;)i(r)&&(o=r),r=null==r?void 0:r.parentElement;return o}static appendChildFirst(t,i){let n=t.firstChild;n?n!==i&&t.insertBefore(i,n):t.appendChild(i)}static after(t,i){let{parentNode:n}=t;n&&(n.lastChild===t?n.appendChild(i):n.insertBefore(i,t.nextSibling))}static before(t,i){let{parentNode:n}=t;n&&n.insertBefore(i,t)}static prepend(t,i){t.insertBefore(i,t.firstChild)}static append(t,i){(0,s.isArray)(i)?i.forEach(i=>{this.append(t,i)}):t.appendChild(i)}static moveContent(t,i,n=!1,s=()=>!0){let a=(t.ownerDocument||o.globalDocument).createDocumentFragment();(0,r.toArray)(t.childNodes).filter(t=>!!s(t)||(y.safeRemove(t),!1)).forEach(t=>{a.appendChild(t)}),n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a)}static isOrContains(t,i,n=!1){return t===i?!n:!!(i&&t&&this.up(i,i=>i===t,t,!0))}static safeRemove(...t){t.forEach(t=>y.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,i){t.collapsed||t.deleteContents();let n=y.isFragment(i)?i.lastChild:i;t.startContainer===t.endContainer&&t.collapsed&&y.isTag(t.startContainer,o.INSEPARABLE_TAGS)?y.after(t.startContainer,i):(t.insertNode(i),n&&t.setStartBefore(n)),t.collapse(!0),[i.nextSibling,i.previousSibling].forEach(t=>y.isText(t)&&!t.nodeValue&&y.safeRemove(t))}static hide(t){t&&((0,g.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let i=(0,g.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=i||"")}static isTag(t,i){if(!this.isElement(t))return!1;let n=t.tagName.toLowerCase(),o=t.tagName.toUpperCase();if(i instanceof Set)return i.has(n)||i.has(o);if(Array.isArray(i))throw TypeError("Dom.isTag does not support array");return n===i||o===i}static markTemporary(t,i){return i&&(0,f.attr)(t,i),(0,f.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!y.isElement(t)&&(y.isMarker(t)||"true"===(0,f.attr)(t,o.TEMP_ATTR))}static isMarker(t){return y.isNode(t)&&y.isTag(t,"span")&&t.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,r.toArray)(t.querySelectorAll(`[${o.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(t,i,n){"use strict";n.d(i,{Dom:function(){return o.Dom},LazyWalker:function(){return r.LazyWalker}});var o=n(2748),r=n(70071)},70071:function(t,i,n){"use strict";n.d(i,{LazyWalker:function(){return a}});var o=n(45219),r=n(2748),s=n(72757);class a extends s.Eventify{setWork(t){return this.isWorked&&this.break(),this.workNodes=r.Dom.eachGen(t,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}__workPerform(){var t;if(this.workNodes){this.isWorked=!0;let i=0,n=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<=n;){let t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){var i;return!!t&&(void 0===this.options.whatToShow||t.nodeType===this.options.whatToShow)&&null!=(i=this.emit("visit",t))&&i}constructor(t,i={}){super(),this.async=t,this.options=i,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0,this.__schedulerController=null}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],a.prototype,"__workPerform",null)},98220:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return d}});var o=n(82758),r=n(46559),s=n(68345),a=n(23282),l=n(70799),c=n(89890),u=n(15738);class d{mute(t){return this.__mutedEvents.add(null!=t?t:"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(null!=t?t:"*"),this}__eachEvent(t,i){(0,r.splitArray)(t).map(t=>t.trim()).forEach(t=>{let n=t.split("."),o=n[1]||u.defaultNameSpace;i.call(this,n[0],o)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let i=new u.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:i})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,i){let n=this.__doc.createEvent("HTMLEvents");(0,l.isString)(i)?n.initEvent(i,!0,!0):(n.initEvent(i.type,i.bubbles,i.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(n,t,{value:i[t],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:i,enumerable:!0})),t.dispatchEvent(n)}get current(){return this.currents[this.currents.length-1]}on(t,i,n,r){let u,d,p,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(u=this,d=t,p=i,f=n):(u=t,d=i,p=n,f=r),!((0,l.isString)(d)||(0,l.isStringArray)(d))||0===d.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(p))throw(0,c.error)("Need event handler");if((0,s.isArray)(u))return u.forEach(t=>{this.on(t,d,p,f)}),this;let m=u,g=this.__getStore(m),b=this,v=function(t,...i){if(!b.isMuted(t))return p&&p.call(this,...i)};return h(m)&&(v=function(t){if(!b.isMuted(t.type)&&(b.__prepareEvent(t),p&&!1===p.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(d,(t,i)=>{var n,r;if(0===t.length)throw(0,c.error)("Need event name");if(!1===g.indexOf(t,i,p)){let s={event:t,originalCallback:p,syntheticCallback:v};if(g.set(t,i,s,null==f?void 0:f.top),h(m)){let i=o.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!=(n=null==f?void 0:f.capture)&&n}:null!=(r=null==f?void 0:f.capture)&&r;v.options=i,m.addEventListener(t,v,i),this.__memoryDOMSubjectToHandler(m,v)}}}),this}__memoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap.get(t)||new Set;n.add(i),this.__domEventsMap.set(t,n)}__unmemoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap,o=n.get(t)||new Set;o.delete(i),o.size?n.set(t,o):n.delete(t)}one(t,i,n,o){let r,s,a,c;(0,l.isString)(t)||(0,l.isStringArray)(t)?(r=this,s=t,a=i,c=n):(r=t,s=i,a=n,c=o);let u=(...t)=>(this.off(r,s,u),a(...t));return this.on(r,s,u,c),this}off(t,i,n){let o,r,c;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(o=this,r=t,c=i):(o=t,r=i,c=n),(0,s.isArray)(o))return o.forEach(t=>{this.off(t,r,c)}),this;let d=o,p=this.__getStore(d);if(!((0,l.isString)(r)||(0,l.isStringArray)(r))||0===r.length)return p.namespaces().forEach(t=>{this.off(d,"."+t)}),this.__removeStoreFromSubject(d),this;let f=t=>{var i;h(d)&&(d.removeEventListener(t.event,t.syntheticCallback,null!=(i=t.syntheticCallback.options)&&i),this.__unmemoryDOMSubjectToHandler(d,t.syntheticCallback))},m=(t,i)=>{if(""===t)return void p.events(i).forEach(t=>{""!==t&&m(t,i)});let n=p.get(t,i);if(n&&n.length)if((0,a.isFunction)(c)){let o=p.indexOf(t,i,c);!1!==o&&(f(n[o]),n.splice(o,1),n.length||p.clearEvents(i,t))}else n.forEach(f),n.length=0,p.clearEvents(i,t)};return this.__eachEvent(r,(t,i)=>{i===u.defaultNameSpace?p.namespaces().forEach(i=>{m(t,i)}):m(t,i)}),p.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(t,i){let n=(0,l.isString)(t)?this:t,o=(0,l.isString)(t)?t:i;if("string"!=typeof o)throw(0,c.error)("Need event names");let r=this.__getStore(n);this.__eachEvent(o,(t,i)=>{let o=r.get(t,i);o&&this.__stopped.push(o),i===u.defaultNameSpace&&r.namespaces(!0).forEach(i=>this.stopPropagation(n,t+"."+i))})}__removeStop(t){if(t){let i=this.__stopped.indexOf(t);-1!==i&&this.__stopped.splice(0,i+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,i,...n){let o,r,s=(0,l.isString)(t)?this:t,a=(0,l.isString)(t)?t:i,d=(0,l.isString)(t)?[i,...n]:n;if(!h(s)&&!(0,l.isString)(a))throw(0,c.error)("Need events names");let p=this.__getStore(s);return!(0,l.isString)(a)&&h(s)?this.__triggerNativeEvent(s,i):this.__eachEvent(a,(t,i)=>{if(h(s))this.__triggerNativeEvent(s,t);else{let n=p.get(t,i);if(n)try{[...n].every(i=>!this.__isStopped(n)&&(this.currents.push(t),r=i.syntheticCallback.call(s,t,...d),this.currents.pop(),void 0!==r&&(o=r),!0))}finally{this.__removeStop(n)}i!==u.defaultNameSpace||h(s)||p.namespaces().filter(t=>t!==i).forEach(i=>{let n=this.fire.apply(this,[s,t+"."+i,...d]);void 0!==n&&(o=n)})}}),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((t,i)=>{this.off(i)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=o.globalDocument,this.__prepareEvent=t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(i=>{Object.defineProperty(t,i,{value:t.changedTouches[0][i],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=new Date().getTime()}}function h(t){return(0,a.isFunction)(t.addEventListener)}},72757:function(t,i,n){"use strict";n.d(i,{Eventify:function(){return o}});class o{on(t,i){var n;return this.__map.has(t)||this.__map.set(t,new Set),null==(n=this.__map.get(t))||n.add(i),this}off(t,i){var n;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.delete(i)),this}destruct(){this.__map.clear()}emit(t,...i){var n;let o;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.forEach(t=>{o=t(...i)})),o}constructor(){this.__map=new Map}}},57012:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return o}});let o=new(n(98220)).EventEmitter},3827:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return a.EventHandlersStore},Eventify:function(){return r.Eventify},defaultNameSpace:function(){return a.defaultNameSpace},observable:function(){return s.observable}});var o=n(98220),r=n(72757),s=n(73026),a=n(15738)},73026:function(t,i,n){"use strict";n.d(i,{observable:function(){return u}});var o=n(68345),r=n(59292),s=n(72430),a=n(37790);let l=Symbol("observable-object");function c(t){return void 0!==t[l]}function u(t){if(c(t))return t;let i={},n={},u=(i,r)=>((0,o.isArray)(i)?i.map(t=>u(t,r)):(n[i]||(n[i]=[]),n[i].push(r)),t),d=(r,...s)=>{if((0,o.isArray)(r))return void r.map(t=>d(t,...s));try{!i[r]&&n[r]&&(i[r]=!0,n[r].forEach(i=>i.call(t,...s)))}finally{i[r]=!1}},h=(i,n=[])=>{let o={};c(i)||(Object.defineProperty(i,l,{enumerable:!1,value:!0}),Object.keys(i).forEach(l=>{let c=n.concat(l).filter(t=>t.length);o[l]=i[l];let u=(0,a.getPropertyDescriptor)(i,l);Object.defineProperty(i,l,{set:i=>{let n=o[l];if(!(0,r.isFastEqual)(o[l],i)){d(["beforeChange",`beforeChange.${c.join(".")}`],l,i),(0,s.isPlainObject)(i)&&h(i,c),u&&u.set?u.set.call(t,i):o[l]=i;let r=[];d(["change",...c.reduce((t,i)=>(r.push(i),t.push(`change.${r.join(".")}`),t),[])],c.join("."),n,(null==i?void 0:i.valueOf)?i.valueOf():i)}},get:()=>u&&u.get?u.get.call(t):o[l],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(o[l])&&h(o[l],c)}),Object.defineProperty(t,"on",{value:u}))};return h(t),t}},15738:function(t,i,n){"use strict";n.d(i,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var o=n(4510),r=n(38837);let s="JoditEventDefaultNamespace";class a{get(t,i){if(this.__store.has(i)){let n=this.__store.get(i);return(0,r.assert)(n,"-"),n[t]}}indexOf(t,i,n){let o=this.get(t,i);if(o){for(let t=0;t<o.length;t+=1)if(o[t].originalCallback===n)return t}return!1}namespaces(t=!1){let i=(0,o.toArray)(this.__store.keys());return t?i.filter(t=>t!==s):i}events(t){let i=this.__store.get(t);return i?Object.keys(i):[]}set(t,i,n,o=!1){let r=this.__store.get(i);r||(r={},this.__store.set(i,r)),void 0===r[t]&&(r[t]=[]),o?r[t].unshift(n):r[t].push(n)}clear(){this.__store.clear()}clearEvents(t,i){let n=this.__store.get(t);n&&n[i]&&(delete n[i],Object.keys(n).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return S},extendLang:function(){return w},getContainer:function(){return C},getPopupViewRoot:function(){return k},instances:function(){return f},modules:function(){return y},pluginSystem:function(){return v},uniqueUid:function(){return b}});var o=n(19306),r=n(70799),s=n(39955),a=n(12475),l=n(41180),c=n(80568),u=n(41876),d=n(57012),h=n(82758),p=n(22732);let f={},m=1,g=new Set;function b(){function t(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let i=t();for(;g.has(i);)i=t();return g.add(i),i}let v=new u.PluginSystem({getContainer:C}),y={},w=t=>{Object.keys(t).forEach(i=>{h.lang[i]?Object.assign(h.lang[i],t[i]):h.lang[i]=t[i]})},_=new WeakMap;function C(t,i,n="div",l=!1){let u=(0,r.isString)(i)?i:i?(0,c.getClassName)(i.prototype):"jodit-utils",d=_.get(t)||{},h=u+n,f=(0,s.isViewObject)(t)?t:t.j,m=null;if(!d[h]){let i=f.c;if(m=k(f.o,f.container,t.od.body),l&&(0,o.isJoditObject)(t)&&t.od!==t.ed){i=t.createInside;let r="style"===n?t.ed.head:t.ed.body;m=(0,o.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}let r=i.element(n,{className:`jodit jodit-${(0,a.kebabCase)(u)}-container jodit-box`});r.classList.add(`jodit_theme_${f.o.theme||"default"}`),m.appendChild(r),d[h]=r,t.hookStatus("beforeDestruct",()=>{f.events.off(r),p.Dom.safeRemove(r),delete d[h],Object.keys(d).length&&_.delete(t)}),_.set(t,d),f.events.fire("getContainer",r)}return d[h].classList.remove("jodit_theme_default","jodit_theme_dark"),d[h].classList.add(`jodit_theme_${f.o.theme||"default"}`),d[h]}function k(t,i,n){var o,r,s;return null!=(s=null!=(r=null!=(o=t.popupRoot)?o:t.shadowRoot)?r:p.Dom.closest(i,t=>p.Dom.isHTMLElement(t)&&(p.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,l.css)(t,"position"))),n))?s:n}let S=d.eventEmitter},29999:function(t,i,n){"use strict";n.d(i,{asArray:function(){return r}});var o=n(68345);let r=t=>(0,o.isArray)(t)?t:[t]},76855:function(t,i,n){"use strict";n.d(i,{asArray:function(){return o.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var o=n(29999),r=n(46559),s=n(4510)},46559:function(t,i,n){"use strict";function o(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}n.d(i,{splitArray:function(){return o}})},4510:function(t,i,n){"use strict";n.d(i,{toArray:function(){return s}});var o=n(70722),r=n(58844);let s=function(...t){var i;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},91898:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=n(13252)},13252:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var o=n(82758);function r(t,i,...n){return i?o.globalWindow.setTimeout(t,i,...n):(t.call(null,...n),0)}function s(t){o.globalWindow.clearTimeout(t)}},54765:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return r}});var o=n(82758);function r(){let t=!0;try{let i=o.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},27613:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return r.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return a.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return l.isEqual},isFastEqual:function(){return l.isFastEqual},isFunction:function(){return c.isFunction},isHTML:function(){return u.isHTML},isHtmlFromWord:function(){return d.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return p.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return g.isMarker},isNativeFunction:function(){return b.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return y.isNumeric},isPlainObject:function(){return w.isPlainObject},isPromise:function(){return _.isPromise},isSet:function(){return C.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return S.isURL},isValidName:function(){return x.isValidName},isViewObject:function(){return I.isViewObject},isVoid:function(){return E.isVoid},isWindow:function(){return T.isWindow}});var o=n(54765),r=n(12045),s=n(68345),a=n(87612),l=n(59292),c=n(23282),u=n(58487),d=n(29673),h=n(60132),p=n(72913),f=n(19306),m=n(45603),g=n(78116),b=n(70722),v=n(84767),y=n(29807),w=n(72430),_=n(14773),C=n(42320),k=n(70799),S=n(26049),x=n(37508),I=n(39955),E=n(86068),T=n(52742)},12045:function(t,i,n){"use strict";function o(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}n.d(i,{isAbortError:function(){return o}})},68345:function(t,i,n){"use strict";function o(t){return Array.isArray(t)}n.d(i,{isArray:function(){return o}})},87612:function(t,i,n){"use strict";function o(t){return"boolean"==typeof t}n.d(i,{isBoolean:function(){return o}})},59292:function(t,i,n){"use strict";n.d(i,{isEqual:function(){return r},isFastEqual:function(){return s}});var o=n(67462);function r(t,i){return t===i||(0,o.stringify)(t)===(0,o.stringify)(i)}function s(t,i){return t===i}},23282:function(t,i,n){"use strict";function o(t){return"function"==typeof t}n.d(i,{isFunction:function(){return o}})},29673:function(t,i,n){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}n.d(i,{isHtmlFromWord:function(){return o}})},58487:function(t,i,n){"use strict";n.d(i,{isHTML:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},60132:function(t,i,n){"use strict";n.d(i,{hasContainer:function(){return c},isDestructable:function(){return l},isInitable:function(){return a}});var o=n(2748),r=n(23282),s=n(86068);function a(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.init)}function l(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.destruct)}function c(t){return!(0,s.isVoid)(t)&&o.Dom.isElement(t.container)}},72913:function(t,i,n){"use strict";n.d(i,{isInt:function(){return s}});var o=n(29807),r=n(70799);function s(t){return(0,r.isString)(t)&&(0,o.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},19306:function(t,i,n){"use strict";n.d(i,{isJoditObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},45603:function(t,i,n){"use strict";n.d(i,{isLicense:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},78116:function(t,i,n){"use strict";n.d(i,{isMarker:function(){return r}});var o=n(2748);function r(t){return o.Dom.isMarker(t)}},70722:function(t,i,n){"use strict";function o(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(t)))}n.d(i,{isNativeFunction:function(){return o}})},84767:function(t,i,n){"use strict";function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}n.d(i,{isNumber:function(){return o}})},29807:function(t,i,n){"use strict";n.d(i,{isNumeric:function(){return r}});var o=n(70799);function r(t){if((0,o.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},72430:function(t,i,n){"use strict";n.d(i,{isPlainObject:function(){return r}});var o=n(52742);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},14773:function(t,i,n){"use strict";function o(t){return t&&"function"==typeof t.then}n.d(i,{isPromise:function(){return o}})},42320:function(t,i,n){"use strict";n.d(i,{isSet:function(){return r}});var o=n(23282);function r(t){return!!t&&(0,o.isFunction)(t.has)&&(0,o.isFunction)(t.add)&&(0,o.isFunction)(t.delete)}},70799:function(t,i,n){"use strict";n.d(i,{isString:function(){return r},isStringArray:function(){return s}});var o=n(68345);function r(t){return"string"==typeof t}function s(t){return(0,o.isArray)(t)&&r(t[0])}},26049:function(t,i,n){"use strict";n.d(i,{isURL:function(){return r}});var o=n(82758);function r(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let i=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(i.protocol)}catch(t){return!1}let i=o.globalDocument.createElement("a");return i.href=t,!!i.hostname}},37508:function(t,i,n){"use strict";function o(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}n.d(i,{isValidName:function(){return o}})},39955:function(t,i,n){"use strict";n.d(i,{isViewObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&t.isView)}},86068:function(t,i,n){"use strict";function o(t){return null==t}n.d(i,{isVoid:function(){return o}})},52742:function(t,i,n){"use strict";function o(t){return null!=t&&t===t.window}n.d(i,{isWindow:function(){return o}})},35278:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o}});let o=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let i=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!i)return"#000000";let n=parseInt(i[2],10),o=parseInt(i[3],10),r=(parseInt(i[4],10)|o<<8|n<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return i[1]+"#"+r}},58149:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o.colorToHex}});var o=n(35278)},32574:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return c}});var o=n(82758),r=n(2748),s=n(49055),a=n(76078);function l(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(t,i,n)=>{switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(i)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(i)).toFixed(0)+"px"}return t})}function c(t){if(-1===t.indexOf("<html "))return t;t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7);let i=o.globalDocument.createElement("iframe");i.style.display="none",o.globalDocument.body.appendChild(i);let n="";try{let c=i.contentDocument||(i.contentWindow?i.contentWindow.document:null);if(c){c.open(),c.write(t),c.close();try{for(let t=0;t<c.styleSheets.length;t+=1){let i=c.styleSheets[t].cssRules;for(let t=0;t<i.length;t+=1)""!==i[t].selectorText&&(0,a.$$)(i[t].selectorText,c.body).forEach(n=>{n.style.cssText=l(i[t].style.cssText+";"+n.style.cssText)})}}catch(t){if(!o.IS_PROD)throw t}r.Dom.each(c.body,t=>{if(r.Dom.isElement(t)){let i=t.getAttribute("style");i&&(t.style.cssText=l(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),n=c.firstChild?(0,s.trim)(c.body.innerHTML):""}}catch(t){}finally{r.Dom.safeRemove(i)}return n&&(t=n),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(t,i,n){"use strict";n.d(i,{cleanFromWord:function(){return l}});var o=n(82758),r=n(2748),s=n(4510),a=n(49055);function l(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let i="";try{let n=o.globalDocument.createElement("div");n.innerHTML=t;let a=[];n.firstChild&&r.Dom.each(n,t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":a.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":r.Dom.unwrap(t);break;default:(0,s.toArray)(t.attributes).forEach(i=>{-1===["src","href","rel","content"].indexOf(i.name.toLowerCase())&&t.removeAttribute(i.name)})}break;case Node.TEXT_NODE:break;default:a.push(t)}}),r.Dom.safeRemove.apply(null,a),i=n.innerHTML}catch(t){}return i&&(t=i),(t=t.split(/(\n)/).filter(a.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(t,i,n){"use strict";n.d(i,{htmlspecialchars:function(){return r}});var o=n(82758);function r(t){let i=o.globalDocument.createElement("div");return i.textContent=t,i.innerHTML}},75275:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return r.cleanFromWord},htmlspecialchars:function(){return s.htmlspecialchars},nl2br:function(){return a.nl2br},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},stripTags:function(){return c.stripTags}});var o=n(32574),r=n(53212),s=n(53326),a=n(45971),l=n(86518),c=n(91003)},45971:function(t,i,n){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}n.d(i,{nl2br:function(){return o}})},86518:function(t,i,n){"use strict";n.d(i,{safeHTML:function(){return s},sanitizeHTMLElement:function(){return l}});var o=n(2748),r=n(43555);function s(t,i){var n;(o.Dom.isElement(t)||o.Dom.isFragment(t))&&((null!=(n=i.removeEventAttributes)?n:i.removeOnError)?(a(t),(0,r.$$)("*",t).forEach(t=>a(t))):i.removeOnError&&(l(t,i),(0,r.$$)("[onerror]",t).forEach(t=>l(t,i))),i.safeJavaScriptLink&&(l(t,i),(0,r.$$)('a[href^="javascript"]',t).forEach(t=>l(t,i))),i.safeLinksTarget&&(0,r.$$)('a[target="_blank"]',t).forEach(t=>{let i=(t.getAttribute("rel")||"").split(/\s+/).filter(Boolean);i.includes("noopener")||i.push("noopener"),i.includes("noreferrer")||i.push("noreferrer"),(0,r.attr)(t,"rel",i.join(" "))}))}function a(t){if(!o.Dom.isElement(t))return!1;let i=!1,n=[];for(let i=0;i<t.attributes.length;i++)t.attributes[i].name.toLowerCase().startsWith("on")&&n.push(t.attributes[i].name);for(let o of n)t.removeAttribute(o),i=!0;return i}function l(t,{safeJavaScriptLink:i,removeOnError:n}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let s=!1;n&&t.hasAttribute("onerror")&&((0,r.attr)(t,"onerror",null),s=!0);let a=t.getAttribute("href");return i&&a&&0===a.trim().indexOf("javascript")&&((0,r.attr)(t,"href",location.protocol+"//"+a),s=!0),s}},91003:function(t,i,n){"use strict";n.d(i,{stripTags:function(){return function t(i,n=document,d=null){let h=n.createElement("div");return(0,r.isString)(i)?h.innerHTML=i:h.appendChild(i),(0,a.$$)("*",h).forEach(i=>{let r=i.parentNode;if(!r)return;if(d&&o.Dom.isTag(i,d)){let r=i.nodeName.toLowerCase(),s=o.Dom.isTag(i,u)?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${t(i.innerHTML,n,d)}%%%/jodit-${r}%%%`;o.Dom.before(i,n.createTextNode(s)),o.Dom.safeRemove(i);return}if(o.Dom.isTag(i,c))return void o.Dom.safeRemove(i);if(!o.Dom.isTag(i,l))return;let s=i.nextSibling;!(o.Dom.isText(s)&&/^\s/.test(s.nodeValue||""))&&s&&r.insertBefore(n.createTextNode(" "),s)}),(0,s.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,i,n,o)=>`<${i?"/":""}${o}>`)}}});var o=n(2748),r=n(70799),s=n(49055),a=n(43555);let l=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),c=new Set(["script","style"]),u=new Set(["br","hr","input"])},21537:function(t,i,n){"use strict";n.r(i),n.d(i,{$$:function(){return h.$$},CamelCaseToKebabCase:function(){return d.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return h.ConfigDeepFlatten},ConfigFlatten:function(){return h.ConfigFlatten},ConfigProto:function(){return h.ConfigProto},ConnectionError:function(){return h.ConnectionError},LimitedStack:function(){return h.LimitedStack},NUMBER_FIELDS_REG:function(){return c.NUMBER_FIELDS_REG},OptionsError:function(){return h.OptionsError},abort:function(){return h.abort},alignElement:function(){return h.alignElement},alreadyLoadedList:function(){return h.alreadyLoadedList},appendScriptAsync:function(){return h.appendScriptAsync},appendStyleAsync:function(){return h.appendStyleAsync},applyStyles:function(){return l.applyStyles},asArray:function(){return o.asArray},assert:function(){return h.assert},attr:function(){return h.attr},browser:function(){return h.browser},buildQuery:function(){return h.buildQuery},call:function(){return h.call},callPromise:function(){return h.callPromise},callThis:function(){return h.callThis},camelCase:function(){return d.camelCase},cleanFromWord:function(){return l.cleanFromWord},clearAlign:function(){return h.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},clearTimeout:function(){return r.clearTimeout},cns:function(){return h.cns},colorToHex:function(){return a.colorToHex},completeUrl:function(){return h.completeUrl},connection:function(){return h.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssPath:function(){return h.cssPath},ctrlKey:function(){return h.ctrlKey},dataBind:function(){return h.dataBind},defaultLanguage:function(){return h.defaultLanguage},error:function(){return h.error},fastClone:function(){return h.fastClone},fuzzySearchIndex:function(){return d.fuzzySearchIndex},get:function(){return h.get},getClassName:function(){return h.getClassName},getContentWidth:function(){return u.getContentWidth},getDataTransfer:function(){return h.getDataTransfer},getPropertyDescriptor:function(){return h.getPropertyDescriptor},getScrollParent:function(){return u.getScrollParent},getXPathByElement:function(){return h.getXPathByElement},hAlignElement:function(){return h.hAlignElement},hasBrowserColorPicker:function(){return s.hasBrowserColorPicker},hasContainer:function(){return s.hasContainer},htmlspecialchars:function(){return l.htmlspecialchars},humanSizeToBytes:function(){return h.humanSizeToBytes},i18n:function(){return d.i18n},inView:function(){return h.inView},innerWidth:function(){return u.innerWidth},isAbortError:function(){return s.isAbortError},isArray:function(){return s.isArray},isAtom:function(){return h.isAtom},isBoolean:function(){return s.isBoolean},isDestructable:function(){return s.isDestructable},isEqual:function(){return s.isEqual},isFastEqual:function(){return s.isFastEqual},isFunction:function(){return s.isFunction},isHTML:function(){return s.isHTML},isHtmlFromWord:function(){return s.isHtmlFromWord},isInitable:function(){return s.isInitable},isInt:function(){return s.isInt},isJoditObject:function(){return s.isJoditObject},isLicense:function(){return s.isLicense},isMarker:function(){return s.isMarker},isNativeFunction:function(){return s.isNativeFunction},isNumber:function(){return s.isNumber},isNumeric:function(){return s.isNumeric},isPlainObject:function(){return s.isPlainObject},isPromise:function(){return s.isPromise},isSet:function(){return s.isSet},isString:function(){return s.isString},isStringArray:function(){return s.isStringArray},isURL:function(){return s.isURL},isValidName:function(){return s.isValidName},isViewObject:function(){return s.isViewObject},isVoid:function(){return s.isVoid},isWindow:function(){return s.isWindow},kebabCase:function(){return d.kebabCase},keepNames:function(){return h.keepNames},keys:function(){return h.keys},loadImage:function(){return h.loadImage},loadNext:function(){return h.loadNext},loadNextStyle:function(){return h.loadNextStyle},markAsAtomic:function(){return h.markAsAtomic},markDeprecated:function(){return h.markDeprecated},markOwner:function(){return h.markOwner},memorizeExec:function(){return h.memorizeExec},nl2br:function(){return l.nl2br},normalizeColor:function(){return c.normalizeColor},normalizeCssNumericValue:function(){return c.normalizeCssNumericValue},normalizeCssValue:function(){return c.normalizeCssValue},normalizeKeyAliases:function(){return c.normalizeKeyAliases},normalizeLicense:function(){return c.normalizeLicense},normalizePath:function(){return c.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return c.normalizeUrl},offset:function(){return u.offset},options:function(){return h.options},parseQuery:function(){return h.parseQuery},position:function(){return u.position},previewBox:function(){return h.previewBox},refs:function(){return h.refs},reset:function(){return h.reset},resolveElement:function(){return h.resolveElement},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return h.scrollIntoViewIfNeeded},set:function(){return h.set},setTimeout:function(){return r.setTimeout},size:function(){return u.size},splitArray:function(){return o.splitArray},sprintf:function(){return d.sprintf},stringify:function(){return d.stringify},stripTags:function(){return l.stripTags},toArray:function(){return o.toArray},trim:function(){return d.trim},trimChars:function(){return d.trimChars},trimInv:function(){return d.trimInv},ucfirst:function(){return d.ucfirst}});var o=n(76855),r=n(91898),s=n(27613),a=n(58149),l=n(75275),c=n(71521),u=n(56175),d=n(59007),h=n(43555)},71521:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return r.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return r.normalizeCssNumericValue},normalizeCssValue:function(){return r.normalizeCssValue},normalizeKeyAliases:function(){return s.normalizeKeyAliases},normalizeLicense:function(){return a.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return u.normalizeSize},normalizeUrl:function(){return d.normalizeUrl}});var o=n(21224),r=n(3760),s=n(49033),a=n(12972),l=n(9992),c=n(70091),u=n(46334),d=n(37406)},21224:function(t,i,n){"use strict";n.d(i,{normalizeColor:function(){return s}});var o=n(35278),r=n(49055);let s=t=>{let i=["#"],n=(0,o.colorToHex)(t);if(!n)return!1;if(3===(n=(n=(0,r.trim)(n.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)i.push(n[t]),i.push(n[t]);return i.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n}},3760:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return l},normalizeCssNumericValue:function(){return c},normalizeCssValue:function(){return u}});var o=n(29807),r=n(86068),s=n(35278),a=n(12475);let l=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function c(t,i){return!(0,r.isVoid)(i)&&l.test(t)&&(0,o.isNumeric)(i.toString())?parseInt(i.toString(),10)+"px":i}function u(t,i){if("font-weight"===(0,a.kebabCase)(t)){switch(i.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.isNumeric)(i)?Number(i):i}return/color/i.test(t)&&/^rgb/i.test(i.toString())&&(0,s.colorToHex)(i.toString())||i}},49033:function(t,i,n){"use strict";n.d(i,{normalizeKeyAliases:function(){return s}});var o=n(82758),r=n(49055);function s(t){let i={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(t=>(0,r.trim)(t.toLowerCase())).map(t=>o.KEY_ALIASES[t]||t).sort((t,i)=>n[t]&&!n[i]?-1:!n[t]&&n[i]?1:n[t]&&n[i]?n[t]-n[i]:t>i?1:-1).filter(t=>!i[t]&&""!==t&&(i[t]=!0)).join("+")}},12972:function(t,i,n){"use strict";n.d(i,{normalizeLicense:function(){return o}});let o=(t,i=8)=>{let n=[];for(;t.length;)n.push(t.substr(0,i)),t=t.substr(i);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}},9992:function(t,i,n){"use strict";n.d(i,{normalizePath:function(){return r}});var o=n(49055);let r=(...t)=>t.filter(t=>(0,o.trim)(t).length).map((i,n)=>(i=i.replace(/([^:])[\\/]+/g,"$1/"),n&&(i=i.replace(/^\//,"")),n!==t.length-1&&(i=i.replace(/\/$/,"")),i)).join("/")},70091:function(t,i,n){"use strict";n.d(i,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,i)=>{switch(i){case"":case".":break;case"..":t.pop();break;default:t.push(i)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},46334:function(t,i,n){"use strict";n.d(i,{normalizeSize:function(){return o}});let o=(t,i)=>/^[0-9]+$/.test(t.toString())?t+i:t.toString()},37406:function(t,i,n){"use strict";n.d(i,{normalizeUrl:function(){return o}});let o=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},16442:function(t,i,n){"use strict";n.d(i,{getScrollParent:function(){return function t(i){if(!i)return null;let n=r.Dom.isHTMLElement(i),a=n&&(0,s.css)(i,"overflowY");return n&&"visible"!==a&&"hidden"!==a&&i.scrollHeight>=i.clientHeight?i:t(i.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=n(82758),r=n(2748),s=n(43555)},56175:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o.getContentWidth},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return c.position},size:function(){return a.size}});var o=n(44506),r=n(16442),s=n(81630),a=n(21496),l=n(81284),c=n(5700)},81630:function(t,i,n){"use strict";n.d(i,{innerWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.clientWidth-(parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"))}},21496:function(t,i,n){"use strict";n.d(i,{size:function(){return r}});var o=n(27613);function r(t){return(0,o.isString)(t)||(0,o.isArray)(t)?t.length:(0,o.isPlainObject)(t)?Object.keys(t).length:0}},81284:function(t,i,n){"use strict";n.d(i,{offset:function(){return o}});let o=(t,i,n,r=!1)=>{let s,a,l;try{s=t.getBoundingClientRect()}catch(t){s={top:0,bottom:0,left:0,right:0,width:0,height:0}}let c=n.body,u=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},d=n.defaultView||n.parentWindow,h=d.pageYOffset||u.scrollTop||c.scrollTop,p=d.pageXOffset||u.scrollLeft||c.scrollLeft,f=u.clientTop||c.clientTop||0,m=u.clientLeft||c.clientLeft||0,g=i.iframe;if(!r&&i&&i.options&&i.o.iframe&&g){let{top:t,left:n}=o(g,i,i.od,!0);a=s.top+t,l=s.left+n}else a=s.top+h-f,l=s.left+p-m;return{top:Math.round(a),left:Math.round(l),width:s.width,height:s.height}}},5700:function(t,i,n){"use strict";n.d(i,{position:function(){return function t(i,n,r=!1){var s,a;let l=i.getBoundingClientRect(),c=l.left,u=l.top;if((0,o.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(i)&&!r){let{left:i,top:o}=t(n.iframe,n,!0);c+=i,u+=o}return{left:Math.round(c),top:Math.round(u),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var o=n(19306)},87058:function(t,i,n){"use strict";n.d(i,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,i,n)=>n.toUpperCase())},67477:function(t,i,n){"use strict";n.d(i,{fuzzySearchIndex:function(){return r}});var o=n(82758);function r(t,i,n=0,s=1){let a=0,l=0,c=-1,u=0,d=0;for(l=n;a<t.length&&l<i.length;)t[a].toLowerCase()===i[l].toLowerCase()?(a++,u++,d=0,-1===c&&(c=l)):a>0&&(d>=s&&i[l]!==o.INVISIBLE_SPACE?(a=0,c=-1,u=0,d=0,l--):(d++,u++)),l++;return a===t.length?[c,u]:[-1,0]}},56967:function(t,i,n){"use strict";n.d(i,{i18n:function(){return u},sprintf:function(){return c}});var o=n(82758),r=n(70799),s=n(36409),a=n(43555),l=n(6441);let c=(t,i)=>{if(!i||!i.length)return t;let n=/%([sd])/g,o=n.exec(t),r=t,s=0;for(;o&&void 0!==i[s];)r=r.replace(o[0],i[s].toString()),s+=1,o=n.exec(t);return r};function u(t,i,n){if(!(0,r.isString)(t))throw(0,a.error)("i18n: Need string in first argument");if(!t.length)return t;let u=!!(null==n?void 0:n.debugLanguage),d={},h=t=>i&&i.length?c(t,i):t,p=(0,a.defaultLanguage)(l.Config.defaultOptions.language,l.Config.defaultOptions.language),f=(0,a.defaultLanguage)(null==n?void 0:n.language,p),m=i=>{if(!i)return;if((0,r.isString)(i[t]))return h(i[t]);let n=t.toLowerCase();if((0,r.isString)(i[n]))return h(i[n]);let o=(0,s.ucfirst)(t);if((0,r.isString)(i[o]))return h(i[o])};void 0!==o.lang[f]?d=o.lang[f]:u||(d=void 0!==o.lang[p]?o.lang[p]:o.lang.en);let g=null==n?void 0:n.i18n;if(g&&g[f]){let t=m(g[f]);if(t)return t}return m(d)||(!u&&o.lang.en&&(0,r.isString)(o.lang.en[t])&&o.lang.en[t]?h(o.lang.en[t]):u?"{"+t+"}":(o.IS_PROD,h(t)))}},59007:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return a.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return r.fuzzySearchIndex},i18n:function(){return s.i18n},kebabCase:function(){return a.kebabCase},sprintf:function(){return s.sprintf},stringify:function(){return l.stringify},trim:function(){return c.trim},trimChars:function(){return c.trimChars},trimInv:function(){return c.trimInv},ucfirst:function(){return u.ucfirst}});var o=n(87058),r=n(67477),s=n(56967),a=n(12475),l=n(67462),c=n(49055),u=n(36409)},12475:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return r},kebabCase:function(){return o}});let o=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},67462:function(t,i,n){"use strict";function o(t,i={}){if("object"!=typeof t)return String(t);let n=new Set(i.excludeKeys),r=new WeakMap;return JSON.stringify(t,(t,i)=>{if(!n.has(t)){if("object"==typeof i&&null!=i){if(r.get(i))return"[refObject]";r.set(i,!0)}return i}},i.prettify)}n.d(i,{stringify:function(){return o}})},49055:function(t,i,n){"use strict";n.d(i,{trim:function(){return r},trimChars:function(){return s},trimInv:function(){return a}});var o=n(82758);function r(t){return t.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function s(t,i){return t.replace(RegExp(`[${i}]+$`),"").replace(RegExp(`^[${i}]+`),"")}function a(t){return t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(t,i,n){"use strict";function o(t){return t.length?t[0].toUpperCase()+t.substring(1):""}n.d(i,{ucfirst:function(){return o}})},25726:function(t,i,n){"use strict";n.d(i,{alignElement:function(){return l},clearAlign:function(){return a},hAlignElement:function(){return s}});var o=n(22732),r=n(41180);function s(t,i){i&&"normal"!==i?"center"!==i?((0,r.css)(t,"float",i),(0,r.clearCenterAlign)(t)):(0,r.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(t,"float")&&-1!==["right","left"].indexOf((0,r.css)(t,"float").toString().toLowerCase())&&(0,r.css)(t,"float",""),(0,r.clearCenterAlign)(t))}function a(t){o.Dom.each(t,t=>{o.Dom.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))})}function l(t,i){if(o.Dom.isNode(i)&&o.Dom.isElement(i))switch(a(i),t.toLowerCase()){case"justifyfull":i.style.textAlign="justify";break;case"justifyright":i.style.textAlign="right";break;case"justifyleft":i.style.textAlign="left";break;case"justifycenter":i.style.textAlign="center"}}},63799:function(t,i,n){"use strict";n.d(i,{alreadyLoadedList:function(){return s},appendScriptAsync:function(){return l},appendStyleAsync:function(){return c},loadNext:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?l(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}},loadNextStyle:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?c(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}}});var o=n(70799),r=n(66292);let s=new Map,a=t=>(i,n)=>{if(s.has(n))return s.get(n);let o=t(i,n);return s.set(n,o),o},l=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,r.completeUrl)(i)});t.e.one(s,"error",o).one(s,"load",n),t.od.body.appendChild(s)})),c=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("link");s.rel="stylesheet",s.media="all",s.crossOrigin="anonymous",t.isInDestruct||t.e.on(s,"load",()=>n(s)).on(s,"error",o),s.href=(0,r.completeUrl)(i),t.o.shadowRoot?t.o.shadowRoot.appendChild(s):t.od.body.appendChild(s)}))},38837:function(t,i,n){"use strict";n.d(i,{assert:function(){return r}});class o extends Error{constructor(t){super(t),this.name="AssertionError"}}function r(t,i){if(!t)throw new o(`Assertion failed: ${i}`)}},29960:function(t,i,n){"use strict";n.d(i,{attr:function(){return function t(i,n,c){if(!i||!(0,o.isFunction)(i.getAttribute))return null;if(!(0,s.isString)(n))return Object.keys(n).forEach(o=>{let s=n[o];(0,r.isPlainObject)(s)&&"style"===o?(0,l.css)(i,s):("className"===o&&(o="class"),t(i,o,s))}),null;let u=(0,a.CamelCaseToKebabCase)(n);if(/^-/.test(u)){let n=t(i,`data${u}`);if(n)return n;u=u.substr(1)}if(void 0!==c)if(null==c)i.hasAttribute(u)&&i.removeAttribute(u);else{let t=c.toString();return"IMG"===i.nodeName&&("width"===u||"height"===u)&&(t=t.replace("px","")),i.setAttribute(u,t),t}return i.getAttribute(u)}}});var o=n(23282),r=n(72430),s=n(70799),a=n(12475),l=n(41180)},97639:function(t,i,n){"use strict";n.d(i,{browser:function(){return o}});let o=t=>{let i=navigator.userAgent.toLowerCase(),n=/(firefox)[\s/]([\w.]+)/.exec(i)||/(chrome)[\s/]([\w.]+)/.exec(i)||/(webkit)[\s/]([\w.]+)/.exec(i)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(i)||/(msie)[\s]([\w.]+)/.exec(i)||/(trident)\/([\w.]+)/.exec(i)||0>i.indexOf("compatible")||[];return"version"===t?n[2]:"webkit"===t?"chrome"===n[1]||"webkit"===n[1]:"ff"===t?"firefox"===n[1]:"msie"===t?"trident"===n[1]||"msie"===n[1]:n[1]===t}},44710:function(t,i,n){"use strict";n.d(i,{buildQuery:function(){return r}});var o=n(72430);let r=(t,i)=>{let n=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,c=t[a];n.push((0,o.isPlainObject)(c)?r(c,l):s(l)+"="+s(c))}return n.join("&")}},66292:function(t,i,n){"use strict";n.d(i,{completeUrl:function(){return r}});var o=n(82758);let r=t=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},68934:function(t,i,n){"use strict";n.d(i,{ConfigDeepFlatten:function(){return function t(i){return(0,u.keys)(i,!1).reduce((n,o)=>(n[o]=(0,r.isPlainObject)(i[o])?t(i[o]):i[o],n),{})}},ConfigFlatten:function(){return d},ConfigProto:function(){return function t(i,n,u=0){if(Object.getPrototypeOf(i)!==Object.prototype)return i;let d=l.Config.defaultOptions;if((0,s.isString)(i.preset)){if(void 0!==d.presets[i.preset]){let t=d.presets[i.preset];Object.keys(t).forEach(n=>{(0,a.isVoid)(i[n])&&(i[n]=t[n])})}delete i.preset}let h={};return Object.keys(i).forEach(s=>{let a=i[s],l=n?n[s]:null;if((0,r.isPlainObject)(a)&&(0,r.isPlainObject)(l)&&!(0,c.isAtom)(a)){h[s]=t(a,l,u+1);return}if(0!==u&&(0,o.isArray)(a)&&!(0,c.isAtom)(a)&&(0,o.isArray)(l)){h[s]=[...a,...l.slice(a.length)];return}h[s]=a}),Object.setPrototypeOf(h,n),h}}});var o=n(68345),r=n(72430),s=n(70799),a=n(86068),l=n(6441),c=n(97735),u=n(37790);function d(t){return(0,u.keys)(t,!1).reduce((i,n)=>(i[n]=t[n],i),{})}},55877:function(t,i,n){"use strict";n.d(i,{convertMediaUrlToVideoEmbed:function(){return a}});var o=n(82758),r=n(26049),s=n(82501);let a=(t,{width:i=400,height:n=345}={})=>{if(!(0,r.isURL)(t))return t;let a=o.globalDocument.createElement("a"),l=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;a.href=t,i||(i=400),n||(n=345);let c=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":return l.test(t)?t.replace(l,'<iframe width="'+i+'" height="'+n+'" src="'+c+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):t;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{let o=a.search?(0,s.parseQuery)(a.search):{v:a.pathname.substring(1)};return/^embed\/.*/.test(o.v)&&(o.v=o.v.substring(6)),o.v?'<iframe width="'+i+'" height="'+n+'" src="'+c+"//www.youtube.com/embed/"+o.v+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},41180:function(t,i,n){"use strict";n.d(i,{clearCenterAlign:function(){return u},css:function(){return c}});var o=n(87612),r=n(72430),s=n(3760),a=n(87058),l=n(12475);function c(t,i,n,u=!1){if((0,o.isBoolean)(n)&&(u=n,n=void 0),(0,r.isPlainObject)(i)||void 0!==n){let o=(t,i,n)=>{void 0!==(n=(0,s.normalizeCssNumericValue)(i,n))&&(null==n||c(t,i,!0)!==(0,s.normalizeCssValue)(i,n))&&(t.style[i]=n)};if((0,r.isPlainObject)(i)){let n=Object.keys(i);for(let r=0;r<n.length;r+=1)o(t,(0,a.camelCase)(n[r]),i[n[r]])}else o(t,(0,a.camelCase)(i),n);return""}let d=(0,l.kebabCase)(i),h=t.ownerDocument||document,p=!!h&&(h.defaultView||h.parentWindow),f=t.style[i],m="";return void 0!==f&&""!==f?m=f:p&&!u&&(m=p.getComputedStyle(t).getPropertyValue(d)),s.NUMBER_FIELDS_REG.test(i)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,s.normalizeCssValue)(i,m)}let u=t=>{"block"===c(t,"display")&&c(t,"display","");let{style:i}=t;"auto"===i.marginLeft&&"auto"===i.marginRight&&(i.marginLeft="",i.marginRight="")}},15456:function(t,i,n){"use strict";n.d(i,{ctrlKey:function(){return o}});let o=t=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1}},86583:function(t,i,n){"use strict";n.d(i,{dataBind:function(){return s}});var o=n(39955);let r=new WeakMap,s=(t,i,n)=>{let s=r.get(t);if(!s){s={},r.set(t,s);let i=null;(0,o.isViewObject)(t.j)&&(i=t.j.e),(0,o.isViewObject)(t)&&(i=t.e),i&&i.on("beforeDestruct",()=>{r.delete(t)})}return void 0===n?s[i]:(s[i]=n,n)}},96325:function(t,i,n){"use strict";n.d(i,{defaultLanguage:function(){return s}});var o=n(82758),r=n(70799);let s=(t,i="en")=>"auto"!==t&&(0,r.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):i},82760:function(t,i,n){"use strict";n.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var o=n(32880);function r(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function a(t){return new o.OptionsError(t)}},93661:function(t,i,n){"use strict";function o(t="Aborted"){return new DOMException(t,"AbortError")}n.d(i,{abort:function(){return o}})},86397:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},32880:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return o.abort}});var o=n(93661),r=n(86397),s=n(57865)},57865:function(t,i,n){"use strict";n.d(i,{OptionsError:function(){return o}});class o extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},89890:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return r.abort},connection:function(){return o.connection},error:function(){return o.error},options:function(){return o.options}});var o=n(82760),r=n(32880)},97735:function(t,i,n){"use strict";n.d(i,{fastClone:function(){return a},isAtom:function(){return r},markAsAtomic:function(){return s}});var o=n(67462);function r(t){return t&&t.isAtom}function s(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function a(t){return JSON.parse((0,o.stringify)(t))}},80568:function(t,i,n){"use strict";n.d(i,{getClassName:function(){return s},keepNames:function(){return r}});var o=n(23282);let r=new Map,s=t=>{var i;if((0,o.isFunction)(t.className))return t.className();let n=(null==(i=t.constructor)?void 0:i.originalConstructor)||t.constructor;if(r.has(n))return r.get(n);if(n.name)return n.name;let s=new RegExp(/^\s*function\s*(\S*)\s*\(/),a=n.toString().match(s);return a?a[1]:""}},94643:function(t,i,n){"use strict";n.d(i,{get:function(){return s}});var o=n(70799),r=n(86068);function s(t,i){if(!(0,o.isString)(t)||!t.length)return null;let n=t.split("."),s=i;try{for(let t of n){if((0,r.isVoid)(s[t]))return null;s=s[t]}}catch(t){return null}return(0,r.isVoid)(s)?null:s}},38420:function(t,i,n){"use strict";n.d(i,{humanSizeToBytes:function(){return o}});let o=t=>{if(/^[0-9.]+$/.test(t.toString()))return parseFloat(t);let i=t.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],o=parseFloat(t.substr(0,t.length-2));return -1!==n.indexOf(i)?o*Math.pow(1024,n.indexOf(i)+1):parseInt(t,10)}},43555:function(t,i,n){"use strict";n.d(i,{$$:function(){return E.$$},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return b.ConnectionError},LimitedStack:function(){return A.LimitedStack},OptionsError:function(){return b.OptionsError},abort:function(){return b.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return r.alreadyLoadedList},appendScriptAsync:function(){return r.appendScriptAsync},appendStyleAsync:function(){return r.appendStyleAsync},assert:function(){return s.assert},attr:function(){return a.attr},browser:function(){return l.browser},buildQuery:function(){return c.buildQuery},call:function(){return j.call},callPromise:function(){return j.callPromise},callThis:function(){return j.callThis},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},cns:function(){return C.cns},completeUrl:function(){return u.completeUrl},connection:function(){return b.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return p.css},cssPath:function(){return E.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},getClassName:function(){return w.getClassName},getDataTransfer:function(){return j.getDataTransfer},getPropertyDescriptor:function(){return j.getPropertyDescriptor},getXPathByElement:function(){return E.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return _.humanSizeToBytes},inView:function(){return I.inView},isAtom:function(){return v.isAtom},keepNames:function(){return w.keepNames},keys:function(){return j.keys},loadImage:function(){return j.loadImage},loadNext:function(){return r.loadNext},loadNextStyle:function(){return r.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return j.markOwner},memorizeExec:function(){return j.memorizeExec},options:function(){return b.options},parseQuery:function(){return k.parseQuery},previewBox:function(){return S.previewBox},refs:function(){return E.refs},reset:function(){return x.reset},resolveElement:function(){return E.resolveElement},scrollIntoViewIfNeeded:function(){return I.scrollIntoViewIfNeeded},set:function(){return T.set}});var o=n(25726),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),C=n(95942),k=n(82501),S=n(11628),x=n(58844),I=n(26395),E=n(76078),T=n(3703),A=n(50535),j=n(37790)},95942:function(t,i,n){"use strict";n.d(i,{cns:function(){return o},markDeprecated:function(){return r}});let o=console;function r(t,i=[""],n=null){return(...r)=>(o.warn(`Method "${i[0]}" deprecated.`+(i[1]?` Use "${i[1]}" instead`:"")),t.call(n,...r))}},82501:function(t,i,n){"use strict";n.d(i,{parseQuery:function(){return o}});let o=t=>{let i={},n=t.substring(1).split("&");for(let t=0;t<n.length;t+=1){let o=n[t].split("=");i[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return i}},11628:function(t,i,n){"use strict";n.d(i,{previewBox:function(){return c}});var o=n(2748),r=n(70799),s=n(29960),a=n(41180),l=n(76078);function c(t,i,n="px",u=null){let d=[],h=function(t,i){let n=[];try{(0,l.$$)("img",t.editor).forEach(r=>{let a=[(0,s.attr)(r,"width"),(0,s.attr)(r,"height"),r.src];(0,s.attr)(r,{width:r.offsetWidth+i,height:r.offsetHeight+i});let l=t.createInside.a();t.ed.body.appendChild(l),l.href=r.src,r.src=l.href,o.Dom.safeRemove(l),n.push(()=>{var t;r.src=null!=(t=a[2])?t:"",(0,s.attr)(r,{width:a[0]||null,height:a[1]||null})})})}catch(t){throw n.forEach(t=>t()),n.length=0,t}return n}(t,n);try{let l=t.e.fire("beforePreviewBox",i,n);if(null!=l)return l;let c=t.c.div("jodit__preview-box jodit-context");u&&u.appendChild(c),(0,a.css)(c,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let i=t.create.element("iframe");(0,a.css)(i,{minWidth:800,minHeight:600,border:0}),c.appendChild(i);let n=i.contentWindow;if(n&&(t.e.fire("generateDocumentStructure.iframe",n.document,t),c=n.document.body,"function"==typeof ResizeObserver)){let o=!1,r=n.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(r),i.style.height=`${r.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||s.observe(r)})},100)),a=()=>{o=!0,s.unobserve(r),s.disconnect(),t.e.off("beforeDestruct",a)};d.push(a),t.e.on("beforeDestruct",a)}}else(0,a.css)(c,{minWidth:1024,minHeight:600,border:0});let p=(i,n)=>{let a=(0,r.isString)(n)?t.c.div():n;(0,r.isString)(n)&&(a.innerHTML=n);for(let t=0;t<a.childNodes.length;t+=1){let n=a.childNodes[t];if(o.Dom.isElement(n)){let t=i.ownerDocument.createElement(n.nodeName);for(let i=0;i<n.attributes.length;i+=1)(0,s.attr)(t,n.attributes[i].nodeName,n.attributes[i].nodeValue);0===n.childNodes.length||o.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(t.textContent=n.textContent):n.innerHTML&&(t.innerHTML=n.innerHTML):p(t,n);try{i.appendChild(t)}catch(t){}}else try{i.appendChild(n.cloneNode(!0))}catch(t){}}};return p(c,h),t.e.fire("afterPreviewBox",c),[c,()=>{d.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},58844:function(t,i,n){"use strict";n.d(i,{reset:function(){return l}});var o=n(82758),r=n(23282),s=n(94643);let a={};function l(t){var i,n;if(!(t in a)){let n=o.globalDocument.createElement("iframe");try{if(n.src="about:blank",o.globalDocument.body.appendChild(n),!n.contentWindow)return null;let i=(0,s.get)(t,n.contentWindow),l=(0,s.get)(t.split(".").slice(0,-1).join("."),n.contentWindow);(0,r.isFunction)(i)&&(a[t]=i.bind(l))}catch(t){if(!o.IS_PROD)throw t}finally{null==(i=n.parentNode)||i.removeChild(n)}}return null!=(n=a[t])?n:null}},26395:function(t,i,n){"use strict";n.d(i,{inView:function(){return r},scrollIntoViewIfNeeded:function(){return s}});var o=n(2748);function r(t,i,n){let o=t.getBoundingClientRect(),r=t,s=o.top,a=o.height;for(;r&&r!==i&&r.parentNode;)if(!(s<=(o=(r=r.parentNode).getBoundingClientRect()).bottom)||s+a<=o.top)return!1;return s<=(n.documentElement&&n.documentElement.clientHeight||0)}function s(t,i,n){o.Dom.isHTMLElement(t)&&!r(t,i,n)&&(i.clientHeight!==i.scrollHeight&&(i.scrollTop=t.offsetTop),r(t,i,n)||t.scrollIntoView())}},76078:function(t,i,n){"use strict";n.d(i,{$$:function(){return h},cssPath:function(){return m},getXPathByElement:function(){return p},refs:function(){return f},resolveElement:function(){return g}});var o=n(82758),r=n(2748),s=n(4510),a=n(70799),l=n(87058),c=n(29960),u=n(89890);let d=1;function h(t,i){let n;if(!o.IS_ES_NEXT&&/:scope/.test(t)&&o.IS_IE&&!(i&&i.nodeType===Node.DOCUMENT_NODE)){let o=i.id,r=o||"_selector_id_"+String(Math.random()).slice(2)+ ++d;t=t.replace(/:scope/g,"#"+r),o||i.setAttribute("id",r),n=i.parentNode.querySelectorAll(t),o||i.removeAttribute("id")}else n=i.querySelectorAll(t);return[].slice.call(n)}let p=(t,i)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||i===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let n=[].filter.call(t.parentNode.childNodes,i=>i.nodeName===t.nodeName);return p(t.parentNode,i)+"/"+t.nodeName.toLowerCase()+(n.length>1?"["+((0,s.toArray)(n).indexOf(t)+1)+"]":"")},f=t=>("container"in t&&(t=t.container),h("[ref],[data-ref]",t).reduce((t,i)=>{let n=(0,c.attr)(i,"-ref");return n&&(0,a.isString)(n)&&(t[(0,l.camelCase)(n)]=i,t[n]=i),t},{})),m=t=>{if(!r.Dom.isElement(t))return null;let i=[],n=t;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let t=n.nodeName.toLowerCase();if(n.id){t+="#"+n.id,i.unshift(t);break}{let i=n,o=1;do(i=i.previousElementSibling)&&i.nodeName.toLowerCase()===t&&o++;while(i);t+=":nth-of-type("+o+")"}i.unshift(t),n=n.parentNode}return i.join(" > ")};function g(t,i){let n=t;if((0,a.isString)(t))try{n=i.querySelector(t)}catch(i){throw(0,u.error)('String "'+t+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!r.Dom.isElement(n)||!n.cloneNode)throw(0,u.error)('Element "'+t+'" should be string or HTMLElement instance');return n}},3703:function(t,i,n){"use strict";n.d(i,{set:function(){return l}});var o=n(68345),r=n(29807),s=n(72430),a=n(70799);function l(t,i,n){if(!(0,a.isString)(t)||!t.length)return;let l=t.split("."),c=n,u=l[0];for(let t=0;t<l.length-1;t+=1)u=l[t],(0,o.isArray)(c[u])||(0,s.isPlainObject)(c[u])||(c[u]=(0,r.isNumeric)(l[t+1])?[]:{}),c=c[u];c&&(c[l[l.length-1]]=i)}},50535:function(t,i,n){"use strict";n.d(i,{LimitedStack:function(){return o}});class o{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){this.limit=t,this.stack=[]}}},37790:function(t,i,n){"use strict";n.d(i,{call:function(){return l},callPromise:function(){return d},callThis:function(){return c},getDataTransfer:function(){return m},getPropertyDescriptor:function(){return g},keys:function(){return p},loadImage:function(){return h},markOwner:function(){return u},memorizeExec:function(){return f}});var o=n(14773),r=n(86068),s=n(29960),a=n(86583);function l(t,...i){return t(...i)}function c(t,i,...n){return t.apply(i,n)}function u(t,i){(0,s.attr)(i,"data-editor_id",t.id),i.component||Object.defineProperty(i,"jodit",{value:t})}function d(t,i){return(0,o.isPromise)(t)?t.then(t=>t,()=>null).finally(i):null==i?void 0:i()}let h=(t,i)=>i.async.promise((n,o)=>{let r=new Image,s=()=>{i.e.off(r),null==o||o()},a=()=>{i.e.off(r),n(r)};i.e.one(r,"load",a).one(r,"error",s).one(r,"abort",s),r.src=t,r.complete&&a()}),p=(t,i=!0)=>{if(i)return Object.keys(t);let n=[];for(let i in t)n.push(i);return n},f=(t,i,{control:n},o)=>{var s;let l=`button${n.command}`,c=null!=(s=n.args&&n.args[0])?s:(0,a.dataBind)(t,l);if((0,r.isVoid)(c))return!1;(0,a.dataBind)(t,l,c),o&&(c=o(c)),t.execCommand(n.command,!1,null!=c?c:void 0)},m=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch(t){return null}};function g(t,i){let n;do n=Object.getOwnPropertyDescriptor(t,i),t=Object.getPrototypeOf(t);while(!n&&t);return n}},31359:function(t,i,n){"use strict";n.d(i,{init:function(){return a}});var o=n(82758),r=n(60132),s=n(14041);function a(t,i,n,a,l,c,u){if((0,r.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(i,a),c.delete(i),a.hasStyle&&(0,s.loadStyle)(t,i).catch(t=>{o.IS_PROD}),a.styles&&(u(t,i,"style").innerHTML=a.styles)}},14041:function(t,i,n){"use strict";n.d(i,{loadExtras:function(){return d},loadStyle:function(){return c}});var o=n(82758),r=n(12475),s=n(63799),a=n(89672);let l=new Set;async function c(t,i){let n=u(t,i,!1);if(!l.has(n))return l.add(n),(0,s.appendStyleAsync)(t,n)}function u(t,i,n){i=(0,r.kebabCase)(i);let o=t.minified?".min":"";return t.basePath+"plugins/"+i+"/"+i+o+"."+(n?"js":"css")}function d(t,i,n,r){try{let o=n.filter(i=>!t.has((0,a.normalizeName)(i.name)));o.length&&o.map(t=>{let n=t.url||u(i,t.name,!0);return(0,s.appendScriptAsync)(i,n).then(r).catch(()=>null)})}catch(t){if(!o.IS_PROD)throw t}}},48591:function(t,i,n){"use strict";n.d(i,{makeInstance:function(){return s}});var o=n(82758),r=n(23282);function s(t,i){try{try{return(0,r.isFunction)(i)?new i(t):i}catch(n){if((0,r.isFunction)(i)&&!i.prototype)return i(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},89672:function(t,i,n){"use strict";n.d(i,{normalizeName:function(){return r}});var o=n(12475);function r(t){return(0,o.kebabCase)(t).toLowerCase()}},50911:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return o.Plugin}});var o=n(20356);n(41876)},41876:function(t,i,n){"use strict";n.d(i,{PluginSystem:function(){return f}});var o=n(82758),r=n(57012),s=n(46559),a=n(68345),l=n(60132),c=n(70799),u=n(31359),d=n(14041),h=n(48591),p=n(89672);class f{get size(){return this.__items.size}add(t,i){this.__items.set((0,p.normalizeName)(t),i),r.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,p.normalizeName)(t))}remove(t){this.__items.delete((0,p.normalizeName)(t))}__getFullPluginsList(t){let i=[];return this.__items.forEach((n,o)=>{(!t||t.has(o))&&i.push([o,n])}),i}__init(t){let{extraList:i,disableList:n,filter:r}={extraList:t.o.extraPlugins.map(t=>(0,c.isString)(t)?{name:t}:t),disableList:new Set((0,s.splitArray)(t.o.disablePlugins).map(p.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},f=new Map,m={},g=new Set;t.__plugins=m;let b=()=>{if(t.isInDestruct)return;let i=!1;this.__getFullPluginsList(r).forEach(([o,r])=>{if(n.has(o)||f.has(o))return;let s=null==r?void 0:r.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(t=>n.has(t)))return;if(!s.every(t=>f.has(t)))return void g.add(o)}i=!0;let l=(0,h.makeInstance)(t,r);if(!l){f.set(o,null),g.delete(o);return}(0,u.init)(t,o,r,l,f,g,this.opts.getContainer),m[o]=l}),i&&(t.e.fire("updatePlugins"),b())};i&&i.length&&(0,d.loadExtras)(this.__items,t,i,b),b(),t.e.on("beforeDestruct",()=>{Object.keys(m).forEach(i=>{let n=m[i];(0,l.isDestructable)(n)&&n.destruct(t),delete m[i]}),delete t.__plugins}),o.IS_PROD||g.size}wait(t){return new Promise(i=>{if(this.get(t))return i();let n=()=>{i(),r.eventEmitter.off(`plugin:${t}:ready`,n)};r.eventEmitter.on(`plugin:${t}:ready`,n)})}constructor(t){this.opts=t,this.__items=new Map}}},20356:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return l}});var o=n(91907),r=n(65478),s=n(19306),a=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class l extends o.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:t,buttons:i}=this;i&&(0,s.isJoditObject)(t)&&i.forEach(i=>{t.registerButton(i)})}__afterInit(){this.__inited=!0,this.setStatus(o.STATUSES.ready),this.afterInit(this.jodit)}init(t){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var t;if(this.isInDestruct)return;let{j:i}=this;if(i.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(o.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,s.isJoditObject)(i)&&(null==(t=this.buttons)||t.forEach(t=>{null==i||i.unregisterButton(t)})),this.beforeDestruct(this.j),super.destruct()}constructor(t){super(t),this.buttons=[],this.hasStyle=!1,this.__inited=!1,t.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}l.requires=[],a([r.autobind],l.prototype,"__afterPluginSystemInit",null),a([r.autobind],l.prototype,"__afterInit",null),a([r.autobind],l.prototype,"__beforeDestruct",null)},54079:function(t,i,n){"use strict";n.d(i,{Ajax:function(){return d}});var o=n(8884),r=n(82758),s=n(45219),a=n(21537),l=n(89890),c=n(6441);n(57459);var u=n(98582);class d{className(){return"Ajax"}__buildParams(t,i){return(0,a.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,a.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,i):(0,a.isString)(t)||t instanceof r.globalWindow.FormData||"object"==typeof t&&null!=t&&(0,a.isFunction)(t.append)?t:(0,a.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(t){}return this}send(){this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest();return this.__async.promise(async(o,r)=>{var s;let c=()=>{this.__isFulfilled=!0,r(l.connection("Connection error"))},d=()=>{this.__isFulfilled=!0,o(new u.Response(n,t.status,t.statusText,!t.responseType?t.responseText:t.response))};t.onload=d,t.onabort=()=>{this.__isFulfilled=!0,r(l.abort("Abort connection"))},t.onerror=c,t.ontimeout=c,i.responseType&&(t.responseType=i.responseType),t.onprogress=t=>{var i,n;let o=0;t.lengthComputable&&(o=t.loaded/t.total*100),null==(n=(i=this.options).onProgress)||n.call(i,o)},t.onreadystatechange=()=>{var n,o;null==(o=(n=this.options).onProgress)||o.call(n,10),t.readyState===XMLHttpRequest.DONE&&(i.successStatuses.includes(t.status)?d():t.statusText&&(this.__isFulfilled=!0,r(l.connection(t.statusText))))},t.withCredentials=null!=(s=i.withCredentials)&&s;let{url:h,data:p,method:f}=n;t.open(f,h,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:m}=i;(0,a.isFunction)(m)&&(m=await m.call(this)),m&&t.setRequestHeader&&Object.keys(m).forEach(i=>{t.setRequestHeader(i,m[i])}),this.__async.setTimeout(()=>{t.send(p?this.__buildParams(p):void 0)},0)})}prepareRequest(){if(!this.o.url)throw l.error("Need URL for AJAX request");let t=this.o.url,i=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&i&&(0,a.isPlainObject)(i)){let n=t.indexOf("?");if(-1!==n){let o=(0,a.parseQuery)(t);t=t.substring(0,n)+"?"+(0,a.buildQuery)({...o,...i})}else t+="?"+(0,a.buildQuery)(this.o.data)}let o={url:t,method:n,data:i};return d.log.splice(100),d.log.push(o),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(t,i=c.Config.prototype.defaultAjaxOptions){this.__async=new o.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,a.ConfigProto)(t||{},i),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}d.log=[],function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([s.autobind],d.prototype,"destruct",null)},57459:function(t,i,n){"use strict";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(t,i,n){"use strict";n.d(i,{Ajax:function(){return o.Ajax},Response:function(){return r.Response}});var o=n(54079),r=n(98582)},98582:function(t,i,n){"use strict";n.d(i,{Response:function(){return o}});class o{get url(){return this.request.url}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}constructor(t,i,n,o){this.request=t,this.status=i,this.statusText=n,this.body=o}}},45124:function(t,i,n){"use strict";n.d(i,{cursorInTheEdgeOfString:function(){return a},findCorrectCurrentNode:function(){return l},moveNodeInsideStart:function(){return s.moveNodeInsideStart}});var o=n(82758),r=n(2748),s=n(26716);function a(t,i,n,r){var s;let a=(null==(s=t.nodeValue)?void 0:s.length)?t.nodeValue:"";if(r&&a.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>i)return!0;let l=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(a);return n&&(l&&l[0].length<i||!l&&i>0)}function l(t,i,n,o,s,a){if((t=i.startContainer.childNodes[i.startOffset])||(t=i.startContainer.childNodes[i.startOffset-1],n=!0),t&&o&&!r.Dom.isText(t)){if(!n&&r.Dom.isText(t.previousSibling))t=t.previousSibling;else if(s){let i=a(t);for(;i;){if(i&&r.Dom.isText(i)){t=i;break}i=a(i)}}}if(t&&!o&&!r.Dom.isText(t)){let i=t,n=t;do i=i.firstChild,n=n.lastChild;while(i&&n&&!r.Dom.isText(i));i===n&&i&&r.Dom.isText(i)&&(t=i)}return{node:t,rightMode:n}}n(43463)},26716:function(t,i,n){"use strict";n.d(i,{moveNodeInsideStart:function(){return s}});var o=n(82758),r=n(2748);function s(t,i,n){let s=r.Dom.findSibling(i,n),a=r.Dom.findSibling(i,!n);for(;r.Dom.isElement(s)&&!r.Dom.isTag(s,o.INSEPARABLE_TAGS)&&r.Dom.isContentEditable(s,t.editor)&&(!a||!r.Dom.closest(i,r.Dom.isElement,t.editor));)n||!s.firstChild?s.appendChild(i):r.Dom.before(s.firstChild,i),s=r.Dom.sibling(i,n),a=r.Dom.sibling(i,!n)}},43463:function(t,i,n){"use strict";n.d(i,{moveTheNodeAlongTheEdgeOutward:function(){return r}});var o=n(2748);function r(t,i,n){let r=t;for(;r&&r!==n&&!(o.Dom.findSibling(r,i)||o.Dom.isBlock(r.parentElement));)(r=r.parentElement)&&r!==n&&(i?o.Dom.before(r,t):o.Dom.after(r,t))}},59242:function(t,i,n){"use strict";n.d(i,{CHANGE:function(){return s.CHANGE},CommitStyle:function(){return r.CommitStyle},REPLACE:function(){return s.REPLACE},Selection:function(){return o.Selection},UNWRAP:function(){return s.UNWRAP},WRAP:function(){return s.WRAP}});var o=n(79348),r=n(25639),s=n(77361)},79348:function(t,i,n){"use strict";n.d(i,{Selection:function(){return f}});var o=n(82758),r=n(65478),s=n(2748),a=n(21537),l=n(27613),c=n(38837),u=n(43463),d=n(25639),h=n(45124),p=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class f{get j(){return this.jodit}errorNode(t){if(!s.Dom.isNode(t))throw(0,a.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,l.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:t}=this,i=(null==t?void 0:t.rangeCount)?t.getRangeAt(0):null;return!(!i||!s.Dom.isOrContains(this.area,i.startContainer))}createRange(t=!1){let i=this.doc.createRange();return t&&this.selectRange(i),i}remove(){let t=this.sel,i=this.current();if(t&&i)for(let i=0;i<t.rangeCount;i+=1)t.getRangeAt(i).deleteContents(),t.getRangeAt(i).collapse(!0)}clear(){var t,i;(null==(t=this.sel)?void 0:t.rangeCount)&&(null==(i=this.sel)||i.removeAllRanges())}removeNode(t){if(!s.Dom.isOrContains(this.j.editor,t,!0))throw(0,a.error)("Selection.removeNode can remove only editor's children");s.Dom.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,i){this.removeMarkers();try{let n=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let o=this.doc.caretPositionFromPoint(t,i);if(o)return n.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){let o=this.doc.caretRangeFromPoint(t,i);(0,c.assert)(o,"Incorrect caretRangeFromPoint behaviour"),n.setStart(o.startContainer,o.startOffset)}})(),n.collapse(!0),this.selectRange(n),!0}catch(t){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,a.$$)("span[data-"+o.MARKER_CLASS+"]",this.area)}removeMarkers(){s.Dom.safeRemove.apply(null,this.markers)}marker(t=!1,i){let n=null;i&&(n=i.cloneRange()).collapse(t);let r=this.j.createInside.span();return r.id=o.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),r.style.lineHeight="0",r.style.display="none",s.Dom.markTemporary(r),(0,a.attr)(r,"data-"+o.MARKER_CLASS,t?"start":"end"),r.appendChild(this.j.createInside.text(o.INVISIBLE_SPACE)),n&&s.Dom.isOrContains(this.area,t?n.startContainer:n.endContainer)&&n.insertNode(r),r}restore(){let t=!1,i=t=>`span[data-${o.MARKER_CLASS}=${t?"start":"end"}]`,n=this.area.querySelector(i(!0)),r=this.area.querySelector(i(!1));if(n){if(t=this.createRange(),r)t.setStartAfter(n),s.Dom.safeRemove(n),t.setEndBefore(r),s.Dom.safeRemove(r);else{let i=n.previousSibling;s.Dom.isText(i)?t.setStart(i,i.nodeValue?i.nodeValue.length:0):t.setStartBefore(n),s.Dom.safeRemove(n),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){let t=this.sel;if(!t||!t.rangeCount)return[];let i=t.getRangeAt(0);(0,c.assert)(i,"Range is null");let n=i.cloneRange();n.collapse(!0);let o=this.j.createInside.fake();s.Dom.safeInsertNode(n,o),i.setStartBefore(o);let r=[o];if(!i.collapsed){let t=i.cloneRange();t.collapse(!1);let n=this.j.createInside.fake();s.Dom.safeInsertNode(t,n),i.setEndAfter(n),r.push(n)}return this.selectRange(i),r}restoreFakes(t){var i,n,o,r;let a=t.filter(t=>t.isConnected);if(!a.length)return;let[l,c]=a,u=this.createRange();u.setStartAfter(l),c&&u.setEndBefore(c),this.selectRange(u),(null==(i=l.parentNode)?void 0:i.firstChild)!==(null==(n=l.parentNode)?void 0:n.lastChild)&&s.Dom.safeRemove(l),(null==(o=null==c?void 0:c.parentNode)?void 0:o.firstChild)!==(null==(r=null==c?void 0:c.parentNode)?void 0:r.lastChild)&&s.Dom.safeRemove(c)}save(t=!1){if(this.hasMarkers)return[];let i=this.sel;if(!i||!i.rangeCount)return[];let n=[],o=i.rangeCount,r=[];for(let t=0;o>t;t+=1)if(r[t]=i.getRangeAt(t),r[t].collapsed){let i=this.marker(!0,r[t]);n[t]={startId:i.id,collapsed:!0,startMarker:i.outerHTML}}else{let i=this.marker(!0,r[t]),o=this.marker(!1,r[t]);n[t]={startId:i.id,endId:o.id,collapsed:!1,startMarker:i.outerHTML,endMarker:o.outerHTML}}if(!t){i.removeAllRanges();for(let t=o-1;t>=0;--t){let o=this.doc.getElementById(n[t].startId);if(o){if(n[t].collapsed)r[t].setStartAfter(o),r[t].collapse(!0);else if(r[t].setStartBefore(o),n[t].endId){let i=this.doc.getElementById(n[t].endId);i&&r[t].setEndAfter(i)}try{i.addRange(r[t].cloneRange())}catch(t){}}}}return n}focus(t={preventScroll:!0}){var i,n;if(!this.isFocused()){let o=(0,a.getScrollParent)(this.j.container),r=null==o?void 0:o.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),r&&(null==o?void 0:o.scrollTo)&&o.scrollTo(0,r);let l=this.sel,c=(null==l?void 0:l.rangeCount)?null==l?void 0:l.getRangeAt(0):null;if(!c||!s.Dom.isOrContains(this.area,c.startContainer)){let t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||null==(n=null==(i=this.j)?void 0:i.events)||n.fire("focus"),!0}return!1}isCollapsed(){let t=this.sel;for(let i=0;t&&i<t.rangeCount;i+=1)if(!t.getRangeAt(i).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.j.getRealMode()!==o.MODE_WYSIWYG)return null;let i=this.sel;if(!i||0===i.rangeCount)return null;let n=i.getRangeAt(0),r=n.startContainer,a=!1;if(s.Dom.isTag(r,"br")&&i.isCollapsed)return r;if(!s.Dom.isText(r)){let o=(0,h.findCorrectCurrentNode)(r,n,a,i.isCollapsed,t,t=>a?t.lastChild:t.firstChild);r=o.node,a=o.rightMode}return r&&s.Dom.isOrContains(this.area,r)?r:null}insertNode(t,i=!0,n=!0){this.errorNode(t);let o=s.Dom.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let r=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),r&&r.rangeCount){let i=r.getRangeAt(0),{firstChild:n}=t;s.Dom.isOrContains(this.area,i.commonAncestorContainer)?s.Dom.safeInsertNode(i,t):this.area.appendChild(t),[()=>null==n?void 0:n.previousSibling,()=>null==n?void 0:n.previousSibling,()=>{var t;return null==(t=null==n?void 0:n.previousSibling)?void 0:t.lastChild}].forEach(t=>{let i=t();i&&s.Dom.isEmptyTextNode(i)&&s.Dom.safeRemove(i)})}else this.area.appendChild(t);let n=t=>{if(s.Dom.isBlock(t)){let i=t.lastChild;if(i)return n(i)}this.setCursorAfter(t)};i&&(s.Dom.isFragment(t)?o&&n(o):n(t)),this.j.o.scrollToPastedContent&&(0,a.scrollIntoViewIfNeeded)(null!=o?o:t,this.j.editor,this.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",s.Dom.isFragment(t)?o:t)}insertHTML(t,i=!0){if(""===t)return;let n=this.j.createInside.div(),o=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),s.Dom.isNode(t)?n.appendChild(t):n.innerHTML=t.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",n.innerHTML))&&n.lastChild){for(;n.firstChild;)n.firstChild,o.appendChild(n.firstChild);this.insertNode(o,i,!1),this.j.__imdSynchronizeValues()}}insertImage(t,i=null,n=null){let o=(0,l.isString)(t)?this.j.createInside.element("img"):t;if((0,l.isString)(t)&&o.setAttribute("src",t),null!=n){let t=n.toString();t&&"auto"!==t&&0>String(t).indexOf("px")&&0>String(t).indexOf("%")&&(t+="px"),(0,a.attr)(o,"width",t)}i&&"object"==typeof i&&(0,a.css)(o,i);let r=()=>{(o.naturalHeight<o.offsetHeight||o.naturalWidth<o.offsetWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",r)};this.j.e.on(o,"load",r),o.complete&&r(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(t){var i;let n=this.sel;if(!n||!n.rangeCount)return;let r=n.getRangeAt(0),c=r.commonAncestorContainer;s.Dom.isHTMLElement(c)||(c=c.parentElement);let u=[],d=r.startOffset,h=c.childNodes.length,p=r.startContainer===this.area?c.childNodes[d<h?d:h-1]:r.startContainer,f=r.endContainer===this.area?c.childNodes[r.endOffset-1]:r.endContainer;s.Dom.isText(p)&&p===r.startContainer&&r.startOffset===(null==(i=p.nodeValue)?void 0:i.length)&&p.nextSibling&&(p=p.nextSibling),s.Dom.isText(f)&&f===r.endContainer&&0===r.endOffset&&f.previousSibling&&(f=f.previousSibling);let m=t=>{!t||t===c||s.Dom.isEmptyTextNode(t)||(0,l.isMarker)(t)||u.push(t)};m(p),p!==f&&s.Dom.isOrContains(c,p,!0)&&s.Dom.find(p,t=>(m(t),t===f||t&&t.contains&&t.contains(f)),c,!0,!1);let g=i=>{if(s.Dom.isOrContains(this.j.editor,i,!0)){if(i.nodeName.match(/^(UL|OL)$/))return(0,a.toArray)(i.childNodes).forEach(g);if(s.Dom.isTag(i,"li"))if(i.firstChild)i=i.firstChild;else{let t=this.j.createInside.text(o.INVISIBLE_SPACE);i.appendChild(t),i=t}t(i)}};0===u.length&&(s.Dom.isEmptyTextNode(p)&&u.push(p),p.firstChild&&u.push(p.firstChild)),u.forEach(g)}cursorInTheEdge(t,i,n=null){var o;let r=!t,l=null==(o=this.sel)?void 0:o.getRangeAt(0);if(null!=n||(n=this.current(!1)),!l||!n||!s.Dom.isOrContains(i,n,!0))return null;let c=t?l.startContainer:l.endContainer,u=t?l.startOffset:l.endOffset,d=t=>!!(t&&!s.Dom.isTag(t,"br")&&!s.Dom.isEmptyTextNode(t)&&!s.Dom.isTemporary(t)&&!(s.Dom.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t)));if(s.Dom.isText(c)){if((0,h.cursorInTheEdgeOfString)(c,u,t,r))return!1}else{let t=(0,a.toArray)(c.childNodes);if(r){if(t.slice(u).some(d))return!1}else if(t.slice(0,u).some(d))return!1}let p=n;for(;p&&p!==i;){let i=s.Dom.sibling(p,t);if(!i){p=p.parentNode;continue}if((p=i)&&d(p))return!1}return!0}cursorOnTheLeft(t,i){return this.cursorInTheEdge(!0,t,i)}cursorOnTheRight(t,i){return this.cursorInTheEdge(!1,t,i)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,i){var n,o;if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let r=this.createRange(),l=null;return s.Dom.isText(t)?i?r.setStart(t,0):r.setEnd(t,null!=(o=null==(n=t.nodeValue)?void 0:n.length)?o:0):(l=this.j.createInside.fake(),i?r.setStartBefore(t):r.setEndAfter(t),r.collapse(i),s.Dom.safeInsertNode(r,l),r.selectNode(l)),r.collapse(i),this.selectRange(r),l}setCursorIn(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange(),r=t,l=t;do{if(s.Dom.isText(r)||s.Dom.isTag(r,o.INSEPARABLE_TAGS))break;l=r,r=i?r.firstChild:r.lastChild}while(r);if(!r){let t=this.j.createInside.text(o.INVISIBLE_SPACE);s.Dom.isTag(l,o.INSEPARABLE_TAGS)?r=l:(l.appendChild(t),l=t)}let c=r||l;return s.Dom.isTag(c,o.INSEPARABLE_TAGS)?i||s.Dom.isTag(c,"br")?n.setStartBefore(c):n.setEndAfter(c):n.selectNodeContents(c),n.collapse(i),this.selectRange(n),l}selectRange(t,i=!0){let n=this.sel;return i&&!this.isFocused()&&this.focus(),n&&(n.removeAllRanges(),n.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange();return n[i?"selectNodeContents":"selectNode"](t),this.selectRange(n)}get html(){let t=this.sel;if(t&&t.rangeCount>0){let i=t.getRangeAt(0).cloneContents(),n=this.j.createInside.div();return n.appendChild(i),n.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){let i=this.jodit.createInside.element("font",o.INVISIBLE_SPACE);this.insertNode(i,!1,!1),t&&t[0]&&i.appendChild(t[0]),yield i,s.Dom.unwrap(i);return}for(let t of((0,a.$$)("*[style*=font-size]",this.area).forEach(t=>{(0,a.attr)(t,"data-font-size",t.style.fontSize.toString()),t.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,a.$$)("*[data-font-size]",this.area).forEach(t=>{let i=(0,a.attr)(t,"data-font-size");i&&(t.style.fontSize=i,(0,a.attr)(t,"data-font-size",null))}),(0,a.$$)('font[size="7"]',this.area))){let{firstChild:i,lastChild:n}=t;if(i&&i===n&&(0,l.isMarker)(i)){s.Dom.unwrap(t);continue}i&&(0,l.isMarker)(i)&&s.Dom.before(t,i),n&&(0,l.isMarker)(n)&&s.Dom.after(t,n),yield t,s.Dom.unwrap(t)}}wrapInTag(t){let i=[];for(let n of this.wrapInTagGen())try{if(n.firstChild&&n.firstChild===n.lastChild&&(0,l.isMarker)(n.firstChild))continue;(0,l.isFunction)(t)?t(n):i.push(s.Dom.replace(n,t,this.j.createInside))}finally{let t=n.parentNode;t&&(s.Dom.unwrap(n),s.Dom.isEmpty(t)&&s.Dom.unwrap(t))}return i}commitStyle(t){(0,c.assert)((0,a.size)(t)>0,"Need to pass at least one option"),new d.CommitStyle(t).apply(this.j)}splitSelection(t,i){if(!this.isCollapsed())return null;let n=this.createRange(),r=this.range;n.setStartBefore(t);let a=this.cursorOnTheRight(t,i),l=this.cursorOnTheLeft(t,i),u=this.j.createInside.element("br"),d=this.j.createInside.fake(),h=d.cloneNode();try{if(a||l){i?s.Dom.before(i,u):s.Dom.safeInsertNode(r,u);let t=(t,i)=>{let n=i(t);for(;n;){let t=i(n);if(n&&(s.Dom.isTag(n,"br")||s.Dom.isEmptyTextNode(n)))s.Dom.safeRemove(n);else break;n=t}};t(u,t=>t.nextSibling),t(u,t=>t.previousSibling),s.Dom.after(u,h),s.Dom.before(u,d),a?(n.setEndBefore(u),r.setEndBefore(u)):(n.setEndAfter(u),r.setEndAfter(u))}else n.setEnd(r.startContainer,r.startOffset);let p=n.extractContents(),f=t=>s.Dom.each(t,t=>s.Dom.isEmptyTextNode(t)&&s.Dom.safeRemove(t));(0,c.assert)(t.parentNode,"Splitting fails");try{if(f(p),f(t),t.parentNode.insertBefore(p,t),!i&&a&&(null==u?void 0:u.parentNode)){let t=this.createRange();t.setStartBefore(u),this.selectRange(t)}}catch(t){if(!o.IS_PROD)throw t}let m=t=>{var i,n,o;(null==(i=null==t?void 0:t.parentNode)?void 0:i.firstChild)===(null==(n=null==t?void 0:t.parentNode)?void 0:n.lastChild)&&(null==(o=null==t?void 0:t.parentNode)||o.appendChild(u.cloneNode()))};m(d),m(h)}finally{s.Dom.safeRemove(d),s.Dom.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:t}=this,i=t.cloneRange();if(!s.Dom.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;let n=i=>{let n=this.j.createInside.fake(),o=t.cloneRange();return o.collapse(i),s.Dom.safeInsertNode(o,n),(0,u.moveTheNodeAlongTheEdgeOutward)(n,i,this.j.editor),n},o=n(!0),r=n(!1);i.setStartAfter(o),i.setEndBefore(r);let l=s.Dom.findSibling(o,!1),c=s.Dom.findSibling(r,!0);if(l!==c){let t=s.Dom.isElement(l)&&s.Dom.isOrContains(l,r),n=!t&&s.Dom.isElement(c)&&s.Dom.isOrContains(c,o);if(t||n){let n=t?l:c,a=n;for(;s.Dom.isElement(n);)(n=t?n.firstElementChild:n.lastElementChild)&&(t?s.Dom.isOrContains(n,r):s.Dom.isOrContains(n,o))&&(a=n);t?i.setStart(a,0):i.setEnd(a,a.childNodes.length)}}if(this.selectRange(i),s.Dom.safeRemove(o,r),this.isCollapsed())throw(0,a.error)("Selection is collapsed");return this}constructor(t){this.jodit=t,t.e.on("removeMarkers",()=>{this.removeMarkers()})}}p([r.autobind],f.prototype,"createRange",null),p([r.autobind],f.prototype,"focus",null),p([r.autobind],f.prototype,"setCursorAfter",null),p([r.autobind],f.prototype,"setCursorBefore",null),p([r.autobind],f.prototype,"setCursorIn",null)},32526:function(t,i,n){"use strict";n.d(i,{extractSelectedPart:function(){return l}});var o=n(2748),r=n(78116),s=n(49055),a=n(37790);function l(t,i,n){let o=n.s.createRange(),s=(0,r.isMarker)(i.previousSibling)?i.previousSibling:i;o.setStartBefore(t),o.setEndBefore(s),c(t,o,!0);let a=(0,r.isMarker)(i.nextSibling)?i.nextSibling:i;o.setStartAfter(a),o.setEndAfter(t),c(t,o,!1)}function c(t,i,n){let r=i.extractContents();r.textContent&&(0,s.trim)(r.textContent).length||!r.firstChild||o.Dom.unwrap(r.firstChild),t.parentNode&&(0,a.call)(n?o.Dom.before:o.Dom.after,t,r)}},49996:function(t,i,n){"use strict";n.d(i,{FiniteStateMachine:function(){return a}});var o=n(82758),r=n(70799),s=n(38837);class a{setState(t){(0,s.assert)(!this.__previewsStates.has(t),"Circled states"),this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(t,i){let n=this.transitions[this.getState()][t];if(n){let t=n.call(this,i);return(0,s.assert)(t&&t!==i,"Action should return new value"),(0,s.assert)((0,r.isString)(t.next),"Value should contain the next state"),(0,s.assert)(t.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(t.next),o.IS_PROD||this.silent,t}throw Error(`invalid action: ${this.getState()}.${t.toString()}`)}constructor(t,i){this.transitions=i,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}}},23738:function(t,i,n){"use strict";n.d(i,{getSuitChild:function(){return a}});var o=n(2748),r=n(29136),s=n(97380);function a(t,i){let{firstChild:n}=i;for(;n&&!(0,r.isNormalNode)(n);)if(!(n=n.nextSibling))return null;return n&&!o.Dom.next(n,r.isNormalNode,i)&&(0,s.isSuitElement)(t,n,!1)?n:null}},44602:function(t,i,n){"use strict";n.d(i,{getSuitParent:function(){return function t(i,n,a){let{parentNode:l}=n;return l===a||!o.Dom.isHTMLElement(l)||o.Dom.next(n,r.isNormalNode,l)||o.Dom.prev(n,r.isNormalNode,l)?null:i.isElementCommit&&i.elementIsBlock&&!o.Dom.isBlock(l)?t(i,l,a):(0,s.isSuitElement)(i,l,!1)&&(!o.Dom.isBlock(l)||i.elementIsBlock)?l:i.isElementCommit&&!o.Dom.isBlock(l)?t(i,l,a):null}}});var o=n(2748),r=n(29136),s=n(97380)},22030:function(t,i,n){"use strict";n.d(i,{hasSameStyle:function(){return u},hasSameStyleKeys:function(){return d}});var o=n(82758),r=n(2748),s=n(86068),a=n(3760),l=n(38837),c=n(41180);function u(t,i){return!!(!r.Dom.isTag(t,"font")&&r.Dom.isHTMLElement(t)&&Object.keys(i).every(n=>{let o=(0,c.css)(t,n,!0);return""===o&&(""===i[n]||null==i[n])||!(0,s.isVoid)(o)&&""!==o&&!(0,s.isVoid)(i[n])&&(0,a.normalizeCssValue)(n,i[n]).toString().toLowerCase()===o.toString().toLowerCase()}))}if(o.globalDocument){let t=o.globalDocument.createElement("div");t.style.color="red",(0,l.assert)(u(t,{color:"red"}),"Style test"),(0,l.assert)(u(t,{fontSize:null}),"Style test"),(0,l.assert)(u(t,{fontSize:""}),"Style test")}function d(t,i){return!!(!r.Dom.isTag(t,"font")&&r.Dom.isHTMLElement(t)&&Object.keys(i).every(i=>""!==(0,c.css)(t,i,!0)))}if(o.globalDocument){let t=o.globalDocument.createElement("div");t.style.color="red",(0,l.assert)(d(t,{color:"red"}),"Style test"),(0,l.assert)(!d(t,{font:"Arial",color:"red"}),"Style test"),(0,l.assert)(!d(t,{border:"1px solid #ccc"}),"Style test")}},63687:function(t,i,n){"use strict";n.d(i,{FiniteStateMachine:function(){return r.FiniteStateMachine},extractSelectedPart:function(){return o.extractSelectedPart},getSuitChild:function(){return s.getSuitChild},getSuitParent:function(){return a.getSuitParent},isInsideInvisibleElement:function(){return l.isInsideInvisibleElement},suitableClosest:function(){return c.suitableClosest},toggleAttributes:function(){return d.toggleAttributes},toggleOrderedList:function(){return u.toggleOrderedList},unwrapChildren:function(){return h.unwrapChildren},wrap:function(){return p.wrap}});var o=n(32526),r=n(49996),s=n(23738),a=n(44602);n(22030);var l=n(64291);n(29136),n(94466);var c=n(97380),u=n(20199);n(82515);var d=n(44253),h=n(75882),p=n(19263);n(6980)},64291:function(t,i,n){"use strict";n.d(i,{isInsideInvisibleElement:function(){return r}});var o=n(2748);function r(t,i){return!!o.Dom.closest(t,["style","script"],i)}},29136:function(t,i,n){"use strict";n.d(i,{isNormalNode:function(){return s}});var o=n(2748),r=n(78116);function s(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,r.isMarker)(t))}},94466:function(t,i,n){"use strict";n.d(i,{elementsEqualAttributes:function(){return c},isSameAttributes:function(){return l}});var o=n(21496),r=n(43555),s=n(38837),a=n(22030);function l(t,i){return!((t.attributes.length||(0,o.size)(i))&&(0,o.size)(i))||((0,s.assert)(i,"Attrs must be a non-empty object"),Object.keys(i).every(n=>"class"===n||"className"===n?t.classList.contains(i[n]):"style"===n?(0,a.hasSameStyle)(t,i[n]):(0,r.attr)(t,n)===i[n]))}function c(t,i){return t.attributes.length===i.attributes.length&&Array.from(t.attributes).every(t=>i.hasAttribute(t.name)&&i.getAttribute(t.name)===t.value)}},97380:function(t,i,n){"use strict";n.d(i,{isSameStyleChild:function(){return c},isSuitElement:function(){return a},suitableClosest:function(){return l}});var o=n(2748),r=n(22030),s=n(29136);function a(t,i,n,l=!0){var c;if(!i||!(0,s.isNormalNode)(i))return!1;let{element:u,elementIsDefault:d,options:h}=t;if(o.Dom.isList(i)&&t.elementIsList)return!0;let p=o.Dom.isTag(i,u);return!!(p&&!(d&&n)||(null==(c=h.attributes)?void 0:c.style)&&(l?(0,r.hasSameStyle)(i,h.attributes.style):(0,r.hasSameStyleKeys)(i,h.attributes.style))&&!t.elementIsList)||!p&&!n&&d&&o.Dom.isInlineBlock(i)}function l(t,i,n){return o.Dom.closest(i,i=>a(t,i,!0,!1),n)}function c(t,i){var n,o;let{element:a,options:l}=t;if(!i||!(0,s.isNormalNode)(i))return!1;let c=i.nodeName.toLowerCase()===a,u=!!((null==(n=l.attributes)?void 0:n.style)&&(0,r.hasSameStyleKeys)(i,null==(o=l.attributes)?void 0:o.style));return c&&u}},20199:function(t,i,n){"use strict";n.d(i,{toggleOrderedList:function(){return u}});var o=n(2748),r=n(38837),s=n(32526),a=n(44253),l=n(77361),c=n(82515);function u(t,i,n,o){if(!i)return o;let r=i.parentElement;if(!r)return o;let s=n.e.fire(`${l._PREFIX}BeforeToggleList`,o,t,r);if(void 0!==s)return s;let u=n.e.fire.bind(n.e,`${l._PREFIX}AfterToggleList`);if(o!==l.UNWRAP){let s=(0,a.toggleAttributes)(t,i.parentElement,n,l.INITIAL,!0)===l.CHANGE;if(o===l.REPLACE||s||r.tagName.toLowerCase()!==t.element){let o=d(l.REPLACE,r,i,n,t),s=(0,c.wrapList)(t,o,n);return u(l.REPLACE,s,t),l.REPLACE}}let h=d(l.UNWRAP,r,i,n,t);return u(l.UNWRAP,h,t),l.UNWRAP}function d(t,i,n,a,c){let u=a.e.fire(`${l._PREFIX}BeforeUnwrapList`,t,i,c);return u?((0,r.assert)(o.Dom.isHTMLElement(u),`${l._PREFIX}BeforeUnwrapList hook must return HTMLElement`),u):((0,s.extractSelectedPart)(i,n,a),(0,r.assert)(o.Dom.isHTMLElement(n.parentElement),"Element should be inside the list"),o.Dom.unwrap(n.parentElement),o.Dom.replace(n,"br"!==a.o.enter.toLowerCase()?a.o.enter:a.createInside.fragment(),a.createInside))}},82515:function(t,i,n){"use strict";n.d(i,{wrapList:function(){return l}});var o=n(2748),r=n(94466),s=n(44253),a=n(77361);function l(t,i,n){let l=n.e.fire(`${a._PREFIX}BeforeWrapList`,a.REPLACE,i,t),c=null!=l?l:o.Dom.replace(i,"li",n.createInside),u=c.previousElementSibling,d=c.nextElementSibling,h=o.Dom.isTag(u,t.element)?u:null;return null!=h||(h=o.Dom.isTag(d,t.element)?d:null),o.Dom.isList(h)&&(0,r.isSameAttributes)(h,t.options.attributes)||(h=n.createInside.element(t.element),(0,s.toggleAttributes)(t,h,n,a.INITIAL),o.Dom.before(c,h)),u===h?o.Dom.append(h,c):o.Dom.prepend(h,c),o.Dom.isTag(h.nextElementSibling,t.element)&&(0,r.elementsEqualAttributes)(h,h.nextElementSibling)&&(o.Dom.append(h,Array.from(h.nextElementSibling.childNodes)),o.Dom.safeRemove(h.nextElementSibling)),n.e.fire(`${a._PREFIX}AfterWrapList`,a.WRAP,h,t),h}},44253:function(t,i,n){"use strict";n.d(i,{toggleAttributes:function(){return g}});var o=n(82758),r=n(2748),s=n(580),a=n(27613),l=n(3760),c=n(21496),u=n(12475),d=n(43555),h=n(41180),p=n(86583),f=n(77361);let m="toggleAttributes";function g(t,i,n,v,y=!1){if(!y&&t.isApplied(i,m))return v;y||t.setApplied(i,m);let{attributes:w}=t.options;return w&&(0,c.size)(w)>0&&Object.keys(w).forEach(m=>{var g,_,C;let k=w[m];switch(m){case"style":g=v,(0,d.assert)((0,a.isPlainObject)(k)&&(0,c.size)(k),"Style must be an object"),Object.keys(k).forEach(a=>{let c=i.style.getPropertyValue((0,u.kebabCase)(a)),d=k[a];if(""!==c||null!=d){let u,m;if((u=n.create.element(i.tagName.toLowerCase())).style.cssText=i.style.cssText,(function(t){var i;if(void 0!==(0,p.dataBind)(t,"shadowRoot"))return(0,p.dataBind)(t,"shadowRoot");let n=(0,s.getContainer)(t),r=o.globalDocument.createElement("iframe");(0,h.css)(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",n.appendChild(r);let a=null==(i=r.contentWindow)?void 0:i.document,l=a?a.body:t.od.body;return(0,p.dataBind)(t,"shadowRoot",l),l})(n).appendChild(u),m=(0,h.css)(u,a),r.Dom.safeRemove(u),m===(0,l.normalizeCssValue)(a,d)){if(!c)return;y||(0,h.css)(i,a,null),g=b(t,i,g=f.UNSET);return}g=f.CHANGE,y||((0,h.css)(i,a,d),g=b(t,i,g))}}),v=g;break;case"className":case"class":let S;_=v,(0,d.assert)((0,a.isString)(k),"Class name must be a string"),S=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),i.classList.contains(k.toString())?(_=f.UNSET,y||(i.classList.remove(k),0===i.classList.length&&((0,d.attr)(i,"class",null),S(_,i,"class",null)))):(_=f.CHANGE,y||(i.classList.add(k),S(_,i,"class",k))),v=_;break;default:let x;C=v,(0,d.assert)((0,a.isString)(k)||(0,a.isNumber)(k)||(0,a.isBoolean)(k)||null==k,"Attribute value must be a string or number or boolean or null"),x=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),(0,d.attr)(i,m)===k?(y||(0,d.attr)(i,m,null),C=f.UNSET,y||x(C,i,m,k)):(C=f.CHANGE,y||((0,d.attr)(i,m,k),x(C,i,m,k))),v=C}}),v}function b(t,i,n){return(0,d.attr)(i,"style")||((0,d.attr)(i,"style",null),i.tagName.toLowerCase()===t.defaultTag&&(r.Dom.unwrap(i),n=f.UNWRAP)),n}},75882:function(t,i,n){"use strict";n.d(i,{unwrapChildren:function(){return l}});var o=n(2748),r=n(43555),s=n(22030),a=n(97380);function l(t,i){var n;let l,c=[],u=[],d=null==(n=t.options.attributes)?void 0:n.style;if(i.firstChild){let n=o.Dom.eachGen(i),h=n.next();for(;!h.done;){let i=h.value;(0,a.isSuitElement)(t,i,!0)&&(!d||(0,s.hasSameStyleKeys)(i,d))?(void 0===l&&(l=!0),c.push(i)):d&&(0,a.isSameStyleChild)(t,i)?(void 0===l&&(l=!1),u.push(()=>{(0,r.css)(i,Object.keys(d).reduce((t,i)=>(t[i]=null,t),{})),(0,r.attr)(i,"style")||(0,r.attr)(i,"style",null),(0,r.attr)(i,"style")||i.nodeName.toLowerCase()!==t.element||c.push(i)})):o.Dom.isEmptyTextNode(i)||void 0!==l||(l=!1),h=n.next()}}return u.forEach(t=>t()),c.forEach(o.Dom.unwrap),!!l}},6980:function(t,i,n){"use strict";n.d(i,{wrapUnwrappedText:function(){return s}});var o=n(2748),r=n(78116);function s(t,i,n){let s=n.editor,a=n.createInside,l=(t,i="previousSibling")=>{let a=t,l=t;for(;l&&!(0,r.isMarker)(l)&&!o.Dom.isTag(l,n.o.enter)&&(a=l,l=l[i]?l[i]:l.parentNode&&!o.Dom.isBlock(l.parentNode)&&l.parentNode!==s?l.parentNode:null,!o.Dom.isBlock(l)););return a},c=l(i),u=l(i,"nextSibling"),d=n.s.createRange();d.setStartBefore(c),d.setEndAfter(u);let h=d.extractContents(),p=a.element(t.element);return p.appendChild(h),o.Dom.safeInsertNode(d,p),t.elementIsBlock&&o.Dom.isEmpty(p)&&!o.Dom.isTag(p.firstElementChild,"br")&&p.appendChild(a.element("br")),p}},19263:function(t,i,n){"use strict";n.d(i,{wrap:function(){return l}});var o=n(22732),r=n(29960),s=n(82515),a=n(6980);function l(t,i,n){var l,u,d;let h=(l=t,u=i,d=n,l.elementIsBlock?o.Dom.up(u,t=>o.Dom.isBlock(t)&&!o.Dom.isTag(t,c),d.editor)||(0,a.wrapUnwrappedText)(l,u,d):((0,r.attr)(u,"size",null),u));return t.elementIsList?(0,s.wrapList)(t,h,n):o.Dom.replace(h,t.element,n.createInside,!0)}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"])},83632:function(t,i,n){"use strict";n.d(i,{ApplyStyle:function(){return a}});var o=n(63687),r=n(77361),s=n(55307);function a(t,i){var n;let{s:a,editor:l}=t;null==(n=l.firstChild)||n.normalize();let c=a.fakes(),u=t.s.wrapInTagGen(c),d=u.next();if(d.done)return;let h={collapsed:a.isCollapsed(),mode:r.INITIAL,element:d.value,next:s.states.START,jodit:t,style:i};for(;d&&!d.done;){let t=new o.FiniteStateMachine(s.states.START,s.transactions);for(h.element=d.value;t.getState()!==s.states.END;)h=t.dispatch("exec",h);d=u.next()}a.restoreFakes(c)}},25639:function(t,i,n){"use strict";n.d(i,{CommitStyle:function(){return l}});var o=n(82758),r=n(87058),s=n(77361),a=n(83632);class l{isApplied(t,i){let n=this.__applyMap.get(t);return!!n&&n[i]}setApplied(t,i){var n;let o=null!=(n=this.__applyMap.get(t))?n:{};o[i]=!0,this.__applyMap.set(t,o)}get elementIsList(){return!!(this.options.element&&o.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&o.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:i}=this.options,n=i?Object.keys(i):[];try{n.forEach(n=>{t.e.on((0,r.camelCase)(s._PREFIX+"_"+n),i[n])}),(0,a.ApplyStyle)(t,this)}finally{n.forEach(n=>{t.e.off((0,r.camelCase)(s._PREFIX+"_"+n),i[n])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){this.options=t,this.__applyMap=new WeakMap}}},77361:function(t,i,n){"use strict";n.d(i,{CHANGE:function(){return s},INITIAL:function(){return l},REPLACE:function(){return c},UNSET:function(){return a},UNWRAP:function(){return r},WRAP:function(){return o},_PREFIX:function(){return u}});let o="wrap",r="unwrap",s="change",a="unset",l="initial",c="replace",u="commitStyle"},55307:function(t,i,n){"use strict";n.d(i,{states:function(){return c},transactions:function(){return u}});var o=n(82758),r=n(2748),s=n(38837),a=n(63687),l=n(77361);let c={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"},u={[c.START]:{exec(t){let{element:i,jodit:n,style:o,mode:s,collapsed:u}=t;if((0,a.isInsideInvisibleElement)(i,n.editor)||!u&&r.Dom.isEmptyContent(i))return{...t,next:c.END};let d=(0,a.getSuitParent)(o,i,n.editor)||(0,a.getSuitChild)(o,i);if(d)return{...t,next:c.ELEMENT,element:d};let h=(0,a.suitableClosest)(o,i,n.editor);return o.elementIsList&&r.Dom.isList(h)?{...t,next:c.LIST}:h?{...t,next:c.EXTRACT}:{...t,next:s!==l.UNWRAP?c.UNWRAP_CHILDREN:c.END}}},[c.LIST]:{exec(t){let{element:i,jodit:n,mode:s}=t;if(s!==l.INITIAL&&s!==l.UNWRAP&&s!==l.REPLACE)return{...t,next:c.END};let a=r.Dom.closest(i,"li",n.editor);return a&&r.Dom.closest(i,o.LIST_TAGS,n.editor)?{...t,element:a,next:c.TOGGLE_LIST}:{...t,next:c.END}}},[c.TOGGLE_LIST]:{exec(t){return{...t,mode:(0,a.toggleOrderedList)(t.style,t.element,t.jodit,t.mode),next:c.END}}},[c.EXTRACT]:{exec(t){var i;let{element:n,jodit:o,style:l}=t,u=(0,a.suitableClosest)(l,n,o.editor);return((0,s.assert)(u,"This place should have an element"),!l.elementIsBlock&&(null==(i=l.options.attributes)?void 0:i.style)&&r.Dom.isBlock(u))?{...t,next:c.WRAP}:(l.elementIsBlock||(0,a.extractSelectedPart)(u,n,o),{...t,element:u,next:c.ELEMENT})}},[c.UNWRAP_CHILDREN]:{exec(t){let{element:i,style:n}=t;return(0,a.unwrapChildren)(n,i)?{...t,mode:l.UNWRAP,next:c.END}:{...t,next:c.WRAP}}},[c.WRAP]:{exec(t){let{element:i,jodit:n,style:o}=t,r=(0,a.wrap)(o,i,n);return{...t,next:o.elementIsList?c.END:c.CHANGE,mode:l.WRAP,element:r}}},[c.ELEMENT]:{exec(t){let{style:i,element:n,jodit:o}=t;return(0,a.toggleAttributes)(i,n,o,l.INITIAL,!0)!==l.INITIAL?{...t,next:c.CHANGE}:r.Dom.isTag(n,i.element)?{...t,next:c.UNWRAP}:{...t,next:c.END}}},[c.CHANGE]:{exec(t){let{style:i,element:n,jodit:o,mode:s}=t,u=(0,a.toggleAttributes)(i,n,o,t.mode);return s!==l.WRAP&&u===l.UNSET&&!n.attributes.length&&r.Dom.isTag(n,i.element)?{...t,next:c.UNWRAP}:{...t,mode:u,next:c.END}}},[c.UNWRAP]:{exec(t){return t.element.attributes.length&&r.Dom.isTag(t.element,t.style.element)?{...t,next:c.REPLACE_DEFAULT}:(r.Dom.unwrap(t.element),{...t,mode:l.UNWRAP,next:c.END})}},[c.REPLACE_DEFAULT]:{exec(t){return r.Dom.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:l.REPLACE,next:c.END}}},[c.END]:{exec(t){return t}}}},97333:function(t,i,n){"use strict";n.d(i,{AsyncStorage:function(){return c}});var o=n(87058),r=n(2621),s=n(65638),a=n(21162),l=n(6700);class c{async set(t,i){let n=await this.provider;return await n.set((0,o.camelCase)(this.prefix+t),i),this}async delete(t){let i=await this.provider;return await i.delete((0,o.camelCase)(this.prefix+t)),this}async get(t){return(await this.provider).get((0,o.camelCase)(this.prefix+t))}async exists(t){return(await this.provider).exists((0,o.camelCase)(this.prefix+t))}async clear(){let t=await this.provider;return await t.clear(),this}async close(){let t=await this.provider;"close"in t&&"function"==typeof t.close&&await t.close()}static makeStorage(t=!1,i){let n;return"localStorage"===t||"sessionStorage"===t?(0,s.canUsePersistentStorage)(t)&&(n=new s.LocalStorageProvider(l.StorageKey+(i||""),t)):("indexedDB"===t||!0===t)&&(n=(0,r.canUseIndexedDB)().then(t=>t?new r.IndexedDBProvider(l.StorageKey+(i||""),"keyValueStore"):new a.MemoryStorageProvider)),n||(n=new a.MemoryStorageProvider),new c(Promise.resolve(n),i)}constructor(t,i){this.provider=t,this.prefix=l.StorageKey,i&&(this.prefix+=i)}}},2621:function(t,i,n){"use strict";n.d(i,{IndexedDBProvider:function(){return r},canUseIndexedDB:function(){return l},clearUseIndexedDBCache:function(){return a}});var o=n(82758);class r{getDB(){return this.dbPromise||(this.dbPromise=new Promise((t,i)=>{let n=indexedDB.open(this.dbName,this.DB_VERSION);n.onerror=()=>{i(n.error)},n.onsuccess=()=>{t(n.result)},n.onupgradeneeded=t=>{let i=t.target.result;i.objectStoreNames.contains(this.storeName)||i.createObjectStore(this.storeName)}})),this.dbPromise}async performTransaction(t,i){try{let n=(await this.getDB()).transaction([this.storeName],t).objectStore(this.storeName),o=i(n);return new Promise((t,i)=>{o.onsuccess=()=>{t(o.result)},o.onerror=()=>{i(o.error)}})}catch(t){return Promise.reject(t)}}async set(t,i){try{await this.performTransaction("readwrite",n=>n.put(i,t))}catch(t){o.IS_PROD}return this}async delete(t){try{await this.performTransaction("readwrite",i=>i.delete(t))}catch(t){}return this}async get(t){try{return await this.performTransaction("readonly",i=>i.get(t))}catch(t){return}}async exists(t){try{let i=await this.performTransaction("readonly",i=>i.get(t));return void 0!==i}catch(t){return!1}}async clear(){try{await this.performTransaction("readwrite",t=>t.clear())}catch(t){}return this}async close(){if(this.dbPromise){try{(await this.dbPromise).close()}catch(t){}this.dbPromise=null}}async keys(){try{let t=await this.performTransaction("readonly",t=>t.getAllKeys());return t&&"object"==typeof t&&"then"in t&&(t=await t),t.map(t=>String(t))}catch(t){return[]}}async values(){try{let t=await this.performTransaction("readonly",t=>t.getAll());return t&&"object"==typeof t&&"then"in t&&(t=await t),t}catch(t){return[]}}async entries(){try{let[t,i]=await Promise.all([this.keys(),this.values()]);return t.map((t,n)=>[t,i[n]])}catch(t){return[]}}constructor(t="JoditDB",i="keyValueStore"){this.dbName=t,this.dbPromise=null,this.DB_VERSION=1,this.storeName=i}}let s=null;function a(){s=null}async function l(){if(null!=s)return s;try{if("u"<typeof indexedDB)return s=!1,!1;let t="___Jodit___"+Math.random().toString(),i=indexedDB.open(t);return s=await new Promise(n=>{i.onerror=()=>{n(!1)},i.onsuccess=()=>{indexedDB.deleteDatabase(t),n(!0)}})}catch(t){return s=!1,!1}}},65638:function(t,i,n){"use strict";n.d(i,{LocalStorageProvider:function(){return r},canUsePersistentStorage:function(){return o}});let o=(t="localStorage")=>{let i=new Map;if(i.has(t))return i.get(t);let n="___Jodit___"+Math.random().toString(),o="sessionStorage"===t?sessionStorage:localStorage;try{o.setItem(n,"1");let r="1"===o.getItem(n);return o.removeItem(n),i.set(t,r),r}catch(t){}return i.set(t,!1),!1};class r{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(t,i){try{let n=this.storage.getItem(this.rootKey),o=n?JSON.parse(n):{};o[t]=i,this.storage.setItem(this.rootKey,JSON.stringify(o))}catch(t){}return this}delete(t){try{this.storage.removeItem(this.rootKey)}catch(t){}return this}get(t){try{let i=this.storage.getItem(this.rootKey),n=i?JSON.parse(i):{};return void 0!==n[t]?n[t]:void 0}catch(t){}}exists(t){return null!=this.get(t)}clear(){try{this.storage.removeItem(this.rootKey)}catch(t){}return this}constructor(t,i="localStorage"){this.rootKey=t,this.strategy=i}}},21162:function(t,i,n){"use strict";n.d(i,{MemoryStorageProvider:function(){return o}});class o{set(t,i){return this.data.set(t,i),this}delete(t){return this.data.delete(t),this}get(t){return this.data.get(t)}exists(t){return this.data.has(t)}clear(){return this.data.clear(),this}constructor(){this.data=new Map}}},12081:function(t,i,n){"use strict";n.d(i,{AsyncStorage:function(){return o.AsyncStorage},IndexedDBProvider:function(){return r.IndexedDBProvider},LocalStorageProvider:function(){return s.LocalStorageProvider},MemoryStorageProvider:function(){return a.MemoryStorageProvider},Storage:function(){return l.Storage},StorageKey:function(){return l.StorageKey},canUseIndexedDB:function(){return r.canUseIndexedDB},canUsePersistentStorage:function(){return s.canUsePersistentStorage},clearUseIndexedDBCache:function(){return r.clearUseIndexedDBCache}});var o=n(97333),r=n(2621),s=n(65638),a=n(21162),l=n(6700)},6700:function(t,i,n){"use strict";n.d(i,{Storage:function(){return l},StorageKey:function(){return a}});var o=n(87058),r=n(65638),s=n(21162);let a="Jodit_";class l{set(t,i){return this.provider.set((0,o.camelCase)(this.prefix+t),i),this}delete(t){return this.provider.delete((0,o.camelCase)(this.prefix+t)),this}get(t){return this.provider.get((0,o.camelCase)(this.prefix+t))}exists(t){return this.provider.exists((0,o.camelCase)(this.prefix+t))}clear(){return this.provider.clear(),this}static makeStorage(t=!1,i){let n;return"localStorage"===t||"sessionStorage"===t?(0,r.canUsePersistentStorage)(t)&&(n=new r.LocalStorageProvider(a+(i||""),t)):!0===t&&(0,r.canUsePersistentStorage)("localStorage")&&(n=new r.LocalStorageProvider(a+(i||""))),n||(n=new s.MemoryStorageProvider),new l(n,i)}constructor(t,i){this.provider=t,this.prefix=a,i&&(this.prefix+=i)}}},70231:function(t,i,n){"use strict";n.d(i,{Dlgs:function(){return l}});var o=n(580),r=n(27613),s=n(37790),a=n(638);class l{dlg(t){let i=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),n=new a.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:i,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,s.markOwner)(this,n.container),n.parent=this,n.bindDestruct(this)}confirm(t,i,n){return t=c(t,this),i=c(i,this),a.Confirm.call(this.dlg({closeOnClickOverlay:!0}),t,i,n)}prompt(t,i,n,o,r){return t=c(t,this),i=c(i,this),o=c(o,this),a.Prompt.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o,r)}alert(t,i,n,o){return t=c(t,this),i=c(i,this),a.Alert.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o)}}function c(t,i){return(0,r.isString)(t)&&!(0,r.isHTML)(t)&&(t=i.i18n(t)),t}},14316:function(t,i,n){"use strict";n.d(i,{Elms:function(){return r}});var o=n(4510);class r{getElm(t){return this.container.querySelector(`.${this.getFullElName(t)}`)}getElms(t){return(0,o.toArray)(this.container.querySelectorAll(`.${this.getFullElName(t)}`))}}},34176:function(t,i,n){"use strict";n.d(i,{Mods:function(){return r}});var o=n(86068);class r{afterSetMod(t,i){}setMod(t,i,n){t=t.toLowerCase();let r=this.mods[t];if(r===i)return this;let s=`${this.componentName}_${t}_`,a=(n||this.container).classList;return null!=r&&a.remove(`${s}${r.toString().toLowerCase()}`),(0,o.isVoid)(i)||""===i||a.add(`${s}${i.toString().toLowerCase()}`),this.mods[t]=i,this.afterSetMod(t,i),this}getMod(t){var i;return null!=(i=this.mods[t])?i:null}}},10830:function(t,i,n){"use strict";n.d(i,{Button:function(){return v},UIButton:function(){return b},UIButtonState:function(){return g}});var o=n(78213),r=n(33433),s=n(87325),a=n(37133),l=n(2748),c=n(23282),u=n(70799),d=n(38837),h=n(29960),p=n(48538),f=n(12153),m=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let g=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0}),b=class t extends p.UIElement{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){let t=this.getElm("text");return(0,d.assert)(t,"Text element not found"),t}get icon(){let t=this.getElm("icon");return(0,d.assert)(t,"Icon element not found"),t}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,h.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,h.attr)(this.container,"role",this.state.role)}updateSize(){let t=(0,s.getComponentClass)("UIList"),i=this.closest(t);if(i){this.state.size=i.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,h.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,h.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,h.attr)(this.container,"data-ref",this.state.name),(0,h.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,h.attr)(this.container,"title",t),(0,h.attr)(this.container,"aria-label",t),this.updateAriaLabel()}updateAriaLabel(){let t=this.state.text.trim().length>0,i=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,h.attr)(this.container,"aria-label",i),(0,h.attr)(this.button,"aria-label",t?null:i)}onChangeTabIndex(){(0,h.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let t=this.get("j.o.textIcons");if(!0===t||(0,c.isFunction)(t)&&t(this.state.name))return;l.Dom.detach(this.icon);let i=f.Icon.makeIcon(this.j,this.state.icon);i&&this.icon.appendChild(i)}focus(){this.container.focus()}isFocused(){let{activeElement:t}=this.od;return!!(t&&l.Dom.isOrContains(this.container,t))}createContainer(){let t=this.componentName,i=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),n=this.j.c.span(t+"__icon"),o=this.j.c.span(t+"__text");return i.appendChild(n),i.appendChild(o),i}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(t){return this.actionHandlers.push(t),this}__onActionFire(t){t.buffer={actionTrigger:this},this.actionHandlers.forEach(i=>i.call(this,t)),this.j.e.fire(this,"click",t)}constructor(t,i){super(t),this.isButton=!0,this.state=g(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),i&&this.hookStatus(o.STATUSES.ready,()=>{this.setState(i)})}};function v(t,i,n,o){let r=new b(t);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,u.isString)(i)?(r.state.icon.name=i,r.state.name=i,o&&(r.state.variant=o),n&&(r.state.text=n)):r.setState(i),r}m([r.cache],b.prototype,"text",null),m([r.cache],b.prototype,"icon",null),m([(0,a.watch)("state.size",{immediately:!1})],b.prototype,"onChangeSize",null),m([(0,a.watch)("state.type",{immediately:!1})],b.prototype,"onChangeType",null),m([(0,a.watch)("state.role",{immediately:!1})],b.prototype,"onChangeRole",null),m([(0,a.watch)("parentElement")],b.prototype,"updateSize",null),m([(0,a.watch)("state.variant",{immediately:!1})],b.prototype,"onChangeStatus",null),m([(0,a.watch)("state.text",{immediately:!1})],b.prototype,"onChangeText",null),m([(0,a.watch)("state.text",{immediately:!1})],b.prototype,"onChangeTextSetMode",null),m([(0,a.watch)("state.disabled")],b.prototype,"onChangeDisabled",null),m([(0,a.watch)("state.activated")],b.prototype,"onChangeActivated",null),m([(0,a.watch)("state.name",{immediately:!1})],b.prototype,"onChangeName",null),m([(0,a.watch)("state.tooltip",{immediately:!1})],b.prototype,"onChangeTooltip",null),m([(0,a.watch)("state.tabIndex",{immediately:!1})],b.prototype,"onChangeTabIndex",null),m([(0,a.watch)("state.icon",{immediately:!1})],b.prototype,"onChangeIcon",null),m([r.cacheHTML],b.prototype,"createContainer",null),m([(0,a.watch)("button:click")],b.prototype,"__onActionFire",null),b=m([s.component],b)},71916:function(t,i,n){"use strict";n.d(i,{UIButtonGroup:function(){return l}});var o=n(87325),r=n(38837),s=n(10830),a=n(62405);let l=class t extends a.UIGroup{className(){return"UIButtonGroup"}render(t){return`<div>
9
9
  <div class="&__label">~${t.label}~</div>
10
10
  <div class="&__options"></div>
11
11
  </div>`}appendChildToContainer(t){let i=this.getElm("options");(0,r.assert)(null!=i,"Options does not exist"),i.appendChild(t)}select(t){var i,n;this.elements.forEach((i,n)=>{n===t||i.state.value===t?i.state.activated=!0:this.options.radio&&(i.state.activated=!1)});let o=this.elements.filter(t=>t.state.activated).map(t=>({text:t.state.text,value:t.state.value}));this.jodit.e.fire(this,"select",o),null==(n=(i=this.options).onChange)||n.call(i,o)}constructor(t,i={radio:!0}){var n,o;super(t,null==(n=i.options)?void 0:n.map(i=>{let n=new s.UIButton(t,{text:i.text,value:i.value,variant:"primary"});return n.onAction(()=>{this.select(i.value)}),n}),i),this.options=i,this.select(null!=(o=i.value)?o:0)}};l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],l)},62843:function(t,i,n){"use strict";n.d(i,{Button:function(){return o.Button},UIButton:function(){return o.UIButton},UIButtonGroup:function(){return r.UIButtonGroup},UIButtonState:function(){return o.UIButtonState},UITooltip:function(){return s.UITooltip}});var o=n(10830),r=n(71916),s=n(57340)},57340:function(t,i,n){"use strict";n.d(i,{UITooltip:function(){return m}});var o,r=n(91907),s=n(65478),a=n(22732),l=n(580),c=n(5700),u=n(43555),d=n(48538),h=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let p=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],f=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"],m=o=class t extends d.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(t){(0,l.getContainer)(this.j,o).appendChild(this.container),this.__attachedContainers.add(t),this.__attachedContainers.add(this.j.container),this.j.e.on(t,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(t,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let t=this.j;t.e.on(t.ow,p,this.__hide).on(f,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let t=this.j;t.e.off(t.ow,p,this.__hide).off(f,this.__hide)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!a.Dom.isHTMLElement(t.target))return;let i=(0,u.attr)(t.target,"aria-label");if(!i||(0,u.attr)(t.target,"disabled")||!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;let n=t.target;this.__open(()=>{let t=(0,c.position)(n);return{x:t.left+t.width/2,y:t.top+t.height}},i)}__open(t,i){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(t,i),n):this.__show(t,i)}__show(t,i){this.setMod("visible",!0),this.getElm("content").innerHTML=i;let n=t();(0,u.css)(this.container,{left:n.x,top:n.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",(0,u.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(t=>{this.j.e.off(t,"mouseenter.tooltip",this.__onMouseEnter).off(t,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(t){super(t),this.__isOpened=!1,this.__attachedContainers=new Set,this.__listenClose=!1,this.__currentTarget=null,this.__delayShowTimeout=0,this.__hideTimeout=0,t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||(this.j.e.on("getContainer",t=>{this.__onAttach(t)}),t.hookStatus(r.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}};h([s.autobind],m.prototype,"__onMouseLeave",null),h([s.autobind],m.prototype,"__onMouseEnter",null),h([s.autobind],m.prototype,"__hide",null),h([s.autobind],m.prototype,"__hideDelay",null),m=o=h([s.component],m)},48538:function(t,i,n){"use strict";n.d(i,{UIElement:function(){return p}});var o,r=n(91907),s=n(55153),a=n(2748),l=n(70799),c=n(29960),u=n(14316),d=n(34176),h=n(12153);let p=o=class t extends r.ViewComponent{getRole(){var t;return(null==(t=this.options)?void 0:t.role)||""}get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(t){let i=this.parentElement;for(;i;)t(i),i=i.parentElement;return this}updateParentElement(t){var i;return null==(i=this.__parentElement)||i.updateParentElement(t),this}get(t,i){return super.get(t,i)||this.getElm(t)}closest(t){let i="object"==typeof t?i=>i===t:i=>r.Component.isInstanceOf(i,t),n=this.__parentElement;for(;n;){if(i(n))return n;n=!n.parentElement&&n.container.parentElement?o.closestElement(n.container.parentElement,o):n.parentElement}return null}static closestElement(t,i){let n=a.Dom.up(t,t=>{if(t){let{component:n}=t;return n&&r.Component.isInstanceOf(n,i)}return!1});return n?null==n?void 0:n.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){let i=this.render(t);if((0,l.isString)(i)){let t=this.parseTemplate(i);return t.classList.add(this.componentName),t}return i}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,(t,i)=>h.Icon.get(i)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(t,i)=>this.i18n(i)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(t,i){super(t),this.name="",this.__parentElement=null,this.mods={},this.options=i,this.container=this.createContainer(i);const n=this.getRole();n&&(0,c.attr)(this.container,"role",n),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}};p=o=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([(0,s.derive)(d.Mods,u.Elms)],p)},19070:function(t,i,n){"use strict";n.d(i,{UIBlock:function(){return a}});var o=n(87325),r=n(43555),s=n(62405);let a=class t extends s.UIGroup{className(){return"UIBlock"}constructor(t,i,n={align:"left"}){super(t,i),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,r.attr)(this.container,"data-ref",n.ref),(0,r.attr)(this.container,"ref",n.ref)}};a=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],a)},86327:function(t,i,n){"use strict";n.d(i,{UIForm:function(){return u}});var o=n(4012),r=n(87325),s=n(43555),a=n(80256),l=n(12234),c=n(62405);let u=class t extends c.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let t of this.allChildren.filter(t=>o.Component.isInstanceOf(t,a.UIInput)))if(!t.validate())return!1;for(let t of this.allChildren.filter(t=>o.Component.isInstanceOf(t,l.UISelect)))if(!t.validate())return!1;return!0}onSubmit(t){return this.j.e.on(this.container,"submit",()=>{let i=this.allChildren.filter(t=>o.Component.isInstanceOf(t,a.UIInput));return!!this.validate()&&(t(i.reduce((t,i)=>(t[i.state.name]=i.value,t),{})),!1)}),this}createContainer(){let t=this.j.c.element("form");return t.classList.add(this.componentName),(0,s.attr)(t,"dir",this.j.o.direction||"auto"),(0,s.attr)(t,"novalidate",""),t}constructor(...t){var i,n;super(...t),(null==(i=this.options)?void 0:i.className)&&this.container.classList.add(null==(n=this.options)?void 0:n.className)}};u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([r.component],u)},2525:function(t,i,n){"use strict";n.d(i,{UIBlock:function(){return o.UIBlock},UICheckbox:function(){return s.UICheckbox},UIFileInput:function(){return s.UIFileInput},UIForm:function(){return r.UIForm},UIInput:function(){return s.UIInput},UISelect:function(){return s.UISelect},UITextArea:function(){return s.UITextArea}});var o=n(19070),r=n(86327),s=n(8959)},85120:function(t,i,n){"use strict";n.d(i,{UITextArea:function(){return c}});var o,r=n(65478),s=n(87325),a=n(80256),l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let c=o=class t extends a.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:i}=this.state;this.nativeInput.style.resize=i?"auto":"none",this.nativeInput.rows=null!=t?t:5}constructor(t,i){super(t,i),this.state={...o.defaultState},Object.assign(this.state,i),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}};c.defaultState={...a.UIInput.defaultState,size:5,resizable:!0},l([(0,r.watch)(["state.size","state.resizable"])],c.prototype,"onChangeStateSize",null),c=o=l([s.component],c)},17328:function(t,i,n){"use strict";n.d(i,{UICheckbox:function(){return c}});var o,r=n(65478),s=n(2748),a=n(80256),l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let c=o=class t extends a.UIInput{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let t=this.getElm("switch-slider");this.state.switch?(t||(t=this.j.c.div(this.getFullElName("switch-slider"))),s.Dom.after(this.nativeInput,t)):s.Dom.safeRemove(t)}constructor(t,i){super(t,{...i,type:"checkbox"}),this.state={...o.defaultState},Object.assign(this.state,i)}};c.defaultState={...a.UIInput.defaultState,checked:!1,switch:!1},l([(0,r.watch)("state.checked"),(0,r.hook)("ready")],c.prototype,"onChangeChecked",null),l([(0,r.watch)("nativeInput:change")],c.prototype,"onChangeNativeCheckBox",null),l([(0,r.watch)("state.switch"),(0,r.hook)("ready")],c.prototype,"onChangeSwitch",null),c=o=l([r.component],c)},4242:function(t,i,n){"use strict";n.d(i,{UIFileInput:function(){return a}});var o=n(87325),r=n(10830),s=n(80256);let a=class t extends s.UIInput{className(){return"UIFileInput"}createContainer(t){this.button=new r.UIButton(this.j,{tooltip:t.tooltip,icon:{name:"plus"}});let{container:i}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(t));let{nativeInput:n}=this;return n.classList.add(this.getFullElName("input")),i.classList.add(this.componentName),i.appendChild(n),i}createNativeInput(t){return this.j.create.fromHTML(`<input
@@ -396,7 +396,7 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
396
396
  </div>`}generateLibrary(){let t=new l.UIGroup(this.j);c.map(p.mapKey).forEach(i=>{let n=new u.UIGButton(this.j,i);n.setMod("mode","library"),t.append(n),this.j.e.on(n.container,"click",()=>{let{text:t}=this.state;Object.assign(this.state,i),Object.assign(this.state,{className:"",text:t}),this.update()})});let i=this.getElm("library");(0,a.assert)(null!=i,"library element does not exists"),i.appendChild(t.container)}static mapKey(t){return{bgEnd:t.be,bgStart:t.bs,borderColor:t.bc,borderRadius:t.br,borderSize:t.bse,boxShadow:t.bsh,boxShadowBlurRadius:t.bsbr,boxShadowColor:t.bsc,boxShadowInset:t.bsi,boxShadowOffsetX:t.bsox,boxShadowOffsetY:t.bsoy,boxShadowSpreadRadius:t.bssr,fontColor:t.fc,fontFamily:t.ff,fontSize:t.fs,fontStyle:t.fse,fontWeight:t.fw,paddingX:t.px,paddingY:t.py,previewBgColor:t.pbc,solid:t.s,text:t.t,textShadow:t.ts,textShadowBlurRadius:t.tsbr,textShadowColor:t.tsc,textShadowOffsetX:t.tsox,textShadowOffsetY:t.tsoy}}updateState(t,i){this.state[t]=i,this.update()}update(){this.isReady&&(this.form.update(),this.preview.update())}constructor(t){super(t),(0,o._)(this,"state",{text:"",className:"",href:"",bgEnd:"#5cbf2a",bgStart:"#44c767",borderColor:"#18ab29",borderRadius:28,borderSize:1,boxShadow:!1,boxShadowBlurRadius:0,boxShadowColor:"#3dc21b",boxShadowInset:!1,boxShadowOffsetX:0,boxShadowOffsetY:0,boxShadowSpreadRadius:0,fontColor:"#fff",fontFamily:"Arial",fontSize:17,fontStyle:!1,fontWeight:!1,fontItalic:!1,paddingX:31,paddingY:16,previewBgColor:"#f5f5f5",solid:!0,textShadow:!0,textShadowBlurRadius:0,textShadowColor:"#2f6627",textShadowOffsetX:0,textShadowOffsetY:1}),(0,o._)(this,"preview",new h.UIPreviewButtonGenerator(this.j,this.state,this.updateState)),(0,o._)(this,"form",new d.UIFormButtonGenerator(this.j,this.state,this.updateState)),(0,o._)(this,"target",void 0),this.generateLibrary();const i=this.getElm("preview");(0,a.assert)(null!=i,"preview element does not exists"),i.appendChild(this.preview.container);const n=this.getElm("form");(0,a.assert)(null!=n,"form element does not exists"),n.appendChild(this.form.container)}}(0,r.__decorate)([s.autobind],p.prototype,"updateState",null),p=(0,r.__decorate)([s.component],p)},26638:function(t,i,n){"use strict";n.d(i,{UIPreviewButtonGenerator:function(){return d}});var o=n(82749),r=n(31635),s=n(65478),a=n(38837),l=n(67510),c=n(82520),u=n(45128);class d extends l.UIElement{className(){return"UIPreviewButtonGenerator"}render(){return`<div>
397
397
  <div class='&__button'></div>
398
398
  <div class='&__colors'></div>
399
- </div>`}update(){this.button.update(),this.lockUpdate=!0,this.colors.forEach(t=>{t.value!==this.state[t.state.name]&&(t.value=this.state[t.state.name])}),this.lockUpdate=!1}constructor(t,i,n){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"updateState",void 0),(0,o._)(this,"button",void 0),(0,o._)(this,"lockUpdate",void 0),(0,o._)(this,"colors",void 0),this.state=i,this.updateState=n,this.button=new c.UIGButton(this.j,this.state),this.lockUpdate=!1,this.colors=["bgStart","bgEnd","fontColor","borderColor","boxShadowColor","textShadowColor","previewBgColor"].map(t=>new u.ColorInput(this.j,{name:t,onChange:i=>{this.lockUpdate||("bgEnd"===t&&i!==this.state.bgStart&&this.updateState("solid",!1),this.updateState(t,i))}}).setMod("slim",!0)),this.setMod("mode","default");const r=this.getElm("button");(0,a.assert)(null!=r,"button element does not exists"),r.appendChild(this.button.container);const s=this.getElm("colors");(0,a.assert)(null!=s,"colors element does not exists"),this.colors.forEach(t=>{s.appendChild(t.container)}),this.update()}}d=(0,r.__decorate)([s.component],d)},8390:function(t,i,n){"use strict";var o=n(82749);n(89683);var r=n(2748),s=n(36409),a=n(50911),l=n(2692);class c extends a.Plugin{afterInit(t){t.registerCommand("changeCase",{exec:(i,n,o)=>{o=o.toLowerCase();let s=t.s.range,{startContainer:a,startOffset:l}=s;if(t.s.isCollapsed()){let i=t.s.current(!0);i&&i.parentElement&&this.applyCase(o,i.parentElement),s.setStart(a,l),t.s.selectRange(s)}else{let i=s.cloneRange(),n=s.cloneRange(),a=t.createInside.fake(),l=t.createInside.fake();i.collapse(!0),n.collapse(!1),i.insertNode(a),n.insertNode(l),r.Dom.between(a,l,t=>{this.applyCase(o,t)}),s.setStartAfter(a),s.setEndBefore(l),t.s.selectRange(s),r.Dom.safeRemove(a),r.Dom.safeRemove(l)}}})}applyCase(t,i){if(r.Dom.isText(i)){let n=i.nodeValue;n&&(i.nodeValue=(i=>{switch(t){case"lowercase":return i.toLowerCase();case"uppercase":return i.toUpperCase();default:return i.split(" ").map(s.ucfirst).join(" ")}})(n))}else r.Dom.each(i,i=>{this.applyCase(t,i)})}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"changeCase",group:"font-style"}])}}(0,o._)(c,"requires",["license"]),l.JoditPro.plugins.add("change-case",c)},89683:function(t,i,n){"use strict";var o=n(91729),r=n.n(o),s=n(6441),a=n(86583);s.Config.prototype.controls.changeCase={tooltip:"Change case",icon:r(),list:["lowercase","UPPERCASE","Title Case"],isDisabled(t){return!t.s.current()},exec(t,i,{control:n}){let o=n.command+"Selected",r=n.args&&n.args[0]||(0,a.dataBind)(t,o);if(!r||!n.command)return!1;(0,a.dataBind)(t,o,r),t.execCommand(n.command,null,r)},command:"changeCase"}},29528:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(45128),a=n(65478),l=n(2748),c=n(50911),u=n(2692);class d extends c.Plugin{afterInit(t){t.e.on("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}onAfterGenerateColorPicker(t,i,n,o){l.Dom.detach(i);let r=new s.ColorInput(this.j,{value:o||"#000",onChange:n});i.appendChild(r.container)}beforeDestruct(t){t.e.off("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!u.JoditPro.fatMode)}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([a.autobind],d.prototype,"onAfterGenerateColorPicker",null),u.JoditPro.plugins.add("color-picker",d)},45128:function(t,i,n){"use strict";n.d(i,{ColorInput:function(){return p}});var o=n(82749),r=n(31635),s=n(46146),a=n(82758),l=n(65478),c=n(21537),u=n(38837),d=n(67510),h=n(41409);class p extends d.UIInput{className(){return"ColorInput"}afterSetMode(t,i){"slim"===t&&i&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){if(t.key===a.KEY_ESC){var i;null==(i=this.popup)||i.close()}}constructor(t,i){super(t,i),(0,o._)(this,"trigger",void 0),(0,o._)(this,"popup",void 0);const n=new d.Popup(t);this.popup=n,this.trigger=(0,d.Button)(this.j,"ok");const r=this.getElm("wrapper");(0,u.assert)(null!=r,"wrapper element does not exist"),r.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction(()=>{var t,i;null==(t=(i=this.state).onChange)||t.call(i,this.value),n.close()}),n.setMod("padding",!1).setMod("max-height",!1);const a=this.j.create.div(this.getFullElName("picker")),l=s.createPicker(a,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",(t,i)=>{this.isFocused||(this.value=s.parseColor(i||"","hex"))});this.j.e.on(this,"change",()=>{let t;t=this.value,s.parseColor(t,"hex")!==l.color&&(l.color=this.value)}),n.setContent(a),this.j.e.on(this.nativeInput,"click",()=>{n.parentElement=this,this.jodit instanceof h.Dialog&&n.setZIndex(this.jodit.getZIndex()+1),n.open(()=>(0,c.position)(this.container))}),this.onChangeValue(),this.onChangeSelfValue()}}(0,r.__decorate)([(0,l.watch)(":change")],p.prototype,"onChangeSelfValue",null),(0,r.__decorate)([(0,l.watch)("nativeInput:keydown")],p.prototype,"onEscKeyDown",null),p=(0,r.__decorate)([l.component],p)},3536:function(t,i,n){"use strict";var o=n(4941),r=n(41943),s=n(46995),a=n.n(s),l=n(6441);l.Config.prototype.emoji={data:()=>r,enableAutoComplete:!0,recentCountLimit:10},l.Config.prototype.controls.emoji={tooltip:"Insert Emoji",icon:a(),popup:(t,i,n)=>{t.s.save();let r=t.getInstance(o.Emoji);return t.e.off(r,"insert").on(r,"insert",i=>{t.s.restore(),t.s.insertNode(t.createInside.text(i),!0),n()}),t.e.one("beforePopupClose",()=>{t.s.restore()}),r.reset(),r.container}}},85174:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(3536);var s=n(4941),a=n(65478),l=n(49055),c=n(20356),u=n(2692);class d extends c.Plugin{async afterInit(t){let i=await t.o.emoji.data();t.isInDestruct||(this.data={...i,emoji:i.emoji.map(s.Emoji.normalizeEmoji)},t.o.emoji.enableAutoComplete&&t.e.fire("registerAutocompleteSource",this.onAutoComplete),t.async.requestIdleCallback(()=>{t.getInstance(s.Emoji)}))}onAutoComplete(t){return t.length>2&&":"===t[0]&&(t=t.substr(1).toLowerCase(),(0,l.trim)(t).length)?this.data.emoji.filter(i=>{var n;return(null==(n=i.description)?void 0:n.indexOf(t))===0}).sort((i,n)=>i.description.indexOf(t)-n.description.indexOf(t)).map(t=>({title:`${t.emoji} ${t.description}`,value:t.emoji})):[]}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!u.JoditPro.fatMode),(0,o._)(this,"buttons",[{name:"emoji",group:"insert"}]),(0,o._)(this,"data",void 0)}}(0,o._)(d,"requires",["autocomplete","license"]),(0,r.__decorate)([a.autobind],d.prototype,"onAutoComplete",null),u.JoditPro.plugins.add("emoji",d)},4941:function(t,i,n){"use strict";n.d(i,{Emoji:function(){return u}});var o=n(82749),r=n(31635),s=n(65478),a=n(2748),l=n(21537),c=n(67510);class u extends c.UIElement{className(){return"Emoji"}get defaultList(){return this.recent.concat(this.data?this.data.emoji:[])}reset(){this.input.nativeInput.value="",this.setItems(this.defaultList),this.setActiveCategory(0)}setItems(t){var i,n;this.list.scrollTo(0,0),a.Dom.detach(this.list),a.Dom.append(this.list,this.generateEmojiList(t,null!=(i=null==(n=this.data)?void 0:n.categories)?i:[]))}createContainer(t){let i=this.j.c.div("jodit-emoji");this.input=new c.UIInput(this.j,{name:"search",icon:"search",autocomplete:!1,clearButton:!0,placeholder:"Search emoji"}),this.input.container.classList.add(this.getFullElName("input")),this.categories=this.j.c.div(this.getFullElName("categories")),this.list=this.j.c.div(this.getFullElName("emojis"));let n=this.j.c.div(this.getFullElName("navigate"));return a.Dom.append(n,[this.categories,this.input.container]),a.Dom.append(i,[n,this.list]),i}setActiveCategory(t,i=!1){let n=this.getElms("category"),o=n[this.activeIndex];n[t]||(t=n.length-1);let r=n[t],s=this.getFullElName("category","active",!0);o&&o.classList.remove(s),r&&r.classList.add(s),i&&this.getElms("category-title")[t].scrollIntoView(),this.activeIndex=t}generateCategoriesList(t){return t.map((i,n)=>this.j.c.div(this.getFullElName("category"),{"data-index":n,title:i,style:{width:100/t.length+"%"}}))}generateEmojiList(t,i){let n="";return t.reduce((t,o,r)=>{var s,a;let l=-1===(o=u.normalizeEmoji(o)).category?"Recently":i[o.category];if(l!==n){n=l;let i=null!=(a=this.cache[n])?a:this.j.c.div(this.getFullElName("category-title"),n?this.j.i18n(n):"");this.cache[n]=i,t.push(i)}let c=null!=(s=this.cache[o.emoji+o.category])?s:this.j.c.div(this.getFullElName("emoji"),{"data-id":r,"data-value":o.emoji},o.emoji);return this.cache[o.emoji+o.category]=c,t.push(c),t},[])}static isShortCat(t){return t&&(0,l.isString)(t.e)}static normalizeEmoji(t){return u.isShortCat(t)?{emoji:t.e,description:t.d,category:t.c,aliases:t.a,tags:t.t}:t}onInsertCode(t){this.jodit.e.fire(this,"insert",t);let i=this.map[t];if(i){let n=[...this.recent],o=n.findIndex(i=>i.emoji===t);-1!==o&&n.splice(o,1),n.unshift({...i,category:-1}),this.recent=n}}onScrollList(){let t=this.list.scrollTop,i=this.getElms("category-title"),n=0;i.forEach((i,o)=>{t>i.offsetTop-this.list.offsetTop-20&&(n=o)}),this.setActiveCategory(n)}onClickCategory(t){this.clearFilter();let i=t.target;i.classList.contains(this.getFullElName("category"))&&this.setActiveCategory(parseInt((0,l.attr)(i,"-index")||"0",10)||0,!0)}onClickItem(t){let i=t.target;if(i.classList.contains(this.getFullElName("emoji"))){let t=(0,l.attr)(i,"-value")||"";t&&this.onInsertCode(t)}t.preventDefault()}onInputFilter(){let t=this.input.value.toLowerCase();if(!t.length)return this.setItems(this.defaultList);this.setItems(this.defaultList.filter(i=>{var n,o,r;let s=u.normalizeEmoji(i);return(null==(n=s.description)?void 0:n.toLowerCase().includes(t))||(null==(o=s.tags)?void 0:o.join(" ").toLowerCase().includes(t))||(null==(r=s.aliases)?void 0:r.join(" ").toLowerCase().includes(t))}))}clearFilter(){this.input.nativeInput.value.length&&this.reset()}onReady(){this.j.e.on(this.input.nativeInput,"input",this.onInputFilter).on(this.categories,"click",this.onClickCategory).on(this.list,"scroll",this.onScrollList).on(this.list,"mousedown touchstart",this.onClickItem)}destruct(){return this.input.destruct(),super.destruct()}constructor(t){super(t),(0,o._)(this,"data",null),(0,o._)(this,"recent",[]),(0,o._)(this,"map",{}),(0,o._)(this,"activeIndex",0),(0,o._)(this,"cache",{}),this.setMod("loading",!0),(async()=>{this.data=await t.o.emoji.data(),this.setMod("loading",!1),this.data.emoji.forEach(t=>{let i=u.normalizeEmoji(t);this.map[i.emoji]=i}),this.setItems(this.defaultList),a.Dom.append(this.categories,this.generateCategoriesList(this.data.categories)),this.setActiveCategory(0)})()}}(0,r.__decorate)([s.persistent],u.prototype,"recent",void 0),(0,r.__decorate)([(0,s.throttle)()],u.prototype,"onScrollList",null),(0,r.__decorate)([s.autobind],u.prototype,"onClickCategory",null),(0,r.__decorate)([s.autobind],u.prototype,"onClickItem",null),(0,r.__decorate)([(0,s.debounce)()],u.prototype,"onInputFilter",null),(0,r.__decorate)([(0,s.hook)("ready")],u.prototype,"onReady",null),u=(0,r.__decorate)([s.component],u)},90832:function(t,i,n){"use strict";var o=n(53121),r=n.n(o),s=n(6441),a=n(2748);s.Config.prototype.exportDocs={css:"",pdf:{externalFonts:[],allow:!0,options:{defaultFont:"courier",format:"A4",page_orientation:"portrait"}}},s.Config.prototype.controls.exportDocs={tooltip:"Export",isDisabled:t=>a.Dom.isEmptyContent(t.editor),icon:r(),list:{exportToPdf:"Export to PDF"},command:"exportToPDF"}},90882:function(t,i,n){"use strict";var o=n(82749);n(90832);var r=n(22732),s=n(68934),a=n(11628),l=n(50911),c=n(54079),u=n(14625),d=n(2692);class h extends l.Plugin{afterInit(t){t.registerCommand("exportToPDF",async()=>{var i;let n=new c.Ajax({...null!=(i=t.o.exportDocs.ajax)?i:t.o.filebrowser.ajax,method:"POST",responseType:"blob",onProgress(i){t.progressbar.show().progress(i)},data:{action:"generatePdf",html:h.getValue(t),options:(0,s.ConfigDeepFlatten)(t.o.exportDocs.pdf).options}});t.e.on("beforeDestruct",n.destruct);try{let t=await n.send(),i=await t.blob(),o=this.j.create.a();o.href=URL.createObjectURL(i),o.download="document.pdf",o.click(),r.Dom.safeRemove(o),URL.revokeObjectURL(o.href)}catch(i){i.message&&t.alert(i.message)}finally{t.progressbar.progress(100),await t.async.delay(200),t.progressbar.hide()}})}static getValue(t){let[i]=(0,a.previewBox)(t),n=[];return t.o.exportDocs.pdf.externalFonts.forEach(t=>{/^</.test(t)?n.push(t):n.push(`<link rel="stylesheet" href="${t}">`)}),n.push(`<style>${(0,u.generateCriticalCSS)(t)}</style>`),n.push(`<style>${t.o.exportDocs.css}</style>`),n.push(i.innerHTML),n.join("\n")}beforeDestruct(){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"exportDocs",group:"media"}])}}(0,o._)(h,"requires",["license"]),d.JoditPro.plugins.add("exportDocs",h)},5422:function(t,i,n){"use strict";n.d(i,{FileBrowserPro:function(){return E}});var o=n(82749),r=n(31635);n(34042);var s=n(8087),a=n(77841),l=n(17578),c=n(97770),u=n(42663),d=n(55535),h=n(18250),p=n(69277),f=n(4278),m=n(95002),g=n(6441),b=n(82758),v=n(65478),y=n(21537),w=n(70231),_=n(41409),C=n(638),k=n(63399),S=n(50050),x=n(2692),I=n(21246);class E extends C.Dialog{className(){return"FileBrowserPro"}lock(t="any"){return this.container.classList.add("jodit_disabled"),super.lock(t)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(t,i=!(t instanceof Error)){(0,y.isAbortError)(t)||(b.IS_PROD||(0,y.isString)(t),this.message.message((0,y.isString)(t)?t:t.message,i?"success":"error",this.options.howLongShowMsg))}get progressbar(){return new m.UIProgress(this,this.stateManager.state)}addDisclaimer(t){this.dialog.appendChild(t)}async open(t=this.o.defaultCallback,i){return this.state.onlyImages=!!i,this.prepareOpening(t),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){(0,y.css)(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){let{currentPath:t,currentSource:i}=this.state;this.uploader.setPath(t),this.uploader.setSource(i)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(t){this.registerGlobalListeners(),t&&(this.state.onSelectCallBack=i=>{this.close(),t(i)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(t){let{activeElement:i}=this.od;if(!this.state.activeElements.length||!i||!_.Dom.isOrContains(this.panel.items.container,i))return;let n=this.state.elements;switch(t.key){case b.KEY_ENTER:return this.onChooseItems();case b.KEY_DELETE:return this.onFileRemove();case b.KEY_RIGHT:case b.KEY_LEFT:case b.KEY_DOWN:case b.KEY_UP:{let i,o=t.key===b.KEY_RIGHT||t.key===b.KEY_DOWN,r=this.state.lastSelectedIndex;if([b.KEY_RIGHT,b.KEY_LEFT].includes(t.key))i=o?n[r+1]?r+1:0:n[r-1]?r-1:n.length-1;else{let{countInRow:t}=this.panel;i=Math.round(((r+1)/t+(o?1:-1))*t-1)}return n[i]&&this.stateManager.addActive(n[i],t.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",t=>{t&&this.__itemsRemove(this.state.activeElements)}).bindDestruct(this)}__itemsRemove(t){if(!t.length)return Promise.resolve();let i=[];return t.forEach(t=>{var n;i.push("folder"===t.type?this.__folderRemove((0,a.parentPath)(t.path),null!=(n=t.name)?n:"",t.sourceName):this.__removeFile(t.file||t.name||"",t.sourceName))}),this.state.activeElements.forEach(t=>{this.stateManager.isFavorite(t)&&this.stateManager.toggleFavorite(t)}),this.state.activeElements=[],Promise.allSettled(i).then(()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()]))}__removeFile(t,i){return this.dataProvider.fileRemove(this.state.currentPath,t,i).then(i=>{this.status(i||this.i18n('File "%s" was deleted',t),!0)}).catch(this.status)}__folderRemove(t,i,n){return this.dataProvider.folderRemove(t,i,n).then(o=>{this.status(o||this.i18n('Folder "%s" was deleted',i),!0),this.state.currentPath===t&&(this.state.currentPath=(0,a.parentPath)(t),this.state.currentSource=n)}).catch(this.status)}onFileEdit(){if(1===this.state.activeElements.length){let[t]=this.state.activeElements;S.openImageEditor.call(this,t.fileURL,t.file||"",t.path,t.sourceName,void 0,this.status)}}onFolderRename(t){this.prompt("Enter new name","Rename",i=>{if(!(0,y.isValidName)(i)||i===t.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename((0,a.parentPath)(t.path),t.name,i,t.sourceName).then(n=>{this.state.activeElements=[],this.status(n,!0),this.state.currentPath=(0,a.parentPath)(t.path)+"/"+i,this.state.currentSource=t.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()}).catch(this.status)},this.i18n("type name"),t.name).bindDestruct(this)}onFolderRemove(t){this.confirm("Are you sure?","Delete",i=>{i&&this.__itemsRemove([{type:"folder",name:t.name,path:t.path,sourceName:t.sourceName}])}).bindDestruct(this)}onFolderCreate(t){this.prompt("Enter Directory name","Create directory",i=>{let n=t.path||"/";this.dataProvider.createFolder(i,t.path||"/",t.sourceName).then(()=>{this.state.currentSource===t.sourceName&&this.state.currentPath===n?this.e.fire("update.filebrowser"):(this.state.currentSource=t.sourceName,this.state.currentPath=n),this.historyManager.updateCurrent()},this.status)},this.i18n("type name")).bindDestruct(this)}onFileRename(t){let i=t.file||t.name||"";1===this.state.activeElements.length&&i&&this.prompt("Enter new name","Rename",t=>{if(!(0,y.isValidName)(t))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,i,t,this.state.currentSource).then(t=>{this.state.activeElements=[],this.status(t,!0),this.loadingManager.loadItems()}).catch(this.status)},this.i18n("type name"),i).bindDestruct(this)}onChooseItems(){let t=this.stateManager.state.activeElements;if(t.length){if("folder"===t[0].type){this.state.currentPath=this.state.currentPath+"/"+t[0].name,this.state.currentSource=t[0].sourceName,this.e.fire("afterOpenFolder.filebrowser");return}this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(t[0])}}onOpenLightBox(t){p.UILightBox.open(this,t,this.state.elements)}initUploader(){let t=this,i=(0,y.ConfigProto)(t.o.uploader||{},g.Config.defaultOptions.uploader),n=()=>this.loadingManager.loadItems();t.uploader=t.getInstance("Uploader",i),t.uploader.bind(t.panel.container,n,t.status),t.e.on("bindUploader.filebrowser",i=>{t.uploader.bind(i,n,t.status)})}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,y.ConfigProto)(this.options[t],this.o.ajax))})}constructor(t){super((0,y.ConfigProto)(Object.assign(t||{},{resizable:!0,draggable:!0,toolbarButtons:(null==t?void 0:t.toolbarButtons)||g.Config.defaultOptions.filebrowser.buttons,buttons:x.JoditPro.atom(["filebrowser.settings","fullsize","dialog.close"])}),g.Config.defaultOptions.filebrowser)),(0,o._)(this,"dataProvider",(0,k.makeDataProvider)(this,this.options)),(0,o._)(this,"state",(0,_.observable)({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1})),(0,o._)(this,"persistent",new u.PersistentStore(this,this.state)),(0,o._)(this,"loadingManager",new c.LoadingManager(this,this.state)),(0,o._)(this,"stateManager",new d.StateManager(this.state)),(0,o._)(this,"historyManager",new l.HistoryManager(this,this.state)),(0,o._)(this,"contextMenuManager",new s.ContextMenuManager(this)),(0,o._)(this,"header",new h.UIBrowserHeader(this,this.options,this.stateManager)),(0,o._)(this,"panel",new f.UIBrowserPanel(this,this.stateManager)),(0,o._)(this,"files",this.panel),(0,o._)(this,"tree",this.panel),(0,o._)(this,"uploader",void 0),I.license.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(t=>{0===t&&(t=30),this.state.progress=t}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),x.JoditPro.prototype.afterInitHook.call(this)}}(0,r.__decorate)([v.autobind],E.prototype,"status",null),(0,r.__decorate)([v.cache],E.prototype,"progressbar",null),(0,r.__decorate)([(0,v.watch)(":resize",{context:window})],E.prototype,"onResizeWindow",null),(0,r.__decorate)([(0,v.watch)(["state.currentPath","state.currentSource"])],E.prototype,"onChangePath",null),(0,r.__decorate)([(0,v.watch)("state.theme")],E.prototype,"onChangeTheme",null),(0,r.__decorate)([(0,v.watch)(":toggleSettings.filebrowser")],E.prototype,"onToggleSettings",null),(0,r.__decorate)([v.autobind],E.prototype,"onKeyPress",null),(0,r.__decorate)([v.autobind],E.prototype,"removeGlobalListeners",null),(0,r.__decorate)([(0,v.watch)(":fileRemove.filebrowser")],E.prototype,"onFileRemove",null),(0,r.__decorate)([(0,v.watch)(":edit.filebrowser")],E.prototype,"onFileEdit",null),(0,r.__decorate)([(0,v.watch)(":folderRename.filebrowser")],E.prototype,"onFolderRename",null),(0,r.__decorate)([(0,v.watch)(":folderRemove.filebrowser")],E.prototype,"onFolderRemove",null),(0,r.__decorate)([(0,v.watch)(":folderCreate.filebrowser")],E.prototype,"onFolderCreate",null),(0,r.__decorate)([(0,v.watch)(":fileRename.filebrowser")],E.prototype,"onFileRename",null),(0,r.__decorate)([(0,v.watch)(":select.filebrowser")],E.prototype,"onChooseItems",null),(0,r.__decorate)([(0,v.watch)(":openLightBox.filebrowser")],E.prototype,"onOpenLightBox",null),E=(0,r.__decorate)([v.component,(0,v.derive)(w.Dlgs)],E),Object.defineProperty(x.JoditPro.modules,"FileBrowserPro",{value:E,writable:!1,enumerable:!0,configurable:!0})},77894:function(t,i,n){"use strict";var o=n(76636),r=n(6441),s=n(580);let a=r.Config.prototype.controls.filebrowser;a.settings={icon:"settings",tooltip:"Settings",exec:t=>{var i;(null!=(i=t.parent)?i:t).e.fire("toggleSettings.filebrowser")}},a.home={icon:"home",tooltip:"Home",exec:t=>{t.e.fire("goHome.filebrowser")}},a.preview={icon:"eye",tooltip:"Preview",isDisabled(t){return 0===t.state.activeElements.length},exec:t=>{t.e.fire("togglePreview.filebrowser")}},a.next={icon:"angle-right",tooltip:"History next",isDisabled:t=>!t.historyManager.canNext(),exec:t=>{t.historyManager.next()}},a.previous={icon:"angle-left",tooltip:"History previous",isDisabled:t=>!t.historyManager.canPrevious(),exec:t=>{t.historyManager.previous()}},a["new-folder"]={icon:"new-folder",exec:t=>{t.e.fire("folderCreate.filebrowser",{path:t.state.currentPath,sourceName:t.state.currentSource})},tooltip:"New folder"},Object.assign(r.Config.prototype.filebrowser,{buttons:["filebrowser.home","filebrowser.previous","filebrowser.next","|","filebrowser.upload","filebrowser.new-folder","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.preview","about"],sort:!1,pixelOffsetLoadNewChunk:300,width:800,height:400,previewOfficeURL:"https://view.officeapps.live.com/op/view.aspx?src="}),(0,s.extendLang)(o)},97068:function(t,i,n){"use strict";var o=n(82749);n(77894);var r=n(5422),s=n(50911),a=n(2692);class l extends s.Plugin{afterInit(t){t.e.on("getInstanceFileBrowser",t=>(this.__instance||(this.__instance=new r.FileBrowserPro(t)),this.__instance))}beforeDestruct(t){var i;t.e.off("getInstanceFileBrowser"),null==(i=this.__instance)||i.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!a.JoditPro.fatMode),(0,o._)(this,"__instance",void 0)}}(0,o._)(l,"requires",["license"]),a.JoditPro.plugins.add("finder",l)},8087:function(t,i,n){"use strict";n.d(i,{ContextMenuManager:function(){return l}});var o=n(31635),r=n(80480),s=n(65478),a=n(63399);class l extends r.ViewComponent{className(){return"ContextMenuManager"}onFolderContext(t,i){return this.buildContextItemMenu(this.getFolderContextActions(t),i),!1}onItemContext(t,i,n){return this.buildContextItemMenu(this.getItemContextActions(t),n),!1}onSourceContext(t,i){return this.buildContextItemMenu(this.getSourceContextActions(t),i),!1}buildContextItemMenu(t,i){if(!this.j.o.contextMenu)return;let n=(0,a.makeContextMenu)(this.j).setMod("theme",this.j.state.theme);n.show(i.clientX,i.clientY,t.filter(t=>t&&!1!==t.enabled)),this.j.e.on(this.j,"afterClose",()=>{n.isOpened&&n.close()})}getItemContextActions(t){if(this.j.stateManager.isActive(t)||this.j.stateManager.addActive(t,this.j.state.activeElements.length>1),"folder"===t.type)return this.getFolderContextActions({type:"directory",children:[],name:t.name||"",path:t.path,sourceName:t.sourceName});let i=this.j.options,n=this.j.dataProvider,o=1===this.j.state.activeElements.length;return[{icon:"pencil",title:"Edit",enabled:!!t.isImage&&i.editImage&&o&&(n.canI("ImageResize")||n.canI("ImageCrop")),exec:()=>{this.j.e.fire("edit.filebrowser")}},{icon:"italic",title:"Rename",enabled:n.canI("FileRename")&&o,exec:()=>this.j.e.fire("fileRename.filebrowser",t)},{icon:"bin",title:"Delete",enabled:n.canI("FileRemove"),exec:()=>this.j.e.fire("fileRemove.filebrowser",t)},{icon:"eye",title:"Preview",enabled:!!(t.isImage||"file"===t.type)&&i.preview&&o,exec:()=>this.j.e.fire("openLightBox.filebrowser",t)},{icon:"upload",title:"Download",exec:()=>{t.fileURL&&this.j.ow.open(t.fileURL)}}]}getFolderContextActions(t){let i=this.j.dataProvider;return[{icon:"pencil",title:"Rename",exec:()=>{this.j.e.fire("folderRename.filebrowser",t)},enabled:i.canI("FolderRename")},{icon:"bin",title:"Delete",exec:()=>{this.j.e.fire("folderRemove.filebrowser",t)},enabled:i.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)},enabled:i.canI("FolderCreate")}]}getSourceContextActions(t){return[{icon:"plus",title:"Create folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)}}]}}(0,o.__decorate)([(0,s.watch)(":contextmenuFolder.filebrowser")],l.prototype,"onFolderContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuItem.filebrowser")],l.prototype,"onItemContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuSource.filebrowser")],l.prototype,"onSourceContext",null),l=(0,o.__decorate)([s.component],l)},77841:function(t,i,n){"use strict";n.d(i,{parentPath:function(){return o}});let o=t=>{let i=t.split("/").filter(t=>t.length);return i.pop(),i.join("/")||"/"}},17578:function(t,i,n){"use strict";n.d(i,{HistoryManager:function(){return c}});var o=n(82749),r=n(31635),s=n(80480),a=n(65478),l=n(97735);class c extends s.ViewComponent{className(){return"HistoryManager"}canNext(){return this.historyIndex<this.history.length-1}canPrevious(){return this.historyIndex>0}push(t){let{historyIndex:i}=this,n=this.history[i];if(n&&n.currentSource===t.currentSource&&n.currentPath===t.currentPath)return;let o=[...this.history];o.length-1!==i&&(o=o.slice(0,i+1)),o.push(t),n&&(i+=1),this.history=o,this.historyIndex=i}next(){this.canNext()&&(this.historyIndex+=1,this.updateState())}previous(){this.canPrevious()&&(this.historyIndex-=1,this.updateState())}updateCurrent(){this.history[this.historyIndex]={currentSource:this.state.currentSource,currentPath:this.state.currentPath,tree:(0,l.fastClone)(this.state.tree),elements:[...this.state.elements]}}onHome(){this.state.currentPath="",this.state.currentSource="",this.j.e.fire("afterOpenFolder.filebrowser update.filebrowser")}onOpenFolder(){this.push({tree:[],elements:[],currentPath:this.state.currentPath,currentSource:this.state.currentSource}),this.j.e.fire("changeSelection")}updateState(){let{tree:t,elements:i,currentSource:n,currentPath:o}=this.history[this.historyIndex];this.state.activeElements=[],this.state.elements=[...i],this.state.tree=[...t],this.state.currentSource=n,this.state.currentPath=o,this.j.e.fire("changeSelection")}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"history",void 0),(0,o._)(this,"historyIndex",void 0),this.state=i,this.history=[],this.historyIndex=0}}(0,r.__decorate)([(0,a.watch)(["state.elements","state.tree"])],c.prototype,"updateCurrent",null),(0,r.__decorate)([(0,a.watch)(":goHome.filebrowser")],c.prototype,"onHome",null),(0,r.__decorate)([(0,a.watch)(":afterOpenFolder.filebrowser")],c.prototype,"onOpenFolder",null),c=(0,r.__decorate)([a.component],c)},97770:function(t,i,n){"use strict";n.d(i,{LoadingManager:function(){return l}});var o=n(82749),r=n(31635),s=n(91907),a=n(65478);class l extends s.ViewComponent{className(){return"LoadingManager"}async onUpdateFileBrowser(){this.state.activeElements=[],this.j.panel.setMod("loading",!0),await Promise.all([this.loadFolders(),this.loadItems()]),this.j.panel.setMod("loading",!1)}async loadFolders(){if(!this.j.isOpened)return;let{currentPath:t,currentSource:i}=this.state;try{let n=await this.j.dataProvider.tree(t,i);this.j.stateManager.fillTreeForPath(n,t),this.state.sources=n}catch(t){this.j.status(t)}}async loadItems(){if(this.j.isOpened)try{this.__tick+=1;let{__tick:t}=this;this.offset=0,this.stopLoadingParts=!1,this.__callQueueCount=0;let{items:i,loadedTotal:n}=await c(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.state.elements=i,this.stopLoadingParts=n<this.countInOneChunk,await this.loadItemsChunk(t),await this.async.requestIdlePromise(),this.__tick!==t)return;for(;!this.stopLoadingParts&&this.j.panel.countInColumn*this.j.panel.countInRow>=this.state.elements.length;)if(await this.loadItemsChunk(t),this.__tick!==t)return}catch(t){this.j.status(t)}}async __loadItemsChunk(t){if(this.__isLoadingPart){this.__callQueueCount+=1;return}if(this.stopLoadingParts){this.__callQueueCount=0;return}this.__isLoadingPart=!0,this.j.panel.items.setMod("chunk-loading",!0);try{this.offset+=this.countInOneChunk;let{items:i,loadedTotal:n}=await c(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.__tick!==t)return;this.stopLoadingParts=n<this.countInOneChunk,i.length&&(this.state.elements=this.state.elements.concat(i))}catch(t){this.j.status(t)}if(this.j.panel.items.setMod("chunk-loading",!1),this.__isLoadingPart=!1,this.__callQueueCount>0)return this.__callQueueCount-=1,this.__loadItemsChunk(t)}loadItemsChunk(t=this.__tick){return t!==this.__tick?Promise.resolve():this.__loadItemsChunk(t)}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"__tick",void 0),(0,o._)(this,"offset",void 0),(0,o._)(this,"countInOneChunk",void 0),(0,o._)(this,"stopLoadingParts",void 0),(0,o._)(this,"__isLoadingPart",void 0),(0,o._)(this,"__callQueueCount",void 0),this.state=i,this.__tick=0,this.offset=0,this.countInOneChunk=20,this.stopLoadingParts=!1,this.__isLoadingPart=!1,this.__callQueueCount=0}}function c(t,i,n,o){let{currentPath:r,currentSource:s,sortBy:a,withFolders:l,foldersPosition:c,onlyImages:u,filterWord:d}=t;return i.itemsEx(r,s,{offset:n,limit:o,sortBy:a,withFolders:l,foldersPosition:c,onlyImages:u,filterWord:d})}(0,r.__decorate)([(0,a.watch)(":update.filebrowser")],l.prototype,"onUpdateFileBrowser",null),(0,r.__decorate)([(0,a.watch)(["state.currentPath","state.currentSource"]),(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadFolders",null),(0,r.__decorate)([(0,a.watch)(["state.currentPath","state.currentSource","state.sortBy","state.onlyImages","state.foldersPosition","state.filterWord"]),(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadItems",null),(0,r.__decorate)([(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadItemsChunk",null),l=(0,r.__decorate)([a.component],l)},42663:function(t,i,n){"use strict";n.d(i,{PersistentStore:function(){return c}});var o=n(82749),r=n(31635),s=n(91907),a=n(65478),l=n(159);class c extends s.ViewComponent{className(){return"PersistentStore"}onChangeThemeSetField(){this.theme=this.state.theme}onChangeView(){this.view=this.state.view}onChangeSortBy(){this.sortBy=this.state.sortBy}onChangeTileSize(){this.tileSize=this.state.tileSize}onChangeFavorites(){this.favorites=this.state.favorites}onChangeShowSideBar(){this.showSideBar=this.state.showSideBar}onChangeShowPreview(){this.showPreview=this.state.showPreview}onChangeShowFavorites(){this.showFavorites=this.state.showFavorites}onChangeFoldersPosition(){this.foldersPosition=this.state.foldersPosition}syncWithState(){this.state.tileSize=this.tileSize,this.state.favorites=this.favorites.map(t=>t instanceof l.FileBrowserItem?t:l.FileBrowserItem.create(t)),this.state.view=this.view,this.state.theme=this.theme,this.state.showSideBar=this.showSideBar,this.state.showPreview=this.showPreview,this.state.showFavorites=this.showFavorites,this.state.sortBy=this.sortBy,this.state.foldersPosition=this.foldersPosition}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"theme",void 0),(0,o._)(this,"sortBy",void 0),(0,o._)(this,"view",void 0),(0,o._)(this,"foldersPosition",void 0),(0,o._)(this,"tileSize",void 0),(0,o._)(this,"favorites",void 0),(0,o._)(this,"showSideBar",void 0),(0,o._)(this,"showPreview",void 0),(0,o._)(this,"showFavorites",void 0),this.state=i,this.sortBy="changed-desc",this.view="tiles",this.foldersPosition="top",this.tileSize="default",this.favorites=[],this.showSideBar=!0,this.showPreview=!1,this.showFavorites=!0}}(0,r.__decorate)([a.persistent],c.prototype,"theme",void 0),(0,r.__decorate)([a.persistent],c.prototype,"sortBy",void 0),(0,r.__decorate)([a.persistent],c.prototype,"view",void 0),(0,r.__decorate)([a.persistent],c.prototype,"foldersPosition",void 0),(0,r.__decorate)([a.persistent],c.prototype,"tileSize",void 0),(0,r.__decorate)([a.persistent],c.prototype,"favorites",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showSideBar",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showPreview",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showFavorites",void 0),(0,r.__decorate)([(0,a.watch)("state.theme")],c.prototype,"onChangeThemeSetField",null),(0,r.__decorate)([(0,a.watch)("state.view")],c.prototype,"onChangeView",null),(0,r.__decorate)([(0,a.watch)("state.sortBy")],c.prototype,"onChangeSortBy",null),(0,r.__decorate)([(0,a.watch)("state.tileSize")],c.prototype,"onChangeTileSize",null),(0,r.__decorate)([(0,a.watch)("state.favorites")],c.prototype,"onChangeFavorites",null),(0,r.__decorate)([(0,a.watch)("state.showSideBar")],c.prototype,"onChangeShowSideBar",null),(0,r.__decorate)([(0,a.watch)("state.showPreview")],c.prototype,"onChangeShowPreview",null),(0,r.__decorate)([(0,a.watch)("state.showFavorites")],c.prototype,"onChangeShowFavorites",null),(0,r.__decorate)([(0,a.watch)("state.foldersPosition")],c.prototype,"onChangeFoldersPosition",null),c=(0,r.__decorate)([a.component],c)},55535:function(t,i,n){"use strict";n.d(i,{StateManager:function(){return a}});var o=n(82749),r=n(31635),s=n(65478);class a{getIndex(t,i=this.state.elements){return i.findIndex(i=>i.uniqueHashKey===t.uniqueHashKey)}isActive(t){return!!this.state.activeElements.find(i=>i.uniqueHashKey===t.uniqueHashKey)}isFavorite(t){return!!this.state.favorites.find(i=>i.uniqueHashKey===t.uniqueHashKey)}addActive(t,i){var n;this.state.metaInfo=t,this.state.info=null!=(n=t.file)?n:"",this.state.lastSelectedIndex=this.getIndex(t),this.state.activeElements=i?[...this.state.activeElements,t]:[t]}callSelectHandler(){var t;let i=this.state.activeElements;null==(t=this.state.onSelectCallBack)||t.call(this,{baseurl:"",files:i.map(t=>t.fileURL),isImages:i.map(t=>!!t.isImage)})}setFilter(t){this.state.filterWord=t}toggleFavorite(t){let i=this.getIndex(t,this.state.favorites),n=[...this.state.favorites];-1===i?n.push(t):n.splice(i,1),this.state.favorites=n}fillTreeForPath(t,i){if(!this.state.tree.length||!i||"/"===i){this.state.tree=t.map(u);return}this.removeActive(this.state.tree),t.forEach(t=>{var n;let o=l(this.state.tree,t.name);o||(o=u(t),this.state.tree.push(o)),o.isActive=!0;let r=(n=o,i.split("/").reduce((t,i)=>t&&l(t.children,i),n));r&&(r.isActive=!0,r.children=c(t.folders).map(n=>d(n,i+"/"+n,t.name)))}),this.state.tree=[...this.state.tree]}removeActive(t){t.forEach(t=>{t.isActive=!1,this.removeActive(t.children)})}get isFavoriteItems(){return this.state.favorites===this.state.elements}constructor(t){(0,o._)(this,"state",void 0),this.state=t}}function l(t,i){var n;return null!=(n=t.find(t=>t.name===i))?n:null}function c(t){return t.filter(t=>"."!==t&&".."!==t)}function u(t){return{type:"source",name:t.name,title:t.title,sourceName:t.name,path:"/",children:c(t.folders).map(i=>d(i,i,t.name))}}function d(t,i,n){return{type:"directory",name:t,path:i,sourceName:n,children:[]}}(0,r.__decorate)([s.autobind],a.prototype,"getIndex",null),(0,r.__decorate)([s.autobind],a.prototype,"isActive",null),(0,r.__decorate)([s.autobind],a.prototype,"isFavorite",null)},46732:function(t){t.exports={Favorites:"Favoriten",Settings:"Einstellungen",Light:"Hell",Dark:"Dunkel",Theme:"Design",Show:"Anzeigen",Hide:"Ausblenden","Show favorites":"Favoriten anzeigen",Tiles:"Kacheln",List:"Liste",Compact:"Kompakt",View:"Ansicht","Folders position":"Ordnerposition","Sort by":"Sortieren nach","Extra small":"Sehr klein",Small:"Klein",Large:"Gro\xdf","Extra large":"Sehr gro\xdf","Tile size":"Kachelgr\xf6\xdfe"}},76636:function(t,i,n){"use strict";n.r(i),n.d(i,{de:function(){return r.a},ru:function(){return a.a}});var o=n(46732),r=n.n(o),s=n(28125),a=n.n(s)},28125:function(t){t.exports={Favorites:"Избранное",Settings:"Настройки",Light:"Светлая",Dark:"Темная",Theme:"Тема",Show:"Показать",Hide:"Скрыть","Show favorites":"Показывать избранное",Tiles:"Плитка",List:"Список",Compact:"Компактный",View:"Отображение","Folders position":"Позиция папок","Sort by":"Сортировать по","Extra small":"Очень маленькие",Small:"Маленькие",Large:"Большие","Extra large":"Очень большие","Tile size":"Размер плитки"}},34042:function(t,i,n){"use strict";var o=n(7307),r=n(24928),s=n(96910),a=n(67510);a.Icon.set("heart",String(o)),a.Icon.set("home",String(r)),a.Icon.set("new-folder",String(s))},43692:function(t,i,n){"use strict";n.d(i,{UIBrowserFolder:function(){return c}});var o=n(82749),r=n(31635),s=n(87325),a=n(38837),l=n(67510);class c extends l.UIElement{className(){return"UIBrowserFolder"}render(){return`<div>
399
+ </div>`}update(){this.button.update(),this.lockUpdate=!0,this.colors.forEach(t=>{t.value!==this.state[t.state.name]&&(t.value=this.state[t.state.name])}),this.lockUpdate=!1}constructor(t,i,n){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"updateState",void 0),(0,o._)(this,"button",void 0),(0,o._)(this,"lockUpdate",void 0),(0,o._)(this,"colors",void 0),this.state=i,this.updateState=n,this.button=new c.UIGButton(this.j,this.state),this.lockUpdate=!1,this.colors=["bgStart","bgEnd","fontColor","borderColor","boxShadowColor","textShadowColor","previewBgColor"].map(t=>new u.ColorInput(this.j,{name:t,onChange:i=>{this.lockUpdate||("bgEnd"===t&&i!==this.state.bgStart&&this.updateState("solid",!1),this.updateState(t,i))}}).setMod("slim",!0)),this.setMod("mode","default");const r=this.getElm("button");(0,a.assert)(null!=r,"button element does not exists"),r.appendChild(this.button.container);const s=this.getElm("colors");(0,a.assert)(null!=s,"colors element does not exists"),this.colors.forEach(t=>{s.appendChild(t.container)}),this.update()}}d=(0,r.__decorate)([s.component],d)},8390:function(t,i,n){"use strict";var o=n(82749);n(89683);var r=n(2748),s=n(36409),a=n(50911),l=n(2692);class c extends a.Plugin{afterInit(t){t.registerCommand("changeCase",{exec:(i,n,o)=>{o=o.toLowerCase();let s=t.s.range,{startContainer:a,startOffset:l}=s;if(t.s.isCollapsed()){let i=t.s.current(!0);i&&i.parentElement&&this.applyCase(o,i.parentElement),s.setStart(a,l),t.s.selectRange(s)}else{let i=s.cloneRange(),n=s.cloneRange(),a=t.createInside.fake(),l=t.createInside.fake();i.collapse(!0),n.collapse(!1),i.insertNode(a),n.insertNode(l),r.Dom.between(a,l,t=>{this.applyCase(o,t)}),s.setStartAfter(a),s.setEndBefore(l),t.s.selectRange(s),r.Dom.safeRemove(a),r.Dom.safeRemove(l)}}})}applyCase(t,i){if(r.Dom.isText(i)){let n=i.nodeValue;n&&(i.nodeValue=(i=>{switch(t){case"lowercase":return i.toLowerCase();case"uppercase":return i.toUpperCase();default:return i.split(" ").map(s.ucfirst).join(" ")}})(n))}else r.Dom.each(i,i=>{this.applyCase(t,i)})}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"changeCase",group:"font-style"}])}}(0,o._)(c,"requires",["license"]),l.JoditPro.plugins.add("change-case",c)},89683:function(t,i,n){"use strict";var o=n(91729),r=n.n(o),s=n(6441),a=n(86583);s.Config.prototype.controls.changeCase={tooltip:"Change case",icon:r(),list:["lowercase","UPPERCASE","Title Case"],isDisabled(t){return!t.s.current()},exec(t,i,{control:n}){let o=n.command+"Selected",r=n.args&&n.args[0]||(0,a.dataBind)(t,o);if(!r||!n.command)return!1;(0,a.dataBind)(t,o,r),t.execCommand(n.command,null,r)},command:"changeCase"}},29528:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(45128),a=n(65478),l=n(2748),c=n(50911),u=n(2692);class d extends c.Plugin{afterInit(t){t.e.on("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}onAfterGenerateColorPicker(t,i,n,o){l.Dom.detach(i);let r=new s.ColorInput(this.j,{value:o||"#000",onChange:n});i.appendChild(r.container)}beforeDestruct(t){t.e.off("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!u.JoditPro.fatMode)}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([a.autobind],d.prototype,"onAfterGenerateColorPicker",null),u.JoditPro.plugins.add("color-picker",d)},45128:function(t,i,n){"use strict";n.d(i,{ColorInput:function(){return p}});var o=n(82749),r=n(31635),s=n(46146),a=n(82758),l=n(65478),c=n(21537),u=n(38837),d=n(67510),h=n(41409);class p extends d.UIInput{className(){return"ColorInput"}afterSetMode(t,i){"slim"===t&&i&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){if(t.key===a.KEY_ESC){var i;null==(i=this.popup)||i.close()}}constructor(t,i){super(t,i),(0,o._)(this,"trigger",void 0),(0,o._)(this,"popup",void 0);const n=new d.Popup(t);this.popup=n,this.trigger=(0,d.Button)(this.j,"ok");const r=this.getElm("wrapper");(0,u.assert)(null!=r,"wrapper element does not exist"),r.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction(()=>{var t,i;null==(t=(i=this.state).onChange)||t.call(i,this.value),n.close()}),n.setMod("padding",!1).setMod("max-height",!1);const a=this.j.create.div(this.getFullElName("picker")),l=s.createPicker(a,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",(t,i)=>{this.isFocused||(this.value=s.parseColor(i||"","hex"))});this.j.e.on(this,"change",()=>{let t;t=this.value,s.parseColor(t,"hex")!==l.color&&(l.color=this.value)}),n.setContent(a),this.j.e.on(this.nativeInput,"click",()=>{n.parentElement=this,this.jodit instanceof h.Dialog&&n.setZIndex(this.jodit.getZIndex()+1),n.open(()=>(0,c.position)(this.container))}),this.onChangeValue(),this.onChangeSelfValue()}}(0,r.__decorate)([(0,l.watch)(":change")],p.prototype,"onChangeSelfValue",null),(0,r.__decorate)([(0,l.watch)("nativeInput:keydown")],p.prototype,"onEscKeyDown",null),p=(0,r.__decorate)([l.component],p)},3536:function(t,i,n){"use strict";var o=n(4941),r=n(41943),s=n(46995),a=n.n(s),l=n(6441);l.Config.prototype.emoji={data:()=>r,enableAutoComplete:!0,recentCountLimit:10},l.Config.prototype.controls.emoji={tooltip:"Insert Emoji",icon:a(),popup:(t,i,n)=>{t.s.save();let r=t.getInstance(o.Emoji);return t.e.off(r,"insert").on(r,"insert",i=>{t.s.restore(),t.s.insertNode(t.createInside.text(i),!0),n()}),t.e.one("beforePopupClose",()=>{t.s.restore()}),r.reset(),r.container}}},85174:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(3536);var s=n(4941),a=n(65478),l=n(49055),c=n(20356),u=n(2692);class d extends c.Plugin{async afterInit(t){let i=await t.o.emoji.data();t.isInDestruct||(this.data={...i,emoji:i.emoji.map(s.Emoji.normalizeEmoji)},t.o.emoji.enableAutoComplete&&t.e.fire("registerAutocompleteSource",this.onAutoComplete),t.async.requestIdleCallback(()=>{t.getInstance(s.Emoji)}))}onAutoComplete(t){return t.length>2&&":"===t[0]&&(t=t.substr(1).toLowerCase(),(0,l.trim)(t).length)?this.data.emoji.filter(i=>{var n;return(null==(n=i.description)?void 0:n.indexOf(t))===0}).sort((i,n)=>i.description.indexOf(t)-n.description.indexOf(t)).map(t=>({title:`${t.emoji} ${t.description}`,value:t.emoji})):[]}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!u.JoditPro.fatMode),(0,o._)(this,"buttons",[{name:"emoji",group:"insert"}]),(0,o._)(this,"data",void 0)}}(0,o._)(d,"requires",["autocomplete","license"]),(0,r.__decorate)([a.autobind],d.prototype,"onAutoComplete",null),u.JoditPro.plugins.add("emoji",d)},4941:function(t,i,n){"use strict";n.d(i,{Emoji:function(){return u}});var o=n(82749),r=n(31635),s=n(65478),a=n(2748),l=n(21537),c=n(67510);class u extends c.UIElement{className(){return"Emoji"}get defaultList(){return this.recent.concat(this.data?this.data.emoji:[])}reset(){this.input.nativeInput.value="",this.setItems(this.defaultList),this.setActiveCategory(0)}setItems(t){var i,n;this.list.scrollTo(0,0),a.Dom.detach(this.list),a.Dom.append(this.list,this.generateEmojiList(t,null!=(i=null==(n=this.data)?void 0:n.categories)?i:[]))}createContainer(t){let i=this.j.c.div("jodit-emoji");this.input=new c.UIInput(this.j,{name:"search",icon:"search",autocomplete:!1,clearButton:!0,placeholder:"Search emoji"}),this.input.container.classList.add(this.getFullElName("input")),this.categories=this.j.c.div(this.getFullElName("categories")),this.list=this.j.c.div(this.getFullElName("emojis"));let n=this.j.c.div(this.getFullElName("navigate"));return a.Dom.append(n,[this.categories,this.input.container]),a.Dom.append(i,[n,this.list]),i}setActiveCategory(t,i=!1){let n=this.getElms("category"),o=n[this.activeIndex];n[t]||(t=n.length-1);let r=n[t],s=this.getFullElName("category","active",!0);o&&o.classList.remove(s),r&&r.classList.add(s),i&&this.getElms("category-title")[t].scrollIntoView(),this.activeIndex=t}generateCategoriesList(t){return t.map((i,n)=>this.j.c.div(this.getFullElName("category"),{"data-index":n,title:i,style:{width:100/t.length+"%"}}))}generateEmojiList(t,i){let n="";return t.reduce((t,o,r)=>{var s,a;let l=-1===(o=u.normalizeEmoji(o)).category?"Recently":i[o.category];if(l!==n){n=l;let i=null!=(a=this.cache[n])?a:this.j.c.div(this.getFullElName("category-title"),n?this.j.i18n(n):"");this.cache[n]=i,t.push(i)}let c=null!=(s=this.cache[o.emoji+o.category])?s:this.j.c.div(this.getFullElName("emoji"),{"data-id":r,"data-value":o.emoji},o.emoji);return this.cache[o.emoji+o.category]=c,t.push(c),t},[])}static isShortCat(t){return t&&(0,l.isString)(t.e)}static normalizeEmoji(t){return u.isShortCat(t)?{emoji:t.e,description:t.d,category:t.c,aliases:t.a,tags:t.t}:t}onInsertCode(t){this.jodit.e.fire(this,"insert",t);let i=this.map[t];if(i){let n=[...this.recent],o=n.findIndex(i=>i.emoji===t);-1!==o&&n.splice(o,1),n.unshift({...i,category:-1}),this.recent=n}}onScrollList(){let t=this.list.scrollTop,i=this.getElms("category-title"),n=0;i.forEach((i,o)=>{t>i.offsetTop-this.list.offsetTop-20&&(n=o)}),this.setActiveCategory(n)}onClickCategory(t){this.clearFilter();let i=t.target;i.classList.contains(this.getFullElName("category"))&&this.setActiveCategory(parseInt((0,l.attr)(i,"-index")||"0",10)||0,!0)}onClickItem(t){let i=t.target;if(i.classList.contains(this.getFullElName("emoji"))){let t=(0,l.attr)(i,"-value")||"";t&&this.onInsertCode(t)}t.preventDefault()}onInputFilter(){let t=this.input.value.toLowerCase();if(!t.length)return this.setItems(this.defaultList);this.setItems(this.defaultList.filter(i=>{var n,o,r;let s=u.normalizeEmoji(i);return(null==(n=s.description)?void 0:n.toLowerCase().includes(t))||(null==(o=s.tags)?void 0:o.join(" ").toLowerCase().includes(t))||(null==(r=s.aliases)?void 0:r.join(" ").toLowerCase().includes(t))}))}clearFilter(){this.input.nativeInput.value.length&&this.reset()}onReady(){this.j.e.on(this.input.nativeInput,"input",this.onInputFilter).on(this.categories,"click",this.onClickCategory).on(this.list,"scroll",this.onScrollList).on(this.list,"mousedown touchstart",this.onClickItem)}destruct(){return this.input.destruct(),super.destruct()}constructor(t){super(t),(0,o._)(this,"data",null),(0,o._)(this,"recent",[]),(0,o._)(this,"map",{}),(0,o._)(this,"activeIndex",0),(0,o._)(this,"cache",{}),this.setMod("loading",!0),(async()=>{this.data=await t.o.emoji.data(),this.setMod("loading",!1),this.data.emoji.forEach(t=>{let i=u.normalizeEmoji(t);this.map[i.emoji]=i}),this.setItems(this.defaultList),a.Dom.append(this.categories,this.generateCategoriesList(this.data.categories)),this.setActiveCategory(0)})()}}(0,r.__decorate)([s.persistent],u.prototype,"recent",void 0),(0,r.__decorate)([(0,s.throttle)()],u.prototype,"onScrollList",null),(0,r.__decorate)([s.autobind],u.prototype,"onClickCategory",null),(0,r.__decorate)([s.autobind],u.prototype,"onClickItem",null),(0,r.__decorate)([(0,s.debounce)()],u.prototype,"onInputFilter",null),(0,r.__decorate)([(0,s.hook)("ready")],u.prototype,"onReady",null),u=(0,r.__decorate)([s.component],u)},90832:function(t,i,n){"use strict";var o=n(53121),r=n.n(o),s=n(6441),a=n(2748);s.Config.prototype.exportDocs={css:"",pdf:{externalFonts:[],allow:!0,options:{defaultFont:"courier",format:"A4",page_orientation:"portrait"}},docx:{allow:!1}},s.Config.prototype.controls.exportDocs={tooltip:"Export",isDisabled:t=>a.Dom.isEmptyContent(t.editor),icon:r(),list:{exportToPDF:"Export to PDF"},childExec(t,i,{control:n}){var o;let r=null!=(o=n.name)?o:"exportToPDF";t.execCommand(r)}}},90882:function(t,i,n){"use strict";var o=n(82749);n(90832);var r=n(22732),s=n(68934),a=n(11628),l=n(50911),c=n(54079),u=n(14625),d=n(2692);class h extends l.Plugin{afterInit(t){t.registerCommand("exportToPDF",async()=>{await this.sendExportRequest(t,{action:"generatePdf",filename:"document.pdf",data:{options:(0,s.ConfigDeepFlatten)(t.o.exportDocs.pdf).options}})}),t.registerCommand("exportToDOCX",async()=>{await this.sendExportRequest(t,{action:"generateDocx",filename:"document.docx"})})}async sendExportRequest(t,i){var n;let o=new c.Ajax({...null!=(n=t.o.exportDocs.ajax)?n:t.o.filebrowser.ajax,method:"POST",responseType:"blob",onProgress(i){t.progressbar.show().progress(i)},data:{action:i.action,html:h.getValue(t),...i.data}});t.e.on("beforeDestruct",o.destruct);try{let t=await o.send(),n=await t.blob(),s=this.j.create.a();s.href=URL.createObjectURL(n),s.download=i.filename,s.click(),r.Dom.safeRemove(s),URL.revokeObjectURL(s.href)}catch(i){i.message&&t.alert(i.message)}finally{t.progressbar.progress(100),await t.async.delay(200),t.progressbar.hide()}}static getValue(t){let[i]=(0,a.previewBox)(t),n=[];return t.o.exportDocs.pdf.externalFonts.forEach(t=>{/^</.test(t)?n.push(t):n.push(`<link rel="stylesheet" href="${t}">`)}),n.push(`<style>${(0,u.generateCriticalCSS)(t)}</style>`),n.push(`<style>${t.o.exportDocs.css}</style>`),n.push(i.innerHTML),n.join("\n")}beforeDestruct(){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"exportDocs",group:"media"}])}}(0,o._)(h,"requires",["license"]),d.JoditPro.plugins.add("exportDocs",h)},5422:function(t,i,n){"use strict";n.d(i,{FileBrowserPro:function(){return E}});var o=n(82749),r=n(31635);n(34042);var s=n(8087),a=n(77841),l=n(17578),c=n(97770),u=n(42663),d=n(55535),h=n(18250),p=n(69277),f=n(4278),m=n(95002),g=n(6441),b=n(82758),v=n(65478),y=n(21537),w=n(70231),_=n(41409),C=n(638),k=n(63399),S=n(50050),x=n(2692),I=n(21246);class E extends C.Dialog{className(){return"FileBrowserPro"}lock(t="any"){return this.container.classList.add("jodit_disabled"),super.lock(t)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(t,i=!(t instanceof Error)){(0,y.isAbortError)(t)||(b.IS_PROD||(0,y.isString)(t),this.message.message((0,y.isString)(t)?t:t.message,i?"success":"error",this.options.howLongShowMsg))}get progressbar(){return new m.UIProgress(this,this.stateManager.state)}addDisclaimer(t){this.dialog.appendChild(t)}async open(t=this.o.defaultCallback,i){return this.state.onlyImages=!!i,this.prepareOpening(t),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){(0,y.css)(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){let{currentPath:t,currentSource:i}=this.state;this.uploader.setPath(t),this.uploader.setSource(i)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(t){this.registerGlobalListeners(),t&&(this.state.onSelectCallBack=i=>{this.close(),t(i)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(t){let{activeElement:i}=this.od;if(!this.state.activeElements.length||!i||!_.Dom.isOrContains(this.panel.items.container,i))return;let n=this.state.elements;switch(t.key){case b.KEY_ENTER:return this.onChooseItems();case b.KEY_DELETE:return this.onFileRemove();case b.KEY_RIGHT:case b.KEY_LEFT:case b.KEY_DOWN:case b.KEY_UP:{let i,o=t.key===b.KEY_RIGHT||t.key===b.KEY_DOWN,r=this.state.lastSelectedIndex;if([b.KEY_RIGHT,b.KEY_LEFT].includes(t.key))i=o?n[r+1]?r+1:0:n[r-1]?r-1:n.length-1;else{let{countInRow:t}=this.panel;i=Math.round(((r+1)/t+(o?1:-1))*t-1)}return n[i]&&this.stateManager.addActive(n[i],t.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",t=>{t&&this.__itemsRemove(this.state.activeElements)}).bindDestruct(this)}__itemsRemove(t){if(!t.length)return Promise.resolve();let i=[];return t.forEach(t=>{var n;i.push("folder"===t.type?this.__folderRemove((0,a.parentPath)(t.path),null!=(n=t.name)?n:"",t.sourceName):this.__removeFile(t.file||t.name||"",t.sourceName))}),this.state.activeElements.forEach(t=>{this.stateManager.isFavorite(t)&&this.stateManager.toggleFavorite(t)}),this.state.activeElements=[],Promise.allSettled(i).then(()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()]))}__removeFile(t,i){return this.dataProvider.fileRemove(this.state.currentPath,t,i).then(i=>{this.status(i||this.i18n('File "%s" was deleted',t),!0)}).catch(this.status)}__folderRemove(t,i,n){return this.dataProvider.folderRemove(t,i,n).then(o=>{this.status(o||this.i18n('Folder "%s" was deleted',i),!0),this.state.currentPath===t&&(this.state.currentPath=(0,a.parentPath)(t),this.state.currentSource=n)}).catch(this.status)}onFileEdit(){if(1===this.state.activeElements.length){let[t]=this.state.activeElements;S.openImageEditor.call(this,t.fileURL,t.file||"",t.path,t.sourceName,void 0,this.status)}}onFolderRename(t){this.prompt("Enter new name","Rename",i=>{if(!(0,y.isValidName)(i)||i===t.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename((0,a.parentPath)(t.path),t.name,i,t.sourceName).then(n=>{this.state.activeElements=[],this.status(n,!0),this.state.currentPath=(0,a.parentPath)(t.path)+"/"+i,this.state.currentSource=t.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()}).catch(this.status)},this.i18n("type name"),t.name).bindDestruct(this)}onFolderRemove(t){this.confirm("Are you sure?","Delete",i=>{i&&this.__itemsRemove([{type:"folder",name:t.name,path:t.path,sourceName:t.sourceName}])}).bindDestruct(this)}onFolderCreate(t){this.prompt("Enter Directory name","Create directory",i=>{let n=t.path||"/";this.dataProvider.createFolder(i,t.path||"/",t.sourceName).then(()=>{this.state.currentSource===t.sourceName&&this.state.currentPath===n?this.e.fire("update.filebrowser"):(this.state.currentSource=t.sourceName,this.state.currentPath=n),this.historyManager.updateCurrent()},this.status)},this.i18n("type name")).bindDestruct(this)}onFileRename(t){let i=t.file||t.name||"";1===this.state.activeElements.length&&i&&this.prompt("Enter new name","Rename",t=>{if(!(0,y.isValidName)(t))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,i,t,this.state.currentSource).then(t=>{this.state.activeElements=[],this.status(t,!0),this.loadingManager.loadItems()}).catch(this.status)},this.i18n("type name"),i).bindDestruct(this)}onChooseItems(){let t=this.stateManager.state.activeElements;if(t.length){if("folder"===t[0].type){this.state.currentPath=this.state.currentPath+"/"+t[0].name,this.state.currentSource=t[0].sourceName,this.e.fire("afterOpenFolder.filebrowser");return}this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(t[0])}}onOpenLightBox(t){p.UILightBox.open(this,t,this.state.elements)}initUploader(){let t=this,i=(0,y.ConfigProto)(t.o.uploader||{},g.Config.defaultOptions.uploader),n=()=>this.loadingManager.loadItems();t.uploader=t.getInstance("Uploader",i),t.uploader.bind(t.panel.container,n,t.status),t.e.on("bindUploader.filebrowser",i=>{t.uploader.bind(i,n,t.status)})}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,y.ConfigProto)(this.options[t],this.o.ajax))})}constructor(t){super((0,y.ConfigProto)(Object.assign(t||{},{resizable:!0,draggable:!0,toolbarButtons:(null==t?void 0:t.toolbarButtons)||g.Config.defaultOptions.filebrowser.buttons,buttons:x.JoditPro.atom(["filebrowser.settings","fullsize","dialog.close"])}),g.Config.defaultOptions.filebrowser)),(0,o._)(this,"dataProvider",(0,k.makeDataProvider)(this,this.options)),(0,o._)(this,"state",(0,_.observable)({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1})),(0,o._)(this,"persistent",new u.PersistentStore(this,this.state)),(0,o._)(this,"loadingManager",new c.LoadingManager(this,this.state)),(0,o._)(this,"stateManager",new d.StateManager(this.state)),(0,o._)(this,"historyManager",new l.HistoryManager(this,this.state)),(0,o._)(this,"contextMenuManager",new s.ContextMenuManager(this)),(0,o._)(this,"header",new h.UIBrowserHeader(this,this.options,this.stateManager)),(0,o._)(this,"panel",new f.UIBrowserPanel(this,this.stateManager)),(0,o._)(this,"files",this.panel),(0,o._)(this,"tree",this.panel),(0,o._)(this,"uploader",void 0),I.license.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(t=>{0===t&&(t=30),this.state.progress=t}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),x.JoditPro.prototype.afterInitHook.call(this)}}(0,r.__decorate)([v.autobind],E.prototype,"status",null),(0,r.__decorate)([v.cache],E.prototype,"progressbar",null),(0,r.__decorate)([(0,v.watch)(":resize",{context:window})],E.prototype,"onResizeWindow",null),(0,r.__decorate)([(0,v.watch)(["state.currentPath","state.currentSource"])],E.prototype,"onChangePath",null),(0,r.__decorate)([(0,v.watch)("state.theme")],E.prototype,"onChangeTheme",null),(0,r.__decorate)([(0,v.watch)(":toggleSettings.filebrowser")],E.prototype,"onToggleSettings",null),(0,r.__decorate)([v.autobind],E.prototype,"onKeyPress",null),(0,r.__decorate)([v.autobind],E.prototype,"removeGlobalListeners",null),(0,r.__decorate)([(0,v.watch)(":fileRemove.filebrowser")],E.prototype,"onFileRemove",null),(0,r.__decorate)([(0,v.watch)(":edit.filebrowser")],E.prototype,"onFileEdit",null),(0,r.__decorate)([(0,v.watch)(":folderRename.filebrowser")],E.prototype,"onFolderRename",null),(0,r.__decorate)([(0,v.watch)(":folderRemove.filebrowser")],E.prototype,"onFolderRemove",null),(0,r.__decorate)([(0,v.watch)(":folderCreate.filebrowser")],E.prototype,"onFolderCreate",null),(0,r.__decorate)([(0,v.watch)(":fileRename.filebrowser")],E.prototype,"onFileRename",null),(0,r.__decorate)([(0,v.watch)(":select.filebrowser")],E.prototype,"onChooseItems",null),(0,r.__decorate)([(0,v.watch)(":openLightBox.filebrowser")],E.prototype,"onOpenLightBox",null),E=(0,r.__decorate)([v.component,(0,v.derive)(w.Dlgs)],E),Object.defineProperty(x.JoditPro.modules,"FileBrowserPro",{value:E,writable:!1,enumerable:!0,configurable:!0})},77894:function(t,i,n){"use strict";var o=n(76636),r=n(6441),s=n(580);let a=r.Config.prototype.controls.filebrowser;a.settings={icon:"settings",tooltip:"Settings",exec:t=>{var i;(null!=(i=t.parent)?i:t).e.fire("toggleSettings.filebrowser")}},a.home={icon:"home",tooltip:"Home",exec:t=>{t.e.fire("goHome.filebrowser")}},a.preview={icon:"eye",tooltip:"Preview",isDisabled(t){return 0===t.state.activeElements.length},exec:t=>{t.e.fire("togglePreview.filebrowser")}},a.next={icon:"angle-right",tooltip:"History next",isDisabled:t=>!t.historyManager.canNext(),exec:t=>{t.historyManager.next()}},a.previous={icon:"angle-left",tooltip:"History previous",isDisabled:t=>!t.historyManager.canPrevious(),exec:t=>{t.historyManager.previous()}},a["new-folder"]={icon:"new-folder",exec:t=>{t.e.fire("folderCreate.filebrowser",{path:t.state.currentPath,sourceName:t.state.currentSource})},tooltip:"New folder"},Object.assign(r.Config.prototype.filebrowser,{buttons:["filebrowser.home","filebrowser.previous","filebrowser.next","|","filebrowser.upload","filebrowser.new-folder","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.preview","about"],sort:!1,pixelOffsetLoadNewChunk:300,width:800,height:400,previewOfficeURL:"https://view.officeapps.live.com/op/view.aspx?src="}),(0,s.extendLang)(o)},97068:function(t,i,n){"use strict";var o=n(82749);n(77894);var r=n(5422),s=n(50911),a=n(2692);class l extends s.Plugin{afterInit(t){t.e.on("getInstanceFileBrowser",t=>(this.__instance||(this.__instance=new r.FileBrowserPro(t)),this.__instance))}beforeDestruct(t){var i;t.e.off("getInstanceFileBrowser"),null==(i=this.__instance)||i.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!a.JoditPro.fatMode),(0,o._)(this,"__instance",void 0)}}(0,o._)(l,"requires",["license"]),a.JoditPro.plugins.add("finder",l)},8087:function(t,i,n){"use strict";n.d(i,{ContextMenuManager:function(){return l}});var o=n(31635),r=n(80480),s=n(65478),a=n(63399);class l extends r.ViewComponent{className(){return"ContextMenuManager"}onFolderContext(t,i){return this.buildContextItemMenu(this.getFolderContextActions(t),i),!1}onItemContext(t,i,n){return this.buildContextItemMenu(this.getItemContextActions(t),n),!1}onSourceContext(t,i){return this.buildContextItemMenu(this.getSourceContextActions(t),i),!1}buildContextItemMenu(t,i){if(!this.j.o.contextMenu)return;let n=(0,a.makeContextMenu)(this.j).setMod("theme",this.j.state.theme);n.show(i.clientX,i.clientY,t.filter(t=>t&&!1!==t.enabled)),this.j.e.on(this.j,"afterClose",()=>{n.isOpened&&n.close()})}getItemContextActions(t){if(this.j.stateManager.isActive(t)||this.j.stateManager.addActive(t,this.j.state.activeElements.length>1),"folder"===t.type)return this.getFolderContextActions({type:"directory",children:[],name:t.name||"",path:t.path,sourceName:t.sourceName});let i=this.j.options,n=this.j.dataProvider,o=1===this.j.state.activeElements.length;return[{icon:"pencil",title:"Edit",enabled:!!t.isImage&&i.editImage&&o&&(n.canI("ImageResize")||n.canI("ImageCrop")),exec:()=>{this.j.e.fire("edit.filebrowser")}},{icon:"italic",title:"Rename",enabled:n.canI("FileRename")&&o,exec:()=>this.j.e.fire("fileRename.filebrowser",t)},{icon:"bin",title:"Delete",enabled:n.canI("FileRemove"),exec:()=>this.j.e.fire("fileRemove.filebrowser",t)},{icon:"eye",title:"Preview",enabled:!!(t.isImage||"file"===t.type)&&i.preview&&o,exec:()=>this.j.e.fire("openLightBox.filebrowser",t)},{icon:"upload",title:"Download",exec:()=>{t.fileURL&&this.j.ow.open(t.fileURL)}}]}getFolderContextActions(t){let i=this.j.dataProvider;return[{icon:"pencil",title:"Rename",exec:()=>{this.j.e.fire("folderRename.filebrowser",t)},enabled:i.canI("FolderRename")},{icon:"bin",title:"Delete",exec:()=>{this.j.e.fire("folderRemove.filebrowser",t)},enabled:i.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)},enabled:i.canI("FolderCreate")}]}getSourceContextActions(t){return[{icon:"plus",title:"Create folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)}}]}}(0,o.__decorate)([(0,s.watch)(":contextmenuFolder.filebrowser")],l.prototype,"onFolderContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuItem.filebrowser")],l.prototype,"onItemContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuSource.filebrowser")],l.prototype,"onSourceContext",null),l=(0,o.__decorate)([s.component],l)},77841:function(t,i,n){"use strict";n.d(i,{parentPath:function(){return o}});let o=t=>{let i=t.split("/").filter(t=>t.length);return i.pop(),i.join("/")||"/"}},17578:function(t,i,n){"use strict";n.d(i,{HistoryManager:function(){return c}});var o=n(82749),r=n(31635),s=n(80480),a=n(65478),l=n(97735);class c extends s.ViewComponent{className(){return"HistoryManager"}canNext(){return this.historyIndex<this.history.length-1}canPrevious(){return this.historyIndex>0}push(t){let{historyIndex:i}=this,n=this.history[i];if(n&&n.currentSource===t.currentSource&&n.currentPath===t.currentPath)return;let o=[...this.history];o.length-1!==i&&(o=o.slice(0,i+1)),o.push(t),n&&(i+=1),this.history=o,this.historyIndex=i}next(){this.canNext()&&(this.historyIndex+=1,this.updateState())}previous(){this.canPrevious()&&(this.historyIndex-=1,this.updateState())}updateCurrent(){this.history[this.historyIndex]={currentSource:this.state.currentSource,currentPath:this.state.currentPath,tree:(0,l.fastClone)(this.state.tree),elements:[...this.state.elements]}}onHome(){this.state.currentPath="",this.state.currentSource="",this.j.e.fire("afterOpenFolder.filebrowser update.filebrowser")}onOpenFolder(){this.push({tree:[],elements:[],currentPath:this.state.currentPath,currentSource:this.state.currentSource}),this.j.e.fire("changeSelection")}updateState(){let{tree:t,elements:i,currentSource:n,currentPath:o}=this.history[this.historyIndex];this.state.activeElements=[],this.state.elements=[...i],this.state.tree=[...t],this.state.currentSource=n,this.state.currentPath=o,this.j.e.fire("changeSelection")}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"history",void 0),(0,o._)(this,"historyIndex",void 0),this.state=i,this.history=[],this.historyIndex=0}}(0,r.__decorate)([(0,a.watch)(["state.elements","state.tree"])],c.prototype,"updateCurrent",null),(0,r.__decorate)([(0,a.watch)(":goHome.filebrowser")],c.prototype,"onHome",null),(0,r.__decorate)([(0,a.watch)(":afterOpenFolder.filebrowser")],c.prototype,"onOpenFolder",null),c=(0,r.__decorate)([a.component],c)},97770:function(t,i,n){"use strict";n.d(i,{LoadingManager:function(){return l}});var o=n(82749),r=n(31635),s=n(91907),a=n(65478);class l extends s.ViewComponent{className(){return"LoadingManager"}async onUpdateFileBrowser(){this.state.activeElements=[],this.j.panel.setMod("loading",!0),await Promise.all([this.loadFolders(),this.loadItems()]),this.j.panel.setMod("loading",!1)}async loadFolders(){if(!this.j.isOpened)return;let{currentPath:t,currentSource:i}=this.state;try{let n=await this.j.dataProvider.tree(t,i);this.j.stateManager.fillTreeForPath(n,t),this.state.sources=n}catch(t){this.j.status(t)}}async loadItems(){if(this.j.isOpened)try{this.__tick+=1;let{__tick:t}=this;this.offset=0,this.stopLoadingParts=!1,this.__callQueueCount=0;let{items:i,loadedTotal:n}=await c(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.state.elements=i,this.stopLoadingParts=n<this.countInOneChunk,await this.loadItemsChunk(t),await this.async.requestIdlePromise(),this.__tick!==t)return;for(;!this.stopLoadingParts&&this.j.panel.countInColumn*this.j.panel.countInRow>=this.state.elements.length;)if(await this.loadItemsChunk(t),this.__tick!==t)return}catch(t){this.j.status(t)}}async __loadItemsChunk(t){if(this.__isLoadingPart){this.__callQueueCount+=1;return}if(this.stopLoadingParts){this.__callQueueCount=0;return}this.__isLoadingPart=!0,this.j.panel.items.setMod("chunk-loading",!0);try{this.offset+=this.countInOneChunk;let{items:i,loadedTotal:n}=await c(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.__tick!==t)return;this.stopLoadingParts=n<this.countInOneChunk,i.length&&(this.state.elements=this.state.elements.concat(i))}catch(t){this.j.status(t)}if(this.j.panel.items.setMod("chunk-loading",!1),this.__isLoadingPart=!1,this.__callQueueCount>0)return this.__callQueueCount-=1,this.__loadItemsChunk(t)}loadItemsChunk(t=this.__tick){return t!==this.__tick?Promise.resolve():this.__loadItemsChunk(t)}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"__tick",void 0),(0,o._)(this,"offset",void 0),(0,o._)(this,"countInOneChunk",void 0),(0,o._)(this,"stopLoadingParts",void 0),(0,o._)(this,"__isLoadingPart",void 0),(0,o._)(this,"__callQueueCount",void 0),this.state=i,this.__tick=0,this.offset=0,this.countInOneChunk=20,this.stopLoadingParts=!1,this.__isLoadingPart=!1,this.__callQueueCount=0}}function c(t,i,n,o){let{currentPath:r,currentSource:s,sortBy:a,withFolders:l,foldersPosition:c,onlyImages:u,filterWord:d}=t;return i.itemsEx(r,s,{offset:n,limit:o,sortBy:a,withFolders:l,foldersPosition:c,onlyImages:u,filterWord:d})}(0,r.__decorate)([(0,a.watch)(":update.filebrowser")],l.prototype,"onUpdateFileBrowser",null),(0,r.__decorate)([(0,a.watch)(["state.currentPath","state.currentSource"]),(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadFolders",null),(0,r.__decorate)([(0,a.watch)(["state.currentPath","state.currentSource","state.sortBy","state.onlyImages","state.foldersPosition","state.filterWord"]),(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadItems",null),(0,r.__decorate)([(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadItemsChunk",null),l=(0,r.__decorate)([a.component],l)},42663:function(t,i,n){"use strict";n.d(i,{PersistentStore:function(){return c}});var o=n(82749),r=n(31635),s=n(91907),a=n(65478),l=n(159);class c extends s.ViewComponent{className(){return"PersistentStore"}onChangeThemeSetField(){this.theme=this.state.theme}onChangeView(){this.view=this.state.view}onChangeSortBy(){this.sortBy=this.state.sortBy}onChangeTileSize(){this.tileSize=this.state.tileSize}onChangeFavorites(){this.favorites=this.state.favorites}onChangeShowSideBar(){this.showSideBar=this.state.showSideBar}onChangeShowPreview(){this.showPreview=this.state.showPreview}onChangeShowFavorites(){this.showFavorites=this.state.showFavorites}onChangeFoldersPosition(){this.foldersPosition=this.state.foldersPosition}syncWithState(){this.state.tileSize=this.tileSize,this.state.favorites=this.favorites.map(t=>t instanceof l.FileBrowserItem?t:l.FileBrowserItem.create(t)),this.state.view=this.view,this.state.theme=this.theme,this.state.showSideBar=this.showSideBar,this.state.showPreview=this.showPreview,this.state.showFavorites=this.showFavorites,this.state.sortBy=this.sortBy,this.state.foldersPosition=this.foldersPosition}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"theme",void 0),(0,o._)(this,"sortBy",void 0),(0,o._)(this,"view",void 0),(0,o._)(this,"foldersPosition",void 0),(0,o._)(this,"tileSize",void 0),(0,o._)(this,"favorites",void 0),(0,o._)(this,"showSideBar",void 0),(0,o._)(this,"showPreview",void 0),(0,o._)(this,"showFavorites",void 0),this.state=i,this.sortBy="changed-desc",this.view="tiles",this.foldersPosition="top",this.tileSize="default",this.favorites=[],this.showSideBar=!0,this.showPreview=!1,this.showFavorites=!0}}(0,r.__decorate)([a.persistent],c.prototype,"theme",void 0),(0,r.__decorate)([a.persistent],c.prototype,"sortBy",void 0),(0,r.__decorate)([a.persistent],c.prototype,"view",void 0),(0,r.__decorate)([a.persistent],c.prototype,"foldersPosition",void 0),(0,r.__decorate)([a.persistent],c.prototype,"tileSize",void 0),(0,r.__decorate)([a.persistent],c.prototype,"favorites",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showSideBar",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showPreview",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showFavorites",void 0),(0,r.__decorate)([(0,a.watch)("state.theme")],c.prototype,"onChangeThemeSetField",null),(0,r.__decorate)([(0,a.watch)("state.view")],c.prototype,"onChangeView",null),(0,r.__decorate)([(0,a.watch)("state.sortBy")],c.prototype,"onChangeSortBy",null),(0,r.__decorate)([(0,a.watch)("state.tileSize")],c.prototype,"onChangeTileSize",null),(0,r.__decorate)([(0,a.watch)("state.favorites")],c.prototype,"onChangeFavorites",null),(0,r.__decorate)([(0,a.watch)("state.showSideBar")],c.prototype,"onChangeShowSideBar",null),(0,r.__decorate)([(0,a.watch)("state.showPreview")],c.prototype,"onChangeShowPreview",null),(0,r.__decorate)([(0,a.watch)("state.showFavorites")],c.prototype,"onChangeShowFavorites",null),(0,r.__decorate)([(0,a.watch)("state.foldersPosition")],c.prototype,"onChangeFoldersPosition",null),c=(0,r.__decorate)([a.component],c)},55535:function(t,i,n){"use strict";n.d(i,{StateManager:function(){return a}});var o=n(82749),r=n(31635),s=n(65478);class a{getIndex(t,i=this.state.elements){return i.findIndex(i=>i.uniqueHashKey===t.uniqueHashKey)}isActive(t){return!!this.state.activeElements.find(i=>i.uniqueHashKey===t.uniqueHashKey)}isFavorite(t){return!!this.state.favorites.find(i=>i.uniqueHashKey===t.uniqueHashKey)}addActive(t,i){var n;this.state.metaInfo=t,this.state.info=null!=(n=t.file)?n:"",this.state.lastSelectedIndex=this.getIndex(t),this.state.activeElements=i?[...this.state.activeElements,t]:[t]}callSelectHandler(){var t;let i=this.state.activeElements;null==(t=this.state.onSelectCallBack)||t.call(this,{baseurl:"",files:i.map(t=>t.fileURL),isImages:i.map(t=>!!t.isImage)})}setFilter(t){this.state.filterWord=t}toggleFavorite(t){let i=this.getIndex(t,this.state.favorites),n=[...this.state.favorites];-1===i?n.push(t):n.splice(i,1),this.state.favorites=n}fillTreeForPath(t,i){if(!this.state.tree.length||!i||"/"===i){this.state.tree=t.map(u);return}this.removeActive(this.state.tree),t.forEach(t=>{var n;let o=l(this.state.tree,t.name);o||(o=u(t),this.state.tree.push(o)),o.isActive=!0;let r=(n=o,i.split("/").reduce((t,i)=>t&&l(t.children,i),n));r&&(r.isActive=!0,r.children=c(t.folders).map(n=>d(n,i+"/"+n,t.name)))}),this.state.tree=[...this.state.tree]}removeActive(t){t.forEach(t=>{t.isActive=!1,this.removeActive(t.children)})}get isFavoriteItems(){return this.state.favorites===this.state.elements}constructor(t){(0,o._)(this,"state",void 0),this.state=t}}function l(t,i){var n;return null!=(n=t.find(t=>t.name===i))?n:null}function c(t){return t.filter(t=>"."!==t&&".."!==t)}function u(t){return{type:"source",name:t.name,title:t.title,sourceName:t.name,path:"/",children:c(t.folders).map(i=>d(i,i,t.name))}}function d(t,i,n){return{type:"directory",name:t,path:i,sourceName:n,children:[]}}(0,r.__decorate)([s.autobind],a.prototype,"getIndex",null),(0,r.__decorate)([s.autobind],a.prototype,"isActive",null),(0,r.__decorate)([s.autobind],a.prototype,"isFavorite",null)},46732:function(t){t.exports={Favorites:"Favoriten",Settings:"Einstellungen",Light:"Hell",Dark:"Dunkel",Theme:"Design",Show:"Anzeigen",Hide:"Ausblenden","Show favorites":"Favoriten anzeigen",Tiles:"Kacheln",List:"Liste",Compact:"Kompakt",View:"Ansicht","Folders position":"Ordnerposition","Sort by":"Sortieren nach","Extra small":"Sehr klein",Small:"Klein",Large:"Gro\xdf","Extra large":"Sehr gro\xdf","Tile size":"Kachelgr\xf6\xdfe"}},76636:function(t,i,n){"use strict";n.r(i),n.d(i,{de:function(){return r.a},ru:function(){return a.a}});var o=n(46732),r=n.n(o),s=n(28125),a=n.n(s)},28125:function(t){t.exports={Favorites:"Избранное",Settings:"Настройки",Light:"Светлая",Dark:"Темная",Theme:"Тема",Show:"Показать",Hide:"Скрыть","Show favorites":"Показывать избранное",Tiles:"Плитка",List:"Список",Compact:"Компактный",View:"Отображение","Folders position":"Позиция папок","Sort by":"Сортировать по","Extra small":"Очень маленькие",Small:"Маленькие",Large:"Большие","Extra large":"Очень большие","Tile size":"Размер плитки"}},34042:function(t,i,n){"use strict";var o=n(7307),r=n(24928),s=n(96910),a=n(67510);a.Icon.set("heart",String(o)),a.Icon.set("home",String(r)),a.Icon.set("new-folder",String(s))},43692:function(t,i,n){"use strict";n.d(i,{UIBrowserFolder:function(){return c}});var o=n(82749),r=n(31635),s=n(87325),a=n(38837),l=n(67510);class c extends l.UIElement{className(){return"UIBrowserFolder"}render(){return`<div>
400
400
  <div class="&__icon">
401
401
  <div class='&__loader'></div>
402
402
  <div class="&__icon-wrapper">
@@ -573,7 +573,7 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
573
573
  </div>`}appendChildToContainer(){}constructor(t,i,n){super(t),(0,o._)(this,"options",void 0),(0,o._)(this,"drawingManager",void 0),(0,o._)(this,"toolbar",void 0),(0,o._)(this,"state",void 0),(0,o._)(this,"mapElements",void 0),(0,o._)(this,"apiLoaded",void 0),(0,o._)(this,"mapInitialized",void 0),(0,o._)(this,"map",void 0),(0,o._)(this,"layers",void 0),this.options=n,this.toolbar=new g.ToolbarCollection(this.jodit),this.state={uid:"jd"+(0,h.uniqueUid)()+new Date().toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,i),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const r=this.getElm("map-palette");(0,p.assert)(null!=r,"palette element does not exists"),r.appendChild(this.toolbar.container)}}(0,r.__decorate)([(0,c.hook)("ready")],v.prototype,"onReady",null),(0,r.__decorate)([(0,d.watch)("?:changeCreateMode.gm")],v.prototype,"changeCreateMode",null),(0,r.__decorate)([(0,d.watch)("state.mode")],v.prototype,"onChangeMode",null),(0,r.__decorate)([(0,d.watch)("state.elements")],v.prototype,"onChangeElementsList",null),(0,r.__decorate)([(0,d.watch)("state.center"),(0,u.wait)(t=>t.mapInitialized),(0,l.debounce)()],v.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,d.watch)("state.zoom"),(0,l.debounce)()],v.prototype,"onChangeZoom",null),(0,r.__decorate)([(0,d.watch)("state.controls")],v.prototype,"onChangeControls",null),(0,r.__decorate)([(0,d.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,u.wait)(t=>t.mapInitialized),(0,l.debounce)()],v.prototype,"onChangeBound",null),(0,r.__decorate)([(0,d.watch)("state.size"),(0,l.debounce)()],v.prototype,"onChangeSize",null),(0,r.__decorate)([(0,d.watch)("state.type")],v.prototype,"onChangeMapType",null),(0,r.__decorate)([(0,d.watch)("state.layer")],v.prototype,"onChangeLayer",null)},22125:function(t,i,n){"use strict";n.d(i,{addNewInState:function(){return r}});var o=n(67912);function r(t){var i,n,r,s,a,l,c,u;switch(this.state.mode){case"polyline":case"polygon":{let{mode:i}=this.state;this.state.elements=[...this.state.elements,{type:i,coordinates:(0,o.pathToArray)(t.getPath()),...this.options.googleMaps.map.defaultStates[i]}];break}case"circle":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!=(i=null==(r=t.getCenter())?void 0:r.lat())?i:0,null!=(n=null==(s=t.getCenter())?void 0:s.lng())?n:0],radius:t.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break;case"marker":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!=(a=null==(c=t.getPosition())?void 0:c.lat())?a:0,null!=(l=null==(u=t.getPosition())?void 0:u.lng())?l:0],...this.options.googleMaps.map.defaultStates.marker}]}}},1475:function(t,i,n){"use strict";n.d(i,{initOrUpdateElementFromState:function(){return u}});var o=n(53454),r=n(11079),s=n(72690),a=n(580),l=n(12153),c=n(67912);function u(t,i){let n,u=this.mapElements[i];if(u){if(u.state.type===t.type)return s.updateStateAndGme.call(this,t,i);u.gme.setMap(null)}switch(t.type){case"text":n=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":n=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?l.Icon.get(t.icon):void 0,map:this.map});break;case"polyline":case"polygon":{let i=(0,c.arrayToPath)(t.coordinates);n=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:i,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1})}break;case"circle":var d;n=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:null!=(d=t.fillOpacity)?d:1})}let h={type:t.type,uid:(0,a.uniqueUid)(),state:t,gme:n};"dragend radius_changed center_changed".split(" ").forEach(t=>n.addListener(t,()=>o.onChangeGeometries.call(this,h,i))),("polygon"===h.type||"polyline"===h.type)&&"insert_at set_at remove_at".split(" ").forEach(t=>h.gme.getPath().addListener(t,()=>o.onChangeGeometries.call(this,h,i))),n.addListener("click",()=>r.openPropsDialog.call(this,h,i)),this.mapElements[i]=h}},53454:function(t,i,n){"use strict";n.d(i,{onChangeGeometries:function(){return s}});var o=n(72690),r=n(67912);function s(t,i){var n,s,a,l;switch(t.type){case"polyline":case"polygon":{let n=(0,r.pathToArray)(t.gme.getPath()),s={...t.state,coordinates:n};o.updateStateAndGme.call(this,s,i,!0);break}case"marker":{let r=t.gme.getPosition(),a={...t.state,coordinates:[null!=(n=null==r?void 0:r.lat())?n:0,null!=(s=null==r?void 0:r.lng())?s:0]};o.updateStateAndGme.call(this,a,i,!0);break}case"circle":{let n=t.gme.getCenter(),r={...t.state,radius:t.gme.getRadius(),coordinates:[null!=(a=null==n?void 0:n.lat())?a:0,null!=(l=null==n?void 0:n.lng())?l:0]};o.updateStateAndGme.call(this,r,i,!0)}}}},11079:function(t,i,n){"use strict";n.d(i,{openPropsDialog:function(){return l}});var o=n(47660),r=n(72690),s=n(90835);function a(){let t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",()=>{this.setMod("info-opened",!0)}),t.addListener("closeclick",()=>{this.setMod("info-opened",!1)}),t}function l(t,i){let n;switch(this.state.mode="hand",t.type){case"polyline":n=new s.UIPolylineEditor(this.jodit,t.state,this.options);break;case"marker":n=new s.UIMarkerEditor(this.jodit,t.state,this.options);break;case"circle":case"polygon":n=new s.UIPolygonEditor(this.jodit,t.state,this.options)}if(!n)return;this.append(n),this.j.e.on(n,"bin",()=>{o.removeElement.call(this,t)}).on(n,"change",(n,o)=>{r.updateStateAndGme.call(this,{...t.state,[n]:o},i)});let l=a.call(this);if("polygon"===t.type||"polyline"===t.type){let i=t.gme.getPath().getAt(0);l.setPosition(i)}"circle"===t.type&&l.setPosition(t.gme.getCenter()),l.setContent(n.container),l.open(this.map,t.gme),l.addListener("closeclick",()=>{n&&(this.remove(n),n.destruct())})}},47660:function(t,i,n){"use strict";function o(t){let i=this.mapElements.indexOf(t);-1!==i&&(this.mapElements[i].gme.setMap(null),this.mapElements.splice(i,1),this.state.elements.splice(i,1),this.state.elements=[...this.state.elements])}n.d(i,{removeElement:function(){return o}})},72690:function(t,i,n){"use strict";n.d(i,{updateStateAndGme:function(){return r}});var o=n(67912);function r(t,i,n=!1){let s=this.mapElements[i];if(s.state===t||s.state.type!==t.type)return;let a=s.state;if(!n){let i;for(i in t){let n=t[i],r=a[i];if(null!=n&&(null==r||n.toString()!==r.toString()))switch(i){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(s.type){case"polyline":case"circle":case"polygon":s.gme.setOptions({[i]:n})}break;case"coordinates":switch(s.type){case"polygon":case"polyline":s.gme.setPath((0,o.arrayToPath)(n))}}}}s.state=t,this.state.elements[i]=t}},8073:function(t,i,n){"use strict";n.d(i,{UIMapsControlsForm:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIForm{className(){return"UIMapsControlsForm"}onChangeSize(t,i){this.state.controls={...this.state.controls,[t]:"true"===i}}constructor(t,i){super(t),(0,o._)(this,"state",void 0),this.state=i;const n={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(n);this.append(r.map(i=>new a.UICheckbox(t,{label:n[i],name:i,checked:this.state.controls[i],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,i)})))}}l=(0,r.__decorate)([s.component],l)},83039:function(t,i,n){"use strict";n.d(i,{UIMapsPropsForm:function(){return c}});var o=n(82749),r=n(31635),s=n(65478),a=n(76078),l=n(67510);class c extends l.UIForm{className(){return"UIMapsPropsForm"}onChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container);this.state.size=[parseInt(null==t?void 0:t.value,10)||0,parseInt(null==i?void 0:i.value,10)||0]}onExternalChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container),[n,o]=this.state.size;n.toString()!==t.value&&(t.value=n.toString()),o.toString()!==i.value&&(i.value=o.toString())}onChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container);this.state.center=[parseFloat(null==t?void 0:t.value)||0,parseFloat(null==i?void 0:i.value)||0]}onExternalChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container),[n,o]=this.state.center;n.toString()!==t.value&&(t.value=n.toString()),o.toString()!==i.value&&(i.value=o.toString())}onExternalChangeType(){let{mapType:t}=(0,a.refs)(this.container);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){let{layer:t}=(0,a.refs)(this.container);this.state.layer!==t.value&&(t.value=this.state.layer)}constructor(t,i){var n;super(t),(0,o._)(this,"state",void 0),this.state=i;const[r,s]=i.size,[a,c]=i.center;this.append([new l.UIInput(t,{label:"Width",name:"width",value:r,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Height",name:"height",value:s,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Latitude",name:"lat",value:a,onChange:this.onChangeCenter}),new l.UIInput(t,{label:"Longitude",name:"lng",value:c,onChange:this.onChangeCenter}),new l.UISelect(t,{label:"Map type",value:i.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:t=>{i.type=t}}),new l.UISelect(t,{label:"Layer",value:null!=(n=i.layer)?n:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:t=>{i.layer=t}})])}}(0,r.__decorate)([s.autobind],c.prototype,"onChangeSize",null),(0,r.__decorate)([(0,s.watch)("state.size")],c.prototype,"onExternalChangeSize",null),(0,r.__decorate)([s.autobind],c.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.center"])],c.prototype,"onExternalChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.type"])],c.prototype,"onExternalChangeType",null),(0,r.__decorate)([(0,s.watch)(["state.layer"])],c.prototype,"onExternalChangeLayer",null),c=(0,r.__decorate)([s.component],c)},11093:function(t,i,n){"use strict";n.d(i,{UIWysiwyg:function(){return c}});var o=n(31635),r=n(87325),s=n(38837),a=n(48538),l=n(2692);class c extends a.UIElement{className(){return"UIWysiwyg"}render(){return`<div>
574
574
  <div class='&__label'>~Info~</div>
575
575
  <div class='&__editor'></div>
576
- </div>`}constructor(t,i,n,o){super(t);const r=this.getElm("editor");(0,s.assert)(null!=r,"editor element does not exist");const a=l.JoditPro.make(r,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...i});a.value=n,a.e.on("change",()=>o(a.value))}}c=(0,o.__decorate)([r.component],c)},40650:function(t,i,n){"use strict";var o=n(82749),r=n(25088),s=n.n(r),a=n(6441),l=n(21537),c=n(50911),u=n(59451),d=n(2692);a.Config.prototype.controls.google={tooltip:"Google search",icon:s(),isDisabled(t){return(0,u.isEditorEmpty)(t.editor)},command:"startSearch"};class h extends c.Plugin{afterInit(t){t.registerCommand("startSearch",{exec:()=>{var i,n,o;let r,{s}=t;if(r=s.isCollapsed()?null==(n=s.current())||null==(i=n.parentElement)?void 0:i.innerText:null==(o=s.sel)?void 0:o.toString()){let t="https://www.google.com/search?q="+encodeURIComponent((0,l.trim)(r));window.open(t,"_blank")}}})}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"google",group:"search"}])}}(0,o._)(h,"requires",["license"]),d.JoditPro.plugins.add("google-search",h)},36347:function(t,i,n){"use strict";n(6441).Config.prototype.highlightSignature={processDelay:0,processInChunkCount:300,schema:{},excludeTags:["pre"]}},46958:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(36347);var s=n(65478),a=n(2748),l=n(29960),c=n(20356),u=n(2692);class d extends c.Plugin{afterInit(t){Object.keys(t.o.highlightSignature.schema).length&&(t.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",d.removeUtilWrappers),this.walkNodes())}beforeDestruct(t){t.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",d.removeUtilWrappers)}walkNodes(){var t;if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:i}=this,n=i.ed.createNodeIterator(i.editor,NodeFilter.SHOW_TEXT);null==(t=this.abortController)||t.abort(),this.workLoop(n)}runWorker(t){let i;this.j.e.mute();let n=0,{processInChunkCount:o}=this.j.o.highlightSignature;try{do{if(n+=1,!(i=t.nextNode())||this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&o>n)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(t){this.abortController=new AbortController,this.j.async.schedulerPostTask(()=>this.runWorker(t),{delay:this.j.o.highlightSignature.processDelay}).catch(()=>null)}checkNormalizing(t){return!!a.Dom.isText(t.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(t){if(d.hasUtilWrapper(t))return;let i=t.nodeValue;if(null==i)return;let{j:n}=this,o=n.o.highlightSignature;for(let n in o.schema){let r=RegExp(n);if(r.test(i)){let s=i.match(r);if(!s||void 0===s.index)continue;let l=o.schema[n](this.j,s);if(l){a.Dom.markTemporary(l,{dataHighlightSchema:n}),this.replaceMatchedTextToElm(t,i,s,l);return}}}}replaceMatchedTextToElm(t,i,n,o){var r;let{j:s}=this,{range:l}=s.s,c=l.startContainer===t,u=l.startOffset,d=null!=(r=n.index)?r:0;t.nodeValue=i.substring(0,d);let h=i.substring(d+n[0].length);if(h.length){let i=s.createInside.text(h);a.Dom.after(t,i)}o.innerText=n[0],a.Dom.after(t,o),c&&this.restoreCursorPosition(u,t,o.firstChild,o.nextSibling)}static hasUtilWrapper(t){return a.Dom.isTemporary(t.parentElement)}static removeUtilWrappers(t){t.value=a.Dom.replaceTemporaryFromString(t.value)}restoreCursorPosition(t,...i){for(let n of i)if(n&&n.nodeValue){let i=n.nodeValue;if(i.length>=t){let i=this.j.s.createRange();i.setStart(n,t),this.j.s.selectRange(i,!1);break}t-=i.length}}checkUtilsBoxToSchema(){a.Dom.temporaryList(this.j.editor).forEach(t=>{var i;let n=(0,l.attr)(t,"dataHighlightSchema");if(!n)return;let o=RegExp(n),r=null!=(i=t.innerText)?i:"";(!o.test(r)||r.replace(o,"").length)&&(this.j.s.save(),a.Dom.unwrap(t),this.j.s.restore())})}constructor(...t){super(...t),(0,o._)(this,"abortController",null)}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,s.debounce)()],d.prototype,"walkNodes",null),(0,r.__decorate)([s.autobind],d.prototype,"runWorker",null),u.JoditPro.plugins.add("highlight-signature",d)},88092:function(t,i,n){"use strict";var o=n(67008),r=n.n(o),s=n(6441),a=n(2748),l=n(68345);s.Config.prototype.controls.iframeEditor={icon:r(),tooltip:"Iframe Editor",exec:(t,i)=>{a.Dom.isTag(i,"jodit")&&a.Dom.isTag(i.firstElementChild,"iframe")&&(i=i.firstElementChild),t.e.fire("toggleIframeEditor",a.Dom.isTag(i,"iframe")?i:null)}},(0,l.isArray)(s.Config.prototype.popup.iframe)&&s.Config.prototype.popup.iframe.push("iframeEditor")},1050:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(88092);var s=n(29744),a=n(65478),l=n(22732),c=n(21537),u=n(50911),d=n(62843),h=n(41409),p=n(2692);class f extends u.Plugin{afterInit(t){t.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(t){var i,n,o,r,a;this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),t&&!l.Dom.isTag(t,"iframe")&&(t=void 0);let u=new s.UIIframeEditor(this.__dialog,{src:null!=(i=null==t?void 0:t.src)?i:"",name:null!=(n=null==t?void 0:t.name)?n:"",title:null!=(o=null==t?void 0:t.title)?o:"",frameBorder:(null==t?void 0:t.frameBorder)==="1"||(null==t?void 0:t.frameBorder)==="yes",width:null!=(r=null==t?void 0:t.offsetWidth)?r:700,height:null!=(a=null==t?void 0:t.offsetHeight)?a:400});this.__dialog.setContent(u);let p=this.__dialog;p.isOpened?p.close():(p.setFooter([(0,d.Button)(p,"cancel","Cancel","default").onAction(()=>p.close()),(0,d.Button)(p,"ok",t?"Update":"Insert","primary").onAction(()=>{if(!u.srcField.value){u.srcField.validate(),u.srcField.focus();return}t||(t=this.j.createInside.element("iframe"),this.j.s.insertNode(t,!0,!1)),t.className=u.state.className||"",(0,c.attr)(t,{src:u.state.src,title:u.state.title,name:u.state.name,frameborder:u.state.frameBorder?"1":"0",width:u.state.width,height:u.state.height}),l.Dom.isTag(t.parentElement,"jodit")&&(0,c.css)(t.parentElement,{width:u.state.width,height:u.state.height}),this.jodit.e.fire("synchro"),p.close()})]).open(),this.jodit.async.requestIdleCallback(()=>{u.srcField.focus()}))}onDblClick(t){l.Dom.isTag(t.target,"iframe")&&this.toggleEditor(t.target)}beforeDestruct(t){var i;null==(i=this.__dialog)||i.destruct()}constructor(...t){super(...t),(0,o._)(this,"buttons",[{group:"form",name:"iframeEditor"}]),(0,o._)(this,"__dialog",void 0)}}(0,o._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([a.autobind],f.prototype,"toggleEditor",null),(0,r.__decorate)([(0,a.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("iframe-editor",f)},29744:function(t,i,n){"use strict";n.d(i,{UIIframeEditor:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIGroup{className(){return"UIIframeEditor"}constructor(t,i){super(t),(0,o._)(this,"state",{src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""}),(0,o._)(this,"srcField",void 0),Object.assign(this.state,i),this.srcField=new a.UIInput(t,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:t=>{this.state.src=t}}),this.append([this.srcField,new a.UIBlock(t,[new a.UIInput(t,{label:"Width",type:"number",value:this.state.width,onChange:t=>{this.state.width=parseInt(t,10)||0}}),new a.UIInput(t,{label:"Height",type:"number",value:this.state.height,onChange:t=>{this.state.height=parseInt(t,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a.UIBlock(t,[new a.UICheckbox(t,{label:"Show frame border",checked:!!i.frameBorder,onChange:t=>{this.state.frameBorder="true"===t}})]),new a.UIInput(t,{label:"Name",value:this.state.name,type:"text",onChange:t=>{this.state.name=t}}),new a.UIInput(t,{label:"Title",value:this.state.title,type:"text",onChange:t=>{this.state.title=t}})])}}l=(0,r.__decorate)([s.component],l)},12373:function(t,i,n){"use strict";n(25187),n(58858),n(21246),n(44864),n(3115),n(41810),n(61328),n(45632),n(8390),n(29528),n(85174),n(90882),n(97068),n(482),n(40650),n(46958),n(1050),n(95618),n(74398),n(79850),n(41406),n(47682),n(75554),n(61886),n(19374),n(73098),n(13152)},41113:function(t,i,n){"use strict";var o=n(63643),r=n.n(o),s=n(6441);s.Config.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ \xb1","1 ! \xa7","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Espa\xf1ol",keys:[["\xba ` ~","1 ! \xa7","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","\xa1 = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\xe7 \xc7 \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","\xf1 \xd1 ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ \xb1","1 ! \xa7","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","\xfc \xdc [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","\xf6 \xd6 ;","\xe4 \xc4 ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ \xb1","1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"T\xfcrk\xe7e",keys:[['" \xe9` ~',"1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xb1","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","\xfc \xdc",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","\xf6 \xd6 <","\xe7 \xc7 >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ \xb1","1 ! \xa7","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xb1","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},s.Config.prototype.controls.keyboard={tooltip:"Keyboard",icon:r(),isActive(t){return!!t.e.fire("isKeyboardOpened")},command:"toggleKeyboard"},s.Config.prototype.controls.extraKeyboardButtons={}},95618:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(41113);var s=n(25241),a=n(6441),l=n(65478),c=n(27613),u=n(50911),d=n(67510),h=n(41409),p=n(2692);class f extends u.Plugin{afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",()=>{var t;return null==(t=this.__keyboard)?void 0:t.isOpened})}insertChar(t,i,n){this.j.s.insertNode(this.j.createInside.text(n))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new h.Dialog({toolbarButtonSize:"tiny"});let t=new s.UIKeyboard(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);let{showLayoutSwitcher:i,layoutSwitchList:n,layoutList:o}=this.j.o.keyboard;if(i){let i=new d.UISelect(this.__keyboard,{value:t.state.currentLayout,options:n.map(t=>{var i,n;return{text:null!=(i=null==(n=o[t])?void 0:n.title)?i:t,value:t}}),onChange(i){t.state.currentLayout=i}});i.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(i)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(t){var i;null==(i=this.__keyboard)||i.destruct()}constructor(t){super(t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"insert",name:"keyboard"}]),(0,o._)(this,"__keyboard",void 0);const{extraKeyButtons:i,extraKeyGroup:n}=t.o.keyboard;i.length&&i.forEach((i,o)=>{let r=(0,c.isString)(i)?i:i.key,s=(0,c.isString)(i)||!i.hotkeys?[`ctrl+${o+1}`]:i.hotkeys;t.registerButton({name:`extraKeyboardButtons.${r}`,group:n});let{extraKeyboardButtons:l}=a.Config.defaultOptions.controls;l[r]={name:r,tooltip:r,args:[r],hotkeys:s,command:"insertChar"}})}}(0,o._)(f,"requires",["license"]),(0,r.__decorate)([l.autobind],f.prototype,"insertChar",null),(0,r.__decorate)([l.autobind],f.prototype,"toggleKeyboard",null),p.JoditPro.plugins.add("keyboard",f)},25241:function(t,i,n){"use strict";n.d(i,{UIKeyboard:function(){return w}});var o=n(82749),r=n(31635),s=n(82758),a=n(65478),l=n(43555),c=n(67510),u=n(27926),d=n.n(u),h=n(10690),p=n.n(h),f=n(91997),m=n.n(f),g=n(11699),b=n.n(g),v=n(98126),y=n.n(v);class w extends c.UIElement{className(){return"UIKeyboard"}render(){let{layout:t,keySize:i}=this.j.options.keyboard,n=t.length;return`<div>${(()=>{let o=[];for(let r=0;n>r;r+=1){let n=[];for(let o=0;o<t[r].length;o+=1)n.push(`<div style="width:${i*t[r][o]}px;height:${i}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${n.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){let{currentLayout:t,options:i,shift:n,caps:o}=this.state,{keys:r}=this.j.o.keyboard.layoutList[t],s=0;for(let t=0;t<r.length;t+=1)for(let a=0;a<r[t].length;a+=1){let l=r[t][a].split(" "),c=l[0];n&&(c=l[1]),!n&&o&&l[1]&&w.isLetter(l[0])&&(c=l[1]),i&&(c=l[2]),this.setKeyValue(s,null!=c?c:l[0]),s+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,i){let n=this._keys[t];if(!n)return;let o=!1,{options:r,shift:s,caps:a}=this.state;switch(i){case"Caps":o=a;break;case"Options":o=r;break;case"Shift":o=s}n.innerHTML=w.decorate(i),n.classList.toggle(this.getFullElName("key","active",!0),o),(0,l.attr)(n,"-key",i)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach(t=>{t.classList.remove(this.getFullElName("key","pressed",!0))}))}onKeyDown(t,i=0){let n=t.target;if(!n||!n.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,n.classList.add(this.getFullElName("key","pressed",!0));let o=(0,l.attr)(n,"-key");switch(o){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:o,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(s.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),o&&this.j.s.insertNode(this.j.createInside.text(o))}let{periodKeyRepeat:r,delayKeyRepeat:a}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout(()=>this.onKeyDown(t,r),i||a),!1}static decorate(t){switch(t){case"Space":return"";case"Enter":return c.Icon.get("enter");case"Backspace":return d();case"Shift":return b();case"Caps":return p();case"Options":return m();case"Tab":return y();default:return t}}constructor(t){super(t),(0,o._)(this,"state",{caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet}),(0,o._)(this,"_keys",this.getElms("key")),(0,o._)(this,"pressed",!1),(0,o._)(this,"reKeyDownTimeout",0),this.onStateChange()}}(0,r.__decorate)([(0,a.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],w.prototype,"onStateChange",null),(0,r.__decorate)([(0,a.watch)(["ow:mouseup"])],w.prototype,"onKeyUp",null),(0,r.__decorate)([(0,a.hook)("ready")],w.prototype,"onReady",null),(0,r.__decorate)([a.autobind],w.prototype,"stopPress",null),(0,r.__decorate)([(0,a.watch)(["container:mousedown","container:touchstart"])],w.prototype,"onKeyDown",null),w=(0,r.__decorate)([a.component],w)},38882:function(t,i,n){"use strict";n.d(i,{isAllowedSubdomain:function(){return r},validateLicense:function(){return function t(i,n){var o;let s;if(o=i=i.replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(o)||r(n))return!0;let a=(s=n.split(".")).map(t=>{let i=t[0];return"string"==typeof i&&i.charCodeAt(0)?String.fromCharCode(i.charCodeAt(0)+1):i}).concat(s.map(t=>{let i=t[t.length-1];return"string"==typeof i&&i.charCodeAt(0)?String.fromCharCode(i.charCodeAt(0)-1):i})).map(t=>null!=t&&/\w/.test(t)?t:"r"),l=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((t,i)=>t.replace("{part}",a[i]||"[R-T]")),c=RegExp(`^${l.join("-")}$`,"i"),u=i.substring(12,13),d=c.test(i);if(!d&&u===(typeof!n).toUpperCase()[5]){let o=n.split(".");return o.shift(),!!o.length&&t(i,o.join("."))}return d}}});let o=["*localhost*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function r(t){return o.some(i=>new RegExp(i.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(t))}},21246:function(t,i,n){"use strict";n.d(i,{license:function(){return d}});var o=n(38882),r=n(82758),s=n(2748),a=n(87612),l=n(70799),c=n(20356),u=n(2692);class d extends c.Plugin{static make(t){return new d(t)}afterInit(t){this.j.e.on("checkReserve",async t=>{let i=this.j.o.license;if((0,o.isAllowedSubdomain)(t))return"normal";if(!i||!(0,l.isString)(i))return"";let n=(0,o.validateLicense)(i,t);return n||!(i[12]>"A")||r.IS_TEST||(n=await this.validateLicenseRemote(i,t)),n?"normal":""})}beforeDestruct(t){}async validateLicenseRemote(t,i){let n="validateJoditLicenseRemote",r=this.j.storage.get(n);if(r&&(0,o.validateLicense)(r,i))return!0;let l=document.createElement("script");return l.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(t)}&host=${encodeURIComponent(i)}`,document.body.appendChild(l),this.j.async.promise(t=>{window.onJoditResolveKeyCode=r=>{try{if((0,a.isBoolean)(r))return t(r);(0,o.validateLicense)(r,i)?(this.j.storage.set(n,r),t(!0)):t(!1)}finally{s.Dom.safeRemove(l)}},this.j.async.setTimeout(()=>{t(!1),s.Dom.safeRemove(l)},3e3)})}}u.JoditPro.plugins.add("license",d)},29606:function(t,i,n){"use strict";n.d(i,{dataBindCurrentKey:function(){return u},dataBindStoredKey:function(){return c}});var o=n(27222),r=n.n(o),s=n(6441),a=n(29807),l=n(86583);s.Config.prototype.mobileView={mode:"default"};let c="buttonmobileSView",u="buttonmobileCView";s.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:r(),command:"mobileView",isActive:t=>(0,l.dataBind)(t,u)&&"default"!==(0,l.dataBind)(t,u),isChildActive:(t,i)=>{var n,o;let r=null==(o=i.control)||null==(n=o.args)?void 0:n[0];return(0,a.isNumeric)(r)&&(r=Number(r)),((0,l.dataBind)(t,u)||"default")===r},exec:t=>!!(0,l.dataBind)(t,c)&&void t.execCommand("mobileView",!1,(0,l.dataBind)(t,c)),childExec:(t,i,{button:n})=>{var o,r;let s=null==(r=n.control)||null==(o=r.args)?void 0:o[0];t.execCommand("mobileView",!1,(0,a.isNumeric)(s)?Number(s):s)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(29606),a=n(65478),l=n(43555),c=n(50911),u=n(2692);class d extends c.Plugin{className(){return"MobileView"}afterInit(t){t.registerCommand("mobileView",{exec:(i,n,o)=>{this.__currentMode===o&&(o="default"),this.__currentMode=o,(0,l.dataBind)(t,s.dataBindCurrentKey,o),"default"!==this.__currentMode&&(0,l.dataBind)(t,s.dataBindStoredKey,o),"default"===o?(0,l.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,l.css)(this.j.currentPlace.slots.center,{width:o,margin:"0 auto"})}}),t.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,o._)(this,"__currentMode","default")}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":beforeSetMode.mobileView")],d.prototype,"__beforeSetMode",null),d=(0,r.__decorate)([a.component],d),u.JoditPro.plugins.add("mobileView",d)},13109:function(t,i,n){"use strict";var o=n(17405),r=n.n(o),s=n(64889),a=n(6441);a.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},a.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(),command:"insertPageBreak"},a.Config.prototype.iframeStyle=`${a.Config.prototype.iframeStyle};${s.default.replace(/[\n\t]/g,"")}`},64889:function(t,i){"use strict";i.default=`[data-jodit-page-break] {
576
+ </div>`}constructor(t,i,n,o){super(t);const r=this.getElm("editor");(0,s.assert)(null!=r,"editor element does not exist");const a=l.JoditPro.make(r,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...i});a.value=n,a.e.on("change",()=>o(a.value))}}c=(0,o.__decorate)([r.component],c)},40650:function(t,i,n){"use strict";var o=n(82749),r=n(25088),s=n.n(r),a=n(6441),l=n(21537),c=n(50911),u=n(59451),d=n(2692);a.Config.prototype.controls.google={tooltip:"Google search",icon:s(),isDisabled(t){return(0,u.isEditorEmpty)(t.editor)},command:"startSearch"};class h extends c.Plugin{afterInit(t){t.registerCommand("startSearch",{exec:()=>{var i,n,o;let r,{s}=t;if(r=s.isCollapsed()?null==(n=s.current())||null==(i=n.parentElement)?void 0:i.innerText:null==(o=s.sel)?void 0:o.toString()){let t="https://www.google.com/search?q="+encodeURIComponent((0,l.trim)(r));window.open(t,"_blank")}}})}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"google",group:"search"}])}}(0,o._)(h,"requires",["license"]),d.JoditPro.plugins.add("google-search",h)},36347:function(t,i,n){"use strict";n(6441).Config.prototype.highlightSignature={processDelay:0,processInChunkCount:300,schema:{},excludeTags:["pre"]}},46958:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(36347);var s=n(65478),a=n(2748),l=n(29960),c=n(20356),u=n(2692);class d extends c.Plugin{afterInit(t){Object.keys(t.o.highlightSignature.schema).length&&(t.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",d.removeUtilWrappers),this.walkNodes())}beforeDestruct(t){t.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",d.removeUtilWrappers)}walkNodes(){var t;if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:i}=this,n=i.ed.createNodeIterator(i.editor,NodeFilter.SHOW_TEXT);null==(t=this.abortController)||t.abort(),this.workLoop(n)}runWorker(t){let i;this.j.e.mute();let n=0,{processInChunkCount:o}=this.j.o.highlightSignature;try{do{if(n+=1,!(i=t.nextNode())||this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&o>n)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(t){this.abortController=new AbortController,this.j.async.schedulerPostTask(()=>this.runWorker(t),{delay:this.j.o.highlightSignature.processDelay}).catch(()=>null)}checkNormalizing(t){return!!a.Dom.isText(t.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(t){if(d.hasUtilWrapper(t))return;let i=t.nodeValue;if(null==i)return;let{j:n}=this,o=n.o.highlightSignature;for(let n in o.schema){let r=RegExp(n);if(r.test(i)){let s=i.match(r);if(!s||void 0===s.index)continue;let l=o.schema[n](this.j,s);if(l){a.Dom.markTemporary(l,{dataHighlightSchema:n}),this.replaceMatchedTextToElm(t,i,s,l);return}}}}replaceMatchedTextToElm(t,i,n,o){var r;let{j:s}=this,{range:l}=s.s,c=l.startContainer===t,u=l.startOffset,d=null!=(r=n.index)?r:0;t.nodeValue=i.substring(0,d);let h=i.substring(d+n[0].length);if(h.length){let i=s.createInside.text(h);a.Dom.after(t,i)}o.innerText=n[0],a.Dom.after(t,o),c&&this.restoreCursorPosition(u,t,o.firstChild,o.nextSibling)}static hasUtilWrapper(t){return a.Dom.isTemporary(t.parentElement)}static removeUtilWrappers(t){t.value=a.Dom.replaceTemporaryFromString(t.value)}restoreCursorPosition(t,...i){for(let n of i)if(n&&n.nodeValue){let i=n.nodeValue;if(i.length>=t){let i=this.j.s.createRange();i.setStart(n,t),this.j.s.selectRange(i,!1);break}t-=i.length}}checkUtilsBoxToSchema(){a.Dom.temporaryList(this.j.editor).forEach(t=>{var i;let n=(0,l.attr)(t,"dataHighlightSchema");if(!n)return;let o=RegExp(n),r=null!=(i=t.innerText)?i:"";(!o.test(r)||r.replace(o,"").length)&&(this.j.s.save(),a.Dom.unwrap(t),this.j.s.restore())})}constructor(...t){super(...t),(0,o._)(this,"abortController",null)}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,s.debounce)()],d.prototype,"walkNodes",null),(0,r.__decorate)([s.autobind],d.prototype,"runWorker",null),u.JoditPro.plugins.add("highlight-signature",d)},88092:function(t,i,n){"use strict";var o=n(67008),r=n.n(o),s=n(6441),a=n(2748),l=n(68345);s.Config.prototype.controls.iframeEditor={icon:r(),tooltip:"Iframe Editor",exec:(t,i)=>{a.Dom.isTag(i,"jodit")&&a.Dom.isTag(i.firstElementChild,"iframe")&&(i=i.firstElementChild),t.e.fire("toggleIframeEditor",a.Dom.isTag(i,"iframe")?i:null)}},(0,l.isArray)(s.Config.prototype.popup.iframe)&&s.Config.prototype.popup.iframe.push("iframeEditor")},1050:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(88092);var s=n(29744),a=n(65478),l=n(22732),c=n(21537),u=n(50911),d=n(62843),h=n(41409),p=n(2692);class f extends u.Plugin{afterInit(t){t.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(t){var i,n,o,r,a;this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),t&&!l.Dom.isTag(t,"iframe")&&(t=void 0);let u=new s.UIIframeEditor(this.__dialog,{src:null!=(i=null==t?void 0:t.src)?i:"",name:null!=(n=null==t?void 0:t.name)?n:"",title:null!=(o=null==t?void 0:t.title)?o:"",frameBorder:(null==t?void 0:t.frameBorder)==="1"||(null==t?void 0:t.frameBorder)==="yes",width:null!=(r=null==t?void 0:t.offsetWidth)?r:700,height:null!=(a=null==t?void 0:t.offsetHeight)?a:400});this.__dialog.setContent(u);let p=this.__dialog;p.isOpened?p.close():(p.setFooter([(0,d.Button)(p,"cancel","Cancel","default").onAction(()=>p.close()),(0,d.Button)(p,"ok",t?"Update":"Insert","primary").onAction(()=>{if(!u.srcField.value){u.srcField.validate(),u.srcField.focus();return}t||(t=this.j.createInside.element("iframe"),this.j.s.insertNode(t,!0,!1)),t.className=u.state.className||"",(0,c.attr)(t,{src:u.state.src,title:u.state.title,name:u.state.name,frameborder:u.state.frameBorder?"1":"0",width:u.state.width,height:u.state.height}),l.Dom.isTag(t.parentElement,"jodit")&&(0,c.css)(t.parentElement,{width:u.state.width,height:u.state.height}),this.jodit.e.fire("synchro"),p.close()})]).open(),this.jodit.async.requestIdleCallback(()=>{u.srcField.focus()}))}onDblClick(t){l.Dom.isTag(t.target,"iframe")&&this.toggleEditor(t.target)}beforeDestruct(t){var i;null==(i=this.__dialog)||i.destruct()}constructor(...t){super(...t),(0,o._)(this,"buttons",[{group:"form",name:"iframeEditor"}]),(0,o._)(this,"__dialog",void 0)}}(0,o._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([a.autobind],f.prototype,"toggleEditor",null),(0,r.__decorate)([(0,a.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("iframe-editor",f)},29744:function(t,i,n){"use strict";n.d(i,{UIIframeEditor:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIGroup{className(){return"UIIframeEditor"}constructor(t,i){super(t),(0,o._)(this,"state",{src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""}),(0,o._)(this,"srcField",void 0),Object.assign(this.state,i),this.srcField=new a.UIInput(t,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:t=>{this.state.src=t}}),this.append([this.srcField,new a.UIBlock(t,[new a.UIInput(t,{label:"Width",type:"number",value:this.state.width,onChange:t=>{this.state.width=parseInt(t,10)||0}}),new a.UIInput(t,{label:"Height",type:"number",value:this.state.height,onChange:t=>{this.state.height=parseInt(t,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a.UIBlock(t,[new a.UICheckbox(t,{label:"Show frame border",checked:!!i.frameBorder,onChange:t=>{this.state.frameBorder="true"===t}})]),new a.UIInput(t,{label:"Name",value:this.state.name,type:"text",onChange:t=>{this.state.name=t}}),new a.UIInput(t,{label:"Title",value:this.state.title,type:"text",onChange:t=>{this.state.title=t}})])}}l=(0,r.__decorate)([s.component],l)},12373:function(t,i,n){"use strict";n(25187),n(58858),n(21246),n(44864),n(3115),n(41810),n(61328),n(45632),n(8390),n(29528),n(85174),n(90882),n(97068),n(482),n(40650),n(46958),n(1050),n(95618),n(74398),n(79850),n(41406),n(47682),n(75554),n(61886),n(19374),n(73098),n(13152)},41113:function(t,i,n){"use strict";var o=n(63643),r=n.n(o),s=n(6441);s.Config.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ \xb1","1 ! \xa7","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Espa\xf1ol",keys:[["\xba ` ~","1 ! \xa7","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","\xa1 = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\xe7 \xc7 \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","\xf1 \xd1 ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ \xb1","1 ! \xa7","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","\xfc \xdc [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","\xf6 \xd6 ;","\xe4 \xc4 ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ \xb1","1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"T\xfcrk\xe7e",keys:[['" \xe9` ~',"1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xb1","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","\xfc \xdc",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","\xf6 \xd6 <","\xe7 \xc7 >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ \xb1","1 ! \xa7","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xb1","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},s.Config.prototype.controls.keyboard={tooltip:"Keyboard",icon:r(),isActive(t){return!!t.e.fire("isKeyboardOpened")},command:"toggleKeyboard"},s.Config.prototype.controls.extraKeyboardButtons={}},95618:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(41113);var s=n(25241),a=n(6441),l=n(65478),c=n(27613),u=n(50911),d=n(67510),h=n(41409),p=n(2692);class f extends u.Plugin{afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",()=>{var t;return null==(t=this.__keyboard)?void 0:t.isOpened})}insertChar(t,i,n){this.j.s.insertNode(this.j.createInside.text(n))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new h.Dialog({toolbarButtonSize:"tiny"});let t=new s.UIKeyboard(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);let{showLayoutSwitcher:i,layoutSwitchList:n,layoutList:o}=this.j.o.keyboard;if(i){let i=new d.UISelect(this.__keyboard,{value:t.state.currentLayout,options:n.map(t=>{var i,n;return{text:null!=(i=null==(n=o[t])?void 0:n.title)?i:t,value:t}}),onChange(i){t.state.currentLayout=i}});i.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(i)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(t){var i;null==(i=this.__keyboard)||i.destruct()}constructor(t){super(t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"insert",name:"keyboard"}]),(0,o._)(this,"__keyboard",void 0);const{extraKeyButtons:i,extraKeyGroup:n}=t.o.keyboard;i.length&&i.forEach((i,o)=>{let r=(0,c.isString)(i)?i:i.key,s=(0,c.isString)(i)||!i.hotkeys?[`ctrl+${o+1}`]:i.hotkeys;t.registerButton({name:`extraKeyboardButtons.${r}`,group:n});let{extraKeyboardButtons:l}=a.Config.defaultOptions.controls;l[r]={name:r,tooltip:r,args:[r],hotkeys:s,command:"insertChar"}})}}(0,o._)(f,"requires",["license"]),(0,r.__decorate)([l.autobind],f.prototype,"insertChar",null),(0,r.__decorate)([l.autobind],f.prototype,"toggleKeyboard",null),p.JoditPro.plugins.add("keyboard",f)},25241:function(t,i,n){"use strict";n.d(i,{UIKeyboard:function(){return w}});var o=n(82749),r=n(31635),s=n(82758),a=n(65478),l=n(43555),c=n(67510),u=n(27926),d=n.n(u),h=n(10690),p=n.n(h),f=n(91997),m=n.n(f),g=n(11699),b=n.n(g),v=n(98126),y=n.n(v);class w extends c.UIElement{className(){return"UIKeyboard"}render(){let{layout:t,keySize:i}=this.j.options.keyboard,n=t.length;return`<div>${(()=>{let o=[];for(let r=0;n>r;r+=1){let n=[];for(let o=0;o<t[r].length;o+=1)n.push(`<div style="width:${i*t[r][o]}px;height:${i}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${n.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){let{currentLayout:t,options:i,shift:n,caps:o}=this.state,{keys:r}=this.j.o.keyboard.layoutList[t],s=0;for(let t=0;t<r.length;t+=1)for(let a=0;a<r[t].length;a+=1){let l=r[t][a].split(" "),c=l[0];n&&(c=l[1]),!n&&o&&l[1]&&w.isLetter(l[0])&&(c=l[1]),i&&(c=l[2]),this.setKeyValue(s,null!=c?c:l[0]),s+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,i){let n=this._keys[t];if(!n)return;let o=!1,{options:r,shift:s,caps:a}=this.state;switch(i){case"Caps":o=a;break;case"Options":o=r;break;case"Shift":o=s}n.innerHTML=w.decorate(i),n.classList.toggle(this.getFullElName("key","active",!0),o),(0,l.attr)(n,"-key",i)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach(t=>{t.classList.remove(this.getFullElName("key","pressed",!0))}))}onKeyDown(t,i=0){let n=t.target;if(!n||!n.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,n.classList.add(this.getFullElName("key","pressed",!0));let o=(0,l.attr)(n,"-key");switch(o){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:o,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(s.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),o&&this.j.s.insertNode(this.j.createInside.text(o))}let{periodKeyRepeat:r,delayKeyRepeat:a}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout(()=>this.onKeyDown(t,r),i||a),!1}static decorate(t){switch(t){case"Space":return"";case"Enter":return c.Icon.get("enter");case"Backspace":return d();case"Shift":return b();case"Caps":return p();case"Options":return m();case"Tab":return y();default:return t}}constructor(t){super(t),(0,o._)(this,"state",{caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet}),(0,o._)(this,"_keys",this.getElms("key")),(0,o._)(this,"pressed",!1),(0,o._)(this,"reKeyDownTimeout",0),this.onStateChange()}}(0,r.__decorate)([(0,a.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],w.prototype,"onStateChange",null),(0,r.__decorate)([(0,a.watch)(["ow:mouseup"])],w.prototype,"onKeyUp",null),(0,r.__decorate)([(0,a.hook)("ready")],w.prototype,"onReady",null),(0,r.__decorate)([a.autobind],w.prototype,"stopPress",null),(0,r.__decorate)([(0,a.watch)(["container:mousedown","container:touchstart"])],w.prototype,"onKeyDown",null),w=(0,r.__decorate)([a.component],w)},38882:function(t,i,n){"use strict";n.d(i,{isAllowedSubdomain:function(){return r},validateLicense:function(){return function t(i,n){var o;let s;if(o=i=i.replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(o)||r(n))return!0;let a=(s=n.split(".")).map(t=>{let i=t[0];return"string"==typeof i&&i.charCodeAt(0)?String.fromCharCode(i.charCodeAt(0)+1):i}).concat(s.map(t=>{let i=t[t.length-1];return"string"==typeof i&&i.charCodeAt(0)?String.fromCharCode(i.charCodeAt(0)-1):i})).map(t=>null!=t&&/\w/.test(t)?t:"r"),l=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((t,i)=>t.replace("{part}",a[i]||"[R-T]")),c=RegExp(`^${l.join("-")}$`,"i"),u=i.substring(12,13),d=c.test(i);if(!d&&u===(typeof!n).toUpperCase()[5]){let o=n.split(".");return o.shift(),!!o.length&&t(i,o.join("."))}return d}}});let o=["*127.0.0.*","*localhost*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function r(t){return o.some(i=>new RegExp(i.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(t))}},21246:function(t,i,n){"use strict";n.d(i,{license:function(){return d}});var o=n(38882),r=n(82758),s=n(2748),a=n(87612),l=n(70799),c=n(20356),u=n(2692);class d extends c.Plugin{static make(t){return new d(t)}afterInit(t){this.j.e.on("checkReserve",async t=>{let i=this.j.o.license;if((0,o.isAllowedSubdomain)(t))return"normal";if(!i||!(0,l.isString)(i))return"";let n=(0,o.validateLicense)(i,t);return n||!(i[12]>"A")||r.IS_TEST||(n=await this.validateLicenseRemote(i,t)),n?"normal":""})}beforeDestruct(t){}async validateLicenseRemote(t,i){let n="validateJoditLicenseRemote",r=this.j.storage.get(n);if(r&&(0,o.validateLicense)(r,i))return!0;let l=document.createElement("script");return l.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(t)}&host=${encodeURIComponent(i)}`,document.body.appendChild(l),this.j.async.promise(t=>{window.onJoditResolveKeyCode=r=>{try{if((0,a.isBoolean)(r))return t(r);(0,o.validateLicense)(r,i)?(this.j.storage.set(n,r),t(!0)):t(!1)}finally{s.Dom.safeRemove(l)}},this.j.async.setTimeout(()=>{t(!1),s.Dom.safeRemove(l)},3e3)})}}u.JoditPro.plugins.add("license",d)},29606:function(t,i,n){"use strict";n.d(i,{dataBindCurrentKey:function(){return u},dataBindStoredKey:function(){return c}});var o=n(27222),r=n.n(o),s=n(6441),a=n(29807),l=n(86583);s.Config.prototype.mobileView={mode:"default"};let c="buttonmobileSView",u="buttonmobileCView";s.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:r(),command:"mobileView",isActive:t=>(0,l.dataBind)(t,u)&&"default"!==(0,l.dataBind)(t,u),isChildActive:(t,i)=>{var n,o;let r=null==(o=i.control)||null==(n=o.args)?void 0:n[0];return(0,a.isNumeric)(r)&&(r=Number(r)),((0,l.dataBind)(t,u)||"default")===r},exec:t=>!!(0,l.dataBind)(t,c)&&void t.execCommand("mobileView",!1,(0,l.dataBind)(t,c)),childExec:(t,i,{button:n})=>{var o,r;let s=null==(r=n.control)||null==(o=r.args)?void 0:o[0];t.execCommand("mobileView",!1,(0,a.isNumeric)(s)?Number(s):s)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(29606),a=n(65478),l=n(43555),c=n(50911),u=n(2692);class d extends c.Plugin{className(){return"MobileView"}afterInit(t){t.registerCommand("mobileView",{exec:(i,n,o)=>{this.__currentMode===o&&(o="default"),this.__currentMode=o,(0,l.dataBind)(t,s.dataBindCurrentKey,o),"default"!==this.__currentMode&&(0,l.dataBind)(t,s.dataBindStoredKey,o),"default"===o?(0,l.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,l.css)(this.j.currentPlace.slots.center,{width:o,margin:"0 auto"})}}),t.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,o._)(this,"__currentMode","default")}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":beforeSetMode.mobileView")],d.prototype,"__beforeSetMode",null),d=(0,r.__decorate)([a.component],d),u.JoditPro.plugins.add("mobileView",d)},13109:function(t,i,n){"use strict";var o=n(17405),r=n.n(o),s=n(64889),a=n(6441);a.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},a.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(),command:"insertPageBreak"},a.Config.prototype.iframeStyle=`${a.Config.prototype.iframeStyle};${s.default.replace(/[\n\t]/g,"")}`},64889:function(t,i){"use strict";i.default=`[data-jodit-page-break] {
577
577
  display: flex;
578
578
  height: 24px;
579
579
  box-sizing: border-box;