jodit-pro 4.14.2 → 4.14.3
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.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +9 -5
- package/es2015/jodit.min.js +3 -3
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.js +3 -3
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +3 -3
- package/es2021/jodit.js +9 -5
- package/es2021/jodit.min.js +3 -3
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +3 -3
- package/es2021.en/jodit.js +9 -5
- package/es2021.en/jodit.min.js +3 -3
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +11 -5
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/plugins/license/helpers/helpers.js +1 -1
- package/package.json +1 -1
package/es2015/jodit.min.js
CHANGED
|
@@ -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.14.
|
|
4
|
+
* Version: v4.14.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,function(){return function(){"use strict";var e,t,n,i,o={6441:function(e,t,n){n.d(t,{Config:function(){return r}});var i=n(82758);let o={};class r{static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=i.globalDocument,this.ownerWindow=i.globalWindow,this.shadowRoot=null,this.nonce="",this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.asyncStorage={},this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=i.INSERT_AS_HTML,this.enter=i.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:i.PARAGRAPH,this.defaultMode=i.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,o)}}o=r.prototype,r.prototype.controls={}},26992:function(e,t,n){n.d(t,{Async:function(){return p}});var i=n(82758),o=n(91898),r=n(12045),s=n(23282),a=n(84767),l=n(72430),c=n(14773),u=n(70799),d=n(86068),h=n(38837),f=n(93661);class p{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...n){if(this.isDestructed)return 0;let i={};(0,d.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(i=t).timeout||0),i.label&&this.clearLabel(i.label);let r=(0,o.setTimeout)(e,t,...n),s=i.label||r;return this.timers.set(s,r),this.__callbacks.set(s,e),r}updateTimeout(e,t){if((0,h.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let n=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,o.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,u.isString)(e))return this.clearLabel(e);(0,o.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,n=!1){let i=0,a=!1,u=[],d=(...t)=>{if(!a){i=0;let n=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(n)?n.finally(e):e()}}},h=(...r)=>{a=!1,t?(!i&&n&&d(...r),(0,o.clearTimeout)(i),i=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,i)):d(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let n,i=!1,o=!0;return(...r)=>{if(n=r,i){o=!0;return}o=!0,t&&(o=!1,e(...n)),i=!0,this.__queueMicrotaskNative(()=>{i=!1,!this.isDestructed&&o&&e(...n)})}}throttle(e,t,n=!1){let i=null,o,r,a;return(...n)=>{(o=!0,a=n,t)?i||(r=()=>{o?(e(...a),o=!1,i=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,i)):i=null})():e(...a)}}promise(e){let t=()=>{},n=new Promise((n,i)=>{t=()=>i((0,f.abort)("Abort async")),this.promisesRejections.add(t),e(n,i)});return!n.finally&&"u">typeof process&&!i.IS_ES_NEXT&&(n.finally=e=>(n.then(e).catch(e),n)),n.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),n.rejectCallback=t,n}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let n=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(n),n}requestIdlePromise(e){return this.promise(t=>{let n=this.requestIdleCallback(()=>t(n),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let n=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){var i,o;let r=globalThis.scheduler.postTask(e,(i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({},t),o=o={signal:n.signal},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))}),i));return r.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),r}return this.promise((i,o)=>{let r=this.setTimeout(()=>{try{i(e())}catch(e){o(e)}this.__controllers.delete(n)},t.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(n),o((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,o.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,n,i,o;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(e=null==queueMicrotask?void 0:queueMicrotask.bind(window))?e:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(n=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?n:(e,t)=>{var n;let i=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},null!=(n=null==t?void 0:t.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(o=null==(i=window.cancelIdleCallback)?void 0:i.bind(window))?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,n){n.d(t,{Async:function(){return i.Async}});var i=n(26992)},4012:function(e,t,n){n.d(t,{Component:function(){return l}});var i=n(8884),o=n(78213),r=n(580),s=n(21537);let a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,n){let i=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),i.push(`__${e}`)),t&&(i.push("_",t),i.push("_",(0,s.isVoid)(n)?"true":n.toString())),i.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===o.STATUSES.ready}get isDestructed(){return this.componentStatus===o.STATUSES.destructed}get isInDestruct(){return o.STATUSES.beforeDestruct===this.componentStatus||o.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(o.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(o.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let n=Object.getPrototypeOf(this);n&&(0,s.isFunction)(n.setStatusComponent)&&n.setStatusComponent(e,t);let i=a.get(this),o=null==i?void 0:i[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let n=a.get(this);n||(n={},a.set(this,n)),n[e]||(n[e]=[]),n[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new i.Async,this.ownerWindow=window,this.__componentStatus=o.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=o.STATUSES},91907:function(e,t,n){n.d(t,{Component:function(){return i.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var i=n(4012),o=n(78213),r=n(80480)},78213:function(e,t,n){n.d(t,{STATUSES:function(){return i}});let i={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(e,t,n){n.d(t,{ViewComponent:function(){return o}});var i=n(4012);class o extends i.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.ow&&(this.ownerWindow=e.ow),e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),this.setParentView(e)}}},82758:function(e,t,n){n.r(t),n.d(t,{ACCURACY:function(){return q},APP_VERSION:function(){return i},BASE_PATH:function(){return eh},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return W},CLIPBOARD_ID:function(){return eg},COMMAND_KEYS:function(){return V},EMULATE_DBLCLICK_TIMEOUT:function(){return et},ES:function(){return o},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return D},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return eo},INSERT_CLEAR_HTML:function(){return ei},INSERT_ONLY_TEXT:function(){return er},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return k},IS_ES_MODERN:function(){return r},IS_ES_NEXT:function(){return s},IS_IE:function(){return J},IS_INLINE:function(){return C},IS_MAC:function(){return ea},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return el},KEY_ALT:function(){return x},KEY_BACKSPACE:function(){return P},KEY_DELETE:function(){return F},KEY_DOWN:function(){return N},KEY_ENTER:function(){return L},KEY_ESC:function(){return z},KEY_F3:function(){return H},KEY_LEFT:function(){return R},KEY_META:function(){return j},KEY_RIGHT:function(){return M},KEY_SPACE:function(){return B},KEY_TAB:function(){return A},KEY_UP:function(){return O},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ee},MODE_SOURCE:function(){return $},MODE_SPLIT:function(){return G},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return p},NEARBY:function(){return U},NO_EMPTY_TAGS:function(){return T},PARAGRAPH:function(){return K},PASSIVE_EVENTS:function(){return eb},SAFE_COUNT_CHANGE_CALL:function(){return es},SET_TEST:function(){return d},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return b},SPACE_REG_EXP_END:function(){return w},SPACE_REG_EXP_START:function(){return y},TEMP_ATTR:function(){return ep},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return X},TEXT_RTF:function(){return Q},TOKENS:function(){return h},globalDocument:function(){return _},globalWindow:function(){return S},lang:function(){return em}});let i="4.14.2",o="es2015",r=!0,s=!1,a=!0,l=!1,c=!1,u="https://xdsoft.net/jodit/pro/",d=()=>l=!0,h={},f="\uFEFF",p="\xa0",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,b=()=>/[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,w=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,S="u">typeof window?window:void 0,_="u">typeof document?document:void 0,k=/^(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,C=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),I=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],D=new Set([...I,"br","hr"]),T=new Set(I),j="Meta",P="Backspace",A="Tab",L="Enter",z="Escape",x="Alt",R="ArrowLeft",O="ArrowUp",M="ArrowRight",N="ArrowDown",B="Space",F="Delete",H="F3",U=5,q=10,V=[j,P,F,O,N,M,R,L,z,H,A],W="br",K="p",Y=1,$=2,G=3,J="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),X=J?"text":"text/plain",Z=J?"html":"text/html",Q=J?"rtf":"text/rtf",ee="jodit-selection_marker",et=300,en="insert_as_html",ei="insert_clear_html",eo="insert_as_text",er="insert_only_text",es=10,ea=void 0!==S&&/Mac|iPod|iPhone|iPad/.test(S.navigator.platform),el={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ea?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ec=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:eu,isMin:ed}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=_.currentScript;if(e)return ec(e.src);let t=_.querySelectorAll("script[src]");return t&&t.length?ec(t[t.length-1].src):ec(S.location.href)})(),eh=eu,ef=ed,ep="data-jodit-temp",em={},eg="clipboard",ev="source-consumer",eb=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(e,t,n){n.d(t,{Create:function(){return a}});var i=n(82758),o=n(2748),r=n(21537),s=n(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,n){let i=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(i),t&&((0,r.isPlainObject)(t)?(0,r.attr)(i,t):n=t),n&&(0,r.asArray)(n).forEach(e=>o.Dom.append(i,(0,r.isString)(e)?this.fromHTML(e):e)),i}div(e,t,n){let i=this.element("div",t,n);return e&&(i.className=e),i}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});o.Dom.append(this.doc.body,t);let n=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(n,"iframe.contentWindow.document"),!n)throw Error("Iframe error");return n.open(),n.write("<!DOCTYPE html><html><head></head><body></body></html>"),n.close(),[n.body,t]}span(e,t,n){let i=this.element("span",t,n);return e&&(i.className=e),i}a(e,t,n){let i=this.element("a",t,n);return e&&(i.className=e),i}text(e){return this.doc.createTextNode(e)}fake(){return this.text(i.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let n=this.div();n.innerHTML=e.toString();let i=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(o.Dom.safeRemove(i),t){let e=(0,r.refs)(i);Object.keys(t).forEach(n=>{let i=e[n];i&&!1===t[n]&&o.Dom.hide(i)})}return i}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let n=t[e.tagName.toLowerCase()];(0,r.isFunction)(n)?n(e):(0,r.isPlainObject)(n)&&(0,r.attr)(e,n)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,n){n.d(t,{Create:function(){return i.Create}});var i=n(20218)},45219:function(e,t,n){n.d(t,{autobind:function(){return o}});var i=n(23282);function o(e,t,n){if(!(0,i.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=n.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,n){n.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var i=n(78213),o=n(2748),r=n(27613),s=n(82760);function a(e,t){let n=Object.getOwnPropertyDescriptor(e,t);return!n||(0,r.isFunction)(n.get)?null:n.value}function l(e,t,n){let i=n.get;if(!i)throw(0,s.error)("Getter property descriptor expected");n.get=function(){let e=i.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:e}),e}}function c(e,t,n){let a=n.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;n.value=function(...e){var t;let n,i=null!=(n=this.od)?n:document,r=c.get(i);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&o.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(i,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(i.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,n){n.d(t,{component:function(){return s},getComponentClass:function(){return a}});var i=n(82758),o=n(80568);let r=new Map;function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}let n=(0,o.getClassName)(e.prototype);if(r.has(n)&&!i.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return r.set(n,t),t}function a(e){return r.get(e)}},81577:function(e,t,n){n.d(t,{debounce:function(){return a},throttle:function(){return l}});var i=n(91907),o=n(27613),r=n(38837),s=n(89890);function a(e,t=!1,n="debounce"){return(a,l)=>{let c=a[l];if(!(0,o.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(i.STATUSES.ready,i=>{let{async:s}=i;(0,r.assert)(null!=s,`Component ${i.componentName||i.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(i):e,c=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:i.defaultTimeout;Object.defineProperty(i,l,{configurable:!0,value:s[n](i[l].bind(i),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,n){n.d(t,{derive:function(){return o}});var i=n(23282);function o(...e){return t=>{let n=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,i.isFunction)(s.value)&&!(0,i.isFunction)(n[t])&&Object.defineProperty(n,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,n){n.d(t,{hook:function(){return r}});var i=n(23282),o=n(89890);function r(e){return(t,n)=>{if(!(0,i.isFunction)(t[n]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[n].call(e)})}}},78927:function(e,t,n){n.d(t,{idle:function(){return s}});var i=n(91907),o=n(23282),r=n(89890);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(i.STATUSES.ready,e=>{let{async:n}=e,i=e[t];e[t]=(...t)=>n.requestIdleCallback(i.bind(e,...t))})}}},65478:function(e,t,n){n.r(t),n.d(t,{autobind:function(){return i.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return f.watch}});var i=n(45219),o=n(33433),r=n(87325),s=n(81577),a=n(55153),l=n(97357),c=n(78927),u=n(31589),d=n(53213),h=n(13525),f=n(37133)},31589:function(e,t,n){n.d(t,{nonenumerable:function(){return i}});let i=(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}},53213:function(e,t,n){n.d(t,{persistent:function(){return r}});var i=n(78213),o=n(39955);function r(e,t){e.hookStatus(i.STATUSES.ready,e=>{let n=(0,o.isViewObject)(e)?e:e.jodit,i=`${n.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=n.storage.get(i))?e:r},set(e){n.storage.set(i,e)}})})}},13525:function(e,t,n){n.d(t,{wait:function(){return s}});var i=n(78213),o=n(23282),r=n(89890);function s(e){return(t,n)=>{let s=t[n];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(i.STATUSES.ready,t=>{let{async:i}=t,o=t[n],r=0;Object.defineProperty(t,n,{configurable:!0,value:function n(...s){i.clearTimeout(r),e(t)?o.apply(t,s):r=i.setTimeout(()=>n(...s),10)}})})}}},37133:function(e,t,n){n.d(t,{watch:function(){return d}});var i=n(78213),o=n(73026),r=n(46559),s=n(23282),a=n(72430),l=n(39955),c=n(89890),u=n(37790);function d(e,t){return(n,d)=>{var h;if(!(0,s.isFunction)(n[d]))throw(0,c.error)("Handler must be a Function");let f=null==(h=null==t?void 0:t.immediately)||h,p=null==t?void 0:t.context,m=t=>{let i=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...n)=>{if(!t.isInDestruct)return t[d](e,...n)};f||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[n,o]=e.split(":"),r=p;n.length&&(r=t.get(n)),(0,s.isFunction)(r)&&(r=r(t)),i.events.on(r||t,o,c),r||i.events.on(o,c),t.hookStatus("beforeDestruct",()=>{i.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${d.join(".")}`,c);let f=(0,u.getPropertyDescriptor)(n,l);Object.defineProperty(t,l,{configurable:!0,set(e){let n=h;n!==e&&(h=e,f&&f.set&&f.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${d.join(".")}`,c),c(l,n,h))},get(){return f&&f.get?f.get.call(t):h}})})};(0,s.isFunction)(n.hookStatus)?n.hookStatus(i.STATUSES.ready,m):m(n)}}},2748:function(e,t,n){n.d(t,{Dom:function(){return y}});var i=n(82758),o=n(4510),r=n(68345),s=n(23282),a=n(58487),l=n(42320),c=n(70799),u=n(86068),d=n(49055),h=n(38837),f=n(29960),p=n(41180),m=n(86583),g=n(89890),v=n(37790);let b=RegExp(`<([a-z]+)[^>]+${i.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,n){let i,o=e;n.s.save();let r=!1;do r=!1,(i=o.nextSibling)&&!y.isBlock(i)&&!y.isTag(i,"br")&&(r=!0,o=i);while(r);return y.__wrapElements(t,n,e,o)}static __wrapElements(e,t,n,i){let o=(0,c.isString)(e)?t.createInside.element(e):e;n.parentNode&&n.parentNode.insertBefore(o,n);let r=n;for(;r&&(r=n.nextSibling,o.appendChild(n),n!==i&&r);)n=r;return t.s.restore(),o}static wrapInline(e,t,n){let i,o=e,r=e;n.s.save();let s=!1;do s=!1,(i=o.previousSibling)&&!y.isBlock(i)&&(s=!0,o=i);while(s);do s=!1,(i=r.nextSibling)&&!y.isBlock(i)&&(s=!0,r=i);while(s);return y.__wrapElements(t,n,o,r)}static wrap(e,t,n){let i=(0,c.isString)(t)?n.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(i,e),i.appendChild(e)}else{let t=e.extractContents();e.insertNode(i),i.appendChild(t)}return i}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,n){let i=e;for(;i&&i!==t&&!(e!==i&&n(i));){let e=i.firstChild||i.nextSibling;if(!e){for(;i&&!i.nextSibling;)if((i=i.parentNode)===t)return;e=null==i?void 0:i.nextSibling}i=e}}static replace(e,t,n,i=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(n,"Need create instance for new tag"),t=n.fromHTML(t)),(0,c.isString)(t)?((0,h.assert)(n,"Need create instance for new tag"),s=n.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return i&&y.isElement(e)&&y.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return y.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(i.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){return y.isNode(e)&&!y.closest(e,e=>y.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=i.NO_EMPTY_TAGS){let n;if(!e)return!0;n=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return y.isText(e)?o(e):!(y.isElement(e)&&n(e))&&y.each(e,e=>{if(y.isText(e)&&!o(e)||y.isElement(e)&&n(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return y.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return y.isTag(e,i.LIST_TAGS)}static isLeaf(e){return y.isTag(e,"li")}static isImage(e){return y.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,u.isVoid)(e)&&"object"==typeof e&&y.isNode(e)&&i.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!y.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!y.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!y.isNode(e))return!1;let n=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(n?n.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,p.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.isVoid)(e)&&y.isHTMLElement(e)&&y.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return y.__deepMost(e,t,!1)}static last(e,t){return y.__deepMost(e,t,!0)}static __deepMost(e,t,n){let i=n?"lastChild":"firstChild",o=n?"previousSibling":"nextSibling",r=null==e?void 0:e[i];if(!r)return null;do{if(t(r))return r;let n=r[i]||r[o];if(!n&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[o]&&r.parentNode!==e);n=null==r?void 0:r[o]}r=n}while(r);return null}static prev(e,t,n,i=!0){return y.find(e,t,n,!1,i)}static next(e,t,n,i=!0){return y.find(e,t,n,!0,i)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,n){let i=e=>y.isElement(e)&&e.classList.contains(t),o=e.parentNode;return n?y.prev(e,i,o):y.next(e,i,o)}static find(e,t,n,i=!0,o=!0){let r=this.nextGen(e,n,i,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,n=!0,i=!0){let o=[],r=e;do{let t=n?r.nextSibling:r.previousSibling;for(;t;)o.push(t),t=n?t.nextSibling:t.previousSibling;o.reverse(),yield*this.runInStack(e,o,n,i),r=r.parentNode}while(r&&r!==t);return null}static each(e,t,n=!0){let i=this.eachGen(e,n),o=i.next();for(;!o.done;){if(!1===t(o.value))return!1;o=i.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,n,i=!0){for(;t.length;){let o=t.pop();if(i){let e=n?o.lastChild:o.firstChild;for(;e;)t.push(e),e=n?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,n,i="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=y.findWithCurrent(r[o],t,r,i,o);if(e)return e}for(;r&&!r[i]&&r!==n;)r=r.parentNode;r&&r[i]&&r!==n&&(r=r[i])}while(r&&r!==n);return null}static findSibling(e,t=!0,n=e=>!y.isEmptyTextNode(e)){let i=y.sibling(e,t);for(;i&&!n(i);)i=y.sibling(i,t);return i&&n(i)?i:null}static findNotEmptySibling(e,t){return y.findSibling(e,t,e=>{var t;return!y.isEmptyTextNode(e)&&!!(!y.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,n){return(0,v.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,d.trim)((null==e?void 0:e.nodeValue)||"").length)),n)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,n,i=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===n||!o.parentNode)break;o=o.parentNode}while(o&&o!==n);return o===n&&i&&t(o)?o:null}static closest(e,t,n){let i,o=e=>e.toLowerCase();if((0,s.isFunction)(t))i=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));i=t=>!!(t&&e.has(o(t.nodeName)))}else i=e=>!!(e&&o(t)===o(e.nodeName));return y.up(e,i,n)}static furthest(e,t,n){let i=null,o=null==e?void 0:e.parentElement;for(;o&&o!==n;)t(o)&&(i=o),o=null==o?void 0:o.parentElement;return i}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var n;null==(n=e.parentNode)||n.insertBefore(t,e.nextSibling)}static before(e,t){var n;null==(n=e.parentNode)||n.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,n=!1,r=()=>!0){let s=(e.ownerDocument||i.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,n?t.firstChild:null)}static isOrContains(e,t,n=!1){return e===t?!n:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>y.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let n=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,i.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),n&&e.setStartBefore(n)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let n=e.tagName.toLowerCase();return t instanceof Set?t.has(n)||t.has(e.tagName.toUpperCase()):n===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,f.attr)(e,t),(0,f.attr)(e,i.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,f.attr)(e,i.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+i.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(b,"$2")}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(i.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,n){n.d(t,{Dom:function(){return i.Dom},LazyWalker:function(){return o.LazyWalker}});var i=n(2748),o=n(70071)},70071:function(e,t,n){n.d(t,{LazyWalker:function(){return s}});var i=n(45219),o=n(2748),r=n(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=o.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var e;if(this.workNodes){this.isWorked=!0;let t=0,n=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<n;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([i.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,n){n.d(t,{EventEmitter:function(){return u}});var i=n(82758),o=n(46559),r=n(68345),s=n(23282),a=n(70799),l=n(89890),c=n(15738);class u{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,o.splitArray)(e).map(e=>e.trim()).forEach(e=>{let n=e.split("."),i=n[1]||c.defaultNameSpace;t.call(this,n[0],i)})}__getStore(e){if(!e)throw(0,l.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&delete e[this.__key]}__triggerNativeEvent(e,t){let n=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?n.initEvent(t,!0,!0):(n.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(n,e,{value:t[e],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(n)}get current(){return this.currents[this.currents.length-1]}on(e,t,n,o){let c,u,h,f;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,f=n):(c=e,u=t,h=n,f=o),!((0,a.isString)(u)||(0,a.isStringArray)(u))||0===u.length)throw(0,l.error)("Need events names");if(!(0,s.isFunction)(h))throw(0,l.error)("Need event handler");if((0,r.isArray)(c))return c.forEach(e=>{this.on(e,u,h,f)}),this;let p=c,m=this.__getStore(p),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(p)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(u,(e,t)=>{var n,o;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let r={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,r,null==f?void 0:f.top),d(p)){let t=i.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(n=null==f?void 0:f.capture)&&n}:null!=(o=null==f?void 0:f.capture)&&o;v.options=t,p.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(p,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let n=this.__domEventsMap.get(e)||new Set;n.add(t),this.__domEventsMap.set(e,n)}__unmemoryDOMSubjectToHandler(e,t){let n=this.__domEventsMap,i=n.get(e)||new Set;i.delete(t),i.size?n.set(e,i):n.delete(e)}one(e,t,n,i){let o,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,r=e,s=t,l=n):(o=e,r=t,s=n,l=i);let c=(...e)=>(this.off(o,r,c),s(...e));return this.on(o,r,c,l),this}off(e,t,n){let i,o,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(i=this,o=e,l=t):(i=e,o=t,l=n),(0,r.isArray)(i))return i.forEach(e=>{this.off(e,o,l)}),this;let u=i,h=this.__getStore(u);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.length)return h.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let f=e=>{var t;d(u)&&(u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback))},p=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&p(e,t)});let n=h.get(e,t);if(n&&n.length)if((0,s.isFunction)(l)){let i=h.indexOf(e,t,l);!1!==i&&(f(n[i]),n.splice(i,1),n.length||h.clearEvents(t,e))}else n.forEach(f),n.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{p(e,t)}):p(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let n=(0,a.isString)(e)?this:e,i=(0,a.isString)(e)?e:t;if("string"!=typeof i)throw(0,l.error)("Need event names");let o=this.__getStore(n);this.__eachEvent(i,(e,t)=>{let i=o.get(e,t);i&&this.__stopped.push(i),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(n,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...n){let i,o,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...n]:n;if(!d(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&d(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(d(r))this.__triggerNativeEvent(r,e);else{let n=h.get(e,t);if(n)try{[...n].every(t=>!this.__isStopped(n)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...u),this.currents.pop(),void 0!==o&&(i=o),!0))}finally{this.__removeStop(n)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let n=this.fire.apply(this,[r,e+"."+t,...u]);void 0!==n&&(i=n)})}}),i}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=i.globalDocument,this.__prepareEvent=e=>{!e.cancelBubble&&(e.composed&&(0,s.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=new Date().getTime()}}function d(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,n){n.d(t,{Eventify:function(){return i}});class i{on(e,t){var n;return this.__map.has(e)||this.__map.set(e,new Set),null==(n=this.__map.get(e))||n.add(t),this}off(e,t){var n;return this.__map.has(e)&&(null==(n=this.__map.get(e))||n.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var n;let i;return this.__map.has(e)&&(null==(n=this.__map.get(e))||n.forEach(e=>{i=e(...t)})),i}constructor(){this.__map=new Map}}},57012:function(e,t,n){n.d(t,{eventEmitter:function(){return i}});let i=new(n(98220)).EventEmitter},3827:function(e,t,n){n.d(t,{EventEmitter:function(){return i.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var i=n(98220),o=n(72757),r=n(73026),s=n(15738)},73026:function(e,t,n){n.d(t,{observable:function(){return c}});var i=n(68345),o=n(59292),r=n(72430),s=n(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},n={},c=(t,o)=>((0,i.isArray)(t)?t.map(e=>c(e,o)):(n[t]||(n[t]=[]),n[t].push(o)),e),u=(o,...r)=>{if((0,i.isArray)(o))return void o.map(e=>u(e,...r));try{!t[o]&&n[o]&&(t[o]=!0,n[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,n=[])=>{let i={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=n.concat(a).filter(e=>e.length);i[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set:t=>{let n=i[a];if(!(0,o.isFastEqual)(i[a],t)){u(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):i[a]=t;let o=[];u(["change",...l.reduce((e,t)=>(o.push(t),e.push(`change.${o.join(".")}`),e),[])],l.join("."),n,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):i[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(i[a])&&d(i[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,n){n.d(t,{EventHandlersStore:function(){return s},defaultNameSpace:function(){return r}});var i=n(4510),o=n(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let n=this.__store.get(t);return(0,o.assert)(n,"-"),n[e]}}indexOf(e,t,n){let i=this.get(e,t);if(i){for(let e=0;e<i.length;e+=1)if(i[e].originalCallback===n)return e}return!1}namespaces(e=!1){let t=(0,i.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,n,i=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),i?o[e].unshift(n):o[e].push(n)}clear(){this.__store.clear()}clearEvents(e,t){let n=this.__store.get(e);n&&n[t]&&(delete n[t],Object.keys(n).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(e,t,n){n.d(t,{eventEmitter:function(){return C},extendLang:function(){return w},getContainer:function(){return _},getPopupViewRoot:function(){return k},instances:function(){return p},modules:function(){return y},pluginSystem:function(){return b},uniqueUid:function(){return v}});var i=n(19306),o=n(70799),r=n(39955),s=n(12475),a=n(29960),l=n(41180),c=n(80568),u=n(41876),d=n(57012),h=n(82758),f=n(22732);let p={},m=1,g=new Set;function v(){function e(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let t=e();for(;g.has(t);)t=e();return g.add(t),t}let b=new u.PluginSystem({getContainer:_}),y={},w=e=>{Object.keys(e).forEach(t=>{h.lang[t]?Object.assign(h.lang[t],e[t]):h.lang[t]=e[t]})},S=new WeakMap;function _(e,t,n="div",l=!1){let u=(0,o.isString)(t)?t:t?(0,c.getClassName)(t.prototype):"jodit-utils",d=S.get(e)||{},h=u+n,p=(0,r.isViewObject)(e)?e:e.j,m=null;if(!d[h]){let t=p.c;if(m=k(p.o,p.container,e.od.body),l&&(0,i.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===n?e.ed.head:e.ed.body;m=(0,i.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(n,{className:`jodit jodit-${(0,s.kebabCase)(u)}-container jodit-box`});p.o.nonce&&("style"===n||"script"===n)&&(0,a.attr)(o,"nonce",p.o.nonce),o.classList.add(`jodit_theme_${p.o.theme||"default"}`),f.Dom.append(m,o),d[h]=o,e.hookStatus("beforeDestruct",()=>{p.events.off(o),f.Dom.safeRemove(o),delete d[h],Object.keys(d).length&&S.delete(e)}),S.set(e,d),p.events.fire("getContainer",o)}return d[h].classList.remove("jodit_theme_default","jodit_theme_dark"),d[h].classList.add(`jodit_theme_${p.o.theme||"default"}`),d[h]}function k(e,t,n){var i,o,r;return null!=(r=null!=(o=null!=(i=e.popupRoot)?i:e.shadowRoot)?o:f.Dom.closest(t,e=>f.Dom.isHTMLElement(e)&&(f.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),n))?r:n}let C=d.eventEmitter},29999:function(e,t,n){n.d(t,{asArray:function(){return o}});var i=n(68345);let o=e=>(0,i.isArray)(e)?e:[e]},76855:function(e,t,n){n.d(t,{asArray:function(){return i.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var i=n(29999),o=n(46559),r=n(4510)},46559:function(e,t,n){n.d(t,{splitArray:function(){return i}});function i(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,n){n.d(t,{toArray:function(){return r}});var i=n(70722),o=n(58844);let r=function(...e){var t;return((0,i.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}},91898:function(e,t,n){n.d(t,{clearTimeout:function(){return i.clearTimeout},setTimeout:function(){return i.setTimeout}});var i=n(13252)},13252:function(e,t,n){n.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var i=n(82758);function o(e,t,...n){return t?i.globalWindow.setTimeout(e,t,...n):(e.call(null,...n),0)}function r(e){i.globalWindow.clearTimeout(e)}},54765:function(e,t,n){n.d(t,{hasBrowserColorPicker:function(){return o}});var i=n(82758);function o(){let e=!0;try{let t=i.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,n){n.d(t,{hasBrowserColorPicker:function(){return i.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return p.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return b.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return w.isPromise},isSet:function(){return S.isSet},isString:function(){return _.isString},isStringArray:function(){return _.isStringArray},isURL:function(){return k.isURL},isValidName:function(){return C.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return D.isWindow}});var i=n(54765),o=n(12045),r=n(68345),s=n(87612),a=n(59292),l=n(23282),c=n(58487),u=n(29673),d=n(60132),h=n(72913),f=n(19306),p=n(45603),m=n(78116),g=n(70722),v=n(84767),b=n(29807),y=n(72430),w=n(14773),S=n(42320),_=n(70799),k=n(26049),C=n(37508),E=n(39955),I=n(86068),D=n(52742)},12045:function(e,t,n){n.d(t,{isAbortError:function(){return i}});function i(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,n){n.d(t,{isArray:function(){return i}});function i(e){return Array.isArray(e)}},87612:function(e,t,n){n.d(t,{isBoolean:function(){return i}});function i(e){return"boolean"==typeof e}},59292:function(e,t,n){n.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var i=n(67462);function o(e,t){return e===t||(0,i.stringify)(e)===(0,i.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,n){n.d(t,{isFunction:function(){return i}});function i(e){return"function"==typeof e}},29673:function(e,t,n){n.d(t,{isHtmlFromWord:function(){return i}});function i(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==e.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==e.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==e.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==e.search(/style='[^']*mso-/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}},58487:function(e,t,n){n.d(t,{isHTML:function(){return o}});var i=n(70799);let o=e=>(0,i.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))},60132:function(e,t,n){n.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var i=n(2748),o=n(23282),r=n(86068);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&i.Dom.isElement(e.container)}},72913:function(e,t,n){n.d(t,{isInt:function(){return r}});var i=n(29807),o=n(70799);function r(e){return(0,o.isString)(e)&&(0,i.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,n){n.d(t,{isJoditObject:function(){return o}});var i=n(23282);function o(e){return!!(e&&e instanceof Object&&(0,i.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,n){n.d(t,{isLicense:function(){return o}});var i=n(70799);let o=e=>(0,i.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)},78116:function(e,t,n){n.d(t,{isMarker:function(){return o}});var i=n(2748);function o(e){return i.Dom.isMarker(e)}},70722:function(e,t,n){n.d(t,{isNativeFunction:function(){return i}});function i(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)))}},84767:function(e,t,n){n.d(t,{isNumber:function(){return i}});function i(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,n){n.d(t,{isNumeric:function(){return o}});var i=n(70799);function o(e){if((0,i.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},72430:function(e,t,n){n.d(t,{isPlainObject:function(){return o}});var i=n(52742);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,i.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,n){n.d(t,{isPromise:function(){return i}});function i(e){return e&&"function"==typeof e.then}},42320:function(e,t,n){n.d(t,{isSet:function(){return o}});var i=n(23282);function o(e){return!!e&&(0,i.isFunction)(e.has)&&(0,i.isFunction)(e.add)&&(0,i.isFunction)(e.delete)}},70799:function(e,t,n){n.d(t,{isString:function(){return o},isStringArray:function(){return r}});var i=n(68345);function o(e){return"string"==typeof e}function r(e){return(0,i.isArray)(e)&&o(e[0])}},26049:function(e,t,n){n.d(t,{isURL:function(){return o}});var i=n(82758);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=i.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,n){n.d(t,{isValidName:function(){return i}});function i(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,n){n.d(t,{isViewObject:function(){return o}});var i=n(23282);function o(e){return!!(e&&e instanceof Object&&(0,i.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,n){n.d(t,{isVoid:function(){return i}});function i(e){return null==e}},52742:function(e,t,n){n.d(t,{isWindow:function(){return i}});function i(e){return null!=e&&e===e.window}},35278:function(e,t,n){n.d(t,{colorToHex:function(){return i}});let i=e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let n=parseInt(t[2],10),i=parseInt(t[3],10),o=(parseInt(t[4],10)|i<<8|n<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}},58149:function(e,t,n){n.d(t,{colorToHex:function(){return i.colorToHex}});var i=n(35278)},32574:function(e,t,n){n.d(t,{applyStyles:function(){return u}});var i=n(82758),o=n(2748),r=n(49055),s=n(29960),a=n(41180),l=n(76078);function c(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,n)=>{switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function u(e){let t=/<html(?:\s[^>]*)?>/i.exec(e);if(!t)return e;let n=(e=e.substring(t.index)).toLowerCase().lastIndexOf("</html>");-1!==n&&(e=e.substring(0,n+7));let u=i.globalDocument.createElement("iframe");(0,a.css)(u,"display","none"),o.Dom.append(i.globalDocument.body,u);let d="";try{let t=u.contentDocument||(u.contentWindow?u.contentWindow.document:null);if(t){t.open(),t.write(e),t.close(),o.Dom.each(t.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,s.attr)(e,"style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let n=t.styleSheets[e].cssRules;for(let e=0;e<n.length;e+=1)""!==n[e].selectorText&&(0,l.$$)(n[e].selectorText,t.body).forEach(t=>{t.style.cssText=c(n[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!i.IS_PROD)throw e}o.Dom.each(t.body,e=>{if(o.Dom.isElement(e)){let t=(0,s.attr)(e,"style");t&&(e.style.cssText=c(t)),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null)}}),d=t.firstChild?(0,r.trim)(t.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(u)}return d&&(e=d),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,n){n.d(t,{cleanFromWord:function(){return l}});var i=n(82758),o=n(2748),r=n(4510),s=n(49055),a=n(29960);function l(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let n=i.globalDocument.createElement("div");n.innerHTML=e;let s=[];n.firstChild&&o.Dom.each(n,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,a.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),t=n.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(e,t,n){n.d(t,{htmlspecialchars:function(){return o}});var i=n(82758);function o(e){let t=i.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},75275:function(e,t,n){n.d(t,{applyStyles:function(){return i.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},nl2br:function(){return s.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var i=n(32574),o=n(53212),r=n(53326),s=n(45971),a=n(86518),l=n(91003)},45971:function(e,t,n){n.d(t,{nl2br:function(){return i}});function i(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}},86518:function(e,t,n){n.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return h}});var i=n(2748),o=n(43555),r=n(29960);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var n;if(!i.Dom.isElement(e)&&!i.Dom.isFragment(e))return;let l=[];for(let t of(i.Dom.each(e,e=>{i.Dom.isElement(e)&&i.Dom.up(e.parentNode,a)&&l.push(e)}),l))i.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==i.Dom.up(e,a))return!1;for(let t=e.parentElement;t;t=t.parentElement){let e=t.nodeName.toLowerCase();if("math"===e||"svg"===e)break;if(s.has(e))return!1}return!0}(t)&&i.Dom.safeRemove(t);let c=null!=(n=t.removeEventAttributes)?n:t.removeOnError,u=e=>{if(i.Dom.isElement(e)&&(c&&function(e){if(!i.Dom.isElement(e))return;let t=[];for(let n=0;n<e.attributes.length;n++)e.attributes[n].name.toLowerCase().startsWith("on")&&t.push(e.attributes[n].name);for(let n of t)(0,r.attrRaw)(e,n,null)}(e),h(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,o.attr)(e,"target"))){let t=((0,o.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}};u(e),i.Dom.each(e,u)}let c=["src","data","action","formaction","poster","background","xlink:href"],u=new Set(["iframe","frame","object","embed"]);function d(e,t){let n=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(n)||/^data:(?:text\/html|application\/xhtml)/.test(n))||/^data:image\/svg/.test(n)&&u.has(t)}function h(e,{safeJavaScriptLink:t,removeOnError:n}={safeJavaScriptLink:!0,removeOnError:!0}){if(!i.Dom.isElement(e))return!1;let s=!1;n&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),s=!0);let a=e.nodeName.toLowerCase(),l=(0,o.attr)(e,"href");if(t&&l&&d(l,a)){let t="u">typeof location?location.protocol:"http:";(0,o.attr)(e,"href",t+"//"+l),s=!0}if(t)for(let t of(e.hasAttribute("srcdoc")&&((0,o.attr)(e,"srcdoc",null),s=!0),c)){let n=(0,r.attrRaw)(e,t);n&&d(n,a)&&((0,o.attr)(e,t,null),s=!0)}return s}},91003:function(e,t,n){n.d(t,{stripTags:function(){return function e(t,n=document,c=null,u=!1){let d=n.createElement("div");(0,o.isString)(t)?d.innerHTML=t:i.Dom.append(d,t);let h=[];return i.Dom.each(d,e=>{i.Dom.isElement(e)&&h.push(e)}),h.forEach(t=>{if(!t.parentNode)return;if(c&&i.Dom.isTag(t,c)){let o=t.nodeName.toLowerCase(),r=i.Dom.isTag(t,l)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,n,c,u)}%%%/jodit-${o}%%%`;i.Dom.before(t,n.createTextNode(r)),i.Dom.safeRemove(t);return}if(i.Dom.isTag(t,a))return void i.Dom.safeRemove(t);if(!i.Dom.isTag(t,s))return;let o=t.nextSibling;!(i.Dom.isText(o)&&/^\s/.test(o.nodeValue||""))&&o&&i.Dom.before(o,n.createTextNode(u?"%%%jodit-single-br%%%":" "))}),(0,r.trim)(d.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,n,i)=>`<${t?"/":""}${i}>`)}}});var i=n(2748),o=n(70799),r=n(49055);let s=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),a=new Set(["script","style"]),l=new Set(["br","hr","input"])},21537:function(e,t,n){n.r(t),n.d(t,{$$:function(){return d.$$},CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return d.ConnectionError},LimitedStack:function(){return d.LimitedStack},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},OptionsError:function(){return d.OptionsError},UNSAFE_PROTO_KEYS:function(){return d.UNSAFE_PROTO_KEYS},abort:function(){return d.abort},alignElement:function(){return d.alignElement},alreadyLoadedList:function(){return d.alreadyLoadedList},appendScriptAsync:function(){return d.appendScriptAsync},appendStyleAsync:function(){return d.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return i.asArray},assert:function(){return d.assert},attr:function(){return d.attr},attrRaw:function(){return d.attrRaw},browser:function(){return d.browser},buildQuery:function(){return d.buildQuery},call:function(){return d.call},callPromise:function(){return d.callPromise},callThis:function(){return d.callThis},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearAlign:function(){return d.clearAlign},clearCenterAlign:function(){return d.clearCenterAlign},clearTimeout:function(){return o.clearTimeout},cns:function(){return d.cns},colorToHex:function(){return s.colorToHex},completeUrl:function(){return d.completeUrl},connection:function(){return d.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},css:function(){return d.css},cssInline:function(){return d.cssInline},cssPath:function(){return d.cssPath},ctrlKey:function(){return d.ctrlKey},dataBind:function(){return d.dataBind},defaultLanguage:function(){return d.defaultLanguage},error:function(){return d.error},fastClone:function(){return d.fastClone},fuzzySearchIndex:function(){return u.fuzzySearchIndex},get:function(){return d.get},getClassName:function(){return d.getClassName},getContentWidth:function(){return c.getContentWidth},getDataTransfer:function(){return d.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getPropertyDescriptor:function(){return d.getPropertyDescriptor},getScrollParent:function(){return c.getScrollParent},getXPathByElement:function(){return d.getXPathByElement},hAlignElement:function(){return d.hAlignElement},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},humanSizeToBytes:function(){return d.humanSizeToBytes},i18n:function(){return u.i18n},inView:function(){return d.inView},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isAtom:function(){return d.isAtom},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isUnsafeProtoKey:function(){return d.isUnsafeProtoKey},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return u.kebabCase},keepNames:function(){return d.keepNames},keys:function(){return d.keys},loadImage:function(){return d.loadImage},loadNext:function(){return d.loadNext},loadNextStyle:function(){return d.loadNextStyle},markAsAtomic:function(){return d.markAsAtomic},markDeprecated:function(){return d.markDeprecated},markOwner:function(){return d.markOwner},memorizeExec:function(){return d.memorizeExec},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return c.offset},options:function(){return d.options},parseQuery:function(){return d.parseQuery},position:function(){return c.position},previewBox:function(){return d.previewBox},refs:function(){return d.refs},reset:function(){return d.reset},resolveElement:function(){return d.resolveElement},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return d.scrollIntoViewIfNeeded},set:function(){return d.set},setTimeout:function(){return o.setTimeout},size:function(){return c.size},splitArray:function(){return i.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return i.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var i=n(76855),o=n(91898),r=n(27613),s=n(58149),a=n(75275),l=n(71521),c=n(56175),u=n(59007),d=n(43555)},71521:function(e,t,n){n.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return i.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.normalizeCssValue},normalizeKeyAliases:function(){return r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var i=n(21224),o=n(3760),r=n(49033),s=n(12972),a=n(9992),l=n(70091),c=n(46334),u=n(37406)},21224:function(e,t,n){n.d(t,{normalizeColor:function(){return r}});var i=n(35278),o=n(49055);let r=e=>{let t=["#"],n=(0,i.colorToHex)(e);if(!n)return!1;if(3===(n=(n=(0,o.trim)(n.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(n[e]),t.push(n[e]);return t.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n}},3760:function(e,t,n){n.d(t,{NUMBER_FIELDS_REG:function(){return a},normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var i=n(29807),o=n(86068),r=n(35278),s=n(12475);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,i.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,i.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}},49033:function(e,t,n){n.d(t,{normalizeKeyAliases:function(){return r}});var i=n(82758),o=n(49055);function r(e){let t={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>i.KEY_ALIASES[e]||e).sort((e,t)=>n[e]&&!n[t]?-1:!n[e]&&n[t]?1:n[e]&&n[t]?n[e]-n[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},12972:function(e,t,n){n.d(t,{normalizeLicense:function(){return i}});let i=(e,t=8)=>{let n=[];for(;e.length;)n.push(e.substr(0,t)),e=e.substr(t);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}},9992:function(e,t,n){n.d(t,{normalizePath:function(){return o}});var i=n(49055);let o=(...e)=>e.filter(e=>(0,i.trim)(e).length).map((t,n)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),n&&(t=t.replace(/^\//,"")),n!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")},70091:function(e,t,n){n.d(t,{normalizeRelativePath:function(){return i}});let i=e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")},46334:function(e,t,n){n.d(t,{normalizeSize:function(){return i}});let i=(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()},37406:function(e,t,n){n.d(t,{normalizeUrl:function(){return i}});let i=(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(e,t,n){n.d(t,{getContentWidth:function(){return i}});let i=(e,t)=>{let n=t.getComputedStyle(e);return e.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},35224:function(e,t,n){n.d(t,{getFixedPositionOffset:function(){return i}});function i(e){var t,n;let i=null==(t=e.ownerDocument)?void 0:t.defaultView,o=e.parentElement;for(;i&&o;){if(""!==(n=i.getComputedStyle(o)).transform&&"none"!==n.transform||""!==n.perspective&&"none"!==n.perspective||""!==n.filter&&"none"!==n.filter||"transform"===n.willChange||"perspective"===n.willChange||"filter"===n.willChange||"paint"===n.contain||"layout"===n.contain||"strict"===n.contain||"content"===n.contain){let e=o.getBoundingClientRect();return{x:e.left,y:e.top}}o=o.parentElement}return{x:0,y:0}}},16442:function(e,t,n){n.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let n=o.Dom.isHTMLElement(t),s=n&&(0,r.css)(t,"overflowY");return n&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||i.globalDocument.scrollingElement||i.globalDocument.body}}});var i=n(82758),o=n(2748),r=n(43555)},56175:function(e,t,n){n.d(t,{getContentWidth:function(){return i.getContentWidth},getFixedPositionOffset:function(){return o.getFixedPositionOffset},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return c.position},size:function(){return a.size}});var i=n(44506),o=n(35224),r=n(16442),s=n(81630),a=n(21496),l=n(81284),c=n(5700)},81630:function(e,t,n){n.d(t,{innerWidth:function(){return i}});let i=(e,t)=>{let n=t.getComputedStyle(e);return e.clientWidth-(parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"))}},21496:function(e,t,n){n.d(t,{size:function(){return o}});var i=n(27613);function o(e){return(0,i.isString)(e)||(0,i.isArray)(e)?e.length:(0,i.isPlainObject)(e)?Object.keys(e).length:0}},81284:function(e,t,n){n.d(t,{offset:function(){return i}});let i=(e,t,n,o=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=n.body,c=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=n.defaultView||n.parentWindow,d=u.pageYOffset||c.scrollTop||l.scrollTop,h=u.pageXOffset||c.scrollLeft||l.scrollLeft,f=c.clientTop||l.clientTop||0,p=c.clientLeft||l.clientLeft||0,m=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&m){let{top:e,left:n}=i(m,t,t.od,!0);s=r.top+e,a=r.left+n}else s=r.top+d-f,a=r.left+h-p;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}}},5700:function(e,t,n){n.d(t,{position:function(){return function e(t,n,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,i.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(t)&&!o){let{left:t,top:i}=e(n.iframe,n,!0);l+=t,c+=i}return{left:Math.round(l),top:Math.round(c),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var i=n(19306)},87058:function(e,t,n){n.d(t,{camelCase:function(){return i}});let i=e=>e.replace(/([-_])(.)/g,(e,t,n)=>n.toUpperCase())},67477:function(e,t,n){n.d(t,{fuzzySearchIndex:function(){return o}});var i=n(82758);function o(e,t,n=0,r=1){let s=0,a=0,l=-1,c=0,u=0;for(a=n;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,c++,u=0,-1===l&&(l=a)):s>0&&(u>=r&&t[a]!==i.INVISIBLE_SPACE?(s=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return s===e.length?[l,c]:[-1,0]}},56967:function(e,t,n){n.d(t,{i18n:function(){return c},sprintf:function(){return l}});var i=n(82758),o=n(70799),r=n(36409),s=n(43555),a=n(6441);let l=(e,t)=>{if(!t||!t.length)return e;let n=/%([sd])/g,i=n.exec(e),o=e,r=0;for(;i&&void 0!==t[r];)o=o.replace(i[0],t[r].toString()),r+=1,i=n.exec(e);return o};function c(e,t,n){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!(null==n?void 0:n.debugLanguage),u={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),f=(0,s.defaultLanguage)(null==n?void 0:n.language,h),p=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let n=e.toLowerCase();if((0,o.isString)(t[n]))return d(t[n]);let i=(0,r.ucfirst)(e);if((0,o.isString)(t[i]))return d(t[i])};void 0!==i.lang[f]?u=i.lang[f]:c||(u=void 0!==i.lang[h]?i.lang[h]:i.lang.en);let m=null==n?void 0:n.i18n;if(m&&m[f]){let e=p(m[f]);if(e)return e}return p(u)||(!c&&i.lang.en&&(0,o.isString)(i.lang.en[e])&&i.lang.en[e]?d(i.lang.en[e]):c?"{"+e+"}":(i.IS_PROD,d(e)))}},59007:function(e,t,n){n.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return i.camelCase},fuzzySearchIndex:function(){return o.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var i=n(87058),o=n(67477),r=n(56967),s=n(12475),a=n(67462),l=n(49055),c=n(36409)},12475:function(e,t,n){n.d(t,{CamelCaseToKebabCase:function(){return o},kebabCase:function(){return i}});let i=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},67462:function(e,t,n){n.d(t,{stringify:function(){return i}});function i(e,t={}){if("object"!=typeof e)return String(e);let n=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!n.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}},49055:function(e,t,n){n.d(t,{trim:function(){return o},trimChars:function(){return r},trimInv:function(){return s}});var i=n(82758);function o(e){return e.replace((0,i.SPACE_REG_EXP_END)(),"").replace((0,i.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,i.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,i.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(e,t,n){n.d(t,{ucfirst:function(){return i}});function i(e){return e.length?e[0].toUpperCase()+e.substring(1):""}},25726:function(e,t,n){n.d(t,{alignElement:function(){return c},clearAlign:function(){return a},hAlignElement:function(){return s}});var i=n(22732),o=n(29960),r=n(41180);function s(e,t){t&&"normal"!==t?"center"!==t?((0,r.css)(e,"float",t),(0,r.clearCenterAlign)(e)):(0,r.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(e,"float")&&-1!==["right","left"].indexOf((0,r.css)(e,"float").toString().toLowerCase())&&(0,r.css)(e,"float",""),(0,r.clearCenterAlign)(e))}function a(e){i.Dom.each(e,e=>{i.Dom.isHTMLElement(e)&&(0,r.cssInline)(e,"textAlign")&&((0,r.css)(e,"textAlign",""),((0,o.attr)(e,"style")||"").trim().length||(0,o.attr)(e,"style",null))})}let l=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function c(e,t){if(i.Dom.isNode(t)&&i.Dom.isElement(t)){a(t);let n=l.get(e.toLowerCase());n&&(0,r.css)(t,"textAlign",n)}}},63799:function(e,t,n){n.d(t,{alreadyLoadedList:function(){return a},appendScriptAsync:function(){return c},appendStyleAsync:function(){return u},loadNext:function(){return function e(t,n,i=0){return(0,o.isString)(n[i])?c(t,n[i]).then(()=>e(t,n,i+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,n,i=0){return(0,o.isString)(n[i])?u(t,n[i]).then(()=>e(t,n,i+1)):Promise.resolve()}}});var i=n(2748),o=n(70799),r=n(29960),s=n(66292);let a=new Map,l=e=>(t,n)=>{if(a.has(n))return a.get(n);let i=e(t,n);return a.set(n,i),i},c=l((e,t)=>e.async.promise((n,o)=>{if(e.isInDestruct)return o();let a=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(t)});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.e.one(a,"error",o).one(a,"load",n),i.Dom.append(e.od.body,a)})),u=l((e,t)=>e.async.promise((n,o)=>{if(e.isInDestruct)return o();let a=e.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.isInDestruct||e.e.on(a,"load",()=>n(a)).on(a,"error",o),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?i.Dom.append(e.o.shadowRoot,a):i.Dom.append(e.od.body,a)}))},38837:function(e,t,n){n.d(t,{assert:function(){return o}});class i extends Error{constructor(e){super(e),this.name="AssertionError"}}function o(e,t){if(!e)throw new i(`Assertion failed: ${t}`)}},29960:function(e,t,n){n.d(t,{attr:function(){return function e(t,n,l){if(!t||!(0,i.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(n))return Object.keys(n).forEach(i=>{let r=n[i];(0,o.isPlainObject)(r)&&"style"===i?(0,a.css)(t,r):("className"===i&&(i="class"),e(t,i,r))}),null;let c=(0,s.CamelCaseToKebabCase)(n);if(/^-/.test(c)){let n=e(t,`data${c}`);if(n)return n;c=c.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(c)&&t.removeAttribute(c);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===c||"height"===c)&&(e=e.replace("px","")),t.setAttribute(c,e),e}return t.getAttribute(c)}},attrRaw:function(){return l}});var i=n(23282),o=n(72430),r=n(70799),s=n(12475),a=n(41180);function l(e,t,n){if(void 0===n)return e.getAttribute(t);if(null==n){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,n)}},97639:function(e,t,n){n.d(t,{browser:function(){return i}});let i=e=>{let t=navigator.userAgent.toLowerCase(),n=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?n[2]:"webkit"===e?"chrome"===n[1]||"webkit"===n[1]:"ff"===e?"firefox"===n[1]:"msie"===e?"trident"===n[1]||"msie"===n[1]:n[1]===e}},44710:function(e,t,n){n.d(t,{buildQuery:function(){return o}});var i=n(72430);let o=(e,t)=>{let n=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];n.push((0,i.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return n.join("&")}},66292:function(e,t,n){n.d(t,{completeUrl:function(){return o}});var i=n(82758);let o=e=>("file:"===i.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)},68934:function(e,t,n){n.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,u.keys)(t,!1).reduce((n,i)=>(n[i]=(0,o.isPlainObject)(t[i])?e(t[i]):t[i],n),{})}},ConfigFlatten:function(){return d},ConfigMerge:function(){return function e(t,n){Object.keys(n).forEach(i=>{if((0,c.isUnsafeProtoKey)(i))return;let r=n[i],s=t[i];(0,o.isPlainObject)(r)&&(0,o.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[i]=r})}},ConfigProto:function(){return function e(t,n,u=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let d=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==d.presets[t.preset]){let e=d.presets[t.preset];Object.keys(e).forEach(n=>{(0,s.isVoid)(t[n])&&(t[n]=e[n])})}delete t.preset}let h={};return Object.keys(t).forEach(r=>{if((0,c.isUnsafeProtoKey)(r))return;let s=t[r],a=n?n[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,u+1);return}if(0!==u&&(0,i.isArray)(s)&&!(0,l.isAtom)(s)&&(0,i.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,n),h}}});var i=n(68345),o=n(72430),r=n(70799),s=n(86068),a=n(6441),l=n(97735),c=n(69175),u=n(37790);function d(e){return(0,u.keys)(e,!1).reduce((t,n)=>(t[n]=e[n],t),{})}},55877:function(e,t,n){n.d(t,{convertMediaUrlToVideoEmbed:function(){return s}});var i=n(82758),o=n(26049),r=n(82501);let s=(e,{width:t=400,height:n=345}={})=>{if(!(0,o.isURL)(e))return e;let s=i.globalDocument.createElement("a");s.href=e,t||(t=400),n||(n=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let i=s.pathname.split("/").filter(Boolean),o=i.findIndex(e=>/^\d+$/.test(e));if(-1===o)return e;let r=i[o],l=i[o+1];return l&&0===o&&(r+="/"+l),'<iframe width="'+t+'" height="'+n+'" src="'+a+"//player.vimeo.com/video/"+r+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let i=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(i=i.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+n+'" src="'+a+"//www.youtube.com/embed/"+i+'" frameborder="0" allowfullscreen></iframe>':e}}return e}},41180:function(e,t,n){n.d(t,{clearCenterAlign:function(){return u},css:function(){return l},cssInline:function(){return c}});var i=n(87612),o=n(72430),r=n(3760),s=n(87058),a=n(12475);function l(e,t,n,c=!1){if((0,i.isBoolean)(n)&&(c=n,n=void 0),(0,o.isPlainObject)(t)||void 0!==n){let i=(e,t,n)=>{void 0!==(n=(0,r.normalizeCssNumericValue)(t,n))&&(null==n||l(e,t,!0)!==(0,r.normalizeCssValue)(t,n))&&(e.style[t]=n)};if((0,o.isPlainObject)(t)){let n=Object.keys(t);for(let o=0;o<n.length;o+=1)i(e,(0,s.camelCase)(n[o]),t[n[o]])}else i(e,(0,s.camelCase)(t),n);return""}let u=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),f=e.style[t],p="";return void 0!==f&&""!==f?p=f:h&&!c&&(p=h.getComputedStyle(e).getPropertyValue(u)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(p.toString())&&(p=parseInt(p.toString(),10)),(0,r.normalizeCssValue)(t,p)}function c(e,t){return e.style.getPropertyValue((0,a.kebabCase)(t))}let u=e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}},15456:function(e,t,n){n.d(t,{ctrlKey:function(){return i}});let i=e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}},86583:function(e,t,n){n.d(t,{dataBind:function(){return r}});var i=n(39955);let o=new WeakMap,r=(e,t,n)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,i.isViewObject)(e.j)&&(t=e.j.e),(0,i.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===n?r[t]:(r[t]=n,n)}},96325:function(e,t,n){n.d(t,{defaultLanguage:function(){return r}});var i=n(82758),o=n(70799);let r=(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:i.globalDocument.documentElement&&i.globalDocument.documentElement.lang?i.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t},82760:function(e,t,n){n.d(t,{connection:function(){return r},error:function(){return o},options:function(){return s}});var i=n(32880);function o(e){return TypeError(e)}function r(e){return new i.ConnectionError(e)}function s(e){return new i.OptionsError(e)}},93661:function(e,t,n){n.d(t,{abort:function(){return i}});function i(e="Aborted"){return new DOMException(e,"AbortError")}},86397:function(e,t,n){n.d(t,{ConnectionError:function(){return i}});class i extends Error{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},32880:function(e,t,n){n.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return i.abort}});var i=n(93661),o=n(86397),r=n(57865)},57865:function(e,t,n){n.d(t,{OptionsError:function(){return i}});class i extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},89890:function(e,t,n){n.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},connection:function(){return i.connection},error:function(){return i.error},options:function(){return i.options}});var i=n(82760),o=n(32880)},97735:function(e,t,n){n.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var i=n(67462);function o(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,i.stringify)(e))}},80568:function(e,t,n){n.d(t,{getClassName:function(){return r},keepNames:function(){return o}});var i=n(23282);let o=new Map,r=e=>{var t;if((0,i.isFunction)(e.className))return e.className();let n=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(n))return o.get(n);if(n.name)return n.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=n.toString().match(r);return s?s[1]:""}},94643:function(e,t,n){n.d(t,{get:function(){return r}});var i=n(70799),o=n(86068);function r(e,t){if(!(0,i.isString)(e)||!e.length)return null;let n=e.split("."),r=t;try{for(let e of n){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},38420:function(e,t,n){n.d(t,{humanSizeToBytes:function(){return i}});let i=e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],i=parseFloat(e.substr(0,e.length-2));return -1!==n.indexOf(t)?i*Math.pow(1024,n.indexOf(t)+1):parseInt(e,10)}},43555:function(e,t,n){n.d(t,{$$:function(){return D.$$},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return g.ConnectionError},LimitedStack:function(){return j.LimitedStack},OptionsError:function(){return g.OptionsError},UNSAFE_PROTO_KEYS:function(){return S.UNSAFE_PROTO_KEYS},abort:function(){return g.abort},alignElement:function(){return i.alignElement},alreadyLoadedList:function(){return o.alreadyLoadedList},appendScriptAsync:function(){return o.appendScriptAsync},appendStyleAsync:function(){return o.appendStyleAsync},assert:function(){return r.assert},attr:function(){return s.attr},attrRaw:function(){return s.attrRaw},browser:function(){return a.browser},buildQuery:function(){return l.buildQuery},call:function(){return P.call},callPromise:function(){return P.callPromise},callThis:function(){return P.callThis},clearAlign:function(){return i.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},cns:function(){return _.cns},completeUrl:function(){return c.completeUrl},connection:function(){return g.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssInline:function(){return h.cssInline},cssPath:function(){return D.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return p.dataBind},defaultLanguage:function(){return m.defaultLanguage},error:function(){return g.error},fastClone:function(){return v.fastClone},get:function(){return b.get},getClassName:function(){return y.getClassName},getDataTransfer:function(){return P.getDataTransfer},getPropertyDescriptor:function(){return P.getPropertyDescriptor},getXPathByElement:function(){return D.getXPathByElement},hAlignElement:function(){return i.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return I.inView},isAtom:function(){return v.isAtom},isUnsafeProtoKey:function(){return S.isUnsafeProtoKey},keepNames:function(){return y.keepNames},keys:function(){return P.keys},loadImage:function(){return P.loadImage},loadNext:function(){return o.loadNext},loadNextStyle:function(){return o.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return _.markDeprecated},markOwner:function(){return P.markOwner},memorizeExec:function(){return P.memorizeExec},options:function(){return g.options},parseQuery:function(){return k.parseQuery},previewBox:function(){return C.previewBox},refs:function(){return D.refs},reset:function(){return E.reset},resolveElement:function(){return D.resolveElement},scrollIntoViewIfNeeded:function(){return I.scrollIntoViewIfNeeded},set:function(){return T.set}});var i=n(25726),o=n(63799),r=n(38837),s=n(29960),a=n(97639),l=n(44710),c=n(66292),u=n(68934),d=n(55877),h=n(41180),f=n(15456),p=n(86583),m=n(96325),g=n(89890),v=n(97735),b=n(94643),y=n(80568),w=n(38420),S=n(69175),_=n(95942),k=n(82501),C=n(11628),E=n(58844),I=n(26395),D=n(76078),T=n(3703),j=n(50535),P=n(37790)},69175:function(e,t,n){n.d(t,{UNSAFE_PROTO_KEYS:function(){return i},isUnsafeProtoKey:function(){return o}});let i=["__proto__","constructor","prototype"];function o(e){return -1!==i.indexOf(e)}},95942:function(e,t,n){n.d(t,{cns:function(){return i},markDeprecated:function(){return o}});let i=console;function o(e,t=[""],n=null){return(...o)=>(i.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(n,...o))}},82501:function(e,t,n){n.d(t,{parseQuery:function(){return i}});let i=e=>{let t={},n=e.substring(1).split("&");for(let e=0;e<n.length;e+=1){let i=n[e].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}return t}},11628:function(e,t,n){n.d(t,{previewBox:function(){return a}});var i=n(2748),o=n(70799),r=n(29960),s=n(41180);function a(e,t,n="px",l=null){let c=[],u=function(e,t){let n=[],o=[];i.Dom.each(e.editor,e=>{i.Dom.isTag(e,"img")&&o.push(e)});try{o.forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),(0,r.attr)(o,"src")];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();i.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(o,"src")||""),(0,r.attr)(o,"src",a.href),i.Dom.safeRemove(a),n.push(()=>{(0,r.attr)(o,{src:s[2],width:s[0]||null,height:s[1]||null})})})}catch(e){throw n.forEach(e=>e()),n.length=0,e}return n}(e,n);try{let a=e.e.fire("beforePreviewBox",t,n);if(null!=a)return a;let u=e.c.div("jodit__preview-box jodit-context");l&&i.Dom.append(l,u),(0,s.css)(u,{position:"relative",padding:16});let d=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),i.Dom.append(u,t);let n=t.contentWindow;if(n&&(e.e.fire("generateDocumentStructure.iframe",n.document,e),u=n.document.body,"function"==typeof ResizeObserver)){let i=!1,o=n.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),(0,s.css)(t,"height",o.offsetHeight+20),e.async.requestAnimationFrame(()=>{i||r.observe(o)})},100)),a=()=>{i=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",a)};c.push(a),e.e.on("beforeDestruct",a)}}else(0,s.css)(u,{minWidth:1024,minHeight:600,border:0});let h=(t,n)=>{let s=(0,o.isString)(n)?e.c.div():n;(0,o.isString)(n)&&(s.innerHTML=n);for(let e=0;e<s.childNodes.length;e+=1){let n=s.childNodes[e];if(i.Dom.isElement(n)){let e=t.ownerDocument.createElement(n.nodeName);for(let t=0;t<n.attributes.length;t+=1)(0,r.attr)(e,n.attributes[t].name,n.attributes[t].value);0===n.childNodes.length||i.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(e.textContent=n.textContent):n.innerHTML&&(e.innerHTML=n.innerHTML):h(e,n);try{i.Dom.append(t,e)}catch(e){}}else try{i.Dom.append(t,n.cloneNode(!0))}catch(e){}}};return h(u,d),e.e.fire("afterPreviewBox",u),[u,()=>{c.forEach(e=>e())}]}finally{u.forEach(e=>e())}}},58844:function(e,t,n){n.d(t,{reset:function(){return a}});var i=n(82758),o=n(23282),r=n(94643);let s={};function a(e){var t,n;if(!(e in s)){let n=i.globalDocument.createElement("iframe");try{if(n.src="about:blank",i.globalDocument.body.appendChild(n),!n.contentWindow)return null;let t=(0,r.get)(e,n.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),n.contentWindow);(0,o.isFunction)(t)&&(s[e]=t.bind(a))}catch(e){if(!i.IS_PROD)throw e}finally{null==(t=n.parentNode)||t.removeChild(n)}}return null!=(n=s[e])?n:null}},26395:function(e,t,n){n.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var i=n(2748);function o(e,t,n){let i=e.getBoundingClientRect(),o=e,r=i.top,s=i.height;for(;o&&o!==t&&o.parentNode;)if(r+s>(i=(o=o.parentNode).getBoundingClientRect()).bottom+1&&r>i.top||r+s<=i.top)return!1;return(r+s<=(n.documentElement&&n.documentElement.clientHeight||0)+1||r<=0)&&r+s>=0}function r(e,t,n){if(i.Dom.isHTMLElement(e)&&!o(e,t,n)){if(t.clientHeight!==t.scrollHeight){let n=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<n?n:e.offsetTop}o(e,t,n)||e.scrollIntoView({block:"nearest"})}}},76078:function(e,t,n){n.d(t,{$$:function(){return d},cssPath:function(){return p},getXPathByElement:function(){return h},refs:function(){return f},resolveElement:function(){return m}});var i=n(82758),o=n(2748),r=n(4510),s=n(70799),a=n(87058),l=n(29960),c=n(89890);let u=1;function d(e,t){let n;if(!i.IS_ES_NEXT&&/:scope/.test(e)&&i.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let i=t.id,o=i||"_selector_id_"+String(Math.random()).slice(2)+ ++u;e=e.replace(/:scope/g,"#"+o),i||t.setAttribute("id",o),n=t.parentNode.querySelectorAll(e),i||t.removeAttribute("id")}else n=t.querySelectorAll(e);return[].slice.call(n)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let n=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(n.length>1?"["+((0,r.toArray)(n).indexOf(e)+1)+"]":"")},f=e=>{"container"in e&&(e=e.container);let t={};return o.Dom.each(e,e=>{if(o.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let n=(0,l.attr)(e,"-ref");n&&(0,s.isString)(n)&&(t[(0,a.camelCase)(n)]=e,t[n]=e)}}),t},p=e=>{if(!o.Dom.isElement(e))return null;let t=[],n=e;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let e=n.nodeName.toLowerCase();if(n.id){e+="#"+n.id,t.unshift(e);break}{let t=n,i=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&i++;while(t);e+=":nth-of-type("+i+")"}t.unshift(e),n=n.parentNode}return t.join(" > ")};function m(e,t){let n=e;if((0,s.isString)(e))try{n=t.querySelector(e)}catch(t){throw(0,c.error)('String "'+e+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!o.Dom.isElement(n)||!n.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return n}},3703:function(e,t,n){n.d(t,{set:function(){return l}});var i=n(68345),o=n(29807),r=n(72430),s=n(70799),a=n(69175);function l(e,t,n){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let c=n,u=l[0];for(let e=0;e<l.length-1;e+=1)u=l[e],(0,i.isArray)(c[u])||(0,r.isPlainObject)(c[u])||(c[u]=(0,o.isNumeric)(l[e+1])?[]:{}),c=c[u];c&&(c[l[l.length-1]]=t)}},50535:function(e,t,n){n.d(t,{LimitedStack:function(){return i}});class i{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){this.limit=e,this.stack=[]}}},37790:function(e,t,n){n.d(t,{call:function(){return a},callPromise:function(){return u},callThis:function(){return l},getDataTransfer:function(){return p},getPropertyDescriptor:function(){return m},keys:function(){return h},loadImage:function(){return d},markOwner:function(){return c},memorizeExec:function(){return f}});var i=n(14773),o=n(86068),r=n(29960),s=n(86583);function a(e,...t){return e(...t)}function l(e,t,...n){return e.apply(t,n)}function c(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function u(e,t){return(0,i.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}let d=(e,t)=>t.async.promise((n,i)=>{let o=new Image,r=()=>{t.e.off(o),null==i||i()},s=()=>{t.e.off(o),n(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),h=(e,t=!0)=>{if(t)return Object.keys(e);let n=[];for(let t in e)n.push(t);return n},f=(e,t,{control:n},i)=>{var r;let a=`button${n.command}`,l=null!=(r=n.args&&n.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),i&&(l=i(l)),e.execCommand(n.command,!1,null!=l?l:void 0)},p=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function m(e,t){let n;do n=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!n&&e);return n}},31359:function(e,t,n){n.d(t,{init:function(){return s}});var i=n(82758),o=n(60132),r=n(14041);function s(e,t,n,s,a,l,c){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!i.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{i.IS_PROD}),s.styles&&(c(e,t,"style").innerHTML=s.styles)}},14041:function(e,t,n){n.d(t,{loadExtras:function(){return d},loadStyle:function(){return c}});var i=n(82758),o=n(12475),r=n(63799),s=n(89672);function a(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}let l=new Set;function c(e,t){var n;return(n=function*(){let n=u(e,t,!1);if(!l.has(n))return l.add(n),(0,r.appendStyleAsync)(e,n)},function(){var e=this,t=arguments;return new Promise(function(i,o){var r=n.apply(e,t);function s(e){a(r,i,o,s,l,"next",e)}function l(e){a(r,i,o,s,l,"throw",e)}s(void 0)})})()}function u(e,t,n){t=(0,o.kebabCase)(t);let i=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+i+"."+(n?"js":"css")}function d(e,t,n,o){try{let i=n.filter(t=>!e.has((0,s.normalizeName)(t.name)));i.length&&i.map(e=>{let n=e.url||u(t,e.name,!0);return(0,r.appendScriptAsync)(t,n).then(o).catch(()=>null)})}catch(e){if(!i.IS_PROD)throw e}}},48591:function(e,t,n){n.d(t,{makeInstance:function(){return r}});var i=n(82758),o=n(23282);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(n){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!i.IS_PROD)throw e}return null}},89672:function(e,t,n){n.d(t,{normalizeName:function(){return o}});var i=n(12475);function o(e){return(0,i.kebabCase)(e).toLowerCase()}},50911:function(e,t,n){n.d(t,{Plugin:function(){return i.Plugin}});var i=n(20356);n(41876)},41876:function(e,t,n){n.d(t,{PluginSystem:function(){return f}});var i=n(82758),o=n(57012),r=n(46559),s=n(68345),a=n(60132),l=n(70799),c=n(31359),u=n(14041),d=n(48591),h=n(89672);class f{get size(){return this.__items.size}add(e,t){this.__items.set((0,h.normalizeName)(e),t),o.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,h.normalizeName)(e))}remove(e){this.__items.delete((0,h.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((n,i)=>{(!e||e.has(i))&&t.push([i,n])}),t}__init(e){let{extraList:t,disableList:n,filter:o}={extraList:e.o.extraPlugins.map(e=>(0,l.isString)(e)?{name:e}:e),disableList:new Set((0,r.splitArray)(e.o.disablePlugins).map(h.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},f=new Map,p={},m=new Set;e.__plugins=p;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(o).forEach(([i,o])=>{if(n.has(i)||f.has(i))return;let r=null==o?void 0:o.requires;if(r&&(0,s.isArray)(r)&&r.length){if(r.some(e=>n.has(e)))return;if(!r.every(e=>f.has(e)))return void m.add(i)}t=!0;let a=(0,d.makeInstance)(e,o);if(!a){f.set(i,null),m.delete(i);return}(0,c.init)(e,i,o,a,f,m,this.opts.getContainer),p[i]=a}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,u.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(p).forEach(t=>{let n=p[t];(0,a.isDestructable)(n)&&n.destruct(e),delete p[t]}),delete e.__plugins}),i.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let n=()=>{t(),o.eventEmitter.off(`plugin:${e}:ready`,n)};o.eventEmitter.on(`plugin:${e}:ready`,n)})}constructor(e){this.opts=e,this.__items=new Map}}},20356:function(e,t,n){n.d(t,{Plugin:function(){return a}});var i=n(91907),o=n(65478),r=n(19306),s=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class a extends i.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,r.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(i.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var e;if(this.isInDestruct)return;let{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(i.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,r.isJoditObject)(t)&&(null==(e=this.buttons)||e.forEach(e=>{null==t||t.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),this.buttons=[],this.hasStyle=!1,this.__inited=!1,e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}a.requires=[],s([o.autobind],a.prototype,"__afterPluginSystemInit",null),s([o.autobind],a.prototype,"__afterInit",null),s([o.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,n){n.d(t,{Ajax:function(){return f}});var i=n(8884),o=n(82758),r=n(45219),s=n(21537),a=n(89890),l=n(6441);n(57459);var c=n(98582);function u(e){var t,n;function i(t,n){try{var r=e[t](n),s=r.value,a=s instanceof h;Promise.resolve(a?s.v:s).then(function(n){if(a){var l="return"===t?"return":"next";if(!s.k||n.done)return i(l,n);n=e[l](n).value}o(r.done?"return":"normal",n)},function(e){i("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise(function(r,s){var a={key:e,arg:o,resolve:r,reject:s,next:null};n?n=n.next=a:(t=n=a,i(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}function d(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function h(e,t){this.v=e,this.k=t}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)};class f{className(){return"Ajax"}__buildParams(e,t){return(0,s.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,s.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,s.isString)(e)||e instanceof o.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,s.isFunction)(e.append)?e:(0,s.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,n=this.prepareRequest();return this.__async.promise((i,o)=>{var r;return(r=function*(){var r;let l=()=>{this.__isFulfilled=!0,o(a.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,i(new c.Response(n,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=u,e.onabort=()=>{this.__isFulfilled=!0,o(a.abort("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,n;let i=0;e.lengthComputable&&(i=e.loaded/e.total*100),null==(n=(t=this.options).onProgress)||n.call(t,i)},e.onreadystatechange=()=>{var n,i;null==(i=(n=this.options).onProgress)||i.call(n,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?u():e.statusText&&(this.__isFulfilled=!0,o(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:d,data:h,method:f}=n;e.open(f,d,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:p}=t;(0,s.isFunction)(p)&&(p=yield p.call(this)),p&&e.setRequestHeader&&Object.keys(p).forEach(t=>{e.setRequestHeader(t,p[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)},function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function s(e){d(o,n,i,s,a,"next",e)}function a(e){d(o,n,i,s,a,"throw",e)}s(void 0)})}).call(this)})}stream(){var e;return(e=function*(){var e,t;this.__activated=!0;let{xhr:n,o:i}=this,o=this.prepareRequest(),r=0,l="",c=[],u=null,d=!1,f=null,p=()=>{if(u){let e=u;u=null,e()}},m=e=>{var t;let i=n.responseText;l+=i.substring(r),r=i.length;let o=l.split("\n\n");for(let n of(l=e?"":null!=(t=o.pop())?t:"",o)){let e=n.trim();if(!e)continue;let t=[];for(let n of e.split("\n"))n.startsWith("data: ")?t.push(n.slice(6)):n.startsWith("data:")&&t.push(n.slice(5));t.length&&c.push(t.join("\n"))}p()};n.onprogress=()=>m(!1),n.onload=()=>{m(!0),d=!0,this.__isFulfilled=!0,p()},n.onerror=()=>{f=a.connection("Connection error"),d=!0,this.__isFulfilled=!0,p()},n.onabort=()=>{f=a.abort("Abort connection"),d=!0,this.__isFulfilled=!0,p()},n.withCredentials=null!=(e=i.withCredentials)&&e;let{url:g,data:v,method:b}=o;n.open(b,g,!0),i.contentType&&n.setRequestHeader&&n.setRequestHeader("Content-type",i.contentType);let{headers:y}=i;(0,s.isFunction)(y)&&(y=yield new h(y.call(this),0)),y&&n.setRequestHeader&&Object.keys(y).forEach(e=>{n.setRequestHeader(e,y[e])}),n.send(v?this.__buildParams(v):void 0);try{for(;;)if(c.length>0)yield c.shift();else if(d)break;else yield(t=new Promise(e=>{u=e}),new h(t,0))}finally{this.__isFulfilled||this.abort()}if(f)throw f},function(){return new u(e.apply(this,arguments))}).call(this)}prepareRequest(){if(!this.o.url)throw a.error("Need URL for AJAX request");let e=this.o.url,t=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&t&&(0,s.isPlainObject)(t)){let n=e.indexOf("?");if(-1!==n){let i=(0,s.parseQuery)(e.substring(n));e=e.substring(0,n)+"?"+(0,s.buildQuery)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({},i,t))}else e+="?"+(0,s.buildQuery)(this.o.data)}let i={url:e,method:n,data:t};return f.log.splice(100),f.log.push(i),i}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=l.Config.prototype.defaultAjaxOptions){this.__async=new i.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,s.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}f.log=[],function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([r.autobind],f.prototype,"destruct",null)},57459:function(e,t,n){n(6441).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},41601:function(e,t,n){n.d(t,{Ajax:function(){return i.Ajax},Response:function(){return o.Response}});var i=n(54079),o=n(98582)},98582:function(e,t,n){function i(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var s=e.apply(t,n);function a(e){i(s,o,r,a,l,"next",e)}function l(e){i(s,o,r,a,l,"throw",e)}a(void 0)})}}n.d(t,{Response:function(){return r}});class r{get url(){return this.request.url}json(){return o(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return o(function*(){return this.body}).call(this)}constructor(e,t,n,i){this.request=e,this.status=t,this.statusText=n,this.body=i}}},45124:function(e,t,n){n.d(t,{cursorInTheEdgeOfString:function(){return s},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return r.moveNodeInsideStart}});var i=n(82758),o=n(2748),r=n(26716);function s(e,t,n,o){var r;let s=(null==(r=e.nodeValue)?void 0:r.length)?e.nodeValue:"";if(o&&s.replace((0,i.INVISIBLE_SPACE_REG_EXP_END)(),"").length>t)return!0;let a=(0,i.INVISIBLE_SPACE_REG_EXP_START)().exec(s);return n&&(a&&a[0].length<t||!a&&t>0)}function a(e,t,n,i,r,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],n=!0),e&&i&&!o.Dom.isText(e)){if(!n&&o.Dom.isText(e.previousSibling))e=e.previousSibling;else if(r){let t=s(e);for(;t;){if(t&&o.Dom.isText(t)){e=t;break}t=s(t)}}}if(e&&!i&&!o.Dom.isText(e)){let t=e,n=e;do t=t.firstChild,n=n.lastChild;while(t&&n&&!o.Dom.isText(t));t===n&&t&&o.Dom.isText(t)&&(e=t)}return{node:e,rightMode:n}}n(43463)},26716:function(e,t,n){n.d(t,{moveNodeInsideStart:function(){return r}});var i=n(82758),o=n(2748);function r(e,t,n){let r=o.Dom.findSibling(t,n),s=o.Dom.findSibling(t,!n);for(;o.Dom.isElement(r)&&!o.Dom.isTag(r,i.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(r,e.editor)&&(!s||!o.Dom.closest(t,o.Dom.isElement,e.editor));)n||!r.firstChild?o.Dom.append(r,t):o.Dom.before(r.firstChild,t),r=o.Dom.sibling(t,n),s=o.Dom.sibling(t,!n)}},43463:function(e,t,n){n.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return o}});var i=n(2748);function o(e,t,n){let o=e;for(;o&&o!==n&&!(i.Dom.findSibling(o,t)||i.Dom.isBlock(o.parentElement));)(o=o.parentElement)&&o!==n&&(t?i.Dom.before(o,e):i.Dom.after(o,e))}},59242:function(e,t,n){n.d(t,{CHANGE:function(){return r.CHANGE},CommitStyle:function(){return o.CommitStyle},REPLACE:function(){return r.REPLACE},Selection:function(){return i.Selection},UNWRAP:function(){return r.UNWRAP},WRAP:function(){return r.WRAP}});var i=n(79348),o=n(25639),r=n(77361)},79348:function(e,t,n){n.d(t,{Selection:function(){return f}});var i=n(82758),o=n(65478),r=n(2748),s=n(21537),a=n(27613),l=n(38837),c=n(43463),u=n(25639),d=n(45124),h=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class f{get j(){return this.jodit}errorNode(e){if(!r.Dom.isNode(e))throw(0,s.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,a.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:e}=this,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!r.Dom.isOrContains(this.area,t.startContainer))}createRange(e=!1){let t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){let e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1)e.getRangeAt(t).deleteContents(),e.getRangeAt(t).collapse(!0)}clear(){var e,t;(null==(e=this.sel)?void 0:e.rangeCount)&&(null==(t=this.sel)||t.removeAllRanges())}removeNode(e){if(!r.Dom.isOrContains(this.j.editor,e,!0))throw(0,s.error)("Selection.removeNode can remove only editor's children");r.Dom.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){this.removeMarkers();try{let n=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let i=this.doc.caretPositionFromPoint(e,t);if(i)return n.setStart(i.offsetNode,i.offset)}if(this.doc.caretRangeFromPoint){let i=this.doc.caretRangeFromPoint(e,t);(0,l.assert)(i,"Incorrect caretRangeFromPoint behaviour"),n.setStart(i.startContainer,i.startOffset)}})(),n.collapse(!0),this.selectRange(n),!0}catch(e){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,s.$$)("span[data-"+i.MARKER_CLASS+"]",this.area)}removeMarkers(){r.Dom.safeRemove(...this.markers)}marker(e=!1,t){let n=null;t&&(n=t.cloneRange()).collapse(e);let o=this.j.createInside.span();return o.id=i.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),(0,s.css)(o,{lineHeight:"0",display:"none"}),r.Dom.markTemporary(o),(0,s.attr)(o,"data-"+i.MARKER_CLASS,e?"start":"end"),r.Dom.append(o,this.j.createInside.text(i.INVISIBLE_SPACE)),n&&r.Dom.isOrContains(this.area,e?n.startContainer:n.endContainer)&&n.insertNode(o),o}restore(){let e=!1,t=e=>t=>r.Dom.isMarker(t)&&(0,s.attr)(t,"data-"+i.MARKER_CLASS)===(e?"start":"end"),n=r.Dom.first(this.area,t(!0)),o=r.Dom.first(this.area,t(!1));if(n){if(e=this.createRange(),o)e.setStartAfter(n),r.Dom.safeRemove(n),e.setEndBefore(o),r.Dom.safeRemove(o);else{let t=n.previousSibling;r.Dom.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(n),r.Dom.safeRemove(n),e.collapse(!0)}e&&this.selectRange(e)}}fakes(){let e=this.sel;if(!e||!e.rangeCount)return[];let t=e.getRangeAt(0);(0,l.assert)(t,"Range is null");let n=t.cloneRange();n.collapse(!0);let i=this.j.createInside.fake();r.Dom.safeInsertNode(n,i),t.setStartBefore(i);let o=[i];if(!t.collapsed){let e=t.cloneRange();e.collapse(!1);let n=this.j.createInside.fake();r.Dom.safeInsertNode(e,n),t.setEndAfter(n),o.push(n)}return this.selectRange(t),o}restoreFakes(e){var t,n,i,o;let s=e.filter(e=>e.isConnected);if(!s.length)return;let[a,l]=s,c=this.createRange();c.setStartAfter(a),l&&c.setEndBefore(l),this.selectRange(c),(null==(t=a.parentNode)?void 0:t.firstChild)!==(null==(n=a.parentNode)?void 0:n.lastChild)&&r.Dom.safeRemove(a),(null==(i=null==l?void 0:l.parentNode)?void 0:i.firstChild)!==(null==(o=null==l?void 0:l.parentNode)?void 0:o.lastChild)&&r.Dom.safeRemove(l)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let n=[],i=t.rangeCount,o=[];for(let e=0;i>e;e+=1)if(o[e]=t.getRangeAt(e),o[e].collapsed){let t=this.marker(!0,o[e]);n[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,o[e]),i=this.marker(!1,o[e]);n[e]={startId:t.id,endId:i.id,collapsed:!1,startMarker:t.outerHTML,endMarker:i.outerHTML}}if(!e){t.removeAllRanges();for(let e=i-1;e>=0;--e){let i=this.doc.getElementById(n[e].startId);if(i){if(n[e].collapsed)o[e].setStartAfter(i),o[e].collapse(!0);else if(o[e].setStartBefore(i),n[e].endId){let t=this.doc.getElementById(n[e].endId);t&&o[e].setEndAfter(t)}try{t.addRange(o[e].cloneRange())}catch(e){}}}}return n}focus(e={preventScroll:!0}){var t,n;if(!this.isFocused()){let i=(0,s.getScrollParent)(this.j.container),o=null==i?void 0:i.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),o&&(null==i?void 0:i.scrollTo)&&i.scrollTo(0,o);let a=this.sel,l=(null==a?void 0:a.rangeCount)?null==a?void 0:a.getRangeAt(0):null;if(!l||!r.Dom.isOrContains(this.area,l.startContainer)){let e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}return this.j.editorIsActive||null==(n=null==(t=this.j)?void 0:t.events)||n.fire("focus"),!0}return!1}isCollapsed(){let e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()!==i.MODE_WYSIWYG)return null;let t=this.sel;if(!t||0===t.rangeCount)return null;let n=t.getRangeAt(0),o=n.startContainer,s=!1;if(r.Dom.isTag(o,"br")&&t.isCollapsed)return o;if(!r.Dom.isText(o)){let i=(0,d.findCorrectCurrentNode)(o,n,s,t.isCollapsed,e,e=>s?e.lastChild:e.firstChild);o=i.node,s=i.rightMode}return o&&r.Dom.isOrContains(this.area,o)?o:null}insertNode(e,t=!0,n=!0){this.errorNode(e);let i=r.Dom.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let o=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),o&&o.rangeCount){let t=o.getRangeAt(0),{firstChild:n}=e;r.Dom.isOrContains(this.area,t.commonAncestorContainer)?r.Dom.safeInsertNode(t,e):r.Dom.append(this.area,e),[()=>null==n?void 0:n.previousSibling,()=>null==n?void 0:n.previousSibling,()=>{var e;return null==(e=null==n?void 0:n.previousSibling)?void 0:e.lastChild}].forEach(e=>{let t=e();t&&r.Dom.isEmptyTextNode(t)&&r.Dom.safeRemove(t)})}else r.Dom.append(this.area,e);let n=e=>{if(r.Dom.isBlock(e)){let t=e.lastChild;if(t)return n(t)}this.setCursorAfter(e)};t&&(r.Dom.isFragment(e)?i&&n(i):n(e)),this.j.o.scrollToPastedContent&&(0,s.scrollIntoViewIfNeeded)(null!=i?i:e,this.j.editor,this.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",r.Dom.isFragment(e)?i:e)}insertHTML(e,t=!0){if(""===e)return;let n=this.j.createInside.div(),i=this.j.createInside.fragment();!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),r.Dom.isNode(e)?r.Dom.append(n,e):n.innerHTML=e.toString(),!this.j.isEditorMode()&&!1===this.j.e.fire("insertHTML",n.innerHTML)||n.lastChild&&(r.Dom.moveContent(n,i),this.insertNode(i,t,!1),this.j.__imdSynchronizeValues())}insertImage(e,t=null,n=null){let i=(0,a.isString)(e)?this.j.createInside.element("img"):e;if((0,a.isString)(e)&&(0,s.attr)(i,"src",e),null!=n){let e=n.toString();e&&"auto"!==e&&0>String(e).indexOf("px")&&0>String(e).indexOf("%")&&(e+="px"),(0,s.attr)(i,"width",e)}t&&"object"==typeof t&&(0,s.css)(i,t);let o=()=>{(i.naturalHeight<i.offsetHeight||i.naturalWidth<i.offsetWidth)&&(0,s.css)(i,{width:"",height:""}),i.removeEventListener("load",o)};this.j.e.on(i,"load",o),i.complete&&o(),this.insertNode(i),this.j.e.fire("afterInsertImage",i)}eachSelection(e){var t;let n=this.sel;if(!n||!n.rangeCount)return;let o=n.getRangeAt(0),l=o.commonAncestorContainer;r.Dom.isHTMLElement(l)||(l=l.parentElement);let c=[],u=o.startOffset,d=l.childNodes.length,h=o.startContainer===this.area?l.childNodes[u<d?u:d-1]:o.startContainer,f=o.endContainer===this.area?l.childNodes[o.endOffset-1]:o.endContainer;r.Dom.isText(h)&&h===o.startContainer&&o.startOffset===(null==(t=h.nodeValue)?void 0:t.length)&&h.nextSibling&&(h=h.nextSibling),r.Dom.isText(f)&&f===o.endContainer&&0===o.endOffset&&f.previousSibling&&(f=f.previousSibling);let p=e=>{!e||e===l||r.Dom.isEmptyTextNode(e)||(0,a.isMarker)(e)||c.push(e)};p(h),h!==f&&r.Dom.isOrContains(l,h,!0)&&r.Dom.find(h,e=>(p(e),e===f||e&&e.contains&&e.contains(f)),l,!0,!1);let m=t=>{if(r.Dom.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(t.childNodes).forEach(m);if(r.Dom.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{let e=this.j.createInside.text(i.INVISIBLE_SPACE);r.Dom.append(t,e),t=e}e(t)}};0===c.length&&(r.Dom.isEmptyTextNode(h)&&c.push(h),(null==h?void 0:h.firstChild)&&c.push(h.firstChild)),c.forEach(m)}cursorInTheEdge(e,t,n=null){let i=!e,o=this.sel,a=(null==o?void 0:o.rangeCount)?o.getRangeAt(0):null;if(null!=n||(n=this.current(!1)),!a||!n||!r.Dom.isOrContains(t,n,!0))return null;let l=e?a.startContainer:a.endContainer,c=e?a.startOffset:a.endOffset,u=e=>!!(e&&!r.Dom.isTag(e,"br")&&!r.Dom.isEmptyTextNode(e)&&!r.Dom.isTemporary(e)&&!(r.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(r.Dom.isText(l)){if((0,d.cursorInTheEdgeOfString)(l,c,e,i))return!1}else{let e=(0,s.toArray)(l.childNodes);if(i){if(e.slice(c).some(u))return!1}else if(e.slice(0,c).some(u))return!1}let h=n;for(;h&&h!==t;){let t=r.Dom.sibling(h,e);if(!t){h=h.parentNode;continue}if((h=t)&&u(h))return!1}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){var n,i;if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let o=this.createRange(),a=null;return r.Dom.isText(e)?t?o.setStart(e,0):o.setEnd(e,null!=(i=null==(n=e.nodeValue)?void 0:n.length)?i:0):(a=this.j.createInside.fake(),t?o.setStartBefore(e):o.setEndAfter(e),o.collapse(t),r.Dom.safeInsertNode(o,a),o.selectNode(a)),o.collapse(t),this.selectRange(o),a}setCursorIn(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let n=this.createRange(),o=e,a=e;do{if(r.Dom.isText(o)||r.Dom.isTag(o,i.INSEPARABLE_TAGS))break;a=o,o=t?o.firstChild:o.lastChild}while(o);if(!o){let e=this.j.createInside.text(i.INVISIBLE_SPACE);r.Dom.isTag(a,i.INSEPARABLE_TAGS)?o=a:(r.Dom.append(a,e),a=e)}let l=o||a;return r.Dom.isTag(l,i.INSEPARABLE_TAGS)?t||r.Dom.isTag(l,"br")?n.setStartBefore(l):n.setEndAfter(l):n.selectNodeContents(l),n.collapse(t),this.selectRange(n),a}selectRange(e,t=!0){let n=this.sel;return t&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),n&&(n.removeAllRanges(),n.addRange(e)),this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let n=this.createRange();return n[t?"selectNodeContents":"selectNode"](e),this.selectRange(n)}get html(){let e=this.sel;if(e&&e.rangeCount>0){let t=e.getRangeAt(0).cloneContents(),n=this.j.createInside.div();return r.Dom.append(n,t),n.innerHTML}return""}__wrapSelectionFragments(){let e=this.range;this.__splitSelectionBoundaries(e);let t=e.commonAncestorContainer;return(r.Dom.isText(t)&&(t=t.parentNode),t)?this.__wrapSelectionRuns(this.__collectContainedNodes(t,e)):[]}__splitSelectionBoundaries(e){var t,n,i,o,s,a,l,c;let{startContainer:u,endContainer:d}=e,{startOffset:h,endOffset:f}=e;if(r.Dom.isText(d)&&f>0&&f<(null!=(n=null==(t=d.nodeValue)?void 0:t.length)?n:0)&&(d.splitText(f),f=null!=(o=null==(i=d.nodeValue)?void 0:i.length)?o:f),r.Dom.isText(u)&&h>0&&h<(null!=(a=null==(s=u.nodeValue)?void 0:s.length)?a:0)){let e=u.splitText(h);u===d&&(d=e,f=null!=(c=null==(l=e.nodeValue)?void 0:l.length)?c:0),u=e,h=0}e.setStart(u,h),e.setEnd(d,f),this.__normalizeRangeBoundary(e,!0),this.__normalizeRangeBoundary(e,!1)}__normalizeRangeBoundary(e,t){var n,i;let o=t?e.startContainer:e.endContainer;if(!r.Dom.isText(o))return;let s=t?e.startOffset:e.endOffset,a=null!=(i=null==(n=o.nodeValue)?void 0:n.length)?i:0;0===s?t?e.setStartBefore(o):e.setEndBefore(o):s>=a&&(t?e.setStartAfter(o):e.setEndAfter(o))}__collectContainedNodes(e,t){let n=[];return(0,s.toArray)(e.childNodes).forEach(e=>{this.__isFullyContained(t,e)?n.push(e):e.childNodes.length&&t.intersectsNode(e)&&n.push(...this.__collectContainedNodes(e,t))}),n}__isFullyContained(e,t){let n=this.createRange();return n.selectNode(t),0>=e.compareBoundaryPoints(Range.START_TO_START,n)&&e.compareBoundaryPoints(Range.END_TO_END,n)>=0}__wrapSelectionRuns(e){let t=[],n=[],i=()=>{n.length&&(t.push(this.__wrapRunInFont(n)),n=[])};return e.forEach(e=>{r.Dom.isElement(e)&&this.__isOrContainsBlock(e)?(i(),t.push(...this.__wrapSelectionRuns((0,s.toArray)(e.childNodes)))):(n.length&&n[n.length-1].parentNode!==e.parentNode&&i(),n.push(e))}),i(),t}__isOrContainsBlock(e){return!!r.Dom.isBlock(e)||(0,s.toArray)(e.childNodes).some(e=>this.__isOrContainsBlock(e))}__wrapRunInFont(e){let t=this.j.createInside.element("font"),[n]=e;return r.Dom.before(n,t),e.forEach(e=>r.Dom.append(t,e)),t}*wrapInTagGen(e){if(this.isCollapsed()){let t=this.jodit.createInside.element("font",i.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&r.Dom.append(t,e[0]),yield t,r.Dom.unwrap(t);return}for(let e of this.__wrapSelectionFragments()){let{firstChild:t,lastChild:n}=e;if(t&&t===n&&(0,a.isMarker)(t)){r.Dom.unwrap(e);continue}t&&(0,a.isMarker)(t)&&r.Dom.before(e,t),n&&(0,a.isMarker)(n)&&r.Dom.after(e,n),yield e,r.Dom.unwrap(e)}}wrapInTag(e){let t=[];for(let n of this.wrapInTagGen())try{if(n.firstChild&&n.firstChild===n.lastChild&&(0,a.isMarker)(n.firstChild))continue;(0,a.isFunction)(e)?e(n):t.push(r.Dom.replace(n,e,this.j.createInside))}finally{let e=n.parentNode;e&&(r.Dom.unwrap(n),r.Dom.isEmpty(e)&&r.Dom.unwrap(e))}return t}commitStyle(e){(0,l.assert)((0,s.size)(e)>0,"Need to pass at least one option"),new u.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed())return null;let n=this.createRange(),o=this.range;n.setStartBefore(e);let s=this.cursorOnTheRight(e,t),a=this.cursorOnTheLeft(e,t),c=this.j.createInside.element("br"),u=this.j.createInside.fake(),d=u.cloneNode();try{if(s||a){t?r.Dom.before(t,c):r.Dom.safeInsertNode(o,c);let e=(e,t)=>{let n=t(e);for(;n;){let e=t(n);if(n&&(r.Dom.isTag(n,"br")||r.Dom.isEmptyTextNode(n)))r.Dom.safeRemove(n);else break;n=e}};e(c,e=>e.nextSibling),e(c,e=>e.previousSibling),r.Dom.after(c,d),r.Dom.before(c,u),s?(n.setEndBefore(c),o.setEndBefore(c)):(n.setEndAfter(c),o.setEndAfter(c))}else n.setEnd(o.startContainer,o.startOffset);let h=n.extractContents(),f=e=>r.Dom.each(e,e=>r.Dom.isEmptyTextNode(e)&&r.Dom.safeRemove(e));(0,l.assert)(e.parentNode,"Splitting fails");try{if(f(h),f(e),r.Dom.before(e,h),!t&&s&&(null==c?void 0:c.parentNode)){let e=this.createRange();e.setStartBefore(c),this.selectRange(e)}}catch(e){if(!i.IS_PROD)throw e}let p=e=>{let t=null==e?void 0:e.parentNode;t&&t.firstChild===t.lastChild&&r.Dom.append(t,c.cloneNode())};p(u),p(d)}finally{r.Dom.safeRemove(u),r.Dom.safeRemove(d)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:e}=this,t=e.cloneRange();if(!r.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return this;let n=t=>{let n=this.j.createInside.fake(),i=e.cloneRange();return i.collapse(t),r.Dom.safeInsertNode(i,n),(0,c.moveTheNodeAlongTheEdgeOutward)(n,t,this.j.editor),n},i=n(!0),o=n(!1);t.setStartAfter(i),t.setEndBefore(o);let a=r.Dom.findSibling(i,!1),l=r.Dom.findSibling(o,!0);if(a!==l){let e=r.Dom.isElement(a)&&r.Dom.isOrContains(a,o),n=!e&&r.Dom.isElement(l)&&r.Dom.isOrContains(l,i);if(e||n){let n=e?a:l,s=n;for(;r.Dom.isElement(n);)(n=e?n.firstElementChild:n.lastElementChild)&&(e?r.Dom.isOrContains(n,o):r.Dom.isOrContains(n,i))&&(s=n);e?t.setStart(s,0):t.setEnd(s,s.childNodes.length)}}if(this.selectRange(t),r.Dom.safeRemove(i,o),this.isCollapsed())throw(0,s.error)("Selection is collapsed");return this}constructor(e){this.jodit=e,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}h([o.autobind],f.prototype,"createRange",null),h([o.autobind],f.prototype,"focus",null),h([o.autobind],f.prototype,"setCursorAfter",null),h([o.autobind],f.prototype,"setCursorBefore",null),h([o.autobind],f.prototype,"setCursorIn",null)},32526:function(e,t,n){n.d(t,{extractSelectedPart:function(){return a}});var i=n(2748),o=n(78116),r=n(49055),s=n(37790);function a(e,t,n){let i=n.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;i.setStartBefore(e),i.setEndBefore(r),l(e,i,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;i.setStartAfter(s),i.setEndAfter(e),l(e,i,!1)}function l(e,t,n){let o=t.extractContents();o.textContent&&(0,r.trim)(o.textContent).length||!o.firstChild||i.Dom.unwrap(o.firstChild),e.parentNode&&(0,s.call)(n?i.Dom.before:i.Dom.after,e,o)}},49996:function(e,t,n){n.d(t,{FiniteStateMachine:function(){return s}});var i=n(82758),o=n(70799),r=n(38837);class s{setState(e){(0,r.assert)(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(e,t){let n=this.transitions[this.getState()][e];if(n){let e=n.call(this,t);return(0,r.assert)(e&&e!==t,"Action should return new value"),(0,r.assert)((0,o.isString)(e.next),"Value should contain the next state"),(0,r.assert)(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),i.IS_PROD||this.silent,e}throw Error(`invalid action: ${this.getState()}.${e.toString()}`)}constructor(e,t){this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}}},23738:function(e,t,n){n.d(t,{getSuitChild:function(){return s}});var i=n(2748),o=n(29136),r=n(97380);function s(e,t){let{firstChild:n}=t;for(;n&&!(0,o.isNormalNode)(n);)if(!(n=n.nextSibling))return null;return n&&!i.Dom.next(n,o.isNormalNode,t)&&(0,r.isSuitElement)(e,n,!1)?n:null}},44602:function(e,t,n){n.d(t,{getSuitParent:function(){return function e(t,n,s){var a;let{parentNode:l}=n;return l===s||!i.Dom.isHTMLElement(l)||i.Dom.next(n,o.isNormalNode,l)||i.Dom.prev(n,o.isNormalNode,l)?null:t.isElementCommit&&t.elementIsBlock&&!i.Dom.isBlock(l)?e(t,l,s):i.Dom.isTag(l,"li")&&!t.isElementCommit&&(null==(a=t.options.attributes)?void 0:a.style)||(0,r.isSuitElement)(t,l,!1)&&(!i.Dom.isBlock(l)||t.elementIsBlock)?l:t.isElementCommit&&!i.Dom.isBlock(l)?e(t,l,s):null}}});var i=n(2748),o=n(29136),r=n(97380)},22030:function(e,t,n){n.d(t,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return u}});var i=n(82758),o=n(2748),r=n(86068),s=n(3760),a=n(38837),l=n(41180);function c(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(n=>{let i=(0,l.css)(e,n,!0);return""===i&&(""===t[n]||null==t[n])||!(0,r.isVoid)(i)&&""!==i&&!(0,r.isVoid)(t[n])&&(0,s.normalizeCssValue)(n,t[n]).toString().toLowerCase()===i.toString().toLowerCase()}))}if(i.globalDocument){let e=i.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(c(e,{color:"red"}),"Style test"),(0,a.assert)(c(e,{fontSize:null}),"Style test"),(0,a.assert)(c(e,{fontSize:""}),"Style test")}function u(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(t=>""!==(0,l.css)(e,t,!0)))}if(i.globalDocument){let e=i.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(u(e,{color:"red"}),"Style test"),(0,a.assert)(!u(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!u(e,{border:"1px solid #ccc"}),"Style test")}},63687:function(e,t,n){n.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},WRAP_NODES:function(){return h.WRAP_NODES},extractSelectedPart:function(){return i.extractSelectedPart},getSuitChild:function(){return r.getSuitChild},getSuitParent:function(){return s.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},suitableClosest:function(){return l.suitableClosest},toggleAttributes:function(){return u.toggleAttributes},toggleOrderedList:function(){return c.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return h.wrap}});var i=n(32526),o=n(49996),r=n(23738),s=n(44602);n(22030);var a=n(64291);n(29136),n(94466);var l=n(97380),c=n(20199);n(82515);var u=n(44253),d=n(75882),h=n(19263);n(6980)},64291:function(e,t,n){n.d(t,{isInsideInvisibleElement:function(){return o}});var i=n(2748);function o(e,t){return!!i.Dom.closest(e,["style","script"],t)}},29136:function(e,t,n){n.d(t,{isNormalNode:function(){return r}});var i=n(2748),o=n(78116);function r(e){return!!(e&&!i.Dom.isEmptyTextNode(e)&&!i.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},94466:function(e,t,n){n.d(t,{elementsEqualAttributes:function(){return c},isSameAttributes:function(){return l}});var i=n(21496),o=n(43555),r=n(38837),s=n(29960),a=n(22030);function l(e,t){return!(0,i.size)(t)||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(n=>"class"===n||"className"===n?e.classList.contains(t[n]):"style"===n?(0,a.hasSameStyle)(e,t[n]):(0,o.attr)(e,n)===t[n]))}function c(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>(0,s.attrRaw)(t,e.name)===e.value)}},97380:function(e,t,n){n.d(t,{isSameStyleChild:function(){return l},isSuitElement:function(){return s},suitableClosest:function(){return a}});var i=n(2748),o=n(22030),r=n(29136);function s(e,t,n,a=!0){var l;if(!t||!(0,r.isNormalNode)(t))return!1;let{element:c,elementIsDefault:u,options:d}=e;if(i.Dom.isList(t)&&e.elementIsList)return!0;let h=i.Dom.isTag(t,c);return!!(h&&!(u&&n)||(null==(l=d.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,d.attributes.style):(0,o.hasSameStyleKeys)(t,d.attributes.style))&&!e.elementIsList)||!h&&!n&&u&&i.Dom.isInlineBlock(t)}function a(e,t,n){return i.Dom.closest(t,t=>s(e,t,!0,!1),n)}function l(e,t){var n,i;let{element:s,options:a}=e;if(!t||!(0,r.isNormalNode)(t))return!1;let l=t.nodeName.toLowerCase()===s,c=!!((null==(n=a.attributes)?void 0:n.style)&&(0,o.hasSameStyleKeys)(t,null==(i=a.attributes)?void 0:i.style));return l&&c}},20199:function(e,t,n){n.d(t,{toggleOrderedList:function(){return c}});var i=n(2748),o=n(38837),r=n(32526),s=n(44253),a=n(77361),l=n(82515);function c(e,t,n,i){if(!t)return i;let o=t.parentElement;if(!o)return i;let r=n.e.fire(`${a._PREFIX}BeforeToggleList`,i,e,o);if(void 0!==r)return r;let c=n.e.fire.bind(n.e,`${a._PREFIX}AfterToggleList`);if(i!==a.UNWRAP){let r=(0,s.toggleAttributes)(e,t.parentElement,n,a.INITIAL,!0)===a.CHANGE;if(i===a.REPLACE||r||o.tagName.toLowerCase()!==e.element){let i=u(a.REPLACE,o,t,n,e),r=(0,l.wrapList)(e,i,n);return c(a.REPLACE,r,e),a.REPLACE}}let d=u(a.UNWRAP,o,t,n,e);return c(a.UNWRAP,d,e),a.UNWRAP}function u(e,t,n,s,l){let c=s.e.fire(`${a._PREFIX}BeforeUnwrapList`,e,t,l);return c?((0,o.assert)(i.Dom.isHTMLElement(c),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),c):((0,r.extractSelectedPart)(t,n,s),(0,o.assert)(i.Dom.isHTMLElement(n.parentElement),"Element should be inside the list"),i.Dom.unwrap(n.parentElement),e===a.REPLACE)?n:i.Dom.replace(n,"br"!==s.o.enter.toLowerCase()?s.o.enter:s.createInside.fragment(),s.createInside)}},82515:function(e,t,n){n.d(t,{wrapList:function(){return a}});var i=n(2748),o=n(94466),r=n(44253),s=n(77361);function a(e,t,n){let a=n.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,t,e),l=null!=a?a:i.Dom.replace(t,"li",n.createInside),c=l.previousElementSibling,u=l.nextElementSibling,d=i.Dom.isTag(c,e.element)?c:null;return null!=d||(d=i.Dom.isTag(u,e.element)?u:null),i.Dom.isList(d)&&(0,o.isSameAttributes)(d,e.options.attributes)||(d=n.createInside.element(e.element),(0,r.toggleAttributes)(e,d,n,s.INITIAL),i.Dom.before(l,d)),c===d?i.Dom.append(d,l):i.Dom.prepend(d,l),i.Dom.isTag(d.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(d,d.nextElementSibling)&&(i.Dom.append(d,Array.from(d.nextElementSibling.childNodes)),i.Dom.safeRemove(d.nextElementSibling)),n.e.fire(`${s._PREFIX}AfterWrapList`,s.WRAP,d,e),d}},44253:function(e,t,n){n.d(t,{toggleAttributes:function(){return p}});var i=n(82758),o=n(2748),r=n(580),s=n(27613),a=n(3760),l=n(21496),c=n(43555),u=n(41180),d=n(86583),h=n(77361);let f="toggleAttributes";function p(e,t,n,g,v=!1){if(!v&&e.isApplied(t,f))return g;v||e.setApplied(t,f);let{attributes:b}=e.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(f=>{var p,y,w;let S=b[f];switch(f){case"style":p=g,(0,c.assert)((0,s.isPlainObject)(S)&&(0,l.size)(S),"Style must be an object"),Object.keys(S).forEach(s=>{let l=(0,u.cssInline)(t,s),f=S[s];if(""!==l||null!=f){let g,b,y,w;if(g=function(e){var t;if(void 0!==(0,d.dataBind)(e,"shadowRoot"))return(0,d.dataBind)(e,"shadowRoot");let n=(0,r.getContainer)(e),s=i.globalDocument.createElement("iframe");(0,u.css)(s,{width:0,height:0,position:"absolute",border:0}),(0,c.attr)(s,"src","about:blank"),o.Dom.append(n,s);let a=null==(t=s.contentWindow)?void 0:t.document,l=a?a.body:e.od.body;return(0,d.dataBind)(e,"shadowRoot",l),l}(n),b=n.create.element("div"),(0,u.css)(b,"color",(0,u.css)(n.editor,"color")),y=n.create.element(t.tagName.toLowerCase()),(0,c.attr)(y,"style",(0,c.attr)(t,"style")),o.Dom.append(b,y),o.Dom.append(g,b),w=(0,u.css)(y,s),o.Dom.safeRemove(b),w===(0,a.normalizeCssValue)(s,f)){if(!l)return;v||(0,u.css)(t,s,null),p=m(e,t,p=h.UNSET);return}p=h.CHANGE,v||((0,u.css)(t,s,f),p=m(e,t,p))}}),g=p;break;case"className":case"class":let _;y=g,(0,c.assert)((0,s.isString)(S),"Class name must be a string"),_=n.e.fire.bind(n.e,`${h._PREFIX}AfterToggleAttribute`),t.classList.contains(S.toString())?(y=h.UNSET,v||(t.classList.remove(S),0===t.classList.length&&((0,c.attr)(t,"class",null),_(y,t,"class",null)))):(y=h.CHANGE,v||(t.classList.add(S),_(y,t,"class",S))),g=y;break;default:let k;w=g,(0,c.assert)((0,s.isString)(S)||(0,s.isNumber)(S)||(0,s.isBoolean)(S)||null==S,"Attribute value must be a string or number or boolean or null"),k=n.e.fire.bind(n.e,`${h._PREFIX}AfterToggleAttribute`),(0,c.attr)(t,f)===(null==S?S:String(S))?(v||(0,c.attr)(t,f,null),w=h.UNSET,v||k(w,t,f,S)):(w=h.CHANGE,v||((0,c.attr)(t,f,S),k(w,t,f,S))),g=w}}),g}function m(e,t,n){return(0,c.attr)(t,"style")||((0,c.attr)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(o.Dom.unwrap(t),n=h.UNWRAP)),n}},75882:function(e,t,n){n.d(t,{unwrapChildren:function(){return a}});var i=n(2748),o=n(43555),r=n(22030),s=n(97380);function a(e,t){var n;let a,l=[],c=[],u=null==(n=e.options.attributes)?void 0:n.style;if(t.firstChild){let n=i.Dom.eachGen(t),d=n.next();for(;!d.done;){let t=d.value;(0,s.isSuitElement)(e,t,!0)&&(!u||(0,r.hasSameStyleKeys)(t,u))?(void 0===a&&(a=!0),l.push(t)):u&&(0,s.isSameStyleChild)(e,t)?(void 0===a&&(a=!1),c.push(()=>{(0,o.css)(t,Object.keys(u).reduce((e,t)=>(e[t]=null,e),{})),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),(0,o.attr)(t,"style")||t.nodeName.toLowerCase()!==e.element||l.push(t)})):i.Dom.isEmptyTextNode(t)||void 0!==a||(a=!1),d=n.next()}}return c.forEach(e=>e()),l.forEach(i.Dom.unwrap),!!a}},6980:function(e,t,n){n.d(t,{wrapUnwrappedText:function(){return r}});var i=n(2748),o=n(78116);function r(e,t,n){let r=n.editor,s=n.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!i.Dom.isTag(a,n.o.enter)&&(s=a,a=a[t]?a[t]:a.parentNode&&!i.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!i.Dom.isBlock(a)););return s},l=a(t),c=a(t,"nextSibling"),u=n.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let d=u.extractContents(),h=s.element(e.element);return i.Dom.append(h,d),i.Dom.safeInsertNode(u,h),e.elementIsBlock&&i.Dom.isEmpty(h)&&!i.Dom.isTag(h.firstElementChild,"br")&&i.Dom.append(h,s.element("br")),h}},19263:function(e,t,n){n.d(t,{WRAP_NODES:function(){return c},wrap:function(){return l}});var i=n(22732),o=n(29960),r=n(41180),s=n(82515),a=n(6980);function l(e,t,n){var l,u,d;let h=(l=e,u=t,d=n,l.elementIsBlock?i.Dom.up(u,e=>i.Dom.isBlock(e)&&!i.Dom.isTag(e,c)&&!Array.from(e.childNodes).some(e=>i.Dom.isBlock(e)),d.editor)||(0,a.wrapUnwrappedText)(l,u,d):((0,o.attr)(u,"size",null),u));if(e.elementIsList)return(0,s.wrapList)(e,h,n);let f=i.Dom.replace(h,e.element,n.createInside,!0);return e.elementIsBlock&&((0,r.css)(f,"fontSize",null),(0,r.css)(f,"fontWeight",null),(0,o.attr)(f,"style")||(0,o.attr)(f,"style",null)),f}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"])},83632:function(e,t,n){n.d(t,{ApplyStyle:function(){return s}});var i=n(63687),o=n(77361),r=n(55307);function s(e,t){var n;let{s:s,editor:a}=e;null==(n=a.firstChild)||n.normalize();let l=s.fakes(),c=e.s.wrapInTagGen(l),u=c.next();if(u.done)return;let d={collapsed:s.isCollapsed(),mode:o.INITIAL,element:u.value,next:r.states.START,jodit:e,style:t};for(;u&&!u.done;){let e=new i.FiniteStateMachine(r.states.START,r.transactions);for(d.element=u.value;e.getState()!==r.states.END;)d=e.dispatch("exec",d);u=c.next()}s.restoreFakes(l)}},25639:function(e,t,n){n.d(t,{CommitStyle:function(){return a}});var i=n(82758),o=n(87058),r=n(77361),s=n(83632);class a{isApplied(e,t){let n=this.__applyMap.get(e);return!!n&&!!n[t]}setApplied(e,t){var n;let i=null!=(n=this.__applyMap.get(e))?n:{};i[t]=!0,this.__applyMap.set(e,i)}get elementIsList(){return!!(this.options.element&&i.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&i.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(e){let{hooks:t}=this.options,n=t?Object.keys(t):[];try{n.forEach(n=>{e.e.on((0,o.camelCase)(r._PREFIX+"_"+n),t[n])}),(0,s.ApplyStyle)(e,this)}finally{n.forEach(n=>{e.e.off((0,o.camelCase)(r._PREFIX+"_"+n),t[n])}),this.__applyMap=new WeakMap}e.synchronizeValues(),e.e.fire("afterCommitStyle",this)}constructor(e){this.options=e,this.__applyMap=new WeakMap}}},77361:function(e,t,n){n.d(t,{CHANGE:function(){return r},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return s},UNWRAP:function(){return o},WRAP:function(){return i},_PREFIX:function(){return c}});let i="wrap",o="unwrap",r="change",s="unset",a="initial",l="replace",c="commitStyle"},55307:function(e,t,n){n.d(t,{states:function(){return u},transactions:function(){return d}});var i=n(82758),o=n(2748),r=n(38837),s=n(63687),a=n(77361);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}function c(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}let u={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},d={[u.START]:{exec(e){let{element:t,jodit:n,style:i,mode:r,collapsed:d}=e;if((0,s.isInsideInvisibleElement)(t,n.editor)||!d&&o.Dom.isEmptyContent(t))return c(l({},e),{next:u.END});let h=(0,s.getSuitParent)(i,t,n.editor)||(0,s.getSuitChild)(i,t);if(h)return c(l({},e),{next:u.ELEMENT,element:h});let f=(0,s.suitableClosest)(i,t,n.editor);return i.elementIsList&&o.Dom.isList(f)?c(l({},e),{next:u.LIST}):f?c(l({},e),{next:u.EXTRACT}):c(l({},e),{next:r!==a.UNWRAP?u.UNWRAP_CHILDREN:u.END})}},[u.LIST]:{exec(e){let{element:t,jodit:n,mode:r}=e;if(r!==a.INITIAL&&r!==a.UNWRAP&&r!==a.REPLACE)return c(l({},e),{next:u.END});let s=o.Dom.closest(t,"li",n.editor);return s&&o.Dom.closest(t,i.LIST_TAGS,n.editor)?c(l({},e),{element:s,next:u.TOGGLE_LIST}):c(l({},e),{next:u.END})}},[u.TOGGLE_LIST]:{exec(e){return c(l({},e),{mode:(0,s.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:u.END})}},[u.EXTRACT]:{exec(e){var t;let{element:n,jodit:i,style:a}=e,d=(0,s.suitableClosest)(a,n,i.editor);return((0,r.assert)(d,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&o.Dom.isBlock(d))?c(l({},e),{next:u.WRAP}):(a.elementIsBlock||(0,s.extractSelectedPart)(d,n,i),c(l({},e),{element:d,next:u.ELEMENT}))}},[u.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:n}=e;return(0,s.unwrapChildren)(n,t)?c(l({},e),{mode:a.UNWRAP,next:u.END}):c(l({},e),{next:u.WRAP})}},[u.WRAP]:{exec(e){let{element:t,jodit:n,style:i}=e,o=(0,s.wrap)(i,t,n);return c(l({},e),{next:i.elementIsList?u.END:u.CHANGE,mode:a.WRAP,element:o})}},[u.ELEMENT]:{exec(e){let{style:t,element:n,jodit:i}=e;return(0,s.toggleAttributes)(t,n,i,a.INITIAL,!0)!==a.INITIAL?c(l({},e),{next:u.CHANGE}):o.Dom.isTag(n,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{next:u.END})}},[u.CHANGE]:{exec(e){let{style:t,element:n,jodit:i,mode:r}=e,d=(0,s.toggleAttributes)(t,n,i,e.mode);return r!==a.WRAP&&d===a.UNSET&&!n.attributes.length&&o.Dom.isTag(n,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{mode:d,next:u.END})}},[u.UNWRAP]:{exec(e){let{element:t,style:n,jodit:i}=e;if(t.attributes.length&&o.Dom.isTag(t,n.element))return c(l({},e),{next:u.REPLACE_DEFAULT});let r=t.parentElement;return n.elementIsBlock&&!n.elementIsDefault&&r&&r!==i.editor&&o.Dom.isBlock(r)&&!o.Dom.isTag(r,s.WRAP_NODES)?c(l({},e),{next:u.REPLACE_DEFAULT}):(o.Dom.unwrap(t),c(l({},e),{mode:a.UNWRAP,next:u.END}))}},[u.REPLACE_DEFAULT]:{exec(e){return o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),c(l({},e),{mode:a.REPLACE,next:u.END})}},[u.END]:{exec(e){return e}}}},97333:function(e,t,n){n.d(t,{AsyncStorage:function(){return u}});var i=n(87058),o=n(2621),r=n(65638),s=n(21162),a=n(6700);function l(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var r=e.apply(t,n);function s(e){l(r,i,o,s,a,"next",e)}function a(e){l(r,i,o,s,a,"throw",e)}s(void 0)})}}class u{set(e,t){return c(function*(){let n=yield this.provider;return yield n.set((0,i.camelCase)(this.prefix+e),t),this}).call(this)}delete(e){return c(function*(){let t=yield this.provider;return yield t.delete((0,i.camelCase)(this.prefix+e)),this}).call(this)}get(e){return c(function*(){return(yield this.provider).get((0,i.camelCase)(this.prefix+e))}).call(this)}exists(e){return c(function*(){return(yield this.provider).exists((0,i.camelCase)(this.prefix+e))}).call(this)}clear(){return c(function*(){let e=yield this.provider;return yield e.clear(),this}).call(this)}close(){return c(function*(){let e=yield this.provider;"close"in e&&"function"==typeof e.close&&(yield e.close())}).call(this)}static makeStorage(e=!1,t,n){let i,l=null==n?void 0:n.defaultProvider;return null!=l?new u(Promise.resolve(i="local"===l?(0,r.canUsePersistentStorage)("localStorage")?new r.LocalStorageProvider(a.StorageKey+(t||"")):new s.MemoryStorageProvider:"memory"===l?new s.MemoryStorageProvider:l),t):("localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider(a.StorageKey+(t||""),e)):("indexedDB"===e||!0===e)&&(i=(0,o.canUseIndexedDB)().then(e=>e?new o.IndexedDBProvider(a.StorageKey+(t||""),"keyValueStore"):new s.MemoryStorageProvider)),i||(i=new s.MemoryStorageProvider),new u(Promise.resolve(i),t))}constructor(e,t){this.provider=e,this.prefix=a.StorageKey,t&&(this.prefix+=t)}}},2621:function(e,t,n){n.d(t,{IndexedDBProvider:function(){return s},canUseIndexedDB:function(){return c},clearUseIndexedDBCache:function(){return l}});var i=n(82758);function o(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(e){o(s,i,r,a,l,"next",e)}function l(e){o(s,i,r,a,l,"throw",e)}a(void 0)})}}class s{getDB(){return this.dbPromise||(this.dbPromise=new Promise((e,t)=>{let n=indexedDB.open(this.dbName,this.DB_VERSION);n.onerror=()=>{t(n.error)},n.onsuccess=()=>{e(n.result)},n.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName)}})),this.dbPromise}performTransaction(e,t){return r(function*(){try{let n=(yield this.getDB()).transaction([this.storeName],e).objectStore(this.storeName),i=t(n);return new Promise((e,t)=>{i.onsuccess=()=>{e(i.result)},i.onerror=()=>{t(i.error)}})}catch(e){return Promise.reject(e)}}).call(this)}set(e,t){return r(function*(){try{yield this.performTransaction("readwrite",n=>n.put(t,e))}catch(e){i.IS_PROD}return this}).call(this)}delete(e){return r(function*(){try{yield this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}).call(this)}get(e){return r(function*(){try{return yield this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}).call(this)}exists(e){return r(function*(){try{let t=yield this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}).call(this)}clear(){return r(function*(){try{yield this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}).call(this)}close(){return r(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(e){}this.dbPromise=null}}).call(this)}keys(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e.map(e=>String(e))}catch(e){return[]}}).call(this)}values(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e}catch(e){return[]}}).call(this)}entries(){return r(function*(){try{let[e,t]=yield Promise.all([this.keys(),this.values()]);return e.map((e,n)=>[e,t[n]])}catch(e){return[]}}).call(this)}constructor(e="JoditDB",t="keyValueStore"){this.dbName=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let a=null;function l(){a=null}function c(){return r(function*(){if(null!=a)return a;try{if("u"<typeof indexedDB)return a=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return a=yield new Promise(n=>{t.onerror=()=>{n(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),n(!0)}})}catch(e){return a=!1,!1}})()}},65638:function(e,t,n){n.d(t,{LocalStorageProvider:function(){return o},canUsePersistentStorage:function(){return i}});let i=(e="localStorage")=>{let t=new Map;if(t.has(e))return t.get(e);let n="___Jodit___"+Math.random().toString(),i="sessionStorage"===e?sessionStorage:localStorage;try{i.setItem(n,"1");let o="1"===i.getItem(n);return i.removeItem(n),t.set(e,o),o}catch(e){}return t.set(e,!1),!1};class o{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(e,t){try{let n=this.storage.getItem(this.rootKey),i=n?JSON.parse(n):{};i[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(i))}catch(e){}return this}delete(e){try{let t=this.storage.getItem(this.rootKey);if(t){let n=JSON.parse(t);delete n[e],this.storage.setItem(this.rootKey,JSON.stringify(n))}}catch(e){}return this}get(e){try{let t=this.storage.getItem(this.rootKey),n=t?JSON.parse(t):{};return void 0!==n[e]?n[e]:void 0}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}constructor(e,t="localStorage"){this.rootKey=e,this.strategy=t}}},21162:function(e,t,n){n.d(t,{MemoryStorageProvider:function(){return i}});class i{set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}constructor(){this.data=new Map}}},12081:function(e,t,n){n.d(t,{AsyncStorage:function(){return i.AsyncStorage},IndexedDBProvider:function(){return o.IndexedDBProvider},LocalStorageProvider:function(){return r.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return a.StorageKey},canUseIndexedDB:function(){return o.canUseIndexedDB},canUsePersistentStorage:function(){return r.canUsePersistentStorage},clearUseIndexedDBCache:function(){return o.clearUseIndexedDBCache}});var i=n(97333),o=n(2621),r=n(65638),s=n(21162),a=n(6700)},6700:function(e,t,n){n.d(t,{Storage:function(){return a},StorageKey:function(){return s}});var i=n(87058),o=n(65638),r=n(21162);let s="Jodit_";class a{set(e,t){return this.provider.set((0,i.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,i.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,i.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,i.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let n;return"localStorage"===e||"sessionStorage"===e?(0,o.canUsePersistentStorage)(e)&&(n=new o.LocalStorageProvider(s+(t||""),e)):!0===e&&(0,o.canUsePersistentStorage)("localStorage")&&(n=new o.LocalStorageProvider(s+(t||""))),n||(n=new r.MemoryStorageProvider),new a(n,t)}constructor(e,t){this.provider=e,this.prefix=s,t&&(this.prefix+=t)}}},70231:function(e,t,n){n.d(t,{Dlgs:function(){return a}});var i=n(580),o=n(27613),r=n(37790),s=n(638);class a{dlg(e){let t=(0,i.getPopupViewRoot)(this.o,this.container,this.od.body),n=new s.Dialog(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},e));return(0,r.markOwner)(this,n.container),n.parent=this,n.bindDestruct(this)}confirm(e,t,n){return e=l(e,this),t=l(t,this),s.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,n)}prompt(e,t,n,i,o){return e=l(e,this),t=l(t,this),i=l(i,this),s.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,i,o)}alert(e,t,n,i){return e=l(e,this),t=l(t,this),s.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,i)}}function l(e,t){return(0,o.isString)(e)&&!(0,o.isHTML)(e)&&(e=t.i18n(e)),e}},14316:function(e,t,n){n.d(t,{Elms:function(){return o}});var i=n(2748);class o{getElm(e){let t=this.getFullElName(e);return i.Dom.first(this.container,e=>i.Dom.isHTMLElement(e)&&e.classList.contains(t))}getElms(e){let t=this.getFullElName(e),n=[];return i.Dom.each(this.container,e=>{i.Dom.isHTMLElement(e)&&e.classList.contains(t)&&n.push(e)}),n}}},34176:function(e,t,n){n.d(t,{Mods:function(){return o}});var i=n(86068);class o{afterSetMod(e,t){}setMod(e,t,n){e=e.toLowerCase();let o=this.mods[e];if(o===t)return this;let r=`${this.componentName}_${e}_`,s=(n||this.container).classList;return null!=o&&s.remove(`${r}${o.toString().toLowerCase()}`),(0,i.isVoid)(t)||""===t||s.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){var t;return null!=(t=this.mods[e])?t:null}}},10830:function(e,t,n){n.d(t,{Button:function(){return v},UIButton:function(){return g},UIButtonState:function(){return m}});var i=n(78213),o=n(33433),r=n(87325),s=n(37133),a=n(2748),l=n(23282),c=n(70799),u=n(38837),d=n(29960),h=n(48538),f=n(12153),p=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let m=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:"",scale:void 0},tooltip:"",text:"",tabIndex:void 0}),g=class e extends h.UIElement{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){let e=this.getElm("text");return(0,u.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,u.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,d.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,d.attr)(this.container,"role",this.state.role)}updateSize(){let e=(0,r.getComponentClass)("UIList"),t=this.closest(e);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,d.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,d.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,d.attr)(this.container,"data-ref",this.state.name),(0,d.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,d.attr)(this.container,"title",e),(0,d.attr)(this.container,"aria-label",e),this.updateAriaLabel()}updateAriaLabel(){let e=this.state.text.trim().length>0,t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,d.attr)(this.container,"aria-label",t),(0,d.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,d.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let e=this.get("j.o.textIcons");if(!0===e||(0,l.isFunction)(e)&&e(this.state.name))return;a.Dom.detach(this.icon);let t=f.Icon.makeIcon(this.j,this.state.icon);t&&a.Dom.append(this.icon,t)}focus(){this.container.focus()}isFocused(){let{activeElement:e}=this.od;return!!(e&&a.Dom.isOrContains(this.container,e))}createContainer(){let e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),n=this.j.c.span(e+"__icon"),i=this.j.c.span(e+"__text");return a.Dom.append(t,n),a.Dom.append(t,i),t}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e)),this.j.e.fire(this,"click",e)}constructor(e,t){super(e),this.isButton=!0,this.state=m(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(i.STATUSES.ready,()=>{this.setState(t)})}};function v(e,t,n,i){let o=new g(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,c.isString)(t)?(o.state.icon.name=t,o.state.name=t,i&&(o.state.variant=i),n&&(o.state.text=n)):o.setState(t),o}p([o.cache],g.prototype,"text",null),p([o.cache],g.prototype,"icon",null),p([(0,s.watch)("state.size",{immediately:!1})],g.prototype,"onChangeSize",null),p([(0,s.watch)("state.type",{immediately:!1})],g.prototype,"onChangeType",null),p([(0,s.watch)("state.role",{immediately:!1})],g.prototype,"onChangeRole",null),p([(0,s.watch)("parentElement")],g.prototype,"updateSize",null),p([(0,s.watch)("state.variant",{immediately:!1})],g.prototype,"onChangeStatus",null),p([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeText",null),p([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeTextSetMode",null),p([(0,s.watch)("state.disabled")],g.prototype,"onChangeDisabled",null),p([(0,s.watch)("state.activated")],g.prototype,"onChangeActivated",null),p([(0,s.watch)("state.name",{immediately:!1})],g.prototype,"onChangeName",null),p([(0,s.watch)("state.tooltip",{immediately:!1})],g.prototype,"onChangeTooltip",null),p([(0,s.watch)("state.tabIndex",{immediately:!1})],g.prototype,"onChangeTabIndex",null),p([(0,s.watch)("state.icon",{immediately:!1})],g.prototype,"onChangeIcon",null),p([o.cacheHTML],g.prototype,"createContainer",null),p([(0,s.watch)("button:click")],g.prototype,"__onActionFire",null),g=p([r.component],g)},71916:function(e,t,n){n.d(t,{UIButtonGroup:function(){return l}});var i=n(87325),o=n(2748),r=n(38837),s=n(10830),a=n(62405);let l=class e extends a.UIGroup{className(){return"UIButtonGroup"}render(e){return`<div>
|
|
8
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,function(){return function(){"use strict";var e,t,n,i,o={6441:function(e,t,n){n.d(t,{Config:function(){return r}});var i=n(82758);let o={};class r{static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=i.globalDocument,this.ownerWindow=i.globalWindow,this.shadowRoot=null,this.nonce="",this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.asyncStorage={},this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=i.INSERT_AS_HTML,this.enter=i.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:i.PARAGRAPH,this.defaultMode=i.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,o)}}o=r.prototype,r.prototype.controls={}},26992:function(e,t,n){n.d(t,{Async:function(){return p}});var i=n(82758),o=n(91898),r=n(12045),s=n(23282),a=n(84767),l=n(72430),c=n(14773),u=n(70799),d=n(86068),h=n(38837),f=n(93661);class p{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...n){if(this.isDestructed)return 0;let i={};(0,d.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(i=t).timeout||0),i.label&&this.clearLabel(i.label);let r=(0,o.setTimeout)(e,t,...n),s=i.label||r;return this.timers.set(s,r),this.__callbacks.set(s,e),r}updateTimeout(e,t){if((0,h.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let n=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,o.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,u.isString)(e))return this.clearLabel(e);(0,o.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,n=!1){let i=0,a=!1,u=[],d=(...t)=>{if(!a){i=0;let n=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(n)?n.finally(e):e()}}},h=(...r)=>{a=!1,t?(!i&&n&&d(...r),(0,o.clearTimeout)(i),i=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,i)):d(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let n,i=!1,o=!0;return(...r)=>{if(n=r,i){o=!0;return}o=!0,t&&(o=!1,e(...n)),i=!0,this.__queueMicrotaskNative(()=>{i=!1,!this.isDestructed&&o&&e(...n)})}}throttle(e,t,n=!1){let i=null,o,r,a;return(...n)=>{(o=!0,a=n,t)?i||(r=()=>{o?(e(...a),o=!1,i=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,i)):i=null})():e(...a)}}promise(e){let t=()=>{},n=new Promise((n,i)=>{t=()=>i((0,f.abort)("Abort async")),this.promisesRejections.add(t),e(n,i)});return!n.finally&&"u">typeof process&&!i.IS_ES_NEXT&&(n.finally=e=>(n.then(e).catch(e),n)),n.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),n.rejectCallback=t,n}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let n=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(n),n}requestIdlePromise(e){return this.promise(t=>{let n=this.requestIdleCallback(()=>t(n),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let n=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){var i,o;let r=globalThis.scheduler.postTask(e,(i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({},t),o=o={signal:n.signal},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))}),i));return r.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),r}return this.promise((i,o)=>{let r=this.setTimeout(()=>{try{i(e())}catch(e){o(e)}this.__controllers.delete(n)},t.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(n),o((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,o.clearTimeout)(this.timers.get(e))),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,n,i,o;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(e=null==queueMicrotask?void 0:queueMicrotask.bind(window))?e:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(n=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?n:(e,t)=>{var n;let i=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-i))})},null!=(n=null==t?void 0:t.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(o=null==(i=window.cancelIdleCallback)?void 0:i.bind(window))?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,n){n.d(t,{Async:function(){return i.Async}});var i=n(26992)},4012:function(e,t,n){n.d(t,{Component:function(){return l}});var i=n(8884),o=n(78213),r=n(580),s=n(21537);let a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,n){let i=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),i.push(`__${e}`)),t&&(i.push("_",t),i.push("_",(0,s.isVoid)(n)?"true":n.toString())),i.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===o.STATUSES.ready}get isDestructed(){return this.componentStatus===o.STATUSES.destructed}get isInDestruct(){return o.STATUSES.beforeDestruct===this.componentStatus||o.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(o.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(o.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let n=Object.getPrototypeOf(this);n&&(0,s.isFunction)(n.setStatusComponent)&&n.setStatusComponent(e,t);let i=a.get(this),o=null==i?void 0:i[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let n=a.get(this);n||(n={},a.set(this,n)),n[e]||(n[e]=[]),n[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new i.Async,this.ownerWindow=window,this.__componentStatus=o.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=o.STATUSES},91907:function(e,t,n){n.d(t,{Component:function(){return i.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var i=n(4012),o=n(78213),r=n(80480)},78213:function(e,t,n){n.d(t,{STATUSES:function(){return i}});let i={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(e,t,n){n.d(t,{ViewComponent:function(){return o}});var i=n(4012);class o extends i.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.ow&&(this.ownerWindow=e.ow),e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),this.setParentView(e)}}},82758:function(e,t,n){n.r(t),n.d(t,{ACCURACY:function(){return q},APP_VERSION:function(){return i},BASE_PATH:function(){return eh},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return W},CLIPBOARD_ID:function(){return eg},COMMAND_KEYS:function(){return V},EMULATE_DBLCLICK_TIMEOUT:function(){return et},ES:function(){return o},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return D},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return eo},INSERT_CLEAR_HTML:function(){return ei},INSERT_ONLY_TEXT:function(){return er},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return v},IS_BLOCK:function(){return k},IS_ES_MODERN:function(){return r},IS_ES_NEXT:function(){return s},IS_IE:function(){return J},IS_INLINE:function(){return C},IS_MAC:function(){return ea},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return el},KEY_ALT:function(){return x},KEY_BACKSPACE:function(){return P},KEY_DELETE:function(){return F},KEY_DOWN:function(){return N},KEY_ENTER:function(){return L},KEY_ESC:function(){return z},KEY_F3:function(){return H},KEY_LEFT:function(){return R},KEY_META:function(){return j},KEY_RIGHT:function(){return M},KEY_SPACE:function(){return B},KEY_TAB:function(){return A},KEY_UP:function(){return O},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ee},MODE_SOURCE:function(){return $},MODE_SPLIT:function(){return G},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return p},NEARBY:function(){return U},NO_EMPTY_TAGS:function(){return T},PARAGRAPH:function(){return K},PASSIVE_EVENTS:function(){return eb},SAFE_COUNT_CHANGE_CALL:function(){return es},SET_TEST:function(){return d},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return b},SPACE_REG_EXP_END:function(){return w},SPACE_REG_EXP_START:function(){return y},TEMP_ATTR:function(){return ep},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return X},TEXT_RTF:function(){return Q},TOKENS:function(){return h},globalDocument:function(){return _},globalWindow:function(){return S},lang:function(){return em}});let i="4.14.3",o="es2015",r=!0,s=!1,a=!0,l=!1,c=!1,u="https://xdsoft.net/jodit/pro/",d=()=>l=!0,h={},f="\uFEFF",p="\xa0",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,b=()=>/[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,w=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,S="u">typeof window?window:void 0,_="u">typeof document?document:void 0,k=/^(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,C=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),I=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],D=new Set([...I,"br","hr"]),T=new Set(I),j="Meta",P="Backspace",A="Tab",L="Enter",z="Escape",x="Alt",R="ArrowLeft",O="ArrowUp",M="ArrowRight",N="ArrowDown",B="Space",F="Delete",H="F3",U=5,q=10,V=[j,P,F,O,N,M,R,L,z,H,A],W="br",K="p",Y=1,$=2,G=3,J="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),X=J?"text":"text/plain",Z=J?"html":"text/html",Q=J?"rtf":"text/rtf",ee="jodit-selection_marker",et=300,en="insert_as_html",ei="insert_clear_html",eo="insert_as_text",er="insert_only_text",es=10,ea=void 0!==S&&/Mac|iPod|iPhone|iPad/.test(S.navigator.platform),el={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ea?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ec=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:eu,isMin:ed}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=_.currentScript;if(e)return ec(e.src);let t=_.querySelectorAll("script[src]");return t&&t.length?ec(t[t.length-1].src):ec(S.location.href)})(),eh=eu,ef=ed,ep="data-jodit-temp",em={},eg="clipboard",ev="source-consumer",eb=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(e,t,n){n.d(t,{Create:function(){return a}});var i=n(82758),o=n(2748),r=n(21537),s=n(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,n){let i=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(i),t&&((0,r.isPlainObject)(t)?(0,r.attr)(i,t):n=t),n&&(0,r.asArray)(n).forEach(e=>o.Dom.append(i,(0,r.isString)(e)?this.fromHTML(e):e)),i}div(e,t,n){let i=this.element("div",t,n);return e&&(i.className=e),i}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});o.Dom.append(this.doc.body,t);let n=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(n,"iframe.contentWindow.document"),!n)throw Error("Iframe error");return n.open(),n.write("<!DOCTYPE html><html><head></head><body></body></html>"),n.close(),[n.body,t]}span(e,t,n){let i=this.element("span",t,n);return e&&(i.className=e),i}a(e,t,n){let i=this.element("a",t,n);return e&&(i.className=e),i}text(e){return this.doc.createTextNode(e)}fake(){return this.text(i.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let n=this.div();n.innerHTML=e.toString();let i=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(o.Dom.safeRemove(i),t){let e=(0,r.refs)(i);Object.keys(t).forEach(n=>{let i=e[n];i&&!1===t[n]&&o.Dom.hide(i)})}return i}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let n=t[e.tagName.toLowerCase()];(0,r.isFunction)(n)?n(e):(0,r.isPlainObject)(n)&&(0,r.attr)(e,n)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,n){n.d(t,{Create:function(){return i.Create}});var i=n(20218)},45219:function(e,t,n){n.d(t,{autobind:function(){return o}});var i=n(23282);function o(e,t,n){if(!(0,i.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=n.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,n){n.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var i=n(78213),o=n(2748),r=n(27613),s=n(82760);function a(e,t){let n=Object.getOwnPropertyDescriptor(e,t);return!n||(0,r.isFunction)(n.get)?null:n.value}function l(e,t,n){let i=n.get;if(!i)throw(0,s.error)("Getter property descriptor expected");n.get=function(){let e=i.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:e}),e}}function c(e,t,n){let a=n.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;n.value=function(...e){var t;let n,i=null!=(n=this.od)?n:document,r=c.get(i);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&o.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(i,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(i.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,n){n.d(t,{component:function(){return s},getComponentClass:function(){return a}});var i=n(82758),o=n(80568);let r=new Map;function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}let n=(0,o.getClassName)(e.prototype);if(r.has(n)&&!i.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return r.set(n,t),t}function a(e){return r.get(e)}},81577:function(e,t,n){n.d(t,{debounce:function(){return a},throttle:function(){return l}});var i=n(91907),o=n(27613),r=n(38837),s=n(89890);function a(e,t=!1,n="debounce"){return(a,l)=>{let c=a[l];if(!(0,o.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(i.STATUSES.ready,i=>{let{async:s}=i;(0,r.assert)(null!=s,`Component ${i.componentName||i.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(i):e,c=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:i.defaultTimeout;Object.defineProperty(i,l,{configurable:!0,value:s[n](i[l].bind(i),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,n){n.d(t,{derive:function(){return o}});var i=n(23282);function o(...e){return t=>{let n=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,i.isFunction)(s.value)&&!(0,i.isFunction)(n[t])&&Object.defineProperty(n,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,n){n.d(t,{hook:function(){return r}});var i=n(23282),o=n(89890);function r(e){return(t,n)=>{if(!(0,i.isFunction)(t[n]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[n].call(e)})}}},78927:function(e,t,n){n.d(t,{idle:function(){return s}});var i=n(91907),o=n(23282),r=n(89890);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(i.STATUSES.ready,e=>{let{async:n}=e,i=e[t];e[t]=(...t)=>n.requestIdleCallback(i.bind(e,...t))})}}},65478:function(e,t,n){n.r(t),n.d(t,{autobind:function(){return i.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return f.watch}});var i=n(45219),o=n(33433),r=n(87325),s=n(81577),a=n(55153),l=n(97357),c=n(78927),u=n(31589),d=n(53213),h=n(13525),f=n(37133)},31589:function(e,t,n){n.d(t,{nonenumerable:function(){return i}});let i=(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}},53213:function(e,t,n){n.d(t,{persistent:function(){return r}});var i=n(78213),o=n(39955);function r(e,t){e.hookStatus(i.STATUSES.ready,e=>{let n=(0,o.isViewObject)(e)?e:e.jodit,i=`${n.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=n.storage.get(i))?e:r},set(e){n.storage.set(i,e)}})})}},13525:function(e,t,n){n.d(t,{wait:function(){return s}});var i=n(78213),o=n(23282),r=n(89890);function s(e){return(t,n)=>{let s=t[n];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(i.STATUSES.ready,t=>{let{async:i}=t,o=t[n],r=0;Object.defineProperty(t,n,{configurable:!0,value:function n(...s){i.clearTimeout(r),e(t)?o.apply(t,s):r=i.setTimeout(()=>n(...s),10)}})})}}},37133:function(e,t,n){n.d(t,{watch:function(){return d}});var i=n(78213),o=n(73026),r=n(46559),s=n(23282),a=n(72430),l=n(39955),c=n(89890),u=n(37790);function d(e,t){return(n,d)=>{var h;if(!(0,s.isFunction)(n[d]))throw(0,c.error)("Handler must be a Function");let f=null==(h=null==t?void 0:t.immediately)||h,p=null==t?void 0:t.context,m=t=>{let i=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...n)=>{if(!t.isInDestruct)return t[d](e,...n)};f||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[n,o]=e.split(":"),r=p;n.length&&(r=t.get(n)),(0,s.isFunction)(r)&&(r=r(t)),i.events.on(r||t,o,c),r||i.events.on(o,c),t.hookStatus("beforeDestruct",()=>{i.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on(`change.${d.join(".")}`,c);let f=(0,u.getPropertyDescriptor)(n,l);Object.defineProperty(t,l,{configurable:!0,set(e){let n=h;n!==e&&(h=e,f&&f.set&&f.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on(`change.${d.join(".")}`,c),c(l,n,h))},get(){return f&&f.get?f.get.call(t):h}})})};(0,s.isFunction)(n.hookStatus)?n.hookStatus(i.STATUSES.ready,m):m(n)}}},2748:function(e,t,n){n.d(t,{Dom:function(){return y}});var i=n(82758),o=n(4510),r=n(68345),s=n(23282),a=n(58487),l=n(42320),c=n(70799),u=n(86068),d=n(49055),h=n(38837),f=n(29960),p=n(41180),m=n(86583),g=n(89890),v=n(37790);let b=RegExp(`<([a-z]+)[^>]+${i.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,n){let i,o=e;n.s.save();let r=!1;do r=!1,(i=o.nextSibling)&&!y.isBlock(i)&&!y.isTag(i,"br")&&(r=!0,o=i);while(r);return y.__wrapElements(t,n,e,o)}static __wrapElements(e,t,n,i){let o=(0,c.isString)(e)?t.createInside.element(e):e;n.parentNode&&n.parentNode.insertBefore(o,n);let r=n;for(;r&&(r=n.nextSibling,o.appendChild(n),n!==i&&r);)n=r;return t.s.restore(),o}static wrapInline(e,t,n){let i,o=e,r=e;n.s.save();let s=!1;do s=!1,(i=o.previousSibling)&&!y.isBlock(i)&&(s=!0,o=i);while(s);do s=!1,(i=r.nextSibling)&&!y.isBlock(i)&&(s=!0,r=i);while(s);return y.__wrapElements(t,n,o,r)}static wrap(e,t,n){let i=(0,c.isString)(t)?n.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,g.error)("Element should be in DOM");e.parentNode.insertBefore(i,e),i.appendChild(e)}else{let t=e.extractContents();e.insertNode(i),i.appendChild(t)}return i}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,n){let i=e;for(;i&&i!==t&&!(e!==i&&n(i));){let e=i.firstChild||i.nextSibling;if(!e){for(;i&&!i.nextSibling;)if((i=i.parentNode)===t)return;e=null==i?void 0:i.nextSibling}i=e}}static replace(e,t,n,i=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,h.assert)(n,"Need create instance for new tag"),t=n.fromHTML(t)),(0,c.isString)(t)?((0,h.assert)(n,"Need create instance for new tag"),s=n.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return i&&y.isElement(e)&&y.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return y.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(i.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){return y.isNode(e)&&!y.closest(e,e=>y.isElement(e)&&"false"===e.getAttribute("contenteditable"),t)}static isEmpty(e,t=i.NO_EMPTY_TAGS){let n;if(!e)return!0;n=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,d.trim)(e.nodeValue).length;return y.isText(e)?o(e):!(y.isElement(e)&&n(e))&&y.each(e,e=>{if(y.isText(e)&&!o(e)||y.isElement(e)&&n(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return y.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return y.isTag(e,i.LIST_TAGS)}static isLeaf(e){return y.isTag(e,"li")}static isImage(e){return y.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,u.isVoid)(e)&&"object"==typeof e&&y.isNode(e)&&i.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!y.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!y.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!y.isNode(e))return!1;let n=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(n?n.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,p.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.isVoid)(e)&&y.isHTMLElement(e)&&y.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return y.__deepMost(e,t,!1)}static last(e,t){return y.__deepMost(e,t,!0)}static __deepMost(e,t,n){let i=n?"lastChild":"firstChild",o=n?"previousSibling":"nextSibling",r=null==e?void 0:e[i];if(!r)return null;do{if(t(r))return r;let n=r[i]||r[o];if(!n&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[o]&&r.parentNode!==e);n=null==r?void 0:r[o]}r=n}while(r);return null}static prev(e,t,n,i=!0){return y.find(e,t,n,!1,i)}static next(e,t,n,i=!0){return y.find(e,t,n,!0,i)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,n){let i=e=>y.isElement(e)&&e.classList.contains(t),o=e.parentNode;return n?y.prev(e,i,o):y.next(e,i,o)}static find(e,t,n,i=!0,o=!0){let r=this.nextGen(e,n,i,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,n=!0,i=!0){let o=[],r=e;do{let t=n?r.nextSibling:r.previousSibling;for(;t;)o.push(t),t=n?t.nextSibling:t.previousSibling;o.reverse(),yield*this.runInStack(e,o,n,i),r=r.parentNode}while(r&&r!==t);return null}static each(e,t,n=!0){let i=this.eachGen(e,n),o=i.next();for(;!o.done;){if(!1===t(o.value))return!1;o=i.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,n,i=!0){for(;t.length;){let o=t.pop();if(i){let e=n?o.lastChild:o.firstChild;for(;e;)t.push(e),e=n?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,n,i="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=y.findWithCurrent(r[o],t,r,i,o);if(e)return e}for(;r&&!r[i]&&r!==n;)r=r.parentNode;r&&r[i]&&r!==n&&(r=r[i])}while(r&&r!==n);return null}static findSibling(e,t=!0,n=e=>!y.isEmptyTextNode(e)){let i=y.sibling(e,t);for(;i&&!n(i);)i=y.sibling(i,t);return i&&n(i)?i:null}static findNotEmptySibling(e,t){return y.findSibling(e,t,e=>{var t;return!y.isEmptyTextNode(e)&&!!(!y.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,d.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,n){return(0,v.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,d.trim)((null==e?void 0:e.nodeValue)||"").length)),n)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,n,i=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===n||!o.parentNode)break;o=o.parentNode}while(o&&o!==n);return o===n&&i&&t(o)?o:null}static closest(e,t,n){let i,o=e=>e.toLowerCase();if((0,s.isFunction)(t))i=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));i=t=>!!(t&&e.has(o(t.nodeName)))}else i=e=>!!(e&&o(t)===o(e.nodeName));return y.up(e,i,n)}static furthest(e,t,n){let i=null,o=null==e?void 0:e.parentElement;for(;o&&o!==n;)t(o)&&(i=o),o=null==o?void 0:o.parentElement;return i}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var n;null==(n=e.parentNode)||n.insertBefore(t,e.nextSibling)}static before(e,t){var n;null==(n=e.parentNode)||n.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,n=!1,r=()=>!0){let s=(e.ownerDocument||i.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,n?t.firstChild:null)}static isOrContains(e,t,n=!1){return e===t?!n:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>y.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let n=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,i.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),n&&e.setStartBefore(n)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,m.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,m.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let n=e.tagName.toLowerCase();return t instanceof Set?t.has(n)||t.has(e.tagName.toUpperCase()):n===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,f.attr)(e,t),(0,f.attr)(e,i.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,f.attr)(e,i.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+i.MARKER_CLASS)}static replaceTemporaryFromString(e){return e.replace(b,"$2")}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(i.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,n){n.d(t,{Dom:function(){return i.Dom},LazyWalker:function(){return o.LazyWalker}});var i=n(2748),o=n(70071)},70071:function(e,t,n){n.d(t,{LazyWalker:function(){return s}});var i=n(45219),o=n(2748),r=n(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=o.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var e;if(this.workNodes){this.isWorked=!0;let t=0,n=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<n;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([i.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,n){n.d(t,{EventEmitter:function(){return u}});var i=n(82758),o=n(46559),r=n(68345),s=n(23282),a=n(70799),l=n(89890),c=n(15738);class u{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,o.splitArray)(e).map(e=>e.trim()).forEach(e=>{let n=e.split("."),i=n[1]||c.defaultNameSpace;t.call(this,n[0],i)})}__getStore(e){if(!e)throw(0,l.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&delete e[this.__key]}__triggerNativeEvent(e,t){let n=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?n.initEvent(t,!0,!0):(n.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(n,e,{value:t[e],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(n)}get current(){return this.currents[this.currents.length-1]}on(e,t,n,o){let c,u,h,f;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,f=n):(c=e,u=t,h=n,f=o),!((0,a.isString)(u)||(0,a.isStringArray)(u))||0===u.length)throw(0,l.error)("Need events names");if(!(0,s.isFunction)(h))throw(0,l.error)("Need event handler");if((0,r.isArray)(c))return c.forEach(e=>{this.on(e,u,h,f)}),this;let p=c,m=this.__getStore(p),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(p)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(u,(e,t)=>{var n,o;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let r={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,r,null==f?void 0:f.top),d(p)){let t=i.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(n=null==f?void 0:f.capture)&&n}:null!=(o=null==f?void 0:f.capture)&&o;v.options=t,p.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(p,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let n=this.__domEventsMap.get(e)||new Set;n.add(t),this.__domEventsMap.set(e,n)}__unmemoryDOMSubjectToHandler(e,t){let n=this.__domEventsMap,i=n.get(e)||new Set;i.delete(t),i.size?n.set(e,i):n.delete(e)}one(e,t,n,i){let o,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,r=e,s=t,l=n):(o=e,r=t,s=n,l=i);let c=(...e)=>(this.off(o,r,c),s(...e));return this.on(o,r,c,l),this}off(e,t,n){let i,o,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(i=this,o=e,l=t):(i=e,o=t,l=n),(0,r.isArray)(i))return i.forEach(e=>{this.off(e,o,l)}),this;let u=i,h=this.__getStore(u);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.length)return h.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let f=e=>{var t;d(u)&&(u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback))},p=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&p(e,t)});let n=h.get(e,t);if(n&&n.length)if((0,s.isFunction)(l)){let i=h.indexOf(e,t,l);!1!==i&&(f(n[i]),n.splice(i,1),n.length||h.clearEvents(t,e))}else n.forEach(f),n.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{p(e,t)}):p(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let n=(0,a.isString)(e)?this:e,i=(0,a.isString)(e)?e:t;if("string"!=typeof i)throw(0,l.error)("Need event names");let o=this.__getStore(n);this.__eachEvent(i,(e,t)=>{let i=o.get(e,t);i&&this.__stopped.push(i),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(n,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...n){let i,o,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...n]:n;if(!d(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&d(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(d(r))this.__triggerNativeEvent(r,e);else{let n=h.get(e,t);if(n)try{[...n].every(t=>!this.__isStopped(n)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...u),this.currents.pop(),void 0!==o&&(i=o),!0))}finally{this.__removeStop(n)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let n=this.fire.apply(this,[r,e+"."+t,...u]);void 0!==n&&(i=n)})}}),i}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=i.globalDocument,this.__prepareEvent=e=>{!e.cancelBubble&&(e.composed&&(0,s.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=new Date().getTime()}}function d(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,n){n.d(t,{Eventify:function(){return i}});class i{on(e,t){var n;return this.__map.has(e)||this.__map.set(e,new Set),null==(n=this.__map.get(e))||n.add(t),this}off(e,t){var n;return this.__map.has(e)&&(null==(n=this.__map.get(e))||n.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var n;let i;return this.__map.has(e)&&(null==(n=this.__map.get(e))||n.forEach(e=>{i=e(...t)})),i}constructor(){this.__map=new Map}}},57012:function(e,t,n){n.d(t,{eventEmitter:function(){return i}});let i=new(n(98220)).EventEmitter},3827:function(e,t,n){n.d(t,{EventEmitter:function(){return i.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var i=n(98220),o=n(72757),r=n(73026),s=n(15738)},73026:function(e,t,n){n.d(t,{observable:function(){return c}});var i=n(68345),o=n(59292),r=n(72430),s=n(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},n={},c=(t,o)=>((0,i.isArray)(t)?t.map(e=>c(e,o)):(n[t]||(n[t]=[]),n[t].push(o)),e),u=(o,...r)=>{if((0,i.isArray)(o))return void o.map(e=>u(e,...r));try{!t[o]&&n[o]&&(t[o]=!0,n[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,n=[])=>{let i={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=n.concat(a).filter(e=>e.length);i[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set:t=>{let n=i[a];if(!(0,o.isFastEqual)(i[a],t)){u(["beforeChange",`beforeChange.${l.join(".")}`],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):i[a]=t;let o=[];u(["change",...l.reduce((e,t)=>(o.push(t),e.push(`change.${o.join(".")}`),e),[])],l.join("."),n,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):i[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(i[a])&&d(i[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,n){n.d(t,{EventHandlersStore:function(){return s},defaultNameSpace:function(){return r}});var i=n(4510),o=n(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let n=this.__store.get(t);return(0,o.assert)(n,"-"),n[e]}}indexOf(e,t,n){let i=this.get(e,t);if(i){for(let e=0;e<i.length;e+=1)if(i[e].originalCallback===n)return e}return!1}namespaces(e=!1){let t=(0,i.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,n,i=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),i?o[e].unshift(n):o[e].push(n)}clear(){this.__store.clear()}clearEvents(e,t){let n=this.__store.get(e);n&&n[t]&&(delete n[t],Object.keys(n).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(e,t,n){n.d(t,{eventEmitter:function(){return C},extendLang:function(){return w},getContainer:function(){return _},getPopupViewRoot:function(){return k},instances:function(){return p},modules:function(){return y},pluginSystem:function(){return b},uniqueUid:function(){return v}});var i=n(19306),o=n(70799),r=n(39955),s=n(12475),a=n(29960),l=n(41180),c=n(80568),u=n(41876),d=n(57012),h=n(82758),f=n(22732);let p={},m=1,g=new Set;function v(){function e(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let t=e();for(;g.has(t);)t=e();return g.add(t),t}let b=new u.PluginSystem({getContainer:_}),y={},w=e=>{Object.keys(e).forEach(t=>{h.lang[t]?Object.assign(h.lang[t],e[t]):h.lang[t]=e[t]})},S=new WeakMap;function _(e,t,n="div",l=!1){let u=(0,o.isString)(t)?t:t?(0,c.getClassName)(t.prototype):"jodit-utils",d=S.get(e)||{},h=u+n,p=(0,r.isViewObject)(e)?e:e.j,m=null;if(!d[h]){let t=p.c;if(m=k(p.o,p.container,e.od.body),l&&(0,i.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===n?e.ed.head:e.ed.body;m=(0,i.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let o=t.element(n,{className:`jodit jodit-${(0,s.kebabCase)(u)}-container jodit-box`});p.o.nonce&&("style"===n||"script"===n)&&(0,a.attr)(o,"nonce",p.o.nonce),o.classList.add(`jodit_theme_${p.o.theme||"default"}`),f.Dom.append(m,o),d[h]=o,e.hookStatus("beforeDestruct",()=>{p.events.off(o),f.Dom.safeRemove(o),delete d[h],Object.keys(d).length&&S.delete(e)}),S.set(e,d),p.events.fire("getContainer",o)}return d[h].classList.remove("jodit_theme_default","jodit_theme_dark"),d[h].classList.add(`jodit_theme_${p.o.theme||"default"}`),d[h]}function k(e,t,n){var i,o,r;return null!=(r=null!=(o=null!=(i=e.popupRoot)?i:e.shadowRoot)?o:f.Dom.closest(t,e=>f.Dom.isHTMLElement(e)&&(f.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,l.css)(e,"position"))),n))?r:n}let C=d.eventEmitter},29999:function(e,t,n){n.d(t,{asArray:function(){return o}});var i=n(68345);let o=e=>(0,i.isArray)(e)?e:[e]},76855:function(e,t,n){n.d(t,{asArray:function(){return i.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var i=n(29999),o=n(46559),r=n(4510)},46559:function(e,t,n){n.d(t,{splitArray:function(){return i}});function i(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,n){n.d(t,{toArray:function(){return r}});var i=n(70722),o=n(58844);let r=function(...e){var t;return((0,i.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}},91898:function(e,t,n){n.d(t,{clearTimeout:function(){return i.clearTimeout},setTimeout:function(){return i.setTimeout}});var i=n(13252)},13252:function(e,t,n){n.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var i=n(82758);function o(e,t,...n){return t?i.globalWindow.setTimeout(e,t,...n):(e.call(null,...n),0)}function r(e){i.globalWindow.clearTimeout(e)}},54765:function(e,t,n){n.d(t,{hasBrowserColorPicker:function(){return o}});var i=n(82758);function o(){let e=!0;try{let t=i.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,n){n.d(t,{hasBrowserColorPicker:function(){return i.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return p.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return b.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return w.isPromise},isSet:function(){return S.isSet},isString:function(){return _.isString},isStringArray:function(){return _.isStringArray},isURL:function(){return k.isURL},isValidName:function(){return C.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return I.isVoid},isWindow:function(){return D.isWindow}});var i=n(54765),o=n(12045),r=n(68345),s=n(87612),a=n(59292),l=n(23282),c=n(58487),u=n(29673),d=n(60132),h=n(72913),f=n(19306),p=n(45603),m=n(78116),g=n(70722),v=n(84767),b=n(29807),y=n(72430),w=n(14773),S=n(42320),_=n(70799),k=n(26049),C=n(37508),E=n(39955),I=n(86068),D=n(52742)},12045:function(e,t,n){n.d(t,{isAbortError:function(){return i}});function i(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,n){n.d(t,{isArray:function(){return i}});function i(e){return Array.isArray(e)}},87612:function(e,t,n){n.d(t,{isBoolean:function(){return i}});function i(e){return"boolean"==typeof e}},59292:function(e,t,n){n.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var i=n(67462);function o(e,t){return e===t||(0,i.stringify)(e)===(0,i.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,n){n.d(t,{isFunction:function(){return i}});function i(e){return"function"==typeof e}},29673:function(e,t,n){n.d(t,{isHtmlFromWord:function(){return i}});function i(e){return -1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==e.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==e.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==e.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==e.search(/style='[^']*mso-/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}},58487:function(e,t,n){n.d(t,{isHTML:function(){return o}});var i=n(70799);let o=e=>(0,i.isString)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))},60132:function(e,t,n){n.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var i=n(2748),o=n(23282),r=n(86068);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&i.Dom.isElement(e.container)}},72913:function(e,t,n){n.d(t,{isInt:function(){return r}});var i=n(29807),o=n(70799);function r(e){return(0,o.isString)(e)&&(0,i.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,n){n.d(t,{isJoditObject:function(){return o}});var i=n(23282);function o(e){return!!(e&&e instanceof Object&&(0,i.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,n){n.d(t,{isLicense:function(){return o}});var i=n(70799);let o=e=>(0,i.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)},78116:function(e,t,n){n.d(t,{isMarker:function(){return o}});var i=n(2748);function o(e){return i.Dom.isMarker(e)}},70722:function(e,t,n){n.d(t,{isNativeFunction:function(){return i}});function i(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)))}},84767:function(e,t,n){n.d(t,{isNumber:function(){return i}});function i(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,n){n.d(t,{isNumeric:function(){return o}});var i=n(70799);function o(e){if((0,i.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},72430:function(e,t,n){n.d(t,{isPlainObject:function(){return o}});var i=n(52742);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,i.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,n){n.d(t,{isPromise:function(){return i}});function i(e){return e&&"function"==typeof e.then}},42320:function(e,t,n){n.d(t,{isSet:function(){return o}});var i=n(23282);function o(e){return!!e&&(0,i.isFunction)(e.has)&&(0,i.isFunction)(e.add)&&(0,i.isFunction)(e.delete)}},70799:function(e,t,n){n.d(t,{isString:function(){return o},isStringArray:function(){return r}});var i=n(68345);function o(e){return"string"==typeof e}function r(e){return(0,i.isArray)(e)&&o(e[0])}},26049:function(e,t,n){n.d(t,{isURL:function(){return o}});var i=n(82758);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=i.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,n){n.d(t,{isValidName:function(){return i}});function i(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,n){n.d(t,{isViewObject:function(){return o}});var i=n(23282);function o(e){return!!(e&&e instanceof Object&&(0,i.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,n){n.d(t,{isVoid:function(){return i}});function i(e){return null==e}},52742:function(e,t,n){n.d(t,{isWindow:function(){return i}});function i(e){return null!=e&&e===e.window}},35278:function(e,t,n){n.d(t,{colorToHex:function(){return i}});let i=e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let n=parseInt(t[2],10),i=parseInt(t[3],10),o=(parseInt(t[4],10)|i<<8|n<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}},58149:function(e,t,n){n.d(t,{colorToHex:function(){return i.colorToHex}});var i=n(35278)},32574:function(e,t,n){n.d(t,{applyStyles:function(){return u}});var i=n(82758),o=n(2748),r=n(49055),s=n(29960),a=n(41180),l=n(76078);function c(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(e,t,n)=>{switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function u(e){let t=/<html(?:\s[^>]*)?>/i.exec(e);if(!t)return e;let n=(e=e.substring(t.index)).toLowerCase().lastIndexOf("</html>");-1!==n&&(e=e.substring(0,n+7));let u=i.globalDocument.createElement("iframe");(0,a.css)(u,"display","none"),o.Dom.append(i.globalDocument.body,u);let d="";try{let t=u.contentDocument||(u.contentWindow?u.contentWindow.document:null);if(t){t.open(),t.write(e),t.close(),o.Dom.each(t.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,s.attr)(e,"style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let n=t.styleSheets[e].cssRules;for(let e=0;e<n.length;e+=1)""!==n[e].selectorText&&(0,l.$$)(n[e].selectorText,t.body).forEach(t=>{t.style.cssText=c(n[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!i.IS_PROD)throw e}o.Dom.each(t.body,e=>{if(o.Dom.isElement(e)){let t=(0,s.attr)(e,"style");t&&(e.style.cssText=c(t)),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null)}}),d=t.firstChild?(0,r.trim)(t.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(u)}return d&&(e=d),(0,r.trim)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(e,t,n){n.d(t,{cleanFromWord:function(){return l}});var i=n(82758),o=n(2748),r=n(4510),s=n(49055),a=n(29960);function l(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let n=i.globalDocument.createElement("div");n.innerHTML=e;let s=[];n.firstChild&&o.Dom.each(n,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,a.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,a.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),t=n.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(s.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(e,t,n){n.d(t,{htmlspecialchars:function(){return o}});var i=n(82758);function o(e){let t=i.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},75275:function(e,t,n){n.d(t,{applyStyles:function(){return i.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},nl2br:function(){return s.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var i=n(32574),o=n(53212),r=n(53326),s=n(45971),a=n(86518),l=n(91003)},45971:function(e,t,n){n.d(t,{nl2br:function(){return i}});function i(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}},86518:function(e,t,n){n.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return h}});var i=n(2748),o=n(43555),r=n(29960);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var n;if(!i.Dom.isElement(e)&&!i.Dom.isFragment(e))return;let l=[];for(let t of(i.Dom.each(e,e=>{i.Dom.isElement(e)&&i.Dom.up(e.parentNode,a)&&l.push(e)}),l))i.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==i.Dom.up(e,a))return!1;for(let t=e.parentElement;t;t=t.parentElement){let e=t.nodeName.toLowerCase();if("math"===e||"svg"===e)break;if(s.has(e))return!1}return!0}(t)&&i.Dom.safeRemove(t);let c=null!=(n=t.removeEventAttributes)?n:t.removeOnError,u=e=>{if(i.Dom.isElement(e)&&(c&&function(e){if(!i.Dom.isElement(e))return;let t=[];for(let n=0;n<e.attributes.length;n++)e.attributes[n].name.toLowerCase().startsWith("on")&&t.push(e.attributes[n].name);for(let n of t)(0,r.attrRaw)(e,n,null)}(e),h(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,o.attr)(e,"target"))){let t=((0,o.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}};u(e),i.Dom.each(e,u)}let c=["src","data","action","formaction","poster","background","xlink:href"],u=new Set(["iframe","frame","object","embed"]);function d(e,t){let n=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(n)||/^data:(?:text\/html|application\/xhtml)/.test(n))||/^data:image\/svg/.test(n)&&u.has(t)}function h(e,{safeJavaScriptLink:t,removeOnError:n}={safeJavaScriptLink:!0,removeOnError:!0}){if(!i.Dom.isElement(e))return!1;let s=!1;n&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),s=!0);let a=e.nodeName.toLowerCase(),l=(0,o.attr)(e,"href");if(t&&l&&d(l,a)){let t="u">typeof location?location.protocol:"http:";(0,o.attr)(e,"href",t+"//"+l),s=!0}if(t)for(let t of(e.hasAttribute("srcdoc")&&((0,o.attr)(e,"srcdoc",null),s=!0),c)){let n=(0,r.attrRaw)(e,t);n&&d(n,a)&&((0,o.attr)(e,t,null),s=!0)}return s}},91003:function(e,t,n){n.d(t,{stripTags:function(){return function e(t,n=document,c=null,u=!1){let d=n.createElement("div");(0,o.isString)(t)?d.innerHTML=t:i.Dom.append(d,t);let h=[];return i.Dom.each(d,e=>{i.Dom.isElement(e)&&h.push(e)}),h.forEach(t=>{if(!t.parentNode)return;if(c&&i.Dom.isTag(t,c)){let o=t.nodeName.toLowerCase(),r=i.Dom.isTag(t,l)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,n,c,u)}%%%/jodit-${o}%%%`;i.Dom.before(t,n.createTextNode(r)),i.Dom.safeRemove(t);return}if(i.Dom.isTag(t,a))return void i.Dom.safeRemove(t);if(!i.Dom.isTag(t,s))return;let o=t.nextSibling;!(i.Dom.isText(o)&&/^\s/.test(o.nodeValue||""))&&o&&i.Dom.before(o,n.createTextNode(u?"%%%jodit-single-br%%%":" "))}),(0,r.trim)(d.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,n,i)=>`<${t?"/":""}${i}>`)}}});var i=n(2748),o=n(70799),r=n(49055);let s=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),a=new Set(["script","style"]),l=new Set(["br","hr","input"])},21537:function(e,t,n){n.r(t),n.d(t,{$$:function(){return d.$$},CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return d.ConnectionError},LimitedStack:function(){return d.LimitedStack},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},OptionsError:function(){return d.OptionsError},UNSAFE_PROTO_KEYS:function(){return d.UNSAFE_PROTO_KEYS},abort:function(){return d.abort},alignElement:function(){return d.alignElement},alreadyLoadedList:function(){return d.alreadyLoadedList},appendScriptAsync:function(){return d.appendScriptAsync},appendStyleAsync:function(){return d.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return i.asArray},assert:function(){return d.assert},attr:function(){return d.attr},attrRaw:function(){return d.attrRaw},browser:function(){return d.browser},buildQuery:function(){return d.buildQuery},call:function(){return d.call},callPromise:function(){return d.callPromise},callThis:function(){return d.callThis},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearAlign:function(){return d.clearAlign},clearCenterAlign:function(){return d.clearCenterAlign},clearTimeout:function(){return o.clearTimeout},cns:function(){return d.cns},colorToHex:function(){return s.colorToHex},completeUrl:function(){return d.completeUrl},connection:function(){return d.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},css:function(){return d.css},cssInline:function(){return d.cssInline},cssPath:function(){return d.cssPath},ctrlKey:function(){return d.ctrlKey},dataBind:function(){return d.dataBind},defaultLanguage:function(){return d.defaultLanguage},error:function(){return d.error},fastClone:function(){return d.fastClone},fuzzySearchIndex:function(){return u.fuzzySearchIndex},get:function(){return d.get},getClassName:function(){return d.getClassName},getContentWidth:function(){return c.getContentWidth},getDataTransfer:function(){return d.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getPropertyDescriptor:function(){return d.getPropertyDescriptor},getScrollParent:function(){return c.getScrollParent},getXPathByElement:function(){return d.getXPathByElement},hAlignElement:function(){return d.hAlignElement},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},humanSizeToBytes:function(){return d.humanSizeToBytes},i18n:function(){return u.i18n},inView:function(){return d.inView},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isArray:function(){return r.isArray},isAtom:function(){return d.isAtom},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isUnsafeProtoKey:function(){return d.isUnsafeProtoKey},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return u.kebabCase},keepNames:function(){return d.keepNames},keys:function(){return d.keys},loadImage:function(){return d.loadImage},loadNext:function(){return d.loadNext},loadNextStyle:function(){return d.loadNextStyle},markAsAtomic:function(){return d.markAsAtomic},markDeprecated:function(){return d.markDeprecated},markOwner:function(){return d.markOwner},memorizeExec:function(){return d.memorizeExec},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return c.offset},options:function(){return d.options},parseQuery:function(){return d.parseQuery},position:function(){return c.position},previewBox:function(){return d.previewBox},refs:function(){return d.refs},reset:function(){return d.reset},resolveElement:function(){return d.resolveElement},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return d.scrollIntoViewIfNeeded},set:function(){return d.set},setTimeout:function(){return o.setTimeout},size:function(){return c.size},splitArray:function(){return i.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return i.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var i=n(76855),o=n(91898),r=n(27613),s=n(58149),a=n(75275),l=n(71521),c=n(56175),u=n(59007),d=n(43555)},71521:function(e,t,n){n.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return i.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.normalizeCssValue},normalizeKeyAliases:function(){return r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var i=n(21224),o=n(3760),r=n(49033),s=n(12972),a=n(9992),l=n(70091),c=n(46334),u=n(37406)},21224:function(e,t,n){n.d(t,{normalizeColor:function(){return r}});var i=n(35278),o=n(49055);let r=e=>{let t=["#"],n=(0,i.colorToHex)(e);if(!n)return!1;if(3===(n=(n=(0,o.trim)(n.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(n[e]),t.push(n[e]);return t.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n}},3760:function(e,t,n){n.d(t,{NUMBER_FIELDS_REG:function(){return a},normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var i=n(29807),o=n(86068),r=n(35278),s=n(12475);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,i.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,i.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}},49033:function(e,t,n){n.d(t,{normalizeKeyAliases:function(){return r}});var i=n(82758),o=n(49055);function r(e){let t={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>i.KEY_ALIASES[e]||e).sort((e,t)=>n[e]&&!n[t]?-1:!n[e]&&n[t]?1:n[e]&&n[t]?n[e]-n[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},12972:function(e,t,n){n.d(t,{normalizeLicense:function(){return i}});let i=(e,t=8)=>{let n=[];for(;e.length;)n.push(e.substr(0,t)),e=e.substr(t);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}},9992:function(e,t,n){n.d(t,{normalizePath:function(){return o}});var i=n(49055);let o=(...e)=>e.filter(e=>(0,i.trim)(e).length).map((t,n)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),n&&(t=t.replace(/^\//,"")),n!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")},70091:function(e,t,n){n.d(t,{normalizeRelativePath:function(){return i}});let i=e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")},46334:function(e,t,n){n.d(t,{normalizeSize:function(){return i}});let i=(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()},37406:function(e,t,n){n.d(t,{normalizeUrl:function(){return i}});let i=(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(e,t,n){n.d(t,{getContentWidth:function(){return i}});let i=(e,t)=>{let n=t.getComputedStyle(e);return e.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},35224:function(e,t,n){n.d(t,{getFixedPositionOffset:function(){return i}});function i(e){var t,n;let i=null==(t=e.ownerDocument)?void 0:t.defaultView,o=e.parentElement;for(;i&&o;){if(""!==(n=i.getComputedStyle(o)).transform&&"none"!==n.transform||""!==n.perspective&&"none"!==n.perspective||""!==n.filter&&"none"!==n.filter||"transform"===n.willChange||"perspective"===n.willChange||"filter"===n.willChange||"paint"===n.contain||"layout"===n.contain||"strict"===n.contain||"content"===n.contain){let e=o.getBoundingClientRect();return{x:e.left,y:e.top}}o=o.parentElement}return{x:0,y:0}}},16442:function(e,t,n){n.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let n=o.Dom.isHTMLElement(t),s=n&&(0,r.css)(t,"overflowY");return n&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||i.globalDocument.scrollingElement||i.globalDocument.body}}});var i=n(82758),o=n(2748),r=n(43555)},56175:function(e,t,n){n.d(t,{getContentWidth:function(){return i.getContentWidth},getFixedPositionOffset:function(){return o.getFixedPositionOffset},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return c.position},size:function(){return a.size}});var i=n(44506),o=n(35224),r=n(16442),s=n(81630),a=n(21496),l=n(81284),c=n(5700)},81630:function(e,t,n){n.d(t,{innerWidth:function(){return i}});let i=(e,t)=>{let n=t.getComputedStyle(e);return e.clientWidth-(parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"))}},21496:function(e,t,n){n.d(t,{size:function(){return o}});var i=n(27613);function o(e){return(0,i.isString)(e)||(0,i.isArray)(e)?e.length:(0,i.isPlainObject)(e)?Object.keys(e).length:0}},81284:function(e,t,n){n.d(t,{offset:function(){return i}});let i=(e,t,n,o=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=n.body,c=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=n.defaultView||n.parentWindow,d=u.pageYOffset||c.scrollTop||l.scrollTop,h=u.pageXOffset||c.scrollLeft||l.scrollLeft,f=c.clientTop||l.clientTop||0,p=c.clientLeft||l.clientLeft||0,m=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&m){let{top:e,left:n}=i(m,t,t.od,!0);s=r.top+e,a=r.left+n}else s=r.top+d-f,a=r.left+h-p;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}}},5700:function(e,t,n){n.d(t,{position:function(){return function e(t,n,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,i.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(t)&&!o){let{left:t,top:i}=e(n.iframe,n,!0);l+=t,c+=i}return{left:Math.round(l),top:Math.round(c),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var i=n(19306)},87058:function(e,t,n){n.d(t,{camelCase:function(){return i}});let i=e=>e.replace(/([-_])(.)/g,(e,t,n)=>n.toUpperCase())},67477:function(e,t,n){n.d(t,{fuzzySearchIndex:function(){return o}});var i=n(82758);function o(e,t,n=0,r=1){let s=0,a=0,l=-1,c=0,u=0;for(a=n;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,c++,u=0,-1===l&&(l=a)):s>0&&(u>=r&&t[a]!==i.INVISIBLE_SPACE?(s=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return s===e.length?[l,c]:[-1,0]}},56967:function(e,t,n){n.d(t,{i18n:function(){return c},sprintf:function(){return l}});var i=n(82758),o=n(70799),r=n(36409),s=n(43555),a=n(6441);let l=(e,t)=>{if(!t||!t.length)return e;let n=/%([sd])/g,i=n.exec(e),o=e,r=0;for(;i&&void 0!==t[r];)o=o.replace(i[0],t[r].toString()),r+=1,i=n.exec(e);return o};function c(e,t,n){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!(null==n?void 0:n.debugLanguage),u={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),f=(0,s.defaultLanguage)(null==n?void 0:n.language,h),p=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let n=e.toLowerCase();if((0,o.isString)(t[n]))return d(t[n]);let i=(0,r.ucfirst)(e);if((0,o.isString)(t[i]))return d(t[i])};void 0!==i.lang[f]?u=i.lang[f]:c||(u=void 0!==i.lang[h]?i.lang[h]:i.lang.en);let m=null==n?void 0:n.i18n;if(m&&m[f]){let e=p(m[f]);if(e)return e}return p(u)||(!c&&i.lang.en&&(0,o.isString)(i.lang.en[e])&&i.lang.en[e]?d(i.lang.en[e]):c?"{"+e+"}":(i.IS_PROD,d(e)))}},59007:function(e,t,n){n.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return i.camelCase},fuzzySearchIndex:function(){return o.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var i=n(87058),o=n(67477),r=n(56967),s=n(12475),a=n(67462),l=n(49055),c=n(36409)},12475:function(e,t,n){n.d(t,{CamelCaseToKebabCase:function(){return o},kebabCase:function(){return i}});let i=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),o=e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},67462:function(e,t,n){n.d(t,{stringify:function(){return i}});function i(e,t={}){if("object"!=typeof e)return String(e);let n=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!n.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}},49055:function(e,t,n){n.d(t,{trim:function(){return o},trimChars:function(){return r},trimInv:function(){return s}});var i=n(82758);function o(e){return e.replace((0,i.SPACE_REG_EXP_END)(),"").replace((0,i.SPACE_REG_EXP_START)(),"")}function r(e,t){return e.replace(RegExp(`[${t}]+$`),"").replace(RegExp(`^[${t}]+`),"")}function s(e){return e.replace((0,i.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,i.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(e,t,n){n.d(t,{ucfirst:function(){return i}});function i(e){return e.length?e[0].toUpperCase()+e.substring(1):""}},25726:function(e,t,n){n.d(t,{alignElement:function(){return c},clearAlign:function(){return a},hAlignElement:function(){return s}});var i=n(22732),o=n(29960),r=n(41180);function s(e,t){t&&"normal"!==t?"center"!==t?((0,r.css)(e,"float",t),(0,r.clearCenterAlign)(e)):(0,r.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(e,"float")&&-1!==["right","left"].indexOf((0,r.css)(e,"float").toString().toLowerCase())&&(0,r.css)(e,"float",""),(0,r.clearCenterAlign)(e))}function a(e){i.Dom.each(e,e=>{i.Dom.isHTMLElement(e)&&(0,r.cssInline)(e,"textAlign")&&((0,r.css)(e,"textAlign",""),((0,o.attr)(e,"style")||"").trim().length||(0,o.attr)(e,"style",null))})}let l=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function c(e,t){if(i.Dom.isNode(t)&&i.Dom.isElement(t)){a(t);let n=l.get(e.toLowerCase());n&&(0,r.css)(t,"textAlign",n)}}},63799:function(e,t,n){n.d(t,{alreadyLoadedList:function(){return a},appendScriptAsync:function(){return c},appendStyleAsync:function(){return u},loadNext:function(){return function e(t,n,i=0){return(0,o.isString)(n[i])?c(t,n[i]).then(()=>e(t,n,i+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,n,i=0){return(0,o.isString)(n[i])?u(t,n[i]).then(()=>e(t,n,i+1)):Promise.resolve()}}});var i=n(2748),o=n(70799),r=n(29960),s=n(66292);let a=new Map,l=e=>(t,n)=>{if(a.has(n))return a.get(n);let i=e(t,n);return a.set(n,i),i},c=l((e,t)=>e.async.promise((n,o)=>{if(e.isInDestruct)return o();let a=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(t)});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.e.one(a,"error",o).one(a,"load",n),i.Dom.append(e.od.body,a)})),u=l((e,t)=>e.async.promise((n,o)=>{if(e.isInDestruct)return o();let a=e.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.isInDestruct||e.e.on(a,"load",()=>n(a)).on(a,"error",o),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?i.Dom.append(e.o.shadowRoot,a):i.Dom.append(e.od.body,a)}))},38837:function(e,t,n){n.d(t,{assert:function(){return o}});class i extends Error{constructor(e){super(e),this.name="AssertionError"}}function o(e,t){if(!e)throw new i(`Assertion failed: ${t}`)}},29960:function(e,t,n){n.d(t,{attr:function(){return function e(t,n,l){if(!t||!(0,i.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(n))return Object.keys(n).forEach(i=>{let r=n[i];(0,o.isPlainObject)(r)&&"style"===i?(0,a.css)(t,r):("className"===i&&(i="class"),e(t,i,r))}),null;let c=(0,s.CamelCaseToKebabCase)(n);if(/^-/.test(c)){let n=e(t,`data${c}`);if(n)return n;c=c.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(c)&&t.removeAttribute(c);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===c||"height"===c)&&(e=e.replace("px","")),t.setAttribute(c,e),e}return t.getAttribute(c)}},attrRaw:function(){return l}});var i=n(23282),o=n(72430),r=n(70799),s=n(12475),a=n(41180);function l(e,t,n){if(void 0===n)return e.getAttribute(t);if(null==n){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,n)}},97639:function(e,t,n){n.d(t,{browser:function(){return i}});let i=e=>{let t=navigator.userAgent.toLowerCase(),n=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?n[2]:"webkit"===e?"chrome"===n[1]||"webkit"===n[1]:"ff"===e?"firefox"===n[1]:"msie"===e?"trident"===n[1]||"msie"===n[1]:n[1]===e}},44710:function(e,t,n){n.d(t,{buildQuery:function(){return o}});var i=n(72430);let o=(e,t)=>{let n=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];n.push((0,i.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return n.join("&")}},66292:function(e,t,n){n.d(t,{completeUrl:function(){return o}});var i=n(82758);let o=e=>("file:"===i.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)},68934:function(e,t,n){n.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,u.keys)(t,!1).reduce((n,i)=>(n[i]=(0,o.isPlainObject)(t[i])?e(t[i]):t[i],n),{})}},ConfigFlatten:function(){return d},ConfigMerge:function(){return function e(t,n){Object.keys(n).forEach(i=>{if((0,c.isUnsafeProtoKey)(i))return;let r=n[i],s=t[i];(0,o.isPlainObject)(r)&&(0,o.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[i]=r})}},ConfigProto:function(){return function e(t,n,u=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let d=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==d.presets[t.preset]){let e=d.presets[t.preset];Object.keys(e).forEach(n=>{(0,s.isVoid)(t[n])&&(t[n]=e[n])})}delete t.preset}let h={};return Object.keys(t).forEach(r=>{if((0,c.isUnsafeProtoKey)(r))return;let s=t[r],a=n?n[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,u+1);return}if(0!==u&&(0,i.isArray)(s)&&!(0,l.isAtom)(s)&&(0,i.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,n),h}}});var i=n(68345),o=n(72430),r=n(70799),s=n(86068),a=n(6441),l=n(97735),c=n(69175),u=n(37790);function d(e){return(0,u.keys)(e,!1).reduce((t,n)=>(t[n]=e[n],t),{})}},55877:function(e,t,n){n.d(t,{convertMediaUrlToVideoEmbed:function(){return s}});var i=n(82758),o=n(26049),r=n(82501);let s=(e,{width:t=400,height:n=345}={})=>{if(!(0,o.isURL)(e))return e;let s=i.globalDocument.createElement("a");s.href=e,t||(t=400),n||(n=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let i=s.pathname.split("/").filter(Boolean),o=i.findIndex(e=>/^\d+$/.test(e));if(-1===o)return e;let r=i[o],l=i[o+1];return l&&0===o&&(r+="/"+l),'<iframe width="'+t+'" height="'+n+'" src="'+a+"//player.vimeo.com/video/"+r+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let i=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(i=i.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+n+'" src="'+a+"//www.youtube.com/embed/"+i+'" frameborder="0" allowfullscreen></iframe>':e}}return e}},41180:function(e,t,n){n.d(t,{clearCenterAlign:function(){return u},css:function(){return l},cssInline:function(){return c}});var i=n(87612),o=n(72430),r=n(3760),s=n(87058),a=n(12475);function l(e,t,n,c=!1){if((0,i.isBoolean)(n)&&(c=n,n=void 0),(0,o.isPlainObject)(t)||void 0!==n){let i=(e,t,n)=>{void 0!==(n=(0,r.normalizeCssNumericValue)(t,n))&&(null==n||l(e,t,!0)!==(0,r.normalizeCssValue)(t,n))&&(e.style[t]=n)};if((0,o.isPlainObject)(t)){let n=Object.keys(t);for(let o=0;o<n.length;o+=1)i(e,(0,s.camelCase)(n[o]),t[n[o]])}else i(e,(0,s.camelCase)(t),n);return""}let u=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),f=e.style[t],p="";return void 0!==f&&""!==f?p=f:h&&!c&&(p=h.getComputedStyle(e).getPropertyValue(u)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(p.toString())&&(p=parseInt(p.toString(),10)),(0,r.normalizeCssValue)(t,p)}function c(e,t){return e.style.getPropertyValue((0,a.kebabCase)(t))}let u=e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}},15456:function(e,t,n){n.d(t,{ctrlKey:function(){return i}});let i=e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}},86583:function(e,t,n){n.d(t,{dataBind:function(){return r}});var i=n(39955);let o=new WeakMap,r=(e,t,n)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,i.isViewObject)(e.j)&&(t=e.j.e),(0,i.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===n?r[t]:(r[t]=n,n)}},96325:function(e,t,n){n.d(t,{defaultLanguage:function(){return r}});var i=n(82758),o=n(70799);let r=(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:i.globalDocument.documentElement&&i.globalDocument.documentElement.lang?i.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t},82760:function(e,t,n){n.d(t,{connection:function(){return r},error:function(){return o},options:function(){return s}});var i=n(32880);function o(e){return TypeError(e)}function r(e){return new i.ConnectionError(e)}function s(e){return new i.OptionsError(e)}},93661:function(e,t,n){n.d(t,{abort:function(){return i}});function i(e="Aborted"){return new DOMException(e,"AbortError")}},86397:function(e,t,n){n.d(t,{ConnectionError:function(){return i}});class i extends Error{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},32880:function(e,t,n){n.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return i.abort}});var i=n(93661),o=n(86397),r=n(57865)},57865:function(e,t,n){n.d(t,{OptionsError:function(){return i}});class i extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}},89890:function(e,t,n){n.d(t,{ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},connection:function(){return i.connection},error:function(){return i.error},options:function(){return i.options}});var i=n(82760),o=n(32880)},97735:function(e,t,n){n.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var i=n(67462);function o(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,i.stringify)(e))}},80568:function(e,t,n){n.d(t,{getClassName:function(){return r},keepNames:function(){return o}});var i=n(23282);let o=new Map,r=e=>{var t;if((0,i.isFunction)(e.className))return e.className();let n=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(n))return o.get(n);if(n.name)return n.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=n.toString().match(r);return s?s[1]:""}},94643:function(e,t,n){n.d(t,{get:function(){return r}});var i=n(70799),o=n(86068);function r(e,t){if(!(0,i.isString)(e)||!e.length)return null;let n=e.split("."),r=t;try{for(let e of n){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},38420:function(e,t,n){n.d(t,{humanSizeToBytes:function(){return i}});let i=e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],i=parseFloat(e.substr(0,e.length-2));return -1!==n.indexOf(t)?i*Math.pow(1024,n.indexOf(t)+1):parseInt(e,10)}},43555:function(e,t,n){n.d(t,{$$:function(){return D.$$},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return g.ConnectionError},LimitedStack:function(){return j.LimitedStack},OptionsError:function(){return g.OptionsError},UNSAFE_PROTO_KEYS:function(){return S.UNSAFE_PROTO_KEYS},abort:function(){return g.abort},alignElement:function(){return i.alignElement},alreadyLoadedList:function(){return o.alreadyLoadedList},appendScriptAsync:function(){return o.appendScriptAsync},appendStyleAsync:function(){return o.appendStyleAsync},assert:function(){return r.assert},attr:function(){return s.attr},attrRaw:function(){return s.attrRaw},browser:function(){return a.browser},buildQuery:function(){return l.buildQuery},call:function(){return P.call},callPromise:function(){return P.callPromise},callThis:function(){return P.callThis},clearAlign:function(){return i.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},cns:function(){return _.cns},completeUrl:function(){return c.completeUrl},connection:function(){return g.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssInline:function(){return h.cssInline},cssPath:function(){return D.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return p.dataBind},defaultLanguage:function(){return m.defaultLanguage},error:function(){return g.error},fastClone:function(){return v.fastClone},get:function(){return b.get},getClassName:function(){return y.getClassName},getDataTransfer:function(){return P.getDataTransfer},getPropertyDescriptor:function(){return P.getPropertyDescriptor},getXPathByElement:function(){return D.getXPathByElement},hAlignElement:function(){return i.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return I.inView},isAtom:function(){return v.isAtom},isUnsafeProtoKey:function(){return S.isUnsafeProtoKey},keepNames:function(){return y.keepNames},keys:function(){return P.keys},loadImage:function(){return P.loadImage},loadNext:function(){return o.loadNext},loadNextStyle:function(){return o.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return _.markDeprecated},markOwner:function(){return P.markOwner},memorizeExec:function(){return P.memorizeExec},options:function(){return g.options},parseQuery:function(){return k.parseQuery},previewBox:function(){return C.previewBox},refs:function(){return D.refs},reset:function(){return E.reset},resolveElement:function(){return D.resolveElement},scrollIntoViewIfNeeded:function(){return I.scrollIntoViewIfNeeded},set:function(){return T.set}});var i=n(25726),o=n(63799),r=n(38837),s=n(29960),a=n(97639),l=n(44710),c=n(66292),u=n(68934),d=n(55877),h=n(41180),f=n(15456),p=n(86583),m=n(96325),g=n(89890),v=n(97735),b=n(94643),y=n(80568),w=n(38420),S=n(69175),_=n(95942),k=n(82501),C=n(11628),E=n(58844),I=n(26395),D=n(76078),T=n(3703),j=n(50535),P=n(37790)},69175:function(e,t,n){n.d(t,{UNSAFE_PROTO_KEYS:function(){return i},isUnsafeProtoKey:function(){return o}});let i=["__proto__","constructor","prototype"];function o(e){return -1!==i.indexOf(e)}},95942:function(e,t,n){n.d(t,{cns:function(){return i},markDeprecated:function(){return o}});let i=console;function o(e,t=[""],n=null){return(...o)=>(i.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(n,...o))}},82501:function(e,t,n){n.d(t,{parseQuery:function(){return i}});let i=e=>{let t={},n=e.substring(1).split("&");for(let e=0;e<n.length;e+=1){let i=n[e].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}return t}},11628:function(e,t,n){n.d(t,{previewBox:function(){return a}});var i=n(2748),o=n(70799),r=n(29960),s=n(41180);function a(e,t,n="px",l=null){let c=[],u=function(e,t){let n=[],o=[];i.Dom.each(e.editor,e=>{i.Dom.isTag(e,"img")&&o.push(e)});try{o.forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),(0,r.attr)(o,"src")];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();i.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(o,"src")||""),(0,r.attr)(o,"src",a.href),i.Dom.safeRemove(a),n.push(()=>{(0,r.attr)(o,{src:s[2],width:s[0]||null,height:s[1]||null})})})}catch(e){throw n.forEach(e=>e()),n.length=0,e}return n}(e,n);try{let a=e.e.fire("beforePreviewBox",t,n);if(null!=a)return a;let u=e.c.div("jodit__preview-box jodit-context");l&&i.Dom.append(l,u),(0,s.css)(u,{position:"relative",padding:16});let d=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),i.Dom.append(u,t);let n=t.contentWindow;if(n&&(e.e.fire("generateDocumentStructure.iframe",n.document,e),u=n.document.body,"function"==typeof ResizeObserver)){let i=!1,o=n.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),(0,s.css)(t,"height",o.offsetHeight+20),e.async.requestAnimationFrame(()=>{i||r.observe(o)})},100)),a=()=>{i=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",a)};c.push(a),e.e.on("beforeDestruct",a)}}else(0,s.css)(u,{minWidth:1024,minHeight:600,border:0});let h=(t,n)=>{let s=(0,o.isString)(n)?e.c.div():n;(0,o.isString)(n)&&(s.innerHTML=n);for(let e=0;e<s.childNodes.length;e+=1){let n=s.childNodes[e];if(i.Dom.isElement(n)){let e=t.ownerDocument.createElement(n.nodeName);for(let t=0;t<n.attributes.length;t+=1)(0,r.attr)(e,n.attributes[t].name,n.attributes[t].value);0===n.childNodes.length||i.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(e.textContent=n.textContent):n.innerHTML&&(e.innerHTML=n.innerHTML):h(e,n);try{i.Dom.append(t,e)}catch(e){}}else try{i.Dom.append(t,n.cloneNode(!0))}catch(e){}}};return h(u,d),e.e.fire("afterPreviewBox",u),[u,()=>{c.forEach(e=>e())}]}finally{u.forEach(e=>e())}}},58844:function(e,t,n){n.d(t,{reset:function(){return a}});var i=n(82758),o=n(23282),r=n(94643);let s={};function a(e){var t,n;if(!(e in s)){let n=i.globalDocument.createElement("iframe");try{if(n.src="about:blank",i.globalDocument.body.appendChild(n),!n.contentWindow)return null;let t=(0,r.get)(e,n.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),n.contentWindow);(0,o.isFunction)(t)&&(s[e]=t.bind(a))}catch(e){if(!i.IS_PROD)throw e}finally{null==(t=n.parentNode)||t.removeChild(n)}}return null!=(n=s[e])?n:null}},26395:function(e,t,n){n.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var i=n(2748);function o(e,t,n){let i=e.getBoundingClientRect(),o=e,r=i.top,s=i.height;for(;o&&o!==t&&o.parentNode;)if(r+s>(i=(o=o.parentNode).getBoundingClientRect()).bottom+1&&r>i.top||r+s<=i.top)return!1;return(r+s<=(n.documentElement&&n.documentElement.clientHeight||0)+1||r<=0)&&r+s>=0}function r(e,t,n){if(i.Dom.isHTMLElement(e)&&!o(e,t,n)){if(t.clientHeight!==t.scrollHeight){let n=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<n?n:e.offsetTop}o(e,t,n)||e.scrollIntoView({block:"nearest"})}}},76078:function(e,t,n){n.d(t,{$$:function(){return d},cssPath:function(){return p},getXPathByElement:function(){return h},refs:function(){return f},resolveElement:function(){return m}});var i=n(82758),o=n(2748),r=n(4510),s=n(70799),a=n(87058),l=n(29960),c=n(89890);let u=1;function d(e,t){let n;if(!i.IS_ES_NEXT&&/:scope/.test(e)&&i.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let i=t.id,o=i||"_selector_id_"+String(Math.random()).slice(2)+ ++u;e=e.replace(/:scope/g,"#"+o),i||t.setAttribute("id",o),n=t.parentNode.querySelectorAll(e),i||t.removeAttribute("id")}else n=t.querySelectorAll(e);return[].slice.call(n)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let n=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(n.length>1?"["+((0,r.toArray)(n).indexOf(e)+1)+"]":"")},f=e=>{"container"in e&&(e=e.container);let t={};return o.Dom.each(e,e=>{if(o.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let n=(0,l.attr)(e,"-ref");n&&(0,s.isString)(n)&&(t[(0,a.camelCase)(n)]=e,t[n]=e)}}),t},p=e=>{if(!o.Dom.isElement(e))return null;let t=[],n=e;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let e=n.nodeName.toLowerCase();if(n.id){e+="#"+n.id,t.unshift(e);break}{let t=n,i=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&i++;while(t);e+=":nth-of-type("+i+")"}t.unshift(e),n=n.parentNode}return t.join(" > ")};function m(e,t){let n=e;if((0,s.isString)(e))try{n=t.querySelector(e)}catch(t){throw(0,c.error)('String "'+e+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!o.Dom.isElement(n)||!n.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return n}},3703:function(e,t,n){n.d(t,{set:function(){return l}});var i=n(68345),o=n(29807),r=n(72430),s=n(70799),a=n(69175);function l(e,t,n){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let c=n,u=l[0];for(let e=0;e<l.length-1;e+=1)u=l[e],(0,i.isArray)(c[u])||(0,r.isPlainObject)(c[u])||(c[u]=(0,o.isNumeric)(l[e+1])?[]:{}),c=c[u];c&&(c[l[l.length-1]]=t)}},50535:function(e,t,n){n.d(t,{LimitedStack:function(){return i}});class i{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){this.limit=e,this.stack=[]}}},37790:function(e,t,n){n.d(t,{call:function(){return a},callPromise:function(){return u},callThis:function(){return l},getDataTransfer:function(){return p},getPropertyDescriptor:function(){return m},keys:function(){return h},loadImage:function(){return d},markOwner:function(){return c},memorizeExec:function(){return f}});var i=n(14773),o=n(86068),r=n(29960),s=n(86583);function a(e,...t){return e(...t)}function l(e,t,...n){return e.apply(t,n)}function c(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function u(e,t){return(0,i.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}let d=(e,t)=>t.async.promise((n,i)=>{let o=new Image,r=()=>{t.e.off(o),null==i||i()},s=()=>{t.e.off(o),n(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),h=(e,t=!0)=>{if(t)return Object.keys(e);let n=[];for(let t in e)n.push(t);return n},f=(e,t,{control:n},i)=>{var r;let a=`button${n.command}`,l=null!=(r=n.args&&n.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),i&&(l=i(l)),e.execCommand(n.command,!1,null!=l?l:void 0)},p=e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function m(e,t){let n;do n=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!n&&e);return n}},31359:function(e,t,n){n.d(t,{init:function(){return s}});var i=n(82758),o=n(60132),r=n(14041);function s(e,t,n,s,a,l,c){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!i.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{i.IS_PROD}),s.styles&&(c(e,t,"style").innerHTML=s.styles)}},14041:function(e,t,n){n.d(t,{loadExtras:function(){return d},loadStyle:function(){return c}});var i=n(82758),o=n(12475),r=n(63799),s=n(89672);function a(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}let l=new Set;function c(e,t){var n;return(n=function*(){let n=u(e,t,!1);if(!l.has(n))return l.add(n),(0,r.appendStyleAsync)(e,n)},function(){var e=this,t=arguments;return new Promise(function(i,o){var r=n.apply(e,t);function s(e){a(r,i,o,s,l,"next",e)}function l(e){a(r,i,o,s,l,"throw",e)}s(void 0)})})()}function u(e,t,n){t=(0,o.kebabCase)(t);let i=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+i+"."+(n?"js":"css")}function d(e,t,n,o){try{let i=n.filter(t=>!e.has((0,s.normalizeName)(t.name)));i.length&&i.map(e=>{let n=e.url||u(t,e.name,!0);return(0,r.appendScriptAsync)(t,n).then(o).catch(()=>null)})}catch(e){if(!i.IS_PROD)throw e}}},48591:function(e,t,n){n.d(t,{makeInstance:function(){return r}});var i=n(82758),o=n(23282);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(n){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!i.IS_PROD)throw e}return null}},89672:function(e,t,n){n.d(t,{normalizeName:function(){return o}});var i=n(12475);function o(e){return(0,i.kebabCase)(e).toLowerCase()}},50911:function(e,t,n){n.d(t,{Plugin:function(){return i.Plugin}});var i=n(20356);n(41876)},41876:function(e,t,n){n.d(t,{PluginSystem:function(){return f}});var i=n(82758),o=n(57012),r=n(46559),s=n(68345),a=n(60132),l=n(70799),c=n(31359),u=n(14041),d=n(48591),h=n(89672);class f{get size(){return this.__items.size}add(e,t){this.__items.set((0,h.normalizeName)(e),t),o.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,h.normalizeName)(e))}remove(e){this.__items.delete((0,h.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((n,i)=>{(!e||e.has(i))&&t.push([i,n])}),t}__init(e){let{extraList:t,disableList:n,filter:o}={extraList:e.o.extraPlugins.map(e=>(0,l.isString)(e)?{name:e}:e),disableList:new Set((0,r.splitArray)(e.o.disablePlugins).map(h.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},f=new Map,p={},m=new Set;e.__plugins=p;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(o).forEach(([i,o])=>{if(n.has(i)||f.has(i))return;let r=null==o?void 0:o.requires;if(r&&(0,s.isArray)(r)&&r.length){if(r.some(e=>n.has(e)))return;if(!r.every(e=>f.has(e)))return void m.add(i)}t=!0;let a=(0,d.makeInstance)(e,o);if(!a){f.set(i,null),m.delete(i);return}(0,c.init)(e,i,o,a,f,m,this.opts.getContainer),p[i]=a}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,u.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(p).forEach(t=>{let n=p[t];(0,a.isDestructable)(n)&&n.destruct(e),delete p[t]}),delete e.__plugins}),i.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let n=()=>{t(),o.eventEmitter.off(`plugin:${e}:ready`,n)};o.eventEmitter.on(`plugin:${e}:ready`,n)})}constructor(e){this.opts=e,this.__items=new Map}}},20356:function(e,t,n){n.d(t,{Plugin:function(){return a}});var i=n(91907),o=n(65478),r=n(19306),s=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class a extends i.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,r.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(i.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var e;if(this.isInDestruct)return;let{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(i.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,r.isJoditObject)(t)&&(null==(e=this.buttons)||e.forEach(e=>{null==t||t.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),this.buttons=[],this.hasStyle=!1,this.__inited=!1,e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}a.requires=[],s([o.autobind],a.prototype,"__afterPluginSystemInit",null),s([o.autobind],a.prototype,"__afterInit",null),s([o.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,n){n.d(t,{Ajax:function(){return f}});var i=n(8884),o=n(82758),r=n(45219),s=n(21537),a=n(89890),l=n(6441);n(57459);var c=n(98582);function u(e){var t,n;function i(t,n){try{var r=e[t](n),s=r.value,a=s instanceof h;Promise.resolve(a?s.v:s).then(function(n){if(a){var l="return"===t?"return":"next";if(!s.k||n.done)return i(l,n);n=e[l](n).value}o(r.done?"return":"normal",n)},function(e){i("throw",e)})}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise(function(r,s){var a={key:e,arg:o,resolve:r,reject:s,next:null};n?n=n.next=a:(t=n=a,i(e,o))})},"function"!=typeof e.return&&(this.return=void 0)}function d(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function h(e,t){this.v=e,this.k=t}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)};class f{className(){return"Ajax"}__buildParams(e,t){return(0,s.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,s.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,s.isString)(e)||e instanceof o.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,s.isFunction)(e.append)?e:(0,s.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}send(){this.__activated=!0;let{xhr:e,o:t}=this,n=this.prepareRequest();return this.__async.promise((i,o)=>{var r;return(r=function*(){var r;let l=()=>{this.__isFulfilled=!0,o(a.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,i(new c.Response(n,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=u,e.onabort=()=>{this.__isFulfilled=!0,o(a.abort("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,n;let i=0;e.lengthComputable&&(i=e.loaded/e.total*100),null==(n=(t=this.options).onProgress)||n.call(t,i)},e.onreadystatechange=()=>{var n,i;null==(i=(n=this.options).onProgress)||i.call(n,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?u():e.statusText&&(this.__isFulfilled=!0,o(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:d,data:h,method:f}=n;e.open(f,d,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:p}=t;(0,s.isFunction)(p)&&(p=yield p.call(this)),p&&e.setRequestHeader&&Object.keys(p).forEach(t=>{e.setRequestHeader(t,p[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)},function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function s(e){d(o,n,i,s,a,"next",e)}function a(e){d(o,n,i,s,a,"throw",e)}s(void 0)})}).call(this)})}stream(){var e;return(e=function*(){var e,t;this.__activated=!0;let{xhr:n,o:i}=this,o=this.prepareRequest(),r=0,l="",c=[],u=null,d=!1,f=null,p=()=>{if(u){let e=u;u=null,e()}},m=e=>{var t;let i=n.responseText;l+=i.substring(r),r=i.length;let o=l.split("\n\n");for(let n of(l=e?"":null!=(t=o.pop())?t:"",o)){let e=n.trim();if(!e)continue;let t=[];for(let n of e.split("\n"))n.startsWith("data: ")?t.push(n.slice(6)):n.startsWith("data:")&&t.push(n.slice(5));t.length&&c.push(t.join("\n"))}p()};n.onprogress=()=>m(!1),n.onload=()=>{m(!0),d=!0,this.__isFulfilled=!0,p()},n.onerror=()=>{f=a.connection("Connection error"),d=!0,this.__isFulfilled=!0,p()},n.onabort=()=>{f=a.abort("Abort connection"),d=!0,this.__isFulfilled=!0,p()},n.withCredentials=null!=(e=i.withCredentials)&&e;let{url:g,data:v,method:b}=o;n.open(b,g,!0),i.contentType&&n.setRequestHeader&&n.setRequestHeader("Content-type",i.contentType);let{headers:y}=i;(0,s.isFunction)(y)&&(y=yield new h(y.call(this),0)),y&&n.setRequestHeader&&Object.keys(y).forEach(e=>{n.setRequestHeader(e,y[e])}),n.send(v?this.__buildParams(v):void 0);try{for(;;)if(c.length>0)yield c.shift();else if(d)break;else yield(t=new Promise(e=>{u=e}),new h(t,0))}finally{this.__isFulfilled||this.abort()}if(f)throw f},function(){return new u(e.apply(this,arguments))}).call(this)}prepareRequest(){if(!this.o.url)throw a.error("Need URL for AJAX request");let e=this.o.url,t=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&t&&(0,s.isPlainObject)(t)){let n=e.indexOf("?");if(-1!==n){let i=(0,s.parseQuery)(e.substring(n));e=e.substring(0,n)+"?"+(0,s.buildQuery)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({},i,t))}else e+="?"+(0,s.buildQuery)(this.o.data)}let i={url:e,method:n,data:t};return f.log.splice(100),f.log.push(i),i}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(e,t=l.Config.prototype.defaultAjaxOptions){this.__async=new i.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,s.ConfigProto)(e||{},t),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}f.log=[],function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);r>3&&s&&Object.defineProperty(t,n,s)}([r.autobind],f.prototype,"destruct",null)},57459:function(e,t,n){n(6441).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},41601:function(e,t,n){n.d(t,{Ajax:function(){return i.Ajax},Response:function(){return o.Response}});var i=n(54079),o=n(98582)},98582:function(e,t,n){function i(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var s=e.apply(t,n);function a(e){i(s,o,r,a,l,"next",e)}function l(e){i(s,o,r,a,l,"throw",e)}a(void 0)})}}n.d(t,{Response:function(){return r}});class r{get url(){return this.request.url}json(){return o(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return o(function*(){return this.body}).call(this)}constructor(e,t,n,i){this.request=e,this.status=t,this.statusText=n,this.body=i}}},45124:function(e,t,n){n.d(t,{cursorInTheEdgeOfString:function(){return s},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return r.moveNodeInsideStart}});var i=n(82758),o=n(2748),r=n(26716);function s(e,t,n,o){var r;let s=(null==(r=e.nodeValue)?void 0:r.length)?e.nodeValue:"";if(o&&s.replace((0,i.INVISIBLE_SPACE_REG_EXP_END)(),"").length>t)return!0;let a=(0,i.INVISIBLE_SPACE_REG_EXP_START)().exec(s);return n&&(a&&a[0].length<t||!a&&t>0)}function a(e,t,n,i,r,s){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],n=!0),e&&i&&!o.Dom.isText(e)){if(!n&&o.Dom.isText(e.previousSibling))e=e.previousSibling;else if(r){let t=s(e);for(;t;){if(t&&o.Dom.isText(t)){e=t;break}t=s(t)}}}if(e&&!i&&!o.Dom.isText(e)){let t=e,n=e;do t=t.firstChild,n=n.lastChild;while(t&&n&&!o.Dom.isText(t));t===n&&t&&o.Dom.isText(t)&&(e=t)}return{node:e,rightMode:n}}n(43463)},26716:function(e,t,n){n.d(t,{moveNodeInsideStart:function(){return r}});var i=n(82758),o=n(2748);function r(e,t,n){let r=o.Dom.findSibling(t,n),s=o.Dom.findSibling(t,!n);for(;o.Dom.isElement(r)&&!o.Dom.isTag(r,i.INSEPARABLE_TAGS)&&o.Dom.isContentEditable(r,e.editor)&&(!s||!o.Dom.closest(t,o.Dom.isElement,e.editor));)n||!r.firstChild?o.Dom.append(r,t):o.Dom.before(r.firstChild,t),r=o.Dom.sibling(t,n),s=o.Dom.sibling(t,!n)}},43463:function(e,t,n){n.d(t,{moveTheNodeAlongTheEdgeOutward:function(){return o}});var i=n(2748);function o(e,t,n){let o=e;for(;o&&o!==n&&!(i.Dom.findSibling(o,t)||i.Dom.isBlock(o.parentElement));)(o=o.parentElement)&&o!==n&&(t?i.Dom.before(o,e):i.Dom.after(o,e))}},59242:function(e,t,n){n.d(t,{CHANGE:function(){return r.CHANGE},CommitStyle:function(){return o.CommitStyle},REPLACE:function(){return r.REPLACE},Selection:function(){return i.Selection},UNWRAP:function(){return r.UNWRAP},WRAP:function(){return r.WRAP}});var i=n(79348),o=n(25639),r=n(77361)},79348:function(e,t,n){n.d(t,{Selection:function(){return f}});var i=n(82758),o=n(65478),r=n(2748),s=n(21537),a=n(27613),l=n(38837),c=n(43463),u=n(25639),d=n(45124),h=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class f{get j(){return this.jodit}errorNode(e){if(!r.Dom.isNode(e))throw(0,s.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,a.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:e}=this,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!r.Dom.isOrContains(this.area,t.startContainer))}createRange(e=!1){let t=this.doc.createRange();return e&&this.selectRange(t),t}remove(){let e=this.sel,t=this.current();if(e&&t)for(let t=0;t<e.rangeCount;t+=1)e.getRangeAt(t).deleteContents(),e.getRangeAt(t).collapse(!0)}clear(){var e,t;(null==(e=this.sel)?void 0:e.rangeCount)&&(null==(t=this.sel)||t.removeAllRanges())}removeNode(e){if(!r.Dom.isOrContains(this.j.editor,e,!0))throw(0,s.error)("Selection.removeNode can remove only editor's children");r.Dom.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}insertCursorAtPoint(e,t){this.removeMarkers();try{let n=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let i=this.doc.caretPositionFromPoint(e,t);if(i)return n.setStart(i.offsetNode,i.offset)}if(this.doc.caretRangeFromPoint){let i=this.doc.caretRangeFromPoint(e,t);(0,l.assert)(i,"Incorrect caretRangeFromPoint behaviour"),n.setStart(i.startContainer,i.startOffset)}})(),n.collapse(!0),this.selectRange(n),!0}catch(e){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,s.$$)("span[data-"+i.MARKER_CLASS+"]",this.area)}removeMarkers(){r.Dom.safeRemove(...this.markers)}marker(e=!1,t){let n=null;t&&(n=t.cloneRange()).collapse(e);let o=this.j.createInside.span();return o.id=i.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),(0,s.css)(o,{lineHeight:"0",display:"none"}),r.Dom.markTemporary(o),(0,s.attr)(o,"data-"+i.MARKER_CLASS,e?"start":"end"),r.Dom.append(o,this.j.createInside.text(i.INVISIBLE_SPACE)),n&&r.Dom.isOrContains(this.area,e?n.startContainer:n.endContainer)&&n.insertNode(o),o}restore(){let e=!1,t=e=>t=>r.Dom.isMarker(t)&&(0,s.attr)(t,"data-"+i.MARKER_CLASS)===(e?"start":"end"),n=r.Dom.first(this.area,t(!0)),o=r.Dom.first(this.area,t(!1));if(n){if(e=this.createRange(),o)e.setStartAfter(n),r.Dom.safeRemove(n),e.setEndBefore(o),r.Dom.safeRemove(o);else{let t=n.previousSibling;r.Dom.isText(t)?e.setStart(t,t.nodeValue?t.nodeValue.length:0):e.setStartBefore(n),r.Dom.safeRemove(n),e.collapse(!0)}e&&this.selectRange(e)}}fakes(){let e=this.sel;if(!e||!e.rangeCount)return[];let t=e.getRangeAt(0);(0,l.assert)(t,"Range is null");let n=t.cloneRange();n.collapse(!0);let i=this.j.createInside.fake();r.Dom.safeInsertNode(n,i),t.setStartBefore(i);let o=[i];if(!t.collapsed){let e=t.cloneRange();e.collapse(!1);let n=this.j.createInside.fake();r.Dom.safeInsertNode(e,n),t.setEndAfter(n),o.push(n)}return this.selectRange(t),o}restoreFakes(e){var t,n,i,o;let s=e.filter(e=>e.isConnected);if(!s.length)return;let[a,l]=s,c=this.createRange();c.setStartAfter(a),l&&c.setEndBefore(l),this.selectRange(c),(null==(t=a.parentNode)?void 0:t.firstChild)!==(null==(n=a.parentNode)?void 0:n.lastChild)&&r.Dom.safeRemove(a),(null==(i=null==l?void 0:l.parentNode)?void 0:i.firstChild)!==(null==(o=null==l?void 0:l.parentNode)?void 0:o.lastChild)&&r.Dom.safeRemove(l)}save(e=!1){if(this.hasMarkers)return[];let t=this.sel;if(!t||!t.rangeCount)return[];let n=[],i=t.rangeCount,o=[];for(let e=0;i>e;e+=1)if(o[e]=t.getRangeAt(e),o[e].collapsed){let t=this.marker(!0,o[e]);n[e]={startId:t.id,collapsed:!0,startMarker:t.outerHTML}}else{let t=this.marker(!0,o[e]),i=this.marker(!1,o[e]);n[e]={startId:t.id,endId:i.id,collapsed:!1,startMarker:t.outerHTML,endMarker:i.outerHTML}}if(!e){t.removeAllRanges();for(let e=i-1;e>=0;--e){let i=this.doc.getElementById(n[e].startId);if(i){if(n[e].collapsed)o[e].setStartAfter(i),o[e].collapse(!0);else if(o[e].setStartBefore(i),n[e].endId){let t=this.doc.getElementById(n[e].endId);t&&o[e].setEndAfter(t)}try{t.addRange(o[e].cloneRange())}catch(e){}}}}return n}focus(e={preventScroll:!0}){var t,n;if(!this.isFocused()){let i=(0,s.getScrollParent)(this.j.container),o=null==i?void 0:i.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(e),this.win.focus(),this.area.focus(e),o&&(null==i?void 0:i.scrollTo)&&i.scrollTo(0,o);let a=this.sel,l=(null==a?void 0:a.rangeCount)?null==a?void 0:a.getRangeAt(0):null;if(!l||!r.Dom.isOrContains(this.area,l.startContainer)){let e=this.createRange();e.setStart(this.area,0),e.collapse(!0),this.selectRange(e,!1)}return this.j.editorIsActive||null==(n=null==(t=this.j)?void 0:t.events)||n.fire("focus"),!0}return!1}isCollapsed(){let e=this.sel;for(let t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(e=!0){if(this.j.getRealMode()!==i.MODE_WYSIWYG)return null;let t=this.sel;if(!t||0===t.rangeCount)return null;let n=t.getRangeAt(0),o=n.startContainer,s=!1;if(r.Dom.isTag(o,"br")&&t.isCollapsed)return o;if(!r.Dom.isText(o)){let i=(0,d.findCorrectCurrentNode)(o,n,s,t.isCollapsed,e,e=>s?e.lastChild:e.firstChild);o=i.node,s=i.rightMode}return o&&r.Dom.isOrContains(this.area,o)?o:null}insertNode(e,t=!0,n=!0){this.errorNode(e);let i=r.Dom.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let o=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",e),o&&o.rangeCount){let t=o.getRangeAt(0),{firstChild:n}=e;r.Dom.isOrContains(this.area,t.commonAncestorContainer)?r.Dom.safeInsertNode(t,e):r.Dom.append(this.area,e),[()=>null==n?void 0:n.previousSibling,()=>null==n?void 0:n.previousSibling,()=>{var e;return null==(e=null==n?void 0:n.previousSibling)?void 0:e.lastChild}].forEach(e=>{let t=e();t&&r.Dom.isEmptyTextNode(t)&&r.Dom.safeRemove(t)})}else r.Dom.append(this.area,e);let n=e=>{if(r.Dom.isBlock(e)){let t=e.lastChild;if(t)return n(t)}this.setCursorAfter(e)};t&&(r.Dom.isFragment(e)?i&&n(i):n(e)),this.j.o.scrollToPastedContent&&(0,s.scrollIntoViewIfNeeded)(null!=i?i:e,this.j.editor,this.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",r.Dom.isFragment(e)?i:e)}insertHTML(e,t=!0){if(""===e)return;let n=this.j.createInside.div(),i=this.j.createInside.fragment();!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),r.Dom.isNode(e)?r.Dom.append(n,e):n.innerHTML=e.toString(),!this.j.isEditorMode()&&!1===this.j.e.fire("insertHTML",n.innerHTML)||n.lastChild&&(r.Dom.moveContent(n,i),this.insertNode(i,t,!1),this.j.__imdSynchronizeValues())}insertImage(e,t=null,n=null){let i=(0,a.isString)(e)?this.j.createInside.element("img"):e;if((0,a.isString)(e)&&(0,s.attr)(i,"src",e),null!=n){let e=n.toString();e&&"auto"!==e&&0>String(e).indexOf("px")&&0>String(e).indexOf("%")&&(e+="px"),(0,s.attr)(i,"width",e)}t&&"object"==typeof t&&(0,s.css)(i,t);let o=()=>{(i.naturalHeight<i.offsetHeight||i.naturalWidth<i.offsetWidth)&&(0,s.css)(i,{width:"",height:""}),i.removeEventListener("load",o)};this.j.e.on(i,"load",o),i.complete&&o(),this.insertNode(i),this.j.e.fire("afterInsertImage",i)}eachSelection(e){var t;let n=this.sel;if(!n||!n.rangeCount)return;let o=n.getRangeAt(0),l=o.commonAncestorContainer;r.Dom.isHTMLElement(l)||(l=l.parentElement);let c=[],u=o.startOffset,d=l.childNodes.length,h=o.startContainer===this.area?l.childNodes[u<d?u:d-1]:o.startContainer,f=o.endContainer===this.area?l.childNodes[o.endOffset-1]:o.endContainer;r.Dom.isText(h)&&h===o.startContainer&&o.startOffset===(null==(t=h.nodeValue)?void 0:t.length)&&h.nextSibling&&(h=h.nextSibling),r.Dom.isText(f)&&f===o.endContainer&&0===o.endOffset&&f.previousSibling&&(f=f.previousSibling);let p=e=>{!e||e===l||r.Dom.isEmptyTextNode(e)||(0,a.isMarker)(e)||c.push(e)};p(h),h!==f&&r.Dom.isOrContains(l,h,!0)&&r.Dom.find(h,e=>(p(e),e===f||e&&e.contains&&e.contains(f)),l,!0,!1);let m=t=>{if(r.Dom.isOrContains(this.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return(0,s.toArray)(t.childNodes).forEach(m);if(r.Dom.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{let e=this.j.createInside.text(i.INVISIBLE_SPACE);r.Dom.append(t,e),t=e}e(t)}};0===c.length&&(r.Dom.isEmptyTextNode(h)&&c.push(h),(null==h?void 0:h.firstChild)&&c.push(h.firstChild)),c.forEach(m)}cursorInTheEdge(e,t,n=null){let i=!e,o=this.sel,a=(null==o?void 0:o.rangeCount)?o.getRangeAt(0):null;if(null!=n||(n=this.current(!1)),!a||!n||!r.Dom.isOrContains(t,n,!0))return null;let l=e?a.startContainer:a.endContainer,c=e?a.startOffset:a.endOffset,u=e=>!!(e&&!r.Dom.isTag(e,"br")&&!r.Dom.isEmptyTextNode(e)&&!r.Dom.isTemporary(e)&&!(r.Dom.isElement(e)&&!0===this.j.e.fire("isInvisibleForCursor",e)));if(r.Dom.isText(l)){if((0,d.cursorInTheEdgeOfString)(l,c,e,i))return!1}else{let e=(0,s.toArray)(l.childNodes);if(i){if(e.slice(c).some(u))return!1}else if(e.slice(0,c).some(u))return!1}let h=n;for(;h&&h!==t;){let t=r.Dom.sibling(h,e);if(!t){h=h.parentNode;continue}if((h=t)&&u(h))return!1}return!0}cursorOnTheLeft(e,t){return this.cursorInTheEdge(!0,e,t)}cursorOnTheRight(e,t){return this.cursorInTheEdge(!1,e,t)}setCursorAfter(e){return this.setCursorNearWith(e,!1)}setCursorBefore(e){return this.setCursorNearWith(e,!0)}setCursorNearWith(e,t){var n,i;if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let o=this.createRange(),a=null;return r.Dom.isText(e)?t?o.setStart(e,0):o.setEnd(e,null!=(i=null==(n=e.nodeValue)?void 0:n.length)?i:0):(a=this.j.createInside.fake(),t?o.setStartBefore(e):o.setEndAfter(e),o.collapse(t),r.Dom.safeInsertNode(o,a),o.selectNode(a)),o.collapse(t),this.selectRange(o),a}setCursorIn(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let n=this.createRange(),o=e,a=e;do{if(r.Dom.isText(o)||r.Dom.isTag(o,i.INSEPARABLE_TAGS))break;a=o,o=t?o.firstChild:o.lastChild}while(o);if(!o){let e=this.j.createInside.text(i.INVISIBLE_SPACE);r.Dom.isTag(a,i.INSEPARABLE_TAGS)?o=a:(r.Dom.append(a,e),a=e)}let l=o||a;return r.Dom.isTag(l,i.INSEPARABLE_TAGS)?t||r.Dom.isTag(l,"br")?n.setStartBefore(l):n.setEndAfter(l):n.selectNodeContents(l),n.collapse(t),this.selectRange(n),a}selectRange(e,t=!0){let n=this.sel;return t&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),n&&(n.removeAllRanges(),n.addRange(e)),this.j.e.fire("changeSelection"),this}select(e,t=!1){if(this.errorNode(e),!r.Dom.up(e,e=>e===this.area||e&&e.parentNode===this.area,this.area))throw(0,s.error)("Node element must be in editor");let n=this.createRange();return n[t?"selectNodeContents":"selectNode"](e),this.selectRange(n)}get html(){let e=this.sel;if(e&&e.rangeCount>0){let t=e.getRangeAt(0).cloneContents(),n=this.j.createInside.div();return r.Dom.append(n,t),n.innerHTML}return""}__wrapSelectionFragments(){let e=this.range;this.__splitSelectionBoundaries(e);let t=e.commonAncestorContainer;return(r.Dom.isText(t)&&(t=t.parentNode),t)?this.__wrapSelectionRuns(this.__collectContainedNodes(t,e)):[]}__splitSelectionBoundaries(e){var t,n,i,o,s,a,l,c;let{startContainer:u,endContainer:d}=e,{startOffset:h,endOffset:f}=e;if(r.Dom.isText(d)&&f>0&&f<(null!=(n=null==(t=d.nodeValue)?void 0:t.length)?n:0)&&(d.splitText(f),f=null!=(o=null==(i=d.nodeValue)?void 0:i.length)?o:f),r.Dom.isText(u)&&h>0&&h<(null!=(a=null==(s=u.nodeValue)?void 0:s.length)?a:0)){let e=u.splitText(h);u===d&&(d=e,f=null!=(c=null==(l=e.nodeValue)?void 0:l.length)?c:0),u=e,h=0}e.setStart(u,h),e.setEnd(d,f),this.__normalizeRangeBoundary(e,!0),this.__normalizeRangeBoundary(e,!1)}__normalizeRangeBoundary(e,t){var n,i;let o=t?e.startContainer:e.endContainer;if(!r.Dom.isText(o))return;let s=t?e.startOffset:e.endOffset,a=null!=(i=null==(n=o.nodeValue)?void 0:n.length)?i:0;0===s?t?e.setStartBefore(o):e.setEndBefore(o):s>=a&&(t?e.setStartAfter(o):e.setEndAfter(o))}__collectContainedNodes(e,t){let n=[];return(0,s.toArray)(e.childNodes).forEach(e=>{this.__isFullyContained(t,e)?n.push(e):e.childNodes.length&&t.intersectsNode(e)&&n.push(...this.__collectContainedNodes(e,t))}),n}__isFullyContained(e,t){let n=this.createRange();return n.selectNode(t),0>=e.compareBoundaryPoints(Range.START_TO_START,n)&&e.compareBoundaryPoints(Range.END_TO_END,n)>=0}__wrapSelectionRuns(e){let t=[],n=[],i=()=>{n.length&&(t.push(this.__wrapRunInFont(n)),n=[])};return e.forEach(e=>{r.Dom.isElement(e)&&this.__isOrContainsBlock(e)?(i(),t.push(...this.__wrapSelectionRuns((0,s.toArray)(e.childNodes)))):(n.length&&n[n.length-1].parentNode!==e.parentNode&&i(),n.push(e))}),i(),t}__isOrContainsBlock(e){return!!r.Dom.isBlock(e)||(0,s.toArray)(e.childNodes).some(e=>this.__isOrContainsBlock(e))}__wrapRunInFont(e){let t=this.j.createInside.element("font"),[n]=e;return r.Dom.before(n,t),e.forEach(e=>r.Dom.append(t,e)),t}*wrapInTagGen(e){if(this.isCollapsed()){let t=this.jodit.createInside.element("font",i.INVISIBLE_SPACE);this.insertNode(t,!1,!1),e&&e[0]&&r.Dom.append(t,e[0]),yield t,r.Dom.unwrap(t);return}for(let e of this.__wrapSelectionFragments()){let{firstChild:t,lastChild:n}=e;if(t&&t===n&&(0,a.isMarker)(t)){r.Dom.unwrap(e);continue}t&&(0,a.isMarker)(t)&&r.Dom.before(e,t),n&&(0,a.isMarker)(n)&&r.Dom.after(e,n),yield e,r.Dom.unwrap(e)}}wrapInTag(e){let t=[];for(let n of this.wrapInTagGen())try{if(n.firstChild&&n.firstChild===n.lastChild&&(0,a.isMarker)(n.firstChild))continue;(0,a.isFunction)(e)?e(n):t.push(r.Dom.replace(n,e,this.j.createInside))}finally{let e=n.parentNode;e&&(r.Dom.unwrap(n),r.Dom.isEmpty(e)&&r.Dom.unwrap(e))}return t}commitStyle(e){(0,l.assert)((0,s.size)(e)>0,"Need to pass at least one option"),new u.CommitStyle(e).apply(this.j)}splitSelection(e,t){if(!this.isCollapsed())return null;let n=this.createRange(),o=this.range;n.setStartBefore(e);let s=this.cursorOnTheRight(e,t),a=this.cursorOnTheLeft(e,t),c=this.j.createInside.element("br"),u=this.j.createInside.fake(),d=u.cloneNode();try{if(s||a){t?r.Dom.before(t,c):r.Dom.safeInsertNode(o,c);let e=(e,t)=>{let n=t(e);for(;n;){let e=t(n);if(n&&(r.Dom.isTag(n,"br")||r.Dom.isEmptyTextNode(n)))r.Dom.safeRemove(n);else break;n=e}};e(c,e=>e.nextSibling),e(c,e=>e.previousSibling),r.Dom.after(c,d),r.Dom.before(c,u),s?(n.setEndBefore(c),o.setEndBefore(c)):(n.setEndAfter(c),o.setEndAfter(c))}else n.setEnd(o.startContainer,o.startOffset);let h=n.extractContents(),f=e=>r.Dom.each(e,e=>r.Dom.isEmptyTextNode(e)&&r.Dom.safeRemove(e));(0,l.assert)(e.parentNode,"Splitting fails");try{if(f(h),f(e),r.Dom.before(e,h),!t&&s&&(null==c?void 0:c.parentNode)){let e=this.createRange();e.setStartBefore(c),this.selectRange(e)}}catch(e){if(!i.IS_PROD)throw e}let p=e=>{let t=null==e?void 0:e.parentNode;t&&t.firstChild===t.lastChild&&r.Dom.append(t,c.cloneNode())};p(u),p(d)}finally{r.Dom.safeRemove(u),r.Dom.safeRemove(d)}return e.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:e}=this,t=e.cloneRange();if(!r.Dom.isOrContains(this.j.editor,e.commonAncestorContainer,!0))return this;let n=t=>{let n=this.j.createInside.fake(),i=e.cloneRange();return i.collapse(t),r.Dom.safeInsertNode(i,n),(0,c.moveTheNodeAlongTheEdgeOutward)(n,t,this.j.editor),n},i=n(!0),o=n(!1);t.setStartAfter(i),t.setEndBefore(o);let a=r.Dom.findSibling(i,!1),l=r.Dom.findSibling(o,!0);if(a!==l){let e=r.Dom.isElement(a)&&r.Dom.isOrContains(a,o),n=!e&&r.Dom.isElement(l)&&r.Dom.isOrContains(l,i);if(e||n){let n=e?a:l,s=n;for(;r.Dom.isElement(n);)(n=e?n.firstElementChild:n.lastElementChild)&&(e?r.Dom.isOrContains(n,o):r.Dom.isOrContains(n,i))&&(s=n);e?t.setStart(s,0):t.setEnd(s,s.childNodes.length)}}if(this.selectRange(t),r.Dom.safeRemove(i,o),this.isCollapsed())throw(0,s.error)("Selection is collapsed");return this}constructor(e){this.jodit=e,e.e.on("removeMarkers",()=>{this.removeMarkers()})}}h([o.autobind],f.prototype,"createRange",null),h([o.autobind],f.prototype,"focus",null),h([o.autobind],f.prototype,"setCursorAfter",null),h([o.autobind],f.prototype,"setCursorBefore",null),h([o.autobind],f.prototype,"setCursorIn",null)},32526:function(e,t,n){n.d(t,{extractSelectedPart:function(){return a}});var i=n(2748),o=n(78116),r=n(49055),s=n(37790);function a(e,t,n){let i=n.s.createRange(),r=(0,o.isMarker)(t.previousSibling)?t.previousSibling:t;i.setStartBefore(e),i.setEndBefore(r),l(e,i,!0);let s=(0,o.isMarker)(t.nextSibling)?t.nextSibling:t;i.setStartAfter(s),i.setEndAfter(e),l(e,i,!1)}function l(e,t,n){let o=t.extractContents();o.textContent&&(0,r.trim)(o.textContent).length||!o.firstChild||i.Dom.unwrap(o.firstChild),e.parentNode&&(0,s.call)(n?i.Dom.before:i.Dom.after,e,o)}},49996:function(e,t,n){n.d(t,{FiniteStateMachine:function(){return s}});var i=n(82758),o=n(70799),r=n(38837);class s{setState(e){(0,r.assert)(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(e,t){let n=this.transitions[this.getState()][e];if(n){let e=n.call(this,t);return(0,r.assert)(e&&e!==t,"Action should return new value"),(0,r.assert)((0,o.isString)(e.next),"Value should contain the next state"),(0,r.assert)(e.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(e.next),i.IS_PROD||this.silent,e}throw Error(`invalid action: ${this.getState()}.${e.toString()}`)}constructor(e,t){this.transitions=t,this.silent=!0,this.__previewsStates=new Set,this.setState(e)}}},23738:function(e,t,n){n.d(t,{getSuitChild:function(){return s}});var i=n(2748),o=n(29136),r=n(97380);function s(e,t){let{firstChild:n}=t;for(;n&&!(0,o.isNormalNode)(n);)if(!(n=n.nextSibling))return null;return n&&!i.Dom.next(n,o.isNormalNode,t)&&(0,r.isSuitElement)(e,n,!1)?n:null}},44602:function(e,t,n){n.d(t,{getSuitParent:function(){return function e(t,n,s){var a;let{parentNode:l}=n;return l===s||!i.Dom.isHTMLElement(l)||i.Dom.next(n,o.isNormalNode,l)||i.Dom.prev(n,o.isNormalNode,l)?null:t.isElementCommit&&t.elementIsBlock&&!i.Dom.isBlock(l)?e(t,l,s):i.Dom.isTag(l,"li")&&!t.isElementCommit&&(null==(a=t.options.attributes)?void 0:a.style)||(0,r.isSuitElement)(t,l,!1)&&(!i.Dom.isBlock(l)||t.elementIsBlock)?l:t.isElementCommit&&!i.Dom.isBlock(l)?e(t,l,s):null}}});var i=n(2748),o=n(29136),r=n(97380)},22030:function(e,t,n){n.d(t,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return u}});var i=n(82758),o=n(2748),r=n(86068),s=n(3760),a=n(38837),l=n(41180);function c(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(n=>{let i=(0,l.css)(e,n,!0);return""===i&&(""===t[n]||null==t[n])||!(0,r.isVoid)(i)&&""!==i&&!(0,r.isVoid)(t[n])&&(0,s.normalizeCssValue)(n,t[n]).toString().toLowerCase()===i.toString().toLowerCase()}))}if(i.globalDocument){let e=i.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(c(e,{color:"red"}),"Style test"),(0,a.assert)(c(e,{fontSize:null}),"Style test"),(0,a.assert)(c(e,{fontSize:""}),"Style test")}function u(e,t){return!!(!o.Dom.isTag(e,"font")&&o.Dom.isHTMLElement(e)&&Object.keys(t).every(t=>""!==(0,l.css)(e,t,!0)))}if(i.globalDocument){let e=i.globalDocument.createElement("div");e.style.color="red",(0,a.assert)(u(e,{color:"red"}),"Style test"),(0,a.assert)(!u(e,{font:"Arial",color:"red"}),"Style test"),(0,a.assert)(!u(e,{border:"1px solid #ccc"}),"Style test")}},63687:function(e,t,n){n.d(t,{FiniteStateMachine:function(){return o.FiniteStateMachine},WRAP_NODES:function(){return h.WRAP_NODES},extractSelectedPart:function(){return i.extractSelectedPart},getSuitChild:function(){return r.getSuitChild},getSuitParent:function(){return s.getSuitParent},isInsideInvisibleElement:function(){return a.isInsideInvisibleElement},suitableClosest:function(){return l.suitableClosest},toggleAttributes:function(){return u.toggleAttributes},toggleOrderedList:function(){return c.toggleOrderedList},unwrapChildren:function(){return d.unwrapChildren},wrap:function(){return h.wrap}});var i=n(32526),o=n(49996),r=n(23738),s=n(44602);n(22030);var a=n(64291);n(29136),n(94466);var l=n(97380),c=n(20199);n(82515);var u=n(44253),d=n(75882),h=n(19263);n(6980)},64291:function(e,t,n){n.d(t,{isInsideInvisibleElement:function(){return o}});var i=n(2748);function o(e,t){return!!i.Dom.closest(e,["style","script"],t)}},29136:function(e,t,n){n.d(t,{isNormalNode:function(){return r}});var i=n(2748),o=n(78116);function r(e){return!!(e&&!i.Dom.isEmptyTextNode(e)&&!i.Dom.isTemporary(e)&&!(0,o.isMarker)(e))}},94466:function(e,t,n){n.d(t,{elementsEqualAttributes:function(){return c},isSameAttributes:function(){return l}});var i=n(21496),o=n(43555),r=n(38837),s=n(29960),a=n(22030);function l(e,t){return!(0,i.size)(t)||((0,r.assert)(t,"Attrs must be a non-empty object"),Object.keys(t).every(n=>"class"===n||"className"===n?e.classList.contains(t[n]):"style"===n?(0,a.hasSameStyle)(e,t[n]):(0,o.attr)(e,n)===t[n]))}function c(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(e=>(0,s.attrRaw)(t,e.name)===e.value)}},97380:function(e,t,n){n.d(t,{isSameStyleChild:function(){return l},isSuitElement:function(){return s},suitableClosest:function(){return a}});var i=n(2748),o=n(22030),r=n(29136);function s(e,t,n,a=!0){var l;if(!t||!(0,r.isNormalNode)(t))return!1;let{element:c,elementIsDefault:u,options:d}=e;if(i.Dom.isList(t)&&e.elementIsList)return!0;let h=i.Dom.isTag(t,c);return!!(h&&!(u&&n)||(null==(l=d.attributes)?void 0:l.style)&&(a?(0,o.hasSameStyle)(t,d.attributes.style):(0,o.hasSameStyleKeys)(t,d.attributes.style))&&!e.elementIsList)||!h&&!n&&u&&i.Dom.isInlineBlock(t)}function a(e,t,n){return i.Dom.closest(t,t=>s(e,t,!0,!1),n)}function l(e,t){var n,i;let{element:s,options:a}=e;if(!t||!(0,r.isNormalNode)(t))return!1;let l=t.nodeName.toLowerCase()===s,c=!!((null==(n=a.attributes)?void 0:n.style)&&(0,o.hasSameStyleKeys)(t,null==(i=a.attributes)?void 0:i.style));return l&&c}},20199:function(e,t,n){n.d(t,{toggleOrderedList:function(){return c}});var i=n(2748),o=n(38837),r=n(32526),s=n(44253),a=n(77361),l=n(82515);function c(e,t,n,i){if(!t)return i;let o=t.parentElement;if(!o)return i;let r=n.e.fire(`${a._PREFIX}BeforeToggleList`,i,e,o);if(void 0!==r)return r;let c=n.e.fire.bind(n.e,`${a._PREFIX}AfterToggleList`);if(i!==a.UNWRAP){let r=(0,s.toggleAttributes)(e,t.parentElement,n,a.INITIAL,!0)===a.CHANGE;if(i===a.REPLACE||r||o.tagName.toLowerCase()!==e.element){let i=u(a.REPLACE,o,t,n,e),r=(0,l.wrapList)(e,i,n);return c(a.REPLACE,r,e),a.REPLACE}}let d=u(a.UNWRAP,o,t,n,e);return c(a.UNWRAP,d,e),a.UNWRAP}function u(e,t,n,s,l){let c=s.e.fire(`${a._PREFIX}BeforeUnwrapList`,e,t,l);return c?((0,o.assert)(i.Dom.isHTMLElement(c),`${a._PREFIX}BeforeUnwrapList hook must return HTMLElement`),c):((0,r.extractSelectedPart)(t,n,s),(0,o.assert)(i.Dom.isHTMLElement(n.parentElement),"Element should be inside the list"),i.Dom.unwrap(n.parentElement),e===a.REPLACE)?n:i.Dom.replace(n,"br"!==s.o.enter.toLowerCase()?s.o.enter:s.createInside.fragment(),s.createInside)}},82515:function(e,t,n){n.d(t,{wrapList:function(){return a}});var i=n(2748),o=n(94466),r=n(44253),s=n(77361);function a(e,t,n){let a=n.e.fire(`${s._PREFIX}BeforeWrapList`,s.REPLACE,t,e),l=null!=a?a:i.Dom.replace(t,"li",n.createInside),c=l.previousElementSibling,u=l.nextElementSibling,d=i.Dom.isTag(c,e.element)?c:null;return null!=d||(d=i.Dom.isTag(u,e.element)?u:null),i.Dom.isList(d)&&(0,o.isSameAttributes)(d,e.options.attributes)||(d=n.createInside.element(e.element),(0,r.toggleAttributes)(e,d,n,s.INITIAL),i.Dom.before(l,d)),c===d?i.Dom.append(d,l):i.Dom.prepend(d,l),i.Dom.isTag(d.nextElementSibling,e.element)&&(0,o.elementsEqualAttributes)(d,d.nextElementSibling)&&(i.Dom.append(d,Array.from(d.nextElementSibling.childNodes)),i.Dom.safeRemove(d.nextElementSibling)),n.e.fire(`${s._PREFIX}AfterWrapList`,s.WRAP,d,e),d}},44253:function(e,t,n){n.d(t,{toggleAttributes:function(){return p}});var i=n(82758),o=n(2748),r=n(580),s=n(27613),a=n(3760),l=n(21496),c=n(43555),u=n(41180),d=n(86583),h=n(77361);let f="toggleAttributes";function p(e,t,n,g,v=!1){if(!v&&e.isApplied(t,f))return g;v||e.setApplied(t,f);let{attributes:b}=e.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(f=>{var p,y,w;let S=b[f];switch(f){case"style":p=g,(0,c.assert)((0,s.isPlainObject)(S)&&(0,l.size)(S),"Style must be an object"),Object.keys(S).forEach(s=>{let l=(0,u.cssInline)(t,s),f=S[s];if(""!==l||null!=f){let g,b,y,w;if(g=function(e){var t;if(void 0!==(0,d.dataBind)(e,"shadowRoot"))return(0,d.dataBind)(e,"shadowRoot");let n=(0,r.getContainer)(e),s=i.globalDocument.createElement("iframe");(0,u.css)(s,{width:0,height:0,position:"absolute",border:0}),(0,c.attr)(s,"src","about:blank"),o.Dom.append(n,s);let a=null==(t=s.contentWindow)?void 0:t.document,l=a?a.body:e.od.body;return(0,d.dataBind)(e,"shadowRoot",l),l}(n),b=n.create.element("div"),(0,u.css)(b,"color",(0,u.css)(n.editor,"color")),y=n.create.element(t.tagName.toLowerCase()),(0,c.attr)(y,"style",(0,c.attr)(t,"style")),o.Dom.append(b,y),o.Dom.append(g,b),w=(0,u.css)(y,s),o.Dom.safeRemove(b),w===(0,a.normalizeCssValue)(s,f)){if(!l)return;v||(0,u.css)(t,s,null),p=m(e,t,p=h.UNSET);return}p=h.CHANGE,v||((0,u.css)(t,s,f),p=m(e,t,p))}}),g=p;break;case"className":case"class":let _;y=g,(0,c.assert)((0,s.isString)(S),"Class name must be a string"),_=n.e.fire.bind(n.e,`${h._PREFIX}AfterToggleAttribute`),t.classList.contains(S.toString())?(y=h.UNSET,v||(t.classList.remove(S),0===t.classList.length&&((0,c.attr)(t,"class",null),_(y,t,"class",null)))):(y=h.CHANGE,v||(t.classList.add(S),_(y,t,"class",S))),g=y;break;default:let k;w=g,(0,c.assert)((0,s.isString)(S)||(0,s.isNumber)(S)||(0,s.isBoolean)(S)||null==S,"Attribute value must be a string or number or boolean or null"),k=n.e.fire.bind(n.e,`${h._PREFIX}AfterToggleAttribute`),(0,c.attr)(t,f)===(null==S?S:String(S))?(v||(0,c.attr)(t,f,null),w=h.UNSET,v||k(w,t,f,S)):(w=h.CHANGE,v||((0,c.attr)(t,f,S),k(w,t,f,S))),g=w}}),g}function m(e,t,n){return(0,c.attr)(t,"style")||((0,c.attr)(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(o.Dom.unwrap(t),n=h.UNWRAP)),n}},75882:function(e,t,n){n.d(t,{unwrapChildren:function(){return a}});var i=n(2748),o=n(43555),r=n(22030),s=n(97380);function a(e,t){var n;let a,l=[],c=[],u=null==(n=e.options.attributes)?void 0:n.style;if(t.firstChild){let n=i.Dom.eachGen(t),d=n.next();for(;!d.done;){let t=d.value;(0,s.isSuitElement)(e,t,!0)&&(!u||(0,r.hasSameStyleKeys)(t,u))?(void 0===a&&(a=!0),l.push(t)):u&&(0,s.isSameStyleChild)(e,t)?(void 0===a&&(a=!1),c.push(()=>{(0,o.css)(t,Object.keys(u).reduce((e,t)=>(e[t]=null,e),{})),(0,o.attr)(t,"style")||(0,o.attr)(t,"style",null),(0,o.attr)(t,"style")||t.nodeName.toLowerCase()!==e.element||l.push(t)})):i.Dom.isEmptyTextNode(t)||void 0!==a||(a=!1),d=n.next()}}return c.forEach(e=>e()),l.forEach(i.Dom.unwrap),!!a}},6980:function(e,t,n){n.d(t,{wrapUnwrappedText:function(){return r}});var i=n(2748),o=n(78116);function r(e,t,n){let r=n.editor,s=n.createInside,a=(e,t="previousSibling")=>{let s=e,a=e;for(;a&&!(0,o.isMarker)(a)&&!i.Dom.isTag(a,n.o.enter)&&(s=a,a=a[t]?a[t]:a.parentNode&&!i.Dom.isBlock(a.parentNode)&&a.parentNode!==r?a.parentNode:null,!i.Dom.isBlock(a)););return s},l=a(t),c=a(t,"nextSibling"),u=n.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let d=u.extractContents(),h=s.element(e.element);return i.Dom.append(h,d),i.Dom.safeInsertNode(u,h),e.elementIsBlock&&i.Dom.isEmpty(h)&&!i.Dom.isTag(h.firstElementChild,"br")&&i.Dom.append(h,s.element("br")),h}},19263:function(e,t,n){n.d(t,{WRAP_NODES:function(){return c},wrap:function(){return l}});var i=n(22732),o=n(29960),r=n(41180),s=n(82515),a=n(6980);function l(e,t,n){var l,u,d;let h=(l=e,u=t,d=n,l.elementIsBlock?i.Dom.up(u,e=>i.Dom.isBlock(e)&&!i.Dom.isTag(e,c)&&!Array.from(e.childNodes).some(e=>i.Dom.isBlock(e)),d.editor)||(0,a.wrapUnwrappedText)(l,u,d):((0,o.attr)(u,"size",null),u));if(e.elementIsList)return(0,s.wrapList)(e,h,n);let f=i.Dom.replace(h,e.element,n.createInside,!0);return e.elementIsBlock&&((0,r.css)(f,"fontSize",null),(0,r.css)(f,"fontWeight",null),(0,o.attr)(f,"style")||(0,o.attr)(f,"style",null)),f}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"])},83632:function(e,t,n){n.d(t,{ApplyStyle:function(){return s}});var i=n(63687),o=n(77361),r=n(55307);function s(e,t){var n;let{s:s,editor:a}=e;null==(n=a.firstChild)||n.normalize();let l=s.fakes(),c=e.s.wrapInTagGen(l),u=c.next();if(u.done)return;let d={collapsed:s.isCollapsed(),mode:o.INITIAL,element:u.value,next:r.states.START,jodit:e,style:t};for(;u&&!u.done;){let e=new i.FiniteStateMachine(r.states.START,r.transactions);for(d.element=u.value;e.getState()!==r.states.END;)d=e.dispatch("exec",d);u=c.next()}s.restoreFakes(l)}},25639:function(e,t,n){n.d(t,{CommitStyle:function(){return a}});var i=n(82758),o=n(87058),r=n(77361),s=n(83632);class a{isApplied(e,t){let n=this.__applyMap.get(e);return!!n&&!!n[t]}setApplied(e,t){var n;let i=null!=(n=this.__applyMap.get(e))?n:{};i[t]=!0,this.__applyMap.set(e,i)}get elementIsList(){return!!(this.options.element&&i.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&i.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(e){let{hooks:t}=this.options,n=t?Object.keys(t):[];try{n.forEach(n=>{e.e.on((0,o.camelCase)(r._PREFIX+"_"+n),t[n])}),(0,s.ApplyStyle)(e,this)}finally{n.forEach(n=>{e.e.off((0,o.camelCase)(r._PREFIX+"_"+n),t[n])}),this.__applyMap=new WeakMap}e.synchronizeValues(),e.e.fire("afterCommitStyle",this)}constructor(e){this.options=e,this.__applyMap=new WeakMap}}},77361:function(e,t,n){n.d(t,{CHANGE:function(){return r},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return s},UNWRAP:function(){return o},WRAP:function(){return i},_PREFIX:function(){return c}});let i="wrap",o="unwrap",r="change",s="unset",a="initial",l="replace",c="commitStyle"},55307:function(e,t,n){n.d(t,{states:function(){return u},transactions:function(){return d}});var i=n(82758),o=n(2748),r=n(38837),s=n(63687),a=n(77361);function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}function c(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}let u={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},d={[u.START]:{exec(e){let{element:t,jodit:n,style:i,mode:r,collapsed:d}=e;if((0,s.isInsideInvisibleElement)(t,n.editor)||!d&&o.Dom.isEmptyContent(t))return c(l({},e),{next:u.END});let h=(0,s.getSuitParent)(i,t,n.editor)||(0,s.getSuitChild)(i,t);if(h)return c(l({},e),{next:u.ELEMENT,element:h});let f=(0,s.suitableClosest)(i,t,n.editor);return i.elementIsList&&o.Dom.isList(f)?c(l({},e),{next:u.LIST}):f?c(l({},e),{next:u.EXTRACT}):c(l({},e),{next:r!==a.UNWRAP?u.UNWRAP_CHILDREN:u.END})}},[u.LIST]:{exec(e){let{element:t,jodit:n,mode:r}=e;if(r!==a.INITIAL&&r!==a.UNWRAP&&r!==a.REPLACE)return c(l({},e),{next:u.END});let s=o.Dom.closest(t,"li",n.editor);return s&&o.Dom.closest(t,i.LIST_TAGS,n.editor)?c(l({},e),{element:s,next:u.TOGGLE_LIST}):c(l({},e),{next:u.END})}},[u.TOGGLE_LIST]:{exec(e){return c(l({},e),{mode:(0,s.toggleOrderedList)(e.style,e.element,e.jodit,e.mode),next:u.END})}},[u.EXTRACT]:{exec(e){var t;let{element:n,jodit:i,style:a}=e,d=(0,s.suitableClosest)(a,n,i.editor);return((0,r.assert)(d,"This place should have an element"),!a.elementIsBlock&&(null==(t=a.options.attributes)?void 0:t.style)&&o.Dom.isBlock(d))?c(l({},e),{next:u.WRAP}):(a.elementIsBlock||(0,s.extractSelectedPart)(d,n,i),c(l({},e),{element:d,next:u.ELEMENT}))}},[u.UNWRAP_CHILDREN]:{exec(e){let{element:t,style:n}=e;return(0,s.unwrapChildren)(n,t)?c(l({},e),{mode:a.UNWRAP,next:u.END}):c(l({},e),{next:u.WRAP})}},[u.WRAP]:{exec(e){let{element:t,jodit:n,style:i}=e,o=(0,s.wrap)(i,t,n);return c(l({},e),{next:i.elementIsList?u.END:u.CHANGE,mode:a.WRAP,element:o})}},[u.ELEMENT]:{exec(e){let{style:t,element:n,jodit:i}=e;return(0,s.toggleAttributes)(t,n,i,a.INITIAL,!0)!==a.INITIAL?c(l({},e),{next:u.CHANGE}):o.Dom.isTag(n,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{next:u.END})}},[u.CHANGE]:{exec(e){let{style:t,element:n,jodit:i,mode:r}=e,d=(0,s.toggleAttributes)(t,n,i,e.mode);return r!==a.WRAP&&d===a.UNSET&&!n.attributes.length&&o.Dom.isTag(n,t.element)?c(l({},e),{next:u.UNWRAP}):c(l({},e),{mode:d,next:u.END})}},[u.UNWRAP]:{exec(e){let{element:t,style:n,jodit:i}=e;if(t.attributes.length&&o.Dom.isTag(t,n.element))return c(l({},e),{next:u.REPLACE_DEFAULT});let r=t.parentElement;return n.elementIsBlock&&!n.elementIsDefault&&r&&r!==i.editor&&o.Dom.isBlock(r)&&!o.Dom.isTag(r,s.WRAP_NODES)?c(l({},e),{next:u.REPLACE_DEFAULT}):(o.Dom.unwrap(t),c(l({},e),{mode:a.UNWRAP,next:u.END}))}},[u.REPLACE_DEFAULT]:{exec(e){return o.Dom.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),c(l({},e),{mode:a.REPLACE,next:u.END})}},[u.END]:{exec(e){return e}}}},97333:function(e,t,n){n.d(t,{AsyncStorage:function(){return u}});var i=n(87058),o=n(2621),r=n(65638),s=n(21162),a=n(6700);function l(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var r=e.apply(t,n);function s(e){l(r,i,o,s,a,"next",e)}function a(e){l(r,i,o,s,a,"throw",e)}s(void 0)})}}class u{set(e,t){return c(function*(){let n=yield this.provider;return yield n.set((0,i.camelCase)(this.prefix+e),t),this}).call(this)}delete(e){return c(function*(){let t=yield this.provider;return yield t.delete((0,i.camelCase)(this.prefix+e)),this}).call(this)}get(e){return c(function*(){return(yield this.provider).get((0,i.camelCase)(this.prefix+e))}).call(this)}exists(e){return c(function*(){return(yield this.provider).exists((0,i.camelCase)(this.prefix+e))}).call(this)}clear(){return c(function*(){let e=yield this.provider;return yield e.clear(),this}).call(this)}close(){return c(function*(){let e=yield this.provider;"close"in e&&"function"==typeof e.close&&(yield e.close())}).call(this)}static makeStorage(e=!1,t,n){let i,l=null==n?void 0:n.defaultProvider;return null!=l?new u(Promise.resolve(i="local"===l?(0,r.canUsePersistentStorage)("localStorage")?new r.LocalStorageProvider(a.StorageKey+(t||"")):new s.MemoryStorageProvider:"memory"===l?new s.MemoryStorageProvider:l),t):("localStorage"===e||"sessionStorage"===e?(0,r.canUsePersistentStorage)(e)&&(i=new r.LocalStorageProvider(a.StorageKey+(t||""),e)):("indexedDB"===e||!0===e)&&(i=(0,o.canUseIndexedDB)().then(e=>e?new o.IndexedDBProvider(a.StorageKey+(t||""),"keyValueStore"):new s.MemoryStorageProvider)),i||(i=new s.MemoryStorageProvider),new u(Promise.resolve(i),t))}constructor(e,t){this.provider=e,this.prefix=a.StorageKey,t&&(this.prefix+=t)}}},2621:function(e,t,n){n.d(t,{IndexedDBProvider:function(){return s},canUseIndexedDB:function(){return c},clearUseIndexedDBCache:function(){return l}});var i=n(82758);function o(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function a(e){o(s,i,r,a,l,"next",e)}function l(e){o(s,i,r,a,l,"throw",e)}a(void 0)})}}class s{getDB(){return this.dbPromise||(this.dbPromise=new Promise((e,t)=>{let n=indexedDB.open(this.dbName,this.DB_VERSION);n.onerror=()=>{t(n.error)},n.onsuccess=()=>{e(n.result)},n.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName)}})),this.dbPromise}performTransaction(e,t){return r(function*(){try{let n=(yield this.getDB()).transaction([this.storeName],e).objectStore(this.storeName),i=t(n);return new Promise((e,t)=>{i.onsuccess=()=>{e(i.result)},i.onerror=()=>{t(i.error)}})}catch(e){return Promise.reject(e)}}).call(this)}set(e,t){return r(function*(){try{yield this.performTransaction("readwrite",n=>n.put(t,e))}catch(e){i.IS_PROD}return this}).call(this)}delete(e){return r(function*(){try{yield this.performTransaction("readwrite",t=>t.delete(e))}catch(e){}return this}).call(this)}get(e){return r(function*(){try{return yield this.performTransaction("readonly",t=>t.get(e))}catch(e){return}}).call(this)}exists(e){return r(function*(){try{let t=yield this.performTransaction("readonly",t=>t.get(e));return void 0!==t}catch(e){return!1}}).call(this)}clear(){return r(function*(){try{yield this.performTransaction("readwrite",e=>e.clear())}catch(e){}return this}).call(this)}close(){return r(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(e){}this.dbPromise=null}}).call(this)}keys(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAllKeys());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e.map(e=>String(e))}catch(e){return[]}}).call(this)}values(){return r(function*(){try{let e=yield this.performTransaction("readonly",e=>e.getAll());return e&&"object"==typeof e&&"then"in e&&(e=yield e),e}catch(e){return[]}}).call(this)}entries(){return r(function*(){try{let[e,t]=yield Promise.all([this.keys(),this.values()]);return e.map((e,n)=>[e,t[n]])}catch(e){return[]}}).call(this)}constructor(e="JoditDB",t="keyValueStore"){this.dbName=e,this.dbPromise=null,this.DB_VERSION=1,this.storeName=t}}let a=null;function l(){a=null}function c(){return r(function*(){if(null!=a)return a;try{if("u"<typeof indexedDB)return a=!1,!1;let e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e);return a=yield new Promise(n=>{t.onerror=()=>{n(!1)},t.onsuccess=()=>{indexedDB.deleteDatabase(e),n(!0)}})}catch(e){return a=!1,!1}})()}},65638:function(e,t,n){n.d(t,{LocalStorageProvider:function(){return o},canUsePersistentStorage:function(){return i}});let i=(e="localStorage")=>{let t=new Map;if(t.has(e))return t.get(e);let n="___Jodit___"+Math.random().toString(),i="sessionStorage"===e?sessionStorage:localStorage;try{i.setItem(n,"1");let o="1"===i.getItem(n);return i.removeItem(n),t.set(e,o),o}catch(e){}return t.set(e,!1),!1};class o{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(e,t){try{let n=this.storage.getItem(this.rootKey),i=n?JSON.parse(n):{};i[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(i))}catch(e){}return this}delete(e){try{let t=this.storage.getItem(this.rootKey);if(t){let n=JSON.parse(t);delete n[e],this.storage.setItem(this.rootKey,JSON.stringify(n))}}catch(e){}return this}get(e){try{let t=this.storage.getItem(this.rootKey),n=t?JSON.parse(t):{};return void 0!==n[e]?n[e]:void 0}catch(e){}}exists(e){return null!=this.get(e)}clear(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}constructor(e,t="localStorage"){this.rootKey=e,this.strategy=t}}},21162:function(e,t,n){n.d(t,{MemoryStorageProvider:function(){return i}});class i{set(e,t){return this.data.set(e,t),this}delete(e){return this.data.delete(e),this}get(e){return this.data.get(e)}exists(e){return this.data.has(e)}clear(){return this.data.clear(),this}constructor(){this.data=new Map}}},12081:function(e,t,n){n.d(t,{AsyncStorage:function(){return i.AsyncStorage},IndexedDBProvider:function(){return o.IndexedDBProvider},LocalStorageProvider:function(){return r.LocalStorageProvider},MemoryStorageProvider:function(){return s.MemoryStorageProvider},Storage:function(){return a.Storage},StorageKey:function(){return a.StorageKey},canUseIndexedDB:function(){return o.canUseIndexedDB},canUsePersistentStorage:function(){return r.canUsePersistentStorage},clearUseIndexedDBCache:function(){return o.clearUseIndexedDBCache}});var i=n(97333),o=n(2621),r=n(65638),s=n(21162),a=n(6700)},6700:function(e,t,n){n.d(t,{Storage:function(){return a},StorageKey:function(){return s}});var i=n(87058),o=n(65638),r=n(21162);let s="Jodit_";class a{set(e,t){return this.provider.set((0,i.camelCase)(this.prefix+e),t),this}delete(e){return this.provider.delete((0,i.camelCase)(this.prefix+e)),this}get(e){return this.provider.get((0,i.camelCase)(this.prefix+e))}exists(e){return this.provider.exists((0,i.camelCase)(this.prefix+e))}clear(){return this.provider.clear(),this}static makeStorage(e=!1,t){let n;return"localStorage"===e||"sessionStorage"===e?(0,o.canUsePersistentStorage)(e)&&(n=new o.LocalStorageProvider(s+(t||""),e)):!0===e&&(0,o.canUsePersistentStorage)("localStorage")&&(n=new o.LocalStorageProvider(s+(t||""))),n||(n=new r.MemoryStorageProvider),new a(n,t)}constructor(e,t){this.provider=e,this.prefix=s,t&&(this.prefix+=t)}}},70231:function(e,t,n){n.d(t,{Dlgs:function(){return a}});var i=n(580),o=n(27613),r=n(37790),s=n(638);class a{dlg(e){let t=(0,i.getPopupViewRoot)(this.o,this.container,this.od.body),n=new s.Dialog(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},e));return(0,r.markOwner)(this,n.container),n.parent=this,n.bindDestruct(this)}confirm(e,t,n){return e=l(e,this),t=l(t,this),s.Confirm.call(this.dlg({closeOnClickOverlay:!0}),e,t,n)}prompt(e,t,n,i,o){return e=l(e,this),t=l(t,this),i=l(i,this),s.Prompt.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,i,o)}alert(e,t,n,i){return e=l(e,this),t=l(t,this),s.Alert.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,i)}}function l(e,t){return(0,o.isString)(e)&&!(0,o.isHTML)(e)&&(e=t.i18n(e)),e}},14316:function(e,t,n){n.d(t,{Elms:function(){return o}});var i=n(2748);class o{getElm(e){let t=this.getFullElName(e);return i.Dom.first(this.container,e=>i.Dom.isHTMLElement(e)&&e.classList.contains(t))}getElms(e){let t=this.getFullElName(e),n=[];return i.Dom.each(this.container,e=>{i.Dom.isHTMLElement(e)&&e.classList.contains(t)&&n.push(e)}),n}}},34176:function(e,t,n){n.d(t,{Mods:function(){return o}});var i=n(86068);class o{afterSetMod(e,t){}setMod(e,t,n){e=e.toLowerCase();let o=this.mods[e];if(o===t)return this;let r=`${this.componentName}_${e}_`,s=(n||this.container).classList;return null!=o&&s.remove(`${r}${o.toString().toLowerCase()}`),(0,i.isVoid)(t)||""===t||s.add(`${r}${t.toString().toLowerCase()}`),this.mods[e]=t,this.afterSetMod(e,t),this}getMod(e){var t;return null!=(t=this.mods[e])?t:null}}},10830:function(e,t,n){n.d(t,{Button:function(){return v},UIButton:function(){return g},UIButtonState:function(){return m}});var i=n(78213),o=n(33433),r=n(87325),s=n(37133),a=n(2748),l=n(23282),c=n(70799),u=n(38837),d=n(29960),h=n(48538),f=n(12153),p=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let m=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:"",scale:void 0},tooltip:"",text:"",tabIndex:void 0}),g=class e extends h.UIElement{className(){return"UIButton"}setState(e){return Object.assign(this.state,e),this}get text(){let e=this.getElm("text");return(0,u.assert)(e,"Text element not found"),e}get icon(){let e=this.getElm("icon");return(0,u.assert)(e,"Icon element not found"),e}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,d.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,d.attr)(this.container,"role",this.state.role)}updateSize(){let e=(0,r.getComponentClass)("UIList"),t=this.closest(e);if(t){this.state.size=t.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,d.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,d.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,d.attr)(this.container,"data-ref",this.state.name),(0,d.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,d.attr)(this.container,"title",e),(0,d.attr)(this.container,"aria-label",e),this.updateAriaLabel()}updateAriaLabel(){let e=this.state.text.trim().length>0,t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,d.attr)(this.container,"aria-label",t),(0,d.attr)(this.button,"aria-label",e?null:t)}onChangeTabIndex(){(0,d.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let e=this.get("j.o.textIcons");if(!0===e||(0,l.isFunction)(e)&&e(this.state.name))return;a.Dom.detach(this.icon);let t=f.Icon.makeIcon(this.j,this.state.icon);t&&a.Dom.append(this.icon,t)}focus(){this.container.focus()}isFocused(){let{activeElement:e}=this.od;return!!(e&&a.Dom.isOrContains(this.container,e))}createContainer(){let e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),n=this.j.c.span(e+"__icon"),i=this.j.c.span(e+"__text");return a.Dom.append(t,n),a.Dom.append(t,i),t}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(e){return this.actionHandlers.push(e),this}__onActionFire(e){e.buffer={actionTrigger:this},this.actionHandlers.forEach(t=>t.call(this,e)),this.j.e.fire(this,"click",e)}constructor(e,t){super(e),this.isButton=!0,this.state=m(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),t&&this.hookStatus(i.STATUSES.ready,()=>{this.setState(t)})}};function v(e,t,n,i){let o=new g(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,(0,c.isString)(t)?(o.state.icon.name=t,o.state.name=t,i&&(o.state.variant=i),n&&(o.state.text=n)):o.setState(t),o}p([o.cache],g.prototype,"text",null),p([o.cache],g.prototype,"icon",null),p([(0,s.watch)("state.size",{immediately:!1})],g.prototype,"onChangeSize",null),p([(0,s.watch)("state.type",{immediately:!1})],g.prototype,"onChangeType",null),p([(0,s.watch)("state.role",{immediately:!1})],g.prototype,"onChangeRole",null),p([(0,s.watch)("parentElement")],g.prototype,"updateSize",null),p([(0,s.watch)("state.variant",{immediately:!1})],g.prototype,"onChangeStatus",null),p([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeText",null),p([(0,s.watch)("state.text",{immediately:!1})],g.prototype,"onChangeTextSetMode",null),p([(0,s.watch)("state.disabled")],g.prototype,"onChangeDisabled",null),p([(0,s.watch)("state.activated")],g.prototype,"onChangeActivated",null),p([(0,s.watch)("state.name",{immediately:!1})],g.prototype,"onChangeName",null),p([(0,s.watch)("state.tooltip",{immediately:!1})],g.prototype,"onChangeTooltip",null),p([(0,s.watch)("state.tabIndex",{immediately:!1})],g.prototype,"onChangeTabIndex",null),p([(0,s.watch)("state.icon",{immediately:!1})],g.prototype,"onChangeIcon",null),p([o.cacheHTML],g.prototype,"createContainer",null),p([(0,s.watch)("button:click")],g.prototype,"__onActionFire",null),g=p([r.component],g)},71916:function(e,t,n){n.d(t,{UIButtonGroup:function(){return l}});var i=n(87325),o=n(2748),r=n(38837),s=n(10830),a=n(62405);let l=class e extends a.UIGroup{className(){return"UIButtonGroup"}render(e){return`<div>
|
|
9
9
|
<div class="&__label">~${e.label}~</div>
|
|
10
10
|
<div class="&__options"></div>
|
|
11
11
|
</div>`}appendChildToContainer(e){let t=this.getElm("options");(0,r.assert)(null!=t,"Options does not exist"),o.Dom.append(t,e)}select(e){var t,n;this.elements.forEach((t,n)=>{n===e||t.state.value===e?t.state.activated=!0:this.options.radio&&(t.state.activated=!1)});let i=this.elements.filter(e=>e.state.activated).map(e=>({text:e.state.text,value:e.state.value}));this.jodit.e.fire(this,"select",i),null==(n=(t=this.options).onChange)||n.call(t,i)}constructor(e,t={radio:!0}){var n,i;super(e,null==(n=t.options)?void 0:n.map(t=>{let n=new s.UIButton(e,{text:t.text,value:t.value,variant:"primary"});return n.onAction(()=>{this.select(t.value)}),n}),t),this.options=t,this.select(null!=(i=t.value)?i:0)}};l=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}([i.component],l)},62843:function(e,t,n){n.d(t,{Button:function(){return i.Button},UIButton:function(){return i.UIButton},UIButtonGroup:function(){return o.UIButtonGroup},UIButtonState:function(){return i.UIButtonState},UITooltip:function(){return r.UITooltip}});var i=n(10830),o=n(71916),r=n(57340)},57340:function(e,t,n){n.d(t,{UITooltip:function(){return m}});var i,o=n(91907),r=n(65478),s=n(22732),a=n(580),l=n(35224),c=n(5700),u=n(43555),d=n(48538),h=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let f=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],p=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"],m=i=class e extends d.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(e){s.Dom.append((0,a.getContainer)(this.j,i),this.container),this.__attachedContainers.add(e),this.__attachedContainers.add(this.j.container),this.j.e.on(e,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(e,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let e=this.j;e.e.on(e.ow,f,this.__hide).on(p,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let e=this.j;e.e.off(e.ow,f,this.__hide).off(p,this.__hide)}__onMouseLeave(e){this.__currentTarget===e.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(e){if(!s.Dom.isHTMLElement(e.target))return;let t=(0,u.attr)(e.target,"aria-label");if(!t||(0,u.attr)(e.target,"disabled")||!e.target.className.includes("jodit"))return;this.__currentTarget=e.target;let n=e.target;this.__open(()=>{let e=(0,c.position)(n);return{x:e.left+e.width/2,y:e.top+e.height}},t)}__open(e,t){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let n=this.j.o.showTooltipDelay||this.j.defaultTimeout;n?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(e,t),n):this.__show(e,t)}__show(e,t){this.setMod("visible",!0),this.setMod("above",!1),this.getElm("content").innerHTML=t;let n=e(),i=(0,l.getFixedPositionOffset)(this.container);(0,u.css)(this.container,{left:n.x-i.x,top:n.y-i.y});let o=(0,c.position)(this.container),r=this.j.ow.innerHeight;if(o.top+o.height>r){let e=(0,c.position)(this.__currentTarget);this.setMod("above",!0),(0,u.css)(this.container,{top:e.top-o.height-i.y})}}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),s.Dom.detach(this.getElm("content")),(0,u.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(e=>{this.j.e.off(e,"mouseenter.tooltip",this.__onMouseEnter).off(e,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(e){super(e),this.__isOpened=!1,this.__attachedContainers=new Set,this.__listenClose=!1,this.__currentTarget=null,this.__delayShowTimeout=0,this.__hideTimeout=0,e.o.textIcons||!e.o.showTooltip||e.o.useNativeTooltip||(this.j.e.on("getContainer",e=>{this.__onAttach(e)}),e.hookStatus(o.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}};h([r.autobind],m.prototype,"__onMouseLeave",null),h([r.autobind],m.prototype,"__onMouseEnter",null),h([r.autobind],m.prototype,"__hide",null),h([r.autobind],m.prototype,"__hideDelay",null),m=i=h([r.component],m)},48538:function(e,t,n){n.d(t,{UIElement:function(){return h}});var i,o=n(91907),r=n(55153),s=n(2748),a=n(70799),l=n(29960),c=n(14316),u=n(34176),d=n(12153);let h=i=class e extends o.ViewComponent{getRole(){var e;return(null==(e=this.options)?void 0:e.role)||""}get parentElement(){return this.__parentElement}set parentElement(e){this.__parentElement=e,e&&e.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(e){let t=this.parentElement;for(;t;)e(t),t=t.parentElement;return this}updateParentElement(e){var t;return null==(t=this.__parentElement)||t.updateParentElement(e),this}get(e,t){return super.get(e,t)||this.getElm(e)}closest(e){let t="object"==typeof e?t=>t===e:t=>o.Component.isInstanceOf(t,e),n=this.__parentElement;for(;n;){if(t(n))return n;n=!n.parentElement&&n.container.parentElement?i.closestElement(n.container.parentElement,i):n.parentElement}return null}static closestElement(e,t){let n=s.Dom.up(e,e=>{if(e){let{component:n}=e;return n&&o.Component.isInstanceOf(n,t)}return!1});return n?null==n?void 0:n.component:null}update(){}appendTo(e){return s.Dom.append(e,this.container),this}clearName(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}render(e){return this.j.c.div(this.componentName)}createContainer(e){let t=this.render(e);if((0,a.isString)(t)){let e=this.parseTemplate(t);return e.classList.add(this.componentName),e}return t}parseTemplate(e){return this.j.c.fromHTML(e.replace(/\*([^*]+?)\*/g,(e,t)=>d.Icon.get(t)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(e,t)=>this.i18n(t)))}destruct(){return s.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(e,t){super(e),this.name="",this.__parentElement=null,this.mods={},this.options=t,this.container=this.createContainer(t);const n=this.getRole();n&&(0,l.attr)(this.container,"role",n),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}};h=i=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}([(0,r.derive)(u.Mods,c.Elms)],h)},19070:function(e,t,n){n.d(t,{UIBlock:function(){return s}});var i=n(87325),o=n(43555),r=n(62405);let s=class e extends r.UIGroup{className(){return"UIBlock"}constructor(e,t,n={align:"left"}){super(e,t),this.options=n,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,o.attr)(this.container,"data-ref",n.ref),(0,o.attr)(this.container,"ref",n.ref)}};s=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}([i.component],s)},86327:function(e,t,n){n.d(t,{UIForm:function(){return c}});var i=n(4012),o=n(87325),r=n(43555),s=n(80256),a=n(12234),l=n(62405);let c=class e extends l.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let e of this.allChildren.filter(e=>i.Component.isInstanceOf(e,s.UIInput)))if(!e.validate())return!1;for(let e of this.allChildren.filter(e=>i.Component.isInstanceOf(e,a.UISelect)))if(!e.validate())return!1;return!0}onSubmit(e){return this.j.e.on(this.container,"submit",()=>{let t=this.allChildren.filter(e=>i.Component.isInstanceOf(e,s.UIInput));return!!this.validate()&&(e(t.reduce((e,t)=>(e[t.state.name]=t.value,e),{})),!1)}),this}createContainer(){let e=this.j.c.element("form");return e.classList.add(this.componentName),(0,r.attr)(e,"dir",this.j.o.direction||"auto"),(0,r.attr)(e,"novalidate",""),e}constructor(...e){var t,n;super(...e),(null==(t=this.options)?void 0:t.className)&&this.container.classList.add(null==(n=this.options)?void 0:n.className)}};c=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}([o.component],c)},2525:function(e,t,n){n.d(t,{UIBlock:function(){return i.UIBlock},UICheckbox:function(){return r.UICheckbox},UIFileInput:function(){return r.UIFileInput},UIForm:function(){return o.UIForm},UIInput:function(){return r.UIInput},UISelect:function(){return r.UISelect},UITextArea:function(){return r.UITextArea}});var i=n(19070),o=n(86327),r=n(8959)},85120:function(e,t,n){n.d(t,{UITextArea:function(){return h}});var i,o,r,s=n(65478),a=n(87325),l=n(41180),c=n(80256);function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}var d=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let h=r=class e extends c.UIInput{className(){return"UITextArea"}createNativeInput(e){return this.j.create.element("textarea")}onChangeStateSize(){let{size:e,resizable:t}=this.state;(0,l.css)(this.nativeInput,"resize",t?"auto":"none"),this.nativeInput.rows=null!=e?e:5}constructor(e,t){super(e,t),this.state=u({},r.defaultState),Object.assign(this.state,t),!1===this.state.resizable&&(0,l.css)(this.nativeInput,"resize","none")}};h.defaultState=(i=u({},c.UIInput.defaultState),o=o={size:5,resizable:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))}),i),d([(0,s.watch)(["state.size","state.resizable"])],h.prototype,"onChangeStateSize",null),h=r=d([a.component],h)},17328:function(e,t,n){n.d(t,{UICheckbox:function(){return u}});var i,o=n(65478),r=n(2748),s=n(80256);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}function l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var c=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};let u=i=class e extends s.UIInput{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),r.Dom.after(this.nativeInput,e)):r.Dom.safeRemove(e)}constructor(e,t){super(e,l(a({},t),{type:"checkbox"})),this.state=a({},i.defaultState),Object.assign(this.state,t)}};u.defaultState=l(a({},s.UIInput.defaultState),{checked:!1,switch:!1}),c([(0,o.watch)("state.checked"),(0,o.hook)("ready")],u.prototype,"onChangeChecked",null),c([(0,o.watch)("nativeInput:change")],u.prototype,"onChangeNativeCheckBox",null),c([(0,o.watch)("state.switch"),(0,o.hook)("ready")],u.prototype,"onChangeSwitch",null),u=i=c([o.component],u)},4242:function(e,t,n){n.d(t,{UIFileInput:function(){return l}});var i=n(87325),o=n(2748),r=n(10830),s=n(80256);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}let l=class e extends s.UIInput{className(){return"UIFileInput"}createContainer(e){this.button=new r.UIButton(this.j,{tooltip:e.tooltip,icon:{name:"plus"}});let{container:t}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(e));let{nativeInput:n}=this;return n.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),o.Dom.append(t,n),t}createNativeInput(e){return this.j.create.fromHTML(`<input
|
|
@@ -251,4 +251,4 @@
|
|
|
251
251
|
data-index-j="${i}"
|
|
252
252
|
role="option"
|
|
253
253
|
tabindex="-1"
|
|
254
|
-
>${e.o.specialCharacters[t]}</a>`);a.push(s),o.Dom.append(r,s),o.Dom.append(n,r)}o.Dom.append(r,n)}let l=this;return e.e.on(a,"focus",function(){n.innerHTML=this.innerHTML}).on(a,"mousedown",function(t){o.Dom.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),(null==t?void 0:t.shiftKey)||e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())}).on(a,"mouseenter",function(){o.Dom.isTag(this,"a")&&this.focus()}).on(a,"keydown",t=>{let n=t.target;if(o.Dom.isTag(n,"a")){let o,r=parseInt((0,s.attr)(n,"-index")||"0",10),c=parseInt((0,s.attr)(n,"data-index-j")||"0",10);switch(t.key){case i.KEY_UP:case i.KEY_DOWN:void 0===a[o=t.key===i.KEY_UP?r-l.__countInRow:r+l.__countInRow]&&(o=t.key===i.KEY_UP?Math.floor(a.length/l.__countInRow)*l.__countInRow+c:c)>a.length-1&&(o-=l.__countInRow),a[o]&&a[o].focus();break;case i.KEY_RIGHT:case i.KEY_LEFT:void 0===a[o=t.key===i.KEY_LEFT?r-1:r+1]&&(o=t.key===i.KEY_LEFT?a.length-1:0),a[o]&&a[o].focus();break;case i.KEY_ENTER:e.e.fire(n,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}}),t})}beforeDestruct(e){e.e.off("generateSpecialCharactersTable.symbols")}constructor(e){super(e),this.buttons=[{name:"symbols",group:"insert"}],this.__countInRow=17,(0,r.extendLang)(l)}}r.pluginSystem.add("symbols",c)},5119:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '},47686:function(e,t,n){n.d(t,{onTabInsideLi:function(){return i.onTabInsideLi}});var i=n(26658)},26658:function(e,t,n){n.d(t,{onTabInsideLi:function(){return r}});var i=n(2748),o=n(38837);function r(e,t=!1){let n,s,a,l;if(!e.o.tab.tabInsideLiInsertNewList)return!1;let[c,u]=(n=e.createInside.fake(),s=e.createInside.fake(),(a=e.s.range.cloneRange()).collapse(!0),a.insertNode(n),(l=e.s.range.cloneRange()).collapse(!1),l.insertNode(s),[n,s]);try{let n,r,s,a,l,u=!!(n=i.Dom.closest(c,"li",e.editor))&&(!!t||!!i.Dom.isLeaf(n.previousElementSibling))&&(!t||!!i.Dom.closest(n,"li",e.editor))&&n;if(!u||!(r=i.Dom.closest(c,"li",e.editor))||r!==u&&!u.contains(r))return!1;let d=i.Dom.closest(u,["ol","ul"],e.editor);if(!d||t&&!i.Dom.closest(d,"li",e.editor))return!1;return t?function(e,t,n){let r=i.Dom.closest(t,"li",e.editor);(0,o.assert)(r,"tab parent li is null");let s=Array.from(t.children).filter(e=>i.Dom.isLeaf(e));i.Dom.after(r,n);let a=s.indexOf(n);if((0===a||1===s.length)&&i.Dom.safeRemove(t),a!==s.length-1){let e=t.cloneNode();i.Dom.append(n,e);for(let t=a+1;t<s.length;t+=1)i.Dom.append(e,s[t])}}(e,d,u):(s=u.previousElementSibling,(0,o.assert)(s,"tab previousElementSibling is null"),a=s.lastElementChild,l=i.Dom.isTag(a,d.tagName)?a:e.createInside.element(d.tagName,Array.from(d.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{})),i.Dom.append(l,u),a!==l&&i.Dom.append(s,l)),!0}finally{let t=e.s.createRange();t.setStartAfter(c),t.setEndBefore(u),e.s.selectRange(t),i.Dom.safeRemove(c),i.Dom.safeRemove(u)}}},66288:function(e,t,n){n(6441).Config.prototype.tab={tabInsideLiInsertNewList:!0}},767:function(e,t,n){var i=n(82758),o=n(65478),r=n(580),s=n(50911);n(66288);var a=n(47686),l=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class c extends s.Plugin{afterInit(e){}__onTab(e){if(e.key===i.KEY_TAB&&this.__onShift(e.shiftKey))return!1}__onCommand(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}__onShift(e){let t=(0,a.onTabInsideLi)(this.j,e);return t&&this.j.e.fire("afterTab",e),t}beforeDestruct(e){}}l([(0,o.watch)(":keydown.tab")],c.prototype,"__onTab",null),l([(0,o.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},72439:function(e,t,n){var i=n(82758),o=n(2748),r=n(580),s=n(21537),a=n(76014);let l=new Set([i.KEY_TAB,i.KEY_LEFT,i.KEY_RIGHT,i.KEY_UP,i.KEY_DOWN]);r.pluginSystem.add("tableKeyboardNavigation",function(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",t=>{let{key:n}=t,r=function(e,t){if(!l.has(t))return;let n=e.s.current();if(!n)return;let r=o.Dom.up(n,o.Dom.isCell,e.editor);if(!r)return;let{range:a}=e.s;if(t!==i.KEY_TAB&&n!==r){let e=t===i.KEY_RIGHT||t===i.KEY_DOWN,l=(0,s.call)(e?o.Dom.next:o.Dom.prev,n,e=>t===i.KEY_UP||t===i.KEY_DOWN?o.Dom.isTag(e,"br"):!!e,r);if(!e&&(l||t!==i.KEY_UP&&o.Dom.isText(n)&&0!==a.startOffset)||e&&(l||t!==i.KEY_DOWN&&o.Dom.isText(n)&&n.nodeValue&&a.startOffset!==n.nodeValue.length))return}return r}(e,n);if(!r)return;let c=e.getInstance(a.Table,e.o),u=o.Dom.closest(r,"table",e.editor),d=null,h=n===i.KEY_LEFT||t.shiftKey,f=()=>(0,s.call)(h?o.Dom.prev:o.Dom.next,r,o.Dom.isCell,u);switch(n){case i.KEY_TAB:case i.KEY_LEFT:(d=f())||(c.appendRow(u,!!h&&o.Dom.first(u,e=>o.Dom.isTag(e,"tr")),!h),d=f());break;case i.KEY_UP:case i.KEY_DOWN:{let e=c.formalMatrix(u),[t,o]=c.formalCoordinate(u,r);n===i.KEY_UP?void 0!==e[t-1]&&(d=e[t-1][o]):void 0!==e[t+1]&&(d=e[t+1][o])}}if(d){if(e.e.fire("hidePopup hideResizer"),d.firstChild)n===i.KEY_TAB?e.s.select(d,!0):e.s.setCursorIn(d,n===i.KEY_RIGHT||n===i.KEY_DOWN);else{let t=e.createInside.element("br");o.Dom.append(d,t),e.s.setCursorBefore(t)}return e.synchronizeValues(),!1}})})},40329:function(e,t,n){var i=n(82758),o=n(22732),r=n(21537),s=n(43555),a=n(12153),l=n(6441),c=n(6091);l.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},a.Icon.set("table",c.default),l.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:(e,t,n,a)=>{let l;e.editor.normalize();let c=e.history.snapshot.make(),u=a.control,d=u.data&&u.data.rows?u.data.rows:10,h=u.data&&u.data.cols?u.data.cols:10,f=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!e.o.table.useExtraClassesOptions)return"";let t=[];if(u.data){let e=u.data.classList;Object.keys(e).forEach(n=>{t.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${n}" type="checkbox"/>${e[n]}</label>`)})}return t.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> × <span>1</span></label></form>'),[p,m]=(l=[],o.Dom.each(f,e=>{o.Dom.isTag(e,"span")&&l.push(e)}),l),g=o.Dom.first(f,e=>o.Dom.isHTMLElement(e)&&e.classList.contains("jodit-form__container")),v=o.Dom.first(f,e=>o.Dom.isHTMLElement(e)&&e.classList.contains("jodit-form__options")),b=[],y=d*h;(0,s.attr)(g,{role:"grid",ariaLabel:"Table size",ariaRowcount:d,ariaColcount:h});for(let t=0;t<y;t+=1)if(!b[t]){let n=Math.floor(t/h)+1,i=t%h+1;b.push(e.c.element("span",{dataIndex:t,role:"gridcell",tabindex:0===t?0:-1,ariaLabel:`${n} by ${i}`}))}let w=e=>{let t=parseInt((0,s.attr)(e,"-index")||"0",10),n=Math.ceil((t+1)/h),i=t%h+1;for(let e=0;e<b.length;e+=1)i>=e%h+1&&n>=Math.ceil((e+1)/h)?b[e].className="jodit_hovered":b[e].className="";m.textContent=i.toString(),p.textContent=n.toString()},S=t=>{let i=parseInt((0,s.attr)(t,"-index")||"0",10),a=Math.ceil((i+1)/h),l=i%h+1,u=e.createInside,d=u.element("tbody"),f=u.element("table");o.Dom.append(f,d);let p=null,m,g;for(let e=1;a>=e;e+=1){m=u.element("tr");for(let e=1;e<=l;e+=1)g=u.element("td"),p||(p=g),(0,r.css)(g,"width",(100/l).toFixed(4)+"%"),o.Dom.append(g,u.element("br")),o.Dom.append(m,u.text("\n")),o.Dom.append(m,u.text(" ")),o.Dom.append(m,g);o.Dom.append(d,u.text("\n")),o.Dom.append(d,m)}(0,r.$$)("input[type=checkbox]:checked",v).forEach(e=>{e.value.split(/[\s]+/).forEach(e=>{f.classList.add(e)})}),e.s.restore(),e.s.removeMarkers(),e.editor.normalize(),e.history.snapshot.restore(c);let b=o.Dom.furthest(e.s.current(),o.Dom.isBlock,e.editor);if(b&&o.Dom.isEmpty(b))o.Dom.replace(b,f,void 0,!1,!0);else if(b){let t=u.text("\n");if(e.o.table.splitBlockOnInsertTable){let n=e.s.range;n.collapse(!1),n.insertNode(t),n.collapse(!1),e.s.selectRange(n);let i=e.s.splitSelection(b,t);i?o.Dom.after(i,f):o.Dom.after(b,f)}else o.Dom.after(b,t),o.Dom.after(t,f)}else e.s.insertNode(f,!1);p&&(e.s.setCursorIn(p),(0,r.scrollIntoViewIfNeeded)(p,e.editor,e.ed)),n()};if(e.e.on(g,"mousemove",e=>{o.Dom.isTag(e.target,"span")&&w(e.target)}).on(g,"touchstart mousedown",e=>{o.Dom.isTag(e.target,"span")&&(e.preventDefault(),e.stopImmediatePropagation(),S(e.target))}).on(g,"keydown",e=>{if(!o.Dom.isTag(e.target,"span"))return;if(e.key===i.KEY_ENTER){e.preventDefault(),e.stopImmediatePropagation(),S(e.target);return}if(e.key===i.KEY_ESC){e.preventDefault(),e.stopImmediatePropagation(),n();return}let t=parseInt((0,s.attr)(e.target,"-index")||"0",10),r=Math.floor(t/h),a=t%h,l=t;switch(e.key){case i.KEY_LEFT:l=a>0?t-1:t;break;case i.KEY_RIGHT:l=a<h-1?t+1:t;break;case i.KEY_UP:l=r>0?t-h:t;break;case i.KEY_DOWN:l=r<d-1?t+h:t;break;default:return}e.preventDefault(),e.stopImmediatePropagation(),l!==t&&(b[t].tabIndex=-1,b[l].tabIndex=0,b[l].focus(),w(b[l]))}),a&&a.parentElement){for(let t=0;t<d;t+=1){let n=e.c.div();(0,s.attr)(n,"role","row");for(let e=0;e<h;e+=1)o.Dom.append(n,b[t*h+e]);o.Dom.append(g,n)}b[0]&&(b[0].className="hovered")}return f},tooltip:"Insert table"}},43003:function(e,t,n){var i=n(580);n(40329),i.pluginSystem.add("table",function(e){e.registerButton({name:"table",group:"insert"})})},6091:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '},14984:function(e,t,n){var i=n(21537),o=n(62843),r=n(2525),s=n(12153),a=n(6441),l=n(92762),c=n(37775);a.Config.prototype.video={parseUrlToVideoEmbed:i.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},s.Icon.set("video",c.default),a.Config.prototype.controls.video={popup:(e,t,n)=>{let s=new r.UIForm(e,[new r.UIBlock(e,[new r.UIInput(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>s.submit())])]),a=new r.UIForm(e,[new r.UIBlock(e,[new r.UITextArea(e,{name:"code",required:!0,label:"Embed code"})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>a.submit())])]),c=[],u=t=>{e.s.restore(),e.s.insertHTML(t),n()};return e.s.save(),c.push({icon:"link",name:"Link",content:s.container},{icon:"source",name:"Code",content:a.container}),s.onSubmit(t=>{var n,o,r,s;u((0,i.call)(null!=(o=null==(n=e.o.video)?void 0:n.parseUrlToVideoEmbed)?o:i.convertMediaUrlToVideoEmbed,t.url,{width:null==(r=e.o.video)?void 0:r.defaultWidth,height:null==(s=e.o.video)?void 0:s.defaultHeight}))}),a.onSubmit(e=>{u(e.code)}),(0,l.TabsWidget)(e,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},26551:function(e,t,n){var i=n(580);n(14984),i.pluginSystem.add("video",function(e){e.registerButton({name:"video",group:"media"})})},37775:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> '},96967:function(e,t,n){n(6441).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},72253:function(e,t,n){var i=n(65478),o=n(22732),r=n(580),s=n(70799),a=n(50911);n(96967);var l=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class c extends a.Plugin{afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,n=!1;for(;t;){if(t=function(e,t){let n=e,i=e;do if(o.Dom.isElement(i)&&o.Dom.isLeaf(i)&&!o.Dom.isList(i.parentElement)){let e=o.Dom.findNotEmptySibling(i,!1);o.Dom.isTag(n,"ul")?o.Dom.append(n,i):n=o.Dom.wrap(i,"ul",t.createInside),i=e}else break;while(i);return n}(t,e),this.isSuitableStart(t)){n||e.s.save(),n=!0;let i=e.createInside.element(e.o.enter);for(o.Dom.before(t,i);t&&this.isSuitable(t);){let e=t.nextSibling;o.Dom.append(i,t),t=e}i.normalize(),t=i}t=t&&t.nextSibling}n&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){let{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;let n=e.createInside.element(e.o.enter),i=e.createInside.element("br");o.Dom.append(n,i),o.Dom.append(e.editor,n),(e.s.isFocused()||"backSpaceAfterDelete"===e.e.current)&&e.s.setCursorBefore(i),e.e.fire("internalChange")}constructor(){super(...arguments),this.isSuitableStart=e=>{var t;return o.Dom.isText(e)&&(0,s.isString)(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||(null==(t=e.parentNode)?void 0:t.firstChild)===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!o.Dom.isTemporary(e)},this.isSuitable=e=>o.Dom.isText(e)||this.isNotWrapped(e),this.isNotWrapped=e=>o.Dom.isElement(e)&&!(o.Dom.isBlock(e)||o.Dom.isTag(e,this.j.o.wrapNodes.exclude))}}l([i.autobind],c.prototype,"postProcessSetEditorValue",null),l([i.autobind],c.prototype,"preprocessInput",null),r.pluginSystem.add("wrapNodes",c)},86012:function(e,t,n){n(6441).Config.prototype.showXPathInStatusbar=!0},83671:function(e,t,n){var i=n(82758),o=n(22732),r=n(580),s=n(49055),a=n(29960),l=n(76078),c=n(50911),u=n(80870),d=n(21491);n(86012);class h extends c.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),(0,a.attr)(this.container,"role","list");let e=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===i.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=i.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("pointerup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",e),e(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),o.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new u.ContextMenu(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?o.Dom.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();let n=(0,a.attr)(t.target,"-path")||"/";if("/"===n)return this.j.execCommand("selectall"),!1;try{let e=this.j.ed.evaluate(n,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch(e){}return this.j.s.select(e),!1},this.tpl=(e,t,n,i)=>{let o=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${i}" tabindex="-1"'>${(0,s.trim)(n)}</a></span>`),r=o.firstChild;return this.j.e.on(r,"click",this.onSelectPath.bind(this,e)).on(r,"contextmenu",this.onContext.bind(this,e)),o},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,d.makeButton)(this.j,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({name:"selectall"},this.j.o.controls.selectall)),this.selectAllButton.state.size="tiny",this.container&&o.Dom.prepend(this.container,this.selectAllButton.container)},this.calcPathImd=()=>{if(this.isDestructed)return;let e=this.j.s.current();if(this.container&&(this.container.innerHTML=i.INVISIBLE_SPACE),e){let t,n,i;o.Dom.up(e,e=>{e&&this.j.editor!==e&&!o.Dom.isText(e)&&!o.Dom.isComment(e)&&(t=e.nodeName.toLowerCase(),n=(0,l.getXPathByElement)(e,this.j.editor).replace(/^\//,""),i=this.tpl(e,n,t,this.j.i18n("Select %s",t)),this.container&&o.Dom.prepend(this.container,i))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}}r.pluginSystem.add("xpath",h)},78173:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},16260:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},37663:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},51036:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},31554:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> '},18309:function(e,t){t.default='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> '},99762:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> '},7903:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> '},58032:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> '},52507:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> '},43478:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> '},60097:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> '},49155:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> '},17555:function(e,t,n){n.r(t),n.d(t,{angle_down:function(){return i.default},angle_left:function(){return o.default},angle_right:function(){return r.default},angle_up:function(){return s.default},bin:function(){return a.default},cancel:function(){return l.default},center:function(){return c.default},check:function(){return u.default},chevron:function(){return d.default},dots:function(){return h.default},eye:function(){return f.default},file:function(){return p.default},folder:function(){return m.default},info_circle:function(){return g.default},left:function(){return v.default},lock:function(){return b.default},ok:function(){return y.default},pencil:function(){return w.default},plus:function(){return S.default},resize_handler:function(){return _.default},right:function(){return k.default},save:function(){return C.default},settings:function(){return E.default},unlock:function(){return I.default},update:function(){return D.default},upload:function(){return T.default},valign:function(){return j.default}});var i=n(78173),o=n(16260),r=n(37663),s=n(51036),a=n(31554),l=n(18309),c=n(99762),u=n(7903),d=n(58032),h=n(52507),f=n(43478),p=n(60097),m=n(49155),g=n(17176),v=n(57882),b=n(58908),y=n(24829),w=n(4038),S=n(45575),_=n(84858),k=n(445),C=n(36886),E=n(10766),I=n(33651),D=n(20362),T=n(12202),j=n(80152)},17176:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> '},57882:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},58908:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> '},24829:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> '},4038:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> '},45575:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '},84858:function(e,t){t.default='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> '},445:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},36886:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> '},10766:function(e,t){t.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> '},33651:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> '},20362:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> '},12202:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> '},80152:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> '},31356:function(e,t,n){n.d(t,{ListReconciler:function(){return i}});class i{static reconcile(e,t,n){let{getId:i,isEqual:o=(e,t)=>i(e)===i(t),preserveOrder:r=!0}=n,s=new Map,a=new Map;e.forEach((e,t)=>{let n=i(e);s.set(n,e),a.set(n,t)});let l=new Map,c=new Map;t.forEach((e,t)=>{let n=i(e);l.set(n,e),c.set(n,t)});let u=[],d=[],h=[],f=[];return t.forEach((e,t)=>{let n=i(e),l=s.get(n);l?!o(l,e)||r&&a.get(n)!==t?d.push({oldItem:l,newItem:e,index:r?t:a.get(n)}):f.push(l):u.push(e)}),e.forEach(e=>{let t=i(e);l.has(t)||h.push(e)}),{toCreate:u,toUpdate:d,toRemove:h,unchanged:f}}static applyResult(e,t,n={}){t.toRemove.forEach(t=>{let i=e.indexOf(t);if(-1!==i){var o;null==(o=n.onRemove)||o.call(n,t,i),e.splice(i,1)}}),t.toUpdate.forEach(({oldItem:t,newItem:i,index:o})=>{let r=e.indexOf(t);if(-1!==r){var s;null==(s=n.onUpdate)||s.call(n,t,i,o),e[r]=i}}),t.toCreate.forEach(t=>{var i;null==(i=n.onCreate)||i.call(n,t,e.length),e.push(t)})}}},2692:function(e,t,n){n.d(t,{JoditPro:function(){return l}});var i=n(77688),o=n(82758),r=n(63799),s=n(41180),a=n(86019);class l extends a.Jodit{static make(e,t){return new this(e,t)}beforeInitHook(){if(o.IS_PROD&&!o.IS_TEST&&this.o.loadExternalConfig)return(0,r.appendScriptAsync)(this,this.basePath+"config.js")}afterInitHook(){(0,i._)(function*(){if((yield this.e.fire("checkReserve",location.host))!=="normal"){if(this.isInDestruct)return;let e=this.c.div("",'Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>');o.IS_TEST||o.IS_PROD,(0,s.css)(e,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(e)}}).call(this).catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+o.APP_VERSION}}},49934:function(e,t,n){n.d(t,{autocomplete:function(){return g}});var i=n(77688),o=n(82749),r=n(56075),s=n(31635);n(53586);var a=n(83725),l=n(64199),c=n(82758),u=n(65478),d=n(2748),h=n(21537),f=n(50911),p=n(56917),m=n(2692);class g extends f.Plugin{get list(){let e=new a.Autocomplete(this.jodit);return e.setDisplayMode(this.jodit.o.autocomplete.displayMode),e}get popup(){let e=new p.Popup(this.jodit);return e.setMod("padding",!1),e.setContent(this.list.container),"inline"===this.jodit.o.autocomplete.displayMode&&e.setMod("autocomplete-inline",!0),this.jodit.e.on(e,"beforeClose",()=>{this.list.currentSelection=0}),e}afterInit(e){e.e.on("select.autocomplete",t=>{let n=t.value;(0,h.isFunction)(t.insertValueRenderer)&&(n=t.insertValueRenderer(t)),d.Dom.isNode(n)||(n=e.createInside.fromHTML(n)),(0,l.replaceTextLeftOfCursorAfterSpace)(e.s.range,n),this.j.s.setCursorAfter(n),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(e){this.sources.push(e)}unregisterAutocompleteSource(e){let t=this.sources.indexOf(e);-1!==t&&this.sources.splice(t,1)}static isControlKey(e){return e===c.KEY_DOWN||e===c.KEY_UP||e===c.KEY_ENTER||e===c.KEY_TAB}onKeyDown(e){return(0,i._)(function*(){var t,n;if(e.key===c.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:i}=this.j;if(g.isControlKey(e.key)||!i.isInsideArea||!i.isCollapsed)return;let o=(null==(t=this.j.s.sel)?void 0:t.rangeCount)?null==(n=this.j.s.sel)?void 0:n.getRangeAt(0):null,r=o&&(0,l.getTextLeftOfCursor)(o).split(" ").pop();if(r&&(0,h.trim)(r).length){let e=yield this.onAutoComplete(r);if(!this.isQueryStillAnchored(r)){this.popup.isOpened&&this.popup.close();return}if(e.length)return this.openPopup(e)}this.popup.isOpened&&this.popup.close()}).call(this)}isQueryStillAnchored(e){var t,n;let{s:i}=this.j;if(!i.isInsideArea||!i.isCollapsed)return!1;let o=(null==(n=i.sel)?void 0:n.rangeCount)?i.sel.getRangeAt(0):null;return!!o&&!!o.startContainer.isConnected&&(null!=(t=(0,l.getTextLeftOfCursor)(o).split(" ").pop())?t:"").startsWith(e)}onKeyControlDown(e){if(this.popup.isOpened&&g.isControlKey(e.key)){switch(e.key){case c.KEY_DOWN:this.list.selectNext();break;case c.KEY_UP:this.list.selectPrevious();break;case c.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(e.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}onAutoComplete(e){return(0,i._)(function*(){let t=[];return yield Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(n=>(0,i._)(function*(){t.push(...yield this.resolveFeed(e,n))}).call(this))),t}).call(this)}resolveFeed(e,t,n){return(0,i._)(function*(){let i;if((0,h.isPromise)(t)&&(t=yield t),(0,h.isFunction)(t))i=yield t(e);else if((0,h.isArray)(t)){let n=t,{isMatchedQuery:o}=this.j.o.autocomplete;i=n.filter(t=>(0,h.isString)(t)?o(e,t):o(e,t.value)).map(e=>(0,h.isString)(e)?{title:e,value:e}:e)}else i=yield this.resolveFeed(e,t.feed,t);if(this.j.isDestructed)return[];if(i&&(0,h.isArray)(i)){let{itemRenderer:e,insertValueRenderer:t,maxItems:o}=this.j.o.autocomplete;return(i=i.map(i=>{var o,s;return(0,r._)({itemRenderer:null!=(o=null==n?void 0:n.itemRenderer)?o:e,insertValueRenderer:null!=(s=null==n?void 0:n.insertValueRenderer)?s:t},i)})).slice(0,o)}return[]}).call(this)}openPopup(e){this.list.build(e),this.popup.open(()=>{let{j:e}=this,t=e.s.range.getBoundingClientRect(),n={left:t.left,top:t.top,height:t.height,width:t.width};if(e.o.iframe&&e.iframe){let t=(0,h.position)(e.iframe,e);n.top+=t.top,n.left+=t.left}return n})}beforeDestruct(e){e.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...e){super(...e),(0,o._)(this,"hasStyle",!m.JoditPro.fatMode),(0,o._)(this,"sources",[])}}(0,o._)(g,"requires",["enter","license"]),(0,s.__decorate)([u.cache],g.prototype,"list",null),(0,s.__decorate)([u.cache],g.prototype,"popup",null),(0,s.__decorate)([u.autobind],g.prototype,"registerAutocompleteSource",null),(0,s.__decorate)([u.autobind],g.prototype,"unregisterAutocompleteSource",null),(0,s.__decorate)([(0,u.debounce)()],g.prototype,"onKeyDown",null),(0,s.__decorate)([u.autobind],g.prototype,"onKeyControlDown",null),(0,s.__decorate)([u.autobind],g.prototype,"onEnter",null),(0,s.__decorate)([u.autobind],g.prototype,"onAutoComplete",null),(0,s.__decorate)([u.autobind],g.prototype,"resolveFeed",null),m.JoditPro.plugins.add("autocomplete",g)},53586:function(e,t,n){n(6441).Config.prototype.autocomplete={displayMode:"list",sources:[],maxItems:50,isMatchedQuery:(e,t)=>0===t.toLowerCase().indexOf(e.toLowerCase()),itemRenderer:e=>{var t;return null!=(t=e.title)?t:e.value},insertValueRenderer:e=>e.value+" "}},64199:function(e,t,n){n.d(t,{getTextLeftOfCursor:function(){return o},replaceTextLeftOfCursorAfterSpace:function(){return r}});var i=n(2748);function o(e){var t,n,o,r;let{startContainer:s,startOffset:a}=e;if(i.Dom.isText(s))return null!=(t=null==(n=s.nodeValue)?void 0:n.substr(0,a))?t:"";let l=s.childNodes[a];if(!l)return"";if(i.Dom.isText(l))return null!=(o=l.nodeValue)?o:"";let c=i.Dom.findNotEmptyNeighbor(l,!0,s);return i.Dom.isText(c)&&null!=(r=l.nodeValue)?r:""}function r(e,t){var n,o,r;let{startContainer:s,startOffset:a}=e;if(!i.Dom.isText(s)&&(s=s.childNodes[a-1],i.Dom.isText(s)&&(a=null!=(n=null==(o=s.nodeValue)?void 0:o.length)?n:0)),i.Dom.isText(s)){let n=null!=(r=s.nodeValue)?r:"",i=n.substring(0,a),o=n.substring(a),l=i.split(" ");l[l.length-1]="";let c=l.join(" ");s.nodeValue=c+o,e.setStart(s,c.length),e.insertNode(t);return}}},83725:function(e,t,n){n.d(t,{Autocomplete:function(){return c}});var i=n(82749),o=n(31635),r=n(31356),s=n(35934),a=n(65478),l=n(62405);class c extends l.UIGroup{className(){return"Autocomplete"}setDisplayMode(e){this.displayMode=e,this.setMod("displayMode",e)}onChangeSelection(){this.elements.forEach(e=>{e.setMod("active",!1),e.showShortcut(!1)});let e=this.elements[this.currentSelection];e&&(e.setMod("active",!0),"inline"===this.displayMode&&e.showShortcut(!0),e.container.scrollIntoView(!1))}build(e){var t;let n=null==(t=this.elements[this.currentSelection])?void 0:t.item.value,i=e=>e.value,o=r.ListReconciler.reconcile(this.__previousList,e,{getId:i}),a=new Set;o.toRemove.forEach(e=>{let t=i(e);if(a.has(t))return;a.add(t);let n=this.itemsMap.get(t);n&&(-1!==this.elements.indexOf(n)&&(this.remove(n),n.destruct()),this.itemsMap.delete(e.value))}),o.toCreate.forEach(t=>{let n=i(t);if(a.has(n))return;a.add(n);let o=new s.AutocompleteItem(this.jodit,t,t=>{this.currentSelection=e.findIndex(e=>i(e)===t),this.select()});this.itemsMap.set(n,o);let r=e.indexOf(t);this.append(o,r)}),o.toUpdate.forEach(({newItem:e,index:t})=>{let n=i(e);if(a.has(n))return;a.add(n);let o=this.itemsMap.get(n);o&&(o.item=e,this.elements.indexOf(o)!==t&&t<this.elements.length&&(this.remove(o),this.append(o,t)))});let l=this.currentSelection;this.currentSelection=Math.max(0,e.findIndex(e=>i(e)===n)),l===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...e]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...e){super(...e),(0,i._)(this,"elements",[]),(0,i._)(this,"currentSelection",-1),(0,i._)(this,"displayMode","list"),(0,i._)(this,"__previousList",[]),(0,i._)(this,"itemsMap",new Map)}}(0,o.__decorate)([(0,a.watch)("currentSelection")],c.prototype,"onChangeSelection",null),c=(0,o.__decorate)([a.component],c)},35934:function(e,t,n){n.d(t,{AutocompleteItem:function(){return l}});var i=n(82749),o=n(31635),r=n(65478),s=n(27613),a=n(48538);class l extends a.UIElement{className(){return"AutocompleteItem"}showShortcut(e){if(e&&!this.shortcutElm){let e=this.j.c.element("span");e.className="jodit-autocomplete-item__shortcut",e.innerText="tab",this.container.appendChild(e),this.shortcutElm=e}else!e&&this.shortcutElm&&(this.shortcutElm.remove(),this.shortcutElm=null)}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onClickHandler(){this.onClick(this.value)}constructor(e,t,n){super(e),(0,i._)(this,"item",void 0),(0,i._)(this,"onClick",void 0),(0,i._)(this,"value",void 0),(0,i._)(this,"shortcutElm",void 0),this.item=t,this.onClick=n,this.value="",this.shortcutElm=null;const{container:o}=this;if(this.value=t.value,(0,s.isFunction)(t.itemRenderer)){const e=t.itemRenderer(t);(0,s.isString)(e)?o.innerHTML=e:o.appendChild(e)}else{var r;o.innerText=null!=(r=t.title)?r:t.value}}}(0,o.__decorate)([(0,r.watch)("container:mousedown container:touchstart")],l.prototype,"onClickPrevent",null),(0,o.__decorate)([(0,r.watch)("container:click")],l.prototype,"onClickHandler",null),l=(0,o.__decorate)([r.component],l)},12373:function(e,t,n){n(25187),n(58858),n(21246),n(49934),n(3115)},38882:function(e,t,n){n.d(t,{isAllowedSubdomain:function(){return o},validateLicense:function(){return function e(t,n){var i;let r;if(i=t=String(t).toUpperCase().replace(/[‐-―−]/g,"-").replace(/\s+/g,"").replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(i)||o(n))return!0;let s=(r=n.split(".")).map(e=>{let t=e[0];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)+1):t}).concat(r.map(e=>{let t=e[e.length-1];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)-1):t})).map(e=>null!=e&&/\w/.test(e)?e:"r"),a=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((e,t)=>e.replace("{part}",s[t]||"[R-T]"));if(RegExp(`^${a.join("-")}$`,"i").test(t))return!0;let l=n.split(".");return l.shift(),l.length>1&&e(t,l.join("."))}}});let i=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function o(e){return i.some(t=>new RegExp(t.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(e))}},21246:function(e,t,n){n.d(t,{license:function(){return d}});var i=n(77688),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(e){return new d(e)}afterInit(e){this.j.e.on("checkReserve",e=>(0,i._)(function*(){let t=this.j.o.license;if((0,o.isAllowedSubdomain)(e))return"normal";if(!t||!(0,l.isString)(t))return"";let n=(0,o.validateLicense)(t,e);return n||r.IS_TEST||(n=yield this.validateLicenseRemote(t,e)),n?"normal":""}).call(this))}beforeDestruct(e){}validateLicenseRemote(e,t){return(0,i._)(function*(){let n="validateJoditLicenseRemote",i=this.j.storage.get(n);if(i&&(0,o.validateLicense)(i,t))return!0;let r=document.createElement("script");return r.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(t)}`,this.j.async.promise(e=>{let i=!1,l=t=>{i||(i=!0,s.Dom.safeRemove(r),e(t))};window.onJoditResolveKeyCode=e=>{if((0,a.isBoolean)(e))return l(e);(0,o.validateLicense)(e,t)?(this.j.storage.set(n,e),l(!0)):l(!1)},r.onerror=()=>l(!0),document.body.appendChild(r),this.j.async.setTimeout(()=>l(!0),5e3)})}).call(this)}}u.JoditPro.plugins.add("license",d)},20823:function(e,t,n){n.d(t,{cleanStyles:function(){return o}});let i={"text-justify":["inter-ideograph"]};function o(e){return e.isElement&&e.attributes.style&&Object.keys(i).forEach(t=>{let n=i[t];if(e.style.has(t)){var o;n.includes(null==(o=e.style.get(t))?void 0:o.toString())&&e.style.set(t,null)}}),e}},47064:function(e,t,n){n.d(t,{clearAttributes:function(){return o}});let i=["cellspacing","cellpadding","border","v:shapes","o:spid"];function o(e){if(/^OLE_LINK\d+$/.test(e.attributes.name)&&(e.attributes.name=null,0===e.length))return e.remove(),null;for(let t of("_GoBack"===e.attributes.name&&(e.attributes.name=null),i))e.attributes[t]&&(e.attributes[t]=null);return e}},41157:function(e,t,n){n.d(t,{clearClassName:function(){return o}});var i=n(49055);let o=e=>(e.attributes.class&&(e.attributes.class=e.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,i.trim)(e.attributes.class)||(e.attributes.class=null)),e)},53585:function(e,t,n){n.d(t,{convertStyleUnitToPixels:function(){return o}});var i=n(43712);let o=(e,{jodit:t})=>{if(!t.o.pasteFromWord.convertUnitsToPixel)return e;let{style:n}=e;return n.forEach(e=>{let t=n.get(e);t&&n.set(e,t.toString().replace(/\d+(\.\d+)?(pt|cm)/g,e=>(0,i.convertUnitToPx)(e)+"px"))}),e}},80591:function(e,t,n){n.d(t,{convertToList:function(){return l}});var i=n(82758),o=n(10058),r=n(97420),s=n(31269),a=n(43712);function l(e){if((0,r.isPseudoLeaf)(e)){e.name="li",e.style.set("text-indent",null);let h=c(e),f=/[\da-np-zA-NP-Z].?/.test(h)?"ol":"ul",p=function(e,t){for(let t in o.listStyleMap)if(RegExp(t).test(e))return o.listStyleMap[t];return"ol"===t?"decimal":"disc"}(h,f);e.attributes[o.TYPE_KEY]=f,e.attributes[o.STYLE_KEY]=p,(0,s.calcListLevels)(e),function(e){for(;e;){let t=e.previousElement;if(!((0,r.isLeaf)(t)||(0,r.isList)(t)))break;if((0,r.isLeaf)(t)){if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&e.parent&&(0,r.isSameType)(e,e.parent))break;t.append(e);continue}if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&!(0,r.isSameType)(e,t))break;t.append(e)}}(e);let{parent:m}=e;if(!(0,r.isList)(m)||!(0,r.isSameType)(e,m)){var t,n,i,l,u,d;let s,c=(t=e,n=f,i=h,l=p,(s=t.wrap(n)).attributes.start=(0,a.calcStartBySymbol)(i),s.attributes[o.LEVEL_KEY]=t.attributes[o.LEVEL_KEY],s.attributes[o.STYLE_KEY]=t.attributes[o.STYLE_KEY],s.attributes[o.STYLE_VALID_KEY]=t.attributes[o.STYLE_KEY],s.style.set(o.STYLE_CSS_KEY,l),(0,r.isList)(s)&&(null==(u=s.parent)?void 0:u.name)!=="li"&&("disc"===s.style.get(o.STYLE_CSS_KEY)||"decimal"===s.style.get(o.STYLE_CSS_KEY))&&s.style.set(o.STYLE_CSS_KEY,null),s);if((0,r.isList)(m)){c.remove(),null==(d=m.lastElement)||d.append(c)}}}return e}let c=e=>e.textBetween(e=>e.isComment&&/\[if.*supportLists.*]/.test((0,r.html)(e)),e=>e.isComment&&/\[endif]/.test((0,r.html)(e))).replace(/ /g,"").replace((0,i.SPACE_REG_EXP)(),"")},64693:function(e,t,n){n.d(t,{cases:function(){return g}});var i=n(20823),o=n(47064),r=n(41157),s=n(53585),a=n(80591),l=n(98940),c=n(72621),u=n(1580),d=n(18616),h=n(84021),f=n(69994),p=n(76059),m=n(21357);let g=[u.processImage,l.markPageBreakElements,h.removeExtraTags,p.replaceOldTags,o.clearAttributes,a.convertToList,d.processLinks,f.removeInsideComment,s.convertStyleUnitToPixels,r.clearClassName,c.normalizeImageProps,m.removeWidthFromTableCell,i.cleanStyles]},98940:function(e,t,n){n.d(t,{markPageBreakElements:function(){return i}});let i=e=>((e.isElement&&"always"===e.style.get("page-break-before")||"page"===e.style.get("break-before"))&&(e.attributes["jd-safe"]=!0,e.style.add("page-break-before","always"),e.isSingle&&(e.name="div")),e)},72621:function(e,t,n){n.d(t,{normalizeImageProps:function(){return i}});let i=e=>(e.isElement&&"img"===e.name&&(e.attributes.align&&(e.style.add("float",e.attributes.align),e.attributes.align=null),e.attributes.hspace&&(e.style.add("marginLeft",e.attributes.hspace+"px"),e.style.add("marginRight",e.attributes.hspace+"px"),e.attributes.hspace=null)),e)},1580:function(e,t,n){n.d(t,{processImage:function(){return o}});var i=n(21537);let o=(e,t)=>{if(t.rtf&&"#comment"===e.name&&e.attributes.nodeValue&&-1!==e.attributes.nodeValue.indexOf("<v:shape")){t.shapes||(t.shapes={});let n=t.jodit.create.fromHTML(e.attributes.nodeValue);return(0,i.toArray)(n.getElementsByTagName("v:shape")).forEach(e=>{t.shapes[e.id]=e.getAttribute("o:spid")}),e}if("img"!==e.name)return e;if(t.rtf&&e.attributes["v:shapes"]){var n,o;let i=null==(n=t.shapes)?void 0:n[e.attributes["v:shapes"]];if(i){let n=null!=(o=t.imageMap)?o:{};t.imageMap||(t.imageMap=n,r(t.rtf,"i","\\shppict",t.imageMap),r(t.rtf,"s","\\shp{",t.imageMap));let s=n[i.substring(7)];if(s){let t=[],n=s.hex.match(/[0-9a-f]{2}/gi);if(n){for(let e=0;e<n.length;e++){let i=parseInt(n[e],16);t.push(String.fromCharCode(i))}e.attributes.src="data:"+s.type+";base64,"+btoa(t.join(""))}}}}return e};function r(e,t,n,i){for(let o of e.split(n)){let e=o.split("shplid");if(1<e.length){let n,o=e[1],r="";for(let e=0;e<o.length&&!/[{ \r\n\\]/.test(o[e]);e++)r+=o[e];let s=o.split("bliptag");if(s&&s.length<2)continue;let a=null;if(s[0].indexOf("pngblip")?a="image/png":-1!==s[0].indexOf("jpegblip")&&(a="image/jpeg"),!a)continue;let l=s[1].split("}");if(l&&l.length<2)continue;if(2<l.length&&l[0].includes("blipuid"))n=l[1].split(" ");else{if((n=l[0].split(" "))&&n.length<2)continue;n.shift()}i[t+r]={hex:n.join(""),type:a}}}}},18616:function(e,t,n){n.d(t,{processLinks:function(){return i}});let i=(e,t)=>{var n;let i=null!=(n=t.links)?n:{};if(e.attributes.href&&e.attributes.href.match(/#.+$/)&&(i[e.attributes.href.match(/#(.+)$/)[1]]=e),e.attributes.name&&i[e.attributes.name]){let t=i[e.attributes.name];t.attributes.href=t.attributes.href.replace(/.*#(.*)$/,"#$1")}return t.links=i,e}},84021:function(e,t,n){n.d(t,{removeExtraTags:function(){return o}});let i=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function o(e){return"none"===e.style.get("display")||0===e.length&&"span"===e.name||i.has(e.name)?(e.remove(),null):e}},69994:function(e,t,n){n.d(t,{removeInsideComment:function(){return r}});var i=n(99658);let o=0;function r(e){return(e.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,i.html)(e))&&(o++,e.remove()),e.isComment&&o>0&&(0,i.html)(e).includes("[endif]")&&(o=o>0?o-1:0,e.remove()),o&&(e.isText||"img"===e.name&&(!e.attributes.src||/^file:/.test(e.attributes.src))))?(e.remove(),null):e}},76059:function(e,t,n){n.d(t,{replaceOldTags:function(){return o}});let i={i:"em",b:"strong"};function o(e){let{name:t}=e;return t in i&&(e.name=i[t]),e}},21357:function(e,t,n){n.d(t,{removeWidthFromTableCell:function(){return i}});let i=e=>(e.attributes.width&&("th"===e.name||"td"===e.name)&&(e.attributes.width=null),e)},13085:function(e,t,n){n(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},10058:function(e,t,n){n.d(t,{LEVEL_KEY:function(){return i},STYLE_CSS_KEY:function(){return a},STYLE_KEY:function(){return r},STYLE_VALID_KEY:function(){return s},TYPE_KEY:function(){return o},listStyleMap:function(){return l}});let i="jd-list-level",o="jd-list-type",r="jd-list-style-type",s="data-list-style-type",a="list-style-type",l={"\xb7":"disc",o:"circle","\xa7":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}},18594:function(e,t,n){n.d(t,{isLeaf:function(){return s},isList:function(){return r},isPseudoLeaf:function(){return a},isSameType:function(){return l}});var i=n(99658),o=n(10058);function r(e){return!!(e&&("ol"===e.name||"ul"===e.name))}function s(e){return!!(e&&"li"===e.name)}function a(e){return"li"!==e.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(e.attributes.style)||/msolistparagraph/i.test(e.attributes.class)&&!!e.find(e=>e.isComment&&(0,i.html)(e).includes("supportLists")).length}function l(e,t){let n=e.attributes[o.TYPE_KEY],i=e.attributes[o.STYLE_KEY];return t.name===n&&t.attributes[o.STYLE_KEY]===i&&e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]}},42968:function(e,t,n){n.d(t,{JElement:function(){return u}});var i=n(82749),o=n(99658),r=n(40273),s=n(82758),a=n(2748),l=n(38837);let c=new Set(s.INSEPARABLE_TAGS);class u{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return c.has(this.name)}get length(){return this.children.length}static make(e,t=null){return new u(e,t)}wrap(e){var t;(0,l.assert)(null!=this.parent,"You can't wrap the root element");let n=u.make(document.createElement(e),this.parent),i=null!=(t=this.parent.children.indexOf(this))?t:-1;return -1===i?this.parent.append(n):this.parent.children[i]=n,n.append(this),n}append(e){return(0,l.assert)(e!==this,"Forbidden to add to yourself"),e.remove(),this.children.push(e),e.parent=this,this}get previousElement(){if(!this.parent)return null;let{children:e}=this.parent,t=e.indexOf(this);if(-1!==t){for(let n=t-1;n>=0;n-=1)if(e[n].isElement)return e[n]}return null}get lastElement(){let{children:e}=this;for(let t=e.length-1;t>=0;t-=1)if(e[t].isElement)return e[t];return null}get previous(){var e,t,n;return null!=(e=null!=(t=this.sibling(!1))?t:null==(n=this.parent)?void 0:n.previous)?e:null}get next(){var e,t,n;return null!=(e=null!=(t=this.sibling(!0))?t:null==(n=this.parent)?void 0:n.next)?e:null}sibling(e){if(!this.parent)return null;let{children:t}=this.parent,n=t.indexOf(this);return -1!==n&&t[n+(e?1:-1)]?t[n+(e?1:-1)]:null}forEach(e,t=!1){for(let n of[...this.children])if(!1===e(n)||t&&!1===n.forEach(e,!0))return!1}find(e,t=!0){let n=[];return this.forEach(t=>{e(t)&&n.push(t)},t),n}map(e){return this.children.map(e)}remove(){var e,t;let n=null==(e=this.parent)?void 0:e.children.indexOf(this);return null!=n&&-1!==n&&(null==(t=this.parent)||t.children.splice(n,1)),this}textBetween(e,t){let n=!1,i=[];return this.forEach(r=>{if(!n&&e(r)&&(n=!0),n&&r.isText&&i.push((0,o.html)(r)),n&&t(r))return!1},!0),i.join("")}constructor(e,t){(0,i._)(this,"parent",void 0),(0,i._)(this,"name",void 0),(0,i._)(this,"type",void 0),(0,i._)(this,"attributes",void 0),(0,i._)(this,"style",void 0),(0,i._)(this,"children",void 0),this.parent=t,this.name=e.nodeName.toLowerCase(),this.type=e.nodeType,this.attributes=function(e){let t={};if(a.Dom.isElement(e))for(let n=0,i=e.attributes;n<i.length;n+=1)t[i[n].name]=i[n].value;else t.nodeValue=e.nodeValue;return t}(e),this.style=new r.Style(this.attributes.style),this.children=[],e.childNodes.forEach(e=>this.children.push(u.make(e,this)))}}},97420:function(e,t,n){n.d(t,{JElement:function(){return o.JElement},html:function(){return r.html},innerHTML:function(){return r.innerHTML},isLeaf:function(){return i.isLeaf},isList:function(){return i.isList},isPseudoLeaf:function(){return i.isPseudoLeaf},isSameType:function(){return i.isSameType}});var i=n(18594),o=n(42968),r=n(99658)},99658:function(e,t,n){n.d(t,{html:function(){return s},innerHTML:function(){return l}});var i=n(82758),o=n(87612),r=n(49055);function s(e,t=()=>!0,n=!0,o){switch(!0){case e.isComment:case e.isText:{if(!t(e))return"";let{nodeValue:n}=e.attributes;return e.isComment?`<!--${n}-->`:n}case e.isElement:{let{attributes:i}=e,r=l(e,t,n,o);if(!e.attributes["jd-safe"]&&n&&0===r.replace(/[\n\t]/g,"").length&&!e.isSingle)return"";let s=Object.keys(i).map(e=>"style"===e||null==i[e]||/^jd-/.test(e)?"":`${e}="${c(i[e])}"`).filter(Boolean),{str:u}=e.style,d=c(u(e=>a(e,o)));if(d&&s.push(`style="${d}"`),n&&0===s.length&&["span","a"].includes(e.name))return r;let h=s.length?" "+s.join(" "):"";if(!t(e))return r;return e.isSingle?`<${e.name}${h}/>`:`<${e.name}${h}>${r}</${e.name}>`}default:if(!i.IS_PROD)throw Error("Need implementation for this type")}return""}function a(e,t){if(!t)return!0;if(a.cache.has(t)){var n;let i=null==(n=a.cache.get(t))?void 0:n.get(e);if((0,o.isBoolean)(i))return i}let i=t.some(t=>new RegExp(t).test(e)),r=a.cache.get(t)||new Map;return r.set(e,i),a.cache.set(t,r),i}function l(e,t=()=>!0,n=!0,i){let o=e.map(e=>s(e,t,n,i)).join("");return"p"===e.name&&0===(0,r.trim)(o).length&&(o=" "),o}function c(e){return e.toString().replace(/"/g,""")}a.cache=new WeakMap},40273:function(e,t,n){n.d(t,{Style:function(){return u}});var i=n(82749),o=n(31635),r=n(45219),s=n(70799),a=n(12475),l=n(49055),c=n(43712);class u{get keys(){return Object.keys(this._data)}forEach(e){this.keys.forEach(t=>e(t))}clear(){this._data={}}set(e,t){this._data[e]=t}get(e){var t;return null!=(t=this._data[e])?t:null}has(e){return void 0!==this._data[e]}add(e,t){return this._data=d(this.str()+";"+`${e}:${t}`),this}str(e=e=>!0){let t=Object.keys(this._data).filter(t=>t&&!/^mso-/.test(t)&&e(t)&&null!=this.get(t)),n=e=>(0,s.isString)(e)?/^0[a-z]+$/i.test(e)?"0":e:e.toString();return(["padding","margin"].forEach(e=>{if(this._data[e]){let i=t.indexOf(e),o=(0,c.calcMarginParts)(this._data[e]);["top","right","bottom","left"].forEach((r,s)=>{let a=`${e}-${r}`,l=this._data[a];null!=l&&(t.indexOf(a)<i||n(o[s])===n(l))&&-1!==t.indexOf(a)&&t.splice(t.indexOf(a),1)})}}),t.length)?t.map(e=>`${(0,a.kebabCase)(e)}:${this.get(e)}`).join(";"):""}constructor(e){(0,i._)(this,"_data",void 0),this._data=d(e)}}function d(e){return(function(e){let t={},n=[];for(let i=e.length-1;i>=0;i-=1){let o=e[i][0];t[o]||(t[o]=!0,n.unshift(e[i]))}return n})((null!=e?e:"").replace(/"/g,'"').split(";").filter(Boolean).map(e=>(0,l.trim)(e).split(":").map(l.trim))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}(0,o.__decorate)([r.autobind],u.prototype,"forEach",null),(0,o.__decorate)([r.autobind],u.prototype,"clear",null),(0,o.__decorate)([r.autobind],u.prototype,"set",null),(0,o.__decorate)([r.autobind],u.prototype,"get",null),(0,o.__decorate)([r.autobind],u.prototype,"has",null),(0,o.__decorate)([r.autobind],u.prototype,"add",null),(0,o.__decorate)([r.autobind],u.prototype,"str",null)},51586:function(e,t,n){n.d(t,{applyStylesPro:function(){return l}});var i=n(19606),o=n(2748),r=n(29960),s=n(76078),a=n(97420);function l(e,t,n,c=""){let u=document.createElement("iframe");u.style.display="none",document.body.appendChild(u);try{var d,h;let o=null!=(d=u.contentDocument)?d:null==(h=u.contentWindow)?void 0:h.document;if(!o)return t;o.open(),o.write(t),o.close();let l="jd-style";for(let e=0;e<o.styleSheets.length;e+=1)try{let t=o.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)t[e].selectorText&&(0,s.$$)(t[e].selectorText,o.body).forEach(n=>{(0,r.attr)(n,l)||((0,r.attr)(n,l,(0,r.attr)(n,"style")||""),(0,r.attr)(n,"style","")),(0,r.attr)(n,"style",`${(0,r.attr)(n,"style")};${t[e].style.cssText}`)})}catch(e){}return(0,s.$$)(`[${l}]`,o.body).forEach(e=>{(0,r.attr)(e,"style",`${(0,r.attr)(e,"style")};${(0,r.attr)(e,l)}`)}),(0,i.transformWordToHtml)(e,a.JElement.make(o.body),n,c)}finally{o.Dom.safeRemove(u)}}},31269:function(e,t,n){n.d(t,{calcListLevels:function(){return s}});var i=n(43712),o=n(10058),r=n(97420);function s(e){if(void 0!==e.attributes[o.LEVEL_KEY])return;let t=[(0,i.realPixelIndent)(e)],n=[e],s=e.next;for(;s;){if(s.isElement&&!s.attributes[o.LEVEL_KEY]&&(0,r.isPseudoLeaf)(s)){let e=(0,i.realPixelIndent)(s);e&&(t.push(e),n.push(s))}s=s.next}let a=Math.min(...t.filter(e=>e>0)),l=t.map(e=>Math.ceil(e/10));-1!==l.indexOf(0)&&(l=l.map(e=>e+1)),n.forEach((e,t)=>{e.attributes[o.LEVEL_KEY]=l[t],e.style.add("margin-left",`${Math.max((0,i.realPixelIndent)(e)-10*l[t]/a*40,0)}px`)})}},43712:function(e,t,n){let i;function o(e){if(!e)return[0,0,0,0];let t=e.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(t.length){case 2:return[0,1,0,1].map(e=>t[e]);case 3:return[0,1,2,1].map(e=>t[e]);case 4:return[0,1,2,3].map(e=>t[e]);default:return[0,0,0,0].map(e=>t[e])}}function r(e){if("number"==typeof e)return e;if(/%$/.test(e))return 0;i||(Object.assign((i=document.createElement("div")).style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(i),setTimeout(()=>{null==i||i.remove(),i=null}));let t=0>parseFloat(e);t&&(e=e.replace("-","")),i.style.width=e;let n=i.clientWidth;return t?-n:n}function s(e){let{style:t}=e,n=t.keys.filter(e=>/margin/.test(e)),i=Math.max(n.indexOf("margin-left"),n.indexOf("margin")),s=i>0?n[i]:"margin-left";return r("margin"===s?o(t.get("margin"))[3]||0:t.get(s)||0)}function a(e){return/\d.\d/.test(e)?e.split(".").pop()||null:/^\d/.test(e)?(parseInt(e,10)||1).toString():null}n.d(t,{calcMarginParts:function(){return o},calcStartBySymbol:function(){return a},convertUnitToPx:function(){return r},realPixelIndent:function(){return s}})},30717:function(e,t,n){n.d(t,{applyStylesPro:function(){return i.applyStylesPro}});var i=n(51586);n(31269),n(19606)},19606:function(e,t,n){n.d(t,{transformWordToHtml:function(){return s}});var i=n(49055),o=n(64693),r=n(97420);function s(e,t,n,s){let a={jodit:e,rtf:s};return t.forEach(function e(t){if(t){for(let e of o.cases)if(null==(t=e(t,a)))break;null==t||t.forEach(e)}}),n&&t.forEach(e=>{e.style.clear()},!0),(0,i.trim)((0,r.innerHTML)(t,e=>!e.isComment,!0,e.o.pasteFromWord.allowedStyleProps))}},58858:function(e,t,n){n.r(t),n.d(t,{PasteFromWordPro:function(){return u}});var i=n(82749);n(13085);var o=n(30717),r=n(82758),s=n(70799),a=n(117),l=n(31571),c=n(2692);class u extends l.pasteFromWord{insertFromWordByType(e,t,n,i){if(this.j.o.pasteFromWord.enable&&(n===r.INSERT_AS_HTML||n===r.INSERT_AS_TEXT)){if(t=(0,o.applyStylesPro)(this.j,t,n===r.INSERT_AS_TEXT,i.rtf),this.j.o.beautifyHTML){var l;let e=null==(l=this.j.events)?void 0:l.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e)}(0,a.pasteInsertHtml)(e,this.j,t);return}return super.insertFromWordByType(e,t,n,i)}}(0,i._)(u,"requires",["license"]),c.JoditPro.plugins.remove("pasteFromWord"),c.JoditPro.plugins.add("pasteFromWordPro",u)},77688:function(e,t,n){function i(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var s=e.apply(t,n);function a(e){i(s,o,r,a,l,"next",e)}function l(e){i(s,o,r,a,l,"throw",e)}a(void 0)})}}n.d(t,{_:function(){return o}})},82749:function(e,t,n){n.d(t,{_:function(){return i}});function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},56075:function(e,t,n){n.d(t,{_:function(){return o}});var i=n(82749);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){(0,i._)(e,t,n[t])})}return e}},31635:function(e,t,n){function i(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}n.d(t,{__decorate:function(){return i}}),"function"==typeof SuppressedError&&SuppressedError}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e].call(n.exports,n,n.exports,s),n.exports}s.m=o,e=[],s.O=function(t,n,i,o){if(n){o=o||0;for(var r=e.length;r>0&&e[r-1][2]>o;r--)e[r]=e[r-1];e[r]=[n,i,o];return}for(var a=1/0,r=0;r<e.length;r++){for(var n=e[r][0],i=e[r][1],o=e[r][2],l=!0,c=0;c<n.length;c++)(!1&o||a>=o)&&Object.keys(s.O).every(function(e){return s.O[e](n[c])})?n.splice(c--,1):(l=!1,o<a&&(a=o));if(l){e.splice(r--,1);var u=i();void 0!==u&&(t=u)}}return t},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t={521:0},s.O.j=function(e){return 0===t[e]},n=function(e,n){var i,o,r=n[0],a=n[1],l=n[2],c=0;if(r.some(function(e){return 0!==t[e]})){for(i in a)s.o(a,i)&&(s.m[i]=a[i]);if(l)var u=l(s)}for(e&&e(n);c<r.length;c++)o=r[c],s.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return s.O(u)},(i=self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).forEach(n.bind(null,0)),i.push=n.bind(null,i.push.bind(i));var a={};s.r(a),s.d(a,{Jodit:function(){return c.JoditPro}}),s(12373);var l=s(31356),c=s(2692);return c.JoditPro.plugins.add("poweredByJodit",function(){}),c.JoditPro.modules.ListReconciler=l.ListReconciler,a=s.O(a)}()});
|
|
254
|
+
>${e.o.specialCharacters[t]}</a>`);a.push(s),o.Dom.append(r,s),o.Dom.append(n,r)}o.Dom.append(r,n)}let l=this;return e.e.on(a,"focus",function(){n.innerHTML=this.innerHTML}).on(a,"mousedown",function(t){o.Dom.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),(null==t?void 0:t.shiftKey)||e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())}).on(a,"mouseenter",function(){o.Dom.isTag(this,"a")&&this.focus()}).on(a,"keydown",t=>{let n=t.target;if(o.Dom.isTag(n,"a")){let o,r=parseInt((0,s.attr)(n,"-index")||"0",10),c=parseInt((0,s.attr)(n,"data-index-j")||"0",10);switch(t.key){case i.KEY_UP:case i.KEY_DOWN:void 0===a[o=t.key===i.KEY_UP?r-l.__countInRow:r+l.__countInRow]&&(o=t.key===i.KEY_UP?Math.floor(a.length/l.__countInRow)*l.__countInRow+c:c)>a.length-1&&(o-=l.__countInRow),a[o]&&a[o].focus();break;case i.KEY_RIGHT:case i.KEY_LEFT:void 0===a[o=t.key===i.KEY_LEFT?r-1:r+1]&&(o=t.key===i.KEY_LEFT?a.length-1:0),a[o]&&a[o].focus();break;case i.KEY_ENTER:e.e.fire(n,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}}),t})}beforeDestruct(e){e.e.off("generateSpecialCharactersTable.symbols")}constructor(e){super(e),this.buttons=[{name:"symbols",group:"insert"}],this.__countInRow=17,(0,r.extendLang)(l)}}r.pluginSystem.add("symbols",c)},5119:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '},47686:function(e,t,n){n.d(t,{onTabInsideLi:function(){return i.onTabInsideLi}});var i=n(26658)},26658:function(e,t,n){n.d(t,{onTabInsideLi:function(){return r}});var i=n(2748),o=n(38837);function r(e,t=!1){let n,s,a,l;if(!e.o.tab.tabInsideLiInsertNewList)return!1;let[c,u]=(n=e.createInside.fake(),s=e.createInside.fake(),(a=e.s.range.cloneRange()).collapse(!0),a.insertNode(n),(l=e.s.range.cloneRange()).collapse(!1),l.insertNode(s),[n,s]);try{let n,r,s,a,l,u=!!(n=i.Dom.closest(c,"li",e.editor))&&(!!t||!!i.Dom.isLeaf(n.previousElementSibling))&&(!t||!!i.Dom.closest(n,"li",e.editor))&&n;if(!u||!(r=i.Dom.closest(c,"li",e.editor))||r!==u&&!u.contains(r))return!1;let d=i.Dom.closest(u,["ol","ul"],e.editor);if(!d||t&&!i.Dom.closest(d,"li",e.editor))return!1;return t?function(e,t,n){let r=i.Dom.closest(t,"li",e.editor);(0,o.assert)(r,"tab parent li is null");let s=Array.from(t.children).filter(e=>i.Dom.isLeaf(e));i.Dom.after(r,n);let a=s.indexOf(n);if((0===a||1===s.length)&&i.Dom.safeRemove(t),a!==s.length-1){let e=t.cloneNode();i.Dom.append(n,e);for(let t=a+1;t<s.length;t+=1)i.Dom.append(e,s[t])}}(e,d,u):(s=u.previousElementSibling,(0,o.assert)(s,"tab previousElementSibling is null"),a=s.lastElementChild,l=i.Dom.isTag(a,d.tagName)?a:e.createInside.element(d.tagName,Array.from(d.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{})),i.Dom.append(l,u),a!==l&&i.Dom.append(s,l)),!0}finally{let t=e.s.createRange();t.setStartAfter(c),t.setEndBefore(u),e.s.selectRange(t),i.Dom.safeRemove(c),i.Dom.safeRemove(u)}}},66288:function(e,t,n){n(6441).Config.prototype.tab={tabInsideLiInsertNewList:!0}},767:function(e,t,n){var i=n(82758),o=n(65478),r=n(580),s=n(50911);n(66288);var a=n(47686),l=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class c extends s.Plugin{afterInit(e){}__onTab(e){if(e.key===i.KEY_TAB&&this.__onShift(e.shiftKey))return!1}__onCommand(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}__onShift(e){let t=(0,a.onTabInsideLi)(this.j,e);return t&&this.j.e.fire("afterTab",e),t}beforeDestruct(e){}}l([(0,o.watch)(":keydown.tab")],c.prototype,"__onTab",null),l([(0,o.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},72439:function(e,t,n){var i=n(82758),o=n(2748),r=n(580),s=n(21537),a=n(76014);let l=new Set([i.KEY_TAB,i.KEY_LEFT,i.KEY_RIGHT,i.KEY_UP,i.KEY_DOWN]);r.pluginSystem.add("tableKeyboardNavigation",function(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",t=>{let{key:n}=t,r=function(e,t){if(!l.has(t))return;let n=e.s.current();if(!n)return;let r=o.Dom.up(n,o.Dom.isCell,e.editor);if(!r)return;let{range:a}=e.s;if(t!==i.KEY_TAB&&n!==r){let e=t===i.KEY_RIGHT||t===i.KEY_DOWN,l=(0,s.call)(e?o.Dom.next:o.Dom.prev,n,e=>t===i.KEY_UP||t===i.KEY_DOWN?o.Dom.isTag(e,"br"):!!e,r);if(!e&&(l||t!==i.KEY_UP&&o.Dom.isText(n)&&0!==a.startOffset)||e&&(l||t!==i.KEY_DOWN&&o.Dom.isText(n)&&n.nodeValue&&a.startOffset!==n.nodeValue.length))return}return r}(e,n);if(!r)return;let c=e.getInstance(a.Table,e.o),u=o.Dom.closest(r,"table",e.editor),d=null,h=n===i.KEY_LEFT||t.shiftKey,f=()=>(0,s.call)(h?o.Dom.prev:o.Dom.next,r,o.Dom.isCell,u);switch(n){case i.KEY_TAB:case i.KEY_LEFT:(d=f())||(c.appendRow(u,!!h&&o.Dom.first(u,e=>o.Dom.isTag(e,"tr")),!h),d=f());break;case i.KEY_UP:case i.KEY_DOWN:{let e=c.formalMatrix(u),[t,o]=c.formalCoordinate(u,r);n===i.KEY_UP?void 0!==e[t-1]&&(d=e[t-1][o]):void 0!==e[t+1]&&(d=e[t+1][o])}}if(d){if(e.e.fire("hidePopup hideResizer"),d.firstChild)n===i.KEY_TAB?e.s.select(d,!0):e.s.setCursorIn(d,n===i.KEY_RIGHT||n===i.KEY_DOWN);else{let t=e.createInside.element("br");o.Dom.append(d,t),e.s.setCursorBefore(t)}return e.synchronizeValues(),!1}})})},40329:function(e,t,n){var i=n(82758),o=n(22732),r=n(21537),s=n(43555),a=n(12153),l=n(6441),c=n(6091);l.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},a.Icon.set("table",c.default),l.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:(e,t,n,a)=>{let l;e.editor.normalize();let c=e.history.snapshot.make(),u=a.control,d=u.data&&u.data.rows?u.data.rows:10,h=u.data&&u.data.cols?u.data.cols:10,f=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!e.o.table.useExtraClassesOptions)return"";let t=[];if(u.data){let e=u.data.classList;Object.keys(e).forEach(n=>{t.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${n}" type="checkbox"/>${e[n]}</label>`)})}return t.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> × <span>1</span></label></form>'),[p,m]=(l=[],o.Dom.each(f,e=>{o.Dom.isTag(e,"span")&&l.push(e)}),l),g=o.Dom.first(f,e=>o.Dom.isHTMLElement(e)&&e.classList.contains("jodit-form__container")),v=o.Dom.first(f,e=>o.Dom.isHTMLElement(e)&&e.classList.contains("jodit-form__options")),b=[],y=d*h;(0,s.attr)(g,{role:"grid",ariaLabel:"Table size",ariaRowcount:d,ariaColcount:h});for(let t=0;t<y;t+=1)if(!b[t]){let n=Math.floor(t/h)+1,i=t%h+1;b.push(e.c.element("span",{dataIndex:t,role:"gridcell",tabindex:0===t?0:-1,ariaLabel:`${n} by ${i}`}))}let w=e=>{let t=parseInt((0,s.attr)(e,"-index")||"0",10),n=Math.ceil((t+1)/h),i=t%h+1;for(let e=0;e<b.length;e+=1)i>=e%h+1&&n>=Math.ceil((e+1)/h)?b[e].className="jodit_hovered":b[e].className="";m.textContent=i.toString(),p.textContent=n.toString()},S=t=>{let i=parseInt((0,s.attr)(t,"-index")||"0",10),a=Math.ceil((i+1)/h),l=i%h+1,u=e.createInside,d=u.element("tbody"),f=u.element("table");o.Dom.append(f,d);let p=null,m,g;for(let e=1;a>=e;e+=1){m=u.element("tr");for(let e=1;e<=l;e+=1)g=u.element("td"),p||(p=g),(0,r.css)(g,"width",(100/l).toFixed(4)+"%"),o.Dom.append(g,u.element("br")),o.Dom.append(m,u.text("\n")),o.Dom.append(m,u.text(" ")),o.Dom.append(m,g);o.Dom.append(d,u.text("\n")),o.Dom.append(d,m)}(0,r.$$)("input[type=checkbox]:checked",v).forEach(e=>{e.value.split(/[\s]+/).forEach(e=>{f.classList.add(e)})}),e.s.restore(),e.s.removeMarkers(),e.editor.normalize(),e.history.snapshot.restore(c);let b=o.Dom.furthest(e.s.current(),o.Dom.isBlock,e.editor);if(b&&o.Dom.isEmpty(b))o.Dom.replace(b,f,void 0,!1,!0);else if(b){let t=u.text("\n");if(e.o.table.splitBlockOnInsertTable){let n=e.s.range;n.collapse(!1),n.insertNode(t),n.collapse(!1),e.s.selectRange(n);let i=e.s.splitSelection(b,t);i?o.Dom.after(i,f):o.Dom.after(b,f)}else o.Dom.after(b,t),o.Dom.after(t,f)}else e.s.insertNode(f,!1);p&&(e.s.setCursorIn(p),(0,r.scrollIntoViewIfNeeded)(p,e.editor,e.ed)),n()};if(e.e.on(g,"mousemove",e=>{o.Dom.isTag(e.target,"span")&&w(e.target)}).on(g,"touchstart mousedown",e=>{o.Dom.isTag(e.target,"span")&&(e.preventDefault(),e.stopImmediatePropagation(),S(e.target))}).on(g,"keydown",e=>{if(!o.Dom.isTag(e.target,"span"))return;if(e.key===i.KEY_ENTER){e.preventDefault(),e.stopImmediatePropagation(),S(e.target);return}if(e.key===i.KEY_ESC){e.preventDefault(),e.stopImmediatePropagation(),n();return}let t=parseInt((0,s.attr)(e.target,"-index")||"0",10),r=Math.floor(t/h),a=t%h,l=t;switch(e.key){case i.KEY_LEFT:l=a>0?t-1:t;break;case i.KEY_RIGHT:l=a<h-1?t+1:t;break;case i.KEY_UP:l=r>0?t-h:t;break;case i.KEY_DOWN:l=r<d-1?t+h:t;break;default:return}e.preventDefault(),e.stopImmediatePropagation(),l!==t&&(b[t].tabIndex=-1,b[l].tabIndex=0,b[l].focus(),w(b[l]))}),a&&a.parentElement){for(let t=0;t<d;t+=1){let n=e.c.div();(0,s.attr)(n,"role","row");for(let e=0;e<h;e+=1)o.Dom.append(n,b[t*h+e]);o.Dom.append(g,n)}b[0]&&(b[0].className="hovered")}return f},tooltip:"Insert table"}},43003:function(e,t,n){var i=n(580);n(40329),i.pluginSystem.add("table",function(e){e.registerButton({name:"table",group:"insert"})})},6091:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '},14984:function(e,t,n){var i=n(21537),o=n(62843),r=n(2525),s=n(12153),a=n(6441),l=n(92762),c=n(37775);a.Config.prototype.video={parseUrlToVideoEmbed:i.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},s.Icon.set("video",c.default),a.Config.prototype.controls.video={popup:(e,t,n)=>{let s=new r.UIForm(e,[new r.UIBlock(e,[new r.UIInput(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>s.submit())])]),a=new r.UIForm(e,[new r.UIBlock(e,[new r.UITextArea(e,{name:"code",required:!0,label:"Embed code"})]),new r.UIBlock(e,[(0,o.Button)(e,"","Insert","primary").onAction(()=>a.submit())])]),c=[],u=t=>{e.s.restore(),e.s.insertHTML(t),n()};return e.s.save(),c.push({icon:"link",name:"Link",content:s.container},{icon:"source",name:"Code",content:a.container}),s.onSubmit(t=>{var n,o,r,s;u((0,i.call)(null!=(o=null==(n=e.o.video)?void 0:n.parseUrlToVideoEmbed)?o:i.convertMediaUrlToVideoEmbed,t.url,{width:null==(r=e.o.video)?void 0:r.defaultWidth,height:null==(s=e.o.video)?void 0:s.defaultHeight}))}),a.onSubmit(e=>{u(e.code)}),(0,l.TabsWidget)(e,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},26551:function(e,t,n){var i=n(580);n(14984),i.pluginSystem.add("video",function(e){e.registerButton({name:"video",group:"media"})})},37775:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> '},96967:function(e,t,n){n(6441).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},72253:function(e,t,n){var i=n(65478),o=n(22732),r=n(580),s=n(70799),a=n(50911);n(96967);var l=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};class c extends a.Plugin{afterInit(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(e){e.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:e}=this;if(!e.isEditorMode())return;let t=e.editor.firstChild,n=!1;for(;t;){if(t=function(e,t){let n=e,i=e;do if(o.Dom.isElement(i)&&o.Dom.isLeaf(i)&&!o.Dom.isList(i.parentElement)){let e=o.Dom.findNotEmptySibling(i,!1);o.Dom.isTag(n,"ul")?o.Dom.append(n,i):n=o.Dom.wrap(i,"ul",t.createInside),i=e}else break;while(i);return n}(t,e),this.isSuitableStart(t)){n||e.s.save(),n=!0;let i=e.createInside.element(e.o.enter);for(o.Dom.before(t,i);t&&this.isSuitable(t);){let e=t.nextSibling;o.Dom.append(i,t),t=e}i.normalize(),t=i}t=t&&t.nextSibling}n&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}preprocessInput(){let{jodit:e}=this,t="afterInit"===e.e.current;if(!e.isEditorMode()||e.editor.firstChild||!e.o.wrapNodes.emptyBlockAfterInit&&t)return;let n=e.createInside.element(e.o.enter),i=e.createInside.element("br");o.Dom.append(n,i),o.Dom.append(e.editor,n),(e.s.isFocused()||"backSpaceAfterDelete"===e.e.current)&&e.s.setCursorBefore(i),e.e.fire("internalChange")}constructor(){super(...arguments),this.isSuitableStart=e=>{var t;return o.Dom.isText(e)&&(0,s.isString)(e.nodeValue)&&(/[^\s]/.test(e.nodeValue)||(null==(t=e.parentNode)?void 0:t.firstChild)===e&&this.isSuitable(e.nextSibling))||this.isNotWrapped(e)&&!o.Dom.isTemporary(e)},this.isSuitable=e=>o.Dom.isText(e)||this.isNotWrapped(e),this.isNotWrapped=e=>o.Dom.isElement(e)&&!(o.Dom.isBlock(e)||o.Dom.isTag(e,this.j.o.wrapNodes.exclude))}}l([i.autobind],c.prototype,"postProcessSetEditorValue",null),l([i.autobind],c.prototype,"preprocessInput",null),r.pluginSystem.add("wrapNodes",c)},86012:function(e,t,n){n(6441).Config.prototype.showXPathInStatusbar=!0},83671:function(e,t,n){var i=n(82758),o=n(22732),r=n(580),s=n(49055),a=n(29960),l=n(76078),c=n(50911),u=n(80870),d=n(21491);n(86012);class h extends c.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),(0,a.attr)(this.container,"role","list");let e=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===i.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=i.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("pointerup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",e),e(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),o.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(e,t)=>(this.menu||(this.menu=new u.ContextMenu(this.j)),this.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===this.j.editor?"Clear":"Remove",exec:()=>{e!==this.j.editor?o.Dom.safeRemove(e):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(e)}}]),!1),this.onSelectPath=(e,t)=>{this.j.s.focus();let n=(0,a.attr)(t.target,"-path")||"/";if("/"===n)return this.j.execCommand("selectall"),!1;try{let e=this.j.ed.evaluate(n,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(e)return this.j.s.select(e),!1}catch(e){}return this.j.s.select(e),!1},this.tpl=(e,t,n,i)=>{let o=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${t}" title="${i}" tabindex="-1"'>${(0,s.trim)(n)}</a></span>`),r=o.firstChild;return this.j.e.on(r,"click",this.onSelectPath.bind(this,e)).on(r,"contextmenu",this.onContext.bind(this,e)),o},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,d.makeButton)(this.j,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({name:"selectall"},this.j.o.controls.selectall)),this.selectAllButton.state.size="tiny",this.container&&o.Dom.prepend(this.container,this.selectAllButton.container)},this.calcPathImd=()=>{if(this.isDestructed)return;let e=this.j.s.current();if(this.container&&(this.container.innerHTML=i.INVISIBLE_SPACE),e){let t,n,i;o.Dom.up(e,e=>{e&&this.j.editor!==e&&!o.Dom.isText(e)&&!o.Dom.isComment(e)&&(t=e.nodeName.toLowerCase(),n=(0,l.getXPathByElement)(e,this.j.editor).replace(/^\//,""),i=this.tpl(e,n,t,this.j.i18n("Select %s",t)),this.container&&o.Dom.prepend(this.container,i))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}}r.pluginSystem.add("xpath",h)},78173:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},16260:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},37663:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},51036:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},31554:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> '},18309:function(e,t){t.default='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> '},99762:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> '},7903:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> '},58032:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> '},52507:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> '},43478:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> '},60097:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> '},49155:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> '},17555:function(e,t,n){n.r(t),n.d(t,{angle_down:function(){return i.default},angle_left:function(){return o.default},angle_right:function(){return r.default},angle_up:function(){return s.default},bin:function(){return a.default},cancel:function(){return l.default},center:function(){return c.default},check:function(){return u.default},chevron:function(){return d.default},dots:function(){return h.default},eye:function(){return f.default},file:function(){return p.default},folder:function(){return m.default},info_circle:function(){return g.default},left:function(){return v.default},lock:function(){return b.default},ok:function(){return y.default},pencil:function(){return w.default},plus:function(){return S.default},resize_handler:function(){return _.default},right:function(){return k.default},save:function(){return C.default},settings:function(){return E.default},unlock:function(){return I.default},update:function(){return D.default},upload:function(){return T.default},valign:function(){return j.default}});var i=n(78173),o=n(16260),r=n(37663),s=n(51036),a=n(31554),l=n(18309),c=n(99762),u=n(7903),d=n(58032),h=n(52507),f=n(43478),p=n(60097),m=n(49155),g=n(17176),v=n(57882),b=n(58908),y=n(24829),w=n(4038),S=n(45575),_=n(84858),k=n(445),C=n(36886),E=n(10766),I=n(33651),D=n(20362),T=n(12202),j=n(80152)},17176:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> '},57882:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},58908:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> '},24829:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> '},4038:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> '},45575:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '},84858:function(e,t){t.default='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> '},445:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},36886:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> '},10766:function(e,t){t.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> '},33651:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> '},20362:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> '},12202:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> '},80152:function(e,t){t.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> '},31356:function(e,t,n){n.d(t,{ListReconciler:function(){return i}});class i{static reconcile(e,t,n){let{getId:i,isEqual:o=(e,t)=>i(e)===i(t),preserveOrder:r=!0}=n,s=new Map,a=new Map;e.forEach((e,t)=>{let n=i(e);s.set(n,e),a.set(n,t)});let l=new Map,c=new Map;t.forEach((e,t)=>{let n=i(e);l.set(n,e),c.set(n,t)});let u=[],d=[],h=[],f=[];return t.forEach((e,t)=>{let n=i(e),l=s.get(n);l?!o(l,e)||r&&a.get(n)!==t?d.push({oldItem:l,newItem:e,index:r?t:a.get(n)}):f.push(l):u.push(e)}),e.forEach(e=>{let t=i(e);l.has(t)||h.push(e)}),{toCreate:u,toUpdate:d,toRemove:h,unchanged:f}}static applyResult(e,t,n={}){t.toRemove.forEach(t=>{let i=e.indexOf(t);if(-1!==i){var o;null==(o=n.onRemove)||o.call(n,t,i),e.splice(i,1)}}),t.toUpdate.forEach(({oldItem:t,newItem:i,index:o})=>{let r=e.indexOf(t);if(-1!==r){var s;null==(s=n.onUpdate)||s.call(n,t,i,o),e[r]=i}}),t.toCreate.forEach(t=>{var i;null==(i=n.onCreate)||i.call(n,t,e.length),e.push(t)})}}},2692:function(e,t,n){n.d(t,{JoditPro:function(){return l}});var i=n(77688),o=n(82758),r=n(63799),s=n(41180),a=n(86019);class l extends a.Jodit{static make(e,t){return new this(e,t)}beforeInitHook(){if(o.IS_PROD&&!o.IS_TEST&&this.o.loadExternalConfig)return(0,r.appendScriptAsync)(this,this.basePath+"config.js")}afterInitHook(){(0,i._)(function*(){if((yield this.e.fire("checkReserve",location.host))!=="normal"){if(this.isInDestruct)return;let e=this.c.div("",'Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>');o.IS_TEST||o.IS_PROD,(0,s.css)(e,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(e)}}).call(this).catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+o.APP_VERSION}}},49934:function(e,t,n){n.d(t,{autocomplete:function(){return g}});var i=n(77688),o=n(82749),r=n(56075),s=n(31635);n(53586);var a=n(83725),l=n(64199),c=n(82758),u=n(65478),d=n(2748),h=n(21537),f=n(50911),p=n(56917),m=n(2692);class g extends f.Plugin{get list(){let e=new a.Autocomplete(this.jodit);return e.setDisplayMode(this.jodit.o.autocomplete.displayMode),e}get popup(){let e=new p.Popup(this.jodit);return e.setMod("padding",!1),e.setContent(this.list.container),"inline"===this.jodit.o.autocomplete.displayMode&&e.setMod("autocomplete-inline",!0),this.jodit.e.on(e,"beforeClose",()=>{this.list.currentSelection=0}),e}afterInit(e){e.e.on("select.autocomplete",t=>{let n=t.value;(0,h.isFunction)(t.insertValueRenderer)&&(n=t.insertValueRenderer(t)),d.Dom.isNode(n)||(n=e.createInside.fromHTML(n)),(0,l.replaceTextLeftOfCursorAfterSpace)(e.s.range,n),this.j.s.setCursorAfter(n),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(e){this.sources.push(e)}unregisterAutocompleteSource(e){let t=this.sources.indexOf(e);-1!==t&&this.sources.splice(t,1)}static isControlKey(e){return e===c.KEY_DOWN||e===c.KEY_UP||e===c.KEY_ENTER||e===c.KEY_TAB}onKeyDown(e){return(0,i._)(function*(){var t,n;if(e.key===c.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:i}=this.j;if(g.isControlKey(e.key)||!i.isInsideArea||!i.isCollapsed)return;let o=(null==(t=this.j.s.sel)?void 0:t.rangeCount)?null==(n=this.j.s.sel)?void 0:n.getRangeAt(0):null,r=o&&(0,l.getTextLeftOfCursor)(o).split(" ").pop();if(r&&(0,h.trim)(r).length){let e=yield this.onAutoComplete(r);if(!this.isQueryStillAnchored(r)){this.popup.isOpened&&this.popup.close();return}if(e.length)return this.openPopup(e)}this.popup.isOpened&&this.popup.close()}).call(this)}isQueryStillAnchored(e){var t,n;let{s:i}=this.j;if(!i.isInsideArea||!i.isCollapsed)return!1;let o=(null==(n=i.sel)?void 0:n.rangeCount)?i.sel.getRangeAt(0):null;return!!o&&!!o.startContainer.isConnected&&(null!=(t=(0,l.getTextLeftOfCursor)(o).split(" ").pop())?t:"").startsWith(e)}onKeyControlDown(e){if(this.popup.isOpened&&g.isControlKey(e.key)){switch(e.key){case c.KEY_DOWN:this.list.selectNext();break;case c.KEY_UP:this.list.selectPrevious();break;case c.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(e.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}onAutoComplete(e){return(0,i._)(function*(){let t=[];return yield Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(n=>(0,i._)(function*(){t.push(...yield this.resolveFeed(e,n))}).call(this))),t}).call(this)}resolveFeed(e,t,n){return(0,i._)(function*(){let i;if((0,h.isPromise)(t)&&(t=yield t),(0,h.isFunction)(t))i=yield t(e);else if((0,h.isArray)(t)){let n=t,{isMatchedQuery:o}=this.j.o.autocomplete;i=n.filter(t=>(0,h.isString)(t)?o(e,t):o(e,t.value)).map(e=>(0,h.isString)(e)?{title:e,value:e}:e)}else i=yield this.resolveFeed(e,t.feed,t);if(this.j.isDestructed)return[];if(i&&(0,h.isArray)(i)){let{itemRenderer:e,insertValueRenderer:t,maxItems:o}=this.j.o.autocomplete;return(i=i.map(i=>{var o,s;return(0,r._)({itemRenderer:null!=(o=null==n?void 0:n.itemRenderer)?o:e,insertValueRenderer:null!=(s=null==n?void 0:n.insertValueRenderer)?s:t},i)})).slice(0,o)}return[]}).call(this)}openPopup(e){this.list.build(e),this.popup.open(()=>{let{j:e}=this,t=e.s.range.getBoundingClientRect(),n={left:t.left,top:t.top,height:t.height,width:t.width};if(e.o.iframe&&e.iframe){let t=(0,h.position)(e.iframe,e);n.top+=t.top,n.left+=t.left}return n})}beforeDestruct(e){e.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...e){super(...e),(0,o._)(this,"hasStyle",!m.JoditPro.fatMode),(0,o._)(this,"sources",[])}}(0,o._)(g,"requires",["enter","license"]),(0,s.__decorate)([u.cache],g.prototype,"list",null),(0,s.__decorate)([u.cache],g.prototype,"popup",null),(0,s.__decorate)([u.autobind],g.prototype,"registerAutocompleteSource",null),(0,s.__decorate)([u.autobind],g.prototype,"unregisterAutocompleteSource",null),(0,s.__decorate)([(0,u.debounce)()],g.prototype,"onKeyDown",null),(0,s.__decorate)([u.autobind],g.prototype,"onKeyControlDown",null),(0,s.__decorate)([u.autobind],g.prototype,"onEnter",null),(0,s.__decorate)([u.autobind],g.prototype,"onAutoComplete",null),(0,s.__decorate)([u.autobind],g.prototype,"resolveFeed",null),m.JoditPro.plugins.add("autocomplete",g)},53586:function(e,t,n){n(6441).Config.prototype.autocomplete={displayMode:"list",sources:[],maxItems:50,isMatchedQuery:(e,t)=>0===t.toLowerCase().indexOf(e.toLowerCase()),itemRenderer:e=>{var t;return null!=(t=e.title)?t:e.value},insertValueRenderer:e=>e.value+" "}},64199:function(e,t,n){n.d(t,{getTextLeftOfCursor:function(){return o},replaceTextLeftOfCursorAfterSpace:function(){return r}});var i=n(2748);function o(e){var t,n,o,r;let{startContainer:s,startOffset:a}=e;if(i.Dom.isText(s))return null!=(t=null==(n=s.nodeValue)?void 0:n.substr(0,a))?t:"";let l=s.childNodes[a];if(!l)return"";if(i.Dom.isText(l))return null!=(o=l.nodeValue)?o:"";let c=i.Dom.findNotEmptyNeighbor(l,!0,s);return i.Dom.isText(c)&&null!=(r=l.nodeValue)?r:""}function r(e,t){var n,o,r;let{startContainer:s,startOffset:a}=e;if(!i.Dom.isText(s)&&(s=s.childNodes[a-1],i.Dom.isText(s)&&(a=null!=(n=null==(o=s.nodeValue)?void 0:o.length)?n:0)),i.Dom.isText(s)){let n=null!=(r=s.nodeValue)?r:"",i=n.substring(0,a),o=n.substring(a),l=i.split(" ");l[l.length-1]="";let c=l.join(" ");s.nodeValue=c+o,e.setStart(s,c.length),e.insertNode(t);return}}},83725:function(e,t,n){n.d(t,{Autocomplete:function(){return c}});var i=n(82749),o=n(31635),r=n(31356),s=n(35934),a=n(65478),l=n(62405);class c extends l.UIGroup{className(){return"Autocomplete"}setDisplayMode(e){this.displayMode=e,this.setMod("displayMode",e)}onChangeSelection(){this.elements.forEach(e=>{e.setMod("active",!1),e.showShortcut(!1)});let e=this.elements[this.currentSelection];e&&(e.setMod("active",!0),"inline"===this.displayMode&&e.showShortcut(!0),e.container.scrollIntoView(!1))}build(e){var t;let n=null==(t=this.elements[this.currentSelection])?void 0:t.item.value,i=e=>e.value,o=r.ListReconciler.reconcile(this.__previousList,e,{getId:i}),a=new Set;o.toRemove.forEach(e=>{let t=i(e);if(a.has(t))return;a.add(t);let n=this.itemsMap.get(t);n&&(-1!==this.elements.indexOf(n)&&(this.remove(n),n.destruct()),this.itemsMap.delete(e.value))}),o.toCreate.forEach(t=>{let n=i(t);if(a.has(n))return;a.add(n);let o=new s.AutocompleteItem(this.jodit,t,t=>{this.currentSelection=e.findIndex(e=>i(e)===t),this.select()});this.itemsMap.set(n,o);let r=e.indexOf(t);this.append(o,r)}),o.toUpdate.forEach(({newItem:e,index:t})=>{let n=i(e);if(a.has(n))return;a.add(n);let o=this.itemsMap.get(n);o&&(o.item=e,this.elements.indexOf(o)!==t&&t<this.elements.length&&(this.remove(o),this.append(o,t)))});let l=this.currentSelection;this.currentSelection=Math.max(0,e.findIndex(e=>i(e)===n)),l===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...e]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...e){super(...e),(0,i._)(this,"elements",[]),(0,i._)(this,"currentSelection",-1),(0,i._)(this,"displayMode","list"),(0,i._)(this,"__previousList",[]),(0,i._)(this,"itemsMap",new Map)}}(0,o.__decorate)([(0,a.watch)("currentSelection")],c.prototype,"onChangeSelection",null),c=(0,o.__decorate)([a.component],c)},35934:function(e,t,n){n.d(t,{AutocompleteItem:function(){return l}});var i=n(82749),o=n(31635),r=n(65478),s=n(27613),a=n(48538);class l extends a.UIElement{className(){return"AutocompleteItem"}showShortcut(e){if(e&&!this.shortcutElm){let e=this.j.c.element("span");e.className="jodit-autocomplete-item__shortcut",e.innerText="tab",this.container.appendChild(e),this.shortcutElm=e}else!e&&this.shortcutElm&&(this.shortcutElm.remove(),this.shortcutElm=null)}onClickPrevent(e){e.preventDefault(),e.stopPropagation()}onClickHandler(){this.onClick(this.value)}constructor(e,t,n){super(e),(0,i._)(this,"item",void 0),(0,i._)(this,"onClick",void 0),(0,i._)(this,"value",void 0),(0,i._)(this,"shortcutElm",void 0),this.item=t,this.onClick=n,this.value="",this.shortcutElm=null;const{container:o}=this;if(this.value=t.value,(0,s.isFunction)(t.itemRenderer)){const e=t.itemRenderer(t);(0,s.isString)(e)?o.innerHTML=e:o.appendChild(e)}else{var r;o.innerText=null!=(r=t.title)?r:t.value}}}(0,o.__decorate)([(0,r.watch)("container:mousedown container:touchstart")],l.prototype,"onClickPrevent",null),(0,o.__decorate)([(0,r.watch)("container:click")],l.prototype,"onClickHandler",null),l=(0,o.__decorate)([r.component],l)},12373:function(e,t,n){n(25187),n(58858),n(21246),n(49934),n(3115)},38882:function(e,t,n){n.d(t,{isAllowedSubdomain:function(){return o},validateLicense:function(){return function e(t,n){var i;let r;if(i=t=String(t).toUpperCase().replace(/[‐-―−]/g,"-").replace(/\s+/g,"").replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(i)||o(n))return!0;let s=(r=n.split(".")).map(e=>{let t=e[0];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)+1):t}).concat(r.map(e=>{let t=e[e.length-1];return"string"==typeof t&&t.charCodeAt(0)?String.fromCharCode(t.charCodeAt(0)-1):t})).map(e=>null!=e&&/\w/.test(e)?e:"r"),a=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((e,t)=>e.replace("{part}",s[t]||"[R-T]"));if(RegExp(`^${a.join("-")}$`,"i").test(t))return!0;if(t.substring(12,13)!==(typeof!n).toUpperCase()[5])return!1;let l=n.split(".");return l.shift(),l.length>1&&e(t,l.join("."))}}});let i=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function o(e){return i.some(t=>new RegExp(t.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(e))}},21246:function(e,t,n){n.d(t,{license:function(){return d}});var i=n(77688),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(e){return new d(e)}afterInit(e){this.j.e.on("checkReserve",e=>(0,i._)(function*(){let t=this.j.o.license;if((0,o.isAllowedSubdomain)(e))return"normal";if(!t||!(0,l.isString)(t))return"";let n=(0,o.validateLicense)(t,e);return n||r.IS_TEST||(n=yield this.validateLicenseRemote(t,e)),n?"normal":""}).call(this))}beforeDestruct(e){}validateLicenseRemote(e,t){return(0,i._)(function*(){let n="validateJoditLicenseRemote",i=this.j.storage.get(n);if(i&&(0,o.validateLicense)(i,t))return!0;let r=document.createElement("script");return r.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(t)}`,this.j.async.promise(e=>{let i=!1,l=t=>{i||(i=!0,s.Dom.safeRemove(r),e(t))};window.onJoditResolveKeyCode=e=>{if((0,a.isBoolean)(e))return l(e);(0,o.validateLicense)(e,t)?(this.j.storage.set(n,e),l(!0)):l(!1)},r.onerror=()=>l(!0),document.body.appendChild(r),this.j.async.setTimeout(()=>l(!0),5e3)})}).call(this)}}u.JoditPro.plugins.add("license",d)},20823:function(e,t,n){n.d(t,{cleanStyles:function(){return o}});let i={"text-justify":["inter-ideograph"]};function o(e){return e.isElement&&e.attributes.style&&Object.keys(i).forEach(t=>{let n=i[t];if(e.style.has(t)){var o;n.includes(null==(o=e.style.get(t))?void 0:o.toString())&&e.style.set(t,null)}}),e}},47064:function(e,t,n){n.d(t,{clearAttributes:function(){return o}});let i=["cellspacing","cellpadding","border","v:shapes","o:spid"];function o(e){if(/^OLE_LINK\d+$/.test(e.attributes.name)&&(e.attributes.name=null,0===e.length))return e.remove(),null;for(let t of("_GoBack"===e.attributes.name&&(e.attributes.name=null),i))e.attributes[t]&&(e.attributes[t]=null);return e}},41157:function(e,t,n){n.d(t,{clearClassName:function(){return o}});var i=n(49055);let o=e=>(e.attributes.class&&(e.attributes.class=e.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,i.trim)(e.attributes.class)||(e.attributes.class=null)),e)},53585:function(e,t,n){n.d(t,{convertStyleUnitToPixels:function(){return o}});var i=n(43712);let o=(e,{jodit:t})=>{if(!t.o.pasteFromWord.convertUnitsToPixel)return e;let{style:n}=e;return n.forEach(e=>{let t=n.get(e);t&&n.set(e,t.toString().replace(/\d+(\.\d+)?(pt|cm)/g,e=>(0,i.convertUnitToPx)(e)+"px"))}),e}},80591:function(e,t,n){n.d(t,{convertToList:function(){return l}});var i=n(82758),o=n(10058),r=n(97420),s=n(31269),a=n(43712);function l(e){if((0,r.isPseudoLeaf)(e)){e.name="li",e.style.set("text-indent",null);let h=c(e),f=/[\da-np-zA-NP-Z].?/.test(h)?"ol":"ul",p=function(e,t){for(let t in o.listStyleMap)if(RegExp(t).test(e))return o.listStyleMap[t];return"ol"===t?"decimal":"disc"}(h,f);e.attributes[o.TYPE_KEY]=f,e.attributes[o.STYLE_KEY]=p,(0,s.calcListLevels)(e),function(e){for(;e;){let t=e.previousElement;if(!((0,r.isLeaf)(t)||(0,r.isList)(t)))break;if((0,r.isLeaf)(t)){if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&e.parent&&(0,r.isSameType)(e,e.parent))break;t.append(e);continue}if(e.attributes[o.LEVEL_KEY]<t.attributes[o.LEVEL_KEY]||e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]&&!(0,r.isSameType)(e,t))break;t.append(e)}}(e);let{parent:m}=e;if(!(0,r.isList)(m)||!(0,r.isSameType)(e,m)){var t,n,i,l,u,d;let s,c=(t=e,n=f,i=h,l=p,(s=t.wrap(n)).attributes.start=(0,a.calcStartBySymbol)(i),s.attributes[o.LEVEL_KEY]=t.attributes[o.LEVEL_KEY],s.attributes[o.STYLE_KEY]=t.attributes[o.STYLE_KEY],s.attributes[o.STYLE_VALID_KEY]=t.attributes[o.STYLE_KEY],s.style.set(o.STYLE_CSS_KEY,l),(0,r.isList)(s)&&(null==(u=s.parent)?void 0:u.name)!=="li"&&("disc"===s.style.get(o.STYLE_CSS_KEY)||"decimal"===s.style.get(o.STYLE_CSS_KEY))&&s.style.set(o.STYLE_CSS_KEY,null),s);if((0,r.isList)(m)){c.remove(),null==(d=m.lastElement)||d.append(c)}}}return e}let c=e=>e.textBetween(e=>e.isComment&&/\[if.*supportLists.*]/.test((0,r.html)(e)),e=>e.isComment&&/\[endif]/.test((0,r.html)(e))).replace(/ /g,"").replace((0,i.SPACE_REG_EXP)(),"")},64693:function(e,t,n){n.d(t,{cases:function(){return g}});var i=n(20823),o=n(47064),r=n(41157),s=n(53585),a=n(80591),l=n(98940),c=n(72621),u=n(1580),d=n(18616),h=n(84021),f=n(69994),p=n(76059),m=n(21357);let g=[u.processImage,l.markPageBreakElements,h.removeExtraTags,p.replaceOldTags,o.clearAttributes,a.convertToList,d.processLinks,f.removeInsideComment,s.convertStyleUnitToPixels,r.clearClassName,c.normalizeImageProps,m.removeWidthFromTableCell,i.cleanStyles]},98940:function(e,t,n){n.d(t,{markPageBreakElements:function(){return i}});let i=e=>((e.isElement&&"always"===e.style.get("page-break-before")||"page"===e.style.get("break-before"))&&(e.attributes["jd-safe"]=!0,e.style.add("page-break-before","always"),e.isSingle&&(e.name="div")),e)},72621:function(e,t,n){n.d(t,{normalizeImageProps:function(){return i}});let i=e=>(e.isElement&&"img"===e.name&&(e.attributes.align&&(e.style.add("float",e.attributes.align),e.attributes.align=null),e.attributes.hspace&&(e.style.add("marginLeft",e.attributes.hspace+"px"),e.style.add("marginRight",e.attributes.hspace+"px"),e.attributes.hspace=null)),e)},1580:function(e,t,n){n.d(t,{processImage:function(){return o}});var i=n(21537);let o=(e,t)=>{if(t.rtf&&"#comment"===e.name&&e.attributes.nodeValue&&-1!==e.attributes.nodeValue.indexOf("<v:shape")){t.shapes||(t.shapes={});let n=t.jodit.create.fromHTML(e.attributes.nodeValue);return(0,i.toArray)(n.getElementsByTagName("v:shape")).forEach(e=>{t.shapes[e.id]=e.getAttribute("o:spid")}),e}if("img"!==e.name)return e;if(t.rtf&&e.attributes["v:shapes"]){var n,o;let i=null==(n=t.shapes)?void 0:n[e.attributes["v:shapes"]];if(i){let n=null!=(o=t.imageMap)?o:{};t.imageMap||(t.imageMap=n,r(t.rtf,"i","\\shppict",t.imageMap),r(t.rtf,"s","\\shp{",t.imageMap));let s=n[i.substring(7)];if(s){let t=[],n=s.hex.match(/[0-9a-f]{2}/gi);if(n){for(let e=0;e<n.length;e++){let i=parseInt(n[e],16);t.push(String.fromCharCode(i))}e.attributes.src="data:"+s.type+";base64,"+btoa(t.join(""))}}}}return e};function r(e,t,n,i){for(let o of e.split(n)){let e=o.split("shplid");if(1<e.length){let n,o=e[1],r="";for(let e=0;e<o.length&&!/[{ \r\n\\]/.test(o[e]);e++)r+=o[e];let s=o.split("bliptag");if(s&&s.length<2)continue;let a=null;if(s[0].indexOf("pngblip")?a="image/png":-1!==s[0].indexOf("jpegblip")&&(a="image/jpeg"),!a)continue;let l=s[1].split("}");if(l&&l.length<2)continue;if(2<l.length&&l[0].includes("blipuid"))n=l[1].split(" ");else{if((n=l[0].split(" "))&&n.length<2)continue;n.shift()}i[t+r]={hex:n.join(""),type:a}}}}},18616:function(e,t,n){n.d(t,{processLinks:function(){return i}});let i=(e,t)=>{var n;let i=null!=(n=t.links)?n:{};if(e.attributes.href&&e.attributes.href.match(/#.+$/)&&(i[e.attributes.href.match(/#(.+)$/)[1]]=e),e.attributes.name&&i[e.attributes.name]){let t=i[e.attributes.name];t.attributes.href=t.attributes.href.replace(/.*#(.*)$/,"#$1")}return t.links=i,e}},84021:function(e,t,n){n.d(t,{removeExtraTags:function(){return o}});let i=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function o(e){return"none"===e.style.get("display")||0===e.length&&"span"===e.name||i.has(e.name)?(e.remove(),null):e}},69994:function(e,t,n){n.d(t,{removeInsideComment:function(){return r}});var i=n(99658);let o=0;function r(e){return(e.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,i.html)(e))&&(o++,e.remove()),e.isComment&&o>0&&(0,i.html)(e).includes("[endif]")&&(o=o>0?o-1:0,e.remove()),o&&(e.isText||"img"===e.name&&(!e.attributes.src||/^file:/.test(e.attributes.src))))?(e.remove(),null):e}},76059:function(e,t,n){n.d(t,{replaceOldTags:function(){return o}});let i={i:"em",b:"strong"};function o(e){let{name:t}=e;return t in i&&(e.name=i[t]),e}},21357:function(e,t,n){n.d(t,{removeWidthFromTableCell:function(){return i}});let i=e=>(e.attributes.width&&("th"===e.name||"td"===e.name)&&(e.attributes.width=null),e)},13085:function(e,t,n){n(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},10058:function(e,t,n){n.d(t,{LEVEL_KEY:function(){return i},STYLE_CSS_KEY:function(){return a},STYLE_KEY:function(){return r},STYLE_VALID_KEY:function(){return s},TYPE_KEY:function(){return o},listStyleMap:function(){return l}});let i="jd-list-level",o="jd-list-type",r="jd-list-style-type",s="data-list-style-type",a="list-style-type",l={"\xb7":"disc",o:"circle","\xa7":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}},18594:function(e,t,n){n.d(t,{isLeaf:function(){return s},isList:function(){return r},isPseudoLeaf:function(){return a},isSameType:function(){return l}});var i=n(99658),o=n(10058);function r(e){return!!(e&&("ol"===e.name||"ul"===e.name))}function s(e){return!!(e&&"li"===e.name)}function a(e){return"li"!==e.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(e.attributes.style)||/msolistparagraph/i.test(e.attributes.class)&&!!e.find(e=>e.isComment&&(0,i.html)(e).includes("supportLists")).length}function l(e,t){let n=e.attributes[o.TYPE_KEY],i=e.attributes[o.STYLE_KEY];return t.name===n&&t.attributes[o.STYLE_KEY]===i&&e.attributes[o.LEVEL_KEY]===t.attributes[o.LEVEL_KEY]}},42968:function(e,t,n){n.d(t,{JElement:function(){return u}});var i=n(82749),o=n(99658),r=n(40273),s=n(82758),a=n(2748),l=n(38837);let c=new Set(s.INSEPARABLE_TAGS);class u{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return c.has(this.name)}get length(){return this.children.length}static make(e,t=null){return new u(e,t)}wrap(e){var t;(0,l.assert)(null!=this.parent,"You can't wrap the root element");let n=u.make(document.createElement(e),this.parent),i=null!=(t=this.parent.children.indexOf(this))?t:-1;return -1===i?this.parent.append(n):this.parent.children[i]=n,n.append(this),n}append(e){return(0,l.assert)(e!==this,"Forbidden to add to yourself"),e.remove(),this.children.push(e),e.parent=this,this}get previousElement(){if(!this.parent)return null;let{children:e}=this.parent,t=e.indexOf(this);if(-1!==t){for(let n=t-1;n>=0;n-=1)if(e[n].isElement)return e[n]}return null}get lastElement(){let{children:e}=this;for(let t=e.length-1;t>=0;t-=1)if(e[t].isElement)return e[t];return null}get previous(){var e,t,n;return null!=(e=null!=(t=this.sibling(!1))?t:null==(n=this.parent)?void 0:n.previous)?e:null}get next(){var e,t,n;return null!=(e=null!=(t=this.sibling(!0))?t:null==(n=this.parent)?void 0:n.next)?e:null}sibling(e){if(!this.parent)return null;let{children:t}=this.parent,n=t.indexOf(this);return -1!==n&&t[n+(e?1:-1)]?t[n+(e?1:-1)]:null}forEach(e,t=!1){for(let n of[...this.children])if(!1===e(n)||t&&!1===n.forEach(e,!0))return!1}find(e,t=!0){let n=[];return this.forEach(t=>{e(t)&&n.push(t)},t),n}map(e){return this.children.map(e)}remove(){var e,t;let n=null==(e=this.parent)?void 0:e.children.indexOf(this);return null!=n&&-1!==n&&(null==(t=this.parent)||t.children.splice(n,1)),this}textBetween(e,t){let n=!1,i=[];return this.forEach(r=>{if(!n&&e(r)&&(n=!0),n&&r.isText&&i.push((0,o.html)(r)),n&&t(r))return!1},!0),i.join("")}constructor(e,t){(0,i._)(this,"parent",void 0),(0,i._)(this,"name",void 0),(0,i._)(this,"type",void 0),(0,i._)(this,"attributes",void 0),(0,i._)(this,"style",void 0),(0,i._)(this,"children",void 0),this.parent=t,this.name=e.nodeName.toLowerCase(),this.type=e.nodeType,this.attributes=function(e){let t={};if(a.Dom.isElement(e))for(let n=0,i=e.attributes;n<i.length;n+=1)t[i[n].name]=i[n].value;else t.nodeValue=e.nodeValue;return t}(e),this.style=new r.Style(this.attributes.style),this.children=[],e.childNodes.forEach(e=>this.children.push(u.make(e,this)))}}},97420:function(e,t,n){n.d(t,{JElement:function(){return o.JElement},html:function(){return r.html},innerHTML:function(){return r.innerHTML},isLeaf:function(){return i.isLeaf},isList:function(){return i.isList},isPseudoLeaf:function(){return i.isPseudoLeaf},isSameType:function(){return i.isSameType}});var i=n(18594),o=n(42968),r=n(99658)},99658:function(e,t,n){n.d(t,{html:function(){return s},innerHTML:function(){return l}});var i=n(82758),o=n(87612),r=n(49055);function s(e,t=()=>!0,n=!0,o){switch(!0){case e.isComment:case e.isText:{if(!t(e))return"";let{nodeValue:n}=e.attributes;return e.isComment?`<!--${n}-->`:n}case e.isElement:{let{attributes:i}=e,r=l(e,t,n,o);if(!e.attributes["jd-safe"]&&n&&0===r.replace(/[\n\t]/g,"").length&&!e.isSingle)return"";let s=Object.keys(i).map(e=>"style"===e||null==i[e]||/^jd-/.test(e)?"":`${e}="${c(i[e])}"`).filter(Boolean),{str:u}=e.style,d=c(u(e=>a(e,o)));if(d&&s.push(`style="${d}"`),n&&0===s.length&&["span","a"].includes(e.name))return r;let h=s.length?" "+s.join(" "):"";if(!t(e))return r;return e.isSingle?`<${e.name}${h}/>`:`<${e.name}${h}>${r}</${e.name}>`}default:if(!i.IS_PROD)throw Error("Need implementation for this type")}return""}function a(e,t){if(!t)return!0;if(a.cache.has(t)){var n;let i=null==(n=a.cache.get(t))?void 0:n.get(e);if((0,o.isBoolean)(i))return i}let i=t.some(t=>new RegExp(t).test(e)),r=a.cache.get(t)||new Map;return r.set(e,i),a.cache.set(t,r),i}function l(e,t=()=>!0,n=!0,i){let o=e.map(e=>s(e,t,n,i)).join("");return"p"===e.name&&0===(0,r.trim)(o).length&&(o=" "),o}function c(e){return e.toString().replace(/"/g,""")}a.cache=new WeakMap},40273:function(e,t,n){n.d(t,{Style:function(){return u}});var i=n(82749),o=n(31635),r=n(45219),s=n(70799),a=n(12475),l=n(49055),c=n(43712);class u{get keys(){return Object.keys(this._data)}forEach(e){this.keys.forEach(t=>e(t))}clear(){this._data={}}set(e,t){this._data[e]=t}get(e){var t;return null!=(t=this._data[e])?t:null}has(e){return void 0!==this._data[e]}add(e,t){return this._data=d(this.str()+";"+`${e}:${t}`),this}str(e=e=>!0){let t=Object.keys(this._data).filter(t=>t&&!/^mso-/.test(t)&&e(t)&&null!=this.get(t)),n=e=>(0,s.isString)(e)?/^0[a-z]+$/i.test(e)?"0":e:e.toString();return(["padding","margin"].forEach(e=>{if(this._data[e]){let i=t.indexOf(e),o=(0,c.calcMarginParts)(this._data[e]);["top","right","bottom","left"].forEach((r,s)=>{let a=`${e}-${r}`,l=this._data[a];null!=l&&(t.indexOf(a)<i||n(o[s])===n(l))&&-1!==t.indexOf(a)&&t.splice(t.indexOf(a),1)})}}),t.length)?t.map(e=>`${(0,a.kebabCase)(e)}:${this.get(e)}`).join(";"):""}constructor(e){(0,i._)(this,"_data",void 0),this._data=d(e)}}function d(e){return(function(e){let t={},n=[];for(let i=e.length-1;i>=0;i-=1){let o=e[i][0];t[o]||(t[o]=!0,n.unshift(e[i]))}return n})((null!=e?e:"").replace(/"/g,'"').split(";").filter(Boolean).map(e=>(0,l.trim)(e).split(":").map(l.trim))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}(0,o.__decorate)([r.autobind],u.prototype,"forEach",null),(0,o.__decorate)([r.autobind],u.prototype,"clear",null),(0,o.__decorate)([r.autobind],u.prototype,"set",null),(0,o.__decorate)([r.autobind],u.prototype,"get",null),(0,o.__decorate)([r.autobind],u.prototype,"has",null),(0,o.__decorate)([r.autobind],u.prototype,"add",null),(0,o.__decorate)([r.autobind],u.prototype,"str",null)},51586:function(e,t,n){n.d(t,{applyStylesPro:function(){return l}});var i=n(19606),o=n(2748),r=n(29960),s=n(76078),a=n(97420);function l(e,t,n,c=""){let u=document.createElement("iframe");u.style.display="none",document.body.appendChild(u);try{var d,h;let o=null!=(d=u.contentDocument)?d:null==(h=u.contentWindow)?void 0:h.document;if(!o)return t;o.open(),o.write(t),o.close();let l="jd-style";for(let e=0;e<o.styleSheets.length;e+=1)try{let t=o.styleSheets[e].cssRules;for(let e=0;e<t.length;e+=1)t[e].selectorText&&(0,s.$$)(t[e].selectorText,o.body).forEach(n=>{(0,r.attr)(n,l)||((0,r.attr)(n,l,(0,r.attr)(n,"style")||""),(0,r.attr)(n,"style","")),(0,r.attr)(n,"style",`${(0,r.attr)(n,"style")};${t[e].style.cssText}`)})}catch(e){}return(0,s.$$)(`[${l}]`,o.body).forEach(e=>{(0,r.attr)(e,"style",`${(0,r.attr)(e,"style")};${(0,r.attr)(e,l)}`)}),(0,i.transformWordToHtml)(e,a.JElement.make(o.body),n,c)}finally{o.Dom.safeRemove(u)}}},31269:function(e,t,n){n.d(t,{calcListLevels:function(){return s}});var i=n(43712),o=n(10058),r=n(97420);function s(e){if(void 0!==e.attributes[o.LEVEL_KEY])return;let t=[(0,i.realPixelIndent)(e)],n=[e],s=e.next;for(;s;){if(s.isElement&&!s.attributes[o.LEVEL_KEY]&&(0,r.isPseudoLeaf)(s)){let e=(0,i.realPixelIndent)(s);e&&(t.push(e),n.push(s))}s=s.next}let a=Math.min(...t.filter(e=>e>0)),l=t.map(e=>Math.ceil(e/10));-1!==l.indexOf(0)&&(l=l.map(e=>e+1)),n.forEach((e,t)=>{e.attributes[o.LEVEL_KEY]=l[t],e.style.add("margin-left",`${Math.max((0,i.realPixelIndent)(e)-10*l[t]/a*40,0)}px`)})}},43712:function(e,t,n){let i;function o(e){if(!e)return[0,0,0,0];let t=e.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(t.length){case 2:return[0,1,0,1].map(e=>t[e]);case 3:return[0,1,2,1].map(e=>t[e]);case 4:return[0,1,2,3].map(e=>t[e]);default:return[0,0,0,0].map(e=>t[e])}}function r(e){if("number"==typeof e)return e;if(/%$/.test(e))return 0;i||(Object.assign((i=document.createElement("div")).style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(i),setTimeout(()=>{null==i||i.remove(),i=null}));let t=0>parseFloat(e);t&&(e=e.replace("-","")),i.style.width=e;let n=i.clientWidth;return t?-n:n}function s(e){let{style:t}=e,n=t.keys.filter(e=>/margin/.test(e)),i=Math.max(n.indexOf("margin-left"),n.indexOf("margin")),s=i>0?n[i]:"margin-left";return r("margin"===s?o(t.get("margin"))[3]||0:t.get(s)||0)}function a(e){return/\d.\d/.test(e)?e.split(".").pop()||null:/^\d/.test(e)?(parseInt(e,10)||1).toString():null}n.d(t,{calcMarginParts:function(){return o},calcStartBySymbol:function(){return a},convertUnitToPx:function(){return r},realPixelIndent:function(){return s}})},30717:function(e,t,n){n.d(t,{applyStylesPro:function(){return i.applyStylesPro}});var i=n(51586);n(31269),n(19606)},19606:function(e,t,n){n.d(t,{transformWordToHtml:function(){return s}});var i=n(49055),o=n(64693),r=n(97420);function s(e,t,n,s){let a={jodit:e,rtf:s};return t.forEach(function e(t){if(t){for(let e of o.cases)if(null==(t=e(t,a)))break;null==t||t.forEach(e)}}),n&&t.forEach(e=>{e.style.clear()},!0),(0,i.trim)((0,r.innerHTML)(t,e=>!e.isComment,!0,e.o.pasteFromWord.allowedStyleProps))}},58858:function(e,t,n){n.r(t),n.d(t,{PasteFromWordPro:function(){return u}});var i=n(82749);n(13085);var o=n(30717),r=n(82758),s=n(70799),a=n(117),l=n(31571),c=n(2692);class u extends l.pasteFromWord{insertFromWordByType(e,t,n,i){if(this.j.o.pasteFromWord.enable&&(n===r.INSERT_AS_HTML||n===r.INSERT_AS_TEXT)){if(t=(0,o.applyStylesPro)(this.j,t,n===r.INSERT_AS_TEXT,i.rtf),this.j.o.beautifyHTML){var l;let e=null==(l=this.j.events)?void 0:l.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e)}(0,a.pasteInsertHtml)(e,this.j,t);return}return super.insertFromWordByType(e,t,n,i)}}(0,i._)(u,"requires",["license"]),c.JoditPro.plugins.remove("pasteFromWord"),c.JoditPro.plugins.add("pasteFromWordPro",u)},77688:function(e,t,n){function i(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){n(e);return}a.done?t(l):Promise.resolve(l).then(i,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var s=e.apply(t,n);function a(e){i(s,o,r,a,l,"next",e)}function l(e){i(s,o,r,a,l,"throw",e)}a(void 0)})}}n.d(t,{_:function(){return o}})},82749:function(e,t,n){n.d(t,{_:function(){return i}});function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},56075:function(e,t,n){n.d(t,{_:function(){return o}});var i=n(82749);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){(0,i._)(e,t,n[t])})}return e}},31635:function(e,t,n){function i(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}n.d(t,{__decorate:function(){return i}}),"function"==typeof SuppressedError&&SuppressedError}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e].call(n.exports,n,n.exports,s),n.exports}s.m=o,e=[],s.O=function(t,n,i,o){if(n){o=o||0;for(var r=e.length;r>0&&e[r-1][2]>o;r--)e[r]=e[r-1];e[r]=[n,i,o];return}for(var a=1/0,r=0;r<e.length;r++){for(var n=e[r][0],i=e[r][1],o=e[r][2],l=!0,c=0;c<n.length;c++)(!1&o||a>=o)&&Object.keys(s.O).every(function(e){return s.O[e](n[c])})?n.splice(c--,1):(l=!1,o<a&&(a=o));if(l){e.splice(r--,1);var u=i();void 0!==u&&(t=u)}}return t},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t={521:0},s.O.j=function(e){return 0===t[e]},n=function(e,n){var i,o,r=n[0],a=n[1],l=n[2],c=0;if(r.some(function(e){return 0!==t[e]})){for(i in a)s.o(a,i)&&(s.m[i]=a[i]);if(l)var u=l(s)}for(e&&e(n);c<r.length;c++)o=r[c],s.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return s.O(u)},(i=self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).forEach(n.bind(null,0)),i.push=n.bind(null,i.push.bind(i));var a={};s.r(a),s.d(a,{Jodit:function(){return c.JoditPro}}),s(12373);var l=s(31356),c=s(2692);return c.JoditPro.plugins.add("poweredByJodit",function(){}),c.JoditPro.modules.ListReconciler=l.ListReconciler,a=s.O(a)}()});
|