jodit-pro 4.13.4 → 4.13.7
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.css +1 -1
- package/es2015/jodit.fat.min.js +10 -10
- package/es2015/jodit.js +19 -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 +4 -1
- package/es2015/plugins/finder/finder.js +503 -112
- package/es2015/plugins/finder/finder.min.css +1 -1
- package/es2015/plugins/finder/finder.min.js +7 -7
- 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 +29 -11
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +21 -21
- 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.css +1 -1
- package/es2018/plugins/finder/finder.min.js +13 -13
- 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 +2 -2
- 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.css +1 -1
- package/es2021/jodit.fat.min.js +20 -20
- package/es2021/jodit.js +19 -5
- package/es2021/jodit.min.js +4 -4
- 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 +4 -1
- package/es2021/plugins/finder/finder.js +501 -112
- package/es2021/plugins/finder/finder.min.css +1 -1
- package/es2021/plugins/finder/finder.min.js +13 -13
- 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 +29 -11
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +4 -4
- 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.css +1 -1
- package/es2021.en/jodit.fat.min.js +11 -11
- package/es2021.en/jodit.js +19 -5
- package/es2021.en/jodit.min.js +4 -4
- 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 +4 -1
- package/es2021.en/plugins/finder/finder.js +491 -110
- package/es2021.en/plugins/finder/finder.min.css +1 -1
- package/es2021.en/plugins/finder/finder.min.js +13 -13
- 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 +29 -11
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +4 -4
- 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.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +19 -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 +4 -1
- package/es5/plugins/finder/finder.js +691 -116
- package/es5/plugins/finder/finder.min.css +1 -1
- package/es5/plugins/finder/finder.min.js +2 -2
- 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 +30 -12
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
- 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/finder/browser.d.ts +21 -3
- package/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/finder/config.js +1 -1
- package/esm/plugins/finder/helpers/context-menu.d.ts +6 -0
- package/esm/plugins/finder/helpers/context-menu.js +1 -1
- package/esm/plugins/finder/helpers/data-provider.d.ts +26 -0
- package/esm/plugins/finder/helpers/data-provider.js +1 -0
- package/esm/plugins/finder/helpers/helpers.d.ts +27 -0
- package/esm/plugins/finder/helpers/helpers.js +1 -1
- package/esm/plugins/finder/helpers/persistent-store.d.ts +13 -8
- package/esm/plugins/finder/helpers/persistent-store.js +1 -1
- package/esm/plugins/finder/interface.d.ts +24 -1
- package/esm/plugins/finder/langs/de.d.ts +4 -0
- package/esm/plugins/finder/langs/de.js +1 -1
- package/esm/plugins/finder/langs/ru.d.ts +4 -0
- package/esm/plugins/finder/langs/ru.js +1 -1
- package/esm/plugins/finder/ui/header/header.d.ts +7 -1
- package/esm/plugins/finder/ui/header/header.js +1 -1
- package/esm/plugins/finder/ui/panel/panel.d.ts +5 -0
- package/esm/plugins/finder/ui/panel/panel.js +2 -2
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +5 -0
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +2 -2
- package/esm/plugins/image-editor-pro/adapter.js +1 -1
- package/esm/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/package.json +1 -1
- package/types/plugins/finder/browser.d.ts +21 -3
- package/types/plugins/finder/helpers/context-menu.d.ts +6 -0
- package/types/plugins/finder/helpers/data-provider.d.ts +26 -0
- package/types/plugins/finder/helpers/helpers.d.ts +27 -0
- package/types/plugins/finder/helpers/persistent-store.d.ts +13 -8
- package/types/plugins/finder/interface.d.ts +24 -1
- package/types/plugins/finder/langs/de.d.ts +4 -0
- package/types/plugins/finder/langs/ru.d.ts +4 -0
- package/types/plugins/finder/ui/header/header.d.ts +7 -1
- package/types/plugins/finder/ui/panel/panel.d.ts +5 -0
- package/types/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +5 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.7
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
*/.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}`,""])},function(t,i){t.exports=function(t){var i=[];return i.toString=function(){return this.map(function(i){var n=function(t,i){var n=t[1]||"",o=t[3];if(!o)return n;if(i&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */";return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([r]).join(`
|
|
15
15
|
`)}return[n].join(`
|
|
16
16
|
`)}(i,t);return i[2]?"@media "+i[2]+"{"+n+"}":n}).join("")},i.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(o[s]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),i.push(a))}},i}}],i={};function n(o){if(i[o])return i[o].exports;var r=i[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=i,n.d=function(t,i,o){n.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},n.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,i){if(1&i&&(t=n(t)),8&i||4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)n.d(o,r,(function(i){return t[i]}).bind(null,r));return o},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},n.p="",n(n.s=1)}()},6441:function(t,i,n){"use strict";n.d(i,{Config:function(){return s}});var o=n(82758);let r={};class s{static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__defaultOptions}constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=o.globalDocument,this.ownerWindow=o.globalWindow,this.shadowRoot=null,this.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.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=o.INSERT_AS_HTML,this.enter=o.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},`
|
|
17
|
-
`,{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,r)}}r=s.prototype,s.prototype.controls={}},26992:function(t,i,n){"use strict";n.d(i,{Async:function(){return m}});var o=n(82758),r=n(91898),s=n(12045),a=n(23282),l=n(84767),c=n(72430),d=n(14773),u=n(70799),h=n(86068),p=n(38837),f=n(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...n){if(this.isDestructed)return 0;let o={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(o=i).timeout||0),o.label&&this.clearLabel(o.label);let s=(0,r.setTimeout)(t,i,...n),a=o.label||s;return this.timers.set(a,s),this.__callbacks.set(a,t),s}updateTimeout(t,i){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let n=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{label:t,timeout:i})}clearLabel(t){t&&this.timers.has(t)&&((0,r.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,u.isString)(t))return this.clearLabel(t);(0,r.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,i,n=!1){let o=0,l=!1,u=[],h=(...i)=>{if(!l){o=0;let n=t(...i);if(l=!0,u.length){let t=()=>{u.forEach(t=>t()),u.length=0};(0,d.isPromise)(n)?n.finally(t):t()}}},p=(...s)=>{l=!1,i?(!o&&n&&h(...s),(0,r.clearTimeout)(o),o=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,o)):h(...s)};return(0,c.isPlainObject)(i)&&i.promisify?(...t)=>{let i=this.promise(t=>{u.push(t)}).catch(t=>{if((0,s.isAbortError)(t))return null;throw t});return p(...t),i}:p}microDebounce(t,i=!1){let n,o=!1,r=!0;return(...s)=>{if(n=s,o){r=!0;return}r=!0,i&&(r=!1,t(...n)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&r&&t(...n)})}}throttle(t,i,n=!1){let o=null,r,s,l;return(...n)=>{(r=!0,l=n,i)?o||(s=()=>{r?(t(...l),r=!1,o=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,o)):o=null})():t(...l)}}promise(t){let i=()=>{},n=new Promise((n,o)=>{i=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(n,o)});return!n.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(n.finally=t=>(n.then(t).catch(t),n)),n.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),n.rejectCallback=i,n}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(i=>{t.then(t=>(i("fulfilled"),t),t=>{throw i("rejected"),t}),this.setTimeout(()=>{i("pending")},100)});let i={};return Promise.race([t,i]).then(t=>t===i?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,i={timeout:100}){let n=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(n),n}requestIdlePromise(t){return this.promise(i=>{let n=this.requestIdleCallback(()=>i(n),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let n=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(t,{...i,signal:n.signal});return o.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),o}return this.promise((o,r)=>{let s=this.setTimeout(()=>{try{o(t())}catch(t){r(t)}this.__controllers.delete(n)},i.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(n),r((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let i=requestAnimationFrame(t);return this.__requestsRaf.add(i),i}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,r.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var t,i,n,o,r;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(t=null==queueMicrotask?void 0:queueMicrotask.bind(window))?t:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(n=null==(i=window.requestIdleCallback)?void 0:i.bind(window))?n:(t,i)=>{var n;let o=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(n=null==i?void 0:i.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(r=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},8884:function(t,i,n){"use strict";n.d(i,{Async:function(){return o.Async}});var o=n(26992)},4012:function(t,i,n){"use strict";n.d(i,{Component:function(){return c}});var o=n(8884),r=n(78213),s=n(580),a=n(21537);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,i,n){let o=[this.componentName];return t&&o.push("__"+(t=t.replace(/[^a-z0-9-]/gi,"-"))),i&&(o.push("_",i),o.push("_",(0,a.isVoid)(n)?"true":n.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,i){return(0,a.get)(t,i||this)}get isReady(){return this.componentStatus===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,i){if(t===this.__componentStatus)return;i===this&&(this.__componentStatus=t);let n=Object.getPrototypeOf(this);n&&(0,a.isFunction)(n.setStatusComponent)&&n.setStatusComponent(t,i);let o=l.get(this),r=null==o?void 0:o[t];r&&r.length&&r.forEach(t=>t(i))}hookStatus(t,i){let n=l.get(this);n||(n={},l.set(this,n)),n[t]||(n[t]=[]),n[t].push(i)}static isInstanceOf(t,i){return t instanceof i}constructor(){this.async=new o.Async,this.ownerWindow=window,this.__componentStatus=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,s.uniqueUid)()}}c.STATUSES=r.STATUSES},91907:function(t,i,n){"use strict";n.d(i,{Component:function(){return o.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return s.ViewComponent}});var o=n(4012),r=n(78213),s=n(80480)},78213:function(t,i,n){"use strict";n.d(i,{STATUSES:function(){return o}});let o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(t,i,n){"use strict";n.d(i,{ViewComponent:function(){return r}});var o=n(4012);class r extends o.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...i){return this.j.i18n(t,...i)}setParentView(t){return this.jodit=t,t.ow&&(this.ownerWindow=t.ow),t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),this.setParentView(t)}}},82758:function(t,i,n){"use strict";n.r(i),n.d(i,{ACCURACY:function(){return W},APP_VERSION:function(){return o},BASE_PATH:function(){return ef},BASE_PATH_IS_MIN:function(){return em},BR:function(){return G},CLIPBOARD_ID:function(){return ev},COMMAND_KEYS:function(){return $},EMULATE_DBLCLICK_TIMEOUT:function(){return en},ES:function(){return r},FAT_MODE:function(){return d},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return j},INSERT_AS_HTML:function(){return eo},INSERT_AS_TEXT:function(){return es},INSERT_CLEAR_HTML:function(){return er},INSERT_ONLY_TEXT:function(){return ea},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return y},IS_BLOCK:function(){return x},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return Z},IS_INLINE:function(){return I},IS_MAC:function(){return ec},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return ed},KEY_ALT:function(){return z},KEY_BACKSPACE:function(){return D},KEY_DELETE:function(){return U},KEY_DOWN:function(){return F},KEY_ENTER:function(){return M},KEY_ESC:function(){return R},KEY_F3:function(){return q},KEY_LEFT:function(){return B},KEY_META:function(){return P},KEY_RIGHT:function(){return O},KEY_SPACE:function(){return H},KEY_TAB:function(){return L},KEY_UP:function(){return N},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ei},MODE_SOURCE:function(){return J},MODE_SPLIT:function(){return X},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return m},NEARBY:function(){return V},NO_EMPTY_TAGS:function(){return A},PARAGRAPH:function(){return K},PASSIVE_EVENTS:function(){return ew},SAFE_COUNT_CHANGE_CALL:function(){return el},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ey},SPACE_REG_EXP:function(){return w},SPACE_REG_EXP_END:function(){return C},SPACE_REG_EXP_START:function(){return _},TEMP_ATTR:function(){return eg},TEXT_HTML:function(){return ee},TEXT_PLAIN:function(){return Q},TEXT_RTF:function(){return et},TOKENS:function(){return p},globalDocument:function(){return S},globalWindow:function(){return k},lang:function(){return eb}});let o="4.13.4",r="es2021",s=!0,a=!0,l=!0,c=!1,d=!0,u="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m=" ",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,y=()=>/^[\uFEFF]+/g,w=()=>/[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,C=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,k="u">typeof window?window:void 0,S="u">typeof document?document:void 0,x=/^(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,I=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],j=new Set([...T,"br","hr"]),A=new Set(T),P="Meta",D="Backspace",L="Tab",M="Enter",R="Escape",z="Alt",B="ArrowLeft",N="ArrowUp",O="ArrowRight",F="ArrowDown",H="Space",U="Delete",q="F3",V=5,W=10,$=[P,D,U,N,F,O,B,M,R,q,L],G="br",K="p",Y=1,J=2,X=3,Z="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Q=Z?"text":"text/plain",ee=Z?"html":"text/html",et=Z?"rtf":"text/rtf",ei="jodit-selection_marker",en=300,eo="insert_as_html",er="insert_clear_html",es="insert_as_text",ea="insert_only_text",el=10,ec=void 0!==k&&/Mac|iPod|iPhone|iPad/.test(k.navigator.platform),ed={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ec?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:eh,isMin:ep}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return eu(t.src);let i=S.querySelectorAll("script[src]");return i&&i.length?eu(i[i.length-1].src):eu(k.location.href)})(),ef=eh,em=ep,eg="data-jodit-temp",eb={},ev="clipboard",ey="source-consumer",ew=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(t,i,n){"use strict";n.d(i,{Create:function(){return l}});var o=n(82758),r=n(2748),s=n(21537),a=n(38837);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(t,i,n){let o=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(o),i&&((0,s.isPlainObject)(i)?(0,s.attr)(o,i):n=i),n&&(0,s.asArray)(n).forEach(t=>o.appendChild((0,s.isString)(t)?this.fromHTML(t):t)),o}div(t,i,n){let o=this.element("div",i,n);return t&&(o.className=t),o}sandbox(){var t;let i=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(i);let n=null==(t=i.contentWindow)?void 0:t.document;if((0,a.assert)(n,"iframe.contentWindow.document"),!n)throw Error("Iframe error");return n.open(),n.write("<!DOCTYPE html><html><head></head><body></body></html>"),n.close(),[n.body,i]}span(t,i,n){let o=this.element("span",i,n);return t&&(o.className=t),o}a(t,i,n){let o=this.element("a",i,n);return t&&(o.className=t),o}text(t){return this.doc.createTextNode(t)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,i){let n=this.div();n.innerHTML=t.toString();let o=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(r.Dom.safeRemove(o),i){let t=(0,s.refs)(o);Object.keys(i).forEach(n=>{let o=t[n];o&&!1===i[n]&&r.Dom.hide(o)})}return o}applyCreateAttributes(t){if(this.createAttributes){let i=this.createAttributes;if(i&&i[t.tagName.toLowerCase()]){let n=i[t.tagName.toLowerCase()];(0,s.isFunction)(n)?n(t):(0,s.isPlainObject)(n)&&(0,s.attr)(t,n)}}}constructor(t,i){this.document=t,this.createAttributes=i}}},12060:function(t,i,n){"use strict";n.d(i,{Create:function(){return o.Create}});var o=n(20218)},45219:function(t,i,n){"use strict";n.d(i,{autobind:function(){return r}});var o=n(23282);function r(t,i,n){if(!(0,o.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=n.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},33433:function(t,i,n){"use strict";n.d(i,{cache:function(){return c},cacheHTML:function(){return d},cached:function(){return l}});var o=n(78213),r=n(2748),s=n(27613),a=n(82760);function l(t,i){let n=Object.getOwnPropertyDescriptor(t,i);return!n||(0,s.isFunction)(n.get)?null:n.value}function c(t,i,n){let o=n.get;if(!o)throw(0,a.error)("Getter property descriptor expected");n.get=function(){let t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,i,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:t}),t}}function d(t,i,n){let l=n.value;if(!(0,s.isFunction)(l))throw(0,a.error)("Handler must be a Function");let c=!0,d=new WeakMap;n.value=function(...t){var i;if(c&&d.has(this.constructor))return null==(i=d.get(this.constructor))?void 0:i.cloneNode(!0);let n=l.apply(this,t);return c&&r.Dom.isElement(n)&&d.set(this.constructor,n),c?n.cloneNode(!0):n},t.hookStatus(o.STATUSES.ready,t=>{c=!!((0,s.isViewObject)(t)?t:t.jodit).options.cache})}},87325:function(t,i,n){"use strict";n.d(i,{component:function(){return a},getComponentClass:function(){return l}});var o=n(82758),r=n(80568);let s=new Map;function a(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}let n=(0,r.getClassName)(t.prototype);if(s.has(n)&&!o.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return s.set(n,i),i}function l(t){return s.get(t)}},81577:function(t,i,n){"use strict";n.d(i,{debounce:function(){return l},throttle:function(){return c}});var o=n(91907),r=n(27613),s=n(38837),a=n(89890);function l(t,i=!1,n="debounce"){return(l,c)=>{let d=l[c];if(!(0,r.isFunction)(d))throw(0,a.error)("Handler must be a Function");return l.hookStatus(o.STATUSES.ready,o=>{let{async:a}=o;(0,s.assert)(null!=a,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let l=(0,r.isFunction)(t)?t(o):t,d=(0,r.isNumber)(l)||(0,r.isPlainObject)(l)?l:o.defaultTimeout;Object.defineProperty(o,c,{configurable:!0,value:a[n](o[c].bind(o),d,i)})}),{configurable:!0,get(){return d.bind(this)}}}}function c(t,i=!1){return l(t,i,"throttle")}},55153:function(t,i,n){"use strict";n.d(i,{derive:function(){return r}});var o=n(23282);function r(...t){return i=>{let n=i.prototype;for(let i=0;i<t.length;i++){let r=t[i],s=Object.getOwnPropertyNames(r.prototype);for(let t=0;t<s.length;t++){let i=s[t],a=Object.getOwnPropertyDescriptor(r.prototype,i);null!=a&&(0,o.isFunction)(a.value)&&!(0,o.isFunction)(n[i])&&Object.defineProperty(n,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},97357:function(t,i,n){"use strict";n.d(i,{hook:function(){return s}});var o=n(23282),r=n(89890);function s(t){return(i,n)=>{if(!(0,o.isFunction)(i[n]))throw(0,r.error)("Handler must be a Function");i.hookStatus(t,t=>{t[n].call(t)})}}},78927:function(t,i,n){"use strict";n.d(i,{idle:function(){return a}});var o=n(91907),r=n(23282),s=n(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:n}=t,o=t[i];t[i]=(...i)=>n.requestIdleCallback(o.bind(t,...i))})}}},65478:function(t,i,n){"use strict";n.r(i),n.d(i,{autobind:function(){return o.autobind},cache:function(){return r.cache},cacheHTML:function(){return r.cacheHTML},cached:function(){return r.cached},component:function(){return s.component},debounce:function(){return a.debounce},derive:function(){return l.derive},getComponentClass:function(){return s.getComponentClass},hook:function(){return c.hook},idle:function(){return d.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return a.throttle},wait:function(){return p.wait},watch:function(){return f.watch}});var o=n(45219),r=n(33433),s=n(87325),a=n(81577),l=n(55153),c=n(97357),d=n(78927),u=n(31589),h=n(53213),p=n(13525),f=n(37133)},31589:function(t,i,n){"use strict";n.d(i,{nonenumerable:function(){return o}});let o=(t,i)=>{!1!==(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable&&Object.defineProperty(t,i,{enumerable:!1,set(t){Object.defineProperty(this,i,{enumerable:!1,writable:!0,value:t})}})}},53213:function(t,i,n){"use strict";n.d(i,{persistent:function(){return s}});var o=n(78213),r=n(39955);function s(t,i){t.hookStatus(o.STATUSES.ready,t=>{let n=(0,r.isViewObject)(t)?t:t.jodit,o=`${n.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=n.storage.get(o))?t:s},set(t){n.storage.set(o,t)}})})}},13525:function(t,i,n){"use strict";n.d(i,{wait:function(){return a}});var o=n(78213),r=n(23282),s=n(89890);function a(t){return(i,n)=>{let a=i[n];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(o.STATUSES.ready,i=>{let{async:o}=i,r=i[n],s=0;Object.defineProperty(i,n,{configurable:!0,value:function n(...a){o.clearTimeout(s),t(i)?r.apply(i,a):s=o.setTimeout(()=>n(...a),10)}})})}}},37133:function(t,i,n){"use strict";n.d(i,{watch:function(){return h}});var o=n(78213),r=n(73026),s=n(46559),a=n(23282),l=n(72430),c=n(39955),d=n(89890),u=n(37790);function h(t,i){return(n,h)=>{var p;if(!(0,a.isFunction)(n[h]))throw(0,d.error)("Handler must be a Function");let f=null==(p=null==i?void 0:i.immediately)||p,m=null==i?void 0:i.context,g=i=>{let o=(0,c.isViewObject)(i)?i:i.jodit,d=(t,...n)=>{if(!i.isInDestruct)return i[h](t,...n)};f||(d=i.async.microDebounce(d,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[n,r]=t.split(":"),s=m;n.length&&(s=i.get(n)),(0,a.isFunction)(s)&&(s=s(i)),o.events.on(s||i,r,d),s||o.events.on(r,d),i.hookStatus("beforeDestruct",()=>{o.events.off(s||i,r,d).off(r,d)});return}let s=t.split("."),[c]=s,h=s.slice(1),p=i[c];(0,l.isPlainObject)(p)&&(0,r.observable)(p).on("change."+h.join("."),d);let f=(0,u.getPropertyDescriptor)(n,c);Object.defineProperty(i,c,{configurable:!0,set(t){let n=p;n!==t&&(p=t,f&&f.set&&f.set.call(i,t),(0,l.isPlainObject)(p)&&(p=(0,r.observable)(p)).on("change."+h.join("."),d),d(c,n,p))},get:()=>f&&f.get?f.get.call(i):p})})};(0,a.isFunction)(n.hookStatus)?n.hookStatus(o.STATUSES.ready,g):g(n)}}},2748:function(t,i,n){"use strict";n.d(i,{Dom:function(){return _}});var o=n(82758),r=n(4510),s=n(68345),a=n(23282),l=n(58487),c=n(42320),d=n(70799),u=n(86068),h=n(49055),p=n(38837),f=n(29960),m=n(41180),g=n(86583),b=n(89890),y=n(37790);let w=RegExp(`<([a-z]+)[^>]+${o.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class _{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,i,n){let o,r=t;n.s.save();let s=!1;do s=!1,(o=r.nextSibling)&&!_.isBlock(o)&&!_.isTag(o,"br")&&(s=!0,r=o);while(s)return _.__wrapElements(i,n,t,r)}static __wrapElements(t,i,n,o){let r=(0,d.isString)(t)?i.createInside.element(t):t;n.parentNode&&n.parentNode.insertBefore(r,n);let s=n;for(;s&&(s=n.nextSibling,r.appendChild(n),n!==o&&s);)n=s;return i.s.restore(),r}static wrapInline(t,i,n){let o,r=t,s=t;n.s.save();let a=!1;do a=!1,(o=r.previousSibling)&&!_.isBlock(o)&&(a=!0,r=o);while(a)do a=!1,(o=s.nextSibling)&&!_.isBlock(o)&&(a=!0,s=o);while(a)return _.__wrapElements(i,n,r,s)}static wrap(t,i,n){let o=(0,d.isString)(i)?n.element(i):i;if(_.isNode(t)){if(!t.parentNode)throw(0,b.error)("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{let i=t.extractContents();t.insertNode(o),o.appendChild(i)}return o}static unwrap(t){let i=t.parentNode;if(i){for(;t.firstChild;)i.insertBefore(t.firstChild,t);_.safeRemove(t)}}static between(t,i,n){let o=t;for(;o&&o!==i&&!(t!==o&&n(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)if((o=o.parentNode)===i)return;t=null==o?void 0:o.nextSibling}o=t}}static replace(t,i,n,o=!1,s=!1){let a;if((0,l.isHTML)(i)&&((0,p.assert)(n,"Need create instance for new tag"),i=n.fromHTML(i)),(0,d.isString)(i)?((0,p.assert)(n,"Need create instance for new tag"),a=n.element(i)):a=i,!s)for(;t.firstChild;)a.appendChild(t.firstChild);return o&&_.isElement(t)&&_.isElement(a)&&(0,r.toArray)(t.attributes).forEach(t=>{a.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return _.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return _.each(t,t=>_.isEmptyTextNode(t))}static isContentEditable(t,i){return _.isNode(t)&&!_.closest(t,t=>_.isElement(t)&&"false"===t.getAttribute("contenteditable"),i)}static isEmpty(t,i=o.NO_EMPTY_TAGS){let n;if(!t)return!0;n=(0,a.isFunction)(i)?i:t=>i.has(t.nodeName.toLowerCase());let r=t=>null==t.nodeValue||0===(0,h.trim)(t.nodeValue).length;return _.isText(t)?r(t):!(_.isElement(t)&&n(t))&&_.each(t,t=>{if(_.isText(t)&&!r(t)||_.isElement(t)&&n(t))return!1})}static isNode(t){return!!(t&&(0,d.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,a.isFunction)(t.appendChild))}static isCell(t){return _.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return _.isTag(t,o.LIST_TAGS)}static isLeaf(t){return _.isTag(t,"li")}static isImage(t){return _.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,u.isVoid)(t)&&"object"==typeof t&&_.isNode(t)&&o.IS_BLOCK.test(t.nodeName)}static isText(t){return!!(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return!!(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){return!!_.isNode(t)&&t.nodeType===Node.ELEMENT_NODE}static isFragment(t){return!!_.isNode(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(t){var i;if(!_.isNode(t))return!1;let n=null==(i=t.ownerDocument)?void 0:i.defaultView;return t instanceof(n?n.HTMLElement:HTMLElement)}static isInlineBlock(t){return _.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(t,"display").toString())}static canSplitBlock(t){return!(0,u.isVoid)(t)&&_.isHTMLElement(t)&&_.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static first(t,i){let n=null==t?void 0:t.firstChild;if(!n)return null;do{if(i(n))return n;let o=n.firstChild;if(o||(o=n.nextSibling),!o&&n.parentNode!==t){do n=n.parentNode;while(n&&!(null==n?void 0:n.nextSibling)&&n.parentNode!==t)o=null==n?void 0:n.nextSibling}n=o}while(n)return null}static last(t,i){let n=null==t?void 0:t.lastChild;if(!n)return null;do{if(i(n))return n;let o=n.lastChild;if(o||(o=n.previousSibling),!o&&n.parentNode!==t){do n=n.parentNode;while(n&&!(null==n?void 0:n.previousSibling)&&n.parentNode!==t)o=null==n?void 0:n.previousSibling}n=o}while(n)return null}static prev(t,i,n,o=!0){return _.find(t,i,n,!1,o)}static next(t,i,n,o=!0){return _.find(t,i,n,!0,o)}static prevWithClass(t,i){return _.prev(t,t=>_.isElement(t)&&t.classList.contains(i),t.parentNode)}static nextWithClass(t,i){return _.next(t,t=>_.isElement(t)&&t.classList.contains(i),t.parentNode)}static find(t,i,n,o=!0,r=!0){let s=this.nextGen(t,n,o,r),a=s.next();for(;!a.done;){if(i(a.value))return a.value;a=s.next()}return null}static*nextGen(t,i,n=!0,o=!0){let r=[],s=t;do{let i=n?s.nextSibling:s.previousSibling;for(;i;)r.push(i),i=n?i.nextSibling:i.previousSibling;r.reverse(),yield*this.runInStack(t,r,n,o),s=s.parentNode}while(s&&s!==i)return null}static each(t,i,n=!0){let o=this.eachGen(t,n),r=o.next();for(;!r.done;){if(!1===i(r.value))return!1;r=o.next()}return!0}static eachGen(t,i=!0){return this.runInStack(t,[t],i)}static*runInStack(t,i,n,o=!0){for(;i.length;){let r=i.pop();if(o){let t=n?r.lastChild:r.firstChild;for(;t;)i.push(t),t=n?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,i,n,o="nextSibling",r="firstChild"){let s=t;do{if(i(s))return s||null;if(r&&s&&s[r]){let t=_.findWithCurrent(s[r],i,s,o,r);if(t)return t}for(;s&&!s[o]&&s!==n;)s=s.parentNode;s&&s[o]&&s!==n&&(s=s[o])}while(s&&s!==n)return null}static findSibling(t,i=!0,n=t=>!_.isEmptyTextNode(t)){let o=_.sibling(t,i);for(;o&&!n(o);)o=_.sibling(o,i);return o&&n(o)?o:null}static findNotEmptySibling(t,i){return _.findSibling(t,i,t=>{var i;return!_.isEmptyTextNode(t)&&!!(!_.isText(t)||(null==(i=t.nodeValue)?void 0:i.length)&&(0,h.trim)(t.nodeValue))})}static findNotEmptyNeighbor(t,i,n){return(0,y.call)(i?_.prev:_.next,t,t=>!!(t&&(!(_.isText(t)||_.isComment(t))||(0,h.trim)((null==t?void 0:t.nodeValue)||"").length)),n)}static sibling(t,i){return i?t.previousSibling:t.nextSibling}static up(t,i,n,o=!1){let r=t;if(!r)return null;do{if(i(r))return r;if(r===n||!r.parentNode)break;r=r.parentNode}while(r&&r!==n)return r===n&&o&&i(r)?r:null}static closest(t,i,n){let o,r=t=>t.toLowerCase();if((0,a.isFunction)(i))o=i;else if((0,s.isArray)(i)||(0,c.isSet)(i)){let t=(0,c.isSet)(i)?i:new Set(i.map(r));o=i=>!!(i&&t.has(r(i.nodeName)))}else o=t=>!!(t&&r(i)===r(t.nodeName));return _.up(t,o,n)}static furthest(t,i,n){let o=null,r=null==t?void 0:t.parentElement;for(;r&&r!==n;)i(r)&&(o=r),r=null==r?void 0:r.parentElement;return o}static appendChildFirst(t,i){let n=t.firstChild;n?n!==i&&t.insertBefore(i,n):t.appendChild(i)}static after(t,i){let{parentNode:n}=t;n&&(n.lastChild===t?n.appendChild(i):n.insertBefore(i,t.nextSibling))}static before(t,i){let{parentNode:n}=t;n&&n.insertBefore(i,t)}static prepend(t,i){t.insertBefore(i,t.firstChild)}static append(t,i){(0,s.isArray)(i)?i.forEach(i=>{this.append(t,i)}):t.appendChild(i)}static moveContent(t,i,n=!1,s=()=>!0){let a=(t.ownerDocument||o.globalDocument).createDocumentFragment();(0,r.toArray)(t.childNodes).filter(t=>!!s(t)||(_.safeRemove(t),!1)).forEach(t=>{a.appendChild(t)}),n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a)}static isOrContains(t,i,n=!1){return t===i?!n:!!(i&&t&&this.up(i,i=>i===t,t,!0))}static safeRemove(...t){t.forEach(t=>_.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,i){t.collapsed||t.deleteContents();let n=_.isFragment(i)?i.lastChild:i;t.startContainer===t.endContainer&&t.collapsed&&_.isTag(t.startContainer,o.INSEPARABLE_TAGS)?_.after(t.startContainer,i):(t.insertNode(i),n&&t.setStartBefore(n)),t.collapse(!0),[i.nextSibling,i.previousSibling].forEach(t=>_.isText(t)&&!t.nodeValue&&_.safeRemove(t))}static hide(t){t&&((0,g.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let i=(0,g.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=i||"")}static isTag(t,i){if(Array.isArray(i))throw TypeError("Dom.isTag does not support array");if(!this.isElement(t))return!1;let n=t.tagName.toLowerCase();return i instanceof Set?i.has(n)||i.has(t.tagName.toUpperCase()):n===i||t.tagName.toUpperCase()===i}static markTemporary(t,i){return i&&(0,f.attr)(t,i),(0,f.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!_.isElement(t)&&(_.isMarker(t)||"true"===(0,f.attr)(t,o.TEMP_ATTR))}static isMarker(t){return _.isNode(t)&&_.isTag(t,"span")&&t.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(w,"$2")}static temporaryList(t){return(0,r.toArray)(t.querySelectorAll(`[${o.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(t,i,n){"use strict";n.d(i,{Dom:function(){return o.Dom},LazyWalker:function(){return r.LazyWalker}});var o=n(2748),r=n(70071)},70071:function(t,i,n){"use strict";n.d(i,{LazyWalker:function(){return a}});var o=n(45219),r=n(2748),s=n(72757);class a extends s.Eventify{setWork(t){return this.isWorked?this.break():this.stop(),this.workNodes=r.Dom.eachGen(t,!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(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var t;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(t=this.__schedulerController)||t.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var t;if(this.workNodes){this.isWorked=!0;let i=0,n=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<n;){let t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){var i;return!!t&&(void 0===this.options.whatToShow||t.nodeType===this.options.whatToShow)&&null!=(i=this.emit("visit",t))&&i}constructor(t,i={}){super(),this.async=t,this.options=i,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],a.prototype,"__workPerform",null)},98220:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return u}});var o=n(82758),r=n(46559),s=n(68345),a=n(23282),l=n(70799),c=n(89890),d=n(15738);class u{mute(t){return this.__mutedEvents.add(null!=t?t:"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(null!=t?t:"*"),this}__eachEvent(t,i){(0,r.splitArray)(t).map(t=>t.trim()).forEach(t=>{let n=t.split("."),o=n[1]||d.defaultNameSpace;i.call(this,n[0],o)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let i=new d.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:i})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&delete t[this.__key]}__triggerNativeEvent(t,i){let n=this.__doc.createEvent("HTMLEvents");(0,l.isString)(i)?n.initEvent(i,!0,!0):(n.initEvent(i.type,i.bubbles,i.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(n,t,{value:i[t],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:i,enumerable:!0})),t.dispatchEvent(n)}get current(){return this.currents[this.currents.length-1]}on(t,i,n,r){let d,u,p,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(d=this,u=t,p=i,f=n):(d=t,u=i,p=n,f=r),!((0,l.isString)(u)||(0,l.isStringArray)(u))||0===u.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(p))throw(0,c.error)("Need event handler");if((0,s.isArray)(d))return d.forEach(t=>{this.on(t,u,p,f)}),this;let m=d,g=this.__getStore(m),b=this,y=function(t,...i){if(!b.isMuted(t))return p&&p.call(this,...i)};return h(m)&&(y=function(t){if(!b.isMuted(t.type)&&(b.__prepareEvent(t),p&&!1===p.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(u,(t,i)=>{var n,r;if(0===t.length)throw(0,c.error)("Need event name");if(!1===g.indexOf(t,i,p)){let s={event:t,originalCallback:p,syntheticCallback:y};if(g.set(t,i,s,null==f?void 0:f.top),h(m)){let i=o.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!=(n=null==f?void 0:f.capture)&&n}:null!=(r=null==f?void 0:f.capture)&&r;y.options=i,m.addEventListener(t,y,i),this.__memoryDOMSubjectToHandler(m,y)}}}),this}__memoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap.get(t)||new Set;n.add(i),this.__domEventsMap.set(t,n)}__unmemoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap,o=n.get(t)||new Set;o.delete(i),o.size?n.set(t,o):n.delete(t)}one(t,i,n,o){let r,s,a,c;(0,l.isString)(t)||(0,l.isStringArray)(t)?(r=this,s=t,a=i,c=n):(r=t,s=i,a=n,c=o);let d=(...t)=>(this.off(r,s,d),a(...t));return this.on(r,s,d,c),this}off(t,i,n){let o,r,c;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(o=this,r=t,c=i):(o=t,r=i,c=n),(0,s.isArray)(o))return o.forEach(t=>{this.off(t,r,c)}),this;let u=o,p=this.__getStore(u);if(!((0,l.isString)(r)||(0,l.isStringArray)(r))||0===r.length)return p.namespaces().forEach(t=>{this.off(u,"."+t)}),this.__removeStoreFromSubject(u),this;let f=t=>{var i;h(u)&&(u.removeEventListener(t.event,t.syntheticCallback,null!=(i=t.syntheticCallback.options)&&i),this.__unmemoryDOMSubjectToHandler(u,t.syntheticCallback))},m=(t,i)=>{if(""===t)return void p.events(i).forEach(t=>{""!==t&&m(t,i)});let n=p.get(t,i);if(n&&n.length)if((0,a.isFunction)(c)){let o=p.indexOf(t,i,c);!1!==o&&(f(n[o]),n.splice(o,1),n.length||p.clearEvents(i,t))}else n.forEach(f),n.length=0,p.clearEvents(i,t)};return this.__eachEvent(r,(t,i)=>{i===d.defaultNameSpace?p.namespaces().forEach(i=>{m(t,i)}):m(t,i)}),p.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(t,i){let n=(0,l.isString)(t)?this:t,o=(0,l.isString)(t)?t:i;if("string"!=typeof o)throw(0,c.error)("Need event names");let r=this.__getStore(n);this.__eachEvent(o,(t,i)=>{let o=r.get(t,i);o&&this.__stopped.push(o),i===d.defaultNameSpace&&r.namespaces(!0).forEach(i=>this.stopPropagation(n,t+"."+i))})}__removeStop(t){if(t){let i=this.__stopped.indexOf(t);-1!==i&&this.__stopped.splice(0,i+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,i,...n){let o,r,s=(0,l.isString)(t)?this:t,a=(0,l.isString)(t)?t:i,u=(0,l.isString)(t)?[i,...n]:n;if(!h(s)&&!(0,l.isString)(a))throw(0,c.error)("Need events names");let p=this.__getStore(s);return!(0,l.isString)(a)&&h(s)?this.__triggerNativeEvent(s,i):this.__eachEvent(a,(t,i)=>{if(h(s))this.__triggerNativeEvent(s,t);else{let n=p.get(t,i);if(n)try{[...n].every(i=>!this.__isStopped(n)&&(this.currents.push(t),r=i.syntheticCallback.call(s,t,...u),this.currents.pop(),void 0!==r&&(o=r),!0))}finally{this.__removeStop(n)}i!==d.defaultNameSpace||h(s)||p.namespaces().filter(t=>t!==i).forEach(i=>{let n=this.fire.apply(this,[s,t+"."+i,...u]);void 0!==n&&(o=n)})}}),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((t,i)=>{this.off(i)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=o.globalDocument,this.__prepareEvent=t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(i=>{Object.defineProperty(t,i,{value:t.changedTouches[0][i],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=new Date().getTime()}}function h(t){return t&&(0,a.isFunction)(t.addEventListener)}},72757:function(t,i,n){"use strict";n.d(i,{Eventify:function(){return o}});class o{on(t,i){var n;return this.__map.has(t)||this.__map.set(t,new Set),null==(n=this.__map.get(t))||n.add(i),this}off(t,i){var n;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.delete(i)),this}destruct(){this.__map.clear()}emit(t,...i){var n;let o;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.forEach(t=>{o=t(...i)})),o}constructor(){this.__map=new Map}}},57012:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return o}});let o=new(n(98220)).EventEmitter},3827:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return a.EventHandlersStore},Eventify:function(){return r.Eventify},defaultNameSpace:function(){return a.defaultNameSpace},observable:function(){return s.observable}});var o=n(98220),r=n(72757),s=n(73026),a=n(15738)},73026:function(t,i,n){"use strict";n.d(i,{observable:function(){return d}});var o=n(68345),r=n(59292),s=n(72430),a=n(37790);let l=Symbol("observable-object");function c(t){return void 0!==t[l]}function d(t){if(c(t))return t;let i={},n={},d=(i,r)=>((0,o.isArray)(i)?i.map(t=>d(t,r)):(n[i]||(n[i]=[]),n[i].push(r)),t),u=(r,...s)=>{if((0,o.isArray)(r))return void r.map(t=>u(t,...s));try{!i[r]&&n[r]&&(i[r]=!0,n[r].forEach(i=>i.call(t,...s)))}finally{i[r]=!1}},h=(i,n=[])=>{let o={};c(i)||(Object.defineProperty(i,l,{enumerable:!1,value:!0}),Object.keys(i).forEach(l=>{let c=n.concat(l).filter(t=>t.length);o[l]=i[l];let d=(0,a.getPropertyDescriptor)(i,l);Object.defineProperty(i,l,{set(i){let n=o[l];if(!(0,r.isFastEqual)(o[l],i)){u(["beforeChange","beforeChange."+c.join(".")],l,i),(0,s.isPlainObject)(i)&&h(i,c),d&&d.set?d.set.call(t,i):o[l]=i;let r=[];u(["change",...c.reduce((t,i)=>(r.push(i),t.push("change."+r.join(".")),t),[])],c.join("."),n,(null==i?void 0:i.valueOf)?i.valueOf():i)}},get:()=>d&&d.get?d.get.call(t):o[l],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(o[l])&&h(o[l],c)}),Object.defineProperty(t,"on",{value:d}))};return h(t),t}},15738:function(t,i,n){"use strict";n.d(i,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var o=n(4510),r=n(38837);let s="JoditEventDefaultNamespace";class a{get(t,i){if(this.__store.has(i)){let n=this.__store.get(i);return(0,r.assert)(n,"-"),n[t]}}indexOf(t,i,n){let o=this.get(t,i);if(o){for(let t=0;t<o.length;t+=1)if(o[t].originalCallback===n)return t}return!1}namespaces(t=!1){let i=(0,o.toArray)(this.__store.keys());return t?i.filter(t=>t!==s):i}events(t){let i=this.__store.get(t);return i?Object.keys(i):[]}set(t,i,n,o=!1){let r=this.__store.get(i);r||(r={},this.__store.set(i,r)),void 0===r[t]&&(r[t]=[]),o?r[t].unshift(n):r[t].push(n)}clear(){this.__store.clear()}clearEvents(t,i){let n=this.__store.get(t);n&&n[i]&&(delete n[i],Object.keys(n).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return x},extendLang:function(){return _},getContainer:function(){return k},getPopupViewRoot:function(){return S},instances:function(){return f},modules:function(){return w},pluginSystem:function(){return y},uniqueUid:function(){return b}});var o=n(19306),r=n(70799),s=n(39955),a=n(12475),l=n(41180),c=n(80568),d=n(41876),u=n(57012),h=n(82758),p=n(22732);let f={},m=1,g=new Set;function b(){function t(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let i=t();for(;g.has(i);)i=t();return g.add(i),i}let y=new d.PluginSystem({getContainer:k}),w={},_=t=>{Object.keys(t).forEach(i=>{h.lang[i]?Object.assign(h.lang[i],t[i]):h.lang[i]=t[i]})},C=new WeakMap;function k(t,i,n="div",l=!1){let d=(0,r.isString)(i)?i:i?(0,c.getClassName)(i.prototype):"jodit-utils",u=C.get(t)||{},h=d+n,f=(0,s.isViewObject)(t)?t:t.j,m=null;if(!u[h]){let i=f.c;if(m=S(f.o,f.container,t.od.body),l&&(0,o.isJoditObject)(t)&&t.od!==t.ed){i=t.createInside;let r="style"===n?t.ed.head:t.ed.body;m=(0,o.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}let r=i.element(n,{className:`jodit jodit-${(0,a.kebabCase)(d)}-container jodit-box`});f.o.nonce&&("style"===n||"script"===n)&&r.setAttribute("nonce",f.o.nonce),r.classList.add("jodit_theme_"+(f.o.theme||"default")),m.appendChild(r),u[h]=r,t.hookStatus("beforeDestruct",()=>{f.events.off(r),p.Dom.safeRemove(r),delete u[h],Object.keys(u).length&&C.delete(t)}),C.set(t,u),f.events.fire("getContainer",r)}return u[h].classList.remove("jodit_theme_default","jodit_theme_dark"),u[h].classList.add("jodit_theme_"+(f.o.theme||"default")),u[h]}function S(t,i,n){var o,r,s;return null!=(s=null!=(r=null!=(o=t.popupRoot)?o:t.shadowRoot)?r:p.Dom.closest(i,t=>p.Dom.isHTMLElement(t)&&(p.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,l.css)(t,"position"))),n))?s:n}let x=u.eventEmitter},29999:function(t,i,n){"use strict";n.d(i,{asArray:function(){return r}});var o=n(68345);let r=t=>(0,o.isArray)(t)?t:[t]},76855:function(t,i,n){"use strict";n.d(i,{asArray:function(){return o.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var o=n(29999),r=n(46559),s=n(4510)},46559:function(t,i,n){"use strict";function o(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}n.d(i,{splitArray:function(){return o}})},4510:function(t,i,n){"use strict";n.d(i,{toArray:function(){return s}});var o=n(70722),r=n(58844);let s=function(...t){var i;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},91898:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=n(13252)},13252:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var o=n(82758);function r(t,i,...n){return i?o.globalWindow.setTimeout(t,i,...n):(t.call(null,...n),0)}function s(t){o.globalWindow.clearTimeout(t)}},54765:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return r}});var o=n(82758);function r(){let t=!0;try{let i=o.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},27613:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return r.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return a.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return l.isEqual},isFastEqual:function(){return l.isFastEqual},isFunction:function(){return c.isFunction},isHTML:function(){return d.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return p.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return g.isMarker},isNativeFunction:function(){return b.isNativeFunction},isNumber:function(){return y.isNumber},isNumeric:function(){return w.isNumeric},isPlainObject:function(){return _.isPlainObject},isPromise:function(){return C.isPromise},isSet:function(){return k.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return x.isURL},isValidName:function(){return I.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return T.isVoid},isWindow:function(){return j.isWindow}});var o=n(54765),r=n(12045),s=n(68345),a=n(87612),l=n(59292),c=n(23282),d=n(58487),u=n(29673),h=n(60132),p=n(72913),f=n(19306),m=n(45603),g=n(78116),b=n(70722),y=n(84767),w=n(29807),_=n(72430),C=n(14773),k=n(42320),S=n(70799),x=n(26049),I=n(37508),E=n(39955),T=n(86068),j=n(52742)},12045:function(t,i,n){"use strict";function o(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}n.d(i,{isAbortError:function(){return o}})},68345:function(t,i,n){"use strict";function o(t){return Array.isArray(t)}n.d(i,{isArray:function(){return o}})},87612:function(t,i,n){"use strict";function o(t){return"boolean"==typeof t}n.d(i,{isBoolean:function(){return o}})},59292:function(t,i,n){"use strict";n.d(i,{isEqual:function(){return r},isFastEqual:function(){return s}});var o=n(67462);function r(t,i){return t===i||(0,o.stringify)(t)===(0,o.stringify)(i)}function s(t,i){return t===i}},23282:function(t,i,n){"use strict";function o(t){return"function"==typeof t}n.d(i,{isFunction:function(){return o}})},29673:function(t,i,n){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==t.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==t.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==t.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==t.search(/style='[^']*mso-/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}n.d(i,{isHtmlFromWord:function(){return o}})},58487:function(t,i,n){"use strict";n.d(i,{isHTML:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},60132:function(t,i,n){"use strict";n.d(i,{hasContainer:function(){return c},isDestructable:function(){return l},isInitable:function(){return a}});var o=n(2748),r=n(23282),s=n(86068);function a(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.init)}function l(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.destruct)}function c(t){return!(0,s.isVoid)(t)&&o.Dom.isElement(t.container)}},72913:function(t,i,n){"use strict";n.d(i,{isInt:function(){return s}});var o=n(29807),r=n(70799);function s(t){return(0,r.isString)(t)&&(0,o.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},19306:function(t,i,n){"use strict";n.d(i,{isJoditObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},45603:function(t,i,n){"use strict";n.d(i,{isLicense:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},78116:function(t,i,n){"use strict";n.d(i,{isMarker:function(){return r}});var o=n(2748);function r(t){return o.Dom.isMarker(t)}},70722:function(t,i,n){"use strict";function o(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(t+""))}n.d(i,{isNativeFunction:function(){return o}})},84767:function(t,i,n){"use strict";function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}n.d(i,{isNumber:function(){return o}})},29807:function(t,i,n){"use strict";n.d(i,{isNumeric:function(){return r}});var o=n(70799);function r(t){if((0,o.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},72430:function(t,i,n){"use strict";n.d(i,{isPlainObject:function(){return r}});var o=n(52742);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},14773:function(t,i,n){"use strict";function o(t){return t&&"function"==typeof t.then}n.d(i,{isPromise:function(){return o}})},42320:function(t,i,n){"use strict";n.d(i,{isSet:function(){return r}});var o=n(23282);function r(t){return!!t&&(0,o.isFunction)(t.has)&&(0,o.isFunction)(t.add)&&(0,o.isFunction)(t.delete)}},70799:function(t,i,n){"use strict";n.d(i,{isString:function(){return r},isStringArray:function(){return s}});var o=n(68345);function r(t){return"string"==typeof t}function s(t){return(0,o.isArray)(t)&&r(t[0])}},26049:function(t,i,n){"use strict";n.d(i,{isURL:function(){return r}});var o=n(82758);function r(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let i=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(i.protocol)}catch(t){return!1}let i=o.globalDocument.createElement("a");return i.href=t,!!i.hostname}},37508:function(t,i,n){"use strict";function o(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}n.d(i,{isValidName:function(){return o}})},39955:function(t,i,n){"use strict";n.d(i,{isViewObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&t.isView)}},86068:function(t,i,n){"use strict";function o(t){return null==t}n.d(i,{isVoid:function(){return o}})},52742:function(t,i,n){"use strict";function o(t){return null!=t&&t===t.window}n.d(i,{isWindow:function(){return o}})},35278:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o}});let o=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let i=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!i)return"#000000";let n=parseInt(i[2],10),o=parseInt(i[3],10),r=(parseInt(i[4],10)|o<<8|n<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return i[1]+"#"+r}},58149:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o.colorToHex}});var o=n(35278)},32574:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return c}});var o=n(82758),r=n(2748),s=n(49055),a=n(76078);function l(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(t,i,n)=>{switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(i)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(i)).toFixed(0)+"px"}return t})}function c(t){let i=/<html(?:\s[^>]*)?>/i.exec(t);if(!i)return t;let n=(t=t.substring(i.index)).toLowerCase().lastIndexOf("</html>");-1!==n&&(t=t.substring(0,n+7));let c=o.globalDocument.createElement("iframe");c.style.display="none",o.globalDocument.body.appendChild(c);let d="";try{let i=c.contentDocument||(c.contentWindow?c.contentWindow.document:null);if(i){i.open(),i.write(t),i.close(),r.Dom.each(i.body,t=>{r.Dom.isElement(t)&&/mso-list:\s*ignore/i.test(t.getAttribute("style")||"")&&r.Dom.safeRemove(t)});try{for(let t=0;t<i.styleSheets.length;t+=1){let n=i.styleSheets[t].cssRules;for(let t=0;t<n.length;t+=1)""!==n[t].selectorText&&(0,a.$$)(n[t].selectorText,i.body).forEach(i=>{i.style.cssText=l(n[t].style.cssText+";"+i.style.cssText)})}}catch(t){if(!o.IS_PROD)throw t}r.Dom.each(i.body,t=>{if(r.Dom.isElement(t)){let i=t.getAttribute("style");i&&(t.style.cssText=l(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),d=i.firstChild?(0,s.trim)(i.body.innerHTML):""}}catch(t){}finally{r.Dom.safeRemove(c)}return d&&(t=d),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(t,i,n){"use strict";n.d(i,{cleanFromWord:function(){return l}});var o=n(82758),r=n(2748),s=n(4510),a=n(49055);function l(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let i="";try{let n=o.globalDocument.createElement("div");n.innerHTML=t;let a=[];n.firstChild&&r.Dom.each(n,t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":a.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":r.Dom.unwrap(t);break;default:if(/mso-list:\s*ignore/i.test(t.getAttribute("style")||"")){a.push(t);break}(0,s.toArray)(t.attributes).forEach(i=>{-1===["src","href","rel","content"].indexOf(i.name.toLowerCase())&&t.removeAttribute(i.name)})}break;case Node.TEXT_NODE:break;default:a.push(t)}}),r.Dom.safeRemove.apply(null,a),i=n.innerHTML}catch(t){}return i&&(t=i),(t=t.split(/(\n)/).filter(a.trim).join(`
|
|
18
|
-
`)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(t,i,n){"use strict";n.d(i,{htmlspecialchars:function(){return r}});var o=n(82758);function r(t){let i=o.globalDocument.createElement("div");return i.textContent=t,i.innerHTML}},75275:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return r.cleanFromWord},htmlspecialchars:function(){return s.htmlspecialchars},nl2br:function(){return a.nl2br},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},stripTags:function(){return c.stripTags}});var o=n(32574),r=n(53212),s=n(53326),a=n(45971),l=n(86518),c=n(91003)},45971:function(t,i,n){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}n.d(i,{nl2br:function(){return o}})},86518:function(t,i,n){"use strict";n.d(i,{safeHTML:function(){return a},sanitizeHTMLElement:function(){return u}});var o=n(2748),r=n(43555);let s=new Set(["foreignobject","annotation-xml","desc","title"]);function a(t,i){var n;if(!o.Dom.isElement(t)&&!o.Dom.isFragment(t))return;let a=t.querySelectorAll("math *, svg *");for(let t=0;t<a.length;t++)a[t].isConnected&&function(t){if("http://www.w3.org/1999/xhtml"!==t.namespaceURI||null==t.closest("math,svg"))return!1;for(let i=t.parentElement;i;i=i.parentElement){let t=i.nodeName.toLowerCase();if("math"===t||"svg"===t)break;if(s.has(t))return!1}return!0}(a[t])&&o.Dom.safeRemove(a[t]);let l=null!=(n=i.removeEventAttributes)?n:i.removeOnError,c=t=>{if(o.Dom.isElement(t)&&(l&&function(t){if(!o.Dom.isElement(t))return;let i=[];for(let n=0;n<t.attributes.length;n++)t.attributes[n].name.toLowerCase().startsWith("on")&&i.push(t.attributes[n].name);for(let n of i)t.removeAttribute(n)}(t),u(t,i),i.safeLinksTarget&&"A"===t.nodeName&&"_blank"===t.getAttribute("target"))){let i=(t.getAttribute("rel")||"").split(/\s+/).filter(Boolean);i.includes("noopener")||i.push("noopener"),i.includes("noreferrer")||i.push("noreferrer"),(0,r.attr)(t,"rel",i.join(" "))}};c(t),o.Dom.each(t,c)}let l=["src","data","action","formaction","poster","background","xlink:href"],c=new Set(["iframe","frame","object","embed"]);function d(t,i){let n=t.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(n)||/^data:(?:text\/html|application\/xhtml)/.test(n))||/^data:image\/svg/.test(n)&&c.has(i)}function u(t,{safeJavaScriptLink:i,removeOnError:n}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let s=!1;n&&t.hasAttribute("onerror")&&((0,r.attr)(t,"onerror",null),s=!0);let a=t.nodeName.toLowerCase(),c=t.getAttribute("href");if(i&&c&&d(c,a)&&((0,r.attr)(t,"href",location.protocol+"//"+c),s=!0),i)for(let i of(t.hasAttribute("srcdoc")&&((0,r.attr)(t,"srcdoc",null),s=!0),l)){let n=t.getAttribute(i);n&&d(n,a)&&((0,r.attr)(t,i,null),s=!0)}return s}},91003:function(t,i,n){"use strict";n.d(i,{stripTags:function(){return function t(i,n=document,u=null,h=!1){let p=n.createElement("div");return(0,r.isString)(i)?p.innerHTML=i:p.appendChild(i),(0,a.$$)("*",p).forEach(i=>{let r=i.parentNode;if(!r)return;if(u&&o.Dom.isTag(i,u)){let r=i.nodeName.toLowerCase(),s=o.Dom.isTag(i,d)?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${t(i.innerHTML,n,u,h)}%%%/jodit-${r}%%%`;o.Dom.before(i,n.createTextNode(s)),o.Dom.safeRemove(i);return}if(o.Dom.isTag(i,c))return void o.Dom.safeRemove(i);if(!o.Dom.isTag(i,l))return;let s=i.nextSibling;!(o.Dom.isText(s)&&/^\s/.test(s.nodeValue||""))&&s&&r.insertBefore(n.createTextNode(h?"%%%jodit-single-br%%%":" "),s)}),(0,s.trim)(p.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,i,n,o)=>`<${i?"/":""}${o}>`)}}});var o=n(2748),r=n(70799),s=n(49055),a=n(43555);let l=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),c=new Set(["script","style"]),d=new Set(["br","hr","input"])},21537:function(t,i,n){"use strict";n.r(i),n.d(i,{$$:function(){return h.$$},CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return h.ConfigDeepFlatten},ConfigFlatten:function(){return h.ConfigFlatten},ConfigMerge:function(){return h.ConfigMerge},ConfigProto:function(){return h.ConfigProto},ConnectionError:function(){return h.ConnectionError},LimitedStack:function(){return h.LimitedStack},NUMBER_FIELDS_REG:function(){return c.NUMBER_FIELDS_REG},OptionsError:function(){return h.OptionsError},UNSAFE_PROTO_KEYS:function(){return h.UNSAFE_PROTO_KEYS},abort:function(){return h.abort},alignElement:function(){return h.alignElement},alreadyLoadedList:function(){return h.alreadyLoadedList},appendScriptAsync:function(){return h.appendScriptAsync},appendStyleAsync:function(){return h.appendStyleAsync},applyStyles:function(){return l.applyStyles},asArray:function(){return o.asArray},assert:function(){return h.assert},attr:function(){return h.attr},browser:function(){return h.browser},buildQuery:function(){return h.buildQuery},call:function(){return h.call},callPromise:function(){return h.callPromise},callThis:function(){return h.callThis},camelCase:function(){return u.camelCase},cleanFromWord:function(){return l.cleanFromWord},clearAlign:function(){return h.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},clearTimeout:function(){return r.clearTimeout},cns:function(){return h.cns},colorToHex:function(){return a.colorToHex},completeUrl:function(){return h.completeUrl},connection:function(){return h.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssPath:function(){return h.cssPath},ctrlKey:function(){return h.ctrlKey},dataBind:function(){return h.dataBind},defaultLanguage:function(){return h.defaultLanguage},error:function(){return h.error},fastClone:function(){return h.fastClone},fuzzySearchIndex:function(){return u.fuzzySearchIndex},get:function(){return h.get},getClassName:function(){return h.getClassName},getContentWidth:function(){return d.getContentWidth},getDataTransfer:function(){return h.getDataTransfer},getFixedPositionOffset:function(){return d.getFixedPositionOffset},getPropertyDescriptor:function(){return h.getPropertyDescriptor},getScrollParent:function(){return d.getScrollParent},getXPathByElement:function(){return h.getXPathByElement},hAlignElement:function(){return h.hAlignElement},hasBrowserColorPicker:function(){return s.hasBrowserColorPicker},hasContainer:function(){return s.hasContainer},htmlspecialchars:function(){return l.htmlspecialchars},humanSizeToBytes:function(){return h.humanSizeToBytes},i18n:function(){return u.i18n},inView:function(){return h.inView},innerWidth:function(){return d.innerWidth},isAbortError:function(){return s.isAbortError},isArray:function(){return s.isArray},isAtom:function(){return h.isAtom},isBoolean:function(){return s.isBoolean},isDestructable:function(){return s.isDestructable},isEqual:function(){return s.isEqual},isFastEqual:function(){return s.isFastEqual},isFunction:function(){return s.isFunction},isHTML:function(){return s.isHTML},isHtmlFromWord:function(){return s.isHtmlFromWord},isInitable:function(){return s.isInitable},isInt:function(){return s.isInt},isJoditObject:function(){return s.isJoditObject},isLicense:function(){return s.isLicense},isMarker:function(){return s.isMarker},isNativeFunction:function(){return s.isNativeFunction},isNumber:function(){return s.isNumber},isNumeric:function(){return s.isNumeric},isPlainObject:function(){return s.isPlainObject},isPromise:function(){return s.isPromise},isSet:function(){return s.isSet},isString:function(){return s.isString},isStringArray:function(){return s.isStringArray},isURL:function(){return s.isURL},isUnsafeProtoKey:function(){return h.isUnsafeProtoKey},isValidName:function(){return s.isValidName},isViewObject:function(){return s.isViewObject},isVoid:function(){return s.isVoid},isWindow:function(){return s.isWindow},kebabCase:function(){return u.kebabCase},keepNames:function(){return h.keepNames},keys:function(){return h.keys},loadImage:function(){return h.loadImage},loadNext:function(){return h.loadNext},loadNextStyle:function(){return h.loadNextStyle},markAsAtomic:function(){return h.markAsAtomic},markDeprecated:function(){return h.markDeprecated},markOwner:function(){return h.markOwner},memorizeExec:function(){return h.memorizeExec},nl2br:function(){return l.nl2br},normalizeColor:function(){return c.normalizeColor},normalizeCssNumericValue:function(){return c.normalizeCssNumericValue},normalizeCssValue:function(){return c.normalizeCssValue},normalizeKeyAliases:function(){return c.normalizeKeyAliases},normalizeLicense:function(){return c.normalizeLicense},normalizePath:function(){return c.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return c.normalizeUrl},offset:function(){return d.offset},options:function(){return h.options},parseQuery:function(){return h.parseQuery},position:function(){return d.position},previewBox:function(){return h.previewBox},refs:function(){return h.refs},reset:function(){return h.reset},resolveElement:function(){return h.resolveElement},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return h.scrollIntoViewIfNeeded},set:function(){return h.set},setTimeout:function(){return r.setTimeout},size:function(){return d.size},splitArray:function(){return o.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return l.stripTags},toArray:function(){return o.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var o=n(76855),r=n(91898),s=n(27613),a=n(58149),l=n(75275),c=n(71521),d=n(56175),u=n(59007),h=n(43555)},71521:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return r.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return r.normalizeCssNumericValue},normalizeCssValue:function(){return r.normalizeCssValue},normalizeKeyAliases:function(){return s.normalizeKeyAliases},normalizeLicense:function(){return a.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return d.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var o=n(21224),r=n(3760),s=n(49033),a=n(12972),l=n(9992),c=n(70091),d=n(46334),u=n(37406)},21224:function(t,i,n){"use strict";n.d(i,{normalizeColor:function(){return s}});var o=n(35278),r=n(49055);let s=t=>{let i=["#"],n=(0,o.colorToHex)(t);if(!n)return!1;if(3===(n=(n=(0,r.trim)(n.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)i.push(n[t]),i.push(n[t]);return i.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n}},3760:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return l},normalizeCssNumericValue:function(){return c},normalizeCssValue:function(){return d}});var o=n(29807),r=n(86068),s=n(35278),a=n(12475);let l=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function c(t,i){return!(0,r.isVoid)(i)&&l.test(t)&&(0,o.isNumeric)(i.toString())?parseInt(i.toString(),10)+"px":i}function d(t,i){if("font-weight"===(0,a.kebabCase)(t)){switch(i.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.isNumeric)(i)?Number(i):i}return/color/i.test(t)&&/^rgb/i.test(i.toString())&&(0,s.colorToHex)(i.toString())||i}},49033:function(t,i,n){"use strict";n.d(i,{normalizeKeyAliases:function(){return s}});var o=n(82758),r=n(49055);function s(t){let i={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(t=>(0,r.trim)(t.toLowerCase())).map(t=>o.KEY_ALIASES[t]||t).sort((t,i)=>n[t]&&!n[i]?-1:!n[t]&&n[i]?1:n[t]&&n[i]?n[t]-n[i]:t>i?1:-1).filter(t=>!i[t]&&""!==t&&(i[t]=!0)).join("+")}},12972:function(t,i,n){"use strict";n.d(i,{normalizeLicense:function(){return o}});let o=(t,i=8)=>{let n=[];for(;t.length;)n.push(t.substr(0,i)),t=t.substr(i);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}},9992:function(t,i,n){"use strict";n.d(i,{normalizePath:function(){return r}});var o=n(49055);let r=(...t)=>t.filter(t=>(0,o.trim)(t).length).map((i,n)=>(i=i.replace(/([^:])[\\/]+/g,"$1/"),n&&(i=i.replace(/^\//,"")),n!==t.length-1&&(i=i.replace(/\/$/,"")),i)).join("/")},70091:function(t,i,n){"use strict";n.d(i,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,i)=>{switch(i){case"":case".":break;case"..":t.pop();break;default:t.push(i)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},46334:function(t,i,n){"use strict";n.d(i,{normalizeSize:function(){return o}});let o=(t,i)=>/^[0-9]+$/.test(t.toString())?t+i:t.toString()},37406:function(t,i,n){"use strict";n.d(i,{normalizeUrl:function(){return o}});let o=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},35224:function(t,i,n){"use strict";function o(t){var i,n;let o=null==(i=t.ownerDocument)?void 0:i.defaultView,r=t.parentElement;for(;o&&r;){if(""!==(n=o.getComputedStyle(r)).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 t=r.getBoundingClientRect();return{x:t.left,y:t.top}}r=r.parentElement}return{x:0,y:0}}n.d(i,{getFixedPositionOffset:function(){return o}})},16442:function(t,i,n){"use strict";n.d(i,{getScrollParent:function(){return function t(i){if(!i)return null;let n=r.Dom.isHTMLElement(i),a=n&&(0,s.css)(i,"overflowY");return n&&"visible"!==a&&"hidden"!==a&&i.scrollHeight>=i.clientHeight?i:t(i.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=n(82758),r=n(2748),s=n(43555)},56175:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o.getContentWidth},getFixedPositionOffset:function(){return r.getFixedPositionOffset},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return a.innerWidth},offset:function(){return c.offset},position:function(){return d.position},size:function(){return l.size}});var o=n(44506),r=n(35224),s=n(16442),a=n(81630),l=n(21496),c=n(81284),d=n(5700)},81630:function(t,i,n){"use strict";n.d(i,{innerWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.clientWidth-(parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"))}},21496:function(t,i,n){"use strict";n.d(i,{size:function(){return r}});var o=n(27613);function r(t){return(0,o.isString)(t)||(0,o.isArray)(t)?t.length:(0,o.isPlainObject)(t)?Object.keys(t).length:0}},81284:function(t,i,n){"use strict";n.d(i,{offset:function(){return o}});let o=(t,i,n,r=!1)=>{let s,a,l;try{s=t.getBoundingClientRect()}catch(t){s={top:0,bottom:0,left:0,right:0,width:0,height:0}}let c=n.body,d=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=n.defaultView||n.parentWindow,h=u.pageYOffset||d.scrollTop||c.scrollTop,p=u.pageXOffset||d.scrollLeft||c.scrollLeft,f=d.clientTop||c.clientTop||0,m=d.clientLeft||c.clientLeft||0,g=i.iframe;if(!r&&i&&i.options&&i.o.iframe&&g){let{top:t,left:n}=o(g,i,i.od,!0);a=s.top+t,l=s.left+n}else a=s.top+h-f,l=s.left+p-m;return{top:Math.round(a),left:Math.round(l),width:s.width,height:s.height}}},5700:function(t,i,n){"use strict";n.d(i,{position:function(){return function t(i,n,r=!1){var s,a;let l=i.getBoundingClientRect(),c=l.left,d=l.top;if((0,o.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(i)&&!r){let{left:i,top:o}=t(n.iframe,n,!0);c+=i,d+=o}return{left:Math.round(c),top:Math.round(d),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var o=n(19306)},87058:function(t,i,n){"use strict";n.d(i,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,i,n)=>n.toUpperCase())},67477:function(t,i,n){"use strict";n.d(i,{fuzzySearchIndex:function(){return r}});var o=n(82758);function r(t,i,n=0,s=1){let a=0,l=0,c=-1,d=0,u=0;for(l=n;a<t.length&&l<i.length;)t[a].toLowerCase()===i[l].toLowerCase()?(a++,d++,u=0,-1===c&&(c=l)):a>0&&(u>=s&&i[l]!==o.INVISIBLE_SPACE?(a=0,c=-1,d=0,u=0,l--):(u++,d++)),l++;return a===t.length?[c,d]:[-1,0]}},56967:function(t,i,n){"use strict";n.d(i,{i18n:function(){return d},sprintf:function(){return c}});var o=n(82758),r=n(70799),s=n(36409),a=n(43555),l=n(6441);let c=(t,i)=>{if(!i||!i.length)return t;let n=/%([sd])/g,o=n.exec(t),r=t,s=0;for(;o&&void 0!==i[s];)r=r.replace(o[0],i[s].toString()),s+=1,o=n.exec(t);return r};function d(t,i,n){if(!(0,r.isString)(t))throw(0,a.error)("i18n: Need string in first argument");if(!t.length)return t;let d=!!(null==n?void 0:n.debugLanguage),u={},h=t=>i&&i.length?c(t,i):t,p=(0,a.defaultLanguage)(l.Config.defaultOptions.language,l.Config.defaultOptions.language),f=(0,a.defaultLanguage)(null==n?void 0:n.language,p),m=i=>{if(!i)return;if((0,r.isString)(i[t]))return h(i[t]);let n=t.toLowerCase();if((0,r.isString)(i[n]))return h(i[n]);let o=(0,s.ucfirst)(t);if((0,r.isString)(i[o]))return h(i[o])};void 0!==o.lang[f]?u=o.lang[f]:d||(u=void 0!==o.lang[p]?o.lang[p]:o.lang.en);let g=null==n?void 0:n.i18n;if(g&&g[f]){let t=m(g[f]);if(t)return t}return m(u)||(!d&&o.lang.en&&(0,r.isString)(o.lang.en[t])&&o.lang.en[t]?h(o.lang.en[t]):d?"{"+t+"}":(o.IS_PROD,h(t)))}},59007:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return a.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return r.fuzzySearchIndex},i18n:function(){return s.i18n},kebabCase:function(){return a.kebabCase},sprintf:function(){return s.sprintf},stringify:function(){return l.stringify},trim:function(){return c.trim},trimChars:function(){return c.trimChars},trimInv:function(){return c.trimInv},ucfirst:function(){return d.ucfirst}});var o=n(87058),r=n(67477),s=n(56967),a=n(12475),l=n(67462),c=n(49055),d=n(36409)},12475:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return r},kebabCase:function(){return o}});let o=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},67462:function(t,i,n){"use strict";function o(t,i={}){if("object"!=typeof t)return t+"";let n=new Set(i.excludeKeys),r=new WeakMap;return JSON.stringify(t,(t,i)=>{if(!n.has(t)){if("object"==typeof i&&null!=i){if(r.get(i))return"[refObject]";r.set(i,!0)}return i}},i.prettify)}n.d(i,{stringify:function(){return o}})},49055:function(t,i,n){"use strict";n.d(i,{trim:function(){return r},trimChars:function(){return s},trimInv:function(){return a}});var o=n(82758);function r(t){return t.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function s(t,i){return t.replace(RegExp(`[${i}]+$`),"").replace(RegExp(`^[${i}]+`),"")}function a(t){return t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(t,i,n){"use strict";function o(t){return t.length?t[0].toUpperCase()+t.substring(1):""}n.d(i,{ucfirst:function(){return o}})},25726:function(t,i,n){"use strict";n.d(i,{alignElement:function(){return l},clearAlign:function(){return a},hAlignElement:function(){return s}});var o=n(22732),r=n(41180);function s(t,i){i&&"normal"!==i?"center"!==i?((0,r.css)(t,"float",i),(0,r.clearCenterAlign)(t)):(0,r.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(t,"float")&&-1!==["right","left"].indexOf((0,r.css)(t,"float").toString().toLowerCase())&&(0,r.css)(t,"float",""),(0,r.clearCenterAlign)(t))}function a(t){o.Dom.each(t,t=>{o.Dom.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))})}function l(t,i){if(o.Dom.isNode(i)&&o.Dom.isElement(i))switch(a(i),t.toLowerCase()){case"justifyfull":i.style.textAlign="justify";break;case"justifyright":i.style.textAlign="right";break;case"justifyleft":i.style.textAlign="left";break;case"justifycenter":i.style.textAlign="center"}}},63799:function(t,i,n){"use strict";n.d(i,{alreadyLoadedList:function(){return s},appendScriptAsync:function(){return l},appendStyleAsync:function(){return c},loadNext:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?l(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}},loadNextStyle:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?c(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}}});var o=n(70799),r=n(66292);let s=new Map,a=t=>(i,n)=>{if(s.has(n))return s.get(n);let o=t(i,n);return s.set(n,o),o},l=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,r.completeUrl)(i)});t.o.nonce&&s.setAttribute("nonce",t.o.nonce),t.e.one(s,"error",o).one(s,"load",n),t.od.body.appendChild(s)})),c=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("link");s.rel="stylesheet",s.media="all",s.crossOrigin="anonymous",t.o.nonce&&s.setAttribute("nonce",t.o.nonce),t.isInDestruct||t.e.on(s,"load",()=>n(s)).on(s,"error",o),s.href=(0,r.completeUrl)(i),t.o.shadowRoot?t.o.shadowRoot.appendChild(s):t.od.body.appendChild(s)}))},38837:function(t,i,n){"use strict";n.d(i,{assert:function(){return r}});class o extends Error{constructor(t){super(t),this.name="AssertionError"}}function r(t,i){if(!t)throw new o("Assertion failed: "+i)}},29960:function(t,i,n){"use strict";n.d(i,{attr:function(){return function t(i,n,c){if(!i||!(0,o.isFunction)(i.getAttribute))return null;if(!(0,s.isString)(n))return Object.keys(n).forEach(o=>{let s=n[o];(0,r.isPlainObject)(s)&&"style"===o?(0,l.css)(i,s):("className"===o&&(o="class"),t(i,o,s))}),null;let d=(0,a.CamelCaseToKebabCase)(n);if(/^-/.test(d)){let n=t(i,"data"+d);if(n)return n;d=d.substr(1)}if(void 0!==c)if(null==c)i.hasAttribute(d)&&i.removeAttribute(d);else{let t=c.toString();return"IMG"===i.nodeName&&("width"===d||"height"===d)&&(t=t.replace("px","")),i.setAttribute(d,t),t}return i.getAttribute(d)}}});var o=n(23282),r=n(72430),s=n(70799),a=n(12475),l=n(41180)},97639:function(t,i,n){"use strict";n.d(i,{browser:function(){return o}});let o=t=>{let i=navigator.userAgent.toLowerCase(),n=/(firefox)[\s/]([\w.]+)/.exec(i)||/(chrome)[\s/]([\w.]+)/.exec(i)||/(webkit)[\s/]([\w.]+)/.exec(i)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(i)||/(msie)[\s]([\w.]+)/.exec(i)||/(trident)\/([\w.]+)/.exec(i)||0>i.indexOf("compatible")||[];return"version"===t?n[2]:"webkit"===t?"chrome"===n[1]||"webkit"===n[1]:"ff"===t?"firefox"===n[1]:"msie"===t?"trident"===n[1]||"msie"===n[1]:n[1]===t}},44710:function(t,i,n){"use strict";n.d(i,{buildQuery:function(){return r}});var o=n(72430);let r=(t,i)=>{let n=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,c=t[a];n.push((0,o.isPlainObject)(c)?r(c,l):s(l)+"="+s(c))}return n.join("&")}},66292:function(t,i,n){"use strict";n.d(i,{completeUrl:function(){return r}});var o=n(82758);let r=t=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},68934:function(t,i,n){"use strict";n.d(i,{ConfigDeepFlatten:function(){return function t(i){return(0,u.keys)(i,!1).reduce((n,o)=>(n[o]=(0,r.isPlainObject)(i[o])?t(i[o]):i[o],n),{})}},ConfigFlatten:function(){return h},ConfigMerge:function(){return function t(i,n){Object.keys(n).forEach(o=>{if((0,d.isUnsafeProtoKey)(o))return;let s=n[o],a=i[o];(0,r.isPlainObject)(s)&&(0,r.isPlainObject)(a)&&!(0,c.isAtom)(s)?t(a,s):i[o]=s})}},ConfigProto:function(){return function t(i,n,u=0){if(Object.getPrototypeOf(i)!==Object.prototype)return i;let h=l.Config.defaultOptions;if((0,s.isString)(i.preset)){if(void 0!==h.presets[i.preset]){let t=h.presets[i.preset];Object.keys(t).forEach(n=>{(0,a.isVoid)(i[n])&&(i[n]=t[n])})}delete i.preset}let p={};return Object.keys(i).forEach(s=>{if((0,d.isUnsafeProtoKey)(s))return;let a=i[s],l=n?n[s]:null;if((0,r.isPlainObject)(a)&&(0,r.isPlainObject)(l)&&!(0,c.isAtom)(a)){p[s]=t(a,l,u+1);return}if(0!==u&&(0,o.isArray)(a)&&!(0,c.isAtom)(a)&&(0,o.isArray)(l)){p[s]=[...a,...l.slice(a.length)];return}p[s]=a}),Object.setPrototypeOf(p,n),p}}});var o=n(68345),r=n(72430),s=n(70799),a=n(86068),l=n(6441),c=n(97735),d=n(69175),u=n(37790);function h(t){return(0,u.keys)(t,!1).reduce((i,n)=>(i[n]=t[n],i),{})}},55877:function(t,i,n){"use strict";n.d(i,{convertMediaUrlToVideoEmbed:function(){return a}});var o=n(82758),r=n(26049),s=n(82501);let a=(t,{width:i=400,height:n=345}={})=>{if(!(0,r.isURL)(t))return t;let a=o.globalDocument.createElement("a");a.href=t,i||(i=400),n||(n=345);let l=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":{let o=a.pathname.split("/").filter(Boolean),r=o.findIndex(t=>/^\d+$/.test(t));if(-1===r)return t;let s=o[r],c=o[r+1];return c&&0===r&&(s+="/"+c),'<iframe width="'+i+'" height="'+n+'" src="'+l+"//player.vimeo.com/video/"+s+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let o=(a.search?(0,s.parseQuery)(a.search):{}).v||a.pathname.substring(1);return(o=o.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+i+'" height="'+n+'" src="'+l+"//www.youtube.com/embed/"+o+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},41180:function(t,i,n){"use strict";n.d(i,{clearCenterAlign:function(){return d},css:function(){return c}});var o=n(87612),r=n(72430),s=n(3760),a=n(87058),l=n(12475);function c(t,i,n,d=!1){if((0,o.isBoolean)(n)&&(d=n,n=void 0),(0,r.isPlainObject)(i)||void 0!==n){let o=(t,i,n)=>{void 0!==(n=(0,s.normalizeCssNumericValue)(i,n))&&(null==n||c(t,i,!0)!==(0,s.normalizeCssValue)(i,n))&&(t.style[i]=n)};if((0,r.isPlainObject)(i)){let n=Object.keys(i);for(let r=0;r<n.length;r+=1)o(t,(0,a.camelCase)(n[r]),i[n[r]])}else o(t,(0,a.camelCase)(i),n);return""}let u=(0,l.kebabCase)(i),h=t.ownerDocument||document,p=!!h&&(h.defaultView||h.parentWindow),f=t.style[i],m="";return void 0!==f&&""!==f?m=f:p&&!d&&(m=p.getComputedStyle(t).getPropertyValue(u)),s.NUMBER_FIELDS_REG.test(i)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,s.normalizeCssValue)(i,m)}let d=t=>{"block"===c(t,"display")&&c(t,"display","");let{style:i}=t;"auto"===i.marginLeft&&"auto"===i.marginRight&&(i.marginLeft="",i.marginRight="")}},15456:function(t,i,n){"use strict";n.d(i,{ctrlKey:function(){return o}});let o=t=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1}},86583:function(t,i,n){"use strict";n.d(i,{dataBind:function(){return s}});var o=n(39955);let r=new WeakMap,s=(t,i,n)=>{let s=r.get(t);if(!s){s={},r.set(t,s);let i=null;(0,o.isViewObject)(t.j)&&(i=t.j.e),(0,o.isViewObject)(t)&&(i=t.e),i&&i.on("beforeDestruct",()=>{r.delete(t)})}return void 0===n?s[i]:(s[i]=n,n)}},96325:function(t,i,n){"use strict";n.d(i,{defaultLanguage:function(){return s}});var o=n(82758),r=n(70799);let s=(t,i="en")=>"auto"!==t&&(0,r.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):i},82760:function(t,i,n){"use strict";n.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var o=n(32880);function r(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function a(t){return new o.OptionsError(t)}},93661:function(t,i,n){"use strict";function o(t="Aborted"){return new DOMException(t,"AbortError")}n.d(i,{abort:function(){return o}})},86397:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},32880:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return o.abort}});var o=n(93661),r=n(86397),s=n(57865)},57865:function(t,i,n){"use strict";n.d(i,{OptionsError:function(){return o}});class o extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},89890:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return r.abort},connection:function(){return o.connection},error:function(){return o.error},options:function(){return o.options}});var o=n(82760),r=n(32880)},97735:function(t,i,n){"use strict";n.d(i,{fastClone:function(){return a},isAtom:function(){return r},markAsAtomic:function(){return s}});var o=n(67462);function r(t){return t&&t.isAtom}function s(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function a(t){return JSON.parse((0,o.stringify)(t))}},80568:function(t,i,n){"use strict";n.d(i,{getClassName:function(){return s},keepNames:function(){return r}});var o=n(23282);let r=new Map,s=t=>{var i;if((0,o.isFunction)(t.className))return t.className();let n=(null==(i=t.constructor)?void 0:i.originalConstructor)||t.constructor;if(r.has(n))return r.get(n);if(n.name)return n.name;let s=new RegExp(/^\s*function\s*(\S*)\s*\(/),a=n.toString().match(s);return a?a[1]:""}},94643:function(t,i,n){"use strict";n.d(i,{get:function(){return s}});var o=n(70799),r=n(86068);function s(t,i){if(!(0,o.isString)(t)||!t.length)return null;let n=t.split("."),s=i;try{for(let t of n){if((0,r.isVoid)(s[t]))return null;s=s[t]}}catch(t){return null}return(0,r.isVoid)(s)?null:s}},38420:function(t,i,n){"use strict";n.d(i,{humanSizeToBytes:function(){return o}});let o=t=>{if(/^[0-9.]+$/.test(t.toString()))return parseFloat(t);let i=t.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],o=parseFloat(t.substr(0,t.length-2));return -1!==n.indexOf(i)?o*Math.pow(1024,n.indexOf(i)+1):parseInt(t,10)}},43555:function(t,i,n){"use strict";n.d(i,{$$:function(){return j.$$},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return b.ConnectionError},LimitedStack:function(){return P.LimitedStack},OptionsError:function(){return b.OptionsError},UNSAFE_PROTO_KEYS:function(){return k.UNSAFE_PROTO_KEYS},abort:function(){return b.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return r.alreadyLoadedList},appendScriptAsync:function(){return r.appendScriptAsync},appendStyleAsync:function(){return r.appendStyleAsync},assert:function(){return s.assert},attr:function(){return a.attr},browser:function(){return l.browser},buildQuery:function(){return c.buildQuery},call:function(){return D.call},callPromise:function(){return D.callPromise},callThis:function(){return D.callThis},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},cns:function(){return S.cns},completeUrl:function(){return d.completeUrl},connection:function(){return b.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return p.css},cssPath:function(){return j.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return m.dataBind},defaultLanguage:function(){return g.defaultLanguage},error:function(){return b.error},fastClone:function(){return y.fastClone},get:function(){return w.get},getClassName:function(){return _.getClassName},getDataTransfer:function(){return D.getDataTransfer},getPropertyDescriptor:function(){return D.getPropertyDescriptor},getXPathByElement:function(){return j.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return C.humanSizeToBytes},inView:function(){return T.inView},isAtom:function(){return y.isAtom},isUnsafeProtoKey:function(){return k.isUnsafeProtoKey},keepNames:function(){return _.keepNames},keys:function(){return D.keys},loadImage:function(){return D.loadImage},loadNext:function(){return r.loadNext},loadNextStyle:function(){return r.loadNextStyle},markAsAtomic:function(){return y.markAsAtomic},markDeprecated:function(){return S.markDeprecated},markOwner:function(){return D.markOwner},memorizeExec:function(){return D.memorizeExec},options:function(){return b.options},parseQuery:function(){return x.parseQuery},previewBox:function(){return I.previewBox},refs:function(){return j.refs},reset:function(){return E.reset},resolveElement:function(){return j.resolveElement},scrollIntoViewIfNeeded:function(){return T.scrollIntoViewIfNeeded},set:function(){return A.set}});var o=n(25726),r=n(63799),s=n(38837),a=n(29960),l=n(97639),c=n(44710),d=n(66292),u=n(68934),h=n(55877),p=n(41180),f=n(15456),m=n(86583),g=n(96325),b=n(89890),y=n(97735),w=n(94643),_=n(80568),C=n(38420),k=n(69175),S=n(95942),x=n(82501),I=n(11628),E=n(58844),T=n(26395),j=n(76078),A=n(3703),P=n(50535),D=n(37790)},69175:function(t,i,n){"use strict";n.d(i,{UNSAFE_PROTO_KEYS:function(){return o},isUnsafeProtoKey:function(){return r}});let o=["__proto__","constructor","prototype"];function r(t){return -1!==o.indexOf(t)}},95942:function(t,i,n){"use strict";n.d(i,{cns:function(){return o},markDeprecated:function(){return r}});let o=console;function r(t,i=[""],n=null){return(...r)=>(o.warn(`Method "${i[0]}" deprecated.`+(i[1]?` Use "${i[1]}" instead`:"")),t.call(n,...r))}},82501:function(t,i,n){"use strict";n.d(i,{parseQuery:function(){return o}});let o=t=>{let i={},n=t.substring(1).split("&");for(let t=0;t<n.length;t+=1){let o=n[t].split("=");i[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return i}},11628:function(t,i,n){"use strict";n.d(i,{previewBox:function(){return c}});var o=n(2748),r=n(70799),s=n(29960),a=n(41180),l=n(76078);function c(t,i,n="px",d=null){let u=[],h=function(t,i){let n=[];try{(0,l.$$)("img",t.editor).forEach(r=>{let a=[(0,s.attr)(r,"width"),(0,s.attr)(r,"height"),r.src];(0,s.attr)(r,{width:r.offsetWidth+i,height:r.offsetHeight+i});let l=t.createInside.a();t.ed.body.appendChild(l),l.href=r.src,r.src=l.href,o.Dom.safeRemove(l),n.push(()=>{var t;r.src=null!=(t=a[2])?t:"",(0,s.attr)(r,{width:a[0]||null,height:a[1]||null})})})}catch(t){throw n.forEach(t=>t()),n.length=0,t}return n}(t,n);try{let l=t.e.fire("beforePreviewBox",i,n);if(null!=l)return l;let c=t.c.div("jodit__preview-box jodit-context");d&&d.appendChild(c),(0,a.css)(c,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let i=t.create.element("iframe");(0,a.css)(i,{minWidth:800,minHeight:600,border:0}),c.appendChild(i);let n=i.contentWindow;if(n&&(t.e.fire("generateDocumentStructure.iframe",n.document,t),c=n.document.body,"function"==typeof ResizeObserver)){let o=!1,r=n.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(r),i.style.height=`${r.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||s.observe(r)})},100)),a=()=>{o=!0,s.unobserve(r),s.disconnect(),t.e.off("beforeDestruct",a)};u.push(a),t.e.on("beforeDestruct",a)}}else(0,a.css)(c,{minWidth:1024,minHeight:600,border:0});let p=(i,n)=>{let a=(0,r.isString)(n)?t.c.div():n;(0,r.isString)(n)&&(a.innerHTML=n);for(let t=0;t<a.childNodes.length;t+=1){let n=a.childNodes[t];if(o.Dom.isElement(n)){let t=i.ownerDocument.createElement(n.nodeName);for(let i=0;i<n.attributes.length;i+=1)(0,s.attr)(t,n.attributes[i].nodeName,n.attributes[i].nodeValue);0===n.childNodes.length||o.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(t.textContent=n.textContent):n.innerHTML&&(t.innerHTML=n.innerHTML):p(t,n);try{i.appendChild(t)}catch(t){}}else try{i.appendChild(n.cloneNode(!0))}catch(t){}}};return p(c,h),t.e.fire("afterPreviewBox",c),[c,()=>{u.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},58844:function(t,i,n){"use strict";n.d(i,{reset:function(){return l}});var o=n(82758),r=n(23282),s=n(94643);let a={};function l(t){var i,n;if(!(t in a)){let n=o.globalDocument.createElement("iframe");try{if(n.src="about:blank",o.globalDocument.body.appendChild(n),!n.contentWindow)return null;let i=(0,s.get)(t,n.contentWindow),l=(0,s.get)(t.split(".").slice(0,-1).join("."),n.contentWindow);(0,r.isFunction)(i)&&(a[t]=i.bind(l))}catch(t){if(!o.IS_PROD)throw t}finally{null==(i=n.parentNode)||i.removeChild(n)}}return null!=(n=a[t])?n:null}},26395:function(t,i,n){"use strict";n.d(i,{inView:function(){return r},scrollIntoViewIfNeeded:function(){return s}});var o=n(2748);function r(t,i,n){let o=t.getBoundingClientRect(),r=t,s=o.top,a=o.height;for(;r&&r!==i&&r.parentNode;)if(!(s<=(o=(r=r.parentNode).getBoundingClientRect()).bottom)||s+a<=o.top)return!1;return s<=(n.documentElement&&n.documentElement.clientHeight||0)}function s(t,i,n){o.Dom.isHTMLElement(t)&&!r(t,i,n)&&(i.clientHeight!==i.scrollHeight&&(i.scrollTop=t.offsetTop),r(t,i,n)||t.scrollIntoView())}},76078:function(t,i,n){"use strict";n.d(i,{$$:function(){return h},cssPath:function(){return m},getXPathByElement:function(){return p},refs:function(){return f},resolveElement:function(){return g}});var o=n(82758),r=n(2748),s=n(4510),a=n(70799),l=n(87058),c=n(29960),d=n(89890);let u=1;function h(t,i){let n;if(!o.IS_ES_NEXT&&/:scope/.test(t)&&o.IS_IE&&!(i&&i.nodeType===Node.DOCUMENT_NODE)){let o=i.id,r=o||"_selector_id_"+(Math.random()+"").slice(2)+ ++u;t=t.replace(/:scope/g,"#"+r),o||i.setAttribute("id",r),n=i.parentNode.querySelectorAll(t),o||i.removeAttribute("id")}else n=i.querySelectorAll(t);return[].slice.call(n)}let p=(t,i)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||i===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let n=[].filter.call(t.parentNode.childNodes,i=>i.nodeName===t.nodeName);return p(t.parentNode,i)+"/"+t.nodeName.toLowerCase()+(n.length>1?"["+((0,s.toArray)(n).indexOf(t)+1)+"]":"")},f=t=>("container"in t&&(t=t.container),h("[ref],[data-ref]",t).reduce((t,i)=>{let n=(0,c.attr)(i,"-ref");return n&&(0,a.isString)(n)&&(t[(0,l.camelCase)(n)]=i,t[n]=i),t},{})),m=t=>{if(!r.Dom.isElement(t))return null;let i=[],n=t;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let t=n.nodeName.toLowerCase();if(n.id){t+="#"+n.id,i.unshift(t);break}{let i=n,o=1;do(i=i.previousElementSibling)&&i.nodeName.toLowerCase()===t&&o++;while(i)t+=":nth-of-type("+o+")"}i.unshift(t),n=n.parentNode}return i.join(" > ")};function g(t,i){let n=t;if((0,a.isString)(t))try{n=i.querySelector(t)}catch(i){throw(0,d.error)('String "'+t+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!r.Dom.isElement(n)||!n.cloneNode)throw(0,d.error)('Element "'+t+'" should be string or HTMLElement instance');return n}},3703:function(t,i,n){"use strict";n.d(i,{set:function(){return c}});var o=n(68345),r=n(29807),s=n(72430),a=n(70799),l=n(69175);function c(t,i,n){if(!(0,a.isString)(t)||!t.length)return;let c=t.split(".");if(c.some(l.isUnsafeProtoKey))return;let d=n,u=c[0];for(let t=0;t<c.length-1;t+=1)u=c[t],(0,o.isArray)(d[u])||(0,s.isPlainObject)(d[u])||(d[u]=(0,r.isNumeric)(c[t+1])?[]:{}),d=d[u];d&&(d[c[c.length-1]]=i)}},50535:function(t,i,n){"use strict";n.d(i,{LimitedStack:function(){return o}});class o{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){this.limit=t,this.stack=[]}}},37790:function(t,i,n){"use strict";n.d(i,{call:function(){return l},callPromise:function(){return u},callThis:function(){return c},getDataTransfer:function(){return m},getPropertyDescriptor:function(){return g},keys:function(){return p},loadImage:function(){return h},markOwner:function(){return d},memorizeExec:function(){return f}});var o=n(14773),r=n(86068),s=n(29960),a=n(86583);function l(t,...i){return t(...i)}function c(t,i,...n){return t.apply(i,n)}function d(t,i){(0,s.attr)(i,"data-editor_id",t.id),i.component||Object.defineProperty(i,"jodit",{value:t})}function u(t,i){return(0,o.isPromise)(t)?t.then(t=>t,()=>null).finally(i):null==i?void 0:i()}let h=(t,i)=>i.async.promise((n,o)=>{let r=new Image,s=()=>{i.e.off(r),null==o||o()},a=()=>{i.e.off(r),n(r)};i.e.one(r,"load",a).one(r,"error",s).one(r,"abort",s),r.src=t,r.complete&&a()}),p=(t,i=!0)=>{if(i)return Object.keys(t);let n=[];for(let i in t)n.push(i);return n},f=(t,i,{control:n},o)=>{var s;let l="button"+n.command,c=null!=(s=n.args&&n.args[0])?s:(0,a.dataBind)(t,l);if((0,r.isVoid)(c))return!1;(0,a.dataBind)(t,l,c),o&&(c=o(c)),t.execCommand(n.command,!1,null!=c?c:void 0)},m=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch(t){return null}};function g(t,i){let n;do n=Object.getOwnPropertyDescriptor(t,i),t=Object.getPrototypeOf(t);while(!n&&t)return n}},31359:function(t,i,n){"use strict";n.d(i,{init:function(){return a}});var o=n(82758),r=n(60132),s=n(14041);function a(t,i,n,a,l,c,d){if((0,r.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(i,a),c.delete(i),a.hasStyle&&(0,s.loadStyle)(t,i).catch(t=>{o.IS_PROD}),a.styles&&(d(t,i,"style").innerHTML=a.styles)}},14041:function(t,i,n){"use strict";n.d(i,{loadExtras:function(){return u},loadStyle:function(){return c}});var o=n(82758),r=n(12475),s=n(63799),a=n(89672);let l=new Set;async function c(t,i){let n=d(t,i,!1);if(!l.has(n))return l.add(n),(0,s.appendStyleAsync)(t,n)}function d(t,i,n){i=(0,r.kebabCase)(i);let o=t.minified?".min":"";return t.basePath+"plugins/"+i+"/"+i+o+"."+(n?"js":"css")}function u(t,i,n,r){try{let o=n.filter(i=>!t.has((0,a.normalizeName)(i.name)));o.length&&o.map(t=>{let n=t.url||d(i,t.name,!0);return(0,s.appendScriptAsync)(i,n).then(r).catch(()=>null)})}catch(t){if(!o.IS_PROD)throw t}}},48591:function(t,i,n){"use strict";n.d(i,{makeInstance:function(){return s}});var o=n(82758),r=n(23282);function s(t,i){try{try{return(0,r.isFunction)(i)?new i(t):i}catch(n){if((0,r.isFunction)(i)&&!i.prototype)return i(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},89672:function(t,i,n){"use strict";n.d(i,{normalizeName:function(){return r}});var o=n(12475);function r(t){return(0,o.kebabCase)(t).toLowerCase()}},50911:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return o.Plugin}});var o=n(20356);n(41876)},41876:function(t,i,n){"use strict";n.d(i,{PluginSystem:function(){return f}});var o=n(82758),r=n(57012),s=n(46559),a=n(68345),l=n(60132),c=n(70799),d=n(31359),u=n(14041),h=n(48591),p=n(89672);class f{get size(){return this.__items.size}add(t,i){this.__items.set((0,p.normalizeName)(t),i),r.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,p.normalizeName)(t))}remove(t){this.__items.delete((0,p.normalizeName)(t))}__getFullPluginsList(t){let i=[];return this.__items.forEach((n,o)=>{(!t||t.has(o))&&i.push([o,n])}),i}__init(t){let{extraList:i,disableList:n,filter:r}={extraList:t.o.extraPlugins.map(t=>(0,c.isString)(t)?{name:t}:t),disableList:new Set((0,s.splitArray)(t.o.disablePlugins).map(p.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},f=new Map,m={},g=new Set;t.__plugins=m;let b=()=>{if(t.isInDestruct)return;let i=!1;this.__getFullPluginsList(r).forEach(([o,r])=>{if(n.has(o)||f.has(o))return;let s=null==r?void 0:r.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(t=>n.has(t)))return;if(!s.every(t=>f.has(t)))return void g.add(o)}i=!0;let l=(0,h.makeInstance)(t,r);if(!l){f.set(o,null),g.delete(o);return}(0,d.init)(t,o,r,l,f,g,this.opts.getContainer),m[o]=l}),i&&(t.e.fire("updatePlugins"),b())};i&&i.length&&(0,u.loadExtras)(this.__items,t,i,b),b(),t.e.on("beforeDestruct",()=>{Object.keys(m).forEach(i=>{let n=m[i];(0,l.isDestructable)(n)&&n.destruct(t),delete m[i]}),delete t.__plugins}),o.IS_PROD||g.size}wait(t){return new Promise(i=>{if(this.get(t))return i();let n=()=>{i(),r.eventEmitter.off(`plugin:${t}:ready`,n)};r.eventEmitter.on(`plugin:${t}:ready`,n)})}constructor(t){this.opts=t,this.__items=new Map}}},20356:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return l}});var o=n(91907),r=n(65478),s=n(19306),a=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class l extends o.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:t,buttons:i}=this;i&&(0,s.isJoditObject)(t)&&i.forEach(i=>{t.registerButton(i)})}__afterInit(){this.__inited=!0,this.setStatus(o.STATUSES.ready),this.afterInit(this.jodit)}init(t){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var t;if(this.isInDestruct)return;let{j:i}=this;if(i.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(o.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,s.isJoditObject)(i)&&(null==(t=this.buttons)||t.forEach(t=>{null==i||i.unregisterButton(t)})),this.beforeDestruct(this.j),super.destruct()}constructor(t){super(t),this.buttons=[],this.hasStyle=!1,this.__inited=!1,t.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}l.requires=[],a([r.autobind],l.prototype,"__afterPluginSystemInit",null),a([r.autobind],l.prototype,"__afterInit",null),a([r.autobind],l.prototype,"__beforeDestruct",null)},54079:function(t,i,n){"use strict";n.d(i,{Ajax:function(){return u}});var o=n(8884),r=n(82758),s=n(45219),a=n(21537),l=n(89890),c=n(6441);n(57459);var d=n(98582);class u{className(){return"Ajax"}__buildParams(t,i){return(0,a.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,a.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,i):(0,a.isString)(t)||t instanceof r.globalWindow.FormData||"object"==typeof t&&null!=t&&(0,a.isFunction)(t.append)?t:(0,a.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(t){}return this}send(){this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest();return this.__async.promise(async(o,r)=>{var s;let c=()=>{this.__isFulfilled=!0,r(l.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,o(new d.Response(n,t.status,t.statusText,!t.responseType?t.responseText:t.response))};t.onload=u,t.onabort=()=>{this.__isFulfilled=!0,r(l.abort("Abort connection"))},t.onerror=c,t.ontimeout=c,i.responseType&&(t.responseType=i.responseType),t.onprogress=t=>{var i,n;let o=0;t.lengthComputable&&(o=t.loaded/t.total*100),null==(n=(i=this.options).onProgress)||n.call(i,o)},t.onreadystatechange=()=>{var n,o;null==(o=(n=this.options).onProgress)||o.call(n,10),t.readyState===XMLHttpRequest.DONE&&(i.successStatuses.includes(t.status)?u():t.statusText&&(this.__isFulfilled=!0,r(l.connection(t.statusText))))},t.withCredentials=null!=(s=i.withCredentials)&&s;let{url:h,data:p,method:f}=n;t.open(f,h,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:m}=i;(0,a.isFunction)(m)&&(m=await m.call(this)),m&&t.setRequestHeader&&Object.keys(m).forEach(i=>{t.setRequestHeader(i,m[i])}),this.__async.setTimeout(()=>{t.send(p?this.__buildParams(p):void 0)},0)})}async *stream(){var t;this.__activated=!0;let{xhr:i,o:n}=this,o=this.prepareRequest(),r=0,s="",c=[],d=null,u=!1,h=null,p=()=>{if(d){let t=d;d=null,t()}},f=t=>{var n;let o=i.responseText;s+=o.substring(r),r=o.length;let a=s.split(`
|
|
17
|
+
`,{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,r)}}r=s.prototype,s.prototype.controls={}},26992:function(t,i,n){"use strict";n.d(i,{Async:function(){return m}});var o=n(82758),r=n(91898),s=n(12045),a=n(23282),l=n(84767),c=n(72430),d=n(14773),u=n(70799),h=n(86068),p=n(38837),f=n(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...n){if(this.isDestructed)return 0;let o={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(o=i).timeout||0),o.label&&this.clearLabel(o.label);let s=(0,r.setTimeout)(t,i,...n),a=o.label||s;return this.timers.set(a,s),this.__callbacks.set(a,t),s}updateTimeout(t,i){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let n=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{label:t,timeout:i})}clearLabel(t){t&&this.timers.has(t)&&((0,r.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,u.isString)(t))return this.clearLabel(t);(0,r.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,i,n=!1){let o=0,l=!1,u=[],h=(...i)=>{if(!l){o=0;let n=t(...i);if(l=!0,u.length){let t=()=>{u.forEach(t=>t()),u.length=0};(0,d.isPromise)(n)?n.finally(t):t()}}},p=(...s)=>{l=!1,i?(!o&&n&&h(...s),(0,r.clearTimeout)(o),o=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,o)):h(...s)};return(0,c.isPlainObject)(i)&&i.promisify?(...t)=>{let i=this.promise(t=>{u.push(t)}).catch(t=>{if((0,s.isAbortError)(t))return null;throw t});return p(...t),i}:p}microDebounce(t,i=!1){let n,o=!1,r=!0;return(...s)=>{if(n=s,o){r=!0;return}r=!0,i&&(r=!1,t(...n)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&r&&t(...n)})}}throttle(t,i,n=!1){let o=null,r,s,l;return(...n)=>{(r=!0,l=n,i)?o||(s=()=>{r?(t(...l),r=!1,o=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,o)):o=null})():t(...l)}}promise(t){let i=()=>{},n=new Promise((n,o)=>{i=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(n,o)});return!n.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(n.finally=t=>(n.then(t).catch(t),n)),n.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),n.rejectCallback=i,n}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(i=>{t.then(t=>(i("fulfilled"),t),t=>{throw i("rejected"),t}),this.setTimeout(()=>{i("pending")},100)});let i={};return Promise.race([t,i]).then(t=>t===i?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,i={timeout:100}){let n=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(n),n}requestIdlePromise(t){return this.promise(i=>{let n=this.requestIdleCallback(()=>i(n),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let n=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){let o=globalThis.scheduler.postTask(t,{...i,signal:n.signal});return o.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),o}return this.promise((o,r)=>{let s=this.setTimeout(()=>{try{o(t())}catch(t){r(t)}this.__controllers.delete(n)},i.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(n),r((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let i=requestAnimationFrame(t);return this.__requestsRaf.add(i),i}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,r.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var t,i,n,o,r;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(t=null==queueMicrotask?void 0:queueMicrotask.bind(window))?t:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(n=null==(i=window.requestIdleCallback)?void 0:i.bind(window))?n:(t,i)=>{var n;let o=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(n=null==i?void 0:i.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(r=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},8884:function(t,i,n){"use strict";n.d(i,{Async:function(){return o.Async}});var o=n(26992)},4012:function(t,i,n){"use strict";n.d(i,{Component:function(){return c}});var o=n(8884),r=n(78213),s=n(580),a=n(21537);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,i,n){let o=[this.componentName];return t&&o.push("__"+(t=t.replace(/[^a-z0-9-]/gi,"-"))),i&&(o.push("_",i),o.push("_",(0,a.isVoid)(n)?"true":n.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,i){return(0,a.get)(t,i||this)}get isReady(){return this.componentStatus===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,i){if(t===this.__componentStatus)return;i===this&&(this.__componentStatus=t);let n=Object.getPrototypeOf(this);n&&(0,a.isFunction)(n.setStatusComponent)&&n.setStatusComponent(t,i);let o=l.get(this),r=null==o?void 0:o[t];r&&r.length&&r.forEach(t=>t(i))}hookStatus(t,i){let n=l.get(this);n||(n={},l.set(this,n)),n[t]||(n[t]=[]),n[t].push(i)}static isInstanceOf(t,i){return t instanceof i}constructor(){this.async=new o.Async,this.ownerWindow=window,this.__componentStatus=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,s.uniqueUid)()}}c.STATUSES=r.STATUSES},91907:function(t,i,n){"use strict";n.d(i,{Component:function(){return o.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return s.ViewComponent}});var o=n(4012),r=n(78213),s=n(80480)},78213:function(t,i,n){"use strict";n.d(i,{STATUSES:function(){return o}});let o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(t,i,n){"use strict";n.d(i,{ViewComponent:function(){return r}});var o=n(4012);class r extends o.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...i){return this.j.i18n(t,...i)}setParentView(t){return this.jodit=t,t.ow&&(this.ownerWindow=t.ow),t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),this.setParentView(t)}}},82758:function(t,i,n){"use strict";n.r(i),n.d(i,{ACCURACY:function(){return W},APP_VERSION:function(){return o},BASE_PATH:function(){return ef},BASE_PATH_IS_MIN:function(){return em},BR:function(){return G},CLIPBOARD_ID:function(){return ev},COMMAND_KEYS:function(){return $},EMULATE_DBLCLICK_TIMEOUT:function(){return en},ES:function(){return r},FAT_MODE:function(){return d},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return j},INSERT_AS_HTML:function(){return eo},INSERT_AS_TEXT:function(){return es},INSERT_CLEAR_HTML:function(){return er},INSERT_ONLY_TEXT:function(){return ea},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return y},IS_BLOCK:function(){return x},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return Z},IS_INLINE:function(){return I},IS_MAC:function(){return ec},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return ed},KEY_ALT:function(){return z},KEY_BACKSPACE:function(){return D},KEY_DELETE:function(){return U},KEY_DOWN:function(){return F},KEY_ENTER:function(){return M},KEY_ESC:function(){return R},KEY_F3:function(){return q},KEY_LEFT:function(){return B},KEY_META:function(){return P},KEY_RIGHT:function(){return O},KEY_SPACE:function(){return H},KEY_TAB:function(){return L},KEY_UP:function(){return N},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ei},MODE_SOURCE:function(){return J},MODE_SPLIT:function(){return X},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return m},NEARBY:function(){return V},NO_EMPTY_TAGS:function(){return A},PARAGRAPH:function(){return K},PASSIVE_EVENTS:function(){return ew},SAFE_COUNT_CHANGE_CALL:function(){return el},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ey},SPACE_REG_EXP:function(){return w},SPACE_REG_EXP_END:function(){return C},SPACE_REG_EXP_START:function(){return _},TEMP_ATTR:function(){return eg},TEXT_HTML:function(){return ee},TEXT_PLAIN:function(){return Q},TEXT_RTF:function(){return et},TOKENS:function(){return p},globalDocument:function(){return S},globalWindow:function(){return k},lang:function(){return eb}});let o="4.13.7",r="es2021",s=!0,a=!0,l=!0,c=!1,d=!0,u="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m=" ",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,y=()=>/^[\uFEFF]+/g,w=()=>/[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,C=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,k="u">typeof window?window:void 0,S="u">typeof document?document:void 0,x=/^(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,I=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],j=new Set([...T,"br","hr"]),A=new Set(T),P="Meta",D="Backspace",L="Tab",M="Enter",R="Escape",z="Alt",B="ArrowLeft",N="ArrowUp",O="ArrowRight",F="ArrowDown",H="Space",U="Delete",q="F3",V=5,W=10,$=[P,D,U,N,F,O,B,M,R,q,L],G="br",K="p",Y=1,J=2,X=3,Z="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Q=Z?"text":"text/plain",ee=Z?"html":"text/html",et=Z?"rtf":"text/rtf",ei="jodit-selection_marker",en=300,eo="insert_as_html",er="insert_clear_html",es="insert_as_text",ea="insert_only_text",el=10,ec=void 0!==k&&/Mac|iPod|iPhone|iPad/.test(k.navigator.platform),ed={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ec?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},eu=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:eh,isMin:ep}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return eu(t.src);let i=S.querySelectorAll("script[src]");return i&&i.length?eu(i[i.length-1].src):eu(k.location.href)})(),ef=eh,em=ep,eg="data-jodit-temp",eb={},ev="clipboard",ey="source-consumer",ew=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(t,i,n){"use strict";n.d(i,{Create:function(){return l}});var o=n(82758),r=n(2748),s=n(21537),a=n(38837);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(t,i,n){let o=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(o),i&&((0,s.isPlainObject)(i)?(0,s.attr)(o,i):n=i),n&&(0,s.asArray)(n).forEach(t=>o.appendChild((0,s.isString)(t)?this.fromHTML(t):t)),o}div(t,i,n){let o=this.element("div",i,n);return t&&(o.className=t),o}sandbox(){var t;let i=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(i);let n=null==(t=i.contentWindow)?void 0:t.document;if((0,a.assert)(n,"iframe.contentWindow.document"),!n)throw Error("Iframe error");return n.open(),n.write("<!DOCTYPE html><html><head></head><body></body></html>"),n.close(),[n.body,i]}span(t,i,n){let o=this.element("span",i,n);return t&&(o.className=t),o}a(t,i,n){let o=this.element("a",i,n);return t&&(o.className=t),o}text(t){return this.doc.createTextNode(t)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,i){let n=this.div();n.innerHTML=t.toString();let o=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(r.Dom.safeRemove(o),i){let t=(0,s.refs)(o);Object.keys(i).forEach(n=>{let o=t[n];o&&!1===i[n]&&r.Dom.hide(o)})}return o}applyCreateAttributes(t){if(this.createAttributes){let i=this.createAttributes;if(i&&i[t.tagName.toLowerCase()]){let n=i[t.tagName.toLowerCase()];(0,s.isFunction)(n)?n(t):(0,s.isPlainObject)(n)&&(0,s.attr)(t,n)}}}constructor(t,i){this.document=t,this.createAttributes=i}}},12060:function(t,i,n){"use strict";n.d(i,{Create:function(){return o.Create}});var o=n(20218)},45219:function(t,i,n){"use strict";n.d(i,{autobind:function(){return r}});var o=n(23282);function r(t,i,n){if(!(0,o.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=n.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},33433:function(t,i,n){"use strict";n.d(i,{cache:function(){return c},cacheHTML:function(){return d},cached:function(){return l}});var o=n(78213),r=n(2748),s=n(27613),a=n(82760);function l(t,i){let n=Object.getOwnPropertyDescriptor(t,i);return!n||(0,s.isFunction)(n.get)?null:n.value}function c(t,i,n){let o=n.get;if(!o)throw(0,a.error)("Getter property descriptor expected");n.get=function(){let t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,i,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:t}),t}}function d(t,i,n){let l=n.value;if(!(0,s.isFunction)(l))throw(0,a.error)("Handler must be a Function");let c=!0,d=new WeakMap;n.value=function(...t){var i;if(c&&d.has(this.constructor))return null==(i=d.get(this.constructor))?void 0:i.cloneNode(!0);let n=l.apply(this,t);return c&&r.Dom.isElement(n)&&d.set(this.constructor,n),c?n.cloneNode(!0):n},t.hookStatus(o.STATUSES.ready,t=>{c=!!((0,s.isViewObject)(t)?t:t.jodit).options.cache})}},87325:function(t,i,n){"use strict";n.d(i,{component:function(){return a},getComponentClass:function(){return l}});var o=n(82758),r=n(80568);let s=new Map;function a(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}let n=(0,r.getClassName)(t.prototype);if(s.has(n)&&!o.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return s.set(n,i),i}function l(t){return s.get(t)}},81577:function(t,i,n){"use strict";n.d(i,{debounce:function(){return l},throttle:function(){return c}});var o=n(91907),r=n(27613),s=n(38837),a=n(89890);function l(t,i=!1,n="debounce"){return(l,c)=>{let d=l[c];if(!(0,r.isFunction)(d))throw(0,a.error)("Handler must be a Function");return l.hookStatus(o.STATUSES.ready,o=>{let{async:a}=o;(0,s.assert)(null!=a,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let l=(0,r.isFunction)(t)?t(o):t,d=(0,r.isNumber)(l)||(0,r.isPlainObject)(l)?l:o.defaultTimeout;Object.defineProperty(o,c,{configurable:!0,value:a[n](o[c].bind(o),d,i)})}),{configurable:!0,get(){return d.bind(this)}}}}function c(t,i=!1){return l(t,i,"throttle")}},55153:function(t,i,n){"use strict";n.d(i,{derive:function(){return r}});var o=n(23282);function r(...t){return i=>{let n=i.prototype;for(let i=0;i<t.length;i++){let r=t[i],s=Object.getOwnPropertyNames(r.prototype);for(let t=0;t<s.length;t++){let i=s[t],a=Object.getOwnPropertyDescriptor(r.prototype,i);null!=a&&(0,o.isFunction)(a.value)&&!(0,o.isFunction)(n[i])&&Object.defineProperty(n,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},97357:function(t,i,n){"use strict";n.d(i,{hook:function(){return s}});var o=n(23282),r=n(89890);function s(t){return(i,n)=>{if(!(0,o.isFunction)(i[n]))throw(0,r.error)("Handler must be a Function");i.hookStatus(t,t=>{t[n].call(t)})}}},78927:function(t,i,n){"use strict";n.d(i,{idle:function(){return a}});var o=n(91907),r=n(23282),s=n(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:n}=t,o=t[i];t[i]=(...i)=>n.requestIdleCallback(o.bind(t,...i))})}}},65478:function(t,i,n){"use strict";n.r(i),n.d(i,{autobind:function(){return o.autobind},cache:function(){return r.cache},cacheHTML:function(){return r.cacheHTML},cached:function(){return r.cached},component:function(){return s.component},debounce:function(){return a.debounce},derive:function(){return l.derive},getComponentClass:function(){return s.getComponentClass},hook:function(){return c.hook},idle:function(){return d.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return a.throttle},wait:function(){return p.wait},watch:function(){return f.watch}});var o=n(45219),r=n(33433),s=n(87325),a=n(81577),l=n(55153),c=n(97357),d=n(78927),u=n(31589),h=n(53213),p=n(13525),f=n(37133)},31589:function(t,i,n){"use strict";n.d(i,{nonenumerable:function(){return o}});let o=(t,i)=>{!1!==(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable&&Object.defineProperty(t,i,{enumerable:!1,set(t){Object.defineProperty(this,i,{enumerable:!1,writable:!0,value:t})}})}},53213:function(t,i,n){"use strict";n.d(i,{persistent:function(){return s}});var o=n(78213),r=n(39955);function s(t,i){t.hookStatus(o.STATUSES.ready,t=>{let n=(0,r.isViewObject)(t)?t:t.jodit,o=`${n.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=n.storage.get(o))?t:s},set(t){n.storage.set(o,t)}})})}},13525:function(t,i,n){"use strict";n.d(i,{wait:function(){return a}});var o=n(78213),r=n(23282),s=n(89890);function a(t){return(i,n)=>{let a=i[n];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(o.STATUSES.ready,i=>{let{async:o}=i,r=i[n],s=0;Object.defineProperty(i,n,{configurable:!0,value:function n(...a){o.clearTimeout(s),t(i)?r.apply(i,a):s=o.setTimeout(()=>n(...a),10)}})})}}},37133:function(t,i,n){"use strict";n.d(i,{watch:function(){return h}});var o=n(78213),r=n(73026),s=n(46559),a=n(23282),l=n(72430),c=n(39955),d=n(89890),u=n(37790);function h(t,i){return(n,h)=>{var p;if(!(0,a.isFunction)(n[h]))throw(0,d.error)("Handler must be a Function");let f=null==(p=null==i?void 0:i.immediately)||p,m=null==i?void 0:i.context,g=i=>{let o=(0,c.isViewObject)(i)?i:i.jodit,d=(t,...n)=>{if(!i.isInDestruct)return i[h](t,...n)};f||(d=i.async.microDebounce(d,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[n,r]=t.split(":"),s=m;n.length&&(s=i.get(n)),(0,a.isFunction)(s)&&(s=s(i)),o.events.on(s||i,r,d),s||o.events.on(r,d),i.hookStatus("beforeDestruct",()=>{o.events.off(s||i,r,d).off(r,d)});return}let s=t.split("."),[c]=s,h=s.slice(1),p=i[c];(0,l.isPlainObject)(p)&&(0,r.observable)(p).on("change."+h.join("."),d);let f=(0,u.getPropertyDescriptor)(n,c);Object.defineProperty(i,c,{configurable:!0,set(t){let n=p;n!==t&&(p=t,f&&f.set&&f.set.call(i,t),(0,l.isPlainObject)(p)&&(p=(0,r.observable)(p)).on("change."+h.join("."),d),d(c,n,p))},get:()=>f&&f.get?f.get.call(i):p})})};(0,a.isFunction)(n.hookStatus)?n.hookStatus(o.STATUSES.ready,g):g(n)}}},2748:function(t,i,n){"use strict";n.d(i,{Dom:function(){return _}});var o=n(82758),r=n(4510),s=n(68345),a=n(23282),l=n(58487),c=n(42320),d=n(70799),u=n(86068),h=n(49055),p=n(38837),f=n(29960),m=n(41180),g=n(86583),b=n(89890),y=n(37790);let w=RegExp(`<([a-z]+)[^>]+${o.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class _{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,i,n){let o,r=t;n.s.save();let s=!1;do s=!1,(o=r.nextSibling)&&!_.isBlock(o)&&!_.isTag(o,"br")&&(s=!0,r=o);while(s)return _.__wrapElements(i,n,t,r)}static __wrapElements(t,i,n,o){let r=(0,d.isString)(t)?i.createInside.element(t):t;n.parentNode&&n.parentNode.insertBefore(r,n);let s=n;for(;s&&(s=n.nextSibling,r.appendChild(n),n!==o&&s);)n=s;return i.s.restore(),r}static wrapInline(t,i,n){let o,r=t,s=t;n.s.save();let a=!1;do a=!1,(o=r.previousSibling)&&!_.isBlock(o)&&(a=!0,r=o);while(a)do a=!1,(o=s.nextSibling)&&!_.isBlock(o)&&(a=!0,s=o);while(a)return _.__wrapElements(i,n,r,s)}static wrap(t,i,n){let o=(0,d.isString)(i)?n.element(i):i;if(_.isNode(t)){if(!t.parentNode)throw(0,b.error)("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{let i=t.extractContents();t.insertNode(o),o.appendChild(i)}return o}static unwrap(t){let i=t.parentNode;if(i){for(;t.firstChild;)i.insertBefore(t.firstChild,t);_.safeRemove(t)}}static between(t,i,n){let o=t;for(;o&&o!==i&&!(t!==o&&n(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)if((o=o.parentNode)===i)return;t=null==o?void 0:o.nextSibling}o=t}}static replace(t,i,n,o=!1,s=!1){let a;if((0,l.isHTML)(i)&&((0,p.assert)(n,"Need create instance for new tag"),i=n.fromHTML(i)),(0,d.isString)(i)?((0,p.assert)(n,"Need create instance for new tag"),a=n.element(i)):a=i,!s)for(;t.firstChild;)a.appendChild(t.firstChild);return o&&_.isElement(t)&&_.isElement(a)&&(0,r.toArray)(t.attributes).forEach(t=>{a.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return _.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return _.each(t,t=>_.isEmptyTextNode(t))}static isContentEditable(t,i){return _.isNode(t)&&!_.closest(t,t=>_.isElement(t)&&"false"===t.getAttribute("contenteditable"),i)}static isEmpty(t,i=o.NO_EMPTY_TAGS){let n;if(!t)return!0;n=(0,a.isFunction)(i)?i:t=>i.has(t.nodeName.toLowerCase());let r=t=>null==t.nodeValue||0===(0,h.trim)(t.nodeValue).length;return _.isText(t)?r(t):!(_.isElement(t)&&n(t))&&_.each(t,t=>{if(_.isText(t)&&!r(t)||_.isElement(t)&&n(t))return!1})}static isNode(t){return!!(t&&(0,d.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,a.isFunction)(t.appendChild))}static isCell(t){return _.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return _.isTag(t,o.LIST_TAGS)}static isLeaf(t){return _.isTag(t,"li")}static isImage(t){return _.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,u.isVoid)(t)&&"object"==typeof t&&_.isNode(t)&&o.IS_BLOCK.test(t.nodeName)}static isText(t){return!!(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return!!(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){return!!_.isNode(t)&&t.nodeType===Node.ELEMENT_NODE}static isFragment(t){return!!_.isNode(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(t){var i;if(!_.isNode(t))return!1;let n=null==(i=t.ownerDocument)?void 0:i.defaultView;return t instanceof(n?n.HTMLElement:HTMLElement)}static isInlineBlock(t){return _.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(t,"display").toString())}static canSplitBlock(t){return!(0,u.isVoid)(t)&&_.isHTMLElement(t)&&_.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static first(t,i){let n=null==t?void 0:t.firstChild;if(!n)return null;do{if(i(n))return n;let o=n.firstChild;if(o||(o=n.nextSibling),!o&&n.parentNode!==t){do n=n.parentNode;while(n&&!(null==n?void 0:n.nextSibling)&&n.parentNode!==t)o=null==n?void 0:n.nextSibling}n=o}while(n)return null}static last(t,i){let n=null==t?void 0:t.lastChild;if(!n)return null;do{if(i(n))return n;let o=n.lastChild;if(o||(o=n.previousSibling),!o&&n.parentNode!==t){do n=n.parentNode;while(n&&!(null==n?void 0:n.previousSibling)&&n.parentNode!==t)o=null==n?void 0:n.previousSibling}n=o}while(n)return null}static prev(t,i,n,o=!0){return _.find(t,i,n,!1,o)}static next(t,i,n,o=!0){return _.find(t,i,n,!0,o)}static prevWithClass(t,i){return _.prev(t,t=>_.isElement(t)&&t.classList.contains(i),t.parentNode)}static nextWithClass(t,i){return _.next(t,t=>_.isElement(t)&&t.classList.contains(i),t.parentNode)}static find(t,i,n,o=!0,r=!0){let s=this.nextGen(t,n,o,r),a=s.next();for(;!a.done;){if(i(a.value))return a.value;a=s.next()}return null}static*nextGen(t,i,n=!0,o=!0){let r=[],s=t;do{let i=n?s.nextSibling:s.previousSibling;for(;i;)r.push(i),i=n?i.nextSibling:i.previousSibling;r.reverse(),yield*this.runInStack(t,r,n,o),s=s.parentNode}while(s&&s!==i)return null}static each(t,i,n=!0){let o=this.eachGen(t,n),r=o.next();for(;!r.done;){if(!1===i(r.value))return!1;r=o.next()}return!0}static eachGen(t,i=!0){return this.runInStack(t,[t],i)}static*runInStack(t,i,n,o=!0){for(;i.length;){let r=i.pop();if(o){let t=n?r.lastChild:r.firstChild;for(;t;)i.push(t),t=n?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,i,n,o="nextSibling",r="firstChild"){let s=t;do{if(i(s))return s||null;if(r&&s&&s[r]){let t=_.findWithCurrent(s[r],i,s,o,r);if(t)return t}for(;s&&!s[o]&&s!==n;)s=s.parentNode;s&&s[o]&&s!==n&&(s=s[o])}while(s&&s!==n)return null}static findSibling(t,i=!0,n=t=>!_.isEmptyTextNode(t)){let o=_.sibling(t,i);for(;o&&!n(o);)o=_.sibling(o,i);return o&&n(o)?o:null}static findNotEmptySibling(t,i){return _.findSibling(t,i,t=>{var i;return!_.isEmptyTextNode(t)&&!!(!_.isText(t)||(null==(i=t.nodeValue)?void 0:i.length)&&(0,h.trim)(t.nodeValue))})}static findNotEmptyNeighbor(t,i,n){return(0,y.call)(i?_.prev:_.next,t,t=>!!(t&&(!(_.isText(t)||_.isComment(t))||(0,h.trim)((null==t?void 0:t.nodeValue)||"").length)),n)}static sibling(t,i){return i?t.previousSibling:t.nextSibling}static up(t,i,n,o=!1){let r=t;if(!r)return null;do{if(i(r))return r;if(r===n||!r.parentNode)break;r=r.parentNode}while(r&&r!==n)return r===n&&o&&i(r)?r:null}static closest(t,i,n){let o,r=t=>t.toLowerCase();if((0,a.isFunction)(i))o=i;else if((0,s.isArray)(i)||(0,c.isSet)(i)){let t=(0,c.isSet)(i)?i:new Set(i.map(r));o=i=>!!(i&&t.has(r(i.nodeName)))}else o=t=>!!(t&&r(i)===r(t.nodeName));return _.up(t,o,n)}static furthest(t,i,n){let o=null,r=null==t?void 0:t.parentElement;for(;r&&r!==n;)i(r)&&(o=r),r=null==r?void 0:r.parentElement;return o}static appendChildFirst(t,i){let n=t.firstChild;n?n!==i&&t.insertBefore(i,n):t.appendChild(i)}static after(t,i){let{parentNode:n}=t;n&&(n.lastChild===t?n.appendChild(i):n.insertBefore(i,t.nextSibling))}static before(t,i){let{parentNode:n}=t;n&&n.insertBefore(i,t)}static prepend(t,i){t.insertBefore(i,t.firstChild)}static append(t,i){(0,s.isArray)(i)?i.forEach(i=>{this.append(t,i)}):t.appendChild(i)}static moveContent(t,i,n=!1,s=()=>!0){let a=(t.ownerDocument||o.globalDocument).createDocumentFragment();(0,r.toArray)(t.childNodes).filter(t=>!!s(t)||(_.safeRemove(t),!1)).forEach(t=>{a.appendChild(t)}),n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a)}static isOrContains(t,i,n=!1){return t===i?!n:!!(i&&t&&this.up(i,i=>i===t,t,!0))}static safeRemove(...t){t.forEach(t=>_.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,i){t.collapsed||t.deleteContents();let n=_.isFragment(i)?i.lastChild:i;t.startContainer===t.endContainer&&t.collapsed&&_.isTag(t.startContainer,o.INSEPARABLE_TAGS)?_.after(t.startContainer,i):(t.insertNode(i),n&&t.setStartBefore(n)),t.collapse(!0),[i.nextSibling,i.previousSibling].forEach(t=>_.isText(t)&&!t.nodeValue&&_.safeRemove(t))}static hide(t){t&&((0,g.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let i=(0,g.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=i||"")}static isTag(t,i){if(Array.isArray(i))throw TypeError("Dom.isTag does not support array");if(!this.isElement(t))return!1;let n=t.tagName.toLowerCase();return i instanceof Set?i.has(n)||i.has(t.tagName.toUpperCase()):n===i||t.tagName.toUpperCase()===i}static markTemporary(t,i){return i&&(0,f.attr)(t,i),(0,f.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!_.isElement(t)&&(_.isMarker(t)||"true"===(0,f.attr)(t,o.TEMP_ATTR))}static isMarker(t){return _.isNode(t)&&_.isTag(t,"span")&&t.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(w,"$2")}static temporaryList(t){return(0,r.toArray)(t.querySelectorAll(`[${o.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(t,i,n){"use strict";n.d(i,{Dom:function(){return o.Dom},LazyWalker:function(){return r.LazyWalker}});var o=n(2748),r=n(70071)},70071:function(t,i,n){"use strict";n.d(i,{LazyWalker:function(){return a}});var o=n(45219),r=n(2748),s=n(72757);class a extends s.Eventify{setWork(t){return this.isWorked?this.break():this.stop(),this.workNodes=r.Dom.eachGen(t,!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(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var t;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(t=this.__schedulerController)||t.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var t;if(this.workNodes){this.isWorked=!0;let i=0,n=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<n;){let t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){var i;return!!t&&(void 0===this.options.whatToShow||t.nodeType===this.options.whatToShow)&&null!=(i=this.emit("visit",t))&&i}constructor(t,i={}){super(),this.async=t,this.options=i,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],a.prototype,"__workPerform",null)},98220:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return u}});var o=n(82758),r=n(46559),s=n(68345),a=n(23282),l=n(70799),c=n(89890),d=n(15738);class u{mute(t){return this.__mutedEvents.add(null!=t?t:"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(null!=t?t:"*"),this}__eachEvent(t,i){(0,r.splitArray)(t).map(t=>t.trim()).forEach(t=>{let n=t.split("."),o=n[1]||d.defaultNameSpace;i.call(this,n[0],o)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let i=new d.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:i})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&delete t[this.__key]}__triggerNativeEvent(t,i){let n=this.__doc.createEvent("HTMLEvents");(0,l.isString)(i)?n.initEvent(i,!0,!0):(n.initEvent(i.type,i.bubbles,i.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(n,t,{value:i[t],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:i,enumerable:!0})),t.dispatchEvent(n)}get current(){return this.currents[this.currents.length-1]}on(t,i,n,r){let d,u,p,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(d=this,u=t,p=i,f=n):(d=t,u=i,p=n,f=r),!((0,l.isString)(u)||(0,l.isStringArray)(u))||0===u.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(p))throw(0,c.error)("Need event handler");if((0,s.isArray)(d))return d.forEach(t=>{this.on(t,u,p,f)}),this;let m=d,g=this.__getStore(m),b=this,y=function(t,...i){if(!b.isMuted(t))return p&&p.call(this,...i)};return h(m)&&(y=function(t){if(!b.isMuted(t.type)&&(b.__prepareEvent(t),p&&!1===p.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(u,(t,i)=>{var n,r;if(0===t.length)throw(0,c.error)("Need event name");if(!1===g.indexOf(t,i,p)){let s={event:t,originalCallback:p,syntheticCallback:y};if(g.set(t,i,s,null==f?void 0:f.top),h(m)){let i=o.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!=(n=null==f?void 0:f.capture)&&n}:null!=(r=null==f?void 0:f.capture)&&r;y.options=i,m.addEventListener(t,y,i),this.__memoryDOMSubjectToHandler(m,y)}}}),this}__memoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap.get(t)||new Set;n.add(i),this.__domEventsMap.set(t,n)}__unmemoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap,o=n.get(t)||new Set;o.delete(i),o.size?n.set(t,o):n.delete(t)}one(t,i,n,o){let r,s,a,c;(0,l.isString)(t)||(0,l.isStringArray)(t)?(r=this,s=t,a=i,c=n):(r=t,s=i,a=n,c=o);let d=(...t)=>(this.off(r,s,d),a(...t));return this.on(r,s,d,c),this}off(t,i,n){let o,r,c;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(o=this,r=t,c=i):(o=t,r=i,c=n),(0,s.isArray)(o))return o.forEach(t=>{this.off(t,r,c)}),this;let u=o,p=this.__getStore(u);if(!((0,l.isString)(r)||(0,l.isStringArray)(r))||0===r.length)return p.namespaces().forEach(t=>{this.off(u,"."+t)}),this.__removeStoreFromSubject(u),this;let f=t=>{var i;h(u)&&(u.removeEventListener(t.event,t.syntheticCallback,null!=(i=t.syntheticCallback.options)&&i),this.__unmemoryDOMSubjectToHandler(u,t.syntheticCallback))},m=(t,i)=>{if(""===t)return void p.events(i).forEach(t=>{""!==t&&m(t,i)});let n=p.get(t,i);if(n&&n.length)if((0,a.isFunction)(c)){let o=p.indexOf(t,i,c);!1!==o&&(f(n[o]),n.splice(o,1),n.length||p.clearEvents(i,t))}else n.forEach(f),n.length=0,p.clearEvents(i,t)};return this.__eachEvent(r,(t,i)=>{i===d.defaultNameSpace?p.namespaces().forEach(i=>{m(t,i)}):m(t,i)}),p.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(t,i){let n=(0,l.isString)(t)?this:t,o=(0,l.isString)(t)?t:i;if("string"!=typeof o)throw(0,c.error)("Need event names");let r=this.__getStore(n);this.__eachEvent(o,(t,i)=>{let o=r.get(t,i);o&&this.__stopped.push(o),i===d.defaultNameSpace&&r.namespaces(!0).forEach(i=>this.stopPropagation(n,t+"."+i))})}__removeStop(t){if(t){let i=this.__stopped.indexOf(t);-1!==i&&this.__stopped.splice(0,i+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,i,...n){let o,r,s=(0,l.isString)(t)?this:t,a=(0,l.isString)(t)?t:i,u=(0,l.isString)(t)?[i,...n]:n;if(!h(s)&&!(0,l.isString)(a))throw(0,c.error)("Need events names");let p=this.__getStore(s);return!(0,l.isString)(a)&&h(s)?this.__triggerNativeEvent(s,i):this.__eachEvent(a,(t,i)=>{if(h(s))this.__triggerNativeEvent(s,t);else{let n=p.get(t,i);if(n)try{[...n].every(i=>!this.__isStopped(n)&&(this.currents.push(t),r=i.syntheticCallback.call(s,t,...u),this.currents.pop(),void 0!==r&&(o=r),!0))}finally{this.__removeStop(n)}i!==d.defaultNameSpace||h(s)||p.namespaces().filter(t=>t!==i).forEach(i=>{let n=this.fire.apply(this,[s,t+"."+i,...u]);void 0!==n&&(o=n)})}}),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((t,i)=>{this.off(i)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=o.globalDocument,this.__prepareEvent=t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(i=>{Object.defineProperty(t,i,{value:t.changedTouches[0][i],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=new Date().getTime()}}function h(t){return t&&(0,a.isFunction)(t.addEventListener)}},72757:function(t,i,n){"use strict";n.d(i,{Eventify:function(){return o}});class o{on(t,i){var n;return this.__map.has(t)||this.__map.set(t,new Set),null==(n=this.__map.get(t))||n.add(i),this}off(t,i){var n;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.delete(i)),this}destruct(){this.__map.clear()}emit(t,...i){var n;let o;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.forEach(t=>{o=t(...i)})),o}constructor(){this.__map=new Map}}},57012:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return o}});let o=new(n(98220)).EventEmitter},3827:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return a.EventHandlersStore},Eventify:function(){return r.Eventify},defaultNameSpace:function(){return a.defaultNameSpace},observable:function(){return s.observable}});var o=n(98220),r=n(72757),s=n(73026),a=n(15738)},73026:function(t,i,n){"use strict";n.d(i,{observable:function(){return d}});var o=n(68345),r=n(59292),s=n(72430),a=n(37790);let l=Symbol("observable-object");function c(t){return void 0!==t[l]}function d(t){if(c(t))return t;let i={},n={},d=(i,r)=>((0,o.isArray)(i)?i.map(t=>d(t,r)):(n[i]||(n[i]=[]),n[i].push(r)),t),u=(r,...s)=>{if((0,o.isArray)(r))return void r.map(t=>u(t,...s));try{!i[r]&&n[r]&&(i[r]=!0,n[r].forEach(i=>i.call(t,...s)))}finally{i[r]=!1}},h=(i,n=[])=>{let o={};c(i)||(Object.defineProperty(i,l,{enumerable:!1,value:!0}),Object.keys(i).forEach(l=>{let c=n.concat(l).filter(t=>t.length);o[l]=i[l];let d=(0,a.getPropertyDescriptor)(i,l);Object.defineProperty(i,l,{set(i){let n=o[l];if(!(0,r.isFastEqual)(o[l],i)){u(["beforeChange","beforeChange."+c.join(".")],l,i),(0,s.isPlainObject)(i)&&h(i,c),d&&d.set?d.set.call(t,i):o[l]=i;let r=[];u(["change",...c.reduce((t,i)=>(r.push(i),t.push("change."+r.join(".")),t),[])],c.join("."),n,(null==i?void 0:i.valueOf)?i.valueOf():i)}},get:()=>d&&d.get?d.get.call(t):o[l],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(o[l])&&h(o[l],c)}),Object.defineProperty(t,"on",{value:d}))};return h(t),t}},15738:function(t,i,n){"use strict";n.d(i,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var o=n(4510),r=n(38837);let s="JoditEventDefaultNamespace";class a{get(t,i){if(this.__store.has(i)){let n=this.__store.get(i);return(0,r.assert)(n,"-"),n[t]}}indexOf(t,i,n){let o=this.get(t,i);if(o){for(let t=0;t<o.length;t+=1)if(o[t].originalCallback===n)return t}return!1}namespaces(t=!1){let i=(0,o.toArray)(this.__store.keys());return t?i.filter(t=>t!==s):i}events(t){let i=this.__store.get(t);return i?Object.keys(i):[]}set(t,i,n,o=!1){let r=this.__store.get(i);r||(r={},this.__store.set(i,r)),void 0===r[t]&&(r[t]=[]),o?r[t].unshift(n):r[t].push(n)}clear(){this.__store.clear()}clearEvents(t,i){let n=this.__store.get(t);n&&n[i]&&(delete n[i],Object.keys(n).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return x},extendLang:function(){return _},getContainer:function(){return k},getPopupViewRoot:function(){return S},instances:function(){return f},modules:function(){return w},pluginSystem:function(){return y},uniqueUid:function(){return b}});var o=n(19306),r=n(70799),s=n(39955),a=n(12475),l=n(41180),c=n(80568),d=n(41876),u=n(57012),h=n(82758),p=n(22732);let f={},m=1,g=new Set;function b(){function t(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let i=t();for(;g.has(i);)i=t();return g.add(i),i}let y=new d.PluginSystem({getContainer:k}),w={},_=t=>{Object.keys(t).forEach(i=>{h.lang[i]?Object.assign(h.lang[i],t[i]):h.lang[i]=t[i]})},C=new WeakMap;function k(t,i,n="div",l=!1){let d=(0,r.isString)(i)?i:i?(0,c.getClassName)(i.prototype):"jodit-utils",u=C.get(t)||{},h=d+n,f=(0,s.isViewObject)(t)?t:t.j,m=null;if(!u[h]){let i=f.c;if(m=S(f.o,f.container,t.od.body),l&&(0,o.isJoditObject)(t)&&t.od!==t.ed){i=t.createInside;let r="style"===n?t.ed.head:t.ed.body;m=(0,o.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}let r=i.element(n,{className:`jodit jodit-${(0,a.kebabCase)(d)}-container jodit-box`});f.o.nonce&&("style"===n||"script"===n)&&r.setAttribute("nonce",f.o.nonce),r.classList.add("jodit_theme_"+(f.o.theme||"default")),m.appendChild(r),u[h]=r,t.hookStatus("beforeDestruct",()=>{f.events.off(r),p.Dom.safeRemove(r),delete u[h],Object.keys(u).length&&C.delete(t)}),C.set(t,u),f.events.fire("getContainer",r)}return u[h].classList.remove("jodit_theme_default","jodit_theme_dark"),u[h].classList.add("jodit_theme_"+(f.o.theme||"default")),u[h]}function S(t,i,n){var o,r,s;return null!=(s=null!=(r=null!=(o=t.popupRoot)?o:t.shadowRoot)?r:p.Dom.closest(i,t=>p.Dom.isHTMLElement(t)&&(p.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,l.css)(t,"position"))),n))?s:n}let x=u.eventEmitter},29999:function(t,i,n){"use strict";n.d(i,{asArray:function(){return r}});var o=n(68345);let r=t=>(0,o.isArray)(t)?t:[t]},76855:function(t,i,n){"use strict";n.d(i,{asArray:function(){return o.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var o=n(29999),r=n(46559),s=n(4510)},46559:function(t,i,n){"use strict";function o(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}n.d(i,{splitArray:function(){return o}})},4510:function(t,i,n){"use strict";n.d(i,{toArray:function(){return s}});var o=n(70722),r=n(58844);let s=function(...t){var i;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},91898:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=n(13252)},13252:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var o=n(82758);function r(t,i,...n){return i?o.globalWindow.setTimeout(t,i,...n):(t.call(null,...n),0)}function s(t){o.globalWindow.clearTimeout(t)}},54765:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return r}});var o=n(82758);function r(){let t=!0;try{let i=o.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},27613:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return o.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return r.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return a.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return l.isEqual},isFastEqual:function(){return l.isFastEqual},isFunction:function(){return c.isFunction},isHTML:function(){return d.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return p.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return g.isMarker},isNativeFunction:function(){return b.isNativeFunction},isNumber:function(){return y.isNumber},isNumeric:function(){return w.isNumeric},isPlainObject:function(){return _.isPlainObject},isPromise:function(){return C.isPromise},isSet:function(){return k.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return x.isURL},isValidName:function(){return I.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return T.isVoid},isWindow:function(){return j.isWindow}});var o=n(54765),r=n(12045),s=n(68345),a=n(87612),l=n(59292),c=n(23282),d=n(58487),u=n(29673),h=n(60132),p=n(72913),f=n(19306),m=n(45603),g=n(78116),b=n(70722),y=n(84767),w=n(29807),_=n(72430),C=n(14773),k=n(42320),S=n(70799),x=n(26049),I=n(37508),E=n(39955),T=n(86068),j=n(52742)},12045:function(t,i,n){"use strict";function o(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}n.d(i,{isAbortError:function(){return o}})},68345:function(t,i,n){"use strict";function o(t){return Array.isArray(t)}n.d(i,{isArray:function(){return o}})},87612:function(t,i,n){"use strict";function o(t){return"boolean"==typeof t}n.d(i,{isBoolean:function(){return o}})},59292:function(t,i,n){"use strict";n.d(i,{isEqual:function(){return r},isFastEqual:function(){return s}});var o=n(67462);function r(t,i){return t===i||(0,o.stringify)(t)===(0,o.stringify)(i)}function s(t,i){return t===i}},23282:function(t,i,n){"use strict";function o(t){return"function"==typeof t}n.d(i,{isFunction:function(){return o}})},29673:function(t,i,n){"use strict";function o(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==t.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==t.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==t.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==t.search(/style='[^']*mso-/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}n.d(i,{isHtmlFromWord:function(){return o}})},58487:function(t,i,n){"use strict";n.d(i,{isHTML:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},60132:function(t,i,n){"use strict";n.d(i,{hasContainer:function(){return c},isDestructable:function(){return l},isInitable:function(){return a}});var o=n(2748),r=n(23282),s=n(86068);function a(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.init)}function l(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.destruct)}function c(t){return!(0,s.isVoid)(t)&&o.Dom.isElement(t.container)}},72913:function(t,i,n){"use strict";n.d(i,{isInt:function(){return s}});var o=n(29807),r=n(70799);function s(t){return(0,r.isString)(t)&&(0,o.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},19306:function(t,i,n){"use strict";n.d(i,{isJoditObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},45603:function(t,i,n){"use strict";n.d(i,{isLicense:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},78116:function(t,i,n){"use strict";n.d(i,{isMarker:function(){return r}});var o=n(2748);function r(t){return o.Dom.isMarker(t)}},70722:function(t,i,n){"use strict";function o(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(t+""))}n.d(i,{isNativeFunction:function(){return o}})},84767:function(t,i,n){"use strict";function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}n.d(i,{isNumber:function(){return o}})},29807:function(t,i,n){"use strict";n.d(i,{isNumeric:function(){return r}});var o=n(70799);function r(t){if((0,o.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},72430:function(t,i,n){"use strict";n.d(i,{isPlainObject:function(){return r}});var o=n(52742);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},14773:function(t,i,n){"use strict";function o(t){return t&&"function"==typeof t.then}n.d(i,{isPromise:function(){return o}})},42320:function(t,i,n){"use strict";n.d(i,{isSet:function(){return r}});var o=n(23282);function r(t){return!!t&&(0,o.isFunction)(t.has)&&(0,o.isFunction)(t.add)&&(0,o.isFunction)(t.delete)}},70799:function(t,i,n){"use strict";n.d(i,{isString:function(){return r},isStringArray:function(){return s}});var o=n(68345);function r(t){return"string"==typeof t}function s(t){return(0,o.isArray)(t)&&r(t[0])}},26049:function(t,i,n){"use strict";n.d(i,{isURL:function(){return r}});var o=n(82758);function r(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let i=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(i.protocol)}catch(t){return!1}let i=o.globalDocument.createElement("a");return i.href=t,!!i.hostname}},37508:function(t,i,n){"use strict";function o(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}n.d(i,{isValidName:function(){return o}})},39955:function(t,i,n){"use strict";n.d(i,{isViewObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&t.isView)}},86068:function(t,i,n){"use strict";function o(t){return null==t}n.d(i,{isVoid:function(){return o}})},52742:function(t,i,n){"use strict";function o(t){return null!=t&&t===t.window}n.d(i,{isWindow:function(){return o}})},35278:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o}});let o=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let i=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!i)return"#000000";let n=parseInt(i[2],10),o=parseInt(i[3],10),r=(parseInt(i[4],10)|o<<8|n<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return i[1]+"#"+r}},58149:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o.colorToHex}});var o=n(35278)},32574:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return c}});var o=n(82758),r=n(2748),s=n(49055),a=n(76078);function l(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(t,i,n)=>{switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(i)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(i)).toFixed(0)+"px"}return t})}function c(t){let i=/<html(?:\s[^>]*)?>/i.exec(t);if(!i)return t;let n=(t=t.substring(i.index)).toLowerCase().lastIndexOf("</html>");-1!==n&&(t=t.substring(0,n+7));let c=o.globalDocument.createElement("iframe");c.style.display="none",o.globalDocument.body.appendChild(c);let d="";try{let i=c.contentDocument||(c.contentWindow?c.contentWindow.document:null);if(i){i.open(),i.write(t),i.close(),r.Dom.each(i.body,t=>{r.Dom.isElement(t)&&/mso-list:\s*ignore/i.test(t.getAttribute("style")||"")&&r.Dom.safeRemove(t)});try{for(let t=0;t<i.styleSheets.length;t+=1){let n=i.styleSheets[t].cssRules;for(let t=0;t<n.length;t+=1)""!==n[t].selectorText&&(0,a.$$)(n[t].selectorText,i.body).forEach(i=>{i.style.cssText=l(n[t].style.cssText+";"+i.style.cssText)})}}catch(t){if(!o.IS_PROD)throw t}r.Dom.each(i.body,t=>{if(r.Dom.isElement(t)){let i=t.getAttribute("style");i&&(t.style.cssText=l(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),d=i.firstChild?(0,s.trim)(i.body.innerHTML):""}}catch(t){}finally{r.Dom.safeRemove(c)}return d&&(t=d),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(t,i,n){"use strict";n.d(i,{cleanFromWord:function(){return l}});var o=n(82758),r=n(2748),s=n(4510),a=n(49055);function l(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let i="";try{let n=o.globalDocument.createElement("div");n.innerHTML=t;let a=[];n.firstChild&&r.Dom.each(n,t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":a.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":r.Dom.unwrap(t);break;default:if(/mso-list:\s*ignore/i.test(t.getAttribute("style")||"")){a.push(t);break}(0,s.toArray)(t.attributes).forEach(i=>{-1===["src","href","rel","content"].indexOf(i.name.toLowerCase())&&t.removeAttribute(i.name)})}break;case Node.TEXT_NODE:break;default:a.push(t)}}),r.Dom.safeRemove.apply(null,a),i=n.innerHTML}catch(t){}return i&&(t=i),(t=t.split(/(\n)/).filter(a.trim).join(`
|
|
18
|
+
`)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(t,i,n){"use strict";n.d(i,{htmlspecialchars:function(){return r}});var o=n(82758);function r(t){let i=o.globalDocument.createElement("div");return i.textContent=t,i.innerHTML}},75275:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return r.cleanFromWord},htmlspecialchars:function(){return s.htmlspecialchars},nl2br:function(){return a.nl2br},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},stripTags:function(){return c.stripTags}});var o=n(32574),r=n(53212),s=n(53326),a=n(45971),l=n(86518),c=n(91003)},45971:function(t,i,n){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}n.d(i,{nl2br:function(){return o}})},86518:function(t,i,n){"use strict";n.d(i,{safeHTML:function(){return a},sanitizeHTMLElement:function(){return u}});var o=n(2748),r=n(43555);let s=new Set(["foreignobject","annotation-xml","desc","title"]);function a(t,i){var n;if(!o.Dom.isElement(t)&&!o.Dom.isFragment(t))return;let a=t.querySelectorAll("math *, svg *");for(let t=0;t<a.length;t++)a[t].isConnected&&function(t){if("http://www.w3.org/1999/xhtml"!==t.namespaceURI||null==t.closest("math,svg"))return!1;for(let i=t.parentElement;i;i=i.parentElement){let t=i.nodeName.toLowerCase();if("math"===t||"svg"===t)break;if(s.has(t))return!1}return!0}(a[t])&&o.Dom.safeRemove(a[t]);let l=null!=(n=i.removeEventAttributes)?n:i.removeOnError,c=t=>{if(o.Dom.isElement(t)&&(l&&function(t){if(!o.Dom.isElement(t))return;let i=[];for(let n=0;n<t.attributes.length;n++)t.attributes[n].name.toLowerCase().startsWith("on")&&i.push(t.attributes[n].name);for(let n of i)t.removeAttribute(n)}(t),u(t,i),i.safeLinksTarget&&"A"===t.nodeName&&"_blank"===t.getAttribute("target"))){let i=(t.getAttribute("rel")||"").split(/\s+/).filter(Boolean);i.includes("noopener")||i.push("noopener"),i.includes("noreferrer")||i.push("noreferrer"),(0,r.attr)(t,"rel",i.join(" "))}};c(t),o.Dom.each(t,c)}let l=["src","data","action","formaction","poster","background","xlink:href"],c=new Set(["iframe","frame","object","embed"]);function d(t,i){let n=t.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(n)||/^data:(?:text\/html|application\/xhtml)/.test(n))||/^data:image\/svg/.test(n)&&c.has(i)}function u(t,{safeJavaScriptLink:i,removeOnError:n}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let s=!1;n&&t.hasAttribute("onerror")&&((0,r.attr)(t,"onerror",null),s=!0);let a=t.nodeName.toLowerCase(),c=t.getAttribute("href");if(i&&c&&d(c,a)&&((0,r.attr)(t,"href",location.protocol+"//"+c),s=!0),i)for(let i of(t.hasAttribute("srcdoc")&&((0,r.attr)(t,"srcdoc",null),s=!0),l)){let n=t.getAttribute(i);n&&d(n,a)&&((0,r.attr)(t,i,null),s=!0)}return s}},91003:function(t,i,n){"use strict";n.d(i,{stripTags:function(){return function t(i,n=document,u=null,h=!1){let p=n.createElement("div");return(0,r.isString)(i)?p.innerHTML=i:p.appendChild(i),(0,a.$$)("*",p).forEach(i=>{let r=i.parentNode;if(!r)return;if(u&&o.Dom.isTag(i,u)){let r=i.nodeName.toLowerCase(),s=o.Dom.isTag(i,d)?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${t(i.innerHTML,n,u,h)}%%%/jodit-${r}%%%`;o.Dom.before(i,n.createTextNode(s)),o.Dom.safeRemove(i);return}if(o.Dom.isTag(i,c))return void o.Dom.safeRemove(i);if(!o.Dom.isTag(i,l))return;let s=i.nextSibling;!(o.Dom.isText(s)&&/^\s/.test(s.nodeValue||""))&&s&&r.insertBefore(n.createTextNode(h?"%%%jodit-single-br%%%":" "),s)}),(0,s.trim)(p.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,i,n,o)=>`<${i?"/":""}${o}>`)}}});var o=n(2748),r=n(70799),s=n(49055),a=n(43555);let l=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),c=new Set(["script","style"]),d=new Set(["br","hr","input"])},21537:function(t,i,n){"use strict";n.r(i),n.d(i,{$$:function(){return h.$$},CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return h.ConfigDeepFlatten},ConfigFlatten:function(){return h.ConfigFlatten},ConfigMerge:function(){return h.ConfigMerge},ConfigProto:function(){return h.ConfigProto},ConnectionError:function(){return h.ConnectionError},LimitedStack:function(){return h.LimitedStack},NUMBER_FIELDS_REG:function(){return c.NUMBER_FIELDS_REG},OptionsError:function(){return h.OptionsError},UNSAFE_PROTO_KEYS:function(){return h.UNSAFE_PROTO_KEYS},abort:function(){return h.abort},alignElement:function(){return h.alignElement},alreadyLoadedList:function(){return h.alreadyLoadedList},appendScriptAsync:function(){return h.appendScriptAsync},appendStyleAsync:function(){return h.appendStyleAsync},applyStyles:function(){return l.applyStyles},asArray:function(){return o.asArray},assert:function(){return h.assert},attr:function(){return h.attr},browser:function(){return h.browser},buildQuery:function(){return h.buildQuery},call:function(){return h.call},callPromise:function(){return h.callPromise},callThis:function(){return h.callThis},camelCase:function(){return u.camelCase},cleanFromWord:function(){return l.cleanFromWord},clearAlign:function(){return h.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},clearTimeout:function(){return r.clearTimeout},cns:function(){return h.cns},colorToHex:function(){return a.colorToHex},completeUrl:function(){return h.completeUrl},connection:function(){return h.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssPath:function(){return h.cssPath},ctrlKey:function(){return h.ctrlKey},dataBind:function(){return h.dataBind},defaultLanguage:function(){return h.defaultLanguage},error:function(){return h.error},fastClone:function(){return h.fastClone},fuzzySearchIndex:function(){return u.fuzzySearchIndex},get:function(){return h.get},getClassName:function(){return h.getClassName},getContentWidth:function(){return d.getContentWidth},getDataTransfer:function(){return h.getDataTransfer},getFixedPositionOffset:function(){return d.getFixedPositionOffset},getPropertyDescriptor:function(){return h.getPropertyDescriptor},getScrollParent:function(){return d.getScrollParent},getXPathByElement:function(){return h.getXPathByElement},hAlignElement:function(){return h.hAlignElement},hasBrowserColorPicker:function(){return s.hasBrowserColorPicker},hasContainer:function(){return s.hasContainer},htmlspecialchars:function(){return l.htmlspecialchars},humanSizeToBytes:function(){return h.humanSizeToBytes},i18n:function(){return u.i18n},inView:function(){return h.inView},innerWidth:function(){return d.innerWidth},isAbortError:function(){return s.isAbortError},isArray:function(){return s.isArray},isAtom:function(){return h.isAtom},isBoolean:function(){return s.isBoolean},isDestructable:function(){return s.isDestructable},isEqual:function(){return s.isEqual},isFastEqual:function(){return s.isFastEqual},isFunction:function(){return s.isFunction},isHTML:function(){return s.isHTML},isHtmlFromWord:function(){return s.isHtmlFromWord},isInitable:function(){return s.isInitable},isInt:function(){return s.isInt},isJoditObject:function(){return s.isJoditObject},isLicense:function(){return s.isLicense},isMarker:function(){return s.isMarker},isNativeFunction:function(){return s.isNativeFunction},isNumber:function(){return s.isNumber},isNumeric:function(){return s.isNumeric},isPlainObject:function(){return s.isPlainObject},isPromise:function(){return s.isPromise},isSet:function(){return s.isSet},isString:function(){return s.isString},isStringArray:function(){return s.isStringArray},isURL:function(){return s.isURL},isUnsafeProtoKey:function(){return h.isUnsafeProtoKey},isValidName:function(){return s.isValidName},isViewObject:function(){return s.isViewObject},isVoid:function(){return s.isVoid},isWindow:function(){return s.isWindow},kebabCase:function(){return u.kebabCase},keepNames:function(){return h.keepNames},keys:function(){return h.keys},loadImage:function(){return h.loadImage},loadNext:function(){return h.loadNext},loadNextStyle:function(){return h.loadNextStyle},markAsAtomic:function(){return h.markAsAtomic},markDeprecated:function(){return h.markDeprecated},markOwner:function(){return h.markOwner},memorizeExec:function(){return h.memorizeExec},nl2br:function(){return l.nl2br},normalizeColor:function(){return c.normalizeColor},normalizeCssNumericValue:function(){return c.normalizeCssNumericValue},normalizeCssValue:function(){return c.normalizeCssValue},normalizeKeyAliases:function(){return c.normalizeKeyAliases},normalizeLicense:function(){return c.normalizeLicense},normalizePath:function(){return c.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return c.normalizeUrl},offset:function(){return d.offset},options:function(){return h.options},parseQuery:function(){return h.parseQuery},position:function(){return d.position},previewBox:function(){return h.previewBox},refs:function(){return h.refs},reset:function(){return h.reset},resolveElement:function(){return h.resolveElement},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return h.scrollIntoViewIfNeeded},set:function(){return h.set},setTimeout:function(){return r.setTimeout},size:function(){return d.size},splitArray:function(){return o.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return l.stripTags},toArray:function(){return o.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return u.ucfirst}});var o=n(76855),r=n(91898),s=n(27613),a=n(58149),l=n(75275),c=n(71521),d=n(56175),u=n(59007),h=n(43555)},71521:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return r.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return r.normalizeCssNumericValue},normalizeCssValue:function(){return r.normalizeCssValue},normalizeKeyAliases:function(){return s.normalizeKeyAliases},normalizeLicense:function(){return a.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return d.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var o=n(21224),r=n(3760),s=n(49033),a=n(12972),l=n(9992),c=n(70091),d=n(46334),u=n(37406)},21224:function(t,i,n){"use strict";n.d(i,{normalizeColor:function(){return s}});var o=n(35278),r=n(49055);let s=t=>{let i=["#"],n=(0,o.colorToHex)(t);if(!n)return!1;if(3===(n=(n=(0,r.trim)(n.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)i.push(n[t]),i.push(n[t]);return i.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n}},3760:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return l},normalizeCssNumericValue:function(){return c},normalizeCssValue:function(){return d}});var o=n(29807),r=n(86068),s=n(35278),a=n(12475);let l=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function c(t,i){return!(0,r.isVoid)(i)&&l.test(t)&&(0,o.isNumeric)(i.toString())?parseInt(i.toString(),10)+"px":i}function d(t,i){if("font-weight"===(0,a.kebabCase)(t)){switch(i.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,o.isNumeric)(i)?Number(i):i}return/color/i.test(t)&&/^rgb/i.test(i.toString())&&(0,s.colorToHex)(i.toString())||i}},49033:function(t,i,n){"use strict";n.d(i,{normalizeKeyAliases:function(){return s}});var o=n(82758),r=n(49055);function s(t){let i={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(t=>(0,r.trim)(t.toLowerCase())).map(t=>o.KEY_ALIASES[t]||t).sort((t,i)=>n[t]&&!n[i]?-1:!n[t]&&n[i]?1:n[t]&&n[i]?n[t]-n[i]:t>i?1:-1).filter(t=>!i[t]&&""!==t&&(i[t]=!0)).join("+")}},12972:function(t,i,n){"use strict";n.d(i,{normalizeLicense:function(){return o}});let o=(t,i=8)=>{let n=[];for(;t.length;)n.push(t.substr(0,i)),t=t.substr(i);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}},9992:function(t,i,n){"use strict";n.d(i,{normalizePath:function(){return r}});var o=n(49055);let r=(...t)=>t.filter(t=>(0,o.trim)(t).length).map((i,n)=>(i=i.replace(/([^:])[\\/]+/g,"$1/"),n&&(i=i.replace(/^\//,"")),n!==t.length-1&&(i=i.replace(/\/$/,"")),i)).join("/")},70091:function(t,i,n){"use strict";n.d(i,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,i)=>{switch(i){case"":case".":break;case"..":t.pop();break;default:t.push(i)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},46334:function(t,i,n){"use strict";n.d(i,{normalizeSize:function(){return o}});let o=(t,i)=>/^[0-9]+$/.test(t.toString())?t+i:t.toString()},37406:function(t,i,n){"use strict";n.d(i,{normalizeUrl:function(){return o}});let o=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},35224:function(t,i,n){"use strict";function o(t){var i,n;let o=null==(i=t.ownerDocument)?void 0:i.defaultView,r=t.parentElement;for(;o&&r;){if(""!==(n=o.getComputedStyle(r)).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 t=r.getBoundingClientRect();return{x:t.left,y:t.top}}r=r.parentElement}return{x:0,y:0}}n.d(i,{getFixedPositionOffset:function(){return o}})},16442:function(t,i,n){"use strict";n.d(i,{getScrollParent:function(){return function t(i){if(!i)return null;let n=r.Dom.isHTMLElement(i),a=n&&(0,s.css)(i,"overflowY");return n&&"visible"!==a&&"hidden"!==a&&i.scrollHeight>=i.clientHeight?i:t(i.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=n(82758),r=n(2748),s=n(43555)},56175:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o.getContentWidth},getFixedPositionOffset:function(){return r.getFixedPositionOffset},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return a.innerWidth},offset:function(){return c.offset},position:function(){return d.position},size:function(){return l.size}});var o=n(44506),r=n(35224),s=n(16442),a=n(81630),l=n(21496),c=n(81284),d=n(5700)},81630:function(t,i,n){"use strict";n.d(i,{innerWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.clientWidth-(parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"))}},21496:function(t,i,n){"use strict";n.d(i,{size:function(){return r}});var o=n(27613);function r(t){return(0,o.isString)(t)||(0,o.isArray)(t)?t.length:(0,o.isPlainObject)(t)?Object.keys(t).length:0}},81284:function(t,i,n){"use strict";n.d(i,{offset:function(){return o}});let o=(t,i,n,r=!1)=>{let s,a,l;try{s=t.getBoundingClientRect()}catch(t){s={top:0,bottom:0,left:0,right:0,width:0,height:0}}let c=n.body,d=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=n.defaultView||n.parentWindow,h=u.pageYOffset||d.scrollTop||c.scrollTop,p=u.pageXOffset||d.scrollLeft||c.scrollLeft,f=d.clientTop||c.clientTop||0,m=d.clientLeft||c.clientLeft||0,g=i.iframe;if(!r&&i&&i.options&&i.o.iframe&&g){let{top:t,left:n}=o(g,i,i.od,!0);a=s.top+t,l=s.left+n}else a=s.top+h-f,l=s.left+p-m;return{top:Math.round(a),left:Math.round(l),width:s.width,height:s.height}}},5700:function(t,i,n){"use strict";n.d(i,{position:function(){return function t(i,n,r=!1){var s,a;let l=i.getBoundingClientRect(),c=l.left,d=l.top;if((0,o.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(i)&&!r){let{left:i,top:o}=t(n.iframe,n,!0);c+=i,d+=o}return{left:Math.round(c),top:Math.round(d),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var o=n(19306)},87058:function(t,i,n){"use strict";n.d(i,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,i,n)=>n.toUpperCase())},67477:function(t,i,n){"use strict";n.d(i,{fuzzySearchIndex:function(){return r}});var o=n(82758);function r(t,i,n=0,s=1){let a=0,l=0,c=-1,d=0,u=0;for(l=n;a<t.length&&l<i.length;)t[a].toLowerCase()===i[l].toLowerCase()?(a++,d++,u=0,-1===c&&(c=l)):a>0&&(u>=s&&i[l]!==o.INVISIBLE_SPACE?(a=0,c=-1,d=0,u=0,l--):(u++,d++)),l++;return a===t.length?[c,d]:[-1,0]}},56967:function(t,i,n){"use strict";n.d(i,{i18n:function(){return d},sprintf:function(){return c}});var o=n(82758),r=n(70799),s=n(36409),a=n(43555),l=n(6441);let c=(t,i)=>{if(!i||!i.length)return t;let n=/%([sd])/g,o=n.exec(t),r=t,s=0;for(;o&&void 0!==i[s];)r=r.replace(o[0],i[s].toString()),s+=1,o=n.exec(t);return r};function d(t,i,n){if(!(0,r.isString)(t))throw(0,a.error)("i18n: Need string in first argument");if(!t.length)return t;let d=!!(null==n?void 0:n.debugLanguage),u={},h=t=>i&&i.length?c(t,i):t,p=(0,a.defaultLanguage)(l.Config.defaultOptions.language,l.Config.defaultOptions.language),f=(0,a.defaultLanguage)(null==n?void 0:n.language,p),m=i=>{if(!i)return;if((0,r.isString)(i[t]))return h(i[t]);let n=t.toLowerCase();if((0,r.isString)(i[n]))return h(i[n]);let o=(0,s.ucfirst)(t);if((0,r.isString)(i[o]))return h(i[o])};void 0!==o.lang[f]?u=o.lang[f]:d||(u=void 0!==o.lang[p]?o.lang[p]:o.lang.en);let g=null==n?void 0:n.i18n;if(g&&g[f]){let t=m(g[f]);if(t)return t}return m(u)||(!d&&o.lang.en&&(0,r.isString)(o.lang.en[t])&&o.lang.en[t]?h(o.lang.en[t]):d?"{"+t+"}":(o.IS_PROD,h(t)))}},59007:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return a.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return r.fuzzySearchIndex},i18n:function(){return s.i18n},kebabCase:function(){return a.kebabCase},sprintf:function(){return s.sprintf},stringify:function(){return l.stringify},trim:function(){return c.trim},trimChars:function(){return c.trimChars},trimInv:function(){return c.trimInv},ucfirst:function(){return d.ucfirst}});var o=n(87058),r=n(67477),s=n(56967),a=n(12475),l=n(67462),c=n(49055),d=n(36409)},12475:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return r},kebabCase:function(){return o}});let o=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},67462:function(t,i,n){"use strict";function o(t,i={}){if("object"!=typeof t)return t+"";let n=new Set(i.excludeKeys),r=new WeakMap;return JSON.stringify(t,(t,i)=>{if(!n.has(t)){if("object"==typeof i&&null!=i){if(r.get(i))return"[refObject]";r.set(i,!0)}return i}},i.prettify)}n.d(i,{stringify:function(){return o}})},49055:function(t,i,n){"use strict";n.d(i,{trim:function(){return r},trimChars:function(){return s},trimInv:function(){return a}});var o=n(82758);function r(t){return t.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function s(t,i){return t.replace(RegExp(`[${i}]+$`),"").replace(RegExp(`^[${i}]+`),"")}function a(t){return t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(t,i,n){"use strict";function o(t){return t.length?t[0].toUpperCase()+t.substring(1):""}n.d(i,{ucfirst:function(){return o}})},25726:function(t,i,n){"use strict";n.d(i,{alignElement:function(){return l},clearAlign:function(){return a},hAlignElement:function(){return s}});var o=n(22732),r=n(41180);function s(t,i){i&&"normal"!==i?"center"!==i?((0,r.css)(t,"float",i),(0,r.clearCenterAlign)(t)):(0,r.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(t,"float")&&-1!==["right","left"].indexOf((0,r.css)(t,"float").toString().toLowerCase())&&(0,r.css)(t,"float",""),(0,r.clearCenterAlign)(t))}function a(t){o.Dom.each(t,t=>{o.Dom.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))})}function l(t,i){if(o.Dom.isNode(i)&&o.Dom.isElement(i))switch(a(i),t.toLowerCase()){case"justifyfull":i.style.textAlign="justify";break;case"justifyright":i.style.textAlign="right";break;case"justifyleft":i.style.textAlign="left";break;case"justifycenter":i.style.textAlign="center"}}},63799:function(t,i,n){"use strict";n.d(i,{alreadyLoadedList:function(){return s},appendScriptAsync:function(){return l},appendStyleAsync:function(){return c},loadNext:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?l(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}},loadNextStyle:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?c(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}}});var o=n(70799),r=n(66292);let s=new Map,a=t=>(i,n)=>{if(s.has(n))return s.get(n);let o=t(i,n);return s.set(n,o),o},l=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,r.completeUrl)(i)});t.o.nonce&&s.setAttribute("nonce",t.o.nonce),t.e.one(s,"error",o).one(s,"load",n),t.od.body.appendChild(s)})),c=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("link");s.rel="stylesheet",s.media="all",s.crossOrigin="anonymous",t.o.nonce&&s.setAttribute("nonce",t.o.nonce),t.isInDestruct||t.e.on(s,"load",()=>n(s)).on(s,"error",o),s.href=(0,r.completeUrl)(i),t.o.shadowRoot?t.o.shadowRoot.appendChild(s):t.od.body.appendChild(s)}))},38837:function(t,i,n){"use strict";n.d(i,{assert:function(){return r}});class o extends Error{constructor(t){super(t),this.name="AssertionError"}}function r(t,i){if(!t)throw new o("Assertion failed: "+i)}},29960:function(t,i,n){"use strict";n.d(i,{attr:function(){return function t(i,n,c){if(!i||!(0,o.isFunction)(i.getAttribute))return null;if(!(0,s.isString)(n))return Object.keys(n).forEach(o=>{let s=n[o];(0,r.isPlainObject)(s)&&"style"===o?(0,l.css)(i,s):("className"===o&&(o="class"),t(i,o,s))}),null;let d=(0,a.CamelCaseToKebabCase)(n);if(/^-/.test(d)){let n=t(i,"data"+d);if(n)return n;d=d.substr(1)}if(void 0!==c)if(null==c)i.hasAttribute(d)&&i.removeAttribute(d);else{let t=c.toString();return"IMG"===i.nodeName&&("width"===d||"height"===d)&&(t=t.replace("px","")),i.setAttribute(d,t),t}return i.getAttribute(d)}}});var o=n(23282),r=n(72430),s=n(70799),a=n(12475),l=n(41180)},97639:function(t,i,n){"use strict";n.d(i,{browser:function(){return o}});let o=t=>{let i=navigator.userAgent.toLowerCase(),n=/(firefox)[\s/]([\w.]+)/.exec(i)||/(chrome)[\s/]([\w.]+)/.exec(i)||/(webkit)[\s/]([\w.]+)/.exec(i)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(i)||/(msie)[\s]([\w.]+)/.exec(i)||/(trident)\/([\w.]+)/.exec(i)||0>i.indexOf("compatible")||[];return"version"===t?n[2]:"webkit"===t?"chrome"===n[1]||"webkit"===n[1]:"ff"===t?"firefox"===n[1]:"msie"===t?"trident"===n[1]||"msie"===n[1]:n[1]===t}},44710:function(t,i,n){"use strict";n.d(i,{buildQuery:function(){return r}});var o=n(72430);let r=(t,i)=>{let n=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,c=t[a];n.push((0,o.isPlainObject)(c)?r(c,l):s(l)+"="+s(c))}return n.join("&")}},66292:function(t,i,n){"use strict";n.d(i,{completeUrl:function(){return r}});var o=n(82758);let r=t=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},68934:function(t,i,n){"use strict";n.d(i,{ConfigDeepFlatten:function(){return function t(i){return(0,u.keys)(i,!1).reduce((n,o)=>(n[o]=(0,r.isPlainObject)(i[o])?t(i[o]):i[o],n),{})}},ConfigFlatten:function(){return h},ConfigMerge:function(){return function t(i,n){Object.keys(n).forEach(o=>{if((0,d.isUnsafeProtoKey)(o))return;let s=n[o],a=i[o];(0,r.isPlainObject)(s)&&(0,r.isPlainObject)(a)&&!(0,c.isAtom)(s)?t(a,s):i[o]=s})}},ConfigProto:function(){return function t(i,n,u=0){if(Object.getPrototypeOf(i)!==Object.prototype)return i;let h=l.Config.defaultOptions;if((0,s.isString)(i.preset)){if(void 0!==h.presets[i.preset]){let t=h.presets[i.preset];Object.keys(t).forEach(n=>{(0,a.isVoid)(i[n])&&(i[n]=t[n])})}delete i.preset}let p={};return Object.keys(i).forEach(s=>{if((0,d.isUnsafeProtoKey)(s))return;let a=i[s],l=n?n[s]:null;if((0,r.isPlainObject)(a)&&(0,r.isPlainObject)(l)&&!(0,c.isAtom)(a)){p[s]=t(a,l,u+1);return}if(0!==u&&(0,o.isArray)(a)&&!(0,c.isAtom)(a)&&(0,o.isArray)(l)){p[s]=[...a,...l.slice(a.length)];return}p[s]=a}),Object.setPrototypeOf(p,n),p}}});var o=n(68345),r=n(72430),s=n(70799),a=n(86068),l=n(6441),c=n(97735),d=n(69175),u=n(37790);function h(t){return(0,u.keys)(t,!1).reduce((i,n)=>(i[n]=t[n],i),{})}},55877:function(t,i,n){"use strict";n.d(i,{convertMediaUrlToVideoEmbed:function(){return a}});var o=n(82758),r=n(26049),s=n(82501);let a=(t,{width:i=400,height:n=345}={})=>{if(!(0,r.isURL)(t))return t;let a=o.globalDocument.createElement("a");a.href=t,i||(i=400),n||(n=345);let l=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":{let o=a.pathname.split("/").filter(Boolean),r=o.findIndex(t=>/^\d+$/.test(t));if(-1===r)return t;let s=o[r],c=o[r+1];return c&&0===r&&(s+="/"+c),'<iframe width="'+i+'" height="'+n+'" src="'+l+"//player.vimeo.com/video/"+s+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let o=(a.search?(0,s.parseQuery)(a.search):{}).v||a.pathname.substring(1);return(o=o.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+i+'" height="'+n+'" src="'+l+"//www.youtube.com/embed/"+o+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},41180:function(t,i,n){"use strict";n.d(i,{clearCenterAlign:function(){return d},css:function(){return c}});var o=n(87612),r=n(72430),s=n(3760),a=n(87058),l=n(12475);function c(t,i,n,d=!1){if((0,o.isBoolean)(n)&&(d=n,n=void 0),(0,r.isPlainObject)(i)||void 0!==n){let o=(t,i,n)=>{void 0!==(n=(0,s.normalizeCssNumericValue)(i,n))&&(null==n||c(t,i,!0)!==(0,s.normalizeCssValue)(i,n))&&(t.style[i]=n)};if((0,r.isPlainObject)(i)){let n=Object.keys(i);for(let r=0;r<n.length;r+=1)o(t,(0,a.camelCase)(n[r]),i[n[r]])}else o(t,(0,a.camelCase)(i),n);return""}let u=(0,l.kebabCase)(i),h=t.ownerDocument||document,p=!!h&&(h.defaultView||h.parentWindow),f=t.style[i],m="";return void 0!==f&&""!==f?m=f:p&&!d&&(m=p.getComputedStyle(t).getPropertyValue(u)),s.NUMBER_FIELDS_REG.test(i)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,s.normalizeCssValue)(i,m)}let d=t=>{"block"===c(t,"display")&&c(t,"display","");let{style:i}=t;"auto"===i.marginLeft&&"auto"===i.marginRight&&(i.marginLeft="",i.marginRight="")}},15456:function(t,i,n){"use strict";n.d(i,{ctrlKey:function(){return o}});let o=t=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1}},86583:function(t,i,n){"use strict";n.d(i,{dataBind:function(){return s}});var o=n(39955);let r=new WeakMap,s=(t,i,n)=>{let s=r.get(t);if(!s){s={},r.set(t,s);let i=null;(0,o.isViewObject)(t.j)&&(i=t.j.e),(0,o.isViewObject)(t)&&(i=t.e),i&&i.on("beforeDestruct",()=>{r.delete(t)})}return void 0===n?s[i]:(s[i]=n,n)}},96325:function(t,i,n){"use strict";n.d(i,{defaultLanguage:function(){return s}});var o=n(82758),r=n(70799);let s=(t,i="en")=>"auto"!==t&&(0,r.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):i},82760:function(t,i,n){"use strict";n.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var o=n(32880);function r(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function a(t){return new o.OptionsError(t)}},93661:function(t,i,n){"use strict";function o(t="Aborted"){return new DOMException(t,"AbortError")}n.d(i,{abort:function(){return o}})},86397:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},32880:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return o.abort}});var o=n(93661),r=n(86397),s=n(57865)},57865:function(t,i,n){"use strict";n.d(i,{OptionsError:function(){return o}});class o extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},89890:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return r.abort},connection:function(){return o.connection},error:function(){return o.error},options:function(){return o.options}});var o=n(82760),r=n(32880)},97735:function(t,i,n){"use strict";n.d(i,{fastClone:function(){return a},isAtom:function(){return r},markAsAtomic:function(){return s}});var o=n(67462);function r(t){return t&&t.isAtom}function s(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function a(t){return JSON.parse((0,o.stringify)(t))}},80568:function(t,i,n){"use strict";n.d(i,{getClassName:function(){return s},keepNames:function(){return r}});var o=n(23282);let r=new Map,s=t=>{var i;if((0,o.isFunction)(t.className))return t.className();let n=(null==(i=t.constructor)?void 0:i.originalConstructor)||t.constructor;if(r.has(n))return r.get(n);if(n.name)return n.name;let s=new RegExp(/^\s*function\s*(\S*)\s*\(/),a=n.toString().match(s);return a?a[1]:""}},94643:function(t,i,n){"use strict";n.d(i,{get:function(){return s}});var o=n(70799),r=n(86068);function s(t,i){if(!(0,o.isString)(t)||!t.length)return null;let n=t.split("."),s=i;try{for(let t of n){if((0,r.isVoid)(s[t]))return null;s=s[t]}}catch(t){return null}return(0,r.isVoid)(s)?null:s}},38420:function(t,i,n){"use strict";n.d(i,{humanSizeToBytes:function(){return o}});let o=t=>{if(/^[0-9.]+$/.test(t.toString()))return parseFloat(t);let i=t.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],o=parseFloat(t.substr(0,t.length-2));return -1!==n.indexOf(i)?o*Math.pow(1024,n.indexOf(i)+1):parseInt(t,10)}},43555:function(t,i,n){"use strict";n.d(i,{$$:function(){return j.$$},ConfigDeepFlatten:function(){return u.ConfigDeepFlatten},ConfigFlatten:function(){return u.ConfigFlatten},ConfigMerge:function(){return u.ConfigMerge},ConfigProto:function(){return u.ConfigProto},ConnectionError:function(){return b.ConnectionError},LimitedStack:function(){return P.LimitedStack},OptionsError:function(){return b.OptionsError},UNSAFE_PROTO_KEYS:function(){return k.UNSAFE_PROTO_KEYS},abort:function(){return b.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return r.alreadyLoadedList},appendScriptAsync:function(){return r.appendScriptAsync},appendStyleAsync:function(){return r.appendStyleAsync},assert:function(){return s.assert},attr:function(){return a.attr},browser:function(){return l.browser},buildQuery:function(){return c.buildQuery},call:function(){return D.call},callPromise:function(){return D.callPromise},callThis:function(){return D.callThis},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},cns:function(){return S.cns},completeUrl:function(){return d.completeUrl},connection:function(){return b.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return p.css},cssPath:function(){return j.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return m.dataBind},defaultLanguage:function(){return g.defaultLanguage},error:function(){return b.error},fastClone:function(){return y.fastClone},get:function(){return w.get},getClassName:function(){return _.getClassName},getDataTransfer:function(){return D.getDataTransfer},getPropertyDescriptor:function(){return D.getPropertyDescriptor},getXPathByElement:function(){return j.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return C.humanSizeToBytes},inView:function(){return T.inView},isAtom:function(){return y.isAtom},isUnsafeProtoKey:function(){return k.isUnsafeProtoKey},keepNames:function(){return _.keepNames},keys:function(){return D.keys},loadImage:function(){return D.loadImage},loadNext:function(){return r.loadNext},loadNextStyle:function(){return r.loadNextStyle},markAsAtomic:function(){return y.markAsAtomic},markDeprecated:function(){return S.markDeprecated},markOwner:function(){return D.markOwner},memorizeExec:function(){return D.memorizeExec},options:function(){return b.options},parseQuery:function(){return x.parseQuery},previewBox:function(){return I.previewBox},refs:function(){return j.refs},reset:function(){return E.reset},resolveElement:function(){return j.resolveElement},scrollIntoViewIfNeeded:function(){return T.scrollIntoViewIfNeeded},set:function(){return A.set}});var o=n(25726),r=n(63799),s=n(38837),a=n(29960),l=n(97639),c=n(44710),d=n(66292),u=n(68934),h=n(55877),p=n(41180),f=n(15456),m=n(86583),g=n(96325),b=n(89890),y=n(97735),w=n(94643),_=n(80568),C=n(38420),k=n(69175),S=n(95942),x=n(82501),I=n(11628),E=n(58844),T=n(26395),j=n(76078),A=n(3703),P=n(50535),D=n(37790)},69175:function(t,i,n){"use strict";n.d(i,{UNSAFE_PROTO_KEYS:function(){return o},isUnsafeProtoKey:function(){return r}});let o=["__proto__","constructor","prototype"];function r(t){return -1!==o.indexOf(t)}},95942:function(t,i,n){"use strict";n.d(i,{cns:function(){return o},markDeprecated:function(){return r}});let o=console;function r(t,i=[""],n=null){return(...r)=>(o.warn(`Method "${i[0]}" deprecated.`+(i[1]?` Use "${i[1]}" instead`:"")),t.call(n,...r))}},82501:function(t,i,n){"use strict";n.d(i,{parseQuery:function(){return o}});let o=t=>{let i={},n=t.substring(1).split("&");for(let t=0;t<n.length;t+=1){let o=n[t].split("=");i[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return i}},11628:function(t,i,n){"use strict";n.d(i,{previewBox:function(){return c}});var o=n(2748),r=n(70799),s=n(29960),a=n(41180),l=n(76078);function c(t,i,n="px",d=null){let u=[],h=function(t,i){let n=[];try{(0,l.$$)("img",t.editor).forEach(r=>{let a=[(0,s.attr)(r,"width"),(0,s.attr)(r,"height"),r.src];(0,s.attr)(r,{width:r.offsetWidth+i,height:r.offsetHeight+i});let l=t.createInside.a();t.ed.body.appendChild(l),l.href=r.src,r.src=l.href,o.Dom.safeRemove(l),n.push(()=>{var t;r.src=null!=(t=a[2])?t:"",(0,s.attr)(r,{width:a[0]||null,height:a[1]||null})})})}catch(t){throw n.forEach(t=>t()),n.length=0,t}return n}(t,n);try{let l=t.e.fire("beforePreviewBox",i,n);if(null!=l)return l;let c=t.c.div("jodit__preview-box jodit-context");d&&d.appendChild(c),(0,a.css)(c,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let i=t.create.element("iframe");(0,a.css)(i,{minWidth:800,minHeight:600,border:0}),c.appendChild(i);let n=i.contentWindow;if(n&&(t.e.fire("generateDocumentStructure.iframe",n.document,t),c=n.document.body,"function"==typeof ResizeObserver)){let o=!1,r=n.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(r),i.style.height=`${r.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||s.observe(r)})},100)),a=()=>{o=!0,s.unobserve(r),s.disconnect(),t.e.off("beforeDestruct",a)};u.push(a),t.e.on("beforeDestruct",a)}}else(0,a.css)(c,{minWidth:1024,minHeight:600,border:0});let p=(i,n)=>{let a=(0,r.isString)(n)?t.c.div():n;(0,r.isString)(n)&&(a.innerHTML=n);for(let t=0;t<a.childNodes.length;t+=1){let n=a.childNodes[t];if(o.Dom.isElement(n)){let t=i.ownerDocument.createElement(n.nodeName);for(let i=0;i<n.attributes.length;i+=1)(0,s.attr)(t,n.attributes[i].nodeName,n.attributes[i].nodeValue);0===n.childNodes.length||o.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(t.textContent=n.textContent):n.innerHTML&&(t.innerHTML=n.innerHTML):p(t,n);try{i.appendChild(t)}catch(t){}}else try{i.appendChild(n.cloneNode(!0))}catch(t){}}};return p(c,h),t.e.fire("afterPreviewBox",c),[c,()=>{u.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},58844:function(t,i,n){"use strict";n.d(i,{reset:function(){return l}});var o=n(82758),r=n(23282),s=n(94643);let a={};function l(t){var i,n;if(!(t in a)){let n=o.globalDocument.createElement("iframe");try{if(n.src="about:blank",o.globalDocument.body.appendChild(n),!n.contentWindow)return null;let i=(0,s.get)(t,n.contentWindow),l=(0,s.get)(t.split(".").slice(0,-1).join("."),n.contentWindow);(0,r.isFunction)(i)&&(a[t]=i.bind(l))}catch(t){if(!o.IS_PROD)throw t}finally{null==(i=n.parentNode)||i.removeChild(n)}}return null!=(n=a[t])?n:null}},26395:function(t,i,n){"use strict";n.d(i,{inView:function(){return r},scrollIntoViewIfNeeded:function(){return s}});var o=n(2748);function r(t,i,n){let o=t.getBoundingClientRect(),r=t,s=o.top,a=o.height;for(;r&&r!==i&&r.parentNode;)if(!(s<=(o=(r=r.parentNode).getBoundingClientRect()).bottom)||s+a<=o.top)return!1;return s<=(n.documentElement&&n.documentElement.clientHeight||0)&&s+a>=0}function s(t,i,n){o.Dom.isHTMLElement(t)&&!r(t,i,n)&&(i.clientHeight!==i.scrollHeight&&(i.scrollTop=t.offsetTop),r(t,i,n)||t.scrollIntoView())}},76078:function(t,i,n){"use strict";n.d(i,{$$:function(){return h},cssPath:function(){return m},getXPathByElement:function(){return p},refs:function(){return f},resolveElement:function(){return g}});var o=n(82758),r=n(2748),s=n(4510),a=n(70799),l=n(87058),c=n(29960),d=n(89890);let u=1;function h(t,i){let n;if(!o.IS_ES_NEXT&&/:scope/.test(t)&&o.IS_IE&&!(i&&i.nodeType===Node.DOCUMENT_NODE)){let o=i.id,r=o||"_selector_id_"+(Math.random()+"").slice(2)+ ++u;t=t.replace(/:scope/g,"#"+r),o||i.setAttribute("id",r),n=i.parentNode.querySelectorAll(t),o||i.removeAttribute("id")}else n=i.querySelectorAll(t);return[].slice.call(n)}let p=(t,i)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||i===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let n=[].filter.call(t.parentNode.childNodes,i=>i.nodeName===t.nodeName);return p(t.parentNode,i)+"/"+t.nodeName.toLowerCase()+(n.length>1?"["+((0,s.toArray)(n).indexOf(t)+1)+"]":"")},f=t=>("container"in t&&(t=t.container),h("[ref],[data-ref]",t).reduce((t,i)=>{let n=(0,c.attr)(i,"-ref");return n&&(0,a.isString)(n)&&(t[(0,l.camelCase)(n)]=i,t[n]=i),t},{})),m=t=>{if(!r.Dom.isElement(t))return null;let i=[],n=t;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let t=n.nodeName.toLowerCase();if(n.id){t+="#"+n.id,i.unshift(t);break}{let i=n,o=1;do(i=i.previousElementSibling)&&i.nodeName.toLowerCase()===t&&o++;while(i)t+=":nth-of-type("+o+")"}i.unshift(t),n=n.parentNode}return i.join(" > ")};function g(t,i){let n=t;if((0,a.isString)(t))try{n=i.querySelector(t)}catch(i){throw(0,d.error)('String "'+t+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!r.Dom.isElement(n)||!n.cloneNode)throw(0,d.error)('Element "'+t+'" should be string or HTMLElement instance');return n}},3703:function(t,i,n){"use strict";n.d(i,{set:function(){return c}});var o=n(68345),r=n(29807),s=n(72430),a=n(70799),l=n(69175);function c(t,i,n){if(!(0,a.isString)(t)||!t.length)return;let c=t.split(".");if(c.some(l.isUnsafeProtoKey))return;let d=n,u=c[0];for(let t=0;t<c.length-1;t+=1)u=c[t],(0,o.isArray)(d[u])||(0,s.isPlainObject)(d[u])||(d[u]=(0,r.isNumeric)(c[t+1])?[]:{}),d=d[u];d&&(d[c[c.length-1]]=i)}},50535:function(t,i,n){"use strict";n.d(i,{LimitedStack:function(){return o}});class o{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){this.limit=t,this.stack=[]}}},37790:function(t,i,n){"use strict";n.d(i,{call:function(){return l},callPromise:function(){return u},callThis:function(){return c},getDataTransfer:function(){return m},getPropertyDescriptor:function(){return g},keys:function(){return p},loadImage:function(){return h},markOwner:function(){return d},memorizeExec:function(){return f}});var o=n(14773),r=n(86068),s=n(29960),a=n(86583);function l(t,...i){return t(...i)}function c(t,i,...n){return t.apply(i,n)}function d(t,i){(0,s.attr)(i,"data-editor_id",t.id),i.component||Object.defineProperty(i,"jodit",{value:t})}function u(t,i){return(0,o.isPromise)(t)?t.then(t=>t,()=>null).finally(i):null==i?void 0:i()}let h=(t,i)=>i.async.promise((n,o)=>{let r=new Image,s=()=>{i.e.off(r),null==o||o()},a=()=>{i.e.off(r),n(r)};i.e.one(r,"load",a).one(r,"error",s).one(r,"abort",s),r.src=t,r.complete&&a()}),p=(t,i=!0)=>{if(i)return Object.keys(t);let n=[];for(let i in t)n.push(i);return n},f=(t,i,{control:n},o)=>{var s;let l="button"+n.command,c=null!=(s=n.args&&n.args[0])?s:(0,a.dataBind)(t,l);if((0,r.isVoid)(c))return!1;(0,a.dataBind)(t,l,c),o&&(c=o(c)),t.execCommand(n.command,!1,null!=c?c:void 0)},m=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch(t){return null}};function g(t,i){let n;do n=Object.getOwnPropertyDescriptor(t,i),t=Object.getPrototypeOf(t);while(!n&&t)return n}},31359:function(t,i,n){"use strict";n.d(i,{init:function(){return a}});var o=n(82758),r=n(60132),s=n(14041);function a(t,i,n,a,l,c,d){if((0,r.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(i,a),c.delete(i),a.hasStyle&&(0,s.loadStyle)(t,i).catch(t=>{o.IS_PROD}),a.styles&&(d(t,i,"style").innerHTML=a.styles)}},14041:function(t,i,n){"use strict";n.d(i,{loadExtras:function(){return u},loadStyle:function(){return c}});var o=n(82758),r=n(12475),s=n(63799),a=n(89672);let l=new Set;async function c(t,i){let n=d(t,i,!1);if(!l.has(n))return l.add(n),(0,s.appendStyleAsync)(t,n)}function d(t,i,n){i=(0,r.kebabCase)(i);let o=t.minified?".min":"";return t.basePath+"plugins/"+i+"/"+i+o+"."+(n?"js":"css")}function u(t,i,n,r){try{let o=n.filter(i=>!t.has((0,a.normalizeName)(i.name)));o.length&&o.map(t=>{let n=t.url||d(i,t.name,!0);return(0,s.appendScriptAsync)(i,n).then(r).catch(()=>null)})}catch(t){if(!o.IS_PROD)throw t}}},48591:function(t,i,n){"use strict";n.d(i,{makeInstance:function(){return s}});var o=n(82758),r=n(23282);function s(t,i){try{try{return(0,r.isFunction)(i)?new i(t):i}catch(n){if((0,r.isFunction)(i)&&!i.prototype)return i(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},89672:function(t,i,n){"use strict";n.d(i,{normalizeName:function(){return r}});var o=n(12475);function r(t){return(0,o.kebabCase)(t).toLowerCase()}},50911:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return o.Plugin}});var o=n(20356);n(41876)},41876:function(t,i,n){"use strict";n.d(i,{PluginSystem:function(){return f}});var o=n(82758),r=n(57012),s=n(46559),a=n(68345),l=n(60132),c=n(70799),d=n(31359),u=n(14041),h=n(48591),p=n(89672);class f{get size(){return this.__items.size}add(t,i){this.__items.set((0,p.normalizeName)(t),i),r.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,p.normalizeName)(t))}remove(t){this.__items.delete((0,p.normalizeName)(t))}__getFullPluginsList(t){let i=[];return this.__items.forEach((n,o)=>{(!t||t.has(o))&&i.push([o,n])}),i}__init(t){let{extraList:i,disableList:n,filter:r}={extraList:t.o.extraPlugins.map(t=>(0,c.isString)(t)?{name:t}:t),disableList:new Set((0,s.splitArray)(t.o.disablePlugins).map(p.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},f=new Map,m={},g=new Set;t.__plugins=m;let b=()=>{if(t.isInDestruct)return;let i=!1;this.__getFullPluginsList(r).forEach(([o,r])=>{if(n.has(o)||f.has(o))return;let s=null==r?void 0:r.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(t=>n.has(t)))return;if(!s.every(t=>f.has(t)))return void g.add(o)}i=!0;let l=(0,h.makeInstance)(t,r);if(!l){f.set(o,null),g.delete(o);return}(0,d.init)(t,o,r,l,f,g,this.opts.getContainer),m[o]=l}),i&&(t.e.fire("updatePlugins"),b())};i&&i.length&&(0,u.loadExtras)(this.__items,t,i,b),b(),t.e.on("beforeDestruct",()=>{Object.keys(m).forEach(i=>{let n=m[i];(0,l.isDestructable)(n)&&n.destruct(t),delete m[i]}),delete t.__plugins}),o.IS_PROD||g.size}wait(t){return new Promise(i=>{if(this.get(t))return i();let n=()=>{i(),r.eventEmitter.off(`plugin:${t}:ready`,n)};r.eventEmitter.on(`plugin:${t}:ready`,n)})}constructor(t){this.opts=t,this.__items=new Map}}},20356:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return l}});var o=n(91907),r=n(65478),s=n(19306),a=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class l extends o.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:t,buttons:i}=this;i&&(0,s.isJoditObject)(t)&&i.forEach(i=>{t.registerButton(i)})}__afterInit(){this.__inited=!0,this.setStatus(o.STATUSES.ready),this.afterInit(this.jodit)}init(t){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var t;if(this.isInDestruct)return;let{j:i}=this;if(i.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(o.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,s.isJoditObject)(i)&&(null==(t=this.buttons)||t.forEach(t=>{null==i||i.unregisterButton(t)})),this.beforeDestruct(this.j),super.destruct()}constructor(t){super(t),this.buttons=[],this.hasStyle=!1,this.__inited=!1,t.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}l.requires=[],a([r.autobind],l.prototype,"__afterPluginSystemInit",null),a([r.autobind],l.prototype,"__afterInit",null),a([r.autobind],l.prototype,"__beforeDestruct",null)},54079:function(t,i,n){"use strict";n.d(i,{Ajax:function(){return u}});var o=n(8884),r=n(82758),s=n(45219),a=n(21537),l=n(89890),c=n(6441);n(57459);var d=n(98582);class u{className(){return"Ajax"}__buildParams(t,i){return(0,a.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,a.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,i):(0,a.isString)(t)||t instanceof r.globalWindow.FormData||"object"==typeof t&&null!=t&&(0,a.isFunction)(t.append)?t:(0,a.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(t){}return this}send(){this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest();return this.__async.promise(async(o,r)=>{var s;let c=()=>{this.__isFulfilled=!0,r(l.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,o(new d.Response(n,t.status,t.statusText,!t.responseType?t.responseText:t.response))};t.onload=u,t.onabort=()=>{this.__isFulfilled=!0,r(l.abort("Abort connection"))},t.onerror=c,t.ontimeout=c,i.responseType&&(t.responseType=i.responseType),t.onprogress=t=>{var i,n;let o=0;t.lengthComputable&&(o=t.loaded/t.total*100),null==(n=(i=this.options).onProgress)||n.call(i,o)},t.onreadystatechange=()=>{var n,o;null==(o=(n=this.options).onProgress)||o.call(n,10),t.readyState===XMLHttpRequest.DONE&&(i.successStatuses.includes(t.status)?u():t.statusText&&(this.__isFulfilled=!0,r(l.connection(t.statusText))))},t.withCredentials=null!=(s=i.withCredentials)&&s;let{url:h,data:p,method:f}=n;t.open(f,h,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:m}=i;(0,a.isFunction)(m)&&(m=await m.call(this)),m&&t.setRequestHeader&&Object.keys(m).forEach(i=>{t.setRequestHeader(i,m[i])}),this.__async.setTimeout(()=>{t.send(p?this.__buildParams(p):void 0)},0)})}async *stream(){var t;this.__activated=!0;let{xhr:i,o:n}=this,o=this.prepareRequest(),r=0,s="",c=[],d=null,u=!1,h=null,p=()=>{if(d){let t=d;d=null,t()}},f=t=>{var n;let o=i.responseText;s+=o.substring(r),r=o.length;let a=s.split(`
|
|
19
19
|
|
|
20
20
|
`);for(let i of(s=t?"":null!=(n=a.pop())?n:"",a)){let t=i.trim();if(!t)continue;let n=[];for(let i of t.split(`
|
|
21
21
|
`))i.startsWith("data: ")?n.push(i.slice(6)):i.startsWith("data:")&&n.push(i.slice(5));n.length&&c.push(n.join(`
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
<div class="&__spinner"></div>
|
|
141
141
|
</div>
|
|
142
142
|
</div>
|
|
143
|
-
</div>`}setPrompt(t){if(t){let{jodit:i}=this,n=i.o.aiAssistant[t],{aiCommonPrefixPrompt:o,aiCommonSuffixPrompt:r}=i.o.aiAssistant;this.promptInput.value=[o,(0,a.isString)(n)?n:"",r].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(t){this.setMod("loading",!1),s.Dom.detach(this.__results),this.__aiResult=t,this.__results.appendChild(this.jodit.c.fromHTML(t)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(t){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=t,s.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let i=this.getFullElName("","hide","true");this.__results.classList.add(i),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(t){this.__submitButton.state.disabled=t,this.__tryAgainButton.state.disabled=t}__toggleInsertButton(t){this.__insertButton.state.disabled=t,this.__insertAfterButton.state.disabled=t}constructor(t,{onInsert:i,onInsertAfter:n}){super(t),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,l.Button)(t,"","Insert","primary").onAction(()=>i(this.__aiResult)),this.__insertAfterButton=(0,l.Button)(t,"","Insert After","initial").onAction(()=>n(this.__aiResult));const o=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,l.Button)(t,"ai-assistant","").onAction(o),this.__tryAgainButton=(0,l.Button)(t,"update","","initial").onAction(o),this.promptInput=new l.UITextArea(t,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const r=new l.UIBlock(t,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new l.UIForm(t,[new l.UIBlock(t,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(i=>{this.__error.textContent="",this.setMod("loading",!0),t.e.fire("invokeAiAssistant",i.prompt);let n=this.getFullElName("","hide","true");this.__results.classList.remove(n),this.__buttons.classList.remove(n),s.Dom.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(r.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}};d([(0,r.watch)(":ai-assistant-response")],u.prototype,"onAiAssistentResponse",null),d([(0,r.watch)(":ai-assistant-error")],u.prototype,"onAiAssistentError",null),d([(0,r.watch)("promptInput:change")],u.prototype,"onChangePromptValue",null),u=d([o.component],u)},25187:function(t,i,n){"use strict";n(73391),n(12391),n(93183),n(66707),n(41107),n(71255),n(82439),n(61323),n(93079),n(19063),n(19271),n(1255),n(575),n(11317),n(36243),n(23399),n(96111),n(2169),n(42263),n(16233),n(77469),n(23531),n(80763),n(3215),n(70045),n(93401),n(76295),n(59483),n(91071),n(61019),n(65517),n(20071),n(32309),n(64837),n(79799),n(31571),n(85407),n(59451),n(18363),n(8355),n(58519),n(6687),n(56113),n(9159),n(12019),n(36125),n(9881),n(28545),n(45927),n(52951),n(43809),n(7309),n(68687),n(59495),n(39627),n(767),n(43003),n(72439),n(26551),n(72253),n(65735),n(83671),n(3115)},93183:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(23282),l=n(50911),c=n(45124);n(32496);var d=n(11338),u=n(14630);class h extends l.Plugin{afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,i="char"){let n=this.j,s=n.selection;if(s.isFocused()||s.focus(),(0,d.checkNotCollapsed)(n))return n.e.fire("backSpaceAfterDelete",t),!1;let l=s.range,h=n.createInside.text(o.INVISIBLE_SPACE);try{if(r.Dom.safeInsertNode(l,h),!r.Dom.isOrContains(n.editor,h))return;if(n.e.fire("backSpaceBeforeCases",t,h))return!1;(0,c.moveNodeInsideStart)(n,h,t);let s=n.o.delete.disableCases;if(u.casesMap.some(([r,l])=>{if(!(s&&s.has(r))&&(0,a.isFunction)(l)&&l(n,h,t,i))return o.IS_PROD,!0}))return!1}catch(t){throw o.IS_PROD,t}finally{n.e.fire("backSpaceAfterDelete",t,h),this.safeRemoveEmptyNode(h)}return!1}safeRemoveEmptyNode(t){var i,n;let{range:o}=this.j.s;o.startContainer===t&&(t.previousSibling?r.Dom.isText(t.previousSibling)?o.setStart(t.previousSibling,null!=(n=null==(i=t.previousSibling.nodeValue)?void 0:i.length)?n:0):o.setStartAfter(t.previousSibling):t.nextSibling&&(r.Dom.isText(t.nextSibling)?o.setStart(t.nextSibling,0):o.setStartBefore(t.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),r.Dom.safeRemove(t)}}h.requires=["hotkeys"],s.pluginSystem.add("backspace",h)},62845:function(t,i,n){"use strict";n.d(i,{checkJoinNeighbors:function(){return a}});var o=n(82758),r=n(2748),s=n(63785);function a(t,i,n){let s=i,a=s;for(;s&&!r.Dom.findNotEmptySibling(s,n)&&s.parentElement!==t.editor;)a=s=s.parentElement;if(r.Dom.isElement(a)&&r.Dom.isContentEditable(a,t.editor)){var c,d;let s,u,h,p=r.Dom.findNotEmptySibling(a,n);if(r.Dom.isTag(p,"br"))return r.Dom.safeRemove(p),t.s.setCursorBefore(i),!0;if(p&&(c=a,d=p,s=r.Dom.isTag(d,o.LIST_TAGS),u=r.Dom.isTag(c,o.LIST_TAGS),h=(t,i)=>i?t.firstElementChild:t.lastElementChild,(u?(d=t.createInside.element(t.o.enterBlock),r.Dom.before(c,d),l(t,h(c,n),d,n)):!!d&&!!s&&!u&&l(t,c,h(d,!n),n))||l(t,a,function(t,i){if(!r.Dom.isTag(t,"table"))return t;let n=t.querySelectorAll("td,th");return n.length?n[i?n.length-1:0]:null}(p,n),n)))return t.s.setCursorBefore(i),!0}return!1}function l(t,i,n,o){if(i&&r.Dom.isElement(n)){r.Dom.moveContent(i,n,!o,(0,s.getMoveFilter)(t));let a=i;for(;a&&a!==t.editor&&r.Dom.isEmpty(a);){let t=a.parentElement;r.Dom.safeRemove(a),a=t}return!0}return!1}},91748:function(t,i,n){"use strict";n.d(i,{checkJoinTwoLists:function(){return a}});var o=n(2748),r=n(37790),s=n(63785);function a(t,i,n){let a=o.Dom.findSibling(i,n),l=o.Dom.findSibling(i,!n);if(!o.Dom.closest(i,o.Dom.isElement,t.editor)&&o.Dom.isList(a)&&o.Dom.isList(l)&&o.Dom.isTag(a.lastElementChild,"li")&&o.Dom.isTag(l.firstElementChild,"li")){let{setCursorBefore:c,setCursorAfter:d}=t.s,u=a.lastElementChild,h=l.firstElementChild;return(0,r.call)(n?o.Dom.prepend:o.Dom.append,h,i),o.Dom.moveContent(l,a,!n,(0,s.getMoveFilter)(t)),o.Dom.safeRemove(l),(0,r.call)(n?o.Dom.append:o.Dom.prepend,u,i),(0,r.call)(n?c:d,i),!0}return!1}},11338:function(t,i,n){"use strict";function o(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}n.d(i,{checkNotCollapsed:function(){return o}})},73792:function(t,i,n){"use strict";n.d(i,{checkRemoveChar:function(){return function t(i,n,a,c){var d,u,h,p;let f,m=a?-1:1,g=r.Dom.sibling(n,!a),b=r.Dom.sibling(n,a),y=null,w=!1;for(b||(b=l(n,a,i.editor));b&&(r.Dom.isText(b)||r.Dom.isInlineBlock(b));){for(;r.Dom.isInlineBlock(b);)b=a?null==b?void 0:b.lastChild:null==b?void 0:b.firstChild;if(!b)break;if((null==(d=b.nodeValue)?void 0:d.length)&&(f=function(t,i,n,a){let l=(0,s.toArray)(t.nodeValue),c=l.length,d=i?c-1:0;if(l[d]===o.INVISIBLE_SPACE)for(;l[d]===o.INVISIBLE_SPACE;)d+=n;let u=l[d];if(l[d+n]===o.INVISIBLE_SPACE){for(d+=n;l[d]===o.INVISIBLE_SPACE;)d+=n;d+=i?1:-1}return l=i&&d<0?[]:l.slice(i?0:d+1,i?d:c),function(t,i,n){var a;if(!t||!r.Dom.isText(t)||(!i?/ $/:/^ /).test(null!=(a=t.nodeValue)?a:"")||!(0,s.trimInv)(t.nodeValue||"").length)for(let t=i?n.length-1:0;i?t>=0:t<n.length;t+=i?-1:1)if(" "===n[t])n[t]=o.NBSP_SPACE;else break}(a,i,l),t.nodeValue=l.join(""),u}(b,a,m,g),!b.nodeValue.length&&r.Dom.isInlineBlock(b.parentNode)&&(b.nodeValue=o.INVISIBLE_SPACE)),(null==(u=b.nodeValue)?void 0:u.length)||(y=b),!(0,s.isVoid)(f)&&f!==o.INVISIBLE_SPACE){h=b,p=f,(0,s.call)(a?r.Dom.after:r.Dom.before,h,n),("sentence"===c||"word"===c&&" "!==p&&p!==o.NBSP_SPACE)&&t(i,n,a,c),w=!0;break}let _=l(b,a,i.editor);y&&(r.Dom.safeRemove(y),y=null),b=_}return y&&(r.Dom.safeRemove(y),y=null),w&&(function(t){let i=t.parentElement;for(;i&&r.Dom.isInlineBlock(i)&&r.Dom.isTag(i,"a");){let n=i.parentElement;r.Dom.isEmpty(i)&&(r.Dom.after(i,t),r.Dom.safeRemove(i)),i=n}}(n),n.parentElement!==i.editor&&r.Dom.isBlock(n.parentElement)&&r.Dom.each(n.parentElement,r.Dom.isEmptyTextNode)&&r.Dom.after(n,i.createInside.element("br")),i.s.setCursorBefore(n),r.Dom.isTag(n.previousSibling,"br")&&!r.Dom.findNotEmptySibling(n,!1)&&r.Dom.after(n,i.createInside.element("br"))),w}}});var o=n(82758),r=n(22732),s=n(21537),a=n(63785);function l(t,i,n){let o=r.Dom.sibling(t,i);return!o&&t.parentNode&&t.parentNode!==n&&(o=(0,a.findMostNestedNeighbor)(t,!i,n,!0))&&r.Dom.closest(t,"li",n)!==r.Dom.closest(o,"li",n)?null:o}},87536:function(t,i,n){"use strict";n.d(i,{checkRemoveContentNotEditable:function(){return a}});var o=n(22732),r=n(21537),s=n(45124);function a(t,i,n){let a=o.Dom.findSibling(i,n);return!a&&i.parentElement&&i.parentElement!==t.editor&&(a=o.Dom.findSibling(i.parentElement,n)),!(!o.Dom.isElement(a)||o.Dom.isContentEditable(a,t.editor))&&((0,r.call)(n?o.Dom.before:o.Dom.after,a,i),o.Dom.safeRemove(a),(0,s.moveNodeInsideStart)(t,i,n),(0,r.call)(n?t.s.setCursorBefore:t.s.setCursorAfter,i),!0)}},12474:function(t,i,n){"use strict";n.d(i,{checkRemoveEmptyNeighbor:function(){return r}});var o=n(2748);function r(t,i,n){let r=o.Dom.closest(i,o.Dom.isElement,t.editor);if(!r)return!1;let s=o.Dom.findNotEmptySibling(r,n);return!!(s&&o.Dom.isEmpty(s))&&(o.Dom.safeRemove(s),t.s.setCursorBefore(i),!0)}},58940:function(t,i,n){"use strict";n.d(i,{checkRemoveEmptyParent:function(){return a}});var o=n(82758),r=n(22732),s=n(91748);function a(t,i,n){let a=!1,{setCursorBefore:l,setCursorIn:c}=t.s,d=r.Dom.closest(i,r.Dom.isElement,t.editor);if(!d||!r.Dom.isEmpty(d))return!1;let u=r.Dom.findNotEmptyNeighbor(i,n,t.editor);do if(d&&r.Dom.isEmpty(d)&&!r.Dom.isCell(d)){r.Dom.after(d,i);let n=r.Dom.closest(d,t=>r.Dom.isElement(t)&&t!==d,t.editor);r.Dom.safeRemove(d),a=!0,d=n}else break;while(d)return!!(a&&(0,s.checkJoinTwoLists)(t,i,n))||(!u||r.Dom.isText(u)||r.Dom.isTag(u,o.INSEPARABLE_TAGS)?l(i):c(u,!n),a)}},56825:function(t,i,n){"use strict";n.d(i,{checkRemoveUnbreakableElement:function(){return a}});var o=n(82758),r=n(2748),s=n(58940);function a(t,i,n){let a=r.Dom.findSibling(i,n);return!!(r.Dom.isElement(a)&&(r.Dom.isTag(a,o.INSEPARABLE_TAGS)||r.Dom.isEmpty(a)))&&(r.Dom.safeRemove(a),r.Dom.isTag(a,"br")&&!r.Dom.findNotEmptySibling(i,!1)&&r.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),r.Dom.isTag(a,"br")&&(0,s.checkRemoveEmptyParent)(t,i,n),!0)}},90240:function(t,i,n){"use strict";n.d(i,{checkTableCell:function(){return r}});var o=n(2748);function r(t,i){let n=i.parentElement;return!!o.Dom.isCell(n)}},68034:function(t,i,n){"use strict";n.d(i,{checkUnwrapFirstListItem:function(){return s}});var o=n(2748),r=n(43555);function s(t,i,n){var s;let a=o.Dom.closest(i,o.Dom.isElement,t.editor),{s:l}=t;if(o.Dom.isLeaf(a)&&(null==(s=null==a?void 0:a.parentElement)?void 0:s[n?"firstElementChild":"lastElementChild"])===a&&l.cursorInTheEdge(n,a)){let s=a.parentElement,c=t.createInside.element(t.o.enterBlock);return(0,r.call)(n?o.Dom.before:o.Dom.after,s,c),o.Dom.moveContent(a,c),o.Dom.safeRemove(a),o.Dom.isEmpty(s)&&o.Dom.safeRemove(s),(0,r.call)(n?l.setCursorBefore:l.setCursorAfter,i),!0}return!1}},14630:function(t,i,n){"use strict";n.d(i,{casesMap:function(){return p}});var o=n(62845),r=n(91748),s=n(73792),a=n(87536),l=n(12474),c=n(58940),d=n(56825),u=n(90240),h=n(68034);let p=[["remove-unbreakable",d.checkRemoveUnbreakableElement],["remove-not-editable",a.checkRemoveContentNotEditable],["remove-char",s.checkRemoveChar],["table-cell",u.checkTableCell],["remove-empty-parent",c.checkRemoveEmptyParent],["remove-empty-neighbor",l.checkRemoveEmptyNeighbor],["join-two-lists",r.checkJoinTwoLists],["join-neighbors",o.checkJoinNeighbors],["unwrap-first-list-item",h.checkUnwrapFirstListItem]];p.map(([,t])=>t)},32496:function(t,i,n){"use strict";n(6441).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(t,i,n){"use strict";n.d(i,{findMostNestedNeighbor:function(){return r},getMoveFilter:function(){return s}});var o=n(22732);function r(t,i,n,s=!1){let a=t=>i?t.firstChild:t.lastChild,l=o.Dom.findNotEmptyNeighbor(t,!i,n);if(s&&o.Dom.isElement(l)&&!o.Dom.isInlineBlock(l))return null;if(l)do{if(!a(l))return l;l=a(l)}while(l)return null}function s(t){return i=>!0!==t.e.fire("backSpaceIsMovedIgnore",i)}},41107:function(t,i,n){"use strict";var o=n(580),r=n(21537),s=n(12153),a=n(6441);n(73674);var l=n(820),c=n(53651),d=n(16020),u=n(89758),h=n(98527),p=n(51855);o.pluginSystem.add("bold",function(t){let i=i=>{let n,o=a.Config.defaultOptions.controls[i],s={...o.css};return Object.keys(s).forEach(t=>{n||(n={}),n[t]=(0,r.isArray)(s[t])?s[t][0]:s[t]}),t.s.commitStyle({element:o.tags?o.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(i=>{t.registerButton({name:i,group:"font-style"})}),["superscript","subscript"].forEach(i=>{t.registerButton({name:i,group:"script"})}),t.registerCommand("bold",{exec:i,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:i,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:i,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:i}).registerCommand("subscript",{exec:i}).registerCommand("superscript",{exec:i})}),s.Icon.set("bold",l.default).set("italic",c.default).set("strikethrough",d.default).set("subscript",u.default).set("superscript",h.default).set("underline",p.default)},73674:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},o.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},o.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},o.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},o.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},o.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> '},53651:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> '},16020:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> '},89758:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> '},98527:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> '},51855:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '},71255:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(37790),a=n(50911),l=n(12153),c=n(6441),d=n(31151);c.Config.prototype.controls.classSpan={command:"applyClassName",exec:s.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,i){let n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isElement,t.editor)||t.editor;return!!(i.control.args&&r.classList.contains(i.control.args[0].toString()))}return!1},isActive(t,i){let n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isElement,t.editor)||t.editor,s=!1;return i.control.list&&Object.keys(i.control.list).forEach(t=>{r.classList.contains(t)&&(s=!0)}),!!(r&&r!==t.editor&&void 0!==i.control.list&&s)}return!1},childTemplate:(t,i,n)=>`<span class="${i}">${t.i18n(n)}</span>`,tooltip:"Insert className"};class u extends a.Plugin{afterInit(t){t.registerCommand("applyClassName",(i,n,o)=>(t.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}r.pluginSystem.add("classSpan",u),l.Icon.set("class-span",d.default)},31151:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '},82439:function(t,i,n){"use strict";var o=n(65478),r=n(2748),s=n(70071),a=n(580),l=n(86518),c=n(20356);n(46776);var d=n(59498),u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends c.Plugin{afterInit(t){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let t=this.j;this.walker.setWork(t.editor),this.currentSelectionNode=t.s.current()}startWalker(){let{jodit:t}=this,i=(0,d.getHash)(this.j.o.cleanHTML.allowTags),n=(0,d.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",o=>(0,d.visitNodeWalker)(t,o,i,n,this.currentSelectionNode)).on("end",t=>{this.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(t){if("removeformat"===t.toLowerCase())return this.j.s.isCollapsed()?(0,d.removeFormatForCollapsedSelection)(this.j):(0,d.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(t){let[i,n]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return i.innerHTML=t.value,this.j.e.fire("safeHTML",i),t.value=i.innerHTML,(0,l.safeHTML)(i,{safeJavaScriptLink:!0,removeOnError:!0}),r.Dom.safeRemove(n),!1}onAfterGetValueFromEditor(t){this.j.o.cleanHTML.collapseEmptyValueToEmptyString&&/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.test(t.value.trim())&&(t.value="")}onSafeHTML(t){let i=this.j.o.cleanHTML.sanitizer;i&&(t.innerHTML=i(t.innerHTML)),(0,l.safeHTML)(t,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new s.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}}u([(0,o.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),u([(0,o.hook)("ready")],h.prototype,"startWalker",null),u([(0,o.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),u([(0,o.watch)(":beforeSetNativeEditorValue")],h.prototype,"onBeforeSetNativeEditorValue",null),u([(0,o.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),u([(0,o.watch)(":safeHTML")],h.prototype,"onSafeHTML",null),a.pluginSystem.add("cleanHtml",h)},46776:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(44330);r.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},r.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},o.Icon.set("eraser",s.default)},44330:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},83447:function(t,i,n){"use strict";n.d(i,{getHash:function(){return s}});var o=n(70799),r=n(49055);function s(t){let i=/([^[]*)\[([^\]]+)]/,n=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,a={};return(0,o.isString)(t)?(t.split(n).map(t=>{t=(0,r.trim)(t);let o=i.exec(t),l={};if(o){let t=o[2].split(n);o[1]&&(t.forEach(t=>{t=(0,r.trim)(t);let i=s.exec(t);i?l[i[1]]=i[2]:l[t]=!0}),a[o[1].toUpperCase()]=l)}else a[t.toUpperCase()]=!0}),a):!!t&&(Object.keys(t).forEach(i=>{a[i.toUpperCase()]=t[i]}),a)}},59498:function(t,i,n){"use strict";n.d(i,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return r.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return s.removeFormatForSelection},visitNodeWalker:function(){return a.visitNodeWalker}});var o=n(83447),r=n(84272),s=n(42312),a=n(39516)},84272:function(t,i,n){"use strict";n.d(i,{isInlineBlock:function(){return a},removeFormatForCollapsedSelection:function(){return s}});var o=n(82758),r=n(2748);function s(t,i){let{s:n}=t,o=i;if(!o){o=t.createInside.fake();let{range:i}=n;r.Dom.safeInsertNode(i,o),i.collapse()}let s=r.Dom.furthest(o,a,t.editor);if(s)if(n.cursorOnTheLeft(s))r.Dom.before(s,o);else if(n.cursorOnTheRight(s))r.Dom.after(s,o);else{let t=n.splitSelection(s);t&&r.Dom.after(t,o)}i||(n.setCursorBefore(o),r.Dom.safeRemove(o))}function a(t){return r.Dom.isInlineBlock(t)&&!r.Dom.isTag(t,o.INSEPARABLE_TAGS)}},42312:function(t,i,n){"use strict";n.d(i,{removeFormatForSelection:function(){return a}});var o=n(2748),r=n(43555),s=n(84272);function a(t){let{s:i,editor:n,createInside:a}=t,{range:l}=i,c=l.cloneRange(),d=l.cloneRange(),u=a.fake(),h=a.fake();c.collapse(!0),d.collapse(!1),o.Dom.safeInsertNode(c,u),o.Dom.safeInsertNode(d,h),l.setStartBefore(u),l.collapse(!0),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,u),l.setEndAfter(h),l.collapse(!1),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,h);let p=[];o.Dom.between(u,h,t=>{(0,s.isInlineBlock)(t)&&!o.Dom.isTag(t,"a")&&p.push(t),o.Dom.isElement(t)&&(0,r.attr)(t,"style")&&(0,r.attr)(t,"style",null)}),p.forEach(t=>o.Dom.unwrap(t));let f=(t,i)=>{if(!o.Dom.findNotEmptySibling(t,i)){let o=t.parentNode;if(o&&o!==n&&(0,r.attr)(o,"style"))return(0,r.attr)(o,"style",null),f(o,i),!0}};f(u,!0)&&f(h,!1),l.setStartAfter(u),l.setEndBefore(h),i.selectRange(l),o.Dom.safeRemove(u),o.Dom.safeRemove(h)}},82558:function(t,i,n){"use strict";n.d(i,{allowAttributes:function(){return r}});var o=n(2748);function r(t,i,n,r){let s=r&&o.Dom.isElement(i)&&r[i.nodeName];if(r&&o.Dom.isElement(i)&&!0!==s){if(!s)return n;let t=i.attributes;if(t&&t.length){let o=[];for(let i=0;i<t.length;i+=1){let n=s[t[i].name];n&&(!0===n||n===t[i].value)||o.push(t[i].name)}o.length&&(n=!0),o.forEach(t=>{i.removeAttribute(t)})}}return n}},1962:function(t,i,n){"use strict";n.d(i,{convertUnsafeEmbeds:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=t.o.cleanHTML.convertUnsafeEmbeds;if(!s||!o.Dom.isElement(i))return n;let a=i.nodeName.toLowerCase();if(!s.includes(a))return n;let l=(0,r.attr)(i,"data")||(0,r.attr)(i,"src")||(0,r.attr)(i,"movie")||"";if(!l)return o.Dom.safeRemove(i),!0;let c=t.createInside.element("iframe");return(0,r.attr)(c,{src:l,sandbox:"",frameborder:"0",width:(0,r.attr)(i,"width"),height:(0,r.attr)(i,"height")}),o.Dom.replace(i,c,void 0,!1,!0),!0}},39433:function(t,i,n){"use strict";n.d(i,{fillEmptyParagraph:function(){return a}});var o=n(82758),r=n(2748);let s=new Set(["table","tbody","thead","tfoot","tr"]);function a(t,i,n){if(t.o.cleanHTML.fillEmptyParagraph&&r.Dom.isBlock(i)&&r.Dom.isEmpty(i,o.INSEPARABLE_TAGS)&&!r.Dom.isTag(i,s)){let n=t.createInside.element("br");return i.appendChild(n),!0}return n}},45235:function(t,i,n){"use strict";n.r(i),n.d(i,{allowAttributes:function(){return o.allowAttributes},convertUnsafeEmbeds:function(){return r.convertUnsafeEmbeds},fillEmptyParagraph:function(){return s.fillEmptyParagraph},removeEmptyTextNode:function(){return a.removeEmptyTextNode},removeInvTextNodes:function(){return l.removeInvTextNodes},replaceOldTags:function(){return c.replaceOldTags},safeLinksTarget:function(){return d.safeLinksTarget},sandboxIframesInContent:function(){return u.sandboxIframesInContent},sanitizeAttributes:function(){return h.sanitizeAttributes},sanitizeStyles:function(){return p.sanitizeStyles},tryRemoveNode:function(){return f.tryRemoveNode}});var o=n(82558),r=n(1962),s=n(39433),a=n(53392),l=n(25813),c=n(80973),d=n(95614),u=n(85978),h=n(384),p=n(15583),f=n(28800)},53392:function(t,i,n){"use strict";n.d(i,{removeEmptyTextNode:function(){return r}});var o=n(2748);function r(t,i,n,r,s,a){return o.Dom.isText(i)&&!i.nodeValue?(i===a&&t.s.isCollapsed()&&t.s.setCursorAfter(i),o.Dom.safeRemove(i),!0):n}},25813:function(t,i,n){"use strict";n.d(i,{removeInvTextNodes:function(){return s}});var o=n(82758),r=n(2748);function s(t,i,n,s,a,l){if(l===i||!r.Dom.isText(i)||null==i.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(i.nodeValue))return n;let c=r.Dom.furthest(l,r.Dom.isBlock,t.editor);return!c||r.Dom.isOrContains(c,i)?n:(i.nodeValue=i.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),i===l&&t.s.isCollapsed()&&t.s.setCursorAfter(i),i.nodeValue||r.Dom.safeRemove(i),!0)}},80973:function(t,i,n){"use strict";n.d(i,{replaceOldTags:function(){return r}});var o=n(2748);function r(t,i,n){let r=function(t,i,n){if(!n||!o.Dom.isHTMLElement(i))return i;let r=n[i.nodeName.toLowerCase()]||n[i.nodeName];return r?o.Dom.replace(i,r,t.createInside,!0,!1):i}(t,i,t.o.cleanHTML.replaceOldTags);return i!==r?(i=r,!0):n}},95614:function(t,i,n){"use strict";n.d(i,{safeLinksTarget:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){if(!t.o.cleanHTML.safeLinksTarget||!o.Dom.isElement(i)||"A"!==i.nodeName||"_blank"!==(0,r.attr)(i,"target"))return n;let s=((0,r.attr)(i,"rel")||"").split(/\s+/).filter(Boolean),a=!1;return(s.includes("noopener")||(s.push("noopener"),a=!0),s.includes("noreferrer")||(s.push("noreferrer"),a=!0),a)?((0,r.attr)(i,"rel",s.join(" ")),!0):n}},85978:function(t,i,n){"use strict";n.d(i,{sandboxIframesInContent:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){return t.o.cleanHTML.sandboxIframesInContent&&o.Dom.isElement(i)&&"IFRAME"===i.nodeName?i.hasAttribute("sandbox")?n:((0,r.attr)(i,"sandbox",""),!0):n}},384:function(t,i,n){"use strict";n.d(i,{sanitizeAttributes:function(){return s}});var o=n(2748),r=n(21537);function s(t,i,n){if(!o.Dom.isElement(i))return n;let s=t.options.cleanHTML;return!!(0,r.sanitizeHTMLElement)(i,{safeJavaScriptLink:s.safeJavaScriptLink,removeOnError:s.removeOnError,removeEventAttributes:s.removeEventAttributes,safeLinksTarget:s.safeLinksTarget})||n}},15583:function(t,i,n){"use strict";n.d(i,{sanitizeStyles:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=t.o.cleanHTML.allowedStyles;if(!s||!o.Dom.isElement(i))return n;let a=(0,r.attr)(i,"style");if(!a)return n;let l=function(t,i){let n=i[t],o=i["*"];if(!n&&!o)return null;let r=new Set;if(o)for(let t of o)r.add(t.toLowerCase());if(n)for(let t of n)r.add(t.toLowerCase());return r}(i.nodeName.toLowerCase(),s);if(!l)return n;let c=a.split(";").map(t=>t.trim()).filter(t=>{if(!t)return!1;let i=t.indexOf(":");if(-1===i)return!1;let n=t.substring(0,i).trim().toLowerCase();return l.has(n)}).join("; ").replace(/;\s*$/,"");return c!==a?((0,r.attr)(i,"style",c||null),!0):n}},28800:function(t,i,n){"use strict";n.d(i,{tryRemoveNode:function(){return a}});var o=n(82758),r=n(2748),s=n(49055);function a(t,i,n,a,l,c){return!function(t,i,n,a,l){if(!r.Dom.isText(i)&&(a&&!a[i.nodeName]||!a&&l&&l[i.nodeName]))return!0;if(!t.o.cleanHTML.removeEmptyElements)return!1;let c=t.s.isCollapsed()?t.s.range.startContainer:null;return r.Dom.isElement(i)&&null!=i.nodeName.match(o.IS_INLINE)&&!r.Dom.isTemporary(i)&&0===(0,s.trimInv)(i.innerHTML).length&&(null==n||!r.Dom.isOrContains(i,n))&&(null==c||!r.Dom.isOrContains(i,c))}(t,i,c,a,l)?n:(r.Dom.safeRemove(i),!0)}},39516:function(t,i,n){"use strict";n.d(i,{visitNodeWalker:function(){return a}});var o=n(82758),r=n(45235);let s=Object.keys(r);function a(t,i,n,a,l){let c=!1,d=t.o.cleanHTML.disableCleanFilter;for(let u of s)if(!(d&&d.has(u))&&(c=(0,r[u])(t,i,c,n,a,l),o.IS_PROD,!i.isConnected))return!0;return c}},61323:function(t,i,n){"use strict";var o=n(82758),r=n(33433),s=n(2748),a=n(580),l=n(21537);n(79419);class c{init(t){var i;null==(i=this.buttons)||i.forEach(i=>t.registerButton(i)),t.e.off(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`).on(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`,i=>{var n;let r=function(t,i){if(!i||t.s.isCollapsed())return i;let n=t.s.range.commonAncestorContainer;s.Dom.isElement(n)||(n=n.parentElement);let o=i;for(;n&&n!==t.editor&&s.Dom.isElement(n)&&!s.Dom.isBlock(n);){let t=n.cloneNode(!1);t.innerHTML=o,o=t.outerHTML,n=n.parentElement}return o}(t,t.s.html),a=(0,l.getDataTransfer)(i)||(0,l.getDataTransfer)(t.ew)||(0,l.getDataTransfer)(i.originalEvent);a&&(a.setData(o.TEXT_PLAIN,(0,l.stripTags)(r)),a.setData(o.TEXT_HTML,r)),t.buffer.set(o.CLIPBOARD_ID,r),t.e.fire("pasteStack",{html:r,action:t.o.defaultActionOnPaste||o.INSERT_AS_HTML}),"cut"===i.type&&(t.s.remove(),t.s.focus()),i.preventDefault(),null==(n=null==t?void 0:t.events)||n.fire("afterCopy",r)})}destruct(t){var i,n;null==(i=(0,r.cached)(t,"buffer"))||i.set(o.CLIPBOARD_ID,""),null==(n=null==t?void 0:t.events)||n.off("."+o.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}a.pluginSystem.add("clipboard",c)},79419:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(94775),a=n(23140),l=n(92699),c=n(10052);r.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},r.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},r.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",s.default).set("cut",a.default).set("paste",l.default).set("select-all",c.default)},94775:function(t,i){"use strict";i.default='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> '},23140:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> '},92699:function(t,i){"use strict";i.default='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> '},10052:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> '},46104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},93079:function(t,i,n){"use strict";var o=n(580),r=n(21537);n(21988),o.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let i=(i,n,o)=>{var s;let a=(0,r.normalizeColor)(o)||"",l="background"===i?{backgroundColor:a}:{color:a},c=t.getInstance("Table",t.o).getAllSelectedCells();return c.length&&t.s.isCollapsed()?(c.forEach(i=>{t.s.select(i,!0),t.s.commitStyle({attributes:{style:l}})}),null==(s=t.s.sel)||s.removeAllRanges()):t.s.commitStyle({attributes:{style:l}}),t.synchronizeValues(),!1};t.registerCommand("forecolor",i).registerCommand("background",i)})},21988:function(t,i,n){"use strict";var o=n(2748),r=n(21537),s=n(12153),a=n(6441),l=n(92762),c=n(46104);s.Icon.set("brush",c.default),a.Config.prototype.controls.brushCell={isVisible:t=>!t.o.disablePlugins.includes("color"),icon:"brush",popup(t,i,n){if(!(0,r.isJoditObject)(t))return;let o=t.getInstance("Table",t.o).getAllSelectedCells();if(!o.length)return!1;let s=i=>(0,l.ColorPickerWidget)(t,s=>{o.forEach(t=>{(0,r.css)(t,i,s)}),t.lock(),t.synchronizeValues(),n(),t.unlock()},(0,r.css)(o[0],i));return(0,l.TabsWidget)(t,[{name:"Background",content:s("background-color")},{name:"Text",content:s("color")},{name:"Border",content:s("border-color")}])},tooltip:"Background"},a.Config.prototype.controls.brush={isVisible:t=>!t.o.disablePlugins.includes("color"),update(t,i){let n=(0,r.dataBind)(i,"color"),s=(n,o)=>!!o&&o!==(0,r.css)(t.editor,n).toString()&&(i.state.icon.fill=o,!0);if(n){let t=(0,r.dataBind)(i,"color");s("color"===t?t:"background-color",n);return}let a=t.s.current();if(a&&!i.state.disabled){let i=o.Dom.closest(a,o.Dom.isElement,t.editor)||t.editor,n=s("color",(0,r.css)(i,"color").toString()),l=s("background-color",(0,r.css)(i,"background-color").toString());if(n||l)return}i.state.icon.fill="",i.state.activated=!1},popup(t,i,n,s){let a="",c="",d=[],u=null;return i&&i!==t.editor&&o.Dom.isNode(i)&&(o.Dom.isElement(i)&&t.s.isCollapsed()&&!o.Dom.isTag(i,new Set(["br","hr"]))&&(u=i),o.Dom.up(i,t=>{if(o.Dom.isHTMLElement(t)){let i=(0,r.css)(t,"color",!0),n=(0,r.css)(t,"background-color",!0);if(i)return a=i.toString(),!0;if(n)return c=n.toString(),!0}},t.editor)),d=[{name:"Background",content:(0,l.ColorPickerWidget)(t,i=>{u?u.style.backgroundColor=i:t.execCommand("background",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","background"),n()},c)},{name:"Text",content:(0,l.ColorPickerWidget)(t,i=>{u?u.style.color=i:t.execCommand("forecolor",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","color"),n()},a)}],"background"!==t.o.colorPickerDefaultTab&&(d=d.reverse()),(0,l.TabsWidget)(t,d,u)},exec(t,i,{button:n}){let s=(0,r.dataBind)(n,"color-mode"),a=(0,r.dataBind)(n,"color");if(!s)return!1;if(i&&i!==t.editor&&o.Dom.isNode(i)&&o.Dom.isElement(i))switch(s){case"color":i.style.color=a;break;case"background":i.style.backgroundColor=a}else t.execCommand("background"===s?s:"forecolor",!1,a)},tooltip:"Fill color or set the text color"}},19063:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(41180),a=n(12153),l=n(6441),c=n(57487),d=n(23914);let u="copy-format",h=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],p=(t,i,n,o)=>{let r=(0,s.css)(n,i);return r===o[i]&&(r=n.parentNode&&n!==t.editor&&n.parentNode!==t.editor?p(t,i,n.parentNode,o):void 0),r};l.Config.prototype.controls.copyformat={exec(t,i,{button:n}){if(i){if(t.buffer.exists(u))t.buffer.delete(u),t.e.off(t.editor,"mouseup."+u);else{let n,r={},a=o.Dom.up(i,t=>t&&!o.Dom.isText(t),t.editor)||t.editor,l=t.createInside.span();t.editor.appendChild(l),h.forEach(t=>{r[t]=(0,s.css)(l,t)}),l!==t.editor&&o.Dom.safeRemove(l);let c=(n={},a&&h.forEach(i=>{n[i]=p(t,i,a,r),i.match(/border(Style|Color)/)&&!n.borderWidth&&(n[i]=void 0)}),n);t.e.on(t.editor,"mouseup."+u,()=>{t.buffer.delete(u);let i=t.s.current();i&&(o.Dom.isTag(i,"img")?(0,s.css)(i,c):t.s.commitStyle({attributes:{style:c}})),t.e.off(t.editor,"mouseup."+u)}),t.buffer.set(u,!0)}n.update()}},isActive:t=>t.buffer.exists(u),tooltip:"Paint format"},r.pluginSystem.add("copyformat",function(t){t.registerButton({name:"copyformat",group:"clipboard"}),(0,r.extendLang)(d)}),a.Icon.set("copyformat",c.default)},57487:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> '},23914:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return r.a},cs_cz:function(){return r.a},de:function(){return r.a},es:function(){return r.a},fa:function(){return r.a},fi:function(){return r.a},fr:function(){return r.a},he:function(){return r.a},hu:function(){return r.a},id:function(){return r.a},it:function(){return r.a},ja:function(){return r.a},ko:function(){return r.a},mn:function(){return r.a},nl:function(){return r.a},pl:function(){return r.a},pt_br:function(){return r.a},ru:function(){return r.a},tr:function(){return r.a},zh_cn:function(){return r.a},zh_tw:function(){return r.a}});var o=n(41324),r=n.n(o)},66707:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(21537),a=n(49055),l=n(50911);class c extends l.Plugin{afterInit(t){t.e.on("afterCommand.delete",t=>{"delete"===t&&this.__afterDeleteCommand()}),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){let t=this.j,i=t.s.current();if(i&&o.Dom.isTag(i.firstChild,"br")&&t.s.removeNode(i.firstChild),!(0,a.trim)(t.editor.textContent||"")&&!t.editor.querySelector("img,table,jodit,iframe,hr")&&(!i||!o.Dom.closest(i,"table",t.editor))){t.editor.innerHTML="";let i=t.s.setCursorIn(t.editor);t.s.removeNode(i)}}__onDeleteCommand(){let{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();let i=t.s.range;i.deleteContents();let n=t.createInside.fake();i.insertNode(n);let r=o.Dom.findSibling(n,!0),s=o.Dom.findSibling(n,!1);return this.__moveContentInLeftSibling(n,r,s),i.setStartBefore(n),i.collapse(!0),this.__moveCursorInEditableSibling(t,r,n,i),this.__addBrInEmptyBlock(n,s,i),o.Dom.safeRemove(n),t.s.selectRange(i),!1}__moveContentInLeftSibling(t,i,n){i=this.__defineRightLeftBox(i),!o.Dom.isList(n)&&!o.Dom.isTag(n,"table")&&o.Dom.isBlock(n)&&o.Dom.isBlock(i)&&(o.Dom.append(i,t),o.Dom.moveContent(n,i),o.Dom.safeRemove(n)),o.Dom.isList(n)&&o.Dom.isLeaf(n.firstElementChild)&&o.Dom.isEmpty(n.firstElementChild)&&o.Dom.safeRemove(n.firstElementChild)}__defineRightLeftBox(t){if(!o.Dom.isList(t))return t;let i=t.lastElementChild;return o.Dom.isLeaf(i)||(i=this.j.createInside.element("li"),o.Dom.append(t,i)),i}__addBrInEmptyBlock(t,i,n){let r=this.j;if(t.isConnected&&o.Dom.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){let i=r.createInside.element("br");o.Dom.after(t,i),n.setStartBefore(i),n.collapse(!0)}if(o.Dom.isTag(i,"table")){let t=(0,s.$$)("td,th",i).shift();o.Dom.isCell(t)&&o.Dom.isEmpty(t)&&o.Dom.append(t,r.createInside.element("br"))}}__moveCursorInEditableSibling(t,i,n,r){var s;if(!i||!o.Dom.isText(i)){let i=null!=(s=o.Dom.closest(n,o.Dom.isBlock,t.editor))?s:t.editor,a=o.Dom.prev(n,o.Dom.isText,i);a&&(r.setStartAfter(a),r.collapse(!0),o.Dom.safeRemove(n))}}}c.requires=["backspace"],r.pluginSystem.add("deleteCommand",c)},44586:function(t,i,n){"use strict";n(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(t,i,n){"use strict";var o,r,s=n(65478),a=n(22732),l=n(580),c=n(21537),d=n(50911);n(44586);var u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};(o=r||(r={}))[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING";class h extends d.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,c.splitArray)(this.j.o.draggableTags).filter(Boolean).map(t=>t.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(t,i){this.isInDestruct||this.state>r.IDLE||!t||this.startDragging(t,i)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>r.IDLE)return;let i=t.target;if(!this.dragList.length||!i)return;let n=t=>!!(t&&this.dragList.includes(t.nodeName.toLowerCase())),o=a.Dom.furthest(i,n,this.j.editor)||(n(i)?i:null);o&&(a.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startDragging(o,t))}startDragging(t,i){this.startX=i.clientX,this.startY=i.clientY,this.isCopyMode=(0,c.ctrlKey)(i),this.draggable=t.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",t),this.state=r.WAIT_DRAGGING,this.addDragListeners()}onDrag(t){var i,n;if(!this.draggable||this.state===r.IDLE)return;let o=t.clientX,s=t.clientY;if(!(this.state===r.WAIT_DRAGGING&&Math.sqrt(Math.pow(o-this.startX,2)+Math.pow(s-this.startY,2))<this.diffStep)){if(this.state===r.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=r.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let o=(0,c.dataBind)(this.draggable,"target");(0,c.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:null!=(i=null==o?void 0:o.offsetWidth)?i:100,height:null!=(n=null==o?void 0:o.offsetHeight)?n:100}),(0,l.getContainer)(this.j,h).appendChild(this.draggable)}(0,c.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=r.IDLE,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<r.DRAGGING)return void this.onDragEnd();let t=(0,c.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));let{parentElement:i}=t;this.j.s.insertNode(t,!0,!1),[t.previousSibling,t.nextSibling].forEach(t=>{a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t)}),i&&a.Dom.isEmpty(i)&&!a.Dom.isCell(i)&&a.Dom.safeRemove(i),a.Dom.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=r.IDLE}}u([s.autobind],h.prototype,"onStartDragElement",null),u([s.autobind],h.prototype,"onDragStart",null),u([(0,s.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),u([s.autobind],h.prototype,"onDragEnd",null),u([s.autobind],h.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",h)},19271:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),c=n(50911),d=n(8172),u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends c.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){var i;let n=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=s.Dom.isOrContains(this.j.editor,n,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,l.ctrlKey)(t),this.isFragmentFromEditor){let t=this.j.s.sel,i=t&&t.rangeCount?t.getRangeAt(0):null;i&&(this.bufferRange=i.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,i=n,s.Dom.isElement(i)&&i.classList.contains(d.FileBrowserFiles.prototype.getFullElName("item"))&&(n=n.querySelector("img")),s.Dom.isTag(n,"img")&&(this.draggable=n.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",n)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;let i=this.j.s.sel,n=this.bufferRange||(i&&i.rangeCount?i.getRangeAt(0):null),o=this.__getWorkFragment(n,t);i&&i.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),o&&this.__insertFragment.call(this,o,n),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(t,i){let n=null;if(!this.draggable&&t)n=this.isCopyMode?t.cloneContents():t.extractContents();else if(this.draggable)if(this.isCopyMode){let[t,i]="1"===(0,l.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];n=this.j.createInside.element(t),(0,l.attr)(n,i,(0,l.attr)(this.draggable,"data-src")||(0,l.attr)(this.draggable,"src")||""),"a"===t&&(n.textContent=(0,l.attr)(n,i)||"")}else n=(0,l.dataBind)(this.draggable,"target");else this.getText(i)&&(n=this.j.createInside.fromHTML(this.getText(i)));return n}__insertFragment(t,i){this.j.s.insertNode(t,!1,!1),i&&t.firstChild&&t.lastChild&&(i.setStartBefore(t.firstChild),i.setEndAfter(t.lastChild),this.j.s.selectRange(i),this.j.e.fire("synchro")),s.Dom.isTag(t,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",t)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=t=>{let i=(0,l.getDataTransfer)(t);return i?i.getData(o.TEXT_HTML)||i.getData(o.TEXT_PLAIN):null}}}u([r.autobind],h.prototype,"onDragStart",null),u([(0,r.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),u([r.autobind],h.prototype,"onDragEnd",null),u([r.autobind],h.prototype,"onDrop",null),a.pluginSystem.add("dragAndDrop",h)},46124:function(t,i,n){"use strict";n.r(i),n.d(i,{removeExtraBr:function(){return o.removeExtraBr}});var o=n(94870)},94870:function(t,i,n){"use strict";n.d(i,{removeExtraBr:function(){return s}});var o=n(2748);let r=new Set(["table","pre","blockquote","code"]);function s(t,i){if(!t.o.dtd.removeExtraBr||o.Dom.isTag(i,"br"))return;let n=o.Dom.furthest(i,o.Dom.isBlock,t.editor);if(n&&!o.Dom.isTag(n,r)){let n=o.Dom.isTag(i,"br")?i:o.Dom.findNotEmptySibling(i,!1);if(!o.Dom.isTag(n,"br")||o.Dom.findNotEmptySibling(n,!1))return;t.s.setCursorBefore(n),o.Dom.safeRemove(n)}}},78720:function(t,i,n){"use strict";n.d(i,{checkBlockNesting:function(){return r}});var o=n(2748);function r(t,i){var n,r;if(o.Dom.isFragment(i)&&(i=i.firstChild),t.o.dtd.checkBlockNesting&&o.Dom.isBlock(i)){let i=null,s=null!=(r=null==(n=t.s.current())?void 0:n.parentElement)?r:null;for(;s&&s!==t.editor;){if(o.Dom.isBlock(s)){if(t.o.dtd.blockLimits[s.nodeName.toLowerCase()])break;i=s}s=s.parentElement}i&&(t.s.setCursorAfter(i),o.Dom.isEmpty(i)&&o.Dom.safeRemove(i))}}},43267:function(t,i,n){"use strict";n.r(i),n.d(i,{checkBlockNesting:function(){return o.checkBlockNesting}});var o=n(78720)},9045:function(t,i,n){"use strict";n(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(t,i,n){"use strict";var o=n(37133),r=n(580),s=n(50911);n(9045);var a=n(46124),l=n(43267),c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class d extends s.Plugin{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach(i=>{l[i](this.j,t)})}__onAfterInsertNode(t){Object.keys(a).forEach(i=>{a[i](this.j,t)})}}c([(0,o.watch)(":beforeInsertNode")],d.prototype,"__onBeforeInsertNode",null),c([(0,o.watch)(":afterInsertNode")],d.prototype,"__onAfterInsertNode",null),r.pluginSystem.add("dtd",d)},575:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(87612),c=n(20356),d=n(35399);class u extends c.Plugin{afterInit(t){let i=t.o.enter.toLowerCase(),n=i===o.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=n?o.PARAGRAPH:i),t.registerCommand("enter",(t,i,n={})=>this.onEnter(n))}onEnterKeyDown(t){if(t.key===o.KEY_ENTER){let i=this.j,n=i.e.fire("beforeEnter",t);return void 0!==n?n:(i.history.snapshot.transaction(()=>{i.s.isCollapsed()||i.execCommand("Delete"),i.s.focus(),this.onEnter(t),i.e.fire("afterEnter",t)}),i.synchronizeValues(),!1)}}onEnter(t){let{jodit:i}=this,n=i.createInside.fake();try{s.Dom.safeInsertNode(i.s.range,n),(0,d.moveCursorOutFromSpecialTags)(i,n,["a"]);let o=(0,d.getBlockWrapper)(n,i),r=s.Dom.isLeaf(o);if((!r||(null==t?void 0:t.shiftKey))&&(0,d.checkBR)(n,i,null==t?void 0:t.shiftKey))return!1;if(o||(0,d.hasPreviousBlock)(n,i)||(o=(0,d.wrapText)(n,i)),!o)return(0,d.insertParagraph)(n,i,r?"li":i.o.enter),!1;if(!(0,d.checkUnsplittableBox)(n,i,o))return!1;if(r&&this.__isEmptyListLeaf(o))return(0,d.processEmptyLILeaf)(n,i,o),!1;(0,d.splitFragment)(n,i,o)}finally{n.isConnected&&i.s.setCursorBefore(n),s.Dom.safeRemove(n)}}__isEmptyListLeaf(t){let i=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,l.isBoolean)(i)?i:s.Dom.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.watch)(":keydown.enter")],u.prototype,"onEnterKeyDown",null),a.pluginSystem.add("enter",u)},41872:function(t,i,n){"use strict";n.d(i,{checkBR:function(){return a}});var o=n(82758),r=n(2748),s=n(26395);function a(t,i,n){let a=!!r.Dom.closest(t,["pre","blockquote"],i.editor),c=!a&&r.Dom.closest(t,["td","th"],i.editor);if(i.o.enter.toLowerCase()===o.BR.toLowerCase()||c||n&&!a||!n&&a){var d;let n;if(a&&(n=l(l(d=t)))&&(r.Dom.safeRemove(l(d)),r.Dom.safeRemove(n),1))return!1;let o=i.createInside.element("br");if(r.Dom.before(t,o),!r.Dom.findNotEmptySibling(o,!1)){let i=o.cloneNode();r.Dom.after(o,i),r.Dom.before(i,t)}return(0,s.scrollIntoViewIfNeeded)(o,i.editor,i.ed),!0}return!1}function l(t){if(!t)return!1;let i=r.Dom.findSibling(t,!0);return!!i&&!!r.Dom.isTag(i,"br")&&i}},61991:function(t,i,n){"use strict";n.d(i,{checkUnsplittableBox:function(){return r}});var o=n(2748);function r(t,i,n){return!!o.Dom.canSplitBlock(n)||(o.Dom.before(t,i.createInside.element("br")),!1)}},54041:function(t,i,n){"use strict";n.d(i,{getBlockWrapper:function(){return function t(i,n,s=o.IS_BLOCK){let a=i,l=n.editor;do{if(!a||a===l)break;if(s.test(a.nodeName)){if(r.Dom.isLeaf(a))return a;return t(a.parentNode,n,/^li$/i)||a}a=a.parentNode}while(a&&a!==l)return null}}});var o=n(82758),r=n(2748)},19057:function(t,i,n){"use strict";n.d(i,{hasPreviousBlock:function(){return r}});var o=n(2748);function r(t,i){return!!o.Dom.prev(t,t=>o.Dom.isBlock(t)||o.Dom.isImage(t),i.editor)}},35399:function(t,i,n){"use strict";n.d(i,{checkBR:function(){return o.checkBR},checkUnsplittableBox:function(){return r.checkUnsplittableBox},getBlockWrapper:function(){return s.getBlockWrapper},hasPreviousBlock:function(){return a.hasPreviousBlock},insertParagraph:function(){return l.insertParagraph},moveCursorOutFromSpecialTags:function(){return c.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return d.processEmptyLILeaf},splitFragment:function(){return u.splitFragment},wrapText:function(){return h.wrapText}});var o=n(41872),r=n(61991),s=n(54041),a=n(19057),l=n(44245),c=n(91388),d=n(65181),u=n(54600),h=n(5287)},44245:function(t,i,n){"use strict";n.d(i,{insertParagraph:function(){return a}});var o=n(2748),r=n(29960),s=n(26395);function a(t,i,n,a){let l="br"===n.toLowerCase(),{createInside:c}=i,d=c.element(n),u=c.element("br");return l||d.appendChild(u),a&&a.cssText&&(0,r.attr)(d,"style",a.cssText),o.Dom.after(t,d),o.Dom.before(l?d:u,t),(0,s.scrollIntoViewIfNeeded)(d,i.editor,i.ed),d}},91388:function(t,i,n){"use strict";n.d(i,{moveCursorOutFromSpecialTags:function(){return r}});var o=n(2748);function r(t,i,n){let{s:r}=t,s=o.Dom.closest(i,n,t.editor);s&&(r.cursorOnTheRight(s,i)?o.Dom.after(s,i):r.cursorOnTheLeft(s,i)&&o.Dom.before(s,i))}},65181:function(t,i,n){"use strict";n.d(i,{processEmptyLILeaf:function(){return a}});var o=n(2748),r=n(76078),s=n(44245);function a(t,i,n){let a=o.Dom.closest(n,["ol","ul"],i.editor);if(!a)return;let l=a.parentElement,c=o.Dom.isLeaf(l),d=c?l:a,u=i.s.createRange();u.setStartAfter(n),u.setEndAfter(a);let h=u.extractContents();o.Dom.after(d,t),o.Dom.safeRemove(n),(0,r.$$)("li",a).length||o.Dom.safeRemove(a);let p=(0,s.insertParagraph)(t,i,c?"li":i.o.enter);h.querySelector("li")&&(c?p.appendChild(h):o.Dom.after(p,h))}},54600:function(t,i,n){"use strict";n.d(i,{splitFragment:function(){return a}});var o=n(2748),r=n(26395),s=n(44245);function a(t,i,n){let a=i.s,{enter:l}=i.o,c=l.toLowerCase(),d=o.Dom.isLeaf(n),u=n.tagName.toLowerCase()===c||d,h=a.cursorOnTheRight(n,t),p=a.cursorOnTheLeft(n,t);if(!u&&(h||p)){h?o.Dom.after(n,t):o.Dom.before(n,t),(0,s.insertParagraph)(t,i,c),p&&!h&&o.Dom.prepend(n,t);return}let f=a.splitSelection(n,t);(0,r.scrollIntoViewIfNeeded)(f,i.editor,i.ed)}},5287:function(t,i,n){"use strict";n.d(i,{wrapText:function(){return r}});var o=n(2748);function r(t,i){let n=t;o.Dom.up(n,t=>{t&&t.hasChildNodes()&&t!==i.editor&&(n=t)},i.editor);let r=o.Dom.wrapInline(n,i.o.enter,i);if(o.Dom.isEmpty(r)){let n=i.createInside.element("br");r.appendChild(n),o.Dom.before(n,t)}return r}},11317:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(29960),a=n(6441),l=n(92762);a.Config.prototype.controls.file={popup(t,i,n){let r=(i,n="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${i}" title="${n}">${n||i}</a>`))},a=null;return i&&(o.Dom.isTag(i,"a")||o.Dom.closest(i,"a",t.editor))&&(a=o.Dom.isTag(i,"a")?i:o.Dom.closest(i,"a",t.editor)),(0,l.FileSelectorWidget)(t,{filebrowser(t){t.files&&t.files.forEach(i=>r(t.baseurl+i)),n()},upload:!0,url(t,i){a?((0,s.attr)(a,"href",t),(0,s.attr)(a,"title",i)):r(t,i),n()}},a,n,!1)},tags:["a"],tooltip:"Insert file"},r.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},36243:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(6441);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,r.pluginSystem.add("focus",function(t){t.o.saveSelectionOnBlur&&t.e.on("blur",()=>{t.isEditorMode()&&t.s.save(!0)}).on("focus",()=>{t.isEditorMode()&&t.s.restore()});let i=()=>{t.s.focus();let i=null;switch(t.o.cursorAfterAutofocus){case"start":i=o.Dom.first(t.editor,t=>o.Dom.isText(t));break;case"end":i=o.Dom.last(t.editor,t=>o.Dom.isText(t))}i&&t.s.setCursorIn(i,"start"===t.o.cursorAfterAutofocus)};t.e.on("afterInit",()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(i,300):i())}),t.e.on("afterInit afterAddPlace",()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",i=>{t.isEditorMode()&&i.target&&o.Dom.isBlock(i.target)&&!i.target.childNodes.length&&(t.editor===i.target?t.s.focus():t.s.setCursorIn(i.target))})})})},28252:function(t,i,n){"use strict";var o=n(22732),r=n(49055),s=n(41180),a=n(12153),l=n(6441),c=n(4104),d=n(83709);l.Config.prototype.defaultFontSizePoints="px",a.Icon.set("font",c.default).set("fontsize",d.default),l.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:t=>t.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(t,i)=>i+t.o.defaultFontSizePoints,childTemplate:(t,i,n)=>`${n}${t.o.defaultFontSizePoints}`,tooltip:"Font size",value(t,i){var n;let r=t.s.current();if(!r)return;let a=o.Dom.closest(r,o.Dom.isElement,t.editor);if(!a)return;let l=(null==(n=i.control.data)?void 0:n.cssRule)||"font-size",c=(0,s.css)(a,l);if("font-size"===l){let i=parseFloat(c.toString());return"pt"===t.o.defaultFontSizePoints?Math.round(.75*i).toString():Math.round(i).toString()}return c.toString()},isChildActive(t,i){var n,o;let r=i.state.value,s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t;return!!(r&&i.control.args&&s(i.control.args[0].toString())===s(r.toString()))},isActive(t,i){var n,o;let r=i.state.value;if(!r)return!1;let s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t,a=i.control.data.cacheListSet;return a||(a=new Set(Object.keys(i.control.list).map(s)),i.control.data.cacheListSet=a),a.has(s(r.toString()))}},l.Config.prototype.controls.font={...l.Config.prototype.controls.fontsize,command:"fontname",textTemplate(t,i){let[n]=i.split(",");return(0,r.trimChars)(n,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(t,i,n){let o=!1;try{o=-1===i.indexOf("dings")&&document.fonts.check("16px "+i,n)}catch(t){}return`<span data-style="${i}" style="${o?`font-family: ${i}!important;`:""}">${n}</span>`},data:{cssRule:"font-family",normalize:t=>t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value(t){let i=t.s.current();if(!i)return;let n=o.Dom.closest(i,o.Dom.isElement,t.editor);if(!n)return;let r=(0,s.css)(n,"font-family").toString();return r===(0,s.css)(t.editor,"font-family").toString()?"":r},tooltip:"Font family"}},23399:function(t,i,n){"use strict";var o=n(580),r=n(21537);n(28252),o.pluginSystem.add("font",function(t){t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let i=(i,n,o)=>{switch(i){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,r.normalizeSize)(o,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:o}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",i).registerCommand("fontname",i)})},4104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> '},83709:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},24630:function(t,i,n){"use strict";var o=n(2748),r=n(72430),s=n(12153),a=n(6441),l=n(89816);s.Icon.set("paragraph",l.default),a.Config.prototype.controls.paragraph={command:"formatBlock",value(t,i){var n,r;let s=i.control,a=t.s.current(),l=o.Dom.closest(a,o.Dom.isBlock,t.editor);return null!=(n=null==l?void 0:l.nodeName.toLowerCase())?n:null==(r=s.data)?void 0:r.currentValue},update(t,i){let n=i.control;if(!t.s.current())return!1;let o=i.state.value,s=n.list;return(0,r.isPlainObject)(s)&&s[o.toString()]&&t.o.textIcons&&(i.state.text=s[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive(t,i){var n,o;return i.state.value===(null==(o=null==(n=i.control)?void 0:n.args)?void 0:o[0])},isActive:(t,i)=>i.state.value!==t.o.enter&&(0,r.isPlainObject)(i.control.list)&&!!i.control.list[i.state.value],childTemplate:(t,i,n)=>`<${i} style="margin:0;padding:0"><span>${t.i18n(n)}</span></${i}>`,tooltip:"Insert format block"}},96111:function(t,i,n){"use strict";var o=n(580);n(24630),o.pluginSystem.add("formatBlock",function(t){t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",(i,n,o)=>(t.s.commitStyle({element:o}),t.synchronizeValues(),!1))})},89816:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '},99823:function(t,i,n){"use strict";var o=n(82758),r=n(12153),s=n(6441),a=n(6950),l=n(28911);s.Config.prototype.fullsize=!1,s.Config.prototype.globalFullSize=!0,r.Icon.set("fullsize",a.default).set("shrink",l.default),s.Config.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,i){let n=t.isFullSize?"shrink":"fullsize";i.state.activated=t.isFullSize,t.o.textIcons?i.state.text=n:i.state.icon.name=n},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},2169:function(t,i,n){"use strict";var o=n(580),r=n(19306),s=n(41180);n(99823);let a=new Set;o.pluginSystem.add("fullsize",function(t){t.registerButton({name:"fullsize"});let i=!1,n=0,o=0,l=!1,c=()=>{let{container:r,events:a}=t;a&&(i?(l||(n=(0,s.css)(r,"height",!0),o=(0,s.css)(r,"width",!0),l=!0),(0,s.css)(r,{height:t.ow.innerHeight,width:t.ow.innerWidth})):l&&((0,s.css)(r,{height:n||"auto",width:o||"auto"}),l=!1))},d=n=>{var o;let{container:l,events:d}=t;if(l){if(void 0===n&&(n=!l.classList.contains("jodit_fullsize")),t.setMod("fullsize",n),t.o.fullsize=n,i=n,l.classList.toggle("jodit_fullsize",n),t.toolbar&&((0,r.isJoditObject)(t)&&(null==(o=t.toolbarContainer)||o.appendChild(t.toolbar.container)),(0,s.css)(t.toolbar.container,"width","auto")),n?a.add(l):a.delete(l),t.o.globalFullSize&&(1===a.size&&n||0===a.size&&!n)){let t=l.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",n),t=t.parentNode;c()}d.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",c),t.e.on("afterInit afterOpen",()=>{var i;t.toggleFullSize(null==(i=null==t?void 0:t.options)?void 0:i.fullsize)}).on("toggleFullSize",d).on("beforeDestruct",()=>{i&&d(!1)}).on("beforeDestruct",()=>{t.events&&t.e.off(t.ow,"resize",c)})})},6950:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> '},28911:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '},78524:function(t,i,n){"use strict";n(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8","cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},42263:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537),a=n(50911);n(78524);class l extends a.Plugin{afterInit(t){(0,s.keys)(t.o.commandToHotkeys,!1).forEach(i=>{let n=t.o.commandToHotkeys[i];n&&((0,s.isArray)(n)||(0,s.isString)(n))&&t.registerHotkeyToCommand(n,i)});let i=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",t=>{if(t.key===o.KEY_ESC)return this.j.e.fire("escape",t)}).on("keydown.hotkeys",n=>{let o=this.onKeyPress(n),r={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",n.type,r))if(r.shouldStop)return i=!0,t.e.stopPropagation("keydown"),!1;else n.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(i)return i=!1,t.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=t=>{let i=this.specialKeys[t.which],n=(t.key||String.fromCharCode(t.which)).toLowerCase(),o=[i||n];return["alt","ctrl","shift","meta"].forEach(n=>{t[n+"Key"]&&i!==n&&o.push(n)}),(0,s.normalizeKeyAliases)(o.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}}r.pluginSystem.add("hotkeys",l)},16233:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(12153),a=n(6441),l=n(72337);s.Icon.set("hr",l.default),a.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},r.pluginSystem.add("hr",function(t){t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",()=>{let i=t.createInside.element("hr");t.s.insertNode(i,!1,!1);let n=o.Dom.closest(i.parentElement,o.Dom.isBlock,t.editor);n&&o.Dom.isEmpty(n)&&n!==t.editor&&(o.Dom.after(n,i),o.Dom.safeRemove(n));let r=o.Dom.next(i,o.Dom.isBlock,t.editor,!1);return r||(r=t.createInside.element(t.o.enter),o.Dom.after(i,r)),t.s.setCursorIn(r),!1})})},72337:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '},50963:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.iframeBaseUrl="",o.Config.prototype.iframeTitle="Jodit Editor",o.Config.prototype.iframeDoctype="<!DOCTYPE html>",o.Config.prototype.iframeDefaultSrc="about:blank",o.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',o.Config.prototype.iframeCSSLinks=[],o.Config.prototype.iframeSandbox=null},77469:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537);n(50963),r.pluginSystem.add("iframe",function(t){let i=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,n)=>{let o=t||n.iframe.contentWindow.document;if(o.open(),o.write(i.iframeDoctype+`<html dir="${i.direction}" class="jodit" lang="${(0,s.defaultLanguage)(i.language)}">`+"<head>"+`<title>${i.iframeTitle}</title>`+(i.iframeBaseUrl?`<base href="${i.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),i.iframeCSSLinks&&i.iframeCSSLinks.forEach(t=>{let i=o.createElement("link");(0,s.attr)(i,"rel","stylesheet"),(0,s.attr)(i,"href",t),o.head&&o.head.appendChild(i)}),i.iframeStyle){let t=o.createElement("style");t.innerHTML=i.iframeStyle,o.head&&o.head.appendChild(t)}}).on("createEditor",()=>{if(!i.iframe)return;let n=t.c.element("iframe");n.style.display="block",n.src="about:blank",n.className="jodit-wysiwyg_iframe",(0,s.attr)(n,{allowtransparency:"true",tabindex:i.tabIndex.toString(),frameborder:"0"}),null!=i.iframeSandbox&&(0,s.attr)(n,"sandbox",i.iframeSandbox),t.workplace.appendChild(n),t.iframe=n;let r=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,s.callPromise)(r,()=>{if(!t.iframe)return!1;let n=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let r=i.editHTMLDocumentMode,a=()=>{(0,s.attr)(n.body,"contenteditable",t.getMode()!==o.MODE_SOURCE&&!t.getReadOnly()||null)},l=t=>{let i=/<body.*<\/body>/im,n="{%%BODY%%}",o=i.exec(t);return o&&(t=t.replace(i,n).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(n,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(r){let i=t.element.tagName;if("TEXTAREA"!==i&&"INPUT"!==i)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>l(t.o.iframeDoctype+n.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:i})=>!t.isLocked&&(/<(html|body)/i.test(i)?l(n.documentElement.outerHTML)!==l(i)&&(n.open(),n.write(t.o.iframeDoctype+l(i)),n.close(),t.editor=n.body,t.e.fire("safeHTML",t.editor),a(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):n.body.innerHTML=i,!0),{top:!0})}if(t.editor=n.body,t.e.on("afterSetMode afterInit afterAddPlace",a),"auto"===i.height){n.documentElement&&(n.documentElement.style.overflowY="hidden");let o=t.async.throttle((...n)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===i.height){let i=t.ew.getComputedStyle(t.editor),n=parseInt(i.marginTop||"0",10)+parseInt(i.marginBottom||"0",10);(0,s.css)(t.iframe,"height",t.editor.offsetHeight+n)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",o).on([t.iframe,t.ew,n.documentElement],"load",o).on(n,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let i=new ResizeObserver(o);i.observe(n.body),t.e.on("beforeDestruct",()=>{i.disconnect()})}}return n.documentElement&&t.e.on(n.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===n.body&&t.s.setCursorIn(n.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",i=>{var n;null==(n=t.events)||n.fire(t.ow,i)}),!1})})})},85745:function(t,i,n){"use strict";n(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(580),a=n(21537),l=n(50911);n(85745);var c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let d="__jodit_imageprocessor_binded",u=d+"blob-id";class h extends l.Plugin{afterInit(t){}beforeDestruct(t){let i=(0,r.cached)(t,"buffer"),n=null==i?void 0:i.get(u);if(i&&n){for(let t of Object.keys(n))URL.revokeObjectURL(t);i.delete(u)}}onAfterGetValueFromEditor(t,i){if(i!==o.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){let{jodit:i}=this;if(!i.o.imageProcessor.replaceDataURIToBlobIdInView)return;let n=i.buffer.get(u);if(n)for(let i of Object.keys(n))for(;t.value.includes(i);)t.value=t.value.replace(i,n[i])}async afterChange(t){let{jodit:i}=this;i.editor&&(0,a.$$)("img",i.editor).forEach(t=>{(0,a.dataBind)(t,d)||((0,a.dataBind)(t,d,!0),t.complete||i.e.on(t,"load",function n(){var o;i.isInDestruct||null==(o=i.e)||o.fire("resize"),i.e.off(t,"load",n)}),t.src&&/^data:/.test(t.src)&&function(t,i){if(!t.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let n=i.src,o=function(t){let i=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(i.length),r=new Uint8Array(o);for(let t=0;t<i.length;t++)r[t]=i.charCodeAt(t);return new Blob([o],{type:n})}(n);i.src=URL.createObjectURL(o),t.e.fire("internalUpdate");let{buffer:r}=t,s=r.get(u)||{};s[i.src]=n,t.buffer.set(u,s)}(i,t),i.e.on(t,"mousedown touchstart",()=>{i.s.select(t)}))})}}c([(0,r.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),c([(0,r.watch)(":beforeSetElementValue")],h.prototype,"onBeforeSetElementValue",null),c([(0,r.watch)([":change",":afterInit",":changePlace"]),(0,r.debounce)()],h.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",h)},97536:function(t,i,n){"use strict";n(6441).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},3215:function(t,i,n){"use strict";var o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(20356),c=n(62843);n(97536);var d=n(59436),u=n(53636),h=n(10263),p=n(94575),f=n(34755),m=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class g extends l.Plugin{get form(){return new d.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.openImageEditorDialog)(this.j,this.state),openImagePopup:t=>(0,h.openImagePopup)(this.j,this.dialog,this.state,t)})}get dialog(){let{j:t}=this,i=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),n=this.__buttons;return n.check.onAction(()=>{(0,f.applyValuesToImage)(t,this.state,this.state.sourceImage),t.synchronizeValues(),i.close()}),n.remove.onAction(()=>{t.s.removeNode(this.state.sourceImage),i.close()}),n.cancel.onAction(()=>{i.close()}),i.setHeader(t.i18n("Image properties")),i.setContent(this.form),i.setFooter([[n.cancel,n.remove],n.check]),t.e.on(i,"afterClose",()=>{this.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(this.state.sourceImage)}),i.setSize(t.o.image.dialogWidth),(0,a.markOwner)(t,i.container),i}get __buttons(){let{j:t}=this;return{check:(0,c.Button)(t,"ok","Apply","primary"),remove:(0,c.Button)(t,"bin","Delete"),cancel:(0,c.Button)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((t,i)=>(0,p.readValuesFromImage)(this.j,this.state).then(t,i)).catch(t=>{(0,a.isAbortError)(t)||this.dialog.message.error(t.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(t=>t.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(t=>t.state.disabled=!1)}afterInit(t){let i=this;t.e.on("afterConstructor changePlace",()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",n=>{let o=n.target;if(r.Dom.isTag(o,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;i.state.sourceImage=o,i.state.image=o.cloneNode(!0),t.o.readonly||(n.stopImmediatePropagation(),n.preventDefault(),i.open())}else n.stopImmediatePropagation(),t.s.select(o)})}).on("openImageProperties.imageproperties",t=>{i.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:t,values:i}=this.state;if(t.src)try{this.__lock();try{await t.decode()}catch(t){}if(this.state.sizeIsLocked&&(0,a.isNumeric)(i.imageWidth)){let t=parseFloat(i.imageWidth.toString());i.imageHeight=Math.round(t/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",t)}catch(t){this.j.alert(t.message)}finally{this.__unlock()}}beforeDestruct(t){var i,n,r;Object.values(null!=(i=(0,o.cached)(this,"__buttons"))?i:{}).forEach(t=>t.destruct()),null==(n=(0,o.cached)(this,"dialog"))||n.destruct(),null==(r=(0,o.cached)(this,"form"))||r.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:t,naturalHeight:i}=this.image;return t/i||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}}m([o.cache],g.prototype,"form",null),m([o.cache],g.prototype,"dialog",null),m([o.cache],g.prototype,"__buttons",null),m([(0,o.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),s.pluginSystem.add("imageProperties",g)},51642:function(t,i,n){"use strict";n.d(i,{readAlign:function(){return r}});var o=n(41180);function r(t,i){t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?i.align=(0,o.css)(t,"float"):"block"===(0,o.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?i.align="center":i.align=""}},94575:function(t,i,n){"use strict";n.d(i,{readValuesFromImage:function(){return c}});var o=n(29960),r=n(51642),s=n(75595),a=n(47749),l=n(32566);async function c(t,i){let{sourceImage:n,values:c}=i;return(0,r.readAlign)(n,c),c.borderRadius=parseInt(n.style.borderRadius||"0",10)||0,c.id=(0,o.attr)(n,"id")||"",c.imageTitle=(0,o.attr)(n,"title")||"",c.imageAlt=(0,o.attr)(n,"alt")||"",c.style=(0,o.attr)(n,"style")||"",c.classes=((0,o.attr)(n,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,a.readMargins)(n,c,i),(0,s.readLink)(i,t,c),c.imageSrc=(0,o.attr)(n,"src")||"",(0,l.readSizes)(n,c,i)}},75595:function(t,i,n){"use strict";n.d(i,{readLink:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=o.Dom.closest(t.sourceImage,"a",i.editor);s?(n.imageLink=(0,r.attr)(s,"href")||"",n.imageLinkOpenInNewTab="_blank"===(0,r.attr)(s,"target")):(n.imageLink="",n.imageLinkOpenInNewTab=!1)}},47749:function(t,i,n){"use strict";n.d(i,{readMargins:function(){return r}});var o=n(12475);function r(t,i,n){let r=!0,s=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(n=>{let a=t.style.getPropertyValue((0,o.kebabCase)(n));if(!a){s=!0,i[n]=0;return}/^[0-9]+(px)?$/.test(a)&&(a=parseInt(a,10)),i[n]=a,(s&&i[n]||r&&"marginTop"!==n&&i[n]!==i.marginTop)&&(r=!1)}),n.marginIsLocked=r}},32566:function(t,i,n){"use strict";n.d(i,{readSizes:function(){return l}});var o=n(29807),r=n(29960),s=n(41180),a=n(14415);async function l(t,i,n){try{await t.decode()}catch(t){}let l=(0,s.css)(t,"width",!0)||(0,r.attr)(t,"width")||!1,c=(0,s.css)(t,"height",!0)||(0,r.attr)(t,"height")||!1;i.imageWidth=!1!==l?(0,a.normalSizeFromString)(l):t.offsetWidth||t.naturalWidth,(0,o.isNumeric)(i.imageWidth)?i.imageHeight=!1!==c?(0,a.normalSizeFromString)(c):t.offsetHeight||t.naturalHeight:i.imageHeight=c||"";let{imageWidth:d,imageHeight:u}=i,h=parseFloat(d.toString());if(!(0,o.isNumeric)(d)||!(0,o.isNumeric)(u)){n.sizeIsLocked=!1;return}if(!1===c){i.imageHeight=Math.round(h/n.ratio),n.sizeIsLocked=!0;return}n.sizeIsLocked=1>Math.abs(h-parseFloat(u.toString())*n.ratio)}},59436:function(t,i,n){"use strict";n.d(i,{UIImagePropertiesForm:function(){return p}});var o=n(65478),r=n(87325),s=n(21537),a=n(62405),l=n(12153),c=n(92762),d=n(35105),u=n(29827),h=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let p=class t extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(t){let i=super.getElm(t);if(i)return i;for(let i of this.elements){let n=i.getElm(t);if(n)return n}return null}render(){return`<form>
|
|
143
|
+
</div>`}setPrompt(t){if(t){let{jodit:i}=this,n=i.o.aiAssistant[t],{aiCommonPrefixPrompt:o,aiCommonSuffixPrompt:r}=i.o.aiAssistant;this.promptInput.value=[o,(0,a.isString)(n)?n:"",r].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(t){this.setMod("loading",!1),s.Dom.detach(this.__results),this.__aiResult=t,this.__results.appendChild(this.jodit.c.fromHTML(t)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(t){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=t,s.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let i=this.getFullElName("","hide","true");this.__results.classList.add(i),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(t){this.__submitButton.state.disabled=t,this.__tryAgainButton.state.disabled=t}__toggleInsertButton(t){this.__insertButton.state.disabled=t,this.__insertAfterButton.state.disabled=t}constructor(t,{onInsert:i,onInsertAfter:n}){super(t),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,l.Button)(t,"","Insert","primary").onAction(()=>i(this.__aiResult)),this.__insertAfterButton=(0,l.Button)(t,"","Insert After","initial").onAction(()=>n(this.__aiResult));const o=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,l.Button)(t,"ai-assistant","").onAction(o),this.__tryAgainButton=(0,l.Button)(t,"update","","initial").onAction(o),this.promptInput=new l.UITextArea(t,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const r=new l.UIBlock(t,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new l.UIForm(t,[new l.UIBlock(t,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(i=>{this.__error.textContent="",this.setMod("loading",!0),t.e.fire("invokeAiAssistant",i.prompt);let n=this.getFullElName("","hide","true");this.__results.classList.remove(n),this.__buttons.classList.remove(n),s.Dom.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(r.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}};d([(0,r.watch)(":ai-assistant-response")],u.prototype,"onAiAssistentResponse",null),d([(0,r.watch)(":ai-assistant-error")],u.prototype,"onAiAssistentError",null),d([(0,r.watch)("promptInput:change")],u.prototype,"onChangePromptValue",null),u=d([o.component],u)},25187:function(t,i,n){"use strict";n(73391),n(12391),n(93183),n(66707),n(41107),n(71255),n(82439),n(61323),n(93079),n(19063),n(19271),n(1255),n(575),n(11317),n(36243),n(23399),n(96111),n(2169),n(42263),n(16233),n(77469),n(23531),n(80763),n(3215),n(70045),n(93401),n(76295),n(59483),n(91071),n(61019),n(65517),n(20071),n(32309),n(64837),n(79799),n(31571),n(85407),n(59451),n(18363),n(8355),n(58519),n(6687),n(56113),n(9159),n(12019),n(36125),n(9881),n(28545),n(45927),n(52951),n(43809),n(7309),n(68687),n(59495),n(39627),n(767),n(43003),n(72439),n(26551),n(72253),n(65735),n(83671),n(3115)},93183:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(23282),l=n(50911),c=n(45124);n(32496);var d=n(11338),u=n(14630);class h extends l.Plugin{afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,i="char"){let n=this.j,s=n.selection;if(s.isFocused()||s.focus(),(0,d.checkNotCollapsed)(n))return n.e.fire("backSpaceAfterDelete",t),!1;let l=s.range,h=n.createInside.text(o.INVISIBLE_SPACE);try{if(r.Dom.safeInsertNode(l,h),!r.Dom.isOrContains(n.editor,h))return;if(n.e.fire("backSpaceBeforeCases",t,h))return!1;(0,c.moveNodeInsideStart)(n,h,t);let s=n.o.delete.disableCases;if(u.casesMap.some(([r,l])=>{if(!(s&&s.has(r))&&(0,a.isFunction)(l)&&l(n,h,t,i))return o.IS_PROD,!0}))return!1}catch(t){throw o.IS_PROD,t}finally{n.e.fire("backSpaceAfterDelete",t,h),this.safeRemoveEmptyNode(h)}return!1}safeRemoveEmptyNode(t){var i,n;let{range:o}=this.j.s;o.startContainer===t&&(t.previousSibling?r.Dom.isText(t.previousSibling)?o.setStart(t.previousSibling,null!=(n=null==(i=t.previousSibling.nodeValue)?void 0:i.length)?n:0):o.setStartAfter(t.previousSibling):t.nextSibling&&(r.Dom.isText(t.nextSibling)?o.setStart(t.nextSibling,0):o.setStartBefore(t.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),r.Dom.safeRemove(t)}}h.requires=["hotkeys"],s.pluginSystem.add("backspace",h)},62845:function(t,i,n){"use strict";n.d(i,{checkJoinNeighbors:function(){return a}});var o=n(82758),r=n(2748),s=n(63785);function a(t,i,n){let s=i,a=s;for(;s&&!r.Dom.findNotEmptySibling(s,n)&&s.parentElement!==t.editor;)a=s=s.parentElement;if(r.Dom.isElement(a)&&r.Dom.isContentEditable(a,t.editor)){var c,d;let s,u,h,p=r.Dom.findNotEmptySibling(a,n);if(r.Dom.isTag(p,"br"))return r.Dom.safeRemove(p),t.s.setCursorBefore(i),!0;if(p&&(c=a,d=p,s=r.Dom.isTag(d,o.LIST_TAGS),u=r.Dom.isTag(c,o.LIST_TAGS),h=(t,i)=>i?t.firstElementChild:t.lastElementChild,(u?(d=t.createInside.element(t.o.enterBlock),r.Dom.before(c,d),l(t,h(c,n),d,n)):!!d&&!!s&&!u&&l(t,c,h(d,!n),n))||l(t,a,function(t,i){if(!r.Dom.isTag(t,"table"))return t;let n=t.querySelectorAll("td,th");return n.length?n[i?n.length-1:0]:null}(p,n),n)))return t.s.setCursorBefore(i),!0}return!1}function l(t,i,n,o){if(i&&r.Dom.isElement(n)){r.Dom.moveContent(i,n,!o,(0,s.getMoveFilter)(t));let a=i;for(;a&&a!==t.editor&&r.Dom.isEmpty(a);){let t=a.parentElement;r.Dom.safeRemove(a),a=t}return!0}return!1}},91748:function(t,i,n){"use strict";n.d(i,{checkJoinTwoLists:function(){return a}});var o=n(2748),r=n(37790),s=n(63785);function a(t,i,n){let a=o.Dom.findSibling(i,n),l=o.Dom.findSibling(i,!n);if(!o.Dom.closest(i,o.Dom.isElement,t.editor)&&o.Dom.isList(a)&&o.Dom.isList(l)&&o.Dom.isTag(a.lastElementChild,"li")&&o.Dom.isTag(l.firstElementChild,"li")){let{setCursorBefore:c,setCursorAfter:d}=t.s,u=a.lastElementChild,h=l.firstElementChild;return(0,r.call)(n?o.Dom.prepend:o.Dom.append,h,i),o.Dom.moveContent(l,a,!n,(0,s.getMoveFilter)(t)),o.Dom.safeRemove(l),(0,r.call)(n?o.Dom.append:o.Dom.prepend,u,i),(0,r.call)(n?c:d,i),!0}return!1}},11338:function(t,i,n){"use strict";function o(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}n.d(i,{checkNotCollapsed:function(){return o}})},73792:function(t,i,n){"use strict";n.d(i,{checkRemoveChar:function(){return function t(i,n,a,c){var d,u,h,p;let f,m=a?-1:1,g=r.Dom.sibling(n,!a),b=r.Dom.sibling(n,a),y=null,w=!1;for(b||(b=l(n,a,i.editor));b&&(r.Dom.isText(b)||r.Dom.isInlineBlock(b));){for(;r.Dom.isInlineBlock(b);)b=a?null==b?void 0:b.lastChild:null==b?void 0:b.firstChild;if(!b)break;if((null==(d=b.nodeValue)?void 0:d.length)&&(f=function(t,i,n,a){let l=(0,s.toArray)(t.nodeValue),c=l.length,d=i?c-1:0;if(l[d]===o.INVISIBLE_SPACE)for(;l[d]===o.INVISIBLE_SPACE;)d+=n;let u=l[d];if(l[d+n]===o.INVISIBLE_SPACE){for(d+=n;l[d]===o.INVISIBLE_SPACE;)d+=n;d+=i?1:-1}return l=i&&d<0?[]:l.slice(i?0:d+1,i?d:c),function(t,i,n){var a;if(!t||!r.Dom.isText(t)||(!i?/ $/:/^ /).test(null!=(a=t.nodeValue)?a:"")||!(0,s.trimInv)(t.nodeValue||"").length)for(let t=i?n.length-1:0;i?t>=0:t<n.length;t+=i?-1:1)if(" "===n[t])n[t]=o.NBSP_SPACE;else break}(a,i,l),t.nodeValue=l.join(""),u}(b,a,m,g),!b.nodeValue.length&&r.Dom.isInlineBlock(b.parentNode)&&(b.nodeValue=o.INVISIBLE_SPACE)),(null==(u=b.nodeValue)?void 0:u.length)||(y=b),!(0,s.isVoid)(f)&&f!==o.INVISIBLE_SPACE){h=b,p=f,(0,s.call)(a?r.Dom.after:r.Dom.before,h,n),("sentence"===c||"word"===c&&" "!==p&&p!==o.NBSP_SPACE)&&t(i,n,a,c),w=!0;break}let _=l(b,a,i.editor);y&&(r.Dom.safeRemove(y),y=null),b=_}return y&&(r.Dom.safeRemove(y),y=null),w&&(function(t){let i=t.parentElement;for(;i&&r.Dom.isInlineBlock(i)&&r.Dom.isTag(i,"a");){let n=i.parentElement;r.Dom.isEmpty(i)&&(r.Dom.after(i,t),r.Dom.safeRemove(i)),i=n}}(n),n.parentElement!==i.editor&&r.Dom.isBlock(n.parentElement)&&r.Dom.each(n.parentElement,r.Dom.isEmptyTextNode)&&r.Dom.after(n,i.createInside.element("br")),i.s.setCursorBefore(n),r.Dom.isTag(n.previousSibling,"br")&&!r.Dom.findNotEmptySibling(n,!1)&&r.Dom.after(n,i.createInside.element("br"))),w}}});var o=n(82758),r=n(22732),s=n(21537),a=n(63785);function l(t,i,n){let o=r.Dom.sibling(t,i);return!o&&t.parentNode&&t.parentNode!==n&&(o=(0,a.findMostNestedNeighbor)(t,!i,n,!0))&&r.Dom.closest(t,"li",n)!==r.Dom.closest(o,"li",n)?null:o}},87536:function(t,i,n){"use strict";n.d(i,{checkRemoveContentNotEditable:function(){return a}});var o=n(22732),r=n(21537),s=n(45124);function a(t,i,n){let a=o.Dom.findSibling(i,n);return!a&&i.parentElement&&i.parentElement!==t.editor&&(a=o.Dom.findSibling(i.parentElement,n)),!(!o.Dom.isElement(a)||o.Dom.isContentEditable(a,t.editor))&&((0,r.call)(n?o.Dom.before:o.Dom.after,a,i),o.Dom.safeRemove(a),(0,s.moveNodeInsideStart)(t,i,n),(0,r.call)(n?t.s.setCursorBefore:t.s.setCursorAfter,i),!0)}},12474:function(t,i,n){"use strict";n.d(i,{checkRemoveEmptyNeighbor:function(){return r}});var o=n(2748);function r(t,i,n){let r=o.Dom.closest(i,o.Dom.isElement,t.editor);if(!r)return!1;let s=o.Dom.findNotEmptySibling(r,n);return!!(s&&o.Dom.isEmpty(s))&&(o.Dom.safeRemove(s),t.s.setCursorBefore(i),!0)}},58940:function(t,i,n){"use strict";n.d(i,{checkRemoveEmptyParent:function(){return a}});var o=n(82758),r=n(22732),s=n(91748);function a(t,i,n){let a=!1,{setCursorBefore:l,setCursorIn:c}=t.s,d=r.Dom.closest(i,r.Dom.isElement,t.editor);if(!d||!r.Dom.isEmpty(d))return!1;let u=r.Dom.findNotEmptyNeighbor(i,n,t.editor);do if(d&&r.Dom.isEmpty(d)&&!r.Dom.isCell(d)){r.Dom.after(d,i);let n=r.Dom.closest(d,t=>r.Dom.isElement(t)&&t!==d,t.editor);r.Dom.safeRemove(d),a=!0,d=n}else break;while(d)return!!(a&&(0,s.checkJoinTwoLists)(t,i,n))||(!u||r.Dom.isText(u)||r.Dom.isTag(u,o.INSEPARABLE_TAGS)?l(i):c(u,!n),a)}},56825:function(t,i,n){"use strict";n.d(i,{checkRemoveUnbreakableElement:function(){return a}});var o=n(82758),r=n(2748),s=n(58940);function a(t,i,n){let a=r.Dom.findSibling(i,n);return!!(r.Dom.isElement(a)&&(r.Dom.isTag(a,o.INSEPARABLE_TAGS)||r.Dom.isEmpty(a)))&&(r.Dom.safeRemove(a),r.Dom.isTag(a,"br")&&!r.Dom.findNotEmptySibling(i,!1)&&r.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),r.Dom.isTag(a,"br")&&(0,s.checkRemoveEmptyParent)(t,i,n),!0)}},90240:function(t,i,n){"use strict";n.d(i,{checkTableCell:function(){return r}});var o=n(2748);function r(t,i){let n=i.parentElement;return!!o.Dom.isCell(n)}},68034:function(t,i,n){"use strict";n.d(i,{checkUnwrapFirstListItem:function(){return s}});var o=n(2748),r=n(43555);function s(t,i,n){var s;let a=o.Dom.closest(i,o.Dom.isElement,t.editor),{s:l}=t;if(o.Dom.isLeaf(a)&&(null==(s=null==a?void 0:a.parentElement)?void 0:s[n?"firstElementChild":"lastElementChild"])===a&&l.cursorInTheEdge(n,a)){let s=a.parentElement,c=t.createInside.element(t.o.enterBlock);return(0,r.call)(n?o.Dom.before:o.Dom.after,s,c),o.Dom.moveContent(a,c),o.Dom.safeRemove(a),o.Dom.isEmpty(s)&&o.Dom.safeRemove(s),(0,r.call)(n?l.setCursorBefore:l.setCursorAfter,i),!0}return!1}},14630:function(t,i,n){"use strict";n.d(i,{casesMap:function(){return p}});var o=n(62845),r=n(91748),s=n(73792),a=n(87536),l=n(12474),c=n(58940),d=n(56825),u=n(90240),h=n(68034);let p=[["remove-unbreakable",d.checkRemoveUnbreakableElement],["remove-not-editable",a.checkRemoveContentNotEditable],["remove-char",s.checkRemoveChar],["table-cell",u.checkTableCell],["remove-empty-parent",c.checkRemoveEmptyParent],["remove-empty-neighbor",l.checkRemoveEmptyNeighbor],["join-two-lists",r.checkJoinTwoLists],["join-neighbors",o.checkJoinNeighbors],["unwrap-first-list-item",h.checkUnwrapFirstListItem]];p.map(([,t])=>t)},32496:function(t,i,n){"use strict";n(6441).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(t,i,n){"use strict";n.d(i,{findMostNestedNeighbor:function(){return r},getMoveFilter:function(){return s}});var o=n(22732);function r(t,i,n,s=!1){let a=t=>i?t.firstChild:t.lastChild,l=o.Dom.findNotEmptyNeighbor(t,!i,n);if(s&&o.Dom.isElement(l)&&!o.Dom.isInlineBlock(l))return null;if(l)do{if(!a(l))return l;l=a(l)}while(l)return null}function s(t){return i=>!0!==t.e.fire("backSpaceIsMovedIgnore",i)}},41107:function(t,i,n){"use strict";var o=n(580),r=n(21537),s=n(12153),a=n(6441);n(73674);var l=n(820),c=n(53651),d=n(16020),u=n(89758),h=n(98527),p=n(51855);o.pluginSystem.add("bold",function(t){let i=i=>{let n,o=a.Config.defaultOptions.controls[i],s={...o.css};return Object.keys(s).forEach(t=>{n||(n={}),n[t]=(0,r.isArray)(s[t])?s[t][0]:s[t]}),t.s.commitStyle({element:o.tags?o.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(i=>{t.registerButton({name:i,group:"font-style"})}),["superscript","subscript"].forEach(i=>{t.registerButton({name:i,group:"script"})}),t.registerCommand("bold",{exec:i,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:i,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:i,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:i}).registerCommand("subscript",{exec:i}).registerCommand("superscript",{exec:i})}),s.Icon.set("bold",l.default).set("italic",c.default).set("strikethrough",d.default).set("subscript",u.default).set("superscript",h.default).set("underline",p.default)},73674:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},o.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},o.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},o.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},o.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},o.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> '},53651:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> '},16020:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> '},89758:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> '},98527:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> '},51855:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '},71255:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(37790),a=n(50911),l=n(12153),c=n(6441),d=n(31151);c.Config.prototype.controls.classSpan={command:"applyClassName",exec:s.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,i){let n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isElement,t.editor)||t.editor;return!!(i.control.args&&r.classList.contains(i.control.args[0].toString()))}return!1},isActive(t,i){let n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isElement,t.editor)||t.editor,s=!1;return i.control.list&&Object.keys(i.control.list).forEach(t=>{r.classList.contains(t)&&(s=!0)}),!!(r&&r!==t.editor&&void 0!==i.control.list&&s)}return!1},childTemplate:(t,i,n)=>`<span class="${i}">${t.i18n(n)}</span>`,tooltip:"Insert className"};class u extends a.Plugin{afterInit(t){t.registerCommand("applyClassName",(i,n,o)=>(t.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}r.pluginSystem.add("classSpan",u),l.Icon.set("class-span",d.default)},31151:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '},82439:function(t,i,n){"use strict";var o=n(65478),r=n(2748),s=n(70071),a=n(580),l=n(86518),c=n(20356);n(46776);var d=n(59498),u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends c.Plugin{afterInit(t){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let t=this.j;this.walker.setWork(t.editor),this.currentSelectionNode=t.s.current()}startWalker(){let{jodit:t}=this,i=(0,d.getHash)(this.j.o.cleanHTML.allowTags),n=(0,d.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",o=>(0,d.visitNodeWalker)(t,o,i,n,this.currentSelectionNode)).on("end",t=>{this.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(t){if("removeformat"===t.toLowerCase())return this.j.s.isCollapsed()?(0,d.removeFormatForCollapsedSelection)(this.j):(0,d.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(t){let[i,n]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return i.innerHTML=t.value,this.j.e.fire("safeHTML",i),t.value=i.innerHTML,(0,l.safeHTML)(i,{safeJavaScriptLink:!0,removeOnError:!0}),r.Dom.safeRemove(n),!1}onAfterGetValueFromEditor(t){this.j.o.cleanHTML.collapseEmptyValueToEmptyString&&/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.test(t.value.trim())&&(t.value="")}onSafeHTML(t){let i=this.j.o.cleanHTML.sanitizer;i&&(t.innerHTML=i(t.innerHTML)),(0,l.safeHTML)(t,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new s.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}}u([(0,o.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),u([(0,o.hook)("ready")],h.prototype,"startWalker",null),u([(0,o.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),u([(0,o.watch)(":beforeSetNativeEditorValue")],h.prototype,"onBeforeSetNativeEditorValue",null),u([(0,o.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),u([(0,o.watch)(":safeHTML")],h.prototype,"onSafeHTML",null),a.pluginSystem.add("cleanHtml",h)},46776:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(44330);r.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},r.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},o.Icon.set("eraser",s.default)},44330:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},83447:function(t,i,n){"use strict";n.d(i,{getHash:function(){return s}});var o=n(70799),r=n(49055);function s(t){let i=/([^[]*)\[([^\]]+)]/,n=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,a={};return(0,o.isString)(t)?(t.split(n).map(t=>{t=(0,r.trim)(t);let o=i.exec(t),l={};if(o){let t=o[2].split(n);o[1]&&(t.forEach(t=>{t=(0,r.trim)(t);let i=s.exec(t);i?l[i[1]]=i[2]:l[t]=!0}),a[o[1].toUpperCase()]=l)}else a[t.toUpperCase()]=!0}),a):!!t&&(Object.keys(t).forEach(i=>{a[i.toUpperCase()]=t[i]}),a)}},59498:function(t,i,n){"use strict";n.d(i,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return r.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return s.removeFormatForSelection},visitNodeWalker:function(){return a.visitNodeWalker}});var o=n(83447),r=n(84272),s=n(42312),a=n(39516)},84272:function(t,i,n){"use strict";n.d(i,{isInlineBlock:function(){return a},removeFormatForCollapsedSelection:function(){return s}});var o=n(82758),r=n(2748);function s(t,i){let{s:n}=t,o=i;if(!o){o=t.createInside.fake();let{range:i}=n;r.Dom.safeInsertNode(i,o),i.collapse()}let s=r.Dom.furthest(o,a,t.editor);if(s)if(n.cursorOnTheLeft(s))r.Dom.before(s,o);else if(n.cursorOnTheRight(s))r.Dom.after(s,o);else{let t=n.splitSelection(s);t&&r.Dom.after(t,o)}i||(n.setCursorBefore(o),r.Dom.safeRemove(o))}function a(t){return r.Dom.isInlineBlock(t)&&!r.Dom.isTag(t,o.INSEPARABLE_TAGS)}},42312:function(t,i,n){"use strict";n.d(i,{removeFormatForSelection:function(){return a}});var o=n(2748),r=n(43555),s=n(84272);function a(t){let{s:i,editor:n,createInside:a}=t,{range:l}=i,c=l.cloneRange(),d=l.cloneRange(),u=a.fake(),h=a.fake();c.collapse(!0),d.collapse(!1),o.Dom.safeInsertNode(c,u),o.Dom.safeInsertNode(d,h),l.setStartBefore(u),l.collapse(!0),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,u),l.setEndAfter(h),l.collapse(!1),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,h);let p=[];o.Dom.between(u,h,t=>{(0,s.isInlineBlock)(t)&&!o.Dom.isTag(t,"a")&&p.push(t),o.Dom.isElement(t)&&(0,r.attr)(t,"style")&&(0,r.attr)(t,"style",null)}),p.forEach(t=>o.Dom.unwrap(t));let f=(t,i)=>{if(!o.Dom.findNotEmptySibling(t,i)){let o=t.parentNode;if(o&&o!==n&&(0,r.attr)(o,"style"))return(0,r.attr)(o,"style",null),f(o,i),!0}};f(u,!0)&&f(h,!1),l.setStartAfter(u),l.setEndBefore(h),i.selectRange(l),o.Dom.safeRemove(u),o.Dom.safeRemove(h)}},82558:function(t,i,n){"use strict";n.d(i,{allowAttributes:function(){return r}});var o=n(2748);function r(t,i,n,r){let s=r&&o.Dom.isElement(i)&&r[i.nodeName];if(r&&o.Dom.isElement(i)&&!0!==s){if(!s)return n;let t=i.attributes;if(t&&t.length){let o=[];for(let i=0;i<t.length;i+=1){let n=s[t[i].name];n&&(!0===n||n===t[i].value)||o.push(t[i].name)}o.length&&(n=!0),o.forEach(t=>{i.removeAttribute(t)})}}return n}},1962:function(t,i,n){"use strict";n.d(i,{convertUnsafeEmbeds:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=t.o.cleanHTML.convertUnsafeEmbeds;if(!s||!o.Dom.isElement(i))return n;let a=i.nodeName.toLowerCase();if(!s.includes(a))return n;let l=(0,r.attr)(i,"data")||(0,r.attr)(i,"src")||(0,r.attr)(i,"movie")||"";if(!l)return o.Dom.safeRemove(i),!0;let c=t.createInside.element("iframe");return(0,r.attr)(c,{src:l,sandbox:"",frameborder:"0",width:(0,r.attr)(i,"width"),height:(0,r.attr)(i,"height")}),o.Dom.replace(i,c,void 0,!1,!0),!0}},39433:function(t,i,n){"use strict";n.d(i,{fillEmptyParagraph:function(){return a}});var o=n(82758),r=n(2748);let s=new Set(["table","tbody","thead","tfoot","tr"]);function a(t,i,n){if(t.o.cleanHTML.fillEmptyParagraph&&r.Dom.isBlock(i)&&r.Dom.isEmpty(i,o.INSEPARABLE_TAGS)&&!r.Dom.isTag(i,s)){let n=t.createInside.element("br");return i.appendChild(n),!0}return n}},45235:function(t,i,n){"use strict";n.r(i),n.d(i,{allowAttributes:function(){return o.allowAttributes},convertUnsafeEmbeds:function(){return r.convertUnsafeEmbeds},fillEmptyParagraph:function(){return s.fillEmptyParagraph},removeEmptyTextNode:function(){return a.removeEmptyTextNode},removeInvTextNodes:function(){return l.removeInvTextNodes},replaceOldTags:function(){return c.replaceOldTags},safeLinksTarget:function(){return d.safeLinksTarget},sandboxIframesInContent:function(){return u.sandboxIframesInContent},sanitizeAttributes:function(){return h.sanitizeAttributes},sanitizeStyles:function(){return p.sanitizeStyles},tryRemoveNode:function(){return f.tryRemoveNode}});var o=n(82558),r=n(1962),s=n(39433),a=n(53392),l=n(25813),c=n(80973),d=n(95614),u=n(85978),h=n(384),p=n(15583),f=n(28800)},53392:function(t,i,n){"use strict";n.d(i,{removeEmptyTextNode:function(){return r}});var o=n(2748);function r(t,i,n,r,s,a){return o.Dom.isText(i)&&!i.nodeValue?(i===a&&t.s.isCollapsed()&&t.s.setCursorAfter(i),o.Dom.safeRemove(i),!0):n}},25813:function(t,i,n){"use strict";n.d(i,{removeInvTextNodes:function(){return s}});var o=n(82758),r=n(2748);function s(t,i,n,s,a,l){if(l===i||!r.Dom.isText(i)||null==i.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(i.nodeValue))return n;let c=r.Dom.furthest(l,r.Dom.isBlock,t.editor);return!c||r.Dom.isOrContains(c,i)?n:(i.nodeValue=i.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),i===l&&t.s.isCollapsed()&&t.s.setCursorAfter(i),i.nodeValue||r.Dom.safeRemove(i),!0)}},80973:function(t,i,n){"use strict";n.d(i,{replaceOldTags:function(){return r}});var o=n(2748);function r(t,i,n){let r=function(t,i,n){if(!n||!o.Dom.isHTMLElement(i))return i;let r=n[i.nodeName.toLowerCase()]||n[i.nodeName];return r?o.Dom.replace(i,r,t.createInside,!0,!1):i}(t,i,t.o.cleanHTML.replaceOldTags);return i!==r?(i=r,!0):n}},95614:function(t,i,n){"use strict";n.d(i,{safeLinksTarget:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){if(!t.o.cleanHTML.safeLinksTarget||!o.Dom.isElement(i)||"A"!==i.nodeName||"_blank"!==(0,r.attr)(i,"target"))return n;let s=((0,r.attr)(i,"rel")||"").split(/\s+/).filter(Boolean),a=!1;return(s.includes("noopener")||(s.push("noopener"),a=!0),s.includes("noreferrer")||(s.push("noreferrer"),a=!0),a)?((0,r.attr)(i,"rel",s.join(" ")),!0):n}},85978:function(t,i,n){"use strict";n.d(i,{sandboxIframesInContent:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){return t.o.cleanHTML.sandboxIframesInContent&&o.Dom.isElement(i)&&"IFRAME"===i.nodeName?i.hasAttribute("sandbox")?n:((0,r.attr)(i,"sandbox",""),!0):n}},384:function(t,i,n){"use strict";n.d(i,{sanitizeAttributes:function(){return s}});var o=n(2748),r=n(21537);function s(t,i,n){if(!o.Dom.isElement(i))return n;let s=t.options.cleanHTML;return!!(0,r.sanitizeHTMLElement)(i,{safeJavaScriptLink:s.safeJavaScriptLink,removeOnError:s.removeOnError,removeEventAttributes:s.removeEventAttributes,safeLinksTarget:s.safeLinksTarget})||n}},15583:function(t,i,n){"use strict";n.d(i,{sanitizeStyles:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=t.o.cleanHTML.allowedStyles;if(!s||!o.Dom.isElement(i))return n;let a=(0,r.attr)(i,"style");if(!a)return n;let l=function(t,i){let n=i[t],o=i["*"];if(!n&&!o)return null;let r=new Set;if(o)for(let t of o)r.add(t.toLowerCase());if(n)for(let t of n)r.add(t.toLowerCase());return r}(i.nodeName.toLowerCase(),s);if(!l)return n;let c=a.split(";").map(t=>t.trim()).filter(t=>{if(!t)return!1;let i=t.indexOf(":");if(-1===i)return!1;let n=t.substring(0,i).trim().toLowerCase();return l.has(n)}).join("; ").replace(/;\s*$/,"");return c!==a?((0,r.attr)(i,"style",c||null),!0):n}},28800:function(t,i,n){"use strict";n.d(i,{tryRemoveNode:function(){return a}});var o=n(82758),r=n(2748),s=n(49055);function a(t,i,n,a,l,c){return!function(t,i,n,a,l){if(!r.Dom.isText(i)&&(a&&!a[i.nodeName]||!a&&l&&l[i.nodeName]))return!0;if(!t.o.cleanHTML.removeEmptyElements)return!1;let c=t.s.isCollapsed()?t.s.range.startContainer:null;return r.Dom.isElement(i)&&null!=i.nodeName.match(o.IS_INLINE)&&!r.Dom.isTemporary(i)&&0===(0,s.trimInv)(i.innerHTML).length&&(null==n||!r.Dom.isOrContains(i,n))&&(null==c||!r.Dom.isOrContains(i,c))}(t,i,c,a,l)?n:(r.Dom.safeRemove(i),!0)}},39516:function(t,i,n){"use strict";n.d(i,{visitNodeWalker:function(){return a}});var o=n(82758),r=n(45235);let s=Object.keys(r);function a(t,i,n,a,l){let c=!1,d=t.o.cleanHTML.disableCleanFilter;for(let u of s)if(!(d&&d.has(u))&&(c=(0,r[u])(t,i,c,n,a,l),o.IS_PROD,!i.isConnected))return!0;return c}},61323:function(t,i,n){"use strict";var o=n(82758),r=n(33433),s=n(2748),a=n(580),l=n(21537);n(79419);class c{init(t){var i;null==(i=this.buttons)||i.forEach(i=>t.registerButton(i)),t.e.off(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`).on(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`,i=>{var n;let r=function(t,i){if(!i||t.s.isCollapsed())return i;let n=t.s.range.commonAncestorContainer;s.Dom.isElement(n)||(n=n.parentElement);let o=i;for(;n&&n!==t.editor&&s.Dom.isElement(n)&&!s.Dom.isBlock(n);){let t=n.cloneNode(!1);t.innerHTML=o,o=t.outerHTML,n=n.parentElement}return o}(t,t.s.html),a=(0,l.getDataTransfer)(i)||(0,l.getDataTransfer)(t.ew)||(0,l.getDataTransfer)(i.originalEvent);a&&(a.setData(o.TEXT_PLAIN,(0,l.stripTags)(r)),a.setData(o.TEXT_HTML,r)),t.buffer.set(o.CLIPBOARD_ID,r),t.e.fire("pasteStack",{html:r,action:t.o.defaultActionOnPaste||o.INSERT_AS_HTML}),"cut"===i.type&&(t.s.remove(),t.s.focus()),i.preventDefault(),null==(n=null==t?void 0:t.events)||n.fire("afterCopy",r)})}destruct(t){var i,n;null==(i=(0,r.cached)(t,"buffer"))||i.set(o.CLIPBOARD_ID,""),null==(n=null==t?void 0:t.events)||n.off("."+o.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}a.pluginSystem.add("clipboard",c)},79419:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(94775),a=n(23140),l=n(92699),c=n(10052);r.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},r.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},r.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",s.default).set("cut",a.default).set("paste",l.default).set("select-all",c.default)},94775:function(t,i){"use strict";i.default='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> '},23140:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> '},92699:function(t,i){"use strict";i.default='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> '},10052:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> '},46104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},93079:function(t,i,n){"use strict";var o=n(580),r=n(21537);n(21988),o.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let i=(i,n,o)=>{var s;let a=(0,r.normalizeColor)(o)||"",l="background"===i?{backgroundColor:a}:{color:a},c=t.getInstance("Table",t.o).getAllSelectedCells();return c.length&&t.s.isCollapsed()?(c.forEach(i=>{t.s.select(i,!0),t.s.commitStyle({attributes:{style:l}})}),null==(s=t.s.sel)||s.removeAllRanges()):t.s.commitStyle({attributes:{style:l}}),t.synchronizeValues(),!1};t.registerCommand("forecolor",i).registerCommand("background",i)})},21988:function(t,i,n){"use strict";var o=n(2748),r=n(21537),s=n(12153),a=n(6441),l=n(92762),c=n(46104);s.Icon.set("brush",c.default),a.Config.prototype.controls.brushCell={isVisible:t=>!t.o.disablePlugins.includes("color"),icon:"brush",popup(t,i,n){if(!(0,r.isJoditObject)(t))return;let o=t.getInstance("Table",t.o).getAllSelectedCells();if(!o.length)return!1;let s=i=>(0,l.ColorPickerWidget)(t,s=>{o.forEach(t=>{(0,r.css)(t,i,s)}),t.lock(),t.synchronizeValues(),n(),t.unlock()},(0,r.css)(o[0],i));return(0,l.TabsWidget)(t,[{name:"Background",content:s("background-color")},{name:"Text",content:s("color")},{name:"Border",content:s("border-color")}])},tooltip:"Background"},a.Config.prototype.controls.brush={isVisible:t=>!t.o.disablePlugins.includes("color"),update(t,i){let n=(0,r.dataBind)(i,"color"),s=(n,o)=>!!o&&o!==(0,r.css)(t.editor,n).toString()&&(i.state.icon.fill=o,!0);if(n){let t=(0,r.dataBind)(i,"color");s("color"===t?t:"background-color",n);return}let a=t.s.current();if(a&&!i.state.disabled){let i=o.Dom.closest(a,o.Dom.isElement,t.editor)||t.editor,n=s("color",(0,r.css)(i,"color").toString()),l=s("background-color",(0,r.css)(i,"background-color").toString());if(n||l)return}i.state.icon.fill="",i.state.activated=!1},popup(t,i,n,s){let a="",c="",d=[],u=null;return i&&i!==t.editor&&o.Dom.isNode(i)&&(o.Dom.isElement(i)&&t.s.isCollapsed()&&!o.Dom.isTag(i,new Set(["br","hr"]))&&(u=i),o.Dom.up(i,t=>{if(o.Dom.isHTMLElement(t)){let i=(0,r.css)(t,"color",!0),n=(0,r.css)(t,"background-color",!0);if(i)return a=i.toString(),!0;if(n)return c=n.toString(),!0}},t.editor)),d=[{name:"Background",content:(0,l.ColorPickerWidget)(t,i=>{u?u.style.backgroundColor=i:t.execCommand("background",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","background"),n()},c)},{name:"Text",content:(0,l.ColorPickerWidget)(t,i=>{u?u.style.color=i:t.execCommand("forecolor",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","color"),n()},a)}],"background"!==t.o.colorPickerDefaultTab&&(d=d.reverse()),(0,l.TabsWidget)(t,d,u)},exec(t,i,{button:n}){let s=(0,r.dataBind)(n,"color-mode"),a=(0,r.dataBind)(n,"color");if(!s)return!1;if(i&&i!==t.editor&&o.Dom.isNode(i)&&o.Dom.isElement(i))switch(s){case"color":i.style.color=a;break;case"background":i.style.backgroundColor=a}else t.execCommand("background"===s?s:"forecolor",!1,a)},tooltip:"Fill color or set the text color"}},19063:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(41180),a=n(12153),l=n(6441),c=n(57487),d=n(23914);let u="copy-format",h=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],p=(t,i,n,o)=>{let r=(0,s.css)(n,i);return r===o[i]&&(r=n.parentNode&&n!==t.editor&&n.parentNode!==t.editor?p(t,i,n.parentNode,o):void 0),r};l.Config.prototype.controls.copyformat={exec(t,i,{button:n}){if(i){if(t.buffer.exists(u))t.buffer.delete(u),t.e.off(t.editor,"mouseup."+u);else{let n,r={},a=o.Dom.up(i,t=>t&&!o.Dom.isText(t),t.editor)||t.editor,l=t.createInside.span();t.editor.appendChild(l),h.forEach(t=>{r[t]=(0,s.css)(l,t)}),l!==t.editor&&o.Dom.safeRemove(l);let c=(n={},a&&h.forEach(i=>{n[i]=p(t,i,a,r),i.match(/border(Style|Color)/)&&!n.borderWidth&&(n[i]=void 0)}),n);t.e.on(t.editor,"mouseup."+u,()=>{t.buffer.delete(u);let i=t.s.current();i&&(o.Dom.isTag(i,"img")?(0,s.css)(i,c):t.s.commitStyle({attributes:{style:c}})),t.e.off(t.editor,"mouseup."+u)}),t.buffer.set(u,!0)}n.update()}},isActive:t=>t.buffer.exists(u),tooltip:"Paint format"},r.pluginSystem.add("copyformat",function(t){t.registerButton({name:"copyformat",group:"clipboard"}),(0,r.extendLang)(d)}),a.Icon.set("copyformat",c.default)},57487:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> '},23914:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return r.a},cs_cz:function(){return r.a},de:function(){return r.a},es:function(){return r.a},fa:function(){return r.a},fi:function(){return r.a},fr:function(){return r.a},he:function(){return r.a},hu:function(){return r.a},id:function(){return r.a},it:function(){return r.a},ja:function(){return r.a},ko:function(){return r.a},mn:function(){return r.a},nl:function(){return r.a},pl:function(){return r.a},pt_br:function(){return r.a},ru:function(){return r.a},tr:function(){return r.a},zh_cn:function(){return r.a},zh_tw:function(){return r.a}});var o=n(41324),r=n.n(o)},66707:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(21537),a=n(49055),l=n(50911);class c extends l.Plugin{afterInit(t){t.e.on("afterCommand.delete",t=>{"delete"===t&&this.__afterDeleteCommand()}),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){let t=this.j,i=t.s.current();if(i&&o.Dom.isTag(i.firstChild,"br")&&t.s.removeNode(i.firstChild),!(0,a.trim)(t.editor.textContent||"")&&!t.editor.querySelector("img,table,jodit,iframe,hr")&&(!i||!o.Dom.closest(i,"table",t.editor))){t.editor.innerHTML="";let i=t.s.setCursorIn(t.editor);t.s.removeNode(i)}}__onDeleteCommand(){let{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();let i=t.s.range;i.deleteContents();let n=t.createInside.fake();i.insertNode(n);let r=o.Dom.findSibling(n,!0),s=o.Dom.findSibling(n,!1);return this.__moveContentInLeftSibling(n,r,s),i.setStartBefore(n),i.collapse(!0),this.__moveCursorInEditableSibling(t,r,n,i),this.__addBrInEmptyBlock(n,s,i),o.Dom.safeRemove(n),t.s.selectRange(i),!1}__moveContentInLeftSibling(t,i,n){i=this.__defineRightLeftBox(i),!o.Dom.isList(n)&&!o.Dom.isTag(n,"table")&&o.Dom.isBlock(n)&&o.Dom.isBlock(i)&&(o.Dom.append(i,t),o.Dom.moveContent(n,i),o.Dom.safeRemove(n)),o.Dom.isList(n)&&o.Dom.isLeaf(n.firstElementChild)&&o.Dom.isEmpty(n.firstElementChild)&&o.Dom.safeRemove(n.firstElementChild)}__defineRightLeftBox(t){if(!o.Dom.isList(t))return t;let i=t.lastElementChild;return o.Dom.isLeaf(i)||(i=this.j.createInside.element("li"),o.Dom.append(t,i)),i}__addBrInEmptyBlock(t,i,n){let r=this.j;if(t.isConnected&&o.Dom.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){let i=r.createInside.element("br");o.Dom.after(t,i),n.setStartBefore(i),n.collapse(!0)}if(o.Dom.isTag(i,"table")){let t=(0,s.$$)("td,th",i).shift();o.Dom.isCell(t)&&o.Dom.isEmpty(t)&&o.Dom.append(t,r.createInside.element("br"))}}__moveCursorInEditableSibling(t,i,n,r){var s;if(!i||!o.Dom.isText(i)){let i=null!=(s=o.Dom.closest(n,o.Dom.isBlock,t.editor))?s:t.editor,a=o.Dom.prev(n,o.Dom.isText,i);a&&(r.setStartAfter(a),r.collapse(!0),o.Dom.safeRemove(n))}}}c.requires=["backspace"],r.pluginSystem.add("deleteCommand",c)},44586:function(t,i,n){"use strict";n(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(t,i,n){"use strict";var o,r,s=n(65478),a=n(22732),l=n(580),c=n(21537),d=n(50911);n(44586);var u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};(o=r||(r={}))[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING";class h extends d.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,c.splitArray)(this.j.o.draggableTags).filter(Boolean).map(t=>t.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(t,i){this.isInDestruct||this.state>r.IDLE||!t||this.startDragging(t,i)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>r.IDLE)return;let i=t.target;if(!this.dragList.length||!i)return;let n=t=>!!(t&&this.dragList.includes(t.nodeName.toLowerCase())),o=a.Dom.furthest(i,n,this.j.editor)||(n(i)?i:null);o&&(a.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startDragging(o,t))}startDragging(t,i){this.startX=i.clientX,this.startY=i.clientY,this.isCopyMode=(0,c.ctrlKey)(i),this.draggable=t.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",t),this.state=r.WAIT_DRAGGING,this.addDragListeners()}onDrag(t){var i,n;if(!this.draggable||this.state===r.IDLE)return;let o=t.clientX,s=t.clientY;if(!(this.state===r.WAIT_DRAGGING&&Math.sqrt(Math.pow(o-this.startX,2)+Math.pow(s-this.startY,2))<this.diffStep)){if(this.state===r.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=r.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let o=(0,c.dataBind)(this.draggable,"target");(0,c.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:null!=(i=null==o?void 0:o.offsetWidth)?i:100,height:null!=(n=null==o?void 0:o.offsetHeight)?n:100}),(0,l.getContainer)(this.j,h).appendChild(this.draggable)}(0,c.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=r.IDLE,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<r.DRAGGING)return void this.onDragEnd();let t=(0,c.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));let{parentElement:i}=t;this.j.s.insertNode(t,!0,!1),[t.previousSibling,t.nextSibling].forEach(t=>{a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t)}),i&&a.Dom.isEmpty(i)&&!a.Dom.isCell(i)&&a.Dom.safeRemove(i),a.Dom.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=r.IDLE}}u([s.autobind],h.prototype,"onStartDragElement",null),u([s.autobind],h.prototype,"onDragStart",null),u([(0,s.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),u([s.autobind],h.prototype,"onDragEnd",null),u([s.autobind],h.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",h)},19271:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),c=n(50911),d=n(8172),u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends c.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){var i;let n=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=s.Dom.isOrContains(this.j.editor,n,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,l.ctrlKey)(t),this.isFragmentFromEditor){let t=this.j.s.sel,i=t&&t.rangeCount?t.getRangeAt(0):null;i&&(this.bufferRange=i.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,i=n,s.Dom.isElement(i)&&i.classList.contains(d.FileBrowserFiles.prototype.getFullElName("item"))&&(n=n.querySelector("img")),s.Dom.isTag(n,"img")&&(this.draggable=n.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",n)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;let i=this.j.s.sel,n=this.bufferRange||(i&&i.rangeCount?i.getRangeAt(0):null),o=this.__getWorkFragment(n,t);i&&i.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),o&&this.__insertFragment.call(this,o,n),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(t,i){let n=null;if(!this.draggable&&t)n=this.isCopyMode?t.cloneContents():t.extractContents();else if(this.draggable)if(this.isCopyMode){let[t,i]="1"===(0,l.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];n=this.j.createInside.element(t),(0,l.attr)(n,i,(0,l.attr)(this.draggable,"data-src")||(0,l.attr)(this.draggable,"src")||""),"a"===t&&(n.textContent=(0,l.attr)(n,i)||"")}else n=(0,l.dataBind)(this.draggable,"target");else this.getText(i)&&(n=this.j.createInside.fromHTML(this.getText(i)));return n}__insertFragment(t,i){this.j.s.insertNode(t,!1,!1),i&&t.firstChild&&t.lastChild&&(i.setStartBefore(t.firstChild),i.setEndAfter(t.lastChild),this.j.s.selectRange(i),this.j.e.fire("synchro")),s.Dom.isTag(t,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",t)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=t=>{let i=(0,l.getDataTransfer)(t);return i?i.getData(o.TEXT_HTML)||i.getData(o.TEXT_PLAIN):null}}}u([r.autobind],h.prototype,"onDragStart",null),u([(0,r.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),u([r.autobind],h.prototype,"onDragEnd",null),u([r.autobind],h.prototype,"onDrop",null),a.pluginSystem.add("dragAndDrop",h)},46124:function(t,i,n){"use strict";n.r(i),n.d(i,{removeExtraBr:function(){return o.removeExtraBr}});var o=n(94870)},94870:function(t,i,n){"use strict";n.d(i,{removeExtraBr:function(){return s}});var o=n(2748);let r=new Set(["table","pre","blockquote","code"]);function s(t,i){if(!t.o.dtd.removeExtraBr||o.Dom.isTag(i,"br"))return;let n=o.Dom.furthest(i,o.Dom.isBlock,t.editor);if(n&&!o.Dom.isTag(n,r)){let n=o.Dom.isTag(i,"br")?i:o.Dom.findNotEmptySibling(i,!1);if(!o.Dom.isTag(n,"br")||o.Dom.findNotEmptySibling(n,!1))return;t.s.setCursorBefore(n),o.Dom.safeRemove(n)}}},78720:function(t,i,n){"use strict";n.d(i,{checkBlockNesting:function(){return r}});var o=n(2748);function r(t,i){var n,r;if(o.Dom.isFragment(i)&&(i=i.firstChild),t.o.dtd.checkBlockNesting&&o.Dom.isBlock(i)){let i=null,s=null!=(r=null==(n=t.s.current())?void 0:n.parentElement)?r:null;for(;s&&s!==t.editor;){if(o.Dom.isBlock(s)){if(t.o.dtd.blockLimits[s.nodeName.toLowerCase()])break;i=s}s=s.parentElement}i&&(t.s.setCursorAfter(i),o.Dom.isEmpty(i)&&o.Dom.safeRemove(i))}}},43267:function(t,i,n){"use strict";n.r(i),n.d(i,{checkBlockNesting:function(){return o.checkBlockNesting}});var o=n(78720)},9045:function(t,i,n){"use strict";n(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(t,i,n){"use strict";var o=n(37133),r=n(580),s=n(50911);n(9045);var a=n(46124),l=n(43267),c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class d extends s.Plugin{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach(i=>{l[i](this.j,t)})}__onAfterInsertNode(t){Object.keys(a).forEach(i=>{a[i](this.j,t)})}}c([(0,o.watch)(":beforeInsertNode")],d.prototype,"__onBeforeInsertNode",null),c([(0,o.watch)(":afterInsertNode")],d.prototype,"__onAfterInsertNode",null),r.pluginSystem.add("dtd",d)},575:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(87612),c=n(20356),d=n(35399);class u extends c.Plugin{afterInit(t){let i=t.o.enter.toLowerCase(),n=i===o.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=n?o.PARAGRAPH:i),t.registerCommand("enter",(t,i,n={})=>this.onEnter(n))}onEnterKeyDown(t){if(t.key===o.KEY_ENTER){let i=this.j,n=i.e.fire("beforeEnter",t);return void 0!==n?n:(i.history.snapshot.transaction(()=>{i.s.isCollapsed()||i.execCommand("Delete"),i.s.focus(),this.onEnter(t),i.e.fire("afterEnter",t)}),i.synchronizeValues(),!1)}}onEnter(t){let{jodit:i}=this,n=i.createInside.fake();try{s.Dom.safeInsertNode(i.s.range,n),(0,d.moveCursorOutFromSpecialTags)(i,n,["a"]);let o=(0,d.getBlockWrapper)(n,i),r=s.Dom.isLeaf(o);if((!r||(null==t?void 0:t.shiftKey))&&(0,d.checkBR)(n,i,null==t?void 0:t.shiftKey))return!1;if(o||(0,d.hasPreviousBlock)(n,i)||(o=(0,d.wrapText)(n,i)),!o)return(0,d.insertParagraph)(n,i,r?"li":i.o.enter),!1;if(!(0,d.checkUnsplittableBox)(n,i,o))return!1;if(r&&this.__isEmptyListLeaf(o))return(0,d.processEmptyLILeaf)(n,i,o),!1;(0,d.splitFragment)(n,i,o)}finally{n.isConnected&&i.s.setCursorBefore(n),s.Dom.safeRemove(n)}}__isEmptyListLeaf(t){let i=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,l.isBoolean)(i)?i:s.Dom.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.watch)(":keydown.enter")],u.prototype,"onEnterKeyDown",null),a.pluginSystem.add("enter",u)},41872:function(t,i,n){"use strict";n.d(i,{checkBR:function(){return a}});var o=n(82758),r=n(2748),s=n(26395);function a(t,i,n){let a=!!r.Dom.closest(t,["pre","blockquote"],i.editor),c=!a&&r.Dom.closest(t,["td","th"],i.editor);if(i.o.enter.toLowerCase()===o.BR.toLowerCase()||c||n&&!a||!n&&a){var d;let n;if(a&&(n=l(l(d=t)))&&(r.Dom.safeRemove(l(d)),r.Dom.safeRemove(n),1))return!1;let o=i.createInside.element("br");if(r.Dom.before(t,o),!r.Dom.findNotEmptySibling(o,!1)){let i=o.cloneNode();r.Dom.after(o,i),r.Dom.before(i,t)}return(0,s.scrollIntoViewIfNeeded)(o,i.editor,i.ed),!0}return!1}function l(t){if(!t)return!1;let i=r.Dom.findSibling(t,!0);return!!i&&!!r.Dom.isTag(i,"br")&&i}},61991:function(t,i,n){"use strict";n.d(i,{checkUnsplittableBox:function(){return r}});var o=n(2748);function r(t,i,n){return!!o.Dom.canSplitBlock(n)||(o.Dom.before(t,i.createInside.element("br")),!1)}},54041:function(t,i,n){"use strict";n.d(i,{getBlockWrapper:function(){return function t(i,n,s=o.IS_BLOCK){let a=i,l=n.editor;do{if(!a||a===l)break;if(s.test(a.nodeName)){if(r.Dom.isLeaf(a))return a;return t(a.parentNode,n,/^li$/i)||a}a=a.parentNode}while(a&&a!==l)return null}}});var o=n(82758),r=n(2748)},19057:function(t,i,n){"use strict";n.d(i,{hasPreviousBlock:function(){return r}});var o=n(2748);function r(t,i){return!!o.Dom.prev(t,t=>o.Dom.isBlock(t)||o.Dom.isImage(t),i.editor)}},35399:function(t,i,n){"use strict";n.d(i,{checkBR:function(){return o.checkBR},checkUnsplittableBox:function(){return r.checkUnsplittableBox},getBlockWrapper:function(){return s.getBlockWrapper},hasPreviousBlock:function(){return a.hasPreviousBlock},insertParagraph:function(){return l.insertParagraph},moveCursorOutFromSpecialTags:function(){return c.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return d.processEmptyLILeaf},splitFragment:function(){return u.splitFragment},wrapText:function(){return h.wrapText}});var o=n(41872),r=n(61991),s=n(54041),a=n(19057),l=n(44245),c=n(91388),d=n(65181),u=n(54600),h=n(5287)},44245:function(t,i,n){"use strict";n.d(i,{insertParagraph:function(){return a}});var o=n(2748),r=n(29960),s=n(26395);function a(t,i,n,a){let l="br"===n.toLowerCase(),{createInside:c}=i,d=c.element(n),u=c.element("br");return l||d.appendChild(u),a&&a.cssText&&(0,r.attr)(d,"style",a.cssText),o.Dom.after(t,d),o.Dom.before(l?d:u,t),(0,s.scrollIntoViewIfNeeded)(d,i.editor,i.ed),d}},91388:function(t,i,n){"use strict";n.d(i,{moveCursorOutFromSpecialTags:function(){return r}});var o=n(2748);function r(t,i,n){let{s:r}=t,s=o.Dom.closest(i,n,t.editor);s&&(r.cursorOnTheRight(s,i)?o.Dom.after(s,i):r.cursorOnTheLeft(s,i)&&o.Dom.before(s,i))}},65181:function(t,i,n){"use strict";n.d(i,{processEmptyLILeaf:function(){return a}});var o=n(2748),r=n(76078),s=n(44245);function a(t,i,n){let a=o.Dom.closest(n,["ol","ul"],i.editor);if(!a)return;let l=a.parentElement,c=o.Dom.isLeaf(l),d=c?l:a,u=i.s.createRange();u.setStartAfter(n),u.setEndAfter(a);let h=u.extractContents();o.Dom.after(d,t),o.Dom.safeRemove(n),(0,r.$$)("li",a).length||o.Dom.safeRemove(a);let p=(0,s.insertParagraph)(t,i,c?"li":i.o.enter);h.querySelector("li")&&(c?p.appendChild(h):o.Dom.after(p,h))}},54600:function(t,i,n){"use strict";n.d(i,{splitFragment:function(){return a}});var o=n(2748),r=n(26395),s=n(44245);function a(t,i,n){let a=i.s,{enter:l}=i.o,c=l.toLowerCase(),d=o.Dom.isLeaf(n),u=n.tagName.toLowerCase()===c||d,h=a.cursorOnTheRight(n,t),p=a.cursorOnTheLeft(n,t);if(!u&&(h||p)){h?o.Dom.after(n,t):o.Dom.before(n,t),(0,s.insertParagraph)(t,i,c),p&&!h&&o.Dom.prepend(n,t);return}let f=a.splitSelection(n,t);(0,r.scrollIntoViewIfNeeded)(f,i.editor,i.ed)}},5287:function(t,i,n){"use strict";n.d(i,{wrapText:function(){return r}});var o=n(2748);function r(t,i){let n=t;o.Dom.up(n,t=>{t&&t.hasChildNodes()&&t!==i.editor&&(n=t)},i.editor);let r=o.Dom.wrapInline(n,i.o.enter,i);if(o.Dom.isEmpty(r)){let n=i.createInside.element("br");r.appendChild(n),o.Dom.before(n,t)}return r}},11317:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(29960),a=n(6441),l=n(92762);a.Config.prototype.controls.file={popup(t,i,n){let r=(i,n="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${i}" title="${n}">${n||i}</a>`))},a=null;return i&&(o.Dom.isTag(i,"a")||o.Dom.closest(i,"a",t.editor))&&(a=o.Dom.isTag(i,"a")?i:o.Dom.closest(i,"a",t.editor)),(0,l.FileSelectorWidget)(t,{filebrowser(t){t.files&&t.files.forEach(i=>r(t.baseurl+i)),n()},upload:!0,url(t,i){a?((0,s.attr)(a,"href",t),(0,s.attr)(a,"title",i)):r(t,i),n()}},a,n,!1)},tags:["a"],tooltip:"Insert file"},r.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},36243:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(6441);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,r.pluginSystem.add("focus",function(t){t.o.saveSelectionOnBlur&&t.e.on("blur",()=>{t.isEditorMode()&&t.s.save(!0)}).on("focus",()=>{t.isEditorMode()&&t.s.restore()});let i=()=>{t.s.focus();let i=null;switch(t.o.cursorAfterAutofocus){case"start":i=o.Dom.first(t.editor,t=>o.Dom.isText(t));break;case"end":i=o.Dom.last(t.editor,t=>o.Dom.isText(t))}i&&t.s.setCursorIn(i,"start"===t.o.cursorAfterAutofocus)};t.e.on("afterInit",()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(i,300):i())}),t.e.on("afterInit afterAddPlace",()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",i=>{t.isEditorMode()&&i.target&&o.Dom.isBlock(i.target)&&!i.target.childNodes.length&&(t.editor===i.target?t.s.focus():t.s.setCursorIn(i.target))})})})},28252:function(t,i,n){"use strict";var o=n(22732),r=n(49055),s=n(41180),a=n(12153),l=n(6441),c=n(4104),d=n(83709);l.Config.prototype.defaultFontSizePoints="px",a.Icon.set("font",c.default).set("fontsize",d.default),l.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:t=>t.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(t,i)=>i+t.o.defaultFontSizePoints,childTemplate:(t,i,n)=>`${n}${t.o.defaultFontSizePoints}`,tooltip:"Font size",value(t,i){var n;let r=t.s.current();if(!r)return;let a=o.Dom.closest(r,o.Dom.isElement,t.editor);if(!a)return;let l=(null==(n=i.control.data)?void 0:n.cssRule)||"font-size",c=(0,s.css)(a,l);if("font-size"===l){let i=parseFloat(c.toString());return"pt"===t.o.defaultFontSizePoints?Math.round(.75*i).toString():Math.round(i).toString()}return c.toString()},isChildActive(t,i){var n,o;let r=i.state.value,s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t;return!!(r&&i.control.args&&s(i.control.args[0].toString())===s(r.toString()))},isActive(t,i){var n,o;let r=i.state.value;if(!r)return!1;let s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t,a=i.control.data.cacheListSet;return a||(a=new Set(Object.keys(i.control.list).map(s)),i.control.data.cacheListSet=a),a.has(s(r.toString()))}},l.Config.prototype.controls.font={...l.Config.prototype.controls.fontsize,command:"fontname",textTemplate(t,i){let[n]=i.split(",");return(0,r.trimChars)(n,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(t,i,n){let o=!1;try{o=-1===i.indexOf("dings")&&document.fonts.check("16px "+i,n)}catch(t){}return`<span data-style="${i}" style="${o?`font-family: ${i}!important;`:""}">${n}</span>`},data:{cssRule:"font-family",normalize:t=>t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value(t){let i=t.s.current();if(!i)return;let n=o.Dom.closest(i,o.Dom.isElement,t.editor);if(!n)return;let r=(0,s.css)(n,"font-family").toString();return r===(0,s.css)(t.editor,"font-family").toString()?"":r},tooltip:"Font family"}},23399:function(t,i,n){"use strict";var o=n(580),r=n(21537);n(28252),o.pluginSystem.add("font",function(t){t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let i=(i,n,o)=>{switch(i){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,r.normalizeSize)(o,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:o}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",i).registerCommand("fontname",i)})},4104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> '},83709:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},24630:function(t,i,n){"use strict";var o=n(2748),r=n(72430),s=n(12153),a=n(6441),l=n(89816);s.Icon.set("paragraph",l.default),a.Config.prototype.controls.paragraph={command:"formatBlock",value(t,i){var n,r;let s=i.control,a=t.s.current(),l=o.Dom.closest(a,o.Dom.isBlock,t.editor);return null!=(n=null==l?void 0:l.nodeName.toLowerCase())?n:null==(r=s.data)?void 0:r.currentValue},update(t,i){let n=i.control;if(!t.s.current())return!1;let o=i.state.value,s=n.list;return(0,r.isPlainObject)(s)&&s[o.toString()]&&t.o.textIcons&&(i.state.text=s[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive(t,i){var n,o;return i.state.value===(null==(o=null==(n=i.control)?void 0:n.args)?void 0:o[0])},isActive:(t,i)=>i.state.value!==t.o.enter&&(0,r.isPlainObject)(i.control.list)&&!!i.control.list[i.state.value],childTemplate:(t,i,n)=>`<${i} style="margin:0;padding:0"><span>${t.i18n(n)}</span></${i}>`,tooltip:"Insert format block"}},96111:function(t,i,n){"use strict";var o=n(580);n(24630),o.pluginSystem.add("formatBlock",function(t){t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",(i,n,o)=>(t.s.commitStyle({element:o}),t.synchronizeValues(),!1))})},89816:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '},99823:function(t,i,n){"use strict";var o=n(82758),r=n(12153),s=n(6441),a=n(6950),l=n(28911);s.Config.prototype.fullsize=!1,s.Config.prototype.globalFullSize=!0,r.Icon.set("fullsize",a.default).set("shrink",l.default),s.Config.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,i){let n=t.isFullSize?"shrink":"fullsize";i.state.activated=t.isFullSize,t.o.textIcons?i.state.text=n:i.state.icon.name=n},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},2169:function(t,i,n){"use strict";var o=n(580),r=n(19306),s=n(41180);n(99823);let a=new Set;o.pluginSystem.add("fullsize",function(t){t.registerButton({name:"fullsize"});let i=!1,n=0,o=0,l=0,c=0,d=!1,u=()=>{let{container:r,events:a}=t;a&&(i?(d||(n=(0,s.css)(r,"height",!0),o=(0,s.css)(r,"width",!0),d=!0),(0,s.css)(r,{height:t.ow.innerHeight,width:t.ow.innerWidth})):d&&((0,s.css)(r,{height:n||"auto",width:o||"auto"}),d=!1))},h=n=>{var o;let{container:d,events:h}=t;if(d){if(void 0===n&&(n=!d.classList.contains("jodit_fullsize")),t.setMod("fullsize",n),t.o.fullsize=n,i=n,d.classList.toggle("jodit_fullsize",n),t.toolbar&&((0,r.isJoditObject)(t)&&(null==(o=t.toolbarContainer)||o.appendChild(t.toolbar.container)),(0,s.css)(t.toolbar.container,"width","auto")),n?a.add(d):a.delete(d),t.o.globalFullSize&&(1===a.size&&n||0===a.size&&!n)){n&&(l=t.ow.scrollX,c=t.ow.scrollY);let i=d.parentNode;for(;i&&i.nodeType!==Node.DOCUMENT_NODE&&i.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)i.classList.toggle("jodit_fullsize-box_true",n),i=i.parentNode;u(),n||t.ow.scrollTo(l,c)}h.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",u),t.e.on("afterInit afterOpen",()=>{var i;t.toggleFullSize(null==(i=null==t?void 0:t.options)?void 0:i.fullsize)}).on("toggleFullSize",h).on("beforeDestruct",()=>{i&&h(!1)}).on("beforeDestruct",()=>{t.events&&t.e.off(t.ow,"resize",u)})})},6950:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> '},28911:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '},78524:function(t,i,n){"use strict";n(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8","cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},42263:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537),a=n(50911);n(78524);class l extends a.Plugin{afterInit(t){(0,s.keys)(t.o.commandToHotkeys,!1).forEach(i=>{let n=t.o.commandToHotkeys[i];n&&((0,s.isArray)(n)||(0,s.isString)(n))&&t.registerHotkeyToCommand(n,i)});let i=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",t=>{if(t.key===o.KEY_ESC)return this.j.e.fire("escape",t)}).on("keydown.hotkeys",n=>{let o=this.onKeyPress(n),r={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",n.type,r))if(r.shouldStop)return i=!0,t.e.stopPropagation("keydown"),!1;else n.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(i)return i=!1,t.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=t=>{let i=this.specialKeys[t.which],n=(t.key||String.fromCharCode(t.which)).toLowerCase(),o=[i||n];return["alt","ctrl","shift","meta"].forEach(n=>{t[n+"Key"]&&i!==n&&o.push(n)}),(0,s.normalizeKeyAliases)(o.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}}r.pluginSystem.add("hotkeys",l)},16233:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(12153),a=n(6441),l=n(72337);s.Icon.set("hr",l.default),a.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},r.pluginSystem.add("hr",function(t){t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",()=>{let i=t.createInside.element("hr");t.s.insertNode(i,!1,!1);let n=o.Dom.closest(i.parentElement,o.Dom.isBlock,t.editor);n&&o.Dom.isEmpty(n)&&n!==t.editor&&(o.Dom.after(n,i),o.Dom.safeRemove(n));let r=o.Dom.next(i,o.Dom.isBlock,t.editor,!1);return r||(r=t.createInside.element(t.o.enter),o.Dom.after(i,r)),t.s.setCursorIn(r),!1})})},72337:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '},50963:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.iframeBaseUrl="",o.Config.prototype.iframeTitle="Jodit Editor",o.Config.prototype.iframeDoctype="<!DOCTYPE html>",o.Config.prototype.iframeDefaultSrc="about:blank",o.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',o.Config.prototype.iframeCSSLinks=[],o.Config.prototype.iframeSandbox=null},77469:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537);n(50963),r.pluginSystem.add("iframe",function(t){let i=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,n)=>{let o=t||n.iframe.contentWindow.document;if(o.open(),o.write(i.iframeDoctype+`<html dir="${i.direction}" class="jodit" lang="${(0,s.defaultLanguage)(i.language)}">`+"<head>"+`<title>${i.iframeTitle}</title>`+(i.iframeBaseUrl?`<base href="${i.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),i.iframeCSSLinks&&i.iframeCSSLinks.forEach(t=>{let i=o.createElement("link");(0,s.attr)(i,"rel","stylesheet"),(0,s.attr)(i,"href",t),o.head&&o.head.appendChild(i)}),i.iframeStyle){let t=o.createElement("style");t.innerHTML=i.iframeStyle,o.head&&o.head.appendChild(t)}}).on("createEditor",()=>{if(!i.iframe)return;let n=t.c.element("iframe");n.style.display="block",n.src="about:blank",n.className="jodit-wysiwyg_iframe",(0,s.attr)(n,{allowtransparency:"true",tabindex:i.tabIndex.toString(),frameborder:"0"}),null!=i.iframeSandbox&&(0,s.attr)(n,"sandbox",i.iframeSandbox),t.workplace.appendChild(n),t.iframe=n;let r=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,s.callPromise)(r,()=>{if(!t.iframe)return!1;let n=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let r=i.editHTMLDocumentMode,a=()=>{(0,s.attr)(n.body,"contenteditable",t.getMode()!==o.MODE_SOURCE&&!t.getReadOnly()||null)},l=t=>{let i=/<body.*<\/body>/im,n="{%%BODY%%}",o=i.exec(t);return o&&(t=t.replace(i,n).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(n,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(r){let i=t.element.tagName;if("TEXTAREA"!==i&&"INPUT"!==i)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>l(t.o.iframeDoctype+n.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:i})=>!t.isLocked&&(/<(html|body)/i.test(i)?l(n.documentElement.outerHTML)!==l(i)&&(n.open(),n.write(t.o.iframeDoctype+l(i)),n.close(),t.editor=n.body,t.e.fire("safeHTML",t.editor),a(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):n.body.innerHTML=i,!0),{top:!0})}if(t.editor=n.body,t.e.on("afterSetMode afterInit afterAddPlace",a),"auto"===i.height){n.documentElement&&(n.documentElement.style.overflowY="hidden");let o=t.async.throttle((...n)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===i.height){let i=t.ew.getComputedStyle(t.editor),n=parseInt(i.marginTop||"0",10)+parseInt(i.marginBottom||"0",10);(0,s.css)(t.iframe,"height",t.editor.offsetHeight+n)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",o).on([t.iframe,t.ew,n.documentElement],"load",o).on(n,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let i=new ResizeObserver(o);i.observe(n.body),t.e.on("beforeDestruct",()=>{i.disconnect()})}}return n.documentElement&&t.e.on(n.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===n.body&&t.s.setCursorIn(n.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",i=>{var n;null==(n=t.events)||n.fire(t.ow,i)}),!1})})})},85745:function(t,i,n){"use strict";n(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(580),a=n(21537),l=n(50911);n(85745);var c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let d="__jodit_imageprocessor_binded",u=d+"blob-id";class h extends l.Plugin{afterInit(t){}beforeDestruct(t){let i=(0,r.cached)(t,"buffer"),n=null==i?void 0:i.get(u);if(i&&n){for(let t of Object.keys(n))URL.revokeObjectURL(t);i.delete(u)}}onAfterGetValueFromEditor(t,i){if(i!==o.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){let{jodit:i}=this;if(!i.o.imageProcessor.replaceDataURIToBlobIdInView)return;let n=i.buffer.get(u);if(n)for(let i of Object.keys(n))for(;t.value.includes(i);)t.value=t.value.replace(i,n[i])}async afterChange(t){let{jodit:i}=this;i.editor&&(0,a.$$)("img",i.editor).forEach(t=>{(0,a.dataBind)(t,d)||((0,a.dataBind)(t,d,!0),t.complete||i.e.on(t,"load",function n(){var o;i.isInDestruct||null==(o=i.e)||o.fire("resize"),i.e.off(t,"load",n)}),t.src&&/^data:/.test(t.src)&&function(t,i){if(!t.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let n=i.src,o=function(t){let i=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(i.length),r=new Uint8Array(o);for(let t=0;t<i.length;t++)r[t]=i.charCodeAt(t);return new Blob([o],{type:n})}(n);i.src=URL.createObjectURL(o),t.e.fire("internalUpdate");let{buffer:r}=t,s=r.get(u)||{};s[i.src]=n,t.buffer.set(u,s)}(i,t),i.e.on(t,"mousedown touchstart",()=>{i.s.select(t)}))})}}c([(0,r.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),c([(0,r.watch)(":beforeSetElementValue")],h.prototype,"onBeforeSetElementValue",null),c([(0,r.watch)([":change",":afterInit",":changePlace"]),(0,r.debounce)()],h.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",h)},97536:function(t,i,n){"use strict";n(6441).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},3215:function(t,i,n){"use strict";var o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(20356),c=n(62843);n(97536);var d=n(59436),u=n(53636),h=n(10263),p=n(94575),f=n(34755),m=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class g extends l.Plugin{get form(){return new d.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.openImageEditorDialog)(this.j,this.state),openImagePopup:t=>(0,h.openImagePopup)(this.j,this.dialog,this.state,t)})}get dialog(){let{j:t}=this,i=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),n=this.__buttons;return n.check.onAction(()=>{(0,f.applyValuesToImage)(t,this.state,this.state.sourceImage),t.synchronizeValues(),i.close()}),n.remove.onAction(()=>{t.s.removeNode(this.state.sourceImage),i.close()}),n.cancel.onAction(()=>{i.close()}),i.setHeader(t.i18n("Image properties")),i.setContent(this.form),i.setFooter([[n.cancel,n.remove],n.check]),t.e.on(i,"afterClose",()=>{this.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(this.state.sourceImage)}),i.setSize(t.o.image.dialogWidth),(0,a.markOwner)(t,i.container),i}get __buttons(){let{j:t}=this;return{check:(0,c.Button)(t,"ok","Apply","primary"),remove:(0,c.Button)(t,"bin","Delete"),cancel:(0,c.Button)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((t,i)=>(0,p.readValuesFromImage)(this.j,this.state).then(t,i)).catch(t=>{(0,a.isAbortError)(t)||this.dialog.message.error(t.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(t=>t.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(t=>t.state.disabled=!1)}afterInit(t){let i=this;t.e.on("afterConstructor changePlace",()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",n=>{let o=n.target;if(r.Dom.isTag(o,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;i.state.sourceImage=o,i.state.image=o.cloneNode(!0),t.o.readonly||(n.stopImmediatePropagation(),n.preventDefault(),i.open())}else n.stopImmediatePropagation(),t.s.select(o)})}).on("openImageProperties.imageproperties",t=>{i.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:t,values:i}=this.state;if(t.src)try{this.__lock();try{await t.decode()}catch(t){}if(this.state.sizeIsLocked&&(0,a.isNumeric)(i.imageWidth)){let t=parseFloat(i.imageWidth.toString());i.imageHeight=Math.round(t/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",t)}catch(t){this.j.alert(t.message)}finally{this.__unlock()}}beforeDestruct(t){var i,n,r;Object.values(null!=(i=(0,o.cached)(this,"__buttons"))?i:{}).forEach(t=>t.destruct()),null==(n=(0,o.cached)(this,"dialog"))||n.destruct(),null==(r=(0,o.cached)(this,"form"))||r.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:t,naturalHeight:i}=this.image;return t/i||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}}m([o.cache],g.prototype,"form",null),m([o.cache],g.prototype,"dialog",null),m([o.cache],g.prototype,"__buttons",null),m([(0,o.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),s.pluginSystem.add("imageProperties",g)},51642:function(t,i,n){"use strict";n.d(i,{readAlign:function(){return r}});var o=n(41180);function r(t,i){t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?i.align=(0,o.css)(t,"float"):"block"===(0,o.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?i.align="center":i.align=""}},94575:function(t,i,n){"use strict";n.d(i,{readValuesFromImage:function(){return c}});var o=n(29960),r=n(51642),s=n(75595),a=n(47749),l=n(32566);async function c(t,i){let{sourceImage:n,values:c}=i;return(0,r.readAlign)(n,c),c.borderRadius=parseInt(n.style.borderRadius||"0",10)||0,c.id=(0,o.attr)(n,"id")||"",c.imageTitle=(0,o.attr)(n,"title")||"",c.imageAlt=(0,o.attr)(n,"alt")||"",c.style=(0,o.attr)(n,"style")||"",c.classes=((0,o.attr)(n,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,a.readMargins)(n,c,i),(0,s.readLink)(i,t,c),c.imageSrc=(0,o.attr)(n,"src")||"",(0,l.readSizes)(n,c,i)}},75595:function(t,i,n){"use strict";n.d(i,{readLink:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=o.Dom.closest(t.sourceImage,"a",i.editor);s?(n.imageLink=(0,r.attr)(s,"href")||"",n.imageLinkOpenInNewTab="_blank"===(0,r.attr)(s,"target")):(n.imageLink="",n.imageLinkOpenInNewTab=!1)}},47749:function(t,i,n){"use strict";n.d(i,{readMargins:function(){return r}});var o=n(12475);function r(t,i,n){let r=!0,s=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(n=>{let a=t.style.getPropertyValue((0,o.kebabCase)(n));if(!a){s=!0,i[n]=0;return}/^[0-9]+(px)?$/.test(a)&&(a=parseInt(a,10)),i[n]=a,(s&&i[n]||r&&"marginTop"!==n&&i[n]!==i.marginTop)&&(r=!1)}),n.marginIsLocked=r}},32566:function(t,i,n){"use strict";n.d(i,{readSizes:function(){return l}});var o=n(29807),r=n(29960),s=n(41180),a=n(14415);async function l(t,i,n){try{await t.decode()}catch(t){}let l=(0,s.css)(t,"width",!0)||(0,r.attr)(t,"width")||!1,c=(0,s.css)(t,"height",!0)||(0,r.attr)(t,"height")||!1;i.imageWidth=!1!==l?(0,a.normalSizeFromString)(l):t.offsetWidth||t.naturalWidth,(0,o.isNumeric)(i.imageWidth)?i.imageHeight=!1!==c?(0,a.normalSizeFromString)(c):t.offsetHeight||t.naturalHeight:i.imageHeight=c||"";let{imageWidth:d,imageHeight:u}=i,h=parseFloat(d.toString());if(!(0,o.isNumeric)(d)||!(0,o.isNumeric)(u)){n.sizeIsLocked=!1;return}if(!1===c){i.imageHeight=Math.round(h/n.ratio),n.sizeIsLocked=!0;return}n.sizeIsLocked=1>Math.abs(h-parseFloat(u.toString())*n.ratio)}},59436:function(t,i,n){"use strict";n.d(i,{UIImagePropertiesForm:function(){return p}});var o=n(65478),r=n(87325),s=n(21537),a=n(62405),l=n(12153),c=n(92762),d=n(35105),u=n(29827),h=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let p=class t extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(t){let i=super.getElm(t);if(i)return i;for(let i of this.elements){let n=i.getElm(t);if(n)return n}return null}render(){return`<form>
|
|
144
144
|
<div class="jodit-grid jodit-grid_xs-column">
|
|
145
145
|
<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
|
|
146
146
|
<div class="&__view-box">
|
|
@@ -423,7 +423,7 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
423
423
|
<div class='&__button'></div>
|
|
424
424
|
<div class='&__colors'></div>
|
|
425
425
|
</div>`}update(){this.button.update(),this.lockUpdate=!0,this.colors.forEach(t=>{t.value!==this.state[t.state.name]&&(t.value=this.state[t.state.name])}),this.lockUpdate=!1}constructor(t,i,n){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"updateState",void 0),(0,o._)(this,"button",void 0),(0,o._)(this,"lockUpdate",void 0),(0,o._)(this,"colors",void 0),this.state=i,this.updateState=n,this.button=new c.UIGButton(this.j,this.state),this.lockUpdate=!1,this.colors=["bgStart","bgEnd","fontColor","borderColor","boxShadowColor","textShadowColor","previewBgColor"].map(t=>new d.ColorInput(this.j,{name:t,onChange:i=>{this.lockUpdate||("bgEnd"===t&&i!==this.state.bgStart&&this.updateState("solid",!1),this.updateState(t,i))}}).setMod("slim",!0)),this.setMod("mode","default");const r=this.getElm("button");(0,a.assert)(null!=r,"button element does not exists"),r.appendChild(this.button.container);const s=this.getElm("colors");(0,a.assert)(null!=s,"colors element does not exists"),this.colors.forEach(t=>{s.appendChild(t.container)}),this.update()}}u=(0,r.__decorate)([s.component],u)},8390:function(t,i,n){"use strict";var o=n(82749);n(89683);var r=n(2748),s=n(36409),a=n(50911),l=n(2692);class c extends a.Plugin{afterInit(t){t.registerCommand("changeCase",{exec:(i,n,o)=>{o=o.toLowerCase();let s=t.s.range,{startContainer:a,startOffset:l}=s;if(t.s.isCollapsed()){let i=t.s.current(!0);i&&i.parentElement&&this.applyCase(o,i.parentElement),s.setStart(a,l),t.s.selectRange(s)}else{let i=s.cloneRange(),n=s.cloneRange(),a=t.createInside.fake(),l=t.createInside.fake();i.collapse(!0),n.collapse(!1),i.insertNode(a),n.insertNode(l),r.Dom.between(a,l,t=>{this.applyCase(o,t)}),s.setStartAfter(a),s.setEndBefore(l),t.s.selectRange(s),r.Dom.safeRemove(a),r.Dom.safeRemove(l)}}})}applyCase(t,i){if(r.Dom.isText(i)){let n=i.nodeValue;n&&(i.nodeValue=(i=>{switch(t){case"lowercase":return i.toLowerCase();case"uppercase":return i.toUpperCase();default:return i.split(" ").map(s.ucfirst).join(" ")}})(n))}else r.Dom.each(i,i=>{this.applyCase(t,i)})}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"changeCase",group:"font-style"}])}}(0,o._)(c,"requires",["license"]),l.JoditPro.plugins.add("change-case",c)},89683:function(t,i,n){"use strict";var o=n(91729),r=n.n(o),s=n(6441),a=n(86583);s.Config.prototype.controls.changeCase={tooltip:"Change case",icon:r(),list:["lowercase","UPPERCASE","Title Case"],isDisabled:t=>!t.s.current(),exec(t,i,{control:n}){let o=n.command+"Selected",r=n.args&&n.args[0]||(0,a.dataBind)(t,o);if(!r||!n.command)return!1;(0,a.dataBind)(t,o,r),t.execCommand(n.command,null,r)},command:"changeCase"}},29528:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(45128),a=n(65478),l=n(2748),c=n(50911),d=n(2692);class u extends c.Plugin{afterInit(t){t.e.on("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}onAfterGenerateColorPicker(t,i,n,o){l.Dom.detach(i);let r=new s.ColorInput(this.j,{value:o||"#000",onChange:n});i.appendChild(r.container)}beforeDestruct(t){t.e.off("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!d.JoditPro.fatMode)}}(0,o._)(u,"requires",["license"]),(0,r.__decorate)([a.autobind],u.prototype,"onAfterGenerateColorPicker",null),d.JoditPro.plugins.add("color-picker",u)},45128:function(t,i,n){"use strict";n.d(i,{ColorInput:function(){return p}});var o=n(82749),r=n(31635),s=n(46146),a=n(82758),l=n(65478),c=n(21537),d=n(38837),u=n(67510),h=n(41409);class p extends u.UIInput{className(){return"ColorInput"}afterSetMode(t,i){"slim"===t&&i&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){t.key===a.KEY_ESC&&this.popup?.close()}constructor(t,i){super(t,i),(0,o._)(this,"trigger",void 0),(0,o._)(this,"popup",void 0);const n=new u.Popup(t);this.popup=n,this.trigger=(0,u.Button)(this.j,"ok");const r=this.getElm("wrapper");(0,d.assert)(null!=r,"wrapper element does not exist"),r.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction(()=>{this.state.onChange?.(this.value),n.close()}),n.setMod("padding",!1).setMod("max-height",!1);const a=this.j.create.div(this.getFullElName("picker")),l=s.createPicker(a,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",(t,i)=>{this.isFocused||(this.value=s.parseColor(i||"","hex"))});this.j.e.on(this,"change",()=>{let t;t=this.value,s.parseColor(t,"hex")!==l.color&&(l.color=this.value)}),n.setContent(a),this.j.e.on(this.nativeInput,"click",()=>{n.parentElement=this,this.jodit instanceof h.Dialog&&n.setZIndex(this.jodit.getZIndex()+1),n.open(()=>(0,c.position)(this.container))}),this.onChangeValue(),this.onChangeSelfValue()}}(0,r.__decorate)([(0,l.watch)(":change")],p.prototype,"onChangeSelfValue",null),(0,r.__decorate)([(0,l.watch)("nativeInput:keydown")],p.prototype,"onEscKeyDown",null),p=(0,r.__decorate)([l.component],p)},3536:function(t,i,n){"use strict";var o=n(4941),r=n(41943),s=n(46995),a=n.n(s),l=n(6441);l.Config.prototype.emoji={data:()=>r,enableAutoComplete:!0,recentCountLimit:10},l.Config.prototype.controls.emoji={tooltip:"Insert Emoji",icon:a(),popup(t,i,n){t.s.save();let r=t.getInstance(o.Emoji);return t.e.off(r,"insert").on(r,"insert",i=>{t.s.restore(),t.s.insertNode(t.createInside.text(i),!0),n()}),t.e.one("beforePopupClose",()=>{t.s.restore()}),r.reset(),r.container}}},85174:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(3536);var s=n(4941),a=n(65478),l=n(49055),c=n(20356),d=n(2692);class u extends c.Plugin{async afterInit(t){let i=await t.o.emoji.data();t.isInDestruct||(this.data={...i,emoji:i.emoji.map(s.Emoji.normalizeEmoji)},t.o.emoji.enableAutoComplete&&t.e.fire("registerAutocompleteSource",this.onAutoComplete),t.async.requestIdleCallback(()=>{t.getInstance(s.Emoji)}))}onAutoComplete(t){return t.length>2&&":"===t[0]&&(t=t.substr(1).toLowerCase(),(0,l.trim)(t).length)?this.data.emoji.filter(i=>i.description?.indexOf(t)===0).sort((i,n)=>i.description.indexOf(t)-n.description.indexOf(t)).map(t=>({title:`${t.emoji} ${t.description}`,value:t.emoji})):[]}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!d.JoditPro.fatMode),(0,o._)(this,"buttons",[{name:"emoji",group:"insert"}]),(0,o._)(this,"data",void 0)}}(0,o._)(u,"requires",["autocomplete","license"]),(0,r.__decorate)([a.autobind],u.prototype,"onAutoComplete",null),d.JoditPro.plugins.add("emoji",u)},4941:function(t,i,n){"use strict";n.d(i,{Emoji:function(){return d}});var o=n(82749),r=n(31635),s=n(65478),a=n(2748),l=n(21537),c=n(67510);class d extends c.UIElement{className(){return"Emoji"}get defaultList(){return this.recent.concat(this.data?this.data.emoji:[])}reset(){this.input.nativeInput.value="",this.setItems(this.defaultList),this.setActiveCategory(0)}setItems(t){this.list.scrollTo(0,0),a.Dom.detach(this.list),a.Dom.append(this.list,this.generateEmojiList(t,this.data?.categories??[]))}createContainer(t){let i=this.j.c.div("jodit-emoji");this.input=new c.UIInput(this.j,{name:"search",icon:"search",autocomplete:!1,clearButton:!0,placeholder:"Search emoji"}),this.input.container.classList.add(this.getFullElName("input")),this.categories=this.j.c.div(this.getFullElName("categories")),this.list=this.j.c.div(this.getFullElName("emojis"));let n=this.j.c.div(this.getFullElName("navigate"));return a.Dom.append(n,[this.categories,this.input.container]),a.Dom.append(i,[n,this.list]),i}setActiveCategory(t,i=!1){let n=this.getElms("category"),o=n[this.activeIndex];n[t]||(t=n.length-1);let r=n[t],s=this.getFullElName("category","active",!0);if(o&&o.classList.remove(s),r&&r.classList.add(s),i){let i=this.getElms("category-title")[t];i&&(this.list.scrollTop=i.offsetTop-this.list.offsetTop)}this.activeIndex=t}generateCategoriesList(t){return t.map((i,n)=>this.j.c.div(this.getFullElName("category"),{"data-index":n,title:i,style:{width:100/t.length+"%"}}))}generateEmojiList(t,i){let n="";return t.reduce((t,o,r)=>{let s=-1===(o=d.normalizeEmoji(o)).category?"Recently":i[o.category];if(s!==n){n=s;let i=this.cache[n]??this.j.c.div(this.getFullElName("category-title"),n?this.j.i18n(n):"");this.cache[n]=i,t.push(i)}let a=this.cache[o.emoji+o.category]??this.j.c.div(this.getFullElName("emoji"),{"data-id":r,"data-value":o.emoji},o.emoji);return this.cache[o.emoji+o.category]=a,t.push(a),t},[])}static isShortCat(t){return t&&(0,l.isString)(t.e)}static normalizeEmoji(t){return d.isShortCat(t)?{emoji:t.e,description:t.d,category:t.c,aliases:t.a,tags:t.t}:t}onInsertCode(t){this.jodit.e.fire(this,"insert",t);let i=this.map[t];if(i){let n=[...this.recent],o=n.findIndex(i=>i.emoji===t);-1!==o&&n.splice(o,1),n.unshift({...i,category:-1}),this.recent=n}}onScrollList(){let t=this.list.scrollTop,i=this.getElms("category-title"),n=0;i.forEach((i,o)=>{t>i.offsetTop-this.list.offsetTop-20&&(n=o)}),this.setActiveCategory(n)}onClickCategory(t){this.clearFilter();let i=t.target;i.classList.contains(this.getFullElName("category"))&&this.setActiveCategory(parseInt((0,l.attr)(i,"-index")||"0",10)||0,!0)}onClickItem(t){let i=t.target;if(i.classList.contains(this.getFullElName("emoji"))){let t=(0,l.attr)(i,"-value")||"";t&&this.onInsertCode(t)}t.preventDefault()}onInputFilter(){let t=this.input.value.toLowerCase();if(!t.length)return this.setItems(this.defaultList);this.setItems(this.defaultList.filter(i=>{let n=d.normalizeEmoji(i);return n.description?.toLowerCase().includes(t)||n.tags?.join(" ").toLowerCase().includes(t)||n.aliases?.join(" ").toLowerCase().includes(t)}))}clearFilter(){this.input.nativeInput.value.length&&this.reset()}onReady(){this.j.e.on(this.input.nativeInput,"input",this.onInputFilter).on(this.categories,"click",this.onClickCategory).on(this.list,"scroll",this.onScrollList).on(this.list,"mousedown touchstart",this.onClickItem)}destruct(){return this.input.destruct(),super.destruct()}constructor(t){super(t),(0,o._)(this,"data",null),(0,o._)(this,"recent",[]),(0,o._)(this,"map",{}),(0,o._)(this,"activeIndex",0),(0,o._)(this,"cache",{}),this.setMod("loading",!0),(async()=>{this.data=await t.o.emoji.data(),this.setMod("loading",!1),this.data.emoji.forEach(t=>{let i=d.normalizeEmoji(t);this.map[i.emoji]=i}),this.setItems(this.defaultList),a.Dom.append(this.categories,this.generateCategoriesList(this.data.categories)),this.setActiveCategory(0)})()}}(0,r.__decorate)([s.persistent],d.prototype,"recent",void 0),(0,r.__decorate)([(0,s.throttle)()],d.prototype,"onScrollList",null),(0,r.__decorate)([s.autobind],d.prototype,"onClickCategory",null),(0,r.__decorate)([s.autobind],d.prototype,"onClickItem",null),(0,r.__decorate)([(0,s.debounce)()],d.prototype,"onInputFilter",null),(0,r.__decorate)([(0,s.hook)("ready")],d.prototype,"onReady",null),d=(0,r.__decorate)([s.component],d)},90832:function(t,i,n){"use strict";var o=n(53121),r=n.n(o),s=n(83556),a=n.n(s),l=n(4872),c=n.n(l),d=n(6441),u=n(2748);d.Config.prototype.exportDocs={css:"",pdf:{externalFonts:[],allow:!0,converter:null,options:{defaultFont:"courier",format:"A4",page_orientation:"portrait"}},docx:{allow:!0,filename:"document.docx",converter:null}},d.Config.prototype.controls.exportDocs={tooltip:"Export",isDisabled:t=>u.Dom.isEmptyContent(t.editor),icon:r(),list:{exportToPDF:"Export to PDF",exportToDOCX:"Export to DOCX"},childExec(t,i,{control:n}){let o=n.name??"exportToPDF";t.execCommand(o)}},d.Config.prototype.controls.exportToPDF={tooltip:"Export to PDF",isDisabled:t=>u.Dom.isEmptyContent(t.editor),icon:{name:c(),scale:1.3}},d.Config.prototype.controls.exportToDOCX={...d.Config.prototype.controls.exportToPDF,tooltip:"Export to DOCX",icon:{name:a(),scale:1.3}}},90882:function(t,i,n){"use strict";var o=n(82749);n(90832);var r=n(22732),s=n(68934),a=n(11628),l=n(50911),c=n(54079),d=n(14625),u=n(2692);class h extends l.Plugin{afterInit(t){t.registerCommand("exportToPDF",async()=>{let{converter:i}=(0,s.ConfigDeepFlatten)(t.o.exportDocs.pdf);i?await this.clientExport(t,i,"document.pdf"):await this.sendExportRequest(t,{action:"generatePdf",filename:"document.pdf",data:{options:(0,s.ConfigDeepFlatten)(t.o.exportDocs.pdf).options}})}),t.registerCommand("exportToDOCX",async()=>{let i=(0,s.ConfigDeepFlatten)(t.o.exportDocs.docx),n=i.filename||"document.docx";i.converter?await this.clientExport(t,i.converter,n):await this.sendExportRequest(t,{action:"generateDocx",filename:n})})}async clientExport(t,i,n){t.progressbar.show().progress(50),await this.downloadBlob(t,n,async()=>i(h.getValue(t)))}async sendExportRequest(t,i){let n=new c.Ajax({...t.o.exportDocs.ajax??t.o.filebrowser.ajax,method:"POST",responseType:"blob",onProgress(i){t.progressbar.show().progress(i)},data:{action:i.action,html:h.getValue(t),...i.data}});t.e.on("beforeDestruct",n.destruct),await this.downloadBlob(t,i.filename,async()=>(await n.send()).blob())}async downloadBlob(t,i,n){try{let t=await n(),o=this.j.create.a();o.href=URL.createObjectURL(t),o.download=i,o.click(),this.j.progressbar.showFileUploadAnimation(),r.Dom.safeRemove(o),URL.revokeObjectURL(o.href)}catch(i){i.message&&t.alert(i.message)}finally{t.progressbar.progress(100),await t.async.delay(200),t.progressbar.hide()}}static getValue(t){let[i]=(0,a.previewBox)(t),n=[];return t.o.exportDocs.pdf.externalFonts.forEach(t=>{/^</.test(t)?n.push(t):n.push(`<link rel="stylesheet" href="${t}">`)}),n.push(`<style>${(0,d.generateCriticalCSS)(t)}</style>`),n.push(`<style>${t.o.exportDocs.css}</style>`),n.push(i.innerHTML),n.join(`
|
|
426
|
-
`)}beforeDestruct(){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"exportDocs",group:"media"},{name:"exportToPDF",group:"media"},{name:"exportToDOCX",group:"media"}])}}(0,o._)(h,"requires",["license"]),u.JoditPro.plugins.add("exportDocs",h)},5422:function(t,i,n){"use strict";n.d(i,{FileBrowserPro:function(){return T}});var o=n(82749),r=n(31635);n(34042);var s=n(8087),a=n(77841),l=n(17578),c=n(97770),d=n(42663),u=n(55535),h=n(18250),p=n(69277),f=n(4278),m=n(95002),g=n(6441),b=n(82758),y=n(65478),w=n(21537),_=n(70231),C=n(41409),k=n(638),S=n(63399),x=n(50050),I=n(2692),E=n(21246);class T extends k.Dialog{className(){return"FileBrowserPro"}lock(t="any"){return this.container.classList.add("jodit_disabled"),super.lock(t)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(t,i=!(t instanceof Error)){(0,w.isAbortError)(t)||(b.IS_PROD||(0,w.isString)(t),this.message.message((0,w.isString)(t)?t:t.message,i?"success":"error",this.options.howLongShowMsg))}errorHandler(t){(0,w.isAbortError)(t)||this.status(t instanceof Error?this.i18n(t.message):this.dataProvider.getMessage(t),!1)}get progressbar(){return new m.UIProgress(this,this.stateManager.state)}addDisclaimer(t){this.dialog.appendChild(t)}async open(t=this.o.defaultCallback,i){return this.state.onlyImages=!!i,this.prepareOpening(t),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){(0,w.css)(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){let{currentPath:t,currentSource:i}=this.state;this.uploader.setPath(t),this.uploader.setSource(i)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(t){this.registerGlobalListeners(),t&&(this.state.onSelectCallBack=i=>{this.close(),t(i)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(t){let{activeElement:i}=this.od;if(!this.state.activeElements.length||!i||!C.Dom.isOrContains(this.panel.items.container,i))return;let n=this.state.elements;switch(t.key){case b.KEY_ENTER:return this.onChooseItems();case b.KEY_DELETE:return this.onFileRemove();case b.KEY_RIGHT:case b.KEY_LEFT:case b.KEY_DOWN:case b.KEY_UP:{let i,o=t.key===b.KEY_RIGHT||t.key===b.KEY_DOWN,r=this.state.lastSelectedIndex;if([b.KEY_RIGHT,b.KEY_LEFT].includes(t.key))i=o?n[r+1]?r+1:0:n[r-1]?r-1:n.length-1;else{let{countInRow:t}=this.panel;i=Math.round(((r+1)/t+(o?1:-1))*t-1)}return n[i]&&this.stateManager.addActive(n[i],t.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",t=>{t&&this.__itemsRemove(this.state.activeElements)}).bindDestruct(this)}__itemsRemove(t){if(!t.length)return Promise.resolve();let i=[];return t.forEach(t=>{i.push("folder"===t.type?this.__folderRemove((0,a.parentPath)(t.path),t.name??"",t.sourceName):this.__removeFile(t.file||t.name||"",t.sourceName))}),this.state.activeElements.forEach(t=>{this.stateManager.isFavorite(t)&&this.stateManager.toggleFavorite(t)}),this.state.activeElements=[],Promise.allSettled(i).then(()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()]))}__removeFile(t,i){return this.dataProvider.fileRemove(this.state.currentPath,t,i).then(i=>{this.status(i||this.i18n('File "%s" was deleted',t),!0)}).catch(this.status)}__folderRemove(t,i,n){return this.dataProvider.folderRemove(t,i,n).then(o=>{this.status(o||this.i18n('Folder "%s" was deleted',i),!0),this.state.currentPath===t&&(this.state.currentPath=(0,a.parentPath)(t),this.state.currentSource=n)}).catch(this.status)}onFileEdit(){if(1===this.state.activeElements.length){let[t]=this.state.activeElements;x.openImageEditor.call(this,t.fileURL,t.file||"",t.path,t.sourceName,void 0,this.status)}}onFolderRename(t){this.prompt("Enter new name","Rename",i=>{if(!(0,w.isValidName)(i)||i===t.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename((0,a.parentPath)(t.path),t.name,i,t.sourceName).then(n=>{this.state.activeElements=[],this.status(n,!0),this.state.currentPath=(0,a.parentPath)(t.path)+"/"+i,this.state.currentSource=t.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()}).catch(this.status)},this.i18n("type name"),t.name).bindDestruct(this)}onFolderRemove(t){this.confirm("Are you sure?","Delete",i=>{i&&this.__itemsRemove([{type:"folder",name:t.name,path:t.path,sourceName:t.sourceName}])}).bindDestruct(this)}onFolderCreate(t){this.prompt("Enter Directory name","Create directory",i=>{let n=t.path||"/";this.dataProvider.createFolder(i,t.path||"/",t.sourceName).then(()=>{this.state.currentSource===t.sourceName&&this.state.currentPath===n?this.e.fire("update.filebrowser"):(this.state.currentSource=t.sourceName,this.state.currentPath=n),this.historyManager.updateCurrent()},this.status)},this.i18n("type name")).bindDestruct(this)}onFileRename(t){let i=t.file||t.name||"";1===this.state.activeElements.length&&i&&this.prompt("Enter new name","Rename",t=>{if(!(0,w.isValidName)(t))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,i,t,this.state.currentSource).then(t=>{this.state.activeElements=[],this.status(t,!0),this.loadingManager.loadItems()}).catch(this.status)},this.i18n("type name"),i).bindDestruct(this)}onChooseItems(){let t=this.stateManager.state.activeElements;if(t.length){if("folder"===t[0].type){this.state.currentPath=this.state.currentPath+"/"+t[0].name,this.state.currentSource=t[0].sourceName,this.e.fire("afterOpenFolder.filebrowser");return}this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(t[0])}}onOpenLightBox(t){p.UILightBox.open(this,t,this.state.elements)}initUploader(){let t=this,i=(0,w.ConfigProto)(t.o.uploader||{},g.Config.defaultOptions.uploader),n=()=>this.loadingManager.loadItems();t.uploader=t.getInstance("Uploader",i),t.uploader.bind(t.panel.container,n,t.errorHandler),t.e.on("bindUploader.filebrowser",i=>{t.uploader.bind(i,n,t.errorHandler)})}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,w.ConfigProto)(this.options[t],this.o.ajax))})}constructor(t){super((0,w.ConfigProto)(Object.assign(t||{},{resizable:!0,draggable:!0,toolbarButtons:t?.toolbarButtons||g.Config.defaultOptions.filebrowser.buttons,buttons:I.JoditPro.atom(["filebrowser.settings","fullsize","dialog.close"])}),g.Config.defaultOptions.filebrowser)),(0,o._)(this,"dataProvider",(0,S.makeDataProvider)(this,this.options)),(0,o._)(this,"state",(0,C.observable)({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1})),(0,o._)(this,"persistent",new d.PersistentStore(this,this.state)),(0,o._)(this,"loadingManager",new c.LoadingManager(this,this.state)),(0,o._)(this,"stateManager",new u.StateManager(this.state)),(0,o._)(this,"historyManager",new l.HistoryManager(this,this.state)),(0,o._)(this,"contextMenuManager",new s.ContextMenuManager(this)),(0,o._)(this,"header",new h.UIBrowserHeader(this,this.options,this.stateManager)),(0,o._)(this,"panel",new f.UIBrowserPanel(this,this.stateManager)),(0,o._)(this,"files",this.panel),(0,o._)(this,"tree",this.panel),(0,o._)(this,"uploader",void 0),E.license.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(t=>{0===t&&(t=30),this.state.progress=t}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),I.JoditPro.prototype.afterInitHook.call(this)}}(0,r.__decorate)([y.autobind],T.prototype,"status",null),(0,r.__decorate)([y.autobind],T.prototype,"errorHandler",null),(0,r.__decorate)([y.cache],T.prototype,"progressbar",null),(0,r.__decorate)([(0,y.watch)(":resize",{context:window})],T.prototype,"onResizeWindow",null),(0,r.__decorate)([(0,y.watch)(["state.currentPath","state.currentSource"])],T.prototype,"onChangePath",null),(0,r.__decorate)([(0,y.watch)("state.theme")],T.prototype,"onChangeTheme",null),(0,r.__decorate)([(0,y.watch)(":toggleSettings.filebrowser")],T.prototype,"onToggleSettings",null),(0,r.__decorate)([y.autobind],T.prototype,"onKeyPress",null),(0,r.__decorate)([y.autobind],T.prototype,"removeGlobalListeners",null),(0,r.__decorate)([(0,y.watch)(":fileRemove.filebrowser")],T.prototype,"onFileRemove",null),(0,r.__decorate)([(0,y.watch)(":edit.filebrowser")],T.prototype,"onFileEdit",null),(0,r.__decorate)([(0,y.watch)(":folderRename.filebrowser")],T.prototype,"onFolderRename",null),(0,r.__decorate)([(0,y.watch)(":folderRemove.filebrowser")],T.prototype,"onFolderRemove",null),(0,r.__decorate)([(0,y.watch)(":folderCreate.filebrowser")],T.prototype,"onFolderCreate",null),(0,r.__decorate)([(0,y.watch)(":fileRename.filebrowser")],T.prototype,"onFileRename",null),(0,r.__decorate)([(0,y.watch)(":select.filebrowser")],T.prototype,"onChooseItems",null),(0,r.__decorate)([(0,y.watch)(":openLightBox.filebrowser")],T.prototype,"onOpenLightBox",null),T=(0,r.__decorate)([y.component,(0,y.derive)(_.Dlgs)],T),Object.defineProperty(I.JoditPro.modules,"FileBrowserPro",{value:T,writable:!1,enumerable:!0,configurable:!0})},77894:function(t,i,n){"use strict";var o=n(76636),r=n(6441),s=n(580);let a=r.Config.prototype.controls.filebrowser;a.settings={icon:"settings",tooltip:"Settings",exec(t){(t.parent??t).e.fire("toggleSettings.filebrowser")}},a.home={icon:"home",tooltip:"Home",exec(t){t.e.fire("goHome.filebrowser")}},a.preview={icon:"eye",tooltip:"Preview",isDisabled:t=>0===t.state.activeElements.length,exec(t){t.e.fire("togglePreview.filebrowser")}},a.next={icon:"angle-right",tooltip:"History next",isDisabled:t=>!t.historyManager.canNext(),exec(t){t.historyManager.next()}},a.previous={icon:"angle-left",tooltip:"History previous",isDisabled:t=>!t.historyManager.canPrevious(),exec(t){t.historyManager.previous()}},a["new-folder"]={icon:"new-folder",exec(t){t.e.fire("folderCreate.filebrowser",{path:t.state.currentPath,sourceName:t.state.currentSource})},tooltip:"New folder"},Object.assign(r.Config.prototype.filebrowser,{buttons:["filebrowser.home","filebrowser.previous","filebrowser.next","|","filebrowser.upload","filebrowser.new-folder","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.preview","about"],sort:!1,pixelOffsetLoadNewChunk:300,width:800,height:400,previewOfficeURL:"https://view.officeapps.live.com/op/view.aspx?src="}),(0,s.extendLang)(o)},97068:function(t,i,n){"use strict";var o=n(82749);n(77894);var r=n(5422),s=n(50911),a=n(2692);class l extends s.Plugin{afterInit(t){t.e.on("getInstanceFileBrowser",t=>(this.__instance||(this.__instance=new r.FileBrowserPro(t)),this.__instance))}beforeDestruct(t){t.e.off("getInstanceFileBrowser"),this.__instance?.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!a.JoditPro.fatMode),(0,o._)(this,"__instance",void 0)}}(0,o._)(l,"requires",["license"]),a.JoditPro.plugins.add("finder",l)},8087:function(t,i,n){"use strict";n.d(i,{ContextMenuManager:function(){return l}});var o=n(31635),r=n(80480),s=n(65478),a=n(63399);class l extends r.ViewComponent{className(){return"ContextMenuManager"}onFolderContext(t,i){return this.buildContextItemMenu(this.getFolderContextActions(t),i),!1}onItemContext(t,i,n){return this.buildContextItemMenu(this.getItemContextActions(t),n),!1}onSourceContext(t,i){return this.buildContextItemMenu(this.getSourceContextActions(t),i),!1}buildContextItemMenu(t,i){if(!this.j.o.contextMenu)return;let n=(0,a.makeContextMenu)(this.j).setMod("theme",this.j.state.theme);n.show(i.clientX,i.clientY,t.filter(t=>t&&!1!==t.enabled)),this.j.e.on(this.j,"afterClose",()=>{n.isOpened&&n.close()})}getItemContextActions(t){if(this.j.stateManager.isActive(t)||this.j.stateManager.addActive(t,this.j.state.activeElements.length>1),"folder"===t.type)return this.getFolderContextActions({type:"directory",children:[],name:t.name||"",path:t.path,sourceName:t.sourceName});let i=this.j.options,n=this.j.dataProvider,o=1===this.j.state.activeElements.length;return[{icon:"pencil",title:"Edit",enabled:!!t.isImage&&i.editImage&&o&&(n.canI("ImageResize")||n.canI("ImageCrop")),exec:()=>{this.j.e.fire("edit.filebrowser")}},{icon:"italic",title:"Rename",enabled:n.canI("FileRename")&&o,exec:()=>this.j.e.fire("fileRename.filebrowser",t)},{icon:"bin",title:"Delete",enabled:n.canI("FileRemove"),exec:()=>this.j.e.fire("fileRemove.filebrowser",t)},{icon:"eye",title:"Preview",enabled:!!(t.isImage||"file"===t.type)&&i.preview&&o,exec:()=>this.j.e.fire("openLightBox.filebrowser",t)},{icon:"upload",title:"Download",exec:()=>{t.fileURL&&this.j.ow.open(t.fileURL)}}]}getFolderContextActions(t){let i=this.j.dataProvider;return[{icon:"pencil",title:"Rename",exec:()=>{this.j.e.fire("folderRename.filebrowser",t)},enabled:i.canI("FolderRename")},{icon:"bin",title:"Delete",exec:()=>{this.j.e.fire("folderRemove.filebrowser",t)},enabled:i.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)},enabled:i.canI("FolderCreate")}]}getSourceContextActions(t){return[{icon:"plus",title:"Create folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)}}]}}(0,o.__decorate)([(0,s.watch)(":contextmenuFolder.filebrowser")],l.prototype,"onFolderContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuItem.filebrowser")],l.prototype,"onItemContext",null),(0,o.__decorate)([(0,s.watch)(":contextmenuSource.filebrowser")],l.prototype,"onSourceContext",null),l=(0,o.__decorate)([s.component],l)},77841:function(t,i,n){"use strict";n.d(i,{parentPath:function(){return o}});let o=t=>{let i=t.split("/").filter(t=>t.length);return i.pop(),i.join("/")||"/"}},17578:function(t,i,n){"use strict";n.d(i,{HistoryManager:function(){return c}});var o=n(82749),r=n(31635),s=n(80480),a=n(65478),l=n(97735);class c extends s.ViewComponent{className(){return"HistoryManager"}canNext(){return this.historyIndex<this.history.length-1}canPrevious(){return this.historyIndex>0}push(t){let{historyIndex:i}=this,n=this.history[i];if(n&&n.currentSource===t.currentSource&&n.currentPath===t.currentPath)return;let o=[...this.history];o.length-1!==i&&(o=o.slice(0,i+1)),o.push(t),n&&(i+=1),this.history=o,this.historyIndex=i}next(){this.canNext()&&(this.historyIndex+=1,this.updateState())}previous(){this.canPrevious()&&(this.historyIndex-=1,this.updateState())}updateCurrent(){this.history[this.historyIndex]={currentSource:this.state.currentSource,currentPath:this.state.currentPath,tree:(0,l.fastClone)(this.state.tree),elements:[...this.state.elements]}}onHome(){this.state.currentPath="",this.state.currentSource="",this.j.e.fire("afterOpenFolder.filebrowser update.filebrowser")}onOpenFolder(){this.push({tree:[],elements:[],currentPath:this.state.currentPath,currentSource:this.state.currentSource}),this.j.e.fire("changeSelection")}updateState(){let{tree:t,elements:i,currentSource:n,currentPath:o}=this.history[this.historyIndex];this.state.activeElements=[],this.state.elements=[...i],this.state.tree=[...t],this.state.currentSource=n,this.state.currentPath=o,this.j.e.fire("changeSelection")}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"history",void 0),(0,o._)(this,"historyIndex",void 0),this.state=i,this.history=[],this.historyIndex=0}}(0,r.__decorate)([(0,a.watch)(["state.elements","state.tree"])],c.prototype,"updateCurrent",null),(0,r.__decorate)([(0,a.watch)(":goHome.filebrowser")],c.prototype,"onHome",null),(0,r.__decorate)([(0,a.watch)(":afterOpenFolder.filebrowser")],c.prototype,"onOpenFolder",null),c=(0,r.__decorate)([a.component],c)},97770:function(t,i,n){"use strict";n.d(i,{LoadingManager:function(){return l}});var o=n(82749),r=n(31635),s=n(91907),a=n(65478);class l extends s.ViewComponent{className(){return"LoadingManager"}async onUpdateFileBrowser(){this.state.activeElements=[],this.j.panel.setMod("loading",!0),await Promise.all([this.loadFolders(),this.loadItems()]),this.j.panel.setMod("loading",!1)}async loadFolders(){if(!this.j.isOpened)return;let{currentPath:t,currentSource:i,onlyImages:n}=this.state;try{let o=this.j.dataProvider;o.o?.folder&&(o.o.folder.data.onlyImages=n);let r=await o.tree(t,i);this.j.stateManager.fillTreeForPath(r,t),this.state.sources=r}catch(t){this.j.status(t)}}async loadItems(){if(this.j.isOpened)try{this.__tick+=1;let{__tick:t}=this;this.offset=0,this.stopLoadingParts=!1,this.__callQueueCount=0;let{items:i,loadedTotal:n}=await c(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.state.elements=i,this.stopLoadingParts=n<this.countInOneChunk,await this.loadItemsChunk(t),await this.async.requestIdlePromise(),this.__tick!==t)return;for(;!this.stopLoadingParts&&this.j.panel.countInColumn*this.j.panel.countInRow>=this.state.elements.length;)if(await this.loadItemsChunk(t),this.__tick!==t)return}catch(t){this.j.status(t)}}async __loadItemsChunk(t){if(this.__isLoadingPart){this.__callQueueCount+=1;return}if(this.stopLoadingParts){this.__callQueueCount=0;return}this.__isLoadingPart=!0,this.j.panel.items.setMod("chunk-loading",!0);try{this.offset+=this.countInOneChunk;let{items:i,loadedTotal:n}=await c(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.__tick!==t)return;this.stopLoadingParts=n<this.countInOneChunk,i.length&&(this.state.elements=this.state.elements.concat(i))}catch(t){this.j.status(t)}if(this.j.panel.items.setMod("chunk-loading",!1),this.__isLoadingPart=!1,this.__callQueueCount>0)return this.__callQueueCount-=1,this.__loadItemsChunk(t)}loadItemsChunk(t=this.__tick){return t!==this.__tick?Promise.resolve():this.__loadItemsChunk(t)}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"__tick",void 0),(0,o._)(this,"offset",void 0),(0,o._)(this,"countInOneChunk",void 0),(0,o._)(this,"stopLoadingParts",void 0),(0,o._)(this,"__isLoadingPart",void 0),(0,o._)(this,"__callQueueCount",void 0),this.state=i,this.__tick=0,this.offset=0,this.countInOneChunk=20,this.stopLoadingParts=!1,this.__isLoadingPart=!1,this.__callQueueCount=0}}function c(t,i,n,o){let{currentPath:r,currentSource:s,sortBy:a,withFolders:l,foldersPosition:c,onlyImages:d,filterWord:u}=t;return i.itemsEx(r,s,{offset:n,limit:o,sortBy:a,withFolders:l,foldersPosition:c,onlyImages:d,filterWord:u})}(0,r.__decorate)([(0,a.watch)(":update.filebrowser")],l.prototype,"onUpdateFileBrowser",null),(0,r.__decorate)([(0,a.watch)(["state.currentPath","state.currentSource","state.onlyImages"]),(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadFolders",null),(0,r.__decorate)([(0,a.watch)(["state.currentPath","state.currentSource","state.sortBy","state.onlyImages","state.foldersPosition","state.filterWord"]),(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadItems",null),(0,r.__decorate)([(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadItemsChunk",null),l=(0,r.__decorate)([a.component],l)},42663:function(t,i,n){"use strict";n.d(i,{PersistentStore:function(){return c}});var o=n(82749),r=n(31635),s=n(91907),a=n(65478),l=n(159);class c extends s.ViewComponent{className(){return"PersistentStore"}onChangeThemeSetField(){this.theme=this.state.theme}onChangeView(){this.view=this.state.view}onChangeSortBy(){this.sortBy=this.state.sortBy}onChangeTileSize(){this.tileSize=this.state.tileSize}onChangeFavorites(){this.favorites=this.state.favorites}onChangeShowSideBar(){this.showSideBar=this.state.showSideBar}onChangeShowPreview(){this.showPreview=this.state.showPreview}onChangeShowFavorites(){this.showFavorites=this.state.showFavorites}onChangeFoldersPosition(){this.foldersPosition=this.state.foldersPosition}syncWithState(){this.state.tileSize=this.tileSize,this.state.favorites=this.favorites.map(t=>t instanceof l.FileBrowserItem?t:l.FileBrowserItem.create(t)),this.state.view=this.view,this.state.theme=this.theme,this.state.showSideBar=this.showSideBar,this.state.showPreview=this.showPreview,this.state.showFavorites=this.showFavorites,this.state.sortBy=this.sortBy,this.state.foldersPosition=this.foldersPosition}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"theme",void 0),(0,o._)(this,"sortBy",void 0),(0,o._)(this,"view",void 0),(0,o._)(this,"foldersPosition",void 0),(0,o._)(this,"tileSize",void 0),(0,o._)(this,"favorites",void 0),(0,o._)(this,"showSideBar",void 0),(0,o._)(this,"showPreview",void 0),(0,o._)(this,"showFavorites",void 0),this.state=i,this.sortBy="changed-desc",this.view="tiles",this.foldersPosition="top",this.tileSize="default",this.favorites=[],this.showSideBar=!0,this.showPreview=!1,this.showFavorites=!0}}(0,r.__decorate)([a.persistent],c.prototype,"theme",void 0),(0,r.__decorate)([a.persistent],c.prototype,"sortBy",void 0),(0,r.__decorate)([a.persistent],c.prototype,"view",void 0),(0,r.__decorate)([a.persistent],c.prototype,"foldersPosition",void 0),(0,r.__decorate)([a.persistent],c.prototype,"tileSize",void 0),(0,r.__decorate)([a.persistent],c.prototype,"favorites",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showSideBar",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showPreview",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showFavorites",void 0),(0,r.__decorate)([(0,a.watch)("state.theme")],c.prototype,"onChangeThemeSetField",null),(0,r.__decorate)([(0,a.watch)("state.view")],c.prototype,"onChangeView",null),(0,r.__decorate)([(0,a.watch)("state.sortBy")],c.prototype,"onChangeSortBy",null),(0,r.__decorate)([(0,a.watch)("state.tileSize")],c.prototype,"onChangeTileSize",null),(0,r.__decorate)([(0,a.watch)("state.favorites")],c.prototype,"onChangeFavorites",null),(0,r.__decorate)([(0,a.watch)("state.showSideBar")],c.prototype,"onChangeShowSideBar",null),(0,r.__decorate)([(0,a.watch)("state.showPreview")],c.prototype,"onChangeShowPreview",null),(0,r.__decorate)([(0,a.watch)("state.showFavorites")],c.prototype,"onChangeShowFavorites",null),(0,r.__decorate)([(0,a.watch)("state.foldersPosition")],c.prototype,"onChangeFoldersPosition",null),c=(0,r.__decorate)([a.component],c)},55535:function(t,i,n){"use strict";n.d(i,{StateManager:function(){return a}});var o=n(82749),r=n(31635),s=n(65478);class a{getIndex(t,i=this.state.elements){return i.findIndex(i=>i.uniqueHashKey===t.uniqueHashKey)}isActive(t){return!!this.state.activeElements.find(i=>i.uniqueHashKey===t.uniqueHashKey)}isFavorite(t){return!!this.state.favorites.find(i=>i.uniqueHashKey===t.uniqueHashKey)}addActive(t,i){this.state.metaInfo=t,this.state.info=t.file??"",this.state.lastSelectedIndex=this.getIndex(t),this.state.activeElements=i?[...this.state.activeElements,t]:[t]}callSelectHandler(){let t=this.state.activeElements;this.state.onSelectCallBack?.call(this,{baseurl:"",files:t.map(t=>t.fileURL),isImages:t.map(t=>!!t.isImage)})}setFilter(t){this.state.filterWord=t}toggleFavorite(t){let i=this.getIndex(t,this.state.favorites),n=[...this.state.favorites];-1===i?n.push(t):n.splice(i,1),this.state.favorites=n}fillTreeForPath(t,i){if(!this.state.tree.length||!i||"/"===i){this.state.tree=t.map(d);return}this.removeActive(this.state.tree),t.forEach(t=>{var n;let o=l(this.state.tree,t.name);o||(o=d(t),this.state.tree.push(o)),o.isActive=!0;let r=(n=o,i.split("/").reduce((t,i)=>t&&l(t.children,i),n));r&&(r.isActive=!0,r.children=c(t.folders).map(n=>u(n,i+"/"+n,t.name)))}),this.state.tree=[...this.state.tree]}removeActive(t){t.forEach(t=>{t.isActive=!1,this.removeActive(t.children)})}get isFavoriteItems(){return this.state.favorites===this.state.elements}constructor(t){(0,o._)(this,"state",void 0),this.state=t}}function l(t,i){return t.find(t=>t.name===i)??null}function c(t){return t.filter(t=>"."!==t&&".."!==t)}function d(t){return{type:"source",name:t.name,title:t.title,sourceName:t.name,path:"/",children:c(t.folders).map(i=>u(i,i,t.name))}}function u(t,i,n){return{type:"directory",name:t,path:i,sourceName:n,children:[]}}(0,r.__decorate)([s.autobind],a.prototype,"getIndex",null),(0,r.__decorate)([s.autobind],a.prototype,"isActive",null),(0,r.__decorate)([s.autobind],a.prototype,"isFavorite",null)},76636:function(t,i,n){"use strict";n.r(i),n.d(i,{de:function(){return r.a},ru:function(){return r.a}});var o=n(41324),r=n.n(o)},34042:function(t,i,n){"use strict";var o=n(7307),r=n(24928),s=n(96910),a=n(67510);a.Icon.set("heart",o+""),a.Icon.set("home",r+""),a.Icon.set("new-folder",s+"")},43692:function(t,i,n){"use strict";n.d(i,{UIBrowserFolder:function(){return c}});var o=n(82749),r=n(31635),s=n(87325),a=n(38837),l=n(67510);class c extends l.UIElement{className(){return"UIBrowserFolder"}render(){return`<div>
|
|
426
|
+
`)}beforeDestruct(){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"exportDocs",group:"media"},{name:"exportToPDF",group:"media"},{name:"exportToDOCX",group:"media"}])}}(0,o._)(h,"requires",["license"]),u.JoditPro.plugins.add("exportDocs",h)},5422:function(t,i,n){"use strict";n.d(i,{FileBrowserPro:function(){return j}});var o=n(82749),r=n(31635);n(34042);var s=n(8087),a=n(34698),l=n(77841),c=n(17578),d=n(97770),u=n(42663),h=n(55535),p=n(18250),f=n(69277),m=n(4278),g=n(95002),b=n(6441),y=n(82758),w=n(65478),_=n(21537),C=n(70231),k=n(41409),S=n(638),x=n(11787),I=n(50050),E=n(2692),T=n(21246);class j extends S.Dialog{className(){return"FileBrowserPro"}lock(t="any"){return this.container.classList.add("jodit_disabled"),super.lock(t)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(t,i=!(t instanceof Error)){(0,_.isAbortError)(t)||(y.IS_PROD||(0,_.isString)(t),this.message.message((0,_.isString)(t)?t:t.message,i?"success":"error",this.options.howLongShowMsg))}errorHandler(t){(0,_.isAbortError)(t)||this.status(t instanceof Error?this.i18n(t.message):this.dataProvider.getMessage(t),!1)}get progressbar(){return new g.UIProgress(this,this.stateManager.state)}addDisclaimer(t){this.dialog.appendChild(t)}getMessageModule(){return super.getMessageModule(this.dialog)}async open(t=this.o.defaultCallback,i){return this.state.onlyImages=!!i,this.prepareOpening(t),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){(0,_.css)(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){let{currentPath:t,currentSource:i}=this.state;this.uploader.setPath(t),this.uploader.setSource(i)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(t){this.registerGlobalListeners(),t&&(this.state.onSelectCallBack=i=>{this.close(),t(i)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(t){let{activeElement:i}=this.od;if(!this.state.activeElements.length||!i||!k.Dom.isOrContains(this.panel.items.container,i))return;let n=this.state.elements;switch(t.key){case y.KEY_ENTER:return this.onChooseItems();case y.KEY_DELETE:return this.onFileRemove();case y.KEY_RIGHT:case y.KEY_LEFT:case y.KEY_DOWN:case y.KEY_UP:{let i,o=t.key===y.KEY_RIGHT||t.key===y.KEY_DOWN,r=this.state.lastSelectedIndex;if([y.KEY_RIGHT,y.KEY_LEFT].includes(t.key))i=o?n[r+1]?r+1:0:n[r-1]?r-1:n.length-1;else{let{countInRow:t}=this.panel;i=Math.round(((r+1)/t+(o?1:-1))*t-1)}return n[i]&&this.stateManager.addActive(n[i],t.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onCut(t){this.__fillClipboard("cut",t)}onCopy(t){this.__fillClipboard("copy",t)}__fillClipboard(t,i){this.state.clipboard=i?[{mode:t,type:"folder",from:(0,l.folderFullPath)(i),name:i.name,sourceName:i.sourceName}]:this.state.activeElements.filter(t=>t.file||t.name).map(i=>({mode:t,type:"folder"===i.type?"folder":"file",from:(0,l.normalizeItemPath)(i.path+(i.file||i.name||"")),name:i.file||i.name||"",sourceName:i.sourceName}))}getPasteTarget(){let{currentPath:t,currentSource:i,sources:n}=this.state;return{path:t||"/",sourceName:i||n[0]?.name||x.DEFAULT_SOURCE_NAME}}canPaste(t){let i=this.state.clipboard;if(!i.length||i.some(i=>i.sourceName!==t.sourceName))return!1;let n=this.dataProvider;if(!i.every(t=>"copy"===t.mode?n.canCopy("file"===t.type):n.canI("file"===t.type?"FileMove":"FolderMove")))return!1;let o=(0,l.normalizeItemPath)(t.path);return!i.some(t=>"folder"===t.type&&(o===t.from||o.startsWith(t.from+"/")))}onPaste(t){if(!this.canPaste(t))return;let i=this.state.clipboard;i.some(t=>"cut"===t.mode)&&(this.state.clipboard=[]);let n=(0,l.normalizeItemPath)(t.path),o=async()=>{let o=0;for(let r of i){let i="file"===r.type;if("cut"===r.mode){if((0,l.parentPath)(r.from)===n)continue;await this.dataProvider.move(r.from,n,t.sourceName,i)}else await this.dataProvider.copy(r.from,n,t.sourceName,i);o+=1}return o},r=i.every(t=>"copy"===t.mode);o().then(t=>{t>0&&this.status(this.i18n(r?"%s item(s) were copied":"%s item(s) were moved",t+""),!0)}).catch(this.status).finally(()=>(this.state.activeElements=[],Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()])))}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",t=>{t&&this.__itemsRemove(this.state.activeElements)}).bindDestruct(this)}__itemsRemove(t){if(!t.length)return Promise.resolve();let i=[];return t.forEach(t=>{i.push("folder"===t.type?this.__folderRemove((0,l.parentPath)(t.path),t.name??"",t.sourceName):this.__removeFile(t.file||t.name||"",t.sourceName))}),this.state.activeElements.forEach(t=>{this.stateManager.isFavorite(t)&&this.stateManager.toggleFavorite(t)}),this.state.activeElements=[],Promise.allSettled(i).then(()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()]))}__removeFile(t,i){return this.dataProvider.fileRemove(this.state.currentPath,t,i).then(i=>{this.status(i||this.i18n('File "%s" was deleted',t),!0)}).catch(this.status)}__folderRemove(t,i,n){return this.dataProvider.folderRemove(t,i,n).then(o=>{this.status(o||this.i18n('Folder "%s" was deleted',i),!0),this.state.currentPath===t&&(this.state.currentPath=(0,l.parentPath)(t),this.state.currentSource=n)}).catch(this.status)}onFileEdit(){if(1===this.state.activeElements.length){let[t]=this.state.activeElements;I.openImageEditor.call(this,t.fileURL,t.file||"",t.path,t.sourceName,void 0,this.status)}}onFolderRename(t){this.prompt("Enter new name","Rename",i=>{if(!(0,_.isValidName)(i)||i===t.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename((0,l.parentPath)(t.path),t.name,i,t.sourceName).then(n=>{this.state.activeElements=[],this.status(n,!0),this.state.currentPath=(0,l.parentPath)(t.path)+"/"+i,this.state.currentSource=t.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()}).catch(this.status)},this.i18n("type name"),t.name).bindDestruct(this)}onFolderRemove(t){this.confirm("Are you sure?","Delete",i=>{i&&this.__itemsRemove([{type:"folder",name:t.name,path:t.path,sourceName:t.sourceName}])}).bindDestruct(this)}onFolderCreate(t){this.prompt("Enter Directory name","Create directory",i=>{let n=t.path||"/";this.dataProvider.createFolder(i,t.path||"/",t.sourceName).then(()=>{this.state.currentSource===t.sourceName&&this.state.currentPath===n?this.e.fire("update.filebrowser"):(this.state.currentSource=t.sourceName,this.state.currentPath=n),this.historyManager.updateCurrent()},this.status)},this.i18n("type name")).bindDestruct(this)}onFileRename(t){let i=t.file||t.name||"";1===this.state.activeElements.length&&i&&this.prompt("Enter new name","Rename",t=>{if(!(0,_.isValidName)(t))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,i,t,this.state.currentSource).then(t=>{this.state.activeElements=[],this.status(t,!0),this.loadingManager.loadItems()}).catch(this.status)},this.i18n("type name"),i).bindDestruct(this)}onChooseItems(){let t=this.stateManager.state.activeElements;if(t.length){if("folder"===t[0].type){this.state.currentPath=this.state.currentPath+"/"+t[0].name,this.state.currentSource=t[0].sourceName,this.e.fire("afterOpenFolder.filebrowser");return}this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(t[0])}}onOpenLightBox(t){f.UILightBox.open(this,t,this.state.elements)}initUploader(){let t=this,i=(0,_.ConfigProto)(t.o.uploader||{},b.Config.defaultOptions.uploader),n=()=>this.loadingManager.loadItems();t.uploader=t.getInstance("Uploader",i),t.uploader.bind(t.panel.container,n,t.errorHandler),t.e.on("bindUploader.filebrowser",i=>{t.uploader.bind(i,n,t.errorHandler)})}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileCopy","folderCopy","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,_.ConfigProto)(this.options[t],this.o.ajax))})}constructor(t){super((0,_.ConfigProto)(Object.assign(t||{},{resizable:!0,draggable:!0,toolbarButtons:t?.toolbarButtons||b.Config.defaultOptions.filebrowser.buttons,buttons:E.JoditPro.atom(["filebrowser.settings","fullsize","dialog.close"])}),b.Config.defaultOptions.filebrowser)),(0,o._)(this,"dataProvider",new a.DataProviderPro(this,this.options)),(0,o._)(this,"state",(0,k.observable)({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],clipboard:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1})),(0,o._)(this,"persistent",new u.PersistentStore(this,this.state)),(0,o._)(this,"loadingManager",new d.LoadingManager(this,this.state)),(0,o._)(this,"stateManager",new h.StateManager(this.state)),(0,o._)(this,"historyManager",new c.HistoryManager(this,this.state)),(0,o._)(this,"contextMenuManager",new s.ContextMenuManager(this)),(0,o._)(this,"header",new p.UIBrowserHeader(this,this.options,this.stateManager)),(0,o._)(this,"panel",new m.UIBrowserPanel(this,this.stateManager)),(0,o._)(this,"files",this.panel),(0,o._)(this,"tree",this.panel),(0,o._)(this,"uploader",void 0),T.license.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(t=>{0===t&&(t=30),this.state.progress=t}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),E.JoditPro.prototype.afterInitHook.call(this)}}(0,r.__decorate)([w.autobind],j.prototype,"status",null),(0,r.__decorate)([w.autobind],j.prototype,"errorHandler",null),(0,r.__decorate)([w.cache],j.prototype,"progressbar",null),(0,r.__decorate)([(0,w.watch)(":resize",{context:window})],j.prototype,"onResizeWindow",null),(0,r.__decorate)([(0,w.watch)(["state.currentPath","state.currentSource"])],j.prototype,"onChangePath",null),(0,r.__decorate)([(0,w.watch)("state.theme")],j.prototype,"onChangeTheme",null),(0,r.__decorate)([(0,w.watch)(":toggleSettings.filebrowser")],j.prototype,"onToggleSettings",null),(0,r.__decorate)([w.autobind],j.prototype,"onKeyPress",null),(0,r.__decorate)([w.autobind],j.prototype,"removeGlobalListeners",null),(0,r.__decorate)([(0,w.watch)(":cut.filebrowser")],j.prototype,"onCut",null),(0,r.__decorate)([(0,w.watch)(":copy.filebrowser")],j.prototype,"onCopy",null),(0,r.__decorate)([(0,w.watch)(":paste.filebrowser")],j.prototype,"onPaste",null),(0,r.__decorate)([(0,w.watch)(":fileRemove.filebrowser")],j.prototype,"onFileRemove",null),(0,r.__decorate)([(0,w.watch)(":edit.filebrowser")],j.prototype,"onFileEdit",null),(0,r.__decorate)([(0,w.watch)(":folderRename.filebrowser")],j.prototype,"onFolderRename",null),(0,r.__decorate)([(0,w.watch)(":folderRemove.filebrowser")],j.prototype,"onFolderRemove",null),(0,r.__decorate)([(0,w.watch)(":folderCreate.filebrowser")],j.prototype,"onFolderCreate",null),(0,r.__decorate)([(0,w.watch)(":fileRename.filebrowser")],j.prototype,"onFileRename",null),(0,r.__decorate)([(0,w.watch)(":select.filebrowser")],j.prototype,"onChooseItems",null),(0,r.__decorate)([(0,w.watch)(":openLightBox.filebrowser")],j.prototype,"onOpenLightBox",null),j=(0,r.__decorate)([w.component,(0,w.derive)(C.Dlgs)],j),Object.defineProperty(E.JoditPro.modules,"FileBrowserPro",{value:j,writable:!1,enumerable:!0,configurable:!0})},77894:function(t,i,n){"use strict";var o=n(76636),r=n(6441),s=n(580);let a=r.Config.prototype.controls.filebrowser;a.settings={icon:"settings",tooltip:"Settings",exec(t){(t.parent??t).e.fire("toggleSettings.filebrowser")}},a.home={icon:"home",tooltip:"Home",exec(t){t.e.fire("goHome.filebrowser")}},a.preview={icon:"eye",tooltip:"Preview",isDisabled:t=>0===t.state.activeElements.length,exec(t){t.e.fire("togglePreview.filebrowser")}},a.next={icon:"angle-right",tooltip:"History next",isDisabled:t=>!t.historyManager.canNext(),exec(t){t.historyManager.next()}},a.previous={icon:"angle-left",tooltip:"History previous",isDisabled:t=>!t.historyManager.canPrevious(),exec(t){t.historyManager.previous()}},a["new-folder"]={icon:"new-folder",exec(t){t.e.fire("folderCreate.filebrowser",{path:t.state.currentPath,sourceName:t.state.currentSource})},tooltip:"New folder"},a.paste={icon:"paste",tooltip:"Paste",isDisabled:t=>!t.canPaste(t.getPasteTarget()),exec(t){t.e.fire("paste.filebrowser",t.getPasteTarget())}},Object.assign(r.Config.prototype.filebrowser,{buttons:["filebrowser.home","filebrowser.previous","filebrowser.next","|","filebrowser.upload","filebrowser.new-folder","filebrowser.paste","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.preview","about"],sort:!1,pixelOffsetLoadNewChunk:300,width:900,height:400,previewOfficeURL:"https://view.officeapps.live.com/op/view.aspx?src=",fileCopy:{data:{action:"fileCopy"}},folderCopy:{data:{action:"folderCopy"}}}),(0,s.extendLang)(o)},97068:function(t,i,n){"use strict";var o=n(82749);n(77894);var r=n(5422),s=n(50911),a=n(2692);class l extends s.Plugin{afterInit(t){t.e.on("getInstanceFileBrowser",t=>(this.__instance||(this.__instance=new r.FileBrowserPro(t)),this.__instance))}beforeDestruct(t){t.e.off("getInstanceFileBrowser"),this.__instance?.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!a.JoditPro.fatMode),(0,o._)(this,"__instance",void 0)}}(0,o._)(l,"requires",["license"]),a.JoditPro.plugins.add("finder",l)},8087:function(t,i,n){"use strict";n.d(i,{ContextMenuManager:function(){return c}});var o=n(31635),r=n(77841),s=n(80480),a=n(65478),l=n(63399);class c extends s.ViewComponent{className(){return"ContextMenuManager"}onFolderContext(t,i){return this.buildContextItemMenu(this.getFolderContextActions(t),i),!1}onItemContext(t,i,n){return this.buildContextItemMenu(this.getItemContextActions(t),n),!1}onSourceContext(t,i){return this.buildContextItemMenu(this.getSourceContextActions(t),i),!1}onAreaContext(t){return this.buildContextItemMenu(this.getAreaContextActions(),t),!1}buildContextItemMenu(t,i){if(!this.j.o.contextMenu)return;let n=(0,l.makeContextMenu)(this.j).setMod("theme",this.j.state.theme);n.show(i.clientX,i.clientY,t.filter(t=>t&&!1!==t.enabled)),this.j.e.on(this.j,"afterClose",()=>{n.isOpened&&n.close()})}getItemContextActions(t){if(this.j.stateManager.isActive(t)||this.j.stateManager.addActive(t,this.j.state.activeElements.length>1),"folder"===t.type)return this.getFolderContextActions({type:"directory",children:[],name:t.name||"",path:t.path,sourceName:t.sourceName});let i=this.j.options,n=this.j.dataProvider,o=1===this.j.state.activeElements.length;return[{icon:"pencil",title:"Edit",enabled:!!t.isImage&&i.editImage&&o&&(n.canI("ImageResize")||n.canI("ImageCrop")),exec:()=>{this.j.e.fire("edit.filebrowser")}},{icon:"italic",title:"Rename",enabled:n.canI("FileRename")&&o,exec:()=>this.j.e.fire("fileRename.filebrowser",t)},{icon:"cut",title:"Cut",enabled:n.canI("FileMove"),exec:()=>this.j.e.fire("cut.filebrowser")},{icon:"copy",title:"Copy",enabled:n.canCopy(!0),exec:()=>this.j.e.fire("copy.filebrowser")},{icon:"bin",title:"Delete",enabled:n.canI("FileRemove"),exec:()=>this.j.e.fire("fileRemove.filebrowser",t)},{icon:"eye",title:"Preview",enabled:!!(t.isImage||"file"===t.type)&&i.preview&&o,exec:()=>this.j.e.fire("openLightBox.filebrowser",t)},{icon:"upload",title:"Download",exec:()=>{t.fileURL&&this.j.ow.open(t.fileURL)}}]}getFolderContextActions(t){let i=this.j.dataProvider,n={path:(0,r.folderFullPath)(t),sourceName:t.sourceName};return[{icon:"pencil",title:"Rename",exec:()=>{this.j.e.fire("folderRename.filebrowser",t)},enabled:i.canI("FolderRename")},{icon:"cut",title:"Cut",enabled:i.canI("FolderMove"),exec:()=>{this.j.e.fire("cut.filebrowser",t)}},{icon:"copy",title:"Copy",enabled:i.canCopy(!1),exec:()=>{this.j.e.fire("copy.filebrowser",t)}},{icon:"paste",title:"Paste",enabled:this.j.canPaste(n),exec:()=>{this.j.e.fire("paste.filebrowser",n)}},{icon:"bin",title:"Delete",exec:()=>{this.j.e.fire("folderRemove.filebrowser",t)},enabled:i.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)},enabled:i.canI("FolderCreate")}]}getSourceContextActions(t){let i={path:"/",sourceName:t.sourceName};return[{icon:"plus",title:"Create folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",t)}},{icon:"paste",title:"Paste",enabled:this.j.canPaste(i),exec:()=>{this.j.e.fire("paste.filebrowser",i)}}]}getAreaContextActions(){let t=this.j.getPasteTarget();return[{icon:"paste",title:"Paste",enabled:this.j.canPaste(t),exec:()=>{this.j.e.fire("paste.filebrowser",t)}},{icon:"plus",title:"Add folder",enabled:this.j.dataProvider.canI("FolderCreate"),exec:()=>{this.j.e.fire("folderCreate.filebrowser",{path:t.path,sourceName:t.sourceName})}}]}}(0,o.__decorate)([(0,a.watch)(":contextmenuFolder.filebrowser")],c.prototype,"onFolderContext",null),(0,o.__decorate)([(0,a.watch)(":contextmenuItem.filebrowser")],c.prototype,"onItemContext",null),(0,o.__decorate)([(0,a.watch)(":contextmenuSource.filebrowser")],c.prototype,"onSourceContext",null),(0,o.__decorate)([(0,a.watch)(":contextmenuArea.filebrowser")],c.prototype,"onAreaContext",null),c=(0,o.__decorate)([a.component],c)},34698:function(t,i,n){"use strict";n.d(i,{DataProviderPro:function(){return s}});var o=n(21537),r=n(11787);class s extends r.default{copy(t,i,n,r){let s=r?"fileCopy":"folderCopy",a=this.o[s];if(!a)throw(0,o.error)("Set Copy api options");return a.data.from=t,a.data.path=i,a.data.source=n,this.get(s).then(t=>{if(this.isSuccess(t))return!0;throw(0,o.error)(this.getMessage(t))})}canCopy(t){let i=t?"allowFileCopy":"allowFolderCopy",n=this.o.permissionsPresets[i];if(void 0!==n)return n;let{__currentPermissions:o}=this;return null==o||void 0===o[i]||!!o[i]}}},77841:function(t,i,n){"use strict";n.d(i,{folderFullPath:function(){return s},isCutItem:function(){return a},normalizeItemPath:function(){return r},parentPath:function(){return o}});let o=t=>{let i=t.split("/").filter(t=>t.length);return i.pop(),i.join("/")||"/"},r=t=>t.split("/").filter(t=>t.length).join("/")||"/",s=t=>t.path.endsWith("/")?r(t.path+t.name):t.path,a=(t,i)=>{if(!t.length)return!1;let n=r(i.path+(i.file||i.name||""));return t.some(t=>"cut"===t.mode&&t.from===n&&t.sourceName===i.sourceName)}},17578:function(t,i,n){"use strict";n.d(i,{HistoryManager:function(){return c}});var o=n(82749),r=n(31635),s=n(80480),a=n(65478),l=n(97735);class c extends s.ViewComponent{className(){return"HistoryManager"}canNext(){return this.historyIndex<this.history.length-1}canPrevious(){return this.historyIndex>0}push(t){let{historyIndex:i}=this,n=this.history[i];if(n&&n.currentSource===t.currentSource&&n.currentPath===t.currentPath)return;let o=[...this.history];o.length-1!==i&&(o=o.slice(0,i+1)),o.push(t),n&&(i+=1),this.history=o,this.historyIndex=i}next(){this.canNext()&&(this.historyIndex+=1,this.updateState())}previous(){this.canPrevious()&&(this.historyIndex-=1,this.updateState())}updateCurrent(){this.history[this.historyIndex]={currentSource:this.state.currentSource,currentPath:this.state.currentPath,tree:(0,l.fastClone)(this.state.tree),elements:[...this.state.elements]}}onHome(){this.state.currentPath="",this.state.currentSource="",this.j.e.fire("afterOpenFolder.filebrowser update.filebrowser")}onOpenFolder(){this.push({tree:[],elements:[],currentPath:this.state.currentPath,currentSource:this.state.currentSource}),this.j.e.fire("changeSelection")}updateState(){let{tree:t,elements:i,currentSource:n,currentPath:o}=this.history[this.historyIndex];this.state.activeElements=[],this.state.elements=[...i],this.state.tree=[...t],this.state.currentSource=n,this.state.currentPath=o,this.j.e.fire("changeSelection")}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"history",void 0),(0,o._)(this,"historyIndex",void 0),this.state=i,this.history=[],this.historyIndex=0}}(0,r.__decorate)([(0,a.watch)(["state.elements","state.tree"])],c.prototype,"updateCurrent",null),(0,r.__decorate)([(0,a.watch)(":goHome.filebrowser")],c.prototype,"onHome",null),(0,r.__decorate)([(0,a.watch)(":afterOpenFolder.filebrowser")],c.prototype,"onOpenFolder",null),c=(0,r.__decorate)([a.component],c)},97770:function(t,i,n){"use strict";n.d(i,{LoadingManager:function(){return l}});var o=n(82749),r=n(31635),s=n(91907),a=n(65478);class l extends s.ViewComponent{className(){return"LoadingManager"}async onUpdateFileBrowser(){this.state.activeElements=[],this.j.panel.setMod("loading",!0),await Promise.all([this.loadFolders(),this.loadItems()]),this.j.panel.setMod("loading",!1)}async loadFolders(){if(!this.j.isOpened)return;let{currentPath:t,currentSource:i,onlyImages:n}=this.state;try{let o=this.j.dataProvider;o.o?.folder&&(o.o.folder.data.onlyImages=n);let r=await o.tree(t,i);this.j.stateManager.fillTreeForPath(r,t),this.state.sources=r}catch(t){this.j.status(t)}}async loadItems(){if(this.j.isOpened)try{this.__tick+=1;let{__tick:t}=this;this.offset=0,this.stopLoadingParts=!1,this.__callQueueCount=0;let{items:i,loadedTotal:n}=await c(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.state.elements=i,this.stopLoadingParts=n<this.countInOneChunk,await this.loadItemsChunk(t),await this.async.requestIdlePromise(),this.__tick!==t)return;for(;!this.stopLoadingParts&&this.j.panel.countInColumn*this.j.panel.countInRow>=this.state.elements.length;)if(await this.loadItemsChunk(t),this.__tick!==t)return}catch(t){this.j.status(t)}}async __loadItemsChunk(t){if(this.__isLoadingPart){this.__callQueueCount+=1;return}if(this.stopLoadingParts){this.__callQueueCount=0;return}this.__isLoadingPart=!0,this.j.panel.items.setMod("chunk-loading",!0);try{this.offset+=this.countInOneChunk;let{items:i,loadedTotal:n}=await c(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.__tick!==t)return;this.stopLoadingParts=n<this.countInOneChunk,i.length&&(this.state.elements=this.state.elements.concat(i))}catch(t){this.j.status(t)}if(this.j.panel.items.setMod("chunk-loading",!1),this.__isLoadingPart=!1,this.__callQueueCount>0)return this.__callQueueCount-=1,this.__loadItemsChunk(t)}loadItemsChunk(t=this.__tick){return t!==this.__tick?Promise.resolve():this.__loadItemsChunk(t)}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"__tick",void 0),(0,o._)(this,"offset",void 0),(0,o._)(this,"countInOneChunk",void 0),(0,o._)(this,"stopLoadingParts",void 0),(0,o._)(this,"__isLoadingPart",void 0),(0,o._)(this,"__callQueueCount",void 0),this.state=i,this.__tick=0,this.offset=0,this.countInOneChunk=20,this.stopLoadingParts=!1,this.__isLoadingPart=!1,this.__callQueueCount=0}}function c(t,i,n,o){let{currentPath:r,currentSource:s,sortBy:a,withFolders:l,foldersPosition:c,onlyImages:d,filterWord:u}=t;return i.itemsEx(r,s,{offset:n,limit:o,sortBy:a,withFolders:l,foldersPosition:c,onlyImages:d,filterWord:u})}(0,r.__decorate)([(0,a.watch)(":update.filebrowser")],l.prototype,"onUpdateFileBrowser",null),(0,r.__decorate)([(0,a.watch)(["state.currentPath","state.currentSource","state.onlyImages"]),(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadFolders",null),(0,r.__decorate)([(0,a.watch)(["state.currentPath","state.currentSource","state.sortBy","state.onlyImages","state.foldersPosition","state.filterWord"]),(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadItems",null),(0,r.__decorate)([(0,a.debounce)(t=>({timeout:t.defaultTimeout,promisify:!0}))],l.prototype,"loadItemsChunk",null),l=(0,r.__decorate)([a.component],l)},42663:function(t,i,n){"use strict";n.d(i,{PersistentStore:function(){return c}});var o=n(82749),r=n(31635),s=n(91907),a=n(65478),l=n(159);class c extends s.ViewComponent{className(){return"PersistentStore"}onChangeThemeSetField(){this.theme=this.state.theme}onChangeView(){this.__viewPersistenceEnabled()&&(this.view=this.state.view)}onChangeSortBy(){this.sortBy=this.state.sortBy}onChangeTileSize(){this.tileSize=this.state.tileSize}onChangeFavorites(){this.favorites=this.state.favorites}onChangeShowSideBar(){this.showSideBar=this.state.showSideBar}onChangeShowPreview(){this.showPreview=this.state.showPreview}onChangeShowFavorites(){this.showFavorites=this.state.showFavorites}onChangeFoldersPosition(){this.foldersPosition=this.state.foldersPosition}syncWithState(){this.state.tileSize=this.tileSize,this.state.favorites=this.favorites.map(t=>t instanceof l.FileBrowserItem?t:l.FileBrowserItem.create(t)),this.state.view=this.__resolveView(),this.state.theme=this.theme,this.state.showSideBar=this.showSideBar,this.state.showPreview=this.showPreview,this.state.showFavorites=this.showFavorites,this.state.sortBy=this.sortBy,this.state.foldersPosition=this.foldersPosition}__resolveView(){return this.__viewPersistenceEnabled()&&this.__hasStoredView()?this.view:this.__configView()??"tiles"}__configView(){let{view:t}=this.j.o;return"tiles"===t||"list"===t||"compact"===t?t:null}__viewPersistenceEnabled(){let{saveStateInStorage:t}=this.j.o;return!1!==t&&(!t||!1!==t.storeView)}__hasStoredView(){return null!=this.j.storage.get(`${this.j.o.namespace}${this.componentName}_prop_view`)}constructor(t,i){super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"theme",void 0),(0,o._)(this,"sortBy",void 0),(0,o._)(this,"view",void 0),(0,o._)(this,"foldersPosition",void 0),(0,o._)(this,"tileSize",void 0),(0,o._)(this,"favorites",void 0),(0,o._)(this,"showSideBar",void 0),(0,o._)(this,"showPreview",void 0),(0,o._)(this,"showFavorites",void 0),this.state=i,this.sortBy="changed-desc",this.view="tiles",this.foldersPosition="top",this.tileSize="default",this.favorites=[],this.showSideBar=!0,this.showPreview=!1,this.showFavorites=!0}}(0,r.__decorate)([a.persistent],c.prototype,"theme",void 0),(0,r.__decorate)([a.persistent],c.prototype,"sortBy",void 0),(0,r.__decorate)([a.persistent],c.prototype,"view",void 0),(0,r.__decorate)([a.persistent],c.prototype,"foldersPosition",void 0),(0,r.__decorate)([a.persistent],c.prototype,"tileSize",void 0),(0,r.__decorate)([a.persistent],c.prototype,"favorites",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showSideBar",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showPreview",void 0),(0,r.__decorate)([a.persistent],c.prototype,"showFavorites",void 0),(0,r.__decorate)([(0,a.watch)("state.theme")],c.prototype,"onChangeThemeSetField",null),(0,r.__decorate)([(0,a.watch)("state.view")],c.prototype,"onChangeView",null),(0,r.__decorate)([(0,a.watch)("state.sortBy")],c.prototype,"onChangeSortBy",null),(0,r.__decorate)([(0,a.watch)("state.tileSize")],c.prototype,"onChangeTileSize",null),(0,r.__decorate)([(0,a.watch)("state.favorites")],c.prototype,"onChangeFavorites",null),(0,r.__decorate)([(0,a.watch)("state.showSideBar")],c.prototype,"onChangeShowSideBar",null),(0,r.__decorate)([(0,a.watch)("state.showPreview")],c.prototype,"onChangeShowPreview",null),(0,r.__decorate)([(0,a.watch)("state.showFavorites")],c.prototype,"onChangeShowFavorites",null),(0,r.__decorate)([(0,a.watch)("state.foldersPosition")],c.prototype,"onChangeFoldersPosition",null),c=(0,r.__decorate)([a.component],c)},55535:function(t,i,n){"use strict";n.d(i,{StateManager:function(){return a}});var o=n(82749),r=n(31635),s=n(65478);class a{getIndex(t,i=this.state.elements){return i.findIndex(i=>i.uniqueHashKey===t.uniqueHashKey)}isActive(t){return!!this.state.activeElements.find(i=>i.uniqueHashKey===t.uniqueHashKey)}isFavorite(t){return!!this.state.favorites.find(i=>i.uniqueHashKey===t.uniqueHashKey)}addActive(t,i){this.state.metaInfo=t,this.state.info=t.file??"",this.state.lastSelectedIndex=this.getIndex(t),this.state.activeElements=i?[...this.state.activeElements,t]:[t]}callSelectHandler(){let t=this.state.activeElements;this.state.onSelectCallBack?.call(this,{baseurl:"",files:t.map(t=>t.fileURL),isImages:t.map(t=>!!t.isImage)})}setFilter(t){this.state.filterWord=t}toggleFavorite(t){let i=this.getIndex(t,this.state.favorites),n=[...this.state.favorites];-1===i?n.push(t):n.splice(i,1),this.state.favorites=n}fillTreeForPath(t,i){if(!this.state.tree.length||!i||"/"===i){this.state.tree=t.map(d);return}this.removeActive(this.state.tree),t.forEach(t=>{var n;let o=l(this.state.tree,t.name);o||(o=d(t),this.state.tree.push(o)),o.isActive=!0;let r=(n=o,i.split("/").reduce((t,i)=>t&&l(t.children,i),n));r&&(r.isActive=!0,r.children=c(t.folders).map(n=>u(n,i+"/"+n,t.name)))}),this.state.tree=[...this.state.tree]}removeActive(t){t.forEach(t=>{t.isActive=!1,this.removeActive(t.children)})}get isFavoriteItems(){return this.state.favorites===this.state.elements}constructor(t){(0,o._)(this,"state",void 0),this.state=t}}function l(t,i){return t.find(t=>t.name===i)??null}function c(t){return t.filter(t=>"."!==t&&".."!==t)}function d(t){return{type:"source",name:t.name,title:t.title,sourceName:t.name,path:"/",children:c(t.folders).map(i=>u(i,i,t.name))}}function u(t,i,n){return{type:"directory",name:t,path:i,sourceName:n,children:[]}}(0,r.__decorate)([s.autobind],a.prototype,"getIndex",null),(0,r.__decorate)([s.autobind],a.prototype,"isActive",null),(0,r.__decorate)([s.autobind],a.prototype,"isFavorite",null)},76636:function(t,i,n){"use strict";n.r(i),n.d(i,{de:function(){return r.a},ru:function(){return r.a}});var o=n(41324),r=n.n(o)},34042:function(t,i,n){"use strict";var o=n(7307),r=n(24928),s=n(96910),a=n(67510);a.Icon.set("heart",o+""),a.Icon.set("home",r+""),a.Icon.set("new-folder",s+"")},43692:function(t,i,n){"use strict";n.d(i,{UIBrowserFolder:function(){return c}});var o=n(82749),r=n(31635),s=n(87325),a=n(38837),l=n(67510);class c extends l.UIElement{className(){return"UIBrowserFolder"}render(){return`<div>
|
|
427
427
|
<div class="&__icon">
|
|
428
428
|
<div class='&__loader'></div>
|
|
429
429
|
<div class="&__icon-wrapper">
|
|
@@ -432,7 +432,7 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
432
432
|
</div>
|
|
433
433
|
<div class="&__name"></div>
|
|
434
434
|
<div class="&__arrow">*angle-right*</div>
|
|
435
|
-
</div>`}constructor(t,i){super(t),(0,o._)(this,"item",void 0),(0,o._)(this,"syncMod",void 0),this.item=i,this.syncMod=!0;const n=this.getElm("name");(0,a.assert)(null!=n,"name element does not exists"),n.innerText=i.name,t.e.on(this.container,"click",()=>(this.getMod("active")||this.setMod("loading",!0),t.e.fire("openFolder",i))).on(this.container,"contextmenu",n=>t.e.fire("contextmenuFolder.filebrowser",i,n))}}c=(0,r.__decorate)([s.component],c)},18250:function(t,i,n){"use strict";n.d(i,{UIBrowserHeader:function(){return d}});var o=n(82749),r=n(31635),s=n(65478),a=n(70799),l=n(67510),c=n(21491);class d extends l.UIGroup{className(){return"UIBrowserHeader"}__getButtons(){return(this.options.toolbarButtons??[]).filter(t=>{if(!(0,a.isString)(t))return!0;switch(t){case"filebrowser.edit":return this.j.dataProvider.canI("ImageResize")||this.j.dataProvider.canI("ImageCrop");case"filebrowser.new-folder":return this.j.dataProvider.canI("FolderCreate");case"filebrowser.upload":return this.j.dataProvider.canI("FileUpload");case"filebrowser.remove":return this.j.dataProvider.canI("FileRemove")}return!0})}constructor(t,i,n){super(t),(0,o._)(this,"options",void 0),(0,o._)(this,"stateManager",void 0),(0,o._)(this,"syncMod",void 0),(0,o._)(this,"toolbar",void 0),(0,o._)(this,"filter",void 0),this.options=i,this.stateManager=n,this.syncMod=!0,this.toolbar=(0,c.makeCollection)(this.j),this.filter=new l.UIInput(this.j,{icon:"search",placeholder:"Filter",clearButton:!0,onChange:t=>{this.stateManager.setFilter(t)}}),this.append(this.toolbar).append(this.filter),this.filter.container.classList.add(this.getFullElName("filter")),this.toolbar.setMod("mode","header").build(this.__getButtons())}}d=(0,r.__decorate)([s.component],d)},21130:function(t,i,n){"use strict";n.d(i,{UIBrowserItem:function(){return h}});var o=n(82749),r=n(31635),s=n(65478),a=n(21537),l=n(38837),c=n(67510),d=n(41409),u=n(159);class h extends c.UIElement{className(){return"UIBrowserItem"}render(){return`<div tabindex='-1' data-ref='uiBrowserItem'>
|
|
435
|
+
</div>`}constructor(t,i){super(t),(0,o._)(this,"item",void 0),(0,o._)(this,"syncMod",void 0),this.item=i,this.syncMod=!0;const n=this.getElm("name");(0,a.assert)(null!=n,"name element does not exists"),n.innerText=i.name,t.e.on(this.container,"click",()=>(this.getMod("active")||this.setMod("loading",!0),t.e.fire("openFolder",i))).on(this.container,"contextmenu",n=>t.e.fire("contextmenuFolder.filebrowser",i,n))}}c=(0,r.__decorate)([s.component],c)},18250:function(t,i,n){"use strict";n.d(i,{UIBrowserHeader:function(){return d}});var o=n(82749),r=n(31635),s=n(65478),a=n(70799),l=n(67510),c=n(21491);class d extends l.UIGroup{className(){return"UIBrowserHeader"}onChangeClipboard(){this.toolbar.build(this.__getButtons())}__getButtons(){return(this.options.toolbarButtons??[]).filter(t=>{if(!(0,a.isString)(t))return!0;switch(t){case"filebrowser.edit":return this.j.dataProvider.canI("ImageResize")||this.j.dataProvider.canI("ImageCrop");case"filebrowser.new-folder":return this.j.dataProvider.canI("FolderCreate");case"filebrowser.upload":return this.j.dataProvider.canI("FileUpload");case"filebrowser.remove":return this.j.dataProvider.canI("FileRemove");case"filebrowser.paste":return this.state.clipboard.length>0}return!0})}constructor(t,i,n){super(t),(0,o._)(this,"options",void 0),(0,o._)(this,"stateManager",void 0),(0,o._)(this,"syncMod",void 0),(0,o._)(this,"toolbar",void 0),(0,o._)(this,"filter",void 0),(0,o._)(this,"state",void 0),this.options=i,this.stateManager=n,this.syncMod=!0,this.toolbar=(0,c.makeCollection)(this.j),this.filter=new l.UIInput(this.j,{icon:"search",placeholder:"Filter",clearButton:!0,onChange:t=>{this.stateManager.setFilter(t)}}),this.state=n.state,this.append(this.toolbar).append(this.filter),this.filter.container.classList.add(this.getFullElName("filter")),this.toolbar.setMod("mode","header").build(this.__getButtons())}}(0,r.__decorate)([(0,s.watch)("state.clipboard")],d.prototype,"onChangeClipboard",null),d=(0,r.__decorate)([s.component],d)},21130:function(t,i,n){"use strict";n.d(i,{UIBrowserItem:function(){return h}});var o=n(82749),r=n(31635),s=n(65478),a=n(21537),l=n(38837),c=n(67510),d=n(41409),u=n(159);class h extends c.UIElement{className(){return"UIBrowserItem"}render(){return`<div tabindex='-1' data-ref='uiBrowserItem'>
|
|
436
436
|
<div class='&__image'></div>
|
|
437
437
|
<div class='&__info'></div>
|
|
438
438
|
<div class='&__heart'>*heart*</div>
|
|
@@ -441,10 +441,10 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
441
441
|
<div class='&__preview'></div>
|
|
442
442
|
<div class='&__loader'></div>
|
|
443
443
|
<div class='&__next'>*angle-right*</div>
|
|
444
|
-
</div>`}async onChangeCurrent(){let{current:t}=this;this.setMod("loading",!0);let i=this.getElm("preview");if((0,c.assert)(null!=i,"preview element does not exist"),d.Dom.detach(i),(0,l.css)(i,{backgroundImage:null}),t.isImage){let n=await (0,l.loadImage)(t.fileURL,this.j);this.dialog.setPosition(),(0,l.css)(i,{width:Math.min(this.jodit.ow.innerWidth,n.naturalWidth),height:Math.min(this.jodit.ow.innerHeight-100,n.naturalHeight),backgroundImage:`url(${n.src})`})}else{let n=await this.makeIframe(t.fileURL);i.appendChild(n)}this.dialog.setSize(),this.dialog.setPosition(),this.setMod("loading",!1)}makeIframe(t){let i=this.j.c.element("iframe");return i.classList.add(this.getFullElName("office-iframe")),i.src=/\.pdf/.test(t)?t:this.j.o.previewOfficeURL+encodeURIComponent(t),i}onPreviousClick(){let{current:t}=this,i=this.j.stateManager.getIndex(t,this.elements);i<=0?i=this.elements.length-1:i-=1,this.current=this.elements[i]}onNextClick(){let{current:t}=this,i=this.j.stateManager.getIndex(t,this.elements);i>=this.elements.length-1?i=0:i+=1,this.current=this.elements[i]}static open(t,i,n){return new u(t,i,n)}addGlobalListeners(){this.j.e.on(this.j.od,"keydown",this.onKeyPress)}onKeyPress(t){if(t.key===s.KEY_LEFT||t.key===s.KEY_RIGHT||t.key===s.KEY_SPACE)return t.key===s.KEY_LEFT?this.onPreviousClick():this.onNextClick(),!1}removeGlobalListeners(){this.j.e.off(this.j.od,"keydown",this.onKeyPress)}destruct(){return this.removeGlobalListeners(),this.dialog.destruct(),super.destruct()}constructor(t,i,n){super(t),(0,o._)(this,"current",void 0),(0,o._)(this,"elements",void 0),(0,o._)(this,"dialog",void 0),this.current=i,this.elements=n,this.dialog=new d.Dialog;const{dialog:r}=this;r.setMod("theme",t.state.theme).toolbar.setMod("mode","header"),r.open(this),this.elements=this.elements.filter(t=>t.isImage),r.e.on(r,"afterClose",()=>{this.j.async.setTimeout(()=>this.destruct(),1)}),this.addGlobalListeners(),this.onChangeCurrent(),r.toolbar.build([{icon:"check",exec:()=>{t.stateManager.addActive(this.current,!1),t.e.fire("select.filebrowser"),r.close()}},"dialog.close"])}}(0,r.__decorate)([(0,a.watch)("current")],u.prototype,"onChangeCurrent",null),(0,r.__decorate)([(0,a.watch)("previous:click")],u.prototype,"onPreviousClick",null),(0,r.__decorate)([(0,a.watch)("next:click")],u.prototype,"onNextClick",null),(0,r.__decorate)([a.autobind],u.prototype,"onKeyPress",null),u=(0,r.__decorate)([a.component],u)},4278:function(t,i,n){"use strict";n.d(i,{UIBrowserPanel:function(){return
|
|
444
|
+
</div>`}async onChangeCurrent(){let{current:t}=this;this.setMod("loading",!0);let i=this.getElm("preview");if((0,c.assert)(null!=i,"preview element does not exist"),d.Dom.detach(i),(0,l.css)(i,{backgroundImage:null}),t.isImage){let n=await (0,l.loadImage)(t.fileURL,this.j);this.dialog.setPosition(),(0,l.css)(i,{width:Math.min(this.jodit.ow.innerWidth,n.naturalWidth),height:Math.min(this.jodit.ow.innerHeight-100,n.naturalHeight),backgroundImage:`url(${n.src})`})}else{let n=await this.makeIframe(t.fileURL);i.appendChild(n)}this.dialog.setSize(),this.dialog.setPosition(),this.setMod("loading",!1)}makeIframe(t){let i=this.j.c.element("iframe");return i.classList.add(this.getFullElName("office-iframe")),i.src=/\.pdf/.test(t)?t:this.j.o.previewOfficeURL+encodeURIComponent(t),i}onPreviousClick(){let{current:t}=this,i=this.j.stateManager.getIndex(t,this.elements);i<=0?i=this.elements.length-1:i-=1,this.current=this.elements[i]}onNextClick(){let{current:t}=this,i=this.j.stateManager.getIndex(t,this.elements);i>=this.elements.length-1?i=0:i+=1,this.current=this.elements[i]}static open(t,i,n){return new u(t,i,n)}addGlobalListeners(){this.j.e.on(this.j.od,"keydown",this.onKeyPress)}onKeyPress(t){if(t.key===s.KEY_LEFT||t.key===s.KEY_RIGHT||t.key===s.KEY_SPACE)return t.key===s.KEY_LEFT?this.onPreviousClick():this.onNextClick(),!1}removeGlobalListeners(){this.j.e.off(this.j.od,"keydown",this.onKeyPress)}destruct(){return this.removeGlobalListeners(),this.dialog.destruct(),super.destruct()}constructor(t,i,n){super(t),(0,o._)(this,"current",void 0),(0,o._)(this,"elements",void 0),(0,o._)(this,"dialog",void 0),this.current=i,this.elements=n,this.dialog=new d.Dialog;const{dialog:r}=this;r.setMod("theme",t.state.theme).toolbar.setMod("mode","header"),r.open(this),this.elements=this.elements.filter(t=>t.isImage),r.e.on(r,"afterClose",()=>{this.j.async.setTimeout(()=>this.destruct(),1)}),this.addGlobalListeners(),this.onChangeCurrent(),r.toolbar.build([{icon:"check",exec:()=>{t.stateManager.addActive(this.current,!1),t.e.fire("select.filebrowser"),r.close()}},"dialog.close"])}}(0,r.__decorate)([(0,a.watch)("current")],u.prototype,"onChangeCurrent",null),(0,r.__decorate)([(0,a.watch)("previous:click")],u.prototype,"onPreviousClick",null),(0,r.__decorate)([(0,a.watch)("next:click")],u.prototype,"onNextClick",null),(0,r.__decorate)([a.autobind],u.prototype,"onKeyPress",null),u=(0,r.__decorate)([a.component],u)},4278:function(t,i,n){"use strict";n.d(i,{UIBrowserPanel:function(){return g}});var o=n(82749),r=n(31635),s=n(65478),a=n(21537),l=n(67510),c=n(77841),d=n(8358),u=n(60062),h=n(70950),p=n(59198),f=n(17234),m=n(43778);class g extends l.UIGroup{className(){return"UIBrowserPanel"}get countInRow(){if("list"===this.state.view||!this.items.elements.length)return 1;let{container:t}=this.items.elements[0],i=(0,a.css)(t,"marginLeft");return Math.floor(this.items.container.offsetWidth/(t.offsetWidth+((0,a.isNumber)(i)?i:0)))}get countInColumn(){if(!this.items.elements.length)return 1;let{container:t}=this.items.elements[0],i=(0,a.css)(t,"marginTop");return Math.floor(this.items.container.offsetHeight/(t.offsetHeight+((0,a.isNumber)(i)?i:0)))}render(){return`<div>
|
|
445
445
|
<div class='&__content'></div>
|
|
446
446
|
<div class='&__footer'></div>
|
|
447
|
-
</div>`}onChangeTheme(){this.setMod("theme",this.stateManager.state.theme)}onChangeElements(){this.items.build(this.stateManager.state.elements)}onChangeActiveElements(){this.state.activeElements.length||(this.state.info="",this.state.metaInfo=null),this.items.elements.forEach(t=>{t.setMod("active",!!this.stateManager.isActive(t.item))}),this.j.e.fire("changeSelection")}onChangeFavorites(){this.items.elements.forEach(t=>{t.setMod("favorite",!!this.stateManager.isFavorite(t.item))})}onChangeSources(){this.sources.build(this.stateManager.state.tree)}onChangeLastSelectedIndex(){let t=this.items.elements[this.stateManager.state.lastSelectedIndex]?.container;t&&((0,a.scrollIntoViewIfNeeded)(t,this.items.container,this.j.od),t.focus())}onChangeInfo(){this.statusbar.value(this.state.info,"center")}onChangePathOrSource(){this.statusbar.value(this.state.currentPath?`${this.state.currentPath} (${this.state.currentSource})`:this.i18n("Home"),"left")}onChangeShowSettings(){this.settings.setMod("hidden",!this.stateManager.state.showSettings)}onChangeShowPreview(){this.preview.setMod("hidden",!this.stateManager.state.showPreview)}onChangeShowSideBar(){this.sidebar.setMod("hidden",!this.stateManager.state.showSideBar)}onChangeView(){this.items.setMod("view",this.stateManager.state.view)}onChangeTileSize(){this.items.setMod("size",this.stateManager.state.tileSize)}onChangeShowFavorites(){this.sidebar.setMod("show-favorites",this.stateManager.state.showFavorites),this.items.setMod("show-favorites",this.stateManager.state.showFavorites)}onItemDblClick(){return this.j.e.fire("select.filebrowser"),!1}onItemClick(t,i){this.stateManager.addActive(t,i)}onTogglePreview(){return this.state.showPreview=!this.state.showPreview,!1}onToggleFavoriteItem(t){this.stateManager.toggleFavorite(t)}onFolderClick(t){this.stateManager.state.currentSource=t.sourceName,this.stateManager.state.currentPath=t.path||"/",this.j.e.fire("afterOpenFolder.filebrowser")}constructor(t,i){super(t),(0,o._)(this,"stateManager",void 0),(0,o._)(this,"syncMod",void 0),(0,o._)(this,"state",void 0),(0,o._)(this,"sources",void 0),(0,o._)(this,"sidebar",void 0),(0,o._)(this,"preview",void 0),(0,o._)(this,"statusbar",void 0),(0,o._)(this,"items",void 0),(0,o._)(this,"settings",void 0),this.stateManager=i,this.syncMod=!0,this.sources=new
|
|
447
|
+
</div>`}onChangeTheme(){this.setMod("theme",this.stateManager.state.theme)}onChangeElements(){this.items.build(this.stateManager.state.elements),this.__applyCutMods()}onChangeClipboard(){this.__applyCutMods()}__applyCutMods(){let{clipboard:t}=this.state;this.items.elements.forEach(i=>{i.setMod("cut",(0,c.isCutItem)(t,i.item))})}onChangeActiveElements(){this.state.activeElements.length||(this.state.info="",this.state.metaInfo=null),this.items.elements.forEach(t=>{t.setMod("active",!!this.stateManager.isActive(t.item))}),this.j.e.fire("changeSelection")}onChangeFavorites(){this.items.elements.forEach(t=>{t.setMod("favorite",!!this.stateManager.isFavorite(t.item))})}onChangeSources(){this.sources.build(this.stateManager.state.tree)}onChangeLastSelectedIndex(){let t=this.items.elements[this.stateManager.state.lastSelectedIndex]?.container;t&&((0,a.scrollIntoViewIfNeeded)(t,this.items.container,this.j.od),t.focus())}onChangeInfo(){this.statusbar.value(this.state.info,"center")}onChangePathOrSource(){this.statusbar.value(this.state.currentPath?`${this.state.currentPath} (${this.state.currentSource})`:this.i18n("Home"),"left")}onChangeShowSettings(){this.settings.setMod("hidden",!this.stateManager.state.showSettings)}onChangeShowPreview(){this.preview.setMod("hidden",!this.stateManager.state.showPreview)}onChangeShowSideBar(){this.sidebar.setMod("hidden",!this.stateManager.state.showSideBar)}onChangeView(){this.items.setMod("view",this.stateManager.state.view)}onChangeTileSize(){this.items.setMod("size",this.stateManager.state.tileSize)}onChangeShowFavorites(){this.sidebar.setMod("show-favorites",this.stateManager.state.showFavorites),this.items.setMod("show-favorites",this.stateManager.state.showFavorites)}onItemDblClick(){return this.j.e.fire("select.filebrowser"),!1}onItemClick(t,i){this.stateManager.addActive(t,i)}onTogglePreview(){return this.state.showPreview=!this.state.showPreview,!1}onToggleFavoriteItem(t){this.stateManager.toggleFavorite(t)}onFolderClick(t){this.stateManager.state.currentSource=t.sourceName,this.stateManager.state.currentPath=t.path||"/",this.j.e.fire("afterOpenFolder.filebrowser")}constructor(t,i){super(t),(0,o._)(this,"stateManager",void 0),(0,o._)(this,"syncMod",void 0),(0,o._)(this,"state",void 0),(0,o._)(this,"sources",void 0),(0,o._)(this,"sidebar",void 0),(0,o._)(this,"preview",void 0),(0,o._)(this,"statusbar",void 0),(0,o._)(this,"items",void 0),(0,o._)(this,"settings",void 0),this.stateManager=i,this.syncMod=!0,this.sources=new p.UIBrowserSources(this.j),this.sidebar=new h.UISidebar(this.jodit,[this.sources],this.stateManager.state),this.preview=new d.UIPreview(this.jodit,this.stateManager.state),this.statusbar=new f.UIBrowserStatusBar(this.j),this.items=new m.UIVirtualScroll(this.j,this.stateManager),this.settings=new u.UIBrowserSettings(this.jodit,this.stateManager.state),this.state=i.state,this.append(this.sidebar,"content"),this.append(this.items,"content"),this.append(this.settings,"content"),this.append(this.preview,"content"),this.append(this.statusbar,"footer"),this.onChangeElements(),this.onChangeSources(),this.onChangeView(),this.onChangeTileSize(),this.onChangeShowFavorites(),this.onChangeActiveElements(),this.onChangeFavorites(),this.onChangeShowSideBar(),this.onChangeShowSettings(),this.onChangeShowPreview(),this.onChangeTheme()}}(0,r.__decorate)([(0,s.watch)("state.theme")],g.prototype,"onChangeTheme",null),(0,r.__decorate)([(0,s.watch)("state.elements")],g.prototype,"onChangeElements",null),(0,r.__decorate)([(0,s.watch)("state.clipboard")],g.prototype,"onChangeClipboard",null),(0,r.__decorate)([(0,s.watch)("state.activeElements")],g.prototype,"onChangeActiveElements",null),(0,r.__decorate)([(0,s.watch)(["state.favorites","state.elements"])],g.prototype,"onChangeFavorites",null),(0,r.__decorate)([(0,s.watch)("state.sources")],g.prototype,"onChangeSources",null),(0,r.__decorate)([(0,s.watch)("state.lastSelectedIndex")],g.prototype,"onChangeLastSelectedIndex",null),(0,r.__decorate)([(0,s.watch)("state.info")],g.prototype,"onChangeInfo",null),(0,r.__decorate)([(0,s.watch)(["state.currentPath","state.currentSource"])],g.prototype,"onChangePathOrSource",null),(0,r.__decorate)([(0,s.watch)("state.showSettings")],g.prototype,"onChangeShowSettings",null),(0,r.__decorate)([(0,s.watch)("state.showPreview")],g.prototype,"onChangeShowPreview",null),(0,r.__decorate)([(0,s.watch)("state.showSideBar")],g.prototype,"onChangeShowSideBar",null),(0,r.__decorate)([(0,s.watch)("state.view")],g.prototype,"onChangeView",null),(0,r.__decorate)([(0,s.watch)("state.tileSize")],g.prototype,"onChangeTileSize",null),(0,r.__decorate)([(0,s.watch)("state.showFavorites")],g.prototype,"onChangeShowFavorites",null),(0,r.__decorate)([(0,s.watch)(":dblclickItem.filebrowser")],g.prototype,"onItemDblClick",null),(0,r.__decorate)([(0,s.watch)(":clickItem.filebrowser")],g.prototype,"onItemClick",null),(0,r.__decorate)([(0,s.watch)(":togglePreview.filebrowser")],g.prototype,"onTogglePreview",null),(0,r.__decorate)([(0,s.watch)(":toggleFavoriteItem")],g.prototype,"onToggleFavoriteItem",null),(0,r.__decorate)([(0,s.watch)(":openFolder")],g.prototype,"onFolderClick",null),g=(0,r.__decorate)([s.component],g)},8358:function(t,i,n){"use strict";n.d(i,{UIPreview:function(){return p}});var o=n(82749),r=n(31635),s=n(65478),a=n(2748),l=n(43555),c=n(38837),d=n(62405),u=n(21130),h=n(54747);class p extends d.UIGroup{className(){return"UIPreview"}addResize(){(0,l.css)(this.container,{width:null,height:null}),h.UIResize.remove(this),h.UIResize.install(this,screen.width>450?"left":"top")}render(){return`<div>
|
|
448
448
|
<div class="&__image"></div>
|
|
449
449
|
<div class="&__info"></div>
|
|
450
450
|
<div class="&__loader"></div>
|
|
@@ -464,11 +464,11 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
464
464
|
<div class='&__slot-left'></div>
|
|
465
465
|
<div class='&__slot-center'></div>
|
|
466
466
|
<div class='&__slot-right'></div>
|
|
467
|
-
</div>`}value(t,i="left"){let n=this.getElm("slot-"+i);return(0,s.assert)(null!=n,"Slot does not exists"),n.innerText=t,this}}l=(0,o.__decorate)([r.component],l)},36704:function(t,i,n){"use strict";n.d(i,{UITree:function(){return c}});var o=n(82749),r=n(31635),s=n(87325),a=n(62405),l=n(43692);class c extends a.UIGroup{className(){return"UITree"}build(t){this.clear(),t.forEach(t=>{let i=new l.UIBrowserFolder(this.jodit,t);this.append(i),t.isActive&&i.setMod("active",!0),t.children.length&&this.append(new c(this.jodit,t.children))})}constructor(t,i){super(t),(0,o._)(this,"syncMod",!0),this.build(i)}}c=(0,r.__decorate)([s.component],c)},43778:function(t,i,n){"use strict";n.d(i,{UIVirtualScroll:function(){return
|
|
467
|
+
</div>`}value(t,i="left"){let n=this.getElm("slot-"+i);return(0,s.assert)(null!=n,"Slot does not exists"),n.innerText=t,this}}l=(0,o.__decorate)([r.component],l)},36704:function(t,i,n){"use strict";n.d(i,{UITree:function(){return c}});var o=n(82749),r=n(31635),s=n(87325),a=n(62405),l=n(43692);class c extends a.UIGroup{className(){return"UITree"}build(t){this.clear(),t.forEach(t=>{let i=new l.UIBrowserFolder(this.jodit,t);this.append(i),t.isActive&&i.setMod("active",!0),t.children.length&&this.append(new c(this.jodit,t.children))})}constructor(t,i){super(t),(0,o._)(this,"syncMod",!0),this.build(i)}}c=(0,r.__decorate)([s.component],c)},43778:function(t,i,n){"use strict";n.d(i,{UIVirtualScroll:function(){return p}});var o=n(82749),r=n(31635),s=n(65478),a=n(2748),l=n(5700),c=n(62405),d=n(159),u=n(21130),h=n(36469);class p extends c.UIGroup{className(){return"UIVirtualScroll"}render(){return`<div>
|
|
468
468
|
<div class="&__empty-message">~There are no files~</div>
|
|
469
469
|
<div class='&__loader'></div>
|
|
470
470
|
<div class='&__drag-area'>~Drop image~</div>
|
|
471
|
-
</div>`}reconcile(t){let i=this.elements.findIndex((i,n)=>!t[n]||i.item.uniqueHashKey!==
|
|
471
|
+
</div>`}reconcile(t){let i=this.elements.findIndex((i,n)=>!t[n]||i.item.uniqueHashKey!==d.FileBrowserItem.create(t[n]).uniqueHashKey);if(i>-1){for(let t=i;t<this.elements.length;t+=1)this.elements[t].destruct();this.elements.length=i}return i}afterSetMod(t,i){super.afterSetMod(t,i),"loading"===t&&(i?this.buildSkeletons():this.clearSkeletons())}buildSkeletons(t=24){if(!this.skeletons.length)for(let i=0;i<t;i+=1){let t=this.j.create.fromHTML('<div class="jodit-ui-browser-item jodit-ui-browser-item_skeleton_true"><div class="jodit-ui-browser-item__image"></div><div class="jodit-ui-browser-item__info"></div></div>');["view","size"].forEach(i=>{let n=this.mods[i];n&&t.classList.add(`jodit-ui-browser-item_${i}_${n}`)}),this.container.appendChild(t),this.skeletons.push(t)}}clearSkeletons(){this.skeletons.forEach(t=>t.remove()),this.skeletons.length=0}build(t){let i=this.reconcile(t);t.slice(i>-1?i:this.elements.length).forEach(t=>{let i=new u.UIBrowserItem(this.jodit,t);Object.keys(this.mods).forEach(t=>{i.setMod(t,this.mods[t])}),this.append(i)}),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)<this.j.o.pixelOffsetLoadNewChunk&&this.j.loadingManager.loadItemsChunk()}onAreaContextMenu(t){let{target:i}=t;if(!(a.Dom.isNode(i)&&this.elements.some(t=>t.container.contains(i))))return this.j.e.fire("contextmenuArea.filebrowser",t),!1}onDragOver(t){t.preventDefault(),this.setMod("dragover",!0)}onDragLeave(t){t.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){h.UISelectItems.install(this)}static intersectRect(t,i){return!(i.left>t.left+t.width||i.left+i.width<t.left||i.top>t.top+t.height||i.top+i.height<t.top)}onSelectItems(t){let i=[];this.elements.forEach(n=>{let o=(0,l.position)(n.container);p.intersectRect(o,t)&&i.push(n.item)}),this.stateManager.state.activeElements=i}constructor(t,i){super(t),(0,o._)(this,"stateManager",void 0),(0,o._)(this,"syncMod",void 0),(0,o._)(this,"skeletons",void 0),this.stateManager=i,this.syncMod=!0,this.skeletons=[],this.addItemsSelector()}}(0,r.__decorate)([(0,s.watch)(":afterResize"),(0,s.watch)(":resize"),(0,s.watch)("container:scroll"),(0,s.throttle)()],p.prototype,"onScrollLoadChunk",null),(0,r.__decorate)([(0,s.watch)("container:contextmenu")],p.prototype,"onAreaContextMenu",null),(0,r.__decorate)([(0,s.watch)("container:dragover")],p.prototype,"onDragOver",null),(0,r.__decorate)([(0,s.watch)(["container:dragleave","container:drop"])],p.prototype,"onDragLeave",null),p=(0,r.__decorate)([s.component],p)},99413:function(t,i,n){"use strict";var o=n(81122),r=n.n(o),s=n(49377),a=n.n(s),l=n(46425),c=n.n(l),d=n(86820),u=n.n(d),h=n(36576),p=n.n(h),f=n(27622),m=n.n(f),g=n(89687),b=n.n(g);n(12153).Icon.set("map",c()).set("edit-hand",a()).set("edit-polygon",p()).set("edit-marker",u()).set("edit-text",b()).set("edit-polyline",m()).set("edit-circle",r())},55029:function(t,i,n){"use strict";var o=n(17298),r=n(6441);r.Config.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},r.Config.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:o.COMMAND_OPEN_DIALOG};let s=t=>({icon:"edit-"+t,isActive:i=>i.buffer.get("createMode.gm")===t,exec(i){i.e.fire("changeCreateMode.gm",t)}});r.Config.prototype.controls.gm={hand:s("hand"),marker:s("marker"),polyline:s("polyline"),polygon:s("polygon"),circle:s("circle"),text:s("text")}},482:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(55029),n(99413);var s=n(17298),a=n(61818),l=n(67912),c=n(92931),d=n(65805),u=n(4774),h=n(82758),p=n(65478),f=n(21537),m=n(50911),g=n(62843),b=n(78584),y=n(92762),w=n(2692);window.JoditGoogleReadyHandler=l.GoogleReadyHandler;class _ extends m.Plugin{className(){return"google-maps"}afterInit(t){t.registerCommand(s.COMMAND_OPEN_DIALOG,()=>{this.openMapEditor(null,{})})}beforeDestruct(t){}onOpenOnDblClick(t){if(t.dataset.googleMaps){let i;try{i=JSON.parse(this.j.ow.atob(t.dataset.googleMaps))}catch{}return this.openMapEditor(t,i),!1}}async openMapEditor(t,i){let n=this.j,o=this.getDialog(),r=this.j.o.googleMaps.saveStateInStorage?o.storage.get(s.STORAGE_KEY):void 0,{apiUrl:a}=this.jodit.o.googleMaps;(0,l.isApiAvailable)()||(0,f.appendScriptAsync)(this.jodit,a.replace(/\${([^}]+)}/g,(t,i)=>this.get(i)??""));let p={type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size,...r,...i},m=new u.UIMap(o,p,this.j.options);m.container.classList.add(o.getFullElName("map"));let b=new d.UIComboBox(n,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0);b.container.classList.add(o.getFullElName("search")),this.j.async.promise(t=>{if((0,l.isApiAvailable)())return void t(0);let i=()=>{(0,l.isApiAvailable)()?t(0):this.j.async.setTimeout(i,100)};i(),(0,l.googleReady)(t)}).then(()=>{m.setStatus("ready"),b.setStatus("ready")}),this.j.e.on(b,"select",(t,i)=>{i?m.map.fitBounds(i):t&&(m.state.center=[t.lat(),t.lng()])}),r||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition(t=>{m.state.center=[t.coords.latitude,t.coords.longitude]},()=>{m.state.center=this.j.o.googleMaps.map.defaultCenter}):m.state.center=this.j.o.googleMaps.map.center),o.setSize(...n.o.googleMaps.dialog.size).setHeader([b," ",(0,g.Button)(n,"eye").onAction(()=>{let t=this.jodit.createInside.element("img");t.src=(0,c.staticUrl)(m),t.dataset.googleMaps=btoa(m.json());let i={value:t.outerHTML};this.onAfterGetValueFromEditor(i),n.execCommand("preview",null,i.value)})]).setContent((0,y.TabsWidget)(n,[{name:"Map",icon:"map",content:m},{name:"Settings",content:new u.UIMapsPropsForm(n,m.state)},{name:"Controls",icon:"menu",content:new u.UIMapsControlsForm(n,m.state)}])).setFooter([(0,g.Button)(n,"cancel","Cancel","default").onAction(()=>o.close()),(0,g.Button)(n,"ok",t?"Save":"Insert","primary").onAction(()=>{m.destruct(),b.destruct(),o.e.off("beforeClose",w),o.close(),this.insertMap(t,m)})]).open();let w=()=>{if(m.state.elements.length&&JSON.stringify(m.state.elements)!==JSON.stringify(p.elements)&&!h.IS_TEST&&!confirm(this.i18n("Are you sure?")))return!1;m.destruct(),b.destruct(),o.e.off("beforeClose",w)};o.e.on("beforeClose",w)}getDialog(){if(!this.dialog){let t=new b.Dialog({language:this.j.o.language});t.container.classList.add(this.getFullElName("")),this.dialog=t}return this.dialog}insertMap(t,i){let n=t??this.jodit.createInside.element("img");n.src=(0,c.staticUrl)(i),n.dataset.googleMaps=btoa(i.json()),t||this.jodit.s.insertImage(n)}onBeforeSetNativeEditorValue(t){t.value=t.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")}onAfterGetValueFromEditor(t,i){this.j.o.googleMaps.useStaticImage||i===h.SOURCE_CONSUMER||(t.value=t.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,(t,i,n,o,r,s)=>{let l={};try{l=JSON.parse(this.j.ow.atob(r))}catch{}return`${i} id="${l.uid}" ${n}data-google-maps${n}=${o}${r}${o}${s}${(0,a.generateJSScript)(this.j,l)}`}))}constructor(...t){super(...t),(0,o._)(this,"buttons",[{group:"media",name:"googleMaps"}]),(0,o._)(this,"dialog",null)}}(0,o._)(_,"requires",["license","color-picker"]),(0,r.__decorate)([(0,p.watch)("?:openOnDblClick")],_.prototype,"onOpenOnDblClick",null),(0,r.__decorate)([(0,p.watch)(":beforeSetNativeEditorValue")],_.prototype,"onBeforeSetNativeEditorValue",null),(0,r.__decorate)([(0,p.watch)(":afterGetValueFromEditor")],_.prototype,"onAfterGetValueFromEditor",null),w.JoditPro.plugins.add("google-maps",_)},17298:function(t,i,n){"use strict";n.d(i,{COMMAND_OPEN_DIALOG:function(){return r},STORAGE_KEY:function(){return o}});let o="googleMapsState",r="googleMapsDialog"},61818:function(t,i,n){"use strict";n.d(i,{generateJSScript:function(){return r}});var o=n(36409);function r(t,i){return`<script class="jodit-google-maps-init" type="text/javascript">
|
|
472
472
|
var imgMap = document.getElementById('${i.uid}'),
|
|
473
473
|
box = document.createElement('div'),
|
|
474
474
|
mapBox = document.createElement('div'),
|
|
@@ -600,7 +600,7 @@ ${s}`.trim();n?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
|
|
|
600
600
|
</div>`}appendChildToContainer(){}constructor(t,i,n){super(t),(0,o._)(this,"options",void 0),(0,o._)(this,"drawingManager",void 0),(0,o._)(this,"toolbar",void 0),(0,o._)(this,"state",void 0),(0,o._)(this,"mapElements",void 0),(0,o._)(this,"apiLoaded",void 0),(0,o._)(this,"mapInitialized",void 0),(0,o._)(this,"map",void 0),(0,o._)(this,"layers",void 0),this.options=n,this.toolbar=new g.ToolbarCollection(this.jodit),this.state={uid:"jd"+(0,h.uniqueUid)()+new Date().toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,i),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const r=this.getElm("map-palette");(0,p.assert)(null!=r,"palette element does not exists"),r.appendChild(this.toolbar.container)}}(0,r.__decorate)([(0,c.hook)("ready")],y.prototype,"onReady",null),(0,r.__decorate)([(0,u.watch)("?:changeCreateMode.gm")],y.prototype,"changeCreateMode",null),(0,r.__decorate)([(0,u.watch)("state.mode")],y.prototype,"onChangeMode",null),(0,r.__decorate)([(0,u.watch)("state.elements")],y.prototype,"onChangeElementsList",null),(0,r.__decorate)([(0,u.watch)("state.center"),(0,d.wait)(t=>t.mapInitialized),(0,l.debounce)()],y.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,u.watch)("state.zoom"),(0,l.debounce)()],y.prototype,"onChangeZoom",null),(0,r.__decorate)([(0,u.watch)("state.controls")],y.prototype,"onChangeControls",null),(0,r.__decorate)([(0,u.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,d.wait)(t=>t.mapInitialized),(0,l.debounce)()],y.prototype,"onChangeBound",null),(0,r.__decorate)([(0,u.watch)("state.size"),(0,l.debounce)()],y.prototype,"onChangeSize",null),(0,r.__decorate)([(0,u.watch)("state.type")],y.prototype,"onChangeMapType",null),(0,r.__decorate)([(0,u.watch)("state.layer")],y.prototype,"onChangeLayer",null)},22125:function(t,i,n){"use strict";n.d(i,{addNewInState:function(){return r}});var o=n(67912);function r(t){switch(this.state.mode){case"polyline":case"polygon":{let{mode:i}=this.state;this.state.elements=[...this.state.elements,{type:i,coordinates:(0,o.pathToArray)(t.getPath()),...this.options.googleMaps.map.defaultStates[i]}];break}case"circle":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getCenter()?.lat()??0,t.getCenter()?.lng()??0],radius:t.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break;case"marker":this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getPosition()?.lat()??0,t.getPosition()?.lng()??0],...this.options.googleMaps.map.defaultStates.marker}]}}},1475:function(t,i,n){"use strict";n.d(i,{initOrUpdateElementFromState:function(){return d}});var o=n(53454),r=n(11079),s=n(72690),a=n(580),l=n(12153),c=n(67912);function d(t,i){let n,d=this.mapElements[i];if(d){if(d.state.type===t.type)return s.updateStateAndGme.call(this,t,i);d.gme.setMap(null)}switch(t.type){case"text":n=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":n=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?l.Icon.get(t.icon):void 0,map:this.map});break;case"polyline":case"polygon":{let i=(0,c.arrayToPath)(t.coordinates);n=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:i,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1})}break;case"circle":n=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:t.fillOpacity??1})}let u={type:t.type,uid:(0,a.uniqueUid)(),state:t,gme:n};"dragend radius_changed center_changed".split(" ").forEach(t=>n.addListener(t,()=>o.onChangeGeometries.call(this,u,i))),("polygon"===u.type||"polyline"===u.type)&&"insert_at set_at remove_at".split(" ").forEach(t=>u.gme.getPath().addListener(t,()=>o.onChangeGeometries.call(this,u,i))),n.addListener("click",()=>r.openPropsDialog.call(this,u,i)),this.mapElements[i]=u}},53454:function(t,i,n){"use strict";n.d(i,{onChangeGeometries:function(){return s}});var o=n(72690),r=n(67912);function s(t,i){switch(t.type){case"polyline":case"polygon":{let n=(0,r.pathToArray)(t.gme.getPath()),s={...t.state,coordinates:n};o.updateStateAndGme.call(this,s,i,!0);break}case"marker":{let n=t.gme.getPosition(),r={...t.state,coordinates:[n?.lat()??0,n?.lng()??0]};o.updateStateAndGme.call(this,r,i,!0);break}case"circle":{let n=t.gme.getCenter(),r={...t.state,radius:t.gme.getRadius(),coordinates:[n?.lat()??0,n?.lng()??0]};o.updateStateAndGme.call(this,r,i,!0)}}}},11079:function(t,i,n){"use strict";n.d(i,{openPropsDialog:function(){return l}});var o=n(47660),r=n(72690),s=n(90835);function a(){let t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",()=>{this.setMod("info-opened",!0)}),t.addListener("closeclick",()=>{this.setMod("info-opened",!1)}),t}function l(t,i){let n;switch(this.state.mode="hand",t.type){case"polyline":n=new s.UIPolylineEditor(this.jodit,t.state,this.options);break;case"marker":n=new s.UIMarkerEditor(this.jodit,t.state,this.options);break;case"circle":case"polygon":n=new s.UIPolygonEditor(this.jodit,t.state,this.options)}if(!n)return;this.append(n),this.j.e.on(n,"bin",()=>{o.removeElement.call(this,t)}).on(n,"change",(n,o)=>{r.updateStateAndGme.call(this,{...t.state,[n]:o},i)});let l=a.call(this);if("polygon"===t.type||"polyline"===t.type){let i=t.gme.getPath().getAt(0);l.setPosition(i)}"circle"===t.type&&l.setPosition(t.gme.getCenter()),l.setContent(n.container),l.open(this.map,t.gme),l.addListener("closeclick",()=>{n&&(this.remove(n),n.destruct())})}},47660:function(t,i,n){"use strict";function o(t){let i=this.mapElements.indexOf(t);-1!==i&&(this.mapElements[i].gme.setMap(null),this.mapElements.splice(i,1),this.state.elements.splice(i,1),this.state.elements=[...this.state.elements])}n.d(i,{removeElement:function(){return o}})},72690:function(t,i,n){"use strict";n.d(i,{updateStateAndGme:function(){return r}});var o=n(67912);function r(t,i,n=!1){let s=this.mapElements[i];if(s.state===t||s.state.type!==t.type)return;let a=s.state;if(!n){let i;for(i in t){let n=t[i],r=a[i];if(null!=n&&(null==r||n.toString()!==r.toString()))switch(i){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(s.type){case"polyline":case"circle":case"polygon":s.gme.setOptions({[i]:n})}break;case"coordinates":switch(s.type){case"polygon":case"polyline":s.gme.setPath((0,o.arrayToPath)(n))}}}}s.state=t,this.state.elements[i]=t}},8073:function(t,i,n){"use strict";n.d(i,{UIMapsControlsForm:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIForm{className(){return"UIMapsControlsForm"}onChangeSize(t,i){this.state.controls={...this.state.controls,[t]:"true"===i}}constructor(t,i){super(t),(0,o._)(this,"state",void 0),this.state=i;const n={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(n);this.append(r.map(i=>new a.UICheckbox(t,{label:n[i],name:i,checked:this.state.controls[i],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,i)})))}}l=(0,r.__decorate)([s.component],l)},83039:function(t,i,n){"use strict";n.d(i,{UIMapsPropsForm:function(){return c}});var o=n(82749),r=n(31635),s=n(65478),a=n(76078),l=n(67510);class c extends l.UIForm{className(){return"UIMapsPropsForm"}onChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container);this.state.size=[parseInt(t?.value,10)||0,parseInt(i?.value,10)||0]}onExternalChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container),[n,o]=this.state.size;n.toString()!==t.value&&(t.value=n.toString()),o.toString()!==i.value&&(i.value=o.toString())}onChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container);this.state.center=[parseFloat(t?.value)||0,parseFloat(i?.value)||0]}onExternalChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container),[n,o]=this.state.center;n.toString()!==t.value&&(t.value=n.toString()),o.toString()!==i.value&&(i.value=o.toString())}onExternalChangeType(){let{mapType:t}=(0,a.refs)(this.container);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){let{layer:t}=(0,a.refs)(this.container);this.state.layer!==t.value&&(t.value=this.state.layer)}constructor(t,i){super(t),(0,o._)(this,"state",void 0),this.state=i;const[n,r]=i.size,[s,a]=i.center;this.append([new l.UIInput(t,{label:"Width",name:"width",value:n,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Height",name:"height",value:r,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Latitude",name:"lat",value:s,onChange:this.onChangeCenter}),new l.UIInput(t,{label:"Longitude",name:"lng",value:a,onChange:this.onChangeCenter}),new l.UISelect(t,{label:"Map type",value:i.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange(t){i.type=t}}),new l.UISelect(t,{label:"Layer",value:i.layer??"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange(t){i.layer=t}})])}}(0,r.__decorate)([s.autobind],c.prototype,"onChangeSize",null),(0,r.__decorate)([(0,s.watch)("state.size")],c.prototype,"onExternalChangeSize",null),(0,r.__decorate)([s.autobind],c.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.center"])],c.prototype,"onExternalChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.type"])],c.prototype,"onExternalChangeType",null),(0,r.__decorate)([(0,s.watch)(["state.layer"])],c.prototype,"onExternalChangeLayer",null),c=(0,r.__decorate)([s.component],c)},11093:function(t,i,n){"use strict";n.d(i,{UIWysiwyg:function(){return c}});var o=n(31635),r=n(87325),s=n(38837),a=n(48538),l=n(2692);class c extends a.UIElement{className(){return"UIWysiwyg"}render(){return`<div>
|
|
601
601
|
<div class='&__label'>~Info~</div>
|
|
602
602
|
<div class='&__editor'></div>
|
|
603
|
-
</div>`}constructor(t,i,n,o){super(t);const r=this.getElm("editor");(0,s.assert)(null!=r,"editor element does not exist");const a=l.JoditPro.make(r,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...i});a.value=n,a.e.on("change",()=>o(a.value))}}c=(0,o.__decorate)([r.component],c)},40650:function(t,i,n){"use strict";var o=n(82749),r=n(25088),s=n.n(r),a=n(6441),l=n(21537),c=n(50911),d=n(59451),u=n(2692);a.Config.prototype.controls.google={tooltip:"Google search",icon:s(),isDisabled:t=>(0,d.isEditorEmpty)(t.editor),command:"startSearch"};class h extends c.Plugin{afterInit(t){t.registerCommand("startSearch",{exec(){let i,{s:n}=t;if(i=n.isCollapsed()?n.current()?.parentElement?.innerText:n.sel?.toString()){let t="https://www.google.com/search?q="+encodeURIComponent((0,l.trim)(i));window.open(t,"_blank")}}})}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"google",group:"search"}])}}(0,o._)(h,"requires",["license"]),u.JoditPro.plugins.add("google-search",h)},36347:function(t,i,n){"use strict";n(6441).Config.prototype.highlightSignature={processDelay:0,processInChunkCount:300,schema:{},excludeTags:["pre"]}},46958:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(36347);var s=n(65478),a=n(2748),l=n(29960),c=n(20356),d=n(2692);class u extends c.Plugin{afterInit(t){Object.keys(t.o.highlightSignature.schema).length&&(t.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",u.removeUtilWrappers),this.walkNodes())}beforeDestruct(t){t.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",u.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:t}=this,i=t.ed.createNodeIterator(t.editor,NodeFilter.SHOW_TEXT);this.abortController?.abort(),this.workLoop(i)}runWorker(t){let i;this.j.e.mute();let n=0,{processInChunkCount:o}=this.j.o.highlightSignature;try{do{if(n+=1,!(i=t.nextNode())||this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&o>n)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(t){this.abortController=new AbortController,this.j.async.schedulerPostTask(()=>this.runWorker(t),{delay:this.j.o.highlightSignature.processDelay}).catch(()=>null)}checkNormalizing(t){return!!a.Dom.isText(t.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(t){if(u.hasUtilWrapper(t))return;let i=t.nodeValue;if(null==i)return;let{j:n}=this,o=n.o.highlightSignature;for(let n in o.schema){let r=RegExp(n);if(r.test(i)){let s=i.match(r);if(!s||void 0===s.index)continue;let l=o.schema[n](this.j,s);if(l){a.Dom.markTemporary(l,{dataHighlightSchema:n}),this.replaceMatchedTextToElm(t,i,s,l);return}}}}replaceMatchedTextToElm(t,i,n,o){let{j:r}=this,{range:s}=r.s,l=s.startContainer===t,c=s.startOffset,d=n.index??0;t.nodeValue=i.substring(0,d);let u=i.substring(d+n[0].length);if(u.length){let i=r.createInside.text(u);a.Dom.after(t,i)}o.innerText=n[0],a.Dom.after(t,o),l&&this.restoreCursorPosition(c,t,o.firstChild,o.nextSibling)}static hasUtilWrapper(t){return a.Dom.isTemporary(t.parentElement)}static removeUtilWrappers(t){t.value=a.Dom.replaceTemporaryFromString(t.value)}restoreCursorPosition(t,...i){for(let n of i)if(n&&n.nodeValue){let i=n.nodeValue;if(i.length>=t){let i=this.j.s.createRange();i.setStart(n,t),this.j.s.selectRange(i,!1);break}t-=i.length}}checkUtilsBoxToSchema(){a.Dom.temporaryList(this.j.editor).forEach(t=>{let i=(0,l.attr)(t,"dataHighlightSchema");if(!i)return;let n=RegExp(i),o=t.innerText??"";(!n.test(o)||o.replace(n,"").length)&&(this.j.s.save(),a.Dom.unwrap(t),this.j.s.restore())})}constructor(...t){super(...t),(0,o._)(this,"abortController",null)}}(0,o._)(u,"requires",["license"]),(0,r.__decorate)([(0,s.debounce)()],u.prototype,"walkNodes",null),(0,r.__decorate)([s.autobind],u.prototype,"runWorker",null),d.JoditPro.plugins.add("highlight-signature",u)},88092:function(t,i,n){"use strict";var o=n(67008),r=n.n(o),s=n(6441),a=n(2748),l=n(68345);s.Config.prototype.controls.iframeEditor={icon:r(),tooltip:"Iframe Editor",exec(t,i){a.Dom.isTag(i,"jodit")&&a.Dom.isTag(i.firstElementChild,"iframe")&&(i=i.firstElementChild),t.e.fire("toggleIframeEditor",a.Dom.isTag(i,"iframe")?i:null)}},(0,l.isArray)(s.Config.prototype.popup.iframe)&&s.Config.prototype.popup.iframe.push("iframeEditor")},1050:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(88092);var s=n(29744),a=n(65478),l=n(22732),c=n(21537),d=n(50911),u=n(62843),h=n(41409),p=n(2692);class f extends d.Plugin{afterInit(t){t.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(t){this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),t&&!l.Dom.isTag(t,"iframe")&&(t=void 0);let i=new s.UIIframeEditor(this.__dialog,{src:t?.src??"",name:t?.name??"",title:t?.title??"",frameBorder:t?.frameBorder==="1"||t?.frameBorder==="yes",width:t?.offsetWidth??700,height:t?.offsetHeight??400});this.__dialog.setContent(i);let n=this.__dialog;n.isOpened?n.close():(n.setFooter([(0,u.Button)(n,"cancel","Cancel","default").onAction(()=>n.close()),(0,u.Button)(n,"ok",t?"Update":"Insert","primary").onAction(()=>{if(!i.srcField.value){i.srcField.validate(),i.srcField.focus();return}t||(t=this.j.createInside.element("iframe"),this.j.s.insertNode(t,!0,!1)),t.className=i.state.className||"",(0,c.attr)(t,{src:i.state.src,title:i.state.title,name:i.state.name,frameborder:i.state.frameBorder?"1":"0",width:i.state.width,height:i.state.height}),l.Dom.isTag(t.parentElement,"jodit")&&(0,c.css)(t.parentElement,{width:i.state.width,height:i.state.height}),this.jodit.e.fire("synchro"),n.close()})]).open(),this.jodit.async.requestIdleCallback(()=>{i.srcField.focus()}))}onDblClick(t){l.Dom.isTag(t.target,"iframe")&&this.toggleEditor(t.target)}beforeDestruct(t){this.__dialog?.destruct()}constructor(...t){super(...t),(0,o._)(this,"buttons",[{group:"form",name:"iframeEditor"}]),(0,o._)(this,"__dialog",void 0)}}(0,o._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([a.autobind],f.prototype,"toggleEditor",null),(0,r.__decorate)([(0,a.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("iframe-editor",f)},29744:function(t,i,n){"use strict";n.d(i,{UIIframeEditor:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIGroup{className(){return"UIIframeEditor"}constructor(t,i){super(t),(0,o._)(this,"state",{src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""}),(0,o._)(this,"srcField",void 0),Object.assign(this.state,i),this.srcField=new a.UIInput(t,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:t=>{this.state.src=t}}),this.append([this.srcField,new a.UIBlock(t,[new a.UIInput(t,{label:"Width",type:"number",value:this.state.width,onChange:t=>{this.state.width=parseInt(t,10)||0}}),new a.UIInput(t,{label:"Height",type:"number",value:this.state.height,onChange:t=>{this.state.height=parseInt(t,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a.UIBlock(t,[new a.UICheckbox(t,{label:"Show frame border",checked:!!i.frameBorder,onChange:t=>{this.state.frameBorder="true"===t}})]),new a.UIInput(t,{label:"Name",value:this.state.name,type:"text",onChange:t=>{this.state.name=t}}),new a.UIInput(t,{label:"Title",value:this.state.title,type:"text",onChange:t=>{this.state.title=t}})])}}l=(0,r.__decorate)([s.component],l)},76542:function(t,i,n){"use strict";n.d(i,{ProImageEditor:function(){return d}});var o=n(82749),r=n(85013),s=n(6441),a=n(91907),l=n(10830),c=n(78584);class d extends a.ViewComponent{className(){return"ImageEditorPro"}async open(t,i){let n=this.j,o=s.Config.defaultOptions.imageEditorPro,a=n.c.div("jodit-image-editor-pro");a.style.width="100%",a.style.height="100%";let l=new c.Dialog({language:n.o.language});l.setSize(o.dialog.width,o.dialog.height),l.setContent(a),l.open();let d=null,u=null,h=()=>{u?.(),u=null,d?.destroy(),d=null,l.close()};l.e.on("beforeClose",()=>{u?.(),u=null,d?.destroy(),d=null}),d=new r.ImageEditor({container:a,state:{showToolbar:!1,status:"loading"},onSave:n=>{this.persist(d,t,void 0,n,i,h)},onSaveAs:n=>{this.saveAs(d,t,n,i,h)}}),u=this.mountToolbar(l,d);try{let i=await this.loadImage(t);await d.fromBlob(i)}catch(t){d?.update({status:"error",error:t instanceof Error?t.message:t+""}),this.error(t)}}mountToolbar(t,i){let n=this.j,o=(0,l.Button)(n,{icon:{name:"save"},text:n.i18n("Save")},"primary"),s=(0,l.Button)(n,{icon:{name:"save"},name:"save-as",text:n.i18n("Save as")}),a=n.c.span("jodit-image-editor-pro__size"),c=(0,l.Button)(n,r.ICONS.minus),d=n.c.span("jodit-image-editor-pro__zoom"),u=(0,l.Button)(n,r.ICONS.plus),h=(0,l.Button)(n,"update",n.i18n("Reset")),p=(0,l.Button)(n,"undo",n.i18n("Undo")),f=(0,l.Button)(n,"redo",n.i18n("Redo"));c.setState({tooltip:"Zoom out"}),u.setState({tooltip:"Zoom in"});let m=null;o.onAction(()=>{m=o,i.save()}),s.onAction(()=>{m=s,i.saveAs()}),c.onAction(()=>i.update({zoom:i.state.zoom/1.2})),u.onAction(()=>i.update({zoom:1.2*i.state.zoom})),h.onAction(()=>i.reset()),p.onAction(()=>i.update({history:{step:-1}})),f.onAction(()=>i.update({history:{step:1}}));let g=(...t)=>{let i=n.c.div("jodit-image-editor-pro__group");return i.style.display="flex",i.style.alignItems="center",i.style.gap="4px",t.forEach(t=>i.appendChild(t)),i},b=n.c.div("jodit-image-editor-pro__toolbar");b.style.display="flex",b.style.alignItems="center",b.style.gap="12px",b.style.width="100%",a.style.opacity="0.75",d.style.minWidth="3.5em",d.style.textAlign="center",b.appendChild(g(o.container,s.container)),b.appendChild(g(a,c.container,d,u.container));let y=g(h.container,p.container,f.container);y.style.marginLeft="auto",b.appendChild(y),t.setHeader(b);let w="jodit-image-editor-pro__button_busy",_=t=>{let i=r.selectors.selectOutputSize(t),n="exporting"===t.status,l=n||"loading"===t.status,c=t.busyVisible,u=n&&(c??!0);n||(m=null),o.setState({disabled:!t.source||l}),s.setState({disabled:!t.source||l}),o.container.classList.toggle(w,u&&m!==s),s.container.classList.toggle(w,u&&m===s),h.setState({disabled:!r.selectors.selectIsDirty(t)}),p.setState({disabled:!r.selectors.selectCanUndo(t)}),f.setState({disabled:!r.selectors.selectCanRedo(t)}),a.textContent=i?`${i.width} \xd7 ${i.height}`:"";let g=r.selectors.selectViewportFit(t),b=g?Math.round(100*g.scale):Math.round(100*t.zoom);d.textContent=`${b}%`};_(i.state);let C=i.store.subscribe(_);return()=>{C(),[o,s,c,u,h,p,f].forEach(t=>t.destruct())}}saveAs(t,i,n,o,r){this.j.prompt("Enter new name","Save in new file",s=>{let a=(s||"").trim();if(!a)return this.j.alert("The name should not be empty"),!1;this.persist(t,i,a,n,o,r)})}async persist(t,i,n,o,r,s){t?.update({status:"exporting"});try{let{w:t,h:a}=await this.blobSize(o),l=await this.uploadEdited(i,o,n),c=()=>{s(),this.j.e.fire("update.filebrowser")};r(n,this.coreSupportsSaved()?{action:"saved",box:{w:t,h:a},newPath:l||void 0}:{action:"resize",box:{w:t,h:a}},c,t=>{s(),this.error(t)})}catch(t){s(),this.error(t)}}async uploadEdited(t,i,n){let{source:o,path:r,name:s}=await this.j.dataProvider.getPathByUrl(t),a=this.connectorUrl();if(!a)throw Error("No connector configured for imageSave");let l=(n||s||"image.png")+"",c=new FormData;c.append("action","imageSave"),c.append("source",(o??"")+""),c.append("path",(r??"")+""),c.append("name",l),c.append("files[0]",i,l);let d=a.includes("?")?"&":"?",u=await fetch(`${a}${d}action=imageSave`,{method:"POST",body:c,credentials:"include"}),h=await u.json();if(!h.success)throw Error(h.message||"Failed to save the edited image");return h.data?.newPath??""}coreSupportsSaved(){let[t=0,i=0,n=0]=(this.j.getVersion?this.j.getVersion():"").split(".").map(t=>parseInt(t,10)||0);return t>4||4===t&&(i>12||12===i&&n>=34)}connectorUrl(){let t=this.j.o.ajax?.url,i=this.j.o.uploader?.url;return"string"==typeof t&&t?t:"string"==typeof i&&i?i:""}async loadImage(t){let i=this.connectorUrl();if(i)try{return await this.loadViaConnector(i,t)}catch{}let n=t.includes("?")?"&":"?",o=await fetch(`${t}${n}_tst=${Date.now()}`,{credentials:"include"});if(!o.ok)throw Error(`Failed to load image (${o.status})`);return o.blob()}async loadViaConnector(t,i){let{source:n,path:o,name:r}=await this.j.dataProvider.getPathByUrl(i),s=new FormData;s.append("action","imageLoad"),s.append("source",(n??"")+""),s.append("path",(o??"")+""),s.append("name",(r??"")+"");let a=t.includes("?")?"&":"?",l=await fetch(`${t}${a}action=imageLoad`,{method:"POST",body:s,credentials:"include"}),c=await l.json();if(!c.success||!c.data?.content)throw Error(c.message||"Failed to load the image");return(await fetch(c.data.content)).blob()}async blobSize(t){let i=await createImageBitmap(t),n={w:i.width,h:i.height};return i.close(),n}error(t){this.j.e.fire("errorMessage",t.message)}constructor(...t){super(...t),(0,o._)(this,"isProImageEditor",!0)}}},45719:function(t,i,n){"use strict";n(6441).Config.prototype.imageEditorPro={dialog:{width:"90%",height:"90%"}}},98270:function(t,i,n){"use strict";var o=n(82749);n(45719);var r=n(76542),s=n(50911),a=n(2692);class l extends s.Plugin{afterInit(t){a.JoditPro.modules.ImageEditor=r.ProImageEditor}beforeDestruct(t){}}(0,o._)(l,"requires",["license"]),a.JoditPro.plugins.add("imageEditorPro",l)},12373:function(t,i,n){"use strict";n(25187),n(58858),n(21246),n(49934),n(3115),n(41810),n(61328),n(45632),n(8390),n(29528),n(85174),n(90882),n(97068),n(482),n(40650),n(46958),n(98270),n(1050),n(95618),n(74398),n(79850),n(41406),n(47682),n(75554),n(61886),n(19374),n(73098),n(13152)},41113:function(t,i,n){"use strict";var o=n(63643),r=n.n(o),s=n(6441);s.Config.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},s.Config.prototype.controls.keyboard={tooltip:"Keyboard",icon:r(),isActive:t=>!!t.e.fire("isKeyboardOpened"),command:"toggleKeyboard"},s.Config.prototype.controls.extraKeyboardButtons={}},95618:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(41113);var s=n(25241),a=n(6441),l=n(65478),c=n(27613),d=n(50911),u=n(67510),h=n(41409),p=n(2692);class f extends d.Plugin{afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",()=>this.__keyboard?.isOpened)}insertChar(t,i,n){this.j.s.insertNode(this.j.createInside.text(n))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new h.Dialog({toolbarButtonSize:"tiny"});let t=new s.UIKeyboard(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);let{showLayoutSwitcher:i,layoutSwitchList:n,layoutList:o}=this.j.o.keyboard;if(i){let i=new u.UISelect(this.__keyboard,{value:t.state.currentLayout,options:n.map(t=>({text:o[t]?.title??t,value:t})),onChange(i){t.state.currentLayout=i}});i.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(i)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(t){this.__keyboard?.destruct()}constructor(t){super(t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"insert",name:"keyboard"}]),(0,o._)(this,"__keyboard",void 0);const{extraKeyButtons:i,extraKeyGroup:n}=t.o.keyboard;i.length&&i.forEach((i,o)=>{let r=(0,c.isString)(i)?i:i.key,s=(0,c.isString)(i)||!i.hotkeys?["ctrl+"+(o+1)]:i.hotkeys;t.registerButton({name:"extraKeyboardButtons."+r,group:n});let{extraKeyboardButtons:l}=a.Config.defaultOptions.controls;l[r]={name:r,tooltip:r,args:[r],hotkeys:s,command:"insertChar"}})}}(0,o._)(f,"requires",["license"]),(0,r.__decorate)([l.autobind],f.prototype,"insertChar",null),(0,r.__decorate)([l.autobind],f.prototype,"toggleKeyboard",null),p.JoditPro.plugins.add("keyboard",f)},25241:function(t,i,n){"use strict";n.d(i,{UIKeyboard:function(){return _}});var o=n(82749),r=n(31635),s=n(82758),a=n(65478),l=n(43555),c=n(67510),d=n(27926),u=n.n(d),h=n(10690),p=n.n(h),f=n(91997),m=n.n(f),g=n(11699),b=n.n(g),y=n(98126),w=n.n(y);class _ extends c.UIElement{className(){return"UIKeyboard"}render(){let{layout:t,keySize:i}=this.j.options.keyboard,n=t.length;return`<div>${(()=>{let o=[];for(let r=0;n>r;r+=1){let n=[];for(let o=0;o<t[r].length;o+=1)n.push(`<div style="width:${i*t[r][o]}px;height:${i}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${n.join(`
|
|
603
|
+
</div>`}constructor(t,i,n,o){super(t);const r=this.getElm("editor");(0,s.assert)(null!=r,"editor element does not exist");const a=l.JoditPro.make(r,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...i});a.value=n,a.e.on("change",()=>o(a.value))}}c=(0,o.__decorate)([r.component],c)},40650:function(t,i,n){"use strict";var o=n(82749),r=n(25088),s=n.n(r),a=n(6441),l=n(21537),c=n(50911),d=n(59451),u=n(2692);a.Config.prototype.controls.google={tooltip:"Google search",icon:s(),isDisabled:t=>(0,d.isEditorEmpty)(t.editor),command:"startSearch"};class h extends c.Plugin{afterInit(t){t.registerCommand("startSearch",{exec(){let i,{s:n}=t;if(i=n.isCollapsed()?n.current()?.parentElement?.innerText:n.sel?.toString()){let t="https://www.google.com/search?q="+encodeURIComponent((0,l.trim)(i));window.open(t,"_blank")}}})}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"google",group:"search"}])}}(0,o._)(h,"requires",["license"]),u.JoditPro.plugins.add("google-search",h)},36347:function(t,i,n){"use strict";n(6441).Config.prototype.highlightSignature={processDelay:0,processInChunkCount:300,schema:{},excludeTags:["pre"]}},46958:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(36347);var s=n(65478),a=n(2748),l=n(29960),c=n(20356),d=n(2692);class u extends c.Plugin{afterInit(t){Object.keys(t.o.highlightSignature.schema).length&&(t.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",u.removeUtilWrappers),this.walkNodes())}beforeDestruct(t){t.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",u.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:t}=this,i=t.ed.createNodeIterator(t.editor,NodeFilter.SHOW_TEXT);this.abortController?.abort(),this.workLoop(i)}runWorker(t){let i;this.j.e.mute();let n=0,{processInChunkCount:o}=this.j.o.highlightSignature;try{do{if(n+=1,!(i=t.nextNode())||this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&o>n)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(t){this.abortController=new AbortController,this.j.async.schedulerPostTask(()=>this.runWorker(t),{delay:this.j.o.highlightSignature.processDelay}).catch(()=>null)}checkNormalizing(t){return!!a.Dom.isText(t.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(t){if(u.hasUtilWrapper(t))return;let i=t.nodeValue;if(null==i)return;let{j:n}=this,o=n.o.highlightSignature;for(let n in o.schema){let r=RegExp(n);if(r.test(i)){let s=i.match(r);if(!s||void 0===s.index)continue;let l=o.schema[n](this.j,s);if(l){a.Dom.markTemporary(l,{dataHighlightSchema:n}),this.replaceMatchedTextToElm(t,i,s,l);return}}}}replaceMatchedTextToElm(t,i,n,o){let{j:r}=this,{range:s}=r.s,l=s.startContainer===t,c=s.startOffset,d=n.index??0;t.nodeValue=i.substring(0,d);let u=i.substring(d+n[0].length);if(u.length){let i=r.createInside.text(u);a.Dom.after(t,i)}o.innerText=n[0],a.Dom.after(t,o),l&&this.restoreCursorPosition(c,t,o.firstChild,o.nextSibling)}static hasUtilWrapper(t){return a.Dom.isTemporary(t.parentElement)}static removeUtilWrappers(t){t.value=a.Dom.replaceTemporaryFromString(t.value)}restoreCursorPosition(t,...i){for(let n of i)if(n&&n.nodeValue){let i=n.nodeValue;if(i.length>=t){let i=this.j.s.createRange();i.setStart(n,t),this.j.s.selectRange(i,!1);break}t-=i.length}}checkUtilsBoxToSchema(){a.Dom.temporaryList(this.j.editor).forEach(t=>{let i=(0,l.attr)(t,"dataHighlightSchema");if(!i)return;let n=RegExp(i),o=t.innerText??"";(!n.test(o)||o.replace(n,"").length)&&(this.j.s.save(),a.Dom.unwrap(t),this.j.s.restore())})}constructor(...t){super(...t),(0,o._)(this,"abortController",null)}}(0,o._)(u,"requires",["license"]),(0,r.__decorate)([(0,s.debounce)()],u.prototype,"walkNodes",null),(0,r.__decorate)([s.autobind],u.prototype,"runWorker",null),d.JoditPro.plugins.add("highlight-signature",u)},88092:function(t,i,n){"use strict";var o=n(67008),r=n.n(o),s=n(6441),a=n(2748),l=n(68345);s.Config.prototype.controls.iframeEditor={icon:r(),tooltip:"Iframe Editor",exec(t,i){a.Dom.isTag(i,"jodit")&&a.Dom.isTag(i.firstElementChild,"iframe")&&(i=i.firstElementChild),t.e.fire("toggleIframeEditor",a.Dom.isTag(i,"iframe")?i:null)}},(0,l.isArray)(s.Config.prototype.popup.iframe)&&s.Config.prototype.popup.iframe.push("iframeEditor")},1050:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(88092);var s=n(29744),a=n(65478),l=n(22732),c=n(21537),d=n(50911),u=n(62843),h=n(41409),p=n(2692);class f extends d.Plugin{afterInit(t){t.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(t){this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),t&&!l.Dom.isTag(t,"iframe")&&(t=void 0);let i=new s.UIIframeEditor(this.__dialog,{src:t?.src??"",name:t?.name??"",title:t?.title??"",frameBorder:t?.frameBorder==="1"||t?.frameBorder==="yes",width:t?.offsetWidth??700,height:t?.offsetHeight??400});this.__dialog.setContent(i);let n=this.__dialog;n.isOpened?n.close():(n.setFooter([(0,u.Button)(n,"cancel","Cancel","default").onAction(()=>n.close()),(0,u.Button)(n,"ok",t?"Update":"Insert","primary").onAction(()=>{if(!i.srcField.value){i.srcField.validate(),i.srcField.focus();return}t||(t=this.j.createInside.element("iframe"),this.j.s.insertNode(t,!0,!1)),t.className=i.state.className||"",(0,c.attr)(t,{src:i.state.src,title:i.state.title,name:i.state.name,frameborder:i.state.frameBorder?"1":"0",width:i.state.width,height:i.state.height}),l.Dom.isTag(t.parentElement,"jodit")&&(0,c.css)(t.parentElement,{width:i.state.width,height:i.state.height}),this.jodit.e.fire("synchro"),n.close()})]).open(),this.jodit.async.requestIdleCallback(()=>{i.srcField.focus()}))}onDblClick(t){l.Dom.isTag(t.target,"iframe")&&this.toggleEditor(t.target)}beforeDestruct(t){this.__dialog?.destruct()}constructor(...t){super(...t),(0,o._)(this,"buttons",[{group:"form",name:"iframeEditor"}]),(0,o._)(this,"__dialog",void 0)}}(0,o._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([a.autobind],f.prototype,"toggleEditor",null),(0,r.__decorate)([(0,a.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("iframe-editor",f)},29744:function(t,i,n){"use strict";n.d(i,{UIIframeEditor:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIGroup{className(){return"UIIframeEditor"}constructor(t,i){super(t),(0,o._)(this,"state",{src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""}),(0,o._)(this,"srcField",void 0),Object.assign(this.state,i),this.srcField=new a.UIInput(t,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:t=>{this.state.src=t}}),this.append([this.srcField,new a.UIBlock(t,[new a.UIInput(t,{label:"Width",type:"number",value:this.state.width,onChange:t=>{this.state.width=parseInt(t,10)||0}}),new a.UIInput(t,{label:"Height",type:"number",value:this.state.height,onChange:t=>{this.state.height=parseInt(t,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a.UIBlock(t,[new a.UICheckbox(t,{label:"Show frame border",checked:!!i.frameBorder,onChange:t=>{this.state.frameBorder="true"===t}})]),new a.UIInput(t,{label:"Name",value:this.state.name,type:"text",onChange:t=>{this.state.name=t}}),new a.UIInput(t,{label:"Title",value:this.state.title,type:"text",onChange:t=>{this.state.title=t}})])}}l=(0,r.__decorate)([s.component],l)},76542:function(t,i,n){"use strict";n.d(i,{ProImageEditor:function(){return d}});var o=n(82749),r=n(85013),s=n(6441),a=n(91907),l=n(10830),c=n(78584);class d extends a.ViewComponent{className(){return"ImageEditorPro"}async open(t,i){let n=this.j,o=s.Config.defaultOptions.imageEditorPro,a=n.c.div("jodit-image-editor-pro");a.style.width="100%",a.style.height="100%";let l=new c.Dialog({language:n.o.language});l.setSize(o.dialog.width,o.dialog.height),l.setContent(a),l.open();let d=null,u=null,h=()=>{u?.(),u=null,d?.destroy(),d=null,l.close()};l.e.on("beforeClose",()=>{u?.(),u=null,d?.destroy(),d=null}),d=new r.ImageEditor({container:a,state:{showToolbar:!1,status:"loading"},onSave:n=>{this.persist(d,t,void 0,n,i,h)},onSaveAs:n=>{this.saveAs(d,t,n,i,h)}}),u=this.mountToolbar(l,d);try{let i=await this.loadImage(t);await d.fromBlob(i),n.e.fire("afterImageEditor")}catch(t){d?.update({status:"error",error:t instanceof Error?t.message:t+""}),this.error(t)}}mountToolbar(t,i){let n=this.j,o=(0,l.Button)(n,{icon:{name:"save"},text:n.i18n("Save")},"primary"),s=(0,l.Button)(n,{icon:{name:"save"},name:"save-as",text:n.i18n("Save as")}),a=n.c.span("jodit-image-editor-pro__size"),c=(0,l.Button)(n,r.ICONS.minus),d=n.c.span("jodit-image-editor-pro__zoom"),u=(0,l.Button)(n,r.ICONS.plus),h=(0,l.Button)(n,"update",n.i18n("Reset")),p=(0,l.Button)(n,"undo",n.i18n("Undo")),f=(0,l.Button)(n,"redo",n.i18n("Redo"));c.setState({tooltip:"Zoom out"}),u.setState({tooltip:"Zoom in"});let m=null;o.onAction(()=>{m=o,i.save()}),s.onAction(()=>{m=s,i.saveAs()}),c.onAction(()=>i.update({zoom:i.state.zoom/1.2})),u.onAction(()=>i.update({zoom:1.2*i.state.zoom})),h.onAction(()=>i.reset()),p.onAction(()=>i.update({history:{step:-1}})),f.onAction(()=>i.update({history:{step:1}}));let g=(...t)=>{let i=n.c.div("jodit-image-editor-pro__group");return i.style.display="flex",i.style.alignItems="center",i.style.gap="4px",t.forEach(t=>i.appendChild(t)),i},b=n.c.div("jodit-image-editor-pro__toolbar");b.style.display="flex",b.style.alignItems="center",b.style.gap="12px",b.style.width="100%",a.style.opacity="0.75",d.style.minWidth="3.5em",d.style.textAlign="center",b.appendChild(g(o.container,s.container)),b.appendChild(g(a,c.container,d,u.container));let y=g(h.container,p.container,f.container);y.style.marginLeft="auto",b.appendChild(y),t.setHeader(b);let w="jodit-image-editor-pro__button_busy",_=t=>{let i=r.selectors.selectOutputSize(t),n="exporting"===t.status,l=n||"loading"===t.status,c=t.busyVisible,u=n&&(c??!0);n||(m=null),o.setState({disabled:!t.source||l}),s.setState({disabled:!t.source||l}),o.container.classList.toggle(w,u&&m!==s),s.container.classList.toggle(w,u&&m===s),h.setState({disabled:!r.selectors.selectIsDirty(t)}),p.setState({disabled:!r.selectors.selectCanUndo(t)}),f.setState({disabled:!r.selectors.selectCanRedo(t)}),a.textContent=i?`${i.width} \xd7 ${i.height}`:"";let g=r.selectors.selectViewportFit(t),b=g?Math.round(100*g.scale):Math.round(100*t.zoom);d.textContent=`${b}%`};_(i.state);let C=i.store.subscribe(_);return()=>{C(),[o,s,c,u,h,p,f].forEach(t=>t.destruct())}}saveAs(t,i,n,o,r){this.j.prompt("Enter new name","Save in new file",s=>{let a=(s||"").trim();if(!a)return this.j.alert("The name should not be empty"),!1;this.persist(t,i,a,n,o,r)})}async persist(t,i,n,o,r,s){t?.update({status:"exporting"});try{let t=await this.blobSize(o),a={action:this.coreSupportsSaved()?"saved":"resize",box:t};void 0!==n?this.j.e.fire("afterImageEditorSave",a,n):this.j.e.fire("afterImageEditorSave",a);let l=await this.uploadEdited(i,o,n),c=()=>{s(),this.j.e.fire("update.filebrowser")};r(n,this.coreSupportsSaved()?{action:"saved",box:t,newPath:l||void 0}:{action:"resize",box:t},c,t=>{s(),this.error(t)})}catch(t){s(),this.error(t)}}async uploadEdited(t,i,n){let{source:o,path:r,name:s}=await this.j.dataProvider.getPathByUrl(t),a=this.connectorUrl();if(!a)throw Error("No connector configured for imageSave");let l=(n||s||"image.png")+"",c=new FormData;c.append("action","imageSave"),c.append("source",(o??"")+""),c.append("path",(r??"")+""),c.append("name",l),c.append("files[0]",i,l);let d=a.includes("?")?"&":"?",u=await fetch(`${a}${d}action=imageSave`,{method:"POST",body:c,credentials:"include"}),h=await u.json();if(!h.success)throw Error(h.message||"Failed to save the edited image");return h.data?.newPath??""}coreSupportsSaved(){let[t=0,i=0,n=0]=(this.j.getVersion?this.j.getVersion():"").split(".").map(t=>parseInt(t,10)||0);return t>4||4===t&&(i>12||12===i&&n>=34)}connectorUrl(){let t=this.j.o.ajax?.url,i=this.j.o.uploader?.url;return"string"==typeof t&&t?t:"string"==typeof i&&i?i:""}async loadImage(t){let i=this.connectorUrl();if(i)try{return await this.loadViaConnector(i,t)}catch{}let n=t.includes("?")?"&":"?",o=await fetch(`${t}${n}_tst=${Date.now()}`,{credentials:"include"});if(!o.ok)throw Error(`Failed to load image (${o.status})`);return o.blob()}async loadViaConnector(t,i){let{source:n,path:o,name:r}=await this.j.dataProvider.getPathByUrl(i),s=new FormData;s.append("action","imageLoad"),s.append("source",(n??"")+""),s.append("path",(o??"")+""),s.append("name",(r??"")+"");let a=t.includes("?")?"&":"?",l=await fetch(`${t}${a}action=imageLoad`,{method:"POST",body:s,credentials:"include"}),c=await l.json();if(!c.success||!c.data?.content)throw Error(c.message||"Failed to load the image");return(await fetch(c.data.content)).blob()}async blobSize(t){let i=await createImageBitmap(t),n={w:i.width,h:i.height};return i.close(),n}error(t){this.j.e.fire("errorMessage",t.message)}constructor(...t){super(...t),(0,o._)(this,"isProImageEditor",!0)}}},45719:function(t,i,n){"use strict";n(6441).Config.prototype.imageEditorPro={dialog:{width:"90%",height:"90%"}}},98270:function(t,i,n){"use strict";var o=n(82749);n(45719);var r=n(76542),s=n(50911),a=n(2692);class l extends s.Plugin{afterInit(t){let i=r.ProImageEditor,n=a.JoditPro.modules;n.ImageEditorCore||n.ImageEditor===i||(n.ImageEditorCore=n.ImageEditor),n.ImageEditor=i}beforeDestruct(t){}}(0,o._)(l,"requires",["license"]),a.JoditPro.plugins.add("imageEditorPro",l)},12373:function(t,i,n){"use strict";n(25187),n(58858),n(21246),n(49934),n(3115),n(41810),n(61328),n(45632),n(8390),n(29528),n(85174),n(90882),n(97068),n(482),n(40650),n(46958),n(98270),n(1050),n(95618),n(74398),n(79850),n(41406),n(47682),n(75554),n(61886),n(19374),n(73098),n(13152)},41113:function(t,i,n){"use strict";var o=n(63643),r=n.n(o),s=n(6441);s.Config.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},s.Config.prototype.controls.keyboard={tooltip:"Keyboard",icon:r(),isActive:t=>!!t.e.fire("isKeyboardOpened"),command:"toggleKeyboard"},s.Config.prototype.controls.extraKeyboardButtons={}},95618:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(41113);var s=n(25241),a=n(6441),l=n(65478),c=n(27613),d=n(50911),u=n(67510),h=n(41409),p=n(2692);class f extends d.Plugin{afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",()=>this.__keyboard?.isOpened)}insertChar(t,i,n){this.j.s.insertNode(this.j.createInside.text(n))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new h.Dialog({toolbarButtonSize:"tiny"});let t=new s.UIKeyboard(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);let{showLayoutSwitcher:i,layoutSwitchList:n,layoutList:o}=this.j.o.keyboard;if(i){let i=new u.UISelect(this.__keyboard,{value:t.state.currentLayout,options:n.map(t=>({text:o[t]?.title??t,value:t})),onChange(i){t.state.currentLayout=i}});i.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(i)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(t){this.__keyboard?.destruct()}constructor(t){super(t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"insert",name:"keyboard"}]),(0,o._)(this,"__keyboard",void 0);const{extraKeyButtons:i,extraKeyGroup:n}=t.o.keyboard;i.length&&i.forEach((i,o)=>{let r=(0,c.isString)(i)?i:i.key,s=(0,c.isString)(i)||!i.hotkeys?["ctrl+"+(o+1)]:i.hotkeys;t.registerButton({name:"extraKeyboardButtons."+r,group:n});let{extraKeyboardButtons:l}=a.Config.defaultOptions.controls;l[r]={name:r,tooltip:r,args:[r],hotkeys:s,command:"insertChar"}})}}(0,o._)(f,"requires",["license"]),(0,r.__decorate)([l.autobind],f.prototype,"insertChar",null),(0,r.__decorate)([l.autobind],f.prototype,"toggleKeyboard",null),p.JoditPro.plugins.add("keyboard",f)},25241:function(t,i,n){"use strict";n.d(i,{UIKeyboard:function(){return _}});var o=n(82749),r=n(31635),s=n(82758),a=n(65478),l=n(43555),c=n(67510),d=n(27926),u=n.n(d),h=n(10690),p=n.n(h),f=n(91997),m=n.n(f),g=n(11699),b=n.n(g),y=n(98126),w=n.n(y);class _ extends c.UIElement{className(){return"UIKeyboard"}render(){let{layout:t,keySize:i}=this.j.options.keyboard,n=t.length;return`<div>${(()=>{let o=[];for(let r=0;n>r;r+=1){let n=[];for(let o=0;o<t[r].length;o+=1)n.push(`<div style="width:${i*t[r][o]}px;height:${i}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${n.join(`
|
|
604
604
|
`)}</div>`)}return o.join(`
|
|
605
605
|
`)})()}</div>`}onStateChange(){let{currentLayout:t,options:i,shift:n,caps:o}=this.state,{keys:r}=this.j.o.keyboard.layoutList[t],s=0;for(let t=0;t<r.length;t+=1)for(let a=0;a<r[t].length;a+=1){let l=r[t][a].split(" "),c=l[0];n&&(c=l[1]),!n&&o&&l[1]&&_.isLetter(l[0])&&(c=l[1]),i&&(c=l[2]),this.setKeyValue(s,c??l[0]),s+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,i){let n=this._keys[t];if(!n)return;let o=!1,{options:r,shift:s,caps:a}=this.state;switch(i){case"Caps":o=a;break;case"Options":o=r;break;case"Shift":o=s}n.innerHTML=_.decorate(i),n.classList.toggle(this.getFullElName("key","active",!0),o),(0,l.attr)(n,"-key",i)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach(t=>{t.classList.remove(this.getFullElName("key","pressed",!0))}))}onKeyDown(t,i=0){let n=t.target;if(!n||!n.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,n.classList.add(this.getFullElName("key","pressed",!0));let o=(0,l.attr)(n,"-key");switch(o){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:o,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(s.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),o&&this.j.s.insertNode(this.j.createInside.text(o))}let{periodKeyRepeat:r,delayKeyRepeat:a}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout(()=>this.onKeyDown(t,r),i||a),!1}static decorate(t){switch(t){case"Space":return"";case"Enter":return c.Icon.get("enter");case"Backspace":return u();case"Shift":return b();case"Caps":return p();case"Options":return m();case"Tab":return w();default:return t}}constructor(t){super(t),(0,o._)(this,"state",{caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet}),(0,o._)(this,"_keys",this.getElms("key")),(0,o._)(this,"pressed",!1),(0,o._)(this,"reKeyDownTimeout",0),this.onStateChange()}}(0,r.__decorate)([(0,a.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],_.prototype,"onStateChange",null),(0,r.__decorate)([(0,a.watch)(["ow:mouseup"])],_.prototype,"onKeyUp",null),(0,r.__decorate)([(0,a.hook)("ready")],_.prototype,"onReady",null),(0,r.__decorate)([a.autobind],_.prototype,"stopPress",null),(0,r.__decorate)([(0,a.watch)(["container:mousedown","container:touchstart"])],_.prototype,"onKeyDown",null),_=(0,r.__decorate)([a.component],_)},38882:function(t,i,n){"use strict";n.d(i,{isAllowedSubdomain:function(){return r},validateLicense:function(){return function t(i,n){var o;let s;if(o=i=(i+"").toUpperCase().replace(/[‐-―−]/g,"-").replace(/\s+/g,"").replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(o)||r(n))return!0;let a=(s=n.split(".")).map(t=>{let i=t[0];return"string"==typeof i&&i.charCodeAt(0)?String.fromCharCode(i.charCodeAt(0)+1):i}).concat(s.map(t=>{let i=t[t.length-1];return"string"==typeof i&&i.charCodeAt(0)?String.fromCharCode(i.charCodeAt(0)-1):i})).map(t=>null!=t&&/\w/.test(t)?t:"r"),l=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((t,i)=>t.replace("{part}",a[i]||"[R-T]"));if(RegExp(`^${l.join("-")}$`,"i").test(i))return!0;let c=n.split(".");return c.shift(),c.length>1&&t(i,c.join("."))}}});let o=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function r(t){return o.some(i=>new RegExp(i.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(t))}},21246:function(t,i,n){"use strict";n.d(i,{license:function(){return u}});var o=n(38882),r=n(82758),s=n(2748),a=n(87612),l=n(70799),c=n(20356),d=n(2692);class u extends c.Plugin{static make(t){return new u(t)}afterInit(t){this.j.e.on("checkReserve",async t=>{let i=this.j.o.license;if((0,o.isAllowedSubdomain)(t))return"normal";if(!i||!(0,l.isString)(i))return"";let n=(0,o.validateLicense)(i,t);return n||r.IS_TEST||(n=await this.validateLicenseRemote(i,t)),n?"normal":""})}beforeDestruct(t){}async validateLicenseRemote(t,i){let n="validateJoditLicenseRemote",r=this.j.storage.get(n);if(r&&(0,o.validateLicense)(r,i))return!0;let l=document.createElement("script");return l.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(t)}&host=${encodeURIComponent(i)}`,this.j.async.promise(t=>{let r=!1,c=i=>{r||(r=!0,s.Dom.safeRemove(l),t(i))};window.onJoditResolveKeyCode=t=>{if((0,a.isBoolean)(t))return c(t);(0,o.validateLicense)(t,i)?(this.j.storage.set(n,t),c(!0)):c(!1)},l.onerror=()=>c(!0),document.body.appendChild(l),this.j.async.setTimeout(()=>c(!0),5e3)})}}d.JoditPro.plugins.add("license",u)},29606:function(t,i,n){"use strict";n.d(i,{dataBindCurrentKey:function(){return d},dataBindStoredKey:function(){return c}});var o=n(27222),r=n.n(o),s=n(6441),a=n(29807),l=n(86583);s.Config.prototype.mobileView={mode:"default"};let c="buttonmobileSView",d="buttonmobileCView";s.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:r(),command:"mobileView",isActive:t=>(0,l.dataBind)(t,d)&&"default"!==(0,l.dataBind)(t,d),isChildActive(t,i){let n=i.control?.args?.[0];return(0,a.isNumeric)(n)&&(n=Number(n)),((0,l.dataBind)(t,d)||"default")===n},exec:t=>!!(0,l.dataBind)(t,c)&&void t.execCommand("mobileView",!1,(0,l.dataBind)(t,c)),childExec(t,i,{button:n}){let o=n.control?.args?.[0];t.execCommand("mobileView",!1,(0,a.isNumeric)(o)?Number(o):o)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(29606),a=n(65478),l=n(43555),c=n(50911),d=n(2692);class u extends c.Plugin{className(){return"MobileView"}afterInit(t){t.registerCommand("mobileView",{exec:(i,n,o)=>{this.__currentMode===o&&(o="default"),this.__currentMode=o,(0,l.dataBind)(t,s.dataBindCurrentKey,o),"default"!==this.__currentMode&&(0,l.dataBind)(t,s.dataBindStoredKey,o),"default"===o?(0,l.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,l.css)(this.j.currentPlace.slots.center,{width:o,margin:"0 auto"})}}),t.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,o._)(this,"__currentMode","default")}}(0,o._)(u,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":beforeSetMode.mobileView")],u.prototype,"__beforeSetMode",null),u=(0,r.__decorate)([a.component],u),d.JoditPro.plugins.add("mobileView",u)},13109:function(t,i,n){"use strict";var o=n(17405),r=n.n(o),s=n(64889),a=n(6441);a.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},a.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(),command:"insertPageBreak"},a.Config.prototype.iframeStyle=`${a.Config.prototype.iframeStyle};${s.default.replace(/[\n\t]/g,"")}`},64889:function(t,i){"use strict";i.default=`[data-jodit-page-break] {
|
|
606
606
|
display: flex;
|