/*! jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser Author: Chupurnov (https://xdsoft.net/) Version: v3.3.24 Url: https://xdsoft.net/jodit/ License(s): MIT */ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var i in o)("object"==typeof exports?exports:t)[i]=o[i]}}(window,(function(){return function(t){var e={};function o(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/build/",o(o.s=76)}([function(t,e,o){"use strict";o.r(e),o.d(e,"__extends",(function(){return n})),o.d(e,"__assign",(function(){return r})),o.d(e,"__rest",(function(){return a})),o.d(e,"__decorate",(function(){return s})),o.d(e,"__param",(function(){return l})),o.d(e,"__metadata",(function(){return c})),o.d(e,"__awaiter",(function(){return d})),o.d(e,"__generator",(function(){return u})),o.d(e,"__exportStar",(function(){return f})),o.d(e,"__values",(function(){return p})),o.d(e,"__read",(function(){return h})),o.d(e,"__spread",(function(){return v})),o.d(e,"__spreadArrays",(function(){return m})),o.d(e,"__await",(function(){return g})),o.d(e,"__asyncGenerator",(function(){return b})),o.d(e,"__asyncDelegator",(function(){return y})),o.d(e,"__asyncValues",(function(){return _})),o.d(e,"__makeTemplateObject",(function(){return w})),o.d(e,"__importStar",(function(){return j})),o.d(e,"__importDefault",(function(){return S}));var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)};function n(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var r=function(){return(r=Object.assign||function(t){for(var e,o=1,i=arguments.length;i>o;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function a(t,e){var o={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&0>e.indexOf(i)&&(o[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);i.length>n;n++)0>e.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(o[i[n]]=t[i[n]])}return o}function s(t,e,o,i){var n,r=arguments.length,a=3>r?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(3>r?n(a):r>3?n(e,o,a):n(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}function l(t,e){return function(o,i){e(o,i,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,o,i){return new(o||(o=Promise))((function(n,r){function a(t){try{l(i.next(t))}catch(t){r(t)}}function s(t){try{l(i.throw(t))}catch(t){r(t)}}function l(t){t.done?n(t.value):new o((function(e){e(t.value)})).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function u(t,e){var o,i,n,r,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&n[3]>r[1])){a.label=r[1];break}if(6===r[0]&&n[1]>a.label){a.label=n[1],n=r;break}if(n&&n[2]>a.label){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(t){r=[6,t],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function f(t,e){for(var o in t)e.hasOwnProperty(o)||(e[o]=t[o])}function p(t){var e="function"==typeof Symbol&&t[Symbol.iterator],o=0;return e?e.call(t):{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}}}function h(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,n,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return a}function v(){for(var t=[],e=0;arguments.length>e;e++)t=t.concat(h(arguments[e]));return t}function m(){for(var t=0,e=0,o=arguments.length;o>e;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;o>e;e++)for(var r=arguments[e],a=0,s=r.length;s>a;a++,n++)i[n]=r[a];return i}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function b(t,e,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=o.apply(t,e||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){n[t]&&(i[t]=function(e){return new Promise((function(o,i){r.push([t,e,o,i])>1||s(t,e)}))})}function s(t,e){try{(o=n[t](e)).value instanceof g?Promise.resolve(o.value.v).then(l,c):d(r[0][2],o)}catch(t){d(r[0][3],t)}var o}function l(t){s("next",t)}function c(t){s("throw",t)}function d(t,e){t(e),r.shift(),r.length&&s(r[0][0],r[0][1])}}function y(t){var e,o;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,n){e[i]=t[i]?function(e){return(o=!o)?{value:g(t[i](e)),done:"return"===i}:n?n(e):e}:n}}function _(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,o=t[Symbol.asyncIterator];return o?o.call(t):(t=p(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(e){return new Promise((function(i,n){!function(t,e,o,i){Promise.resolve(i).then((function(e){t({value:e,done:o})}),e)}(i,n,(e=t[o](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function j(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(3),r=o(8),a=function(){function t(){}return t.detach=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},t.unwrap=function(e){var o=e.parentNode;if(o){for(;e.firstChild;)o.insertBefore(e.firstChild,e);t.safeRemove(e)}},t.each=function(e,o){var i=e.firstChild;if(i)for(;i;){var n=t.next(i,Boolean,e);if(!1===o(i))return!1;if(i.parentNode&&!t.each(i,o))return!1;i=n}return!0},t.replace=function(t,e,o,i,r){void 0===i&&(i=!1),void 0===r&&(r=!1);var a=n.isString(e)?o.element(e):e;if(!r)for(;t.firstChild;)a.appendChild(t.firstChild);return i&&Array.from(t.attributes).forEach((function(t){a.setAttribute(t.name,t.value)})),t.parentNode&&t.parentNode.replaceChild(a,t),a},t.isEmptyTextNode=function(e){return t.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(i.INVISIBLE_SPACE_REG_EXP,"").length)},t.isEmpty=function(e,o){return void 0===o&&(o=/^(img|svg|canvas|input|textarea|form)$/),!e||(t.isText(e)?null===e.nodeValue||0===r.trim(e.nodeValue).length:!o.test(e.nodeName.toLowerCase())&&t.each(e,(function(e){if(t.isText(e)&&null!==e.nodeValue&&0!==r.trim(e.nodeValue).length||t.isElement(e)&&o.test(e.nodeName.toLowerCase()))return!1})))},t.isNode=function(t,e){return!!t&&!("object"!=typeof e||!e||"function"!=typeof e.Node&&"object"!=typeof e.Node)&&t instanceof e.Node},t.isCell=function(e,o){return t.isNode(e,o)&&/^(td|th)$/i.test(e.nodeName)},t.isImage=function(e,o){return t.isNode(e,o)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)},t.isBlock=function(e,o){return e&&"object"==typeof e&&t.isNode(e,o)&&i.IS_BLOCK.test(e.nodeName)},t.isText=function(t){return Boolean(t&&t.nodeType===Node.TEXT_NODE)},t.isElement=function(t){return Boolean(t&&t.nodeType===Node.ELEMENT_NODE)},t.isHTMLElement=function(e,o){return t.isNode(e,o)&&e instanceof o.HTMLElement},t.isInlineBlock=function(e){return t.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf(n.css(e,"display").toString())},t.canSplitBlock=function(e,o){return e&&e instanceof o.HTMLElement&&t.isBlock(e,o)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)},t.prev=function(e,o,i,n){return void 0===n&&(n=!0),t.find(e,o,i,!1,"previousSibling",!!n&&"lastChild")},t.next=function(e,o,i,n){return void 0===n&&(n=!0),t.find(e,o,i,void 0,void 0,n?"firstChild":"")},t.prevWithClass=function(e,o){return t.prev(e,(function(e){return t.isElement(e)&&e.classList.contains(o)}),e.parentNode)},t.nextWithClass=function(e,o){return t.next(e,(function(e){return t.isElement(e)&&e.classList.contains(o)}),e.parentNode)},t.find=function(e,o,i,n,r,a){if(void 0===n&&(n=!1),void 0===r&&(r="nextSibling"),void 0===a&&(a="firstChild"),n&&o(e))return e;var s,l=e;do{if(o(s=l[r]))return s||!1;if(a&&s&&s[a]){var c=t.find(s[a],o,s,!0,r,a);if(c)return c}s||(s=l.parentNode),l=s}while(l&&l!==i);return!1},t.findWithCurrent=function(e,o,i,n,r){void 0===n&&(n="nextSibling"),void 0===r&&(r="firstChild");var a=e;do{if(o(a))return a||!1;if(r&&a&&a[r]){var s=t.findWithCurrent(a[r],o,a,n,r);if(s)return s}for(;a&&!a[n]&&a!==i;)a=a.parentNode;a&&a[n]&&a!==i&&(a=a[n])}while(a&&a!==i);return!1},t.up=function(t,e,o){var i=t;if(!t)return!1;do{if(e(i))return i;if(i===o||!i.parentNode)break;i=i.parentNode}while(i&&i!==o);return!1},t.closest=function(e,o,i){var n;return n="function"==typeof o?o:o instanceof RegExp?function(t){return t&&o.test(t.nodeName)}:function(t){return t&&new RegExp("^("+o+")$","i").test(t.nodeName)},t.up(e,n,i)},t.appendChildFirst=function(t,e){var o=t.firstChild;o?t.insertBefore(e,o):t.appendChild(e)},t.after=function(t,e){var o=t.parentNode;o&&(o.lastChild===t?o.appendChild(e):o.insertBefore(e,t.nextSibling))},t.moveContent=function(t,e,o){void 0===o&&(o=!1);var i=(t.ownerDocument||document).createDocumentFragment();Array.from(t.childNodes).forEach((function(t){i.appendChild(t)})),o&&e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)},t.all=function(e,o,i){void 0===i&&(i=!1);var n=e.childNodes?Array.prototype.slice.call(e.childNodes):[];if(o(e))return e;i&&(n=n.reverse()),n.forEach((function(e){t.all(e,o,i)}))},t.safeRemove=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},t.toggleAttribute=function(t,e,o){!1!==o?t.setAttribute(e,o.toString()):t.removeAttribute(e)},t.hide=function(t){t&&(n.dataBind(t,"__old_display",t.style.display),t.style.display="none")},t.show=function(t){if(t){var e=n.dataBind(t,"__old_display");"none"===t.style.display&&(t.style.display=e||"")}},t.isTag=function(e,o){return t.isElement(e)&&e.tagName.toLowerCase()===o.toLowerCase()},t.wrapInline=function(e,o,i){var n,r=e,a=e,s=i.selection.save(),l=!1;do{l=!1,(n=r.previousSibling)&&!t.isBlock(n,i.editorWindow)&&(l=!0,r=n)}while(l);do{l=!1,(n=a.nextSibling)&&!t.isBlock(n,i.editorWindow)&&(l=!0,a=n)}while(l);var c="string"==typeof o?i.create.inside.element(o):o;r.parentNode&&r.parentNode.insertBefore(c,r);for(var d=r;d&&(d=r.nextSibling,c.appendChild(r),r!==a&&d);)r=d;return i.selection.restore(s),c},t.wrap=function(t,e,o){var i=o.selection.save(),n="string"==typeof e?o.create.inside.element(e):e;return t.parentNode?(t.parentNode.insertBefore(n,t),n.appendChild(t),o.selection.restore(i),n):null},t.findInline=function(e,o,i){var n=e,r=null;do{if(!n)break;if((r=o?n.previousSibling:n.nextSibling)||!n.parentNode||n.parentNode===i||!t.isInlineBlock(n.parentNode))break;n=n.parentNode}while(!r);for(;r&&t.isInlineBlock(r)&&(o?r.lastChild:r.firstChild);)r=o?r.lastChild:r.firstChild;return r},t.contains=function(t,e){for(;e.parentNode;){if(e.parentNode===t)return!0;e=e.parentNode}return!1},t.isOrContains=function(e,o,i){return void 0===i&&(i=!1),o&&e&&(e===o&&!i||t.contains(e,o))},t}();e.Dom=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INVISIBLE_SPACE="\ufeff",e.INVISIBLE_SPACE_REG_EXP=/[\uFEFF]/g,e.INVISIBLE_SPACE_REG_EXP_END=/[\uFEFF]+$/g,e.INVISIBLE_SPACE_REG_EXP_START=/^[\uFEFF]+/g,e.SPACE_REG_EXP=/[\s\n\t\r\uFEFF\u200b]+/g,e.SPACE_REG_EXP_START=/^[\s\n\t\r\uFEFF\u200b]+/g,e.SPACE_REG_EXP_END=/[\s\n\t\r\uFEFF\u200b]+$/g,e.IS_BLOCK=/^(PRE|DIV|P|LI|H[1-6]|BLOCKQUOTE|TD|TH|TABLE|BODY|HTML|FIGCAPTION|FIGURE|DT|DD)$/i,e.IS_INLINE=/^(STRONG|SPAN|I|EM|B|SUP|SUB)$/i,e.MAY_BE_REMOVED_WITH_KEY=/^(IMG|BR|IFRAME|SCRIPT|INPUT|TEXTAREA|HR|JODIT|JODIT-MEDIA)$/i,e.KEY_BACKSPACE=8,e.KEY_TAB=9,e.KEY_ENTER=13,e.KEY_ESC=27,e.KEY_LEFT=37,e.KEY_UP=38,e.KEY_RIGHT=39,e.KEY_DOWN=40,e.KEY_DELETE=46,e.KEY_F=70,e.KEY_R=82,e.KEY_H=72,e.KEY_Y=89,e.KEY_V=86,e.KEY_Z=90,e.KEY_F3=114,e.NEARBY=5,e.ACCURACY=10,e.COMMAND_KEYS=[e.KEY_BACKSPACE,e.KEY_DELETE,e.KEY_UP,e.KEY_DOWN,e.KEY_RIGHT,e.KEY_LEFT,e.KEY_ENTER,e.KEY_ESC,e.KEY_F3,e.KEY_TAB],e.BR="br",e.PARAGRAPH="p",e.MODE_WYSIWYG=1,e.MODE_SOURCE=2,e.MODE_SPLIT=3,e.IS_IE="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),e.URL_LIST=e.IS_IE?"url":"text/uri-list",e.TEXT_PLAIN=e.IS_IE?"text":"text/plain",e.TEXT_HTML=e.IS_IE?"text":"text/html",e.MARKER_CLASS="jodit_selection_marker",e.EMULATE_DBLCLICK_TIMEOUT=300,e.JODIT_SELECTED_CELL_MARKER="data-jodit-selected-cell",e.INSERT_AS_HTML="insert_as_html",e.INSERT_CLEAR_HTML="insert_clear_html",e.INSERT_AS_TEXT="insert_as_text",e.INSERT_ONLY_TEXT="insert_only_text",e.IS_MAC="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),e.KEY_ALIASES={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:e.IS_MAC?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},e.BASE_PATH=function(){if("undefined"==typeof document)return"";var t=document.currentScript,e=function(t){return t.replace(/\/[^\/]+.js$/,"/")};if(t)return e(t.src);var o=document.querySelectorAll("script[src]");return o&&o.length?e(o[o.length-1].src):window.location.href}()},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(41),e),i.__exportStar(o(22),e),i.__exportStar(o(43),e),i.__exportStar(o(13),e),i.__exportStar(o(11),e),i.__exportStar(o(98),e),i.__exportStar(o(33),e),i.__exportStar(o(18),e),i.__exportStar(o(19),e),i.__exportStar(o(8),e),i.__exportStar(o(118),e),i.__exportStar(o(119),e),i.__exportStar(o(120),e),i.__exportStar(o(10),e),i.__exportStar(o(55),e),i.__exportStar(o(121),e),i.__exportStar(o(34),e),i.__exportStar(o(25),e),i.__exportStar(o(53),e),i.__exportStar(o(122),e),i.__exportStar(o(31),e),i.__exportStar(o(30),e),i.__exportStar(o(54),e),i.__exportStar(o(56),e),i.__exportStar(o(123),e),i.__exportStar(o(9),e),i.__exportStar(o(32),e),i.__exportStar(o(124),e)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(2),r=o(17),a=r.Widget.TabsWidget,s=r.Widget.FileSelectorWidget,l=o(1),c=o(3),d=o(6),u=o(13),f=function(){function t(){this.iframe=!1,this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,popup:{selection:["bold","underline","italic","ul","ol","outdent","indent","\n","fontsize","brush","paragraph","link","align","cut","dots"]},showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.saveHeightInStorage=!1,this.spellcheck=!0,this.editorCssClass=!1,this.style=!1,this.triggerChangeEvent=!0,this.width="auto",this.minWidth="200px",this.maxWidth="100%",this.height="auto",this.minHeight=200,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.showTooltip=!0,this.showTooltipDelay=300,this.useNativeTooltip=!1,this.enter=n.PARAGRAPH,this.enterBlock=n.PARAGRAPH,this.defaultMode=n.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.createAttributes={},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=["source","|","bold","strikethrough","underline","italic","eraser","|","superscript","subscript","|","ul","ol","|","outdent","indent","|","font","fontsize","brush","paragraph","|","image","file","video","table","link","|","align","undo","redo","\n","selectall","cut","copy","paste","copyformat","|","hr","symbol","fullsize","print","about"],this.buttonsMD=["source","|","bold","italic","|","ul","ol","eraser","|","font","fontsize","brush","paragraph","|","image","table","link","|","align","|","undo","redo","|","hr","copyformat","fullsize","dots"],this.buttonsSM=["source","|","bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","|","image","table","link","|","align","|","undo","redo","|","copyformat","fullsize","dots"],this.buttonsXS=["bold","image","|","brush","paragraph","eraser","|","align","|","undo","redo","|","dots"],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!1}return Object.defineProperty(t,"defaultOptions",{get:function(){return t.__defaultOptions||(t.__defaultOptions=new t),t.__defaultOptions},enumerable:!0,configurable:!0}),t}();e.Config=f,e.OptionsDefault=function(t,e){var o=this;void 0===e&&(e=f.defaultOptions);var i=this;if(i.plainOptions=t,void 0!==t&&"object"==typeof t){var n=function(t,r){if("preset"===r&&void 0!==e.presets[t.preset]){var a=e.presets[t.preset];Object.keys(a).forEach(n.bind(o,a))}var s=e[r];i[r]="object"!=typeof s||null===s||["ownerWindow","ownerDocument"].includes(r)||Array.isArray(s)?t[r]:u.extend(!0,{},s,t[r])};Object.keys(t).forEach(n.bind(this,t))}},f.prototype.controls={print:{exec:function(t){var e=window.open("","PRINT");e&&(t.options.iframe?(t.events.fire("generateDocumentStructure.iframe",e.document,t),e.document.body.innerHTML=t.value):(e.document.write(''+t.value+""),e.document.close()),e.focus(),e.print(),e.close())},mode:n.MODE_SOURCE+n.MODE_WYSIWYG,tooltip:"Print"},about:{exec:function(t){var e=t.getInstance("Dialog"),o=t.i18n.bind(t);e.setTitle(o("About Jodit")),e.setContent('
\n\t\t\t\t\t
'+o("Jodit Editor")+" v."+t.getVersion()+"
\n\t\t\t\t\t
"+o("License: %s",c.isLicense(t.options.license)?c.normalizeLicense(t.options.license):"MIT")+'
\n\t\t\t\t\t
\n\t\t\t\t\t\thttp://xdsoft.net/jodit/\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t'+o("Jodit User's Guide")+"\n\t\t\t\t\t\t"+o("contains detailed help for using")+"\n\t\t\t\t\t
\n\t\t\t\t\t
"+o("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")+"
\n\t\t\t\t
"),e.open()},tooltip:"About Jodit",mode:n.MODE_SOURCE+n.MODE_WYSIWYG},hr:{command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},image:{popup:function(t,e,o,n){var r=null;!e||l.Dom.isText(e)||"IMG"!==e.tagName&&!c.$$("img",e).length||(r="IMG"===e.tagName?e:c.$$("img",e)[0]);var a=t.selection.save();return s(t,{filebrowser:function(e){t.selection.restore(a),e.files&&e.files.forEach((function(o){return t.selection.insertImage(e.baseurl+o,null,t.options.imageDefaultWidth)})),n()},upload:!0,url:function(e,o){return i.__awaiter(void 0,void 0,void 0,(function(){var s;return i.__generator(this,(function(i){switch(i.label){case 0:return t.selection.restore(a),(s=r||t.create.inside.element("img")).setAttribute("src",e),s.setAttribute("alt",o),r?[3,2]:[4,t.selection.insertImage(s,null,t.options.imageDefaultWidth)];case 1:i.sent(),i.label=2;case 2:return n(),[2]}}))}))}},r,n)},tags:["img"],tooltip:"Insert Image"},file:{popup:function(t,e,o,i){var n=function(e,o){void 0===o&&(o=""),t.selection.insertNode(t.create.inside.fromHTML(''+(o||e)+""))},r=null;return e&&(l.Dom.isTag(e,"a")||l.Dom.closest(e,"A",t.editor))&&(r=l.Dom.isTag(e,"a")?e:l.Dom.closest(e,"A",t.editor)),s(t,{filebrowser:function(t){t.files&&t.files.forEach((function(e){return n(t.baseurl+e)})),i()},upload:!0,url:function(t,e){r?(r.setAttribute("href",t),r.setAttribute("title",e)):n(t,e),i()}},r,i,!1)},tags:["a"],tooltip:"Insert file"},video:{popup:function(t,e,o,i){var n=t.create.fromHTML('
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
"),r=t.create.fromHTML('
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
"),s={},l=t.selection.save(),u=function(e){t.selection.restore(l),t.selection.insertHTML(e),i()};return t.options.textIcons?(s[t.i18n("Link")]=n,s[t.i18n("Code")]=r):(s[d.ToolbarIcon.getIcon("link")+" "+t.i18n("Link")]=n,s[d.ToolbarIcon.getIcon("source")+" "+t.i18n("Code")]=r),r.addEventListener("submit",(function(t){return t.preventDefault(),c.trim(c.val(r,"textarea[name=code]"))?(u(c.val(r,"textarea[name=code]")),!1):(r.querySelector("textarea[name=code]").focus(),r.querySelector("textarea[name=code]").classList.add("jodit_error"),!1)})),n.addEventListener("submit",(function(t){return t.preventDefault(),c.isURL(c.val(n,"input[name=code]"))?(u(c.convertMediaURLToVideoEmbed(c.val(n,"input[name=code]"))),!1):(n.querySelector("input[name=code]").focus(),n.querySelector("input[name=code]").classList.add("jodit_error"),!1)})),a(t,s)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},e.configFactory=function(t){return new e.OptionsDefault(t)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(7),r=function(t){function e(e){var o=t.call(this,e)||this;return o.destruct=o.destruct.bind(o,e),e.events.on("afterInit",o.afterInit.bind(o,e)).on("beforeDestruct",o.destruct),o}return i.__extends(e,t),e.prototype.init=function(t){},e.prototype.destruct=function(){var e,o;this.isDestructed||(this.setStatus(n.STATUSES.beforeDestruct),null===(o=null===(e=this.jodit)||void 0===e?void 0:e.events)||void 0===o||o.off("beforeDestruct",this.destruct),this.beforeDestruct(this.jodit),t.prototype.destruct.call(this))},e}(n.Component);e.Plugin=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.get=function(e){return t.icons[e]||t.icons[e.replace(/-/g,"_")]||t.icons[e.toLowerCase()]},t.exists=function(t){return void 0!==this.get(t)},t.getIcon=function(t,e){return void 0===e&&(e=""),this.get(t)||e},t.setIcon=function(t,e){this.icons[t.replace("_","-")]=e},t.icons={},t}();e.ToolbarIcon=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(14);e.STATUSES={beforeInit:0,ready:1,beforeDestruct:2,destructed:3};var n=function(){function t(o){this.__componentStatus=e.STATUSES.beforeInit,o&&o instanceof t&&(this.jodit=o,i.isJoditObject(o)&&o.components.add(this))}return Object.defineProperty(t.prototype,"componentStatus",{get:function(){return this.__componentStatus},set:function(t){this.__componentStatus=t},enumerable:!0,configurable:!0}),t.prototype.setStatus=function(t){this.__componentStatus=t},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.componentStatus===e.STATUSES.ready},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDestructed",{get:function(){return this.componentStatus===e.STATUSES.destructed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInDestruct",{get:function(){return[e.STATUSES.beforeDestruct,e.STATUSES.destructed].includes(this.componentStatus)},enumerable:!0,configurable:!0}),t.prototype.destruct=function(){this.setStatus(e.STATUSES.beforeDestruct),i.isJoditObject(this.jodit)&&this.jodit.components.delete(this),this.jodit&&(this.jodit=void 0),this.setStatus(e.STATUSES.destructed)},t}();e.Component=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(49),e),i.__exportStar(o(50),e),i.__exportStar(o(51),e),i.__exportStar(o(101),e),i.__exportStar(o(102),e)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(11),r=1;e.$$=function(t,e){var o;if(!/:scope/.test(t)||!i.IS_IE||e&&e.nodeType===Node.DOCUMENT_NODE)o=e.querySelectorAll(t);else{var n=e.id,a=n||"_selector_id_"+(""+Math.random()).slice(2)+ ++r;t=t.replace(/:scope/g,"#"+a),!n&&e.setAttribute("id",a),o=e.parentNode.querySelectorAll(t),n||e.removeAttribute("id")}return[].slice.call(o)},e.getXPathByElement=function(t,o){if(!t||1!==t.nodeType)return"";if(!t.parentNode||o===t)return"";if(t.id)return"//*[@id='"+t.id+"']";var i=[].filter.call(t.parentNode.childNodes,(function(e){return e.nodeName===t.nodeName}));return e.getXPathByElement(t.parentNode,o)+"/"+t.nodeName.toLowerCase()+(i.length>1?"["+(Array.from(i).indexOf(t)+1)+"]":"")},e.refs=function(t){return e.$$("[ref]",t).reduce((function(t,e){var o=e.getAttribute("ref");return o&&n.isString(o)&&(t[o]=e),t}),{})}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(23),n=o(24),r=o(52),a=o(49),s=o(50);e.css=function(t,o,l,c){void 0===c&&(c=!1);var d=/^left|top|bottom|right|width|min|max|height|margin|padding|font-size/i;if(i.isPlainObject(o)||void 0!==l){var u=function(t,o,i){null!=i&&d.test(o)&&n.isNumeric(i.toString())&&(i=parseInt(i.toString(),10)+"px"),void 0!==i&&e.css(t,o,void 0,!0)!==r.normilizeCSSValue(o,i)&&(t.style[o]=i)};if(i.isPlainObject(o))for(var f=Object.keys(o),p=0;f.length>p;p+=1)u(t,a.camelCase(f[p]),o[f[p]]);else u(t,a.camelCase(o),l);return""}var h=s.fromCamelCase(o),v=t.ownerDocument||document,m=!!v&&(v.defaultView||v.parentWindow),g=t.style[o],b="";return void 0!==g&&""!==g?b=g:m&&!c&&(b=m.getComputedStyle(t).getPropertyValue(h)),d.test(o)&&/^[\-+]?[0-9.]+px$/.test(b.toString())&&(b=parseInt(b.toString(),10)),r.normilizeCSSValue(o,b)},e.clearCenterAlign=function(t){"block"===e.css(t,"display")&&e.css(t,"display",""),"auto"===t.style.marginLeft&&"auto"===t.style.marginRight&&(t.style.marginLeft="",t.style.marginRight="")}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(90),e),i.__exportStar(o(45),e),i.__exportStar(o(91),e),i.__exportStar(o(92),e),i.__exportStar(o(93),e),i.__exportStar(o(94),e),i.__exportStar(o(14),e),i.__exportStar(o(95),e),i.__exportStar(o(24),e),i.__exportStar(o(23),e),i.__exportStar(o(96),e),i.__exportStar(o(46),e),i.__exportStar(o(47),e),i.__exportStar(o(44),e),i.__exportStar(o(97),e)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(15);e.Dialog=i.Dialog;var n=o(200);e.Alert=n.Alert;var r=o(73);e.Prompt=r.Prompt;var a=o(74);e.Confirm=a.Confirm},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(30),n=o(31),r=o(32),a=o(23);e.extend=function t(){for(var e=[],o=0;arguments.length>o;o++)e[o]=arguments[o];var s,l,c,d,u,f,p,h=e.length,v=e[0]||{},m=1,g=!1;for("boolean"==typeof v&&(g=v,v=e[m]||{},m+=1),"object"!=typeof v&&"function"===r.type(v)&&(v={}),m===h&&(v=this,m+=1);h>m;m+=1)if(null!=(s=e[m]))for(p=Object.keys(s),f=0;p.length>f;f+=1)c=v[l=p[f]],v!==(d=s[l])&&(g&&d&&(a.isPlainObject(d)&&!(d instanceof i.JoditObject)||Array.isArray(d)&&!(d instanceof n.JoditArray))?(u=Array.isArray(d)?c&&Array.isArray(c)?c:[]:c&&a.isPlainObject(c)?c:{},v[l]=t(g,u,d)):void 0!==d&&(v[l]=d));return v}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isJoditObject=function(t){return!!(t&&t instanceof Object&&"function"==typeof t.constructor&&(t instanceof i.Jodit||t.isJodit))};var i=o(16)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(4),r=o(2),a=o(3),s=o(35),l=o(1);n.Config.prototype.dialog={extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[]},n.Config.prototype.controls.dialog={close:{icon:"cancel",exec:function(t){t.close()}},fullsize:{icon:"fullsize",getLabel:function(t,e,o){if(n.Config.prototype.controls.fullsize&&n.Config.prototype.controls.fullsize.getLabel&&"function"==typeof n.Config.prototype.controls.fullsize.getLabel)return n.Config.prototype.controls.fullsize.getLabel(t,e,o)},exec:function(t){t.toggleFullSize()}}};var c=function(t){function e(e,o){void 0===o&&(o=n.Config.prototype.dialog);var s=t.call(this,e,o)||this;s.offsetX=0,s.offsetY=0,s.destination=document.body,s.destroyAfterClose=!1,s.moved=!1,s.iSetMaximization=!1,s.resizable=!1,s.draggable=!1,s.startX=0,s.startY=0,s.startPoint={x:0,y:0,w:0,h:0},s.lockSelect=function(){s.container.classList.add("jodit_dialog_box-moved")},s.unlockSelect=function(){s.container.classList.remove("jodit_dialog_box-moved")},s.onMouseUp=function(){(s.draggable||s.resizable)&&(s.events.off(s.window,"mousemove",s.onMouseMove),s.draggable=!1,s.resizable=!1,s.unlockSelect(),s.jodit&&s.jodit.events&&s.jodit.events.fire(s,"endResize endMove"))},s.onHeaderMouseDown=function(t){var e=t.target;!s.options.draggable||e&&e.nodeName.match(/^(INPUT|SELECT)$/)||(s.draggable=!0,s.startX=t.clientX,s.startY=t.clientY,s.startPoint.x=a.css(s.dialog,"left"),s.startPoint.y=a.css(s.dialog,"top"),s.setMaxZIndex(),t.preventDefault(),s.lockSelect(),s.events.on(s.window,"mousemove",s.onMouseMove),s.jodit&&s.jodit.events&&s.jodit.events.fire(s,"startMove"))},s.onMouseMove=function(t){s.draggable&&s.options.draggable&&(s.setPosition(s.startPoint.x+t.clientX-s.startX,s.startPoint.y+t.clientY-s.startY),s.jodit&&s.jodit.events&&s.jodit.events.fire(s,"move",t.clientX-s.startX,t.clientY-s.startY),t.stopImmediatePropagation(),t.preventDefault()),s.resizable&&s.options.resizable&&(s.setSize(s.startPoint.w+t.clientX-s.startX,s.startPoint.h+t.clientY-s.startY),s.jodit&&s.jodit.events&&s.jodit.events.fire(s,"resizeDialog",t.clientX-s.startX,t.clientY-s.startY),t.stopImmediatePropagation(),t.preventDefault())},s.onKeyDown=function(t){if(s.isOpened()&&t.which===r.KEY_ESC){var e=s.getMaxZIndexDialog();e?e.close():s.close(),t.stopImmediatePropagation()}},s.onResize=function(){s.options&&s.options.resizable&&!s.moved&&s.isOpened()&&!s.offsetX&&!s.offsetY&&s.setPosition()},s.document=document,s.window=window,s.close=function(t){var e,o,i,n;s.isDestructed||(t&&(t.stopImmediatePropagation(),t.preventDefault()),s.jodit&&s.jodit.events&&s.jodit.events.fire("beforeClose",s),s.container&&s.container.classList&&s.container.classList.remove("active"),s.iSetMaximization&&s.maximization(!1),s.destroyAfterClose&&s.destruct(),null===(o=null===(e=s.jodit)||void 0===e?void 0:e.events)||void 0===o||o.fire(s,"afterClose"),null===(n=null===(i=s.jodit)||void 0===i?void 0:i.events)||void 0===n||n.fire(s.ownerWindow,"jodit_close_dialog"))},a.isJoditObject(e)&&(s.window=e.ownerWindow,s.document=e.ownerDocument,e.events.on("beforeDestruct",(function(){s.destruct()})));var c=s;c.options=i.__assign(i.__assign({},e&&e.options?e.options.dialog:n.Config.prototype.dialog),c.options),l.Dom.safeRemove(c.container),c.container=s.create.fromHTML('
'+(c.options.resizable?'
':"")+"
"),e&&e.options.theme&&c.container.classList.add("jodit_"+(e.options.theme||"default")+"_theme"),e&&e.id&&e.markOwner(c.container),Object.defineProperty(c.container,"__jodit_dialog",{value:c}),c.dialog=c.container.querySelector(".jodit_dialog"),c.resizer=c.container.querySelector(".jodit_dialog_resizer"),c.jodit&&c.jodit.options&&c.jodit.options.textIcons&&c.container.classList.add("jodit_text_icons"),c.dialogbox_header=c.container.querySelector(".jodit_dialog_header>.jodit_dialog_header-title"),c.dialogbox_content=c.container.querySelector(".jodit_dialog_content"),c.dialogbox_footer=c.container.querySelector(".jodit_dialog_footer"),c.dialogbox_toolbar=c.container.querySelector(".jodit_dialog_header>.jodit_dialog_header-toolbar"),c.destination.appendChild(c.container),c.container.addEventListener("close_dialog",c.close),c.toolbar.build(c.options.buttons,c.dialogbox_toolbar),c.events.on(s.window,"mouseup",c.onMouseUp).on(s.window,"keydown",c.onKeyDown).on(s.window,"resize",c.onResize);var u=c.container.querySelector(".jodit_dialog_header");return u&&u.addEventListener("mousedown",c.onHeaderMouseDown.bind(c)),c.options.resizable&&c.resizer.addEventListener("mousedown",c.onResizerMouseDown.bind(c)),d.fullsize(c),s}return i.__extends(e,t),e.prototype.setElements=function(t,e){var o=this,i=[];a.asArray(e).forEach((function(e){if(Array.isArray(e)){var n=o.create.div("jodit_dialog_column");return i.push(n),t.appendChild(n),o.setElements(n,e)}var r="string"==typeof e?o.create.fromHTML(e):e;i.push(r),r.parentNode!==t&&t.appendChild(r)})),Array.from(t.childNodes).forEach((function(e){-1===i.indexOf(e)&&t.removeChild(e)}))},e.prototype.onResizerMouseDown=function(t){this.resizable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.jodit.events&&this.jodit.events.fire(this,"startResize")},e.prototype.setSize=function(t,e){t&&a.css(this.dialog,"width",t),e&&a.css(this.dialog,"height",e)},e.prototype.setPosition=function(t,e){var o=this.window.innerWidth/2-this.dialog.offsetWidth/2,i=this.window.innerHeight/2-this.dialog.offsetHeight/2;0>o&&(o=0),0>i&&(i=0),void 0!==t&&void 0!==e&&(this.offsetX=t,this.offsetY=e,this.moved=Math.abs(t-o)>100||Math.abs(e-i)>100),this.dialog.style.left=(t||o)+"px",this.dialog.style.top=(e||i)+"px"},e.prototype.setTitle=function(t){this.setElements(this.dialogbox_header,t)},e.prototype.setContent=function(t){this.setElements(this.dialogbox_content,t)},e.prototype.setFooter=function(t){this.setElements(this.dialogbox_footer,t),this.dialog.classList.toggle("with_footer",!!t)},e.prototype.getZIndex=function(){return parseInt(this.container.style.zIndex||"0",10)},e.prototype.getMaxZIndexDialog=function(){var t,e,o=0,i=this;return a.$$(".jodit_dialog_box",this.destination).forEach((function(n){t=n.__jodit_dialog,e=parseInt(a.css(n,"zIndex"),10),t.isOpened()&&!isNaN(e)&&e>o&&(i=t,o=e)})),i},e.prototype.setMaxZIndex=function(){var t=0,e=0;a.$$(".jodit_dialog_box",this.destination).forEach((function(o){e=parseInt(a.css(o,"zIndex"),10),t=Math.max(isNaN(e)?0:e,t)})),this.container.style.zIndex=(t+1).toString()},e.prototype.maximization=function(t){return"boolean"!=typeof t&&(t=!this.container.classList.contains("jodit_dialog_box-fullsize")),this.container.classList.toggle("jodit_dialog_box-fullsize",t),[this.destination,this.destination.parentNode].forEach((function(e){e&&e.classList&&e.classList.toggle("jodit_fullsize_box",t)})),this.iSetMaximization=t,t},e.prototype.open=function(t,e,o,i){this.jodit&&this.jodit.events&&!1===this.jodit.events.fire(this,"beforeOpen")||(this.destroyAfterClose=!0===o,void 0!==e&&this.setTitle(e),t&&this.setContent(t),this.container.classList.add("active"),i&&this.container.classList.add("jodit_modal"),this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex(),this.options.fullsize&&this.maximization(!0),this.jodit&&this.jodit.events&&this.jodit.events.fire("afterOpen",this))},e.prototype.isOpened=function(){return!this.isDestructed&&this.container&&this.container.classList.contains("active")},e.prototype.destruct=function(){this.isInDestruct||(this.setStatus(u.STATUSES.beforeDestruct),this.events&&this.events.off(this.window,"mousemove",this.onMouseMove).off(this.window,"mouseup",this.onMouseUp).off(this.window,"keydown",this.onKeyDown).off(this.window,"resize",this.onResize),t.prototype.destruct.call(this))},e}(s.ViewWithToolbar);e.Dialog=c;var d=o(67),u=o(7)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(4),r=o(2),a=o(1),s=o(3),l=o(31),c=o(30),d=o(57),u=o(60),f=o(126),p=o(26),h=o(35),v=o(66),m=o(7),g=o(2),Jodit=function(t){function Jodit(e,o){var i,n=t.call(this,void 0,o)||this;n.getEditorText=s.markDeprecated((function(){return n.text}),["getEditorText","text"]),n.__defaultStyleDisplayKey="data-jodit-default-style-display",n.__defaultClassesKey="data-jodit-default-classes",n.commands={},n.__selectionLocked=null,n.__wasReadOnly=!1,n.storage=p.Storage.makeStorage(!0,n.id),n.editorIsActive=!1,n.__mode=r.MODE_WYSIWYG,n.__callChangeCount=0,n.elementToPlace=new Map;try{n.resolveElement(e)}catch(t){throw n.destruct(),t}n.setStatus(m.STATUSES.beforeInit),(null===(i=n.options)||void 0===i?void 0:i.events)&&Object.keys(n.options.events).forEach((function(t){return n.events.on(t,n.options.events[t])})),n.events.on(n.ownerWindow,"resize",(function(){n.events&&n.events.fire("resize")})),n.selection=new u.Select(n),n.initPlugins(),n.events.on("changePlace",(function(){n.setReadOnly(n.options.readonly),n.setDisabled(n.options.disabled)})),n.places.length=0;var a=n.addPlace(e,o);Jodit.instances[n.id]=n;var l=function(){n.events&&n.events.fire("afterInit",n),n.afterInitHook(),n.setStatus(m.STATUSES.ready),n.events.fire("afterConstructor",n)};return s.isPromise(a)?a.finally(l):l(),n}return i.__extends(Jodit,t),Object.defineProperty(Jodit.prototype,"isJodit",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"text",{get:function(){if(this.editor)return this.editor.innerText||"";var t=this.create.inside.div();return t.innerHTML=this.getElementValue(),t.innerText||""},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"value",{get:function(){return this.getEditorValue()},set:function(t){this.setEditorValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"defaultTimeout",{get:function(){return this.options&&this.options.observer?this.options.observer.timeout:Jodit.defaultOptions.observer.timeout},enumerable:!0,configurable:!0}),Jodit.Array=function(t){return new l.JoditArray(t)},Jodit.Object=function(t){return new c.JoditObject(t)},Jodit.fireEach=function(t){for(var e=[],o=1;arguments.length>o;o++)e[o-1]=arguments[o];Object.keys(Jodit.instances).forEach((function(o){var n,r=Jodit.instances[o];!r.isDestructed&&r.events&&(n=r.events).fire.apply(n,i.__spreadArrays([t],e))}))},Jodit.make=function(t,e){return new Jodit(t,e)},Jodit.prototype.setPlaceField=function(t,e){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[t]=e},Object.defineProperty(Jodit.prototype,"element",{get:function(){return this.currentPlace.element},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"editor",{get:function(){return this.currentPlace.editor},set:function(t){this.setPlaceField("editor",t)},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"container",{get:function(){return this.currentPlace.container},set:function(t){this.setPlaceField("container",t)},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"workplace",{get:function(){return this.currentPlace.workplace},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"statusbar",{get:function(){return this.currentPlace.statusbar},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"iframe",{get:function(){return this.currentPlace.iframe},set:function(t){this.setPlaceField("iframe",t)},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"observer",{get:function(){return this.currentPlace.observer},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"editorWindow",{get:function(){return this.currentPlace.editorWindow},set:function(t){this.setPlaceField("editorWindow",t)},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"editorDocument",{get:function(){return this.currentPlace.editorWindow.document},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"options",{get:function(){return this.currentPlace.options},set:function(t){this.setPlaceField("options",t)},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"uploader",{get:function(){return this.getInstance("Uploader")},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"filebrowser",{get:function(){return this.getInstance("FileBrowser")},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"mode",{get:function(){return this.__mode},set:function(t){this.setMode(t)},enumerable:!0,configurable:!0}),Jodit.prototype.getNativeEditorValue=function(){var t;return t=this.events.fire("beforeGetNativeEditorValue"),s.isString(t)?t:this.editor?this.editor.innerHTML:this.getElementValue()},Jodit.prototype.setNativeEditorValue=function(t){this.events.fire("beforeSetNativeEditorValue",t)||this.editor&&(this.editor.innerHTML=t)},Jodit.prototype.getEditorValue=function(t){var e;if(void 0===t&&(t=!0),void 0!==(e=this.events.fire("beforeGetValueFromEditor")))return e;e=this.getNativeEditorValue().replace(r.INVISIBLE_SPACE_REG_EXP,""),t&&(e=e.replace(/]+id="jodit_selection_marker_[^>]+><\/span>/g,"")),"
"===e&&(e="");var o={value:e};return this.events.fire("afterGetValueFromEditor",o),o.value},Jodit.prototype.setEditorValue=function(t){var e=this.events.fire("beforeSetValueToEditor",t);if(!1!==e)if("string"==typeof e&&(t=e),this.editor){if("string"!=typeof t&&void 0!==t)throw s.error("value must be string");void 0!==t&&this.getNativeEditorValue()!==t&&this.setNativeEditorValue(t);var o=this.getElementValue(),i=this.getEditorValue();if(o!==i&&10>this.__callChangeCount){this.setElementValue(i),this.__callChangeCount+=1;try{this.events.fire("change",i,o),this.events.fire(this.observer,"change",i,o)}finally{this.__callChangeCount=0}}}else void 0!==t&&this.setElementValue(t)},Jodit.prototype.getElementValue=function(){return void 0!==this.element.value?this.element.value:this.element.innerHTML},Jodit.prototype.setElementValue=function(t){if(!s.isString(t)&&void 0!==t)throw s.error("value must be string");void 0!==t?this.element!==this.container&&(void 0!==this.element.value?this.element.value=t:this.element.innerHTML=t):t=this.getElementValue(),t!==this.getEditorValue()&&this.setEditorValue(t)},Jodit.prototype.registerCommand=function(t,e){var o=t.toLowerCase();if(void 0===this.commands[o]&&(this.commands[o]=[]),this.commands[o].push(e),"function"!=typeof e){var i=this.options.commandToHotkeys[o]||this.options.commandToHotkeys[t]||e.hotkeys;i&&this.registerHotkeyToCommand(i,o)}return this},Jodit.prototype.registerHotkeyToCommand=function(t,e){var o=this,i=s.asArray(t).map(s.normalizeKeyAliases).map((function(t){return t+".hotkey"})).join(" ");this.events.off(i).on(i,(function(){return o.execCommand(e)}))},Jodit.prototype.execCommand=function(t,e,o){if(void 0===e&&(e=!1),void 0===o&&(o=null),!this.options.readonly||"selectall"===t){var i;if(t=t.toLowerCase(),!1!==(i=this.events.fire("beforeCommand",t,e,o))&&(i=this.execCustomCommands(t,e,o)),!1!==i)if(this.selection.focus(),"selectall"===t)this.selection.select(this.editor,!0);else try{i=this.editorDocument.execCommand(t,e,o)}catch(t){}return this.events.fire("afterCommand",t,e,o),this.setEditorValue(),i}},Jodit.prototype.execCustomCommands=function(t,e,o){var i,n;if(void 0===e&&(e=!1),void 0===o&&(o=null),t=t.toLowerCase(),void 0!==this.commands[t]){for(var r,a=0;this.commands[t].length>a;a+=1)void 0!==(n=("function"==typeof(i=this.commands[t][a])?i:i.exec).call(this,t,e,o))&&(r=n);return r}},Jodit.prototype.lock=function(e){return void 0===e&&(e="any"),!!t.prototype.lock.call(this,e)&&(this.__selectionLocked=this.selection.save(),this.editor.classList.add("jodit_disabled"),!0)},Jodit.prototype.unlock=function(){return!!t.prototype.unlock.call(this)&&(this.editor.classList.remove("jodit_disabled"),this.__selectionLocked&&this.selection.restore(this.__selectionLocked),!0)},Jodit.prototype.getMode=function(){return this.mode},Jodit.prototype.isEditorMode=function(){return this.getRealMode()===r.MODE_WYSIWYG},Jodit.prototype.getRealMode=function(){if(this.getMode()!==r.MODE_SPLIT)return this.getMode();var t=this.ownerDocument.activeElement;return t&&(a.Dom.isOrContains(this.editor,t)||a.Dom.isOrContains(this.toolbar.container,t))?r.MODE_WYSIWYG:r.MODE_SOURCE},Jodit.prototype.setMode=function(t){var e=this,o=this.getMode(),i={mode:parseInt(t.toString(),10)},n=["jodit_wysiwyg_mode","jodit_source_mode","jodit_split_mode"];!1!==this.events.fire("beforeSetMode",i)&&(this.__mode=s.inArray(i.mode,[r.MODE_SOURCE,r.MODE_WYSIWYG,r.MODE_SPLIT])?i.mode:r.MODE_WYSIWYG,this.options.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),n.forEach((function(t){e.container.classList.remove(t)})),this.container.classList.add(n[this.mode-1]),o!==this.getMode()&&this.events.fire("afterSetMode"))},Jodit.prototype.toggleMode=function(){var t=this.getMode();s.inArray(t+1,[r.MODE_SOURCE,r.MODE_WYSIWYG,this.options.useSplitMode?r.MODE_SPLIT:9])?t+=1:t=r.MODE_WYSIWYG,this.setMode(t)},Jodit.prototype.setDisabled=function(t){this.options.disabled=t;var e=this.__wasReadOnly;this.setReadOnly(t||e),this.__wasReadOnly=e,this.editor&&(this.editor.setAttribute("aria-disabled",t.toString()),this.container.classList.toggle("jodit_disabled",t),this.events.fire("disabled",t))},Jodit.prototype.getDisabled=function(){return this.options.disabled},Jodit.prototype.setReadOnly=function(t){this.__wasReadOnly!==t&&(this.__wasReadOnly=t,this.options.readonly=t,t?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.events&&this.events.fire("readonly",t))},Jodit.prototype.getReadOnly=function(){return this.options.readonly},Jodit.prototype.beforeInitHook=function(){},Jodit.prototype.afterInitHook=function(){},Jodit.prototype.initOptions=function(t){this.options=n.configFactory(t)},Jodit.prototype.initOwners=function(){this.editorWindow=this.options.ownerWindow,this.ownerDocument=this.options.ownerDocument,this.ownerWindow=this.options.ownerWindow},Jodit.prototype.addPlace=function(t,e){var o=this,i=this.resolveElement(t);this.isReady||(this.id=i.getAttribute("id")||(new Date).getTime().toString(),Jodit.instances[this.id]=this),i.attributes&&Array.from(i.attributes).forEach((function(t){var i=t.name,n=t.value;void 0===Jodit.defaultOptions[i]||e&&void 0!==e[i]||(-1!==["readonly","disabled"].indexOf(i)&&(n=""===n||"true"===n),/^[0-9]+(\.)?([0-9]+)?$/.test(n.toString())&&(n=Number(n)),o.options[i]=n)}));var r=this.create.div("jodit_container");r.classList.add("jodit_container"),r.classList.add("jodit_"+(this.options.theme||"default")+"_theme"),r.setAttribute("contenteditable","false");var a=null;this.options.inline&&(-1===["TEXTAREA","INPUT"].indexOf(i.nodeName)&&(r=i,i.setAttribute(this.__defaultClassesKey,i.className.toString()),a=r.innerHTML,r.innerHTML=""),r.classList.add("jodit_inline"),r.classList.add("jodit_container")),i!==r&&(i.style.display&&i.setAttribute(this.__defaultStyleDisplayKey,i.style.display),i.style.display="none");var l=this.create.div("jodit_workplace",{contenteditable:!1});r.appendChild(l);var c=new f.StatusBar(this,r);i.parentNode&&i!==r&&i.parentNode.insertBefore(r,i);var u=this.create.div("jodit_wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.options.tabIndex});l.appendChild(u);var p={editor:u,element:i,container:r,workplace:l,statusbar:c,options:this.isReady?n.configFactory(e):this.options,observer:new d.Observer(this),editorWindow:this.ownerWindow};this.elementToPlace.set(u,p),this.setCurrentPlace(p),this.places.push(p),this.setNativeEditorValue(this.getElementValue());var h=this.initEditor(a),v=this.options,m=function(){v.enableDragAndDropFileToEditor&&v.uploader&&(v.uploader.url||v.uploader.insertImageAsBase64URI)&&o.uploader.bind(o.editor),o.elementToPlace.get(o.editor)||o.elementToPlace.set(o.editor,p),o.events.fire("afterAddPlace",p)};if(s.isPromise(h))return h.then(m);m()},Jodit.prototype.setCurrentPlace=function(t){this.currentPlace!==t&&(this.isEditorMode()||this.setMode(g.MODE_WYSIWYG),this.currentPlace=t,this.buildToolbar(t.container),this.isReady&&this.events.fire("changePlace",t))},Jodit.prototype.initPlugins=function(){this.beforeInitHook(),this.events.fire("beforeInit",this);try{Jodit.plugins.init(this)}catch(t){}},Jodit.prototype.initEditor=function(t){var e=this,o=this.createEditor(),i=function(){if(!e.isInDestruct){e.element!==e.container?e.setElementValue():null!==t&&e.setEditorValue(t);var o=e.options.defaultMode;if(e.options.saveModeInStorage){var i=e.storage.get("jodit_default_mode");"string"==typeof i&&(o=parseInt(i,10))}e.setMode(o),e.options.readonly&&(e.__wasReadOnly=!1,e.setReadOnly(!0)),e.options.disabled&&e.setDisabled(!0);try{e.editorDocument.execCommand("defaultParagraphSeparator",!1,e.options.enter.toLowerCase())}catch(t){}try{e.editorDocument.execCommand("enableObjectResizing",!1,"false")}catch(t){}try{e.editorDocument.execCommand("enableInlineTableEditing",!1,"false")}catch(t){}}};if(s.isPromise(o))return o.then(i);i()},Jodit.prototype.createEditor=function(){var t=this,e=this.editor,o=this.events.fire("createEditor",this),i=function(){if(!t.isInDestruct){(!1===o||s.isPromise(o))&&a.Dom.safeRemove(e),t.options.editorCssClass&&t.editor.classList.add(t.options.editorCssClass),t.options.style&&s.css(t.editor,t.options.style);var i=t.editor;if(t.events.on("synchro",(function(){t.setEditorValue()})).on("focus",(function(){t.editorIsActive=!0})).on("blur",(function(){return t.editorIsActive=!1})).on(i,"mousedown touchstart focus",(function(){var e=t.elementToPlace.get(i);e&&t.setCurrentPlace(e)})).on(i,"selectionchange selectionstart keydown keyup keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",(function(e){if(!t.options.readonly&&t.events&&t.events.fire){if(!1===t.events.fire(e.type,e))return!1;t.setEditorValue()}})),t.options.spellcheck&&t.editor.setAttribute("spellcheck","true"),t.options.direction){var n="rtl"===t.options.direction.toLowerCase()?"rtl":"ltr";t.editor.style.direction=n,t.container.style.direction=n,t.editor.setAttribute("dir",n),t.container.setAttribute("dir",n),t.toolbar.setDirection(n)}t.options.triggerChangeEvent&&t.events.on("change",t.async.debounce((function(){t.events&&t.events.fire(t.element,"change")}),t.defaultTimeout))}};if(s.isPromise(o))return o.then(i);i()},Jodit.prototype.destruct=function(){var e=this;if(!this.isInDestruct&&(this.setStatus(m.STATUSES.beforeDestruct),this.async.clear(),this.elementToPlace.clear(),!1!==this.events.fire("beforeDestruct")&&this.editor)){var o=this.getEditorValue();this.storage.clear(),delete this.storage,this.buffer.clear(),delete this.buffer,this.commands={},delete this.selection,this.__selectionLocked=null,this.events.off(this.ownerWindow,"resize"),this.events.off(this.ownerWindow),this.events.off(this.ownerDocument),this.events.off(this.ownerDocument.body),this.components.forEach((function(t){s.isDestructable(t)&&!t.isInDestruct&&t.destruct()})),this.components.clear(),this.places.forEach((function(t){var i=t.container,n=t.workplace,r=t.statusbar,s=t.element,l=t.iframe,c=t.editor,d=t.observer;if(s!==i)if(s.hasAttribute(e.__defaultStyleDisplayKey)){var u=s.getAttribute(e.__defaultStyleDisplayKey);u&&(s.style.display=u,s.removeAttribute(e.__defaultStyleDisplayKey))}else s.style.display="";else s.hasAttribute(e.__defaultClassesKey)&&(s.className=s.getAttribute(e.__defaultClassesKey)||"",s.removeAttribute(e.__defaultClassesKey));s.hasAttribute("style")&&!s.getAttribute("style")&&s.removeAttribute("style"),!r.isInDestruct&&r.destruct(),e.events.off(i),e.events.off(s),e.events.off(c),a.Dom.safeRemove(n),a.Dom.safeRemove(c),i!==s&&a.Dom.safeRemove(i),a.Dom.safeRemove(l),i===s&&(s.innerHTML=o),!d.isInDestruct&&d.destruct()})),this.places.length=0,this.currentPlace={},delete Jodit.instances[this.id],t.prototype.destruct.call(this)}},Jodit.plugins=new v.PluginSystem,Jodit.modules={},Jodit.instances={},Jodit.lang={},Jodit}(h.ViewWithToolbar);e.Jodit=Jodit},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,n=o(1),r=o(3),a=o(6);(i=e.Widget||(e.Widget={})).ColorPickerWidget=function(t,e,o){var i=r.normalizeColor(o),s=t.create.div("jodit_colorpicker"),l=t.options.textIcons?"":a.ToolbarIcon.getIcon("eye"),c=t.options.textIcons?""+t.i18n("eraser")+"":a.ToolbarIcon.getIcon("eraser"),d=t.options.textIcons?""+t.i18n("palette")+"":a.ToolbarIcon.getIcon("palette"),u=function(t,e){t.innerHTML=a.ToolbarIcon.getIcon("eye"),t.classList.add("active");var o=r.hexToRgb(e);o&&(t.firstChild.style.fill="rgb("+(255-o.r)+","+(255-o.g)+","+(255-o.b)+")")},f=function(t){var e=[];return r.isPlainObject(t)?Object.keys(t).forEach((function(o){e.push('
'),e.push(f(t[o])),e.push("
")})):Array.isArray(t)&&t.forEach((function(t){e.push("'+(i===t?l:"")+"")})),e.join("")};return s.appendChild(t.create.fromHTML("
"+f(t.options.colors)+"
")),s.appendChild(t.create.fromHTML("'+c+"")),t.options.showBrowserColorPicker&&r.hasBrowserColorPicker()&&(s.appendChild(t.create.fromHTML(""+d+'')),t.events.on(s,"change",(function(t){t.stopPropagation();var o=t.target;if(o&&o.tagName&&"INPUT"===o.tagName.toUpperCase()){var i=o.value||"";i&&u(o,i),e&&"function"==typeof e&&e(i),t.preventDefault()}}))),t.events.on(s,"mousedown touchend",(function(o){o.stopPropagation();var i=o.target;if(i&&i.tagName&&"SVG"!==i.tagName.toUpperCase()&&"PATH"!==i.tagName.toUpperCase()||!i.parentNode||(i=n.Dom.closest(i.parentNode,"A",t.editor)),"A"===i.tagName.toUpperCase()){var r=s.querySelector("a.active");r&&(r.classList.remove("active"),r.innerHTML="");var a=i.getAttribute("data-color")||"";a&&u(i,a),e&&"function"==typeof e&&e(a),o.preventDefault()}})),s},i.TabsWidget=function(t,e,o){var i=t.create.div("jodit_tabs"),n=t.create.div("jodit_tabs_wrapper"),a=t.create.div("jodit_tabs_buttons"),s={},l="",c=0;return i.appendChild(a),i.appendChild(n),r.each(e,(function(e,i){var d=t.create.div("jodit_tab"),u=t.create.element("a",{href:"javascript:void(0);"});l||(l=e.toString()),u.innerHTML=/'+t.i18n(l?"Drop image":"Drop file")+"
"+t.i18n("or click")+'
');t.getInstance("Uploader").bind(u,(function(o){var i=r.isFunction(e.upload)?e.upload:t.options.uploader.defaultHandlerSuccess;"function"==typeof i&&i.call(t,o)}),(function(e){t.events.fire("errorMessage",e.message)})),d[(t.options.textIcons?"":a.ToolbarIcon.getIcon("upload"))+t.i18n("Upload")]=u}if(e.filebrowser&&(t.options.filebrowser.ajax.url||t.options.filebrowser.items.url)&&(d[(t.options.textIcons?"":a.ToolbarIcon.getIcon("folder"))+t.i18n("Browse")]=function(){s&&s(),e.filebrowser&&t.getInstance("FileBrowser").open(e.filebrowser,l)}),e.url){var f=t.create.fromHTML('
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
"),p=f.querySelector("button"),h=f.querySelector("input[name=url]");c=null,o&&!n.Dom.isText(o)&&(n.Dom.isTag(o,"img")||r.$$("img",o).length)&&(c="IMG"===o.tagName?o:r.$$("img",o)[0],r.val(f,"input[name=url]",c.getAttribute("src")),r.val(f,"input[name=text]",c.getAttribute("alt")),p.textContent=t.i18n("Update")),o&&n.Dom.isTag(o,"a")&&(r.val(f,"input[name=url]",o.getAttribute("href")||""),r.val(f,"input[name=text]",o.getAttribute("title")||""),p.textContent=t.i18n("Update")),f.addEventListener("submit",(function(o){return o.preventDefault(),o.stopPropagation(),r.val(f,"input[name=url]")?("function"==typeof e.url&&e.url.call(t,r.val(f,"input[name=url]"),r.val(f,"input[name=text]")),!1):(h.focus(),h.classList.add("jodit_error"),!1)}),!1),d[(t.options.textIcons?"":a.ToolbarIcon.getIcon("link"))+" URL"]=f}return i.TabsWidget(t,d)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(106),e),i.__exportStar(o(107),e),i.__exportStar(o(108),e),i.__exportStar(o(109),e),i.__exportStar(o(110),e),i.__exportStar(o(111),e),i.__exportStar(o(112),e),i.__exportStar(o(52),e),i.__exportStar(o(113),e)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(114),e),i.__exportStar(o(115),e),i.__exportStar(o(116),e),i.__exportStar(o(117),e)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(36),r=o(1),a=o(10),s=o(2),l=o(14),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.checkActiveStatus=function(t,o){var i=0,n=0;return Object.keys(t).forEach((function(r){var s=t[r];"function"==typeof s?s(e.jodit,a.css(o,r).toString())&&(i+=1):-1!==s.indexOf(a.css(o,r).toString())&&(i+=1),n+=1})),n===i},e}return i.__extends(e,t),e.prototype.buttonIsActive=function(e){var o=this,i=t.prototype.buttonIsActive.call(this,e);if(void 0!==i)return i;var n,a,s=!!this.jodit.selection&&this.jodit.selection.current();return!(!s||!((e.control.tags||e.control.options&&e.control.options.tags)&&(n=e.control.tags||e.control.options&&e.control.options.tags,r.Dom.up(s,(function(t){if(t&&-1!==n.indexOf(t.nodeName.toLowerCase()))return!0}),this.jodit.editor))||(e.control.css||e.control.options&&e.control.options.css)&&(a=e.control.css||e.control.options&&e.control.options.css,r.Dom.up(s,(function(t){if(t&&!r.Dom.isText(t))return o.checkActiveStatus(a,t)}),this.jodit.editor))))},e.prototype.buttonIsDisabled=function(e){var o=t.prototype.buttonIsDisabled.call(this,e);if(void 0!==o)return o;var i=void 0===e.control||void 0===e.control.mode?s.MODE_WYSIWYG:e.control.mode;return!(i===s.MODE_SPLIT||i===this.jodit.getRealMode())},e.prototype.getTarget=function(t){return t.target||this.jodit.selection.current()||void 0},e.makeCollection=function(t){var o=l.isJoditObject(t)?new e(t):new n.ToolbarCollection(t);return t.options.textIcons&&o.container.classList.add("jodit_text_icons"),o},e}(n.ToolbarCollection);e.JoditToolbarCollection=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(38);e.Ajax=i.Ajax;var n=o(63);e.EventsNative=n.EventsNative;var r=o(7);e.Component=r.Component;var a=o(39);e.ContextMenu=a.ContextMenu;var s=o(12);e.Alert=s.Alert,e.Confirm=s.Confirm,e.Prompt=s.Prompt,e.Dialog=s.Dialog;var l=o(1);e.Dom=l.Dom;var c=o(5);e.Plugin=c.Plugin;var d=o(64);e.Create=d.Create;var u=o(201);e.FileBrowser=u.FileBrowser;var f=o(3);e.Helpers=f;var p=o(207);e.ImageEditor=p.ImageEditor;var h=o(57);e.Observer=h.Observer;var v=o(65);e.ProgressBar=v.ProgressBar;var m=o(60);e.Select=m.Select;var g=o(26);e.Storage=g.Storage;var b=o(58);e.Snapshot=b.Snapshot;var y=o(29);e.Table=y.Table;var _=o(6);e.ToolbarIcon=_.ToolbarIcon;var w=o(20);e.JoditToolbarCollection=w.JoditToolbarCollection;var j=o(36);e.ToolbarCollection=j.ToolbarCollection;var S=o(27);e.ToolbarButton=S.ToolbarButton;var C=o(59);e.Stack=C.Stack;var x=o(17);e.Widget=x.Widget;var k=o(208);e.Uploader=k.Uploader;var E=o(66);e.PluginSystem=E.PluginSystem},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(42);e.asArray=i.asArray;var n=o(87);e.inArray=n.inArray;var r=o(88);e.splitArray=r.splitArray},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(44),n=o(32);e.isPlainObject=function(t){return!("object"!=typeof t||t.nodeType||i.isWindow(t)||t.constructor&&!n.hasOwn.call(t.constructor.prototype,"isPrototypeOf"))}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNumeric=function(t){if("string"==typeof t){if(!t.match(/^([+\-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return!isNaN(t)&&isFinite(t)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.each=function(t,e){var o,i,n;if(Array.isArray(t)){for(o=t.length,n=0;o>n;n+=1)if(!1===e.call(t[n],n,t[n]))return!1}else for(i=Object.keys(t),n=0;i.length>n;n+=1)if(!1===e.call(t[i[n]],i[n],t[i[n]]))return!1;return!0}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(8),n=o(61),r=o(62);e.StorageKey="Jodit_";var a=function(){function t(t,o){this.provider=t,this.prefix=e.StorageKey,o&&(this.prefix+=o)}return t.prototype.set=function(t,e){this.provider.set(i.camelCase(this.prefix+t),e)},t.prototype.get=function(t){return this.provider.get(i.camelCase(this.prefix+t))},t.prototype.exists=function(t){return this.provider.exists(i.camelCase(this.prefix+t))},t.prototype.clear=function(){return this.provider.clear()},t.makeStorage=function(o,i){var a;return void 0===o&&(o=!1),o&&n.canUsePersistentStorage()&&(a=new n.LocalStorageProvider(e.StorageKey+i)),a||(a=new r.MemoryStorageProvider),new t(a,i)},t}();e.Storage=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(3),a=o(37),s=o(133),l=o(28),c=o(14),d=o(2),u=o(6),f=function(t){function e(e,o,i){var a=t.call(this,e)||this;a.__disabled=!1,a.__actived=!1,a.onMouseDown=function(t){var e,o;if("keydown"!==t.type||t.which===d.KEY_ENTER){if(t.stopImmediatePropagation(),t.preventDefault(),a.disable)return!1;var i=a.control,n=function(){return a.parentToolbar&&a.parentToolbar.getTarget(a)||a.target||!1};if(i.list){var u=new s.PopupList(a.jodit,a.container,a.target);u.open(i),a.jodit.events.fire("closeAllPopups",u.container),a.anchor.setAttribute("aria-expanded","true"),a.jodit.events.on(u,"afterClose",(function(){a.anchor.setAttribute("aria-expanded","false")}))}else if(void 0!==i.exec&&"function"==typeof i.exec)i.exec(a.jodit,n(),i,t,a.container),null===(e=a.jodit)||void 0===e||e.events.fire("synchro"),a.parentToolbar&&a.parentToolbar.immediateCheckActiveButtons(),null===(o=a.jodit)||void 0===o||o.events.fire("closeAllPopups afterExec");else if(void 0!==i.popup&&"function"==typeof i.popup){var f=new l.Popup(a.jodit,a.container,a.target);if(!1!==a.jodit.events.fire(r.camelCase("before-"+i.name+"-OpenPopup"),n(),i,f)){var p=i.popup(a.jodit,n(),i,f.close,a);p&&f.open(p)}a.jodit.events.fire(r.camelCase("after-"+i.name+"-OpenPopup")+" closeAllPopups",f.container)}else(i.command||i.name)&&(c.isJoditObject(a.jodit)?a.jodit.execCommand(i.command||i.name,i.args&&i.args[0]||!1,i.args&&i.args[1]||null):a.jodit.ownerDocument.execCommand(i.command||i.name,i.args&&i.args[0]||!1,i.args&&i.args[1]||null),a.jodit.events.fire("closeAllPopups"))}},a.control=o,a.target=i,a.anchor=a.jodit.create.element("a",{role:"button",href:"javascript:void(0)"});var f="-1";if(a.jodit.options.allowTabNavigation&&(f="0"),a.anchor.setAttribute("tabindex",f),a.container.appendChild(a.anchor),a.jodit.options.showTooltip&&o.tooltip){if(a.jodit.options.useNativeTooltip)a.anchor.setAttribute("title",a.tooltipText);else{var p=a.jodit.options.showTooltipDelay||a.jodit.defaultTimeout,h=0;a.jodit.events.on(a.anchor,"mouseenter",(function(){h=a.jodit.async.setTimeout((function(){var t;return!a.isDisable()&&(null===(t=a.jodit)||void 0===t?void 0:t.events.fire("showTooltip",a.anchor,a.tooltipText))}),{timeout:p,label:"tooltip"})})).on(a.anchor,"mouseleave",(function(){a.jodit.async.clearTimeout(h),a.jodit.events.fire("hideTooltip")}))}a.anchor.setAttribute("aria-label",a.tooltipText)}a.textBox=a.jodit.create.span(),a.anchor.appendChild(a.textBox);var v=o.name.replace(/[^a-zA-Z0-9]/g,"_");if(o.getContent&&"function"==typeof o.getContent){n.Dom.detach(a.container);var m=o.getContent(a.jodit,o,a);a.container.appendChild("string"==typeof m?a.jodit.create.fromHTML(m):m)}else{if(o.list&&a.anchor){var g=a.jodit.create.fromHTML(u.ToolbarIcon.getIcon("dropdown-arrow"));g.classList.add("jodit_with_dropdownlist-trigger"),a.container.classList.add("jodit_with_dropdownlist"),a.anchor.appendChild(g)}a.textBox.appendChild(a.createIcon(v,o))}if(a.container.classList.add("jodit_toolbar_btn-"+v),a.jodit.options.direction){var b=a.jodit.options.direction.toLowerCase();a.container.style.direction="rtl"===b?"rtl":"ltr"}return o.isInput?a.container.classList.add("jodit_toolbar-input"):a.jodit.events.on(a.container,"mousedown touchend keydown",a.onMouseDown).on("click-"+v+"-btn",a.onMouseDown),a}return i.__extends(e,t),Object.defineProperty(e.prototype,"disable",{get:function(){return this.__disabled},set:function(t){this.__disabled=t,this.container.classList.toggle("jodit_disabled",t),t?this.container.hasAttribute("disabled")||this.container.setAttribute("disabled","disabled"):this.container.hasAttribute("disabled")&&this.container.removeAttribute("disabled")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this.__actived},set:function(t){this.__actived=t,this.container.classList.toggle("jodit_active",t)},enumerable:!0,configurable:!0}),e.prototype.isDisable=function(){return Boolean(this.parentToolbar&&this.parentToolbar.buttonIsDisabled(this))},e.prototype.isActive=function(){return Boolean(this.parentToolbar&&this.parentToolbar.buttonIsActive(this))},Object.defineProperty(e.prototype,"tooltipText",{get:function(){return this.control.tooltip?this.jodit.i18n(this.control.tooltip)+(this.control.hotkeys?"
"+r.asArray(this.control.hotkeys).join(" "):""):""},enumerable:!0,configurable:!0}),e.prototype.focus=function(){this.anchor.focus()},e.prototype.destruct=function(){this.isDestructed||(this.jodit&&this.jodit.events&&this.jodit.events.off(this.anchor)&&this.jodit.events.off(this.container),t.prototype.destruct.call(this))},e}(a.ToolbarElement);e.ToolbarButton=f},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(1),r=o(3),a=o(7),s=o(16),l=function(t){function e(o,i,r,a){void 0===a&&(a="jodit_toolbar_popup");var s=t.call(this,o)||this;return s.target=i,s.current=r,s.className=a,s.throttleCalcPosition=s.jodit.async.throttle(s.calcPosition.bind(s),s.jodit.defaultTimeout),s.isOpened=!1,s.close=function(t){(s.isOpened||s.isDestructed)&&(t&&n.Dom.isOrContains(s.container,t instanceof e?t.target:t)||(s.isOpened=!1,s.jodit.events.off("closeAllPopups",s.close),s.doClose(),n.Dom.safeRemove(s.container),s.jodit.events.fire("removeMarkers"),s.jodit.events.fire(s,"afterClose")))},s.container=s.jodit.create.div(a),s.jodit.events.on(s.container,"mousedown touchstart touchend",(function(t){t.stopPropagation()})).on([s.jodit.ownerWindow,s.jodit.events],"resize",s.throttleCalcPosition).on("afterInsertNode, afterInsertImage",s.close),s}return i.__extends(e,t),e.prototype.calcPosition=function(){if(this.isOpened&&!this.isInDestruct){var t=this.container,e=r.offset(this.jodit.container,this.jodit,this.jodit.ownerDocument,!0),o=r.offset(t,this.jodit,this.jodit.ownerDocument,!0),i=r.css(t,"marginLeft")||0;o.left-=i;var n=i,a="auto";if(n=e.left>o.left?e.left-o.left:e.left+e.width>o.left+o.width?0:-(o.left+o.width-(e.left+e.width)),e.width>o.width||(n=e.left-o.left,a=e.width),n!==i)try{t.style.setProperty("margin-left",n+"px","important")}catch(e){t.style.marginLeft=n+"px"}var s=t.querySelector(".jodit_popup_triangle");s&&(s.style.marginLeft=-n+"px"),r.css(t,"width",a)}},e.prototype.doOpen=function(t){t&&(n.Dom.detach(this.container),this.container.innerHTML='',this.container.appendChild(n.Dom.isNode(t,this.jodit.ownerWindow)?t:this.jodit.create.fromHTML(t.toString())),this.container.style.display="block",this.container.style.removeProperty("marginLeft"))},e.prototype.doClose=function(){},e.prototype.open=function(t,e,o){void 0===o&&(o=!1),s.Jodit.fireEach("beforeOpenPopup closeAllPopups",this,t),o||this.jodit.events.on("closeAllPopups",this.close),this.jodit.markOwner(this.container),this.container.classList.add(this.className+"-open"),this.doOpen(t),this.target.appendChild(this.container),this.jodit.options.textIcons&&this.firstInFocus(),void 0!==e&&this.container.classList.toggle("jodit_right",e),!o&&this.container.parentNode&&this.jodit.events.fire(this.container.parentNode,"afterOpenPopup",this.container),this.isOpened=!0,!o&&this.calcPosition()},e.prototype.firstInFocus=function(){},e.prototype.destruct=function(){this.isDestructed||(this.setStatus(a.STATUSES.beforeDestruct),this.jodit.events.off([this.jodit.ownerWindow,this.jodit.events],"resize",this.throttleCalcPosition),n.Dom.safeRemove(this.container),delete this.container,t.prototype.destruct.call(this))},e}(a.Component);e.Popup=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(1),r=o(3),a=function(){function t(){}return t.addSelected=function(t){t.setAttribute(i.JODIT_SELECTED_CELL_MARKER,"1")},t.restoreSelection=function(t){t.removeAttribute(i.JODIT_SELECTED_CELL_MARKER)},t.getAllSelectedCells=function(t){return t?r.$$("td["+i.JODIT_SELECTED_CELL_MARKER+"],th["+i.JODIT_SELECTED_CELL_MARKER+"]",t):[]},t.getRowsCount=function(t){return t.rows.length},t.getColumnsCount=function(e){return t.formalMatrix(e).reduce((function(t,e){return Math.max(t,e.length)}),0)},t.formalMatrix=function(t,e){for(var o=[[]],i=Array.prototype.slice.call(t.rows),n=function(t,i){void 0===o[i]&&(o[i]=[]);for(var n,r,a=t.colSpan,s=t.rowSpan,l=0;o[i][l];)l+=1;for(r=0;s>r;r+=1)for(n=0;a>n;n+=1){if(void 0===o[i+r]&&(o[i+r]=[]),e&&!1===e(t,i+r,l+n,a,s))return!1;o[i+r][l+n]=t}},r=0,a=void 0;i.length>r;r+=1){var s=Array.prototype.slice.call(i[r].cells);for(a=0;s.length>a;a+=1)if(!1===n(s[a],r))return o}return o},t.formalCoordinate=function(e,o,i){void 0===i&&(i=!1);var n=0,r=0,a=1,s=1;return t.formalMatrix(e,(function(t,e,l,c,d){if(o===t)return n=e,r=l,a=c||1,s=d||1,i&&(r+=(c||1)-1,n+=(d||1)-1),!1})),[n,r,a,s]},t.appendRow=function(e,o,i,n){for(var a=t.getColumnsCount(e),s=n.element("tr"),l=0;a>l;l+=1)s.appendChild(n.element("td"));i&&o&&o.nextSibling?o.parentNode&&o.parentNode.insertBefore(s,o.nextSibling):!i&&o?o.parentNode&&o.parentNode.insertBefore(s,o):(r.$$(":scope>tbody",e)[0]||e).appendChild(s)},t.removeRow=function(e,o){var i,a=t.formalMatrix(e),s=e.rows[o];r.each(a[o],(function(t,r){if(i=!1,0>o-1||a[o-1][t]!==r)if(a[o+1]&&a[o+1][t]===r){if(r.parentNode===s&&r.parentNode.nextSibling){i=!0;for(var l=t+1;a[o+1][l]===r;)l+=1;var c=n.Dom.next(r.parentNode,(function(t){return n.Dom.isTag(t,"tr")}),e);a[o+1][l]?c.insertBefore(r,a[o+1][l]):c.appendChild(r)}}else n.Dom.safeRemove(r);else i=!0;if(i&&(r.parentNode===s||r!==a[o][t-1])){var d=r.rowSpan;d-1>1?r.setAttribute("rowspan",(d-1).toString()):r.removeAttribute("rowspan")}})),n.Dom.safeRemove(s)},t.appendColumn=function(e,o,i,n){var r,a=t.formalMatrix(e);for((void 0===o||0>o)&&(o=t.getColumnsCount(e)-1),r=0;a.length>r;r+=1){var s=n.element("td"),l=a[r][o],c=!1;i?(a[r]&&l&&o+1>=a[r].length||l!==a[r][o+1])&&(l.nextSibling?l.parentNode&&l.parentNode.insertBefore(s,l.nextSibling):l.parentNode&&l.parentNode.appendChild(s),c=!0):(0>o-1||a[r][o]!==a[r][o-1]&&a[r][o].parentNode)&&(l.parentNode&&l.parentNode.insertBefore(s,a[r][o]),c=!0),c||a[r][o].setAttribute("colspan",(parseInt(a[r][o].getAttribute("colspan")||"1",10)+1).toString())}},t.removeColumn=function(e,o){var i,a=t.formalMatrix(e);r.each(a,(function(t,e){var r=e[o];if(i=!1,0>o-1||a[t][o-1]!==r?e.length>o+1&&a[t][o+1]===r?i=!0:n.Dom.safeRemove(r):i=!0,i&&(0>t-1||r!==a[t-1][o])){var s=r.colSpan;s-1>1?r.setAttribute("colspan",(s-1).toString()):r.removeAttribute("colspan")}}))},t.getSelectedBound=function(e,o){var i,n,r,a=[[1/0,1/0],[0,0]],s=t.formalMatrix(e);for(i=0;s.length>i;i+=1)for(n=0;s[i].length>n;n+=1)-1!==o.indexOf(s[i][n])&&(a[0][0]=Math.min(i,a[0][0]),a[0][1]=Math.min(n,a[0][1]),a[1][0]=Math.max(i,a[1][0]),a[1][1]=Math.max(n,a[1][1]));for(i=a[0][0];a[1][0]>=i;i+=1)for(r=1,n=a[0][1];a[1][1]>=n;n+=1){for(;s[i][n-r]&&s[i][n]===s[i][n-r];)a[0][1]=Math.min(n-r,a[0][1]),a[1][1]=Math.max(n-r,a[1][1]),r+=1;for(r=1;s[i][n+r]&&s[i][n]===s[i][n+r];)a[0][1]=Math.min(n+r,a[0][1]),a[1][1]=Math.max(n+r,a[1][1]),r+=1;for(r=1;s[i-r]&&s[i][n]===s[i-r][n];)a[0][0]=Math.min(i-r,a[0][0]),a[1][0]=Math.max(i-r,a[1][0]),r+=1;for(r=1;s[i+r]&&s[i][n]===s[i+r][n];)a[0][0]=Math.min(i+r,a[0][0]),a[1][0]=Math.max(i+r,a[1][0]),r+=1}return a},t.normalizeTable=function(e){var o,i,n,r,a=[],s=t.formalMatrix(e);for(i=0;s[0].length>i;i+=1){for(n=1e6,r=!1,o=0;s.length>o;o+=1)if(void 0!==s[o][i]){if(2>s[o][i].colSpan){r=!0;break}n=Math.min(n,s[o][i].colSpan)}if(!r)for(o=0;s.length>o;o+=1)void 0!==s[o][i]&&t.__mark(s[o][i],"colspan",s[o][i].colSpan-n+1,a)}for(o=0;s.length>o;o+=1){for(n=1e6,r=!1,i=0;s[o].length>i;i+=1)if(void 0!==s[o][i]){if(2>s[o][i].rowSpan){r=!0;break}n=Math.min(n,s[o][i].rowSpan)}if(!r)for(i=0;s[o].length>i;i+=1)void 0!==s[o][i]&&t.__mark(s[o][i],"rowspan",s[o][i].rowSpan-n+1,a)}for(o=0;s.length>o;o+=1)for(i=0;s[o].length>i;i+=1)void 0!==s[o][i]&&(s[o][i].hasAttribute("rowspan")&&1===s[o][i].rowSpan&&s[o][i].removeAttribute("rowspan"),s[o][i].hasAttribute("colspan")&&1===s[o][i].colSpan&&s[o][i].removeAttribute("colspan"),s[o][i].hasAttribute("class")&&!s[o][i].getAttribute("class")&&s[o][i].removeAttribute("class"));t.__unmark(a)},t.mergeSelected=function(e){var o,a=[],s=t.getSelectedBound(e,t.getAllSelectedCells(e)),l=0,c=null,d=0,u=0,f=0,p=[];s&&(s[0][0]-s[1][0]||s[0][1]-s[1][1])&&(t.formalMatrix(e,(function(e,i,n,h,v){if(!(s[0][0]>i||i>s[1][0]||s[0][1]>n||n>s[1][1])){if((o=e).__i_am_already_was)return;o.__i_am_already_was=!0,i===s[0][0]&&o.style.width&&(l+=o.offsetWidth),""!==r.trim(e.innerHTML.replace(//g,""))&&a.push(e.innerHTML),h>1&&(u+=h-1),v>1&&(f+=v-1),c?t.__mark(o,"remove",1,p):(c=e,d=n)}})),u=s[1][1]-s[0][1]+1,f=s[1][0]-s[0][0]+1,c&&(u>1&&t.__mark(c,"colspan",u,p),f>1&&t.__mark(c,"rowspan",f,p),l&&(t.__mark(c,"width",(l/e.offsetWidth*100).toFixed(i.ACCURACY)+"%",p),d&&t.setColumnWidthByDelta(e,d,0,!0,p)),c.innerHTML=a.join("
"),delete c.__i_am_already_was,t.__unmark(p),t.normalizeTable(e),r.each(Array.from(e.rows),(function(t,e){e.cells.length||n.Dom.safeRemove(e)}))))},t.splitHorizontal=function(e,o){var i,r,a,s,l,c=[];t.getAllSelectedCells(e).forEach((function(d){(r=o.element("td")).appendChild(o.element("br")),a=o.element("tr"),i=t.formalCoordinate(e,d),2>d.rowSpan?(t.formalMatrix(e,(function(e,o,n){i[0]===o&&i[1]!==n&&e!==d&&t.__mark(e,"rowspan",e.rowSpan+1,c)})),n.Dom.after(n.Dom.closest(d,"tr",e),a),a.appendChild(r)):(t.__mark(d,"rowspan",d.rowSpan-1,c),t.formalMatrix(e,(function(t,o,n){o>i[0]&&i[0]+d.rowSpan>o&&i[1]>n&&t.parentNode.rowIndex===o&&(l=t),o>i[0]&&t===d&&(s=e.rows[o])})),l?n.Dom.after(l,r):s.insertBefore(r,s.firstChild)),d.colSpan>1&&t.__mark(r,"colspan",d.colSpan,c),t.__unmark(c),t.restoreSelection(d)})),this.normalizeTable(e)},t.splitVertical=function(e,o){var r,a,s,l=[];t.getAllSelectedCells(e).forEach((function(c){r=t.formalCoordinate(e,c),2>c.colSpan?t.formalMatrix(e,(function(e,o,i){r[1]===i&&r[0]!==o&&e!==c&&t.__mark(e,"colspan",e.colSpan+1,l)})):t.__mark(c,"colspan",c.colSpan-1,l),(a=o.element("td")).appendChild(o.element("br")),c.rowSpan>1&&t.__mark(a,"rowspan",c.rowSpan,l);var d=c.offsetWidth;n.Dom.after(c,a),t.__mark(c,"width",(100*(s=d/e.offsetWidth/2)).toFixed(i.ACCURACY)+"%",l),t.__mark(a,"width",(100*s).toFixed(i.ACCURACY)+"%",l),t.__unmark(l),t.restoreSelection(c)})),t.normalizeTable(e)},t.setColumnWidthByDelta=function(e,o,n,r,a){var s,l=t.formalMatrix(e);for(s=0;l.length>s;s+=1)t.__mark(l[s][o],"width",((l[s][o].offsetWidth+n)/e.offsetWidth*100).toFixed(i.ACCURACY)+"%",a);r||t.__unmark(a)},t.__mark=function(t,e,o,i){i.push(t),t.__marked_value||(t.__marked_value={}),t.__marked_value[e]=void 0===o?1:o},t.__unmark=function(t){t.forEach((function(t){t.__marked_value&&(r.each(t.__marked_value,(function(e,o){switch(e){case"remove":n.Dom.safeRemove(t);break;case"rowspan":o>1?t.setAttribute("rowspan",o.toString()):t.removeAttribute("rowspan");break;case"colspan":o>1?t.setAttribute("colspan",o.toString()):t.removeAttribute("colspan");break;case"width":t.style.width=o.toString()}delete t.__marked_value[e]})),delete t.__marked_value)}))},t}();e.Table=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(13);e.JoditObject=function(t){i.extend(!0,this,t)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(13),n=function(){function t(t){var e=this;this.length=0,i.extend(!0,this,t),this.length=t.length;var o=Array.prototype;["map","forEach","reduce","push","pop","shift","unshift","slice","splice"].forEach((function(t){e[t]=o[t]}))}return t.prototype.toString=function(){for(var t=[],e=0;this.length>e;e+=1)t[e]=this[e];return t.toString()},t}();e.JoditArray=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={},n=i.toString;e.hasOwn=i.hasOwnProperty,["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol","HTMLDocument","Window","HTMLElement","HTMLBodyElement","Text","DocumentFragment","DOMStringList","HTMLCollection"].forEach((function(t){i["[object "+t+"]"]=t.toLowerCase()})),e.type=function(t){return null===t?"null":"object"==typeof t||"function"==typeof t?i[n.call(t)]||"object":typeof t},e.error=function(t){return new TypeError(t)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(100),e),i.__exportStar(o(103),e),i.__exportStar(o(104),e),i.__exportStar(o(105),e)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultLanguage=function(t,e){return void 0===e&&(e="en"),"auto"!==t&&"string"==typeof t?t:document.documentElement&&document.documentElement.lang?document.documentElement.lang:navigator.language?navigator.language.substr(0,2):e}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(127),r=o(20),a=o(22),s=o(7),l=o(1),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.__toolbar=r.JoditToolbarCollection.makeCollection(e),e}return i.__extends(e,t),Object.defineProperty(e.prototype,"toolbar",{get:function(){return this.__toolbar},enumerable:!0,configurable:!0}),e.prototype.setPanel=function(t){this.jodit.options.toolbar=t,this.buildToolbar(this.container)},e.prototype.buildToolbar=function(t){if(this.options.toolbar){var e=t.querySelector(".jodit_toolbar_container");e||(e=this.create.div("jodit_toolbar_container"),l.Dom.appendChildFirst(t,e)),(l.Dom.isHTMLElement(this.options.toolbar,this.jodit.ownerWindow)||"string"==typeof this.options.toolbar)&&(e=this.resolveElement(this.options.toolbar)),this.toolbar.build(a.splitArray(this.options.buttons).concat(this.options.extraButtons),e)}},e.prototype.destruct=function(){this.setStatus(s.STATUSES.beforeDestruct),this.toolbar.destruct(),delete this.__toolbar,t.prototype.destruct.call(this)},e}(n.View);e.ViewWithToolbar=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(132),r=o(27),a=o(134),s=o(1),l=o(7),c=o(4),d=o(14),u=function(t){function e(e){var o=t.call(this,e)||this;return o.__buttons=[],o.__getControlType=function(t){var e,n=o.jodit.options.controls||c.Config.defaultOptions.controls;if("string"!=typeof t)void 0!==n[(e=i.__assign({name:"empty"},t)).name]&&(e=i.__assign(i.__assign({},n[e.name]),e));else{var r=t.split(/\./),a=n;r.length>1&&void 0!==n[r[0]]&&(a=n[r[0]],t=r[1]),e=void 0!==a[t]?i.__assign({name:t},a[t]):{name:t,command:t,tooltip:t}}return e},o.closeAll=function(){o.jodit&&o.jodit.events&&o.jodit.events.fire("closeAllPopups")},o.initEvents=function(){o.jodit.events.on(o.jodit.ownerWindow,"mousedown touchend",o.closeAll).on(o.listenEvents,o.checkActiveButtons).on("afterSetMode focus",o.immediateCheckActiveButtons)},o.listenEvents="changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",o.immediateCheckActiveButtons=function(){o.isDestructed||o.jodit.isLocked()||(o.__buttons.filter((function(t){return t instanceof r.ToolbarButton})).forEach((function(t){t.disable=t.isDisable(),t.disable||(t.active=t.isActive()),"function"==typeof t.control.getLabel&&t.control.getLabel(o.jodit,t.control,t)})),o.jodit.events&&o.jodit.events.fire("updateToolbar"))},o.checkActiveButtons=o.jodit.async.debounce(o.immediateCheckActiveButtons,o.jodit.defaultTimeout),o.container=o.jodit.create.element("ul"),o.container.classList.add("jodit_toolbar"),o.initEvents(),o}return i.__extends(e,t),e.prototype.getButtonsList=function(){return this.__buttons.map((function(t){return t instanceof r.ToolbarButton?t.control.name:""})).filter((function(t){return""!==t}))},e.prototype.getParentContainer=function(){return this.__parentContainer},e.prototype.appendChild=function(t){this.__buttons.push(t),this.container.appendChild(t.container)},Object.defineProperty(e.prototype,"firstButton",{get:function(){return this.__buttons[0]},enumerable:!0,configurable:!0}),e.prototype.removeChild=function(t){var e=this.__buttons.indexOf(t);-1!==e&&(this.__buttons.splice(e,1),t.container.parentNode===this.container&&s.Dom.safeRemove(t.container))},e.prototype.applyContainerOptions=function(){this.container.classList.add("jodit_"+(this.jodit.options.theme||"default")+"_theme"),this.jodit.container.classList.toggle("jodit_text_icons",this.jodit.options.textIcons),this.container.classList.toggle("jodit_text_icons",this.jodit.options.textIcons),this.jodit.options.zIndex&&(this.container.style.zIndex=parseInt(this.jodit.options.zIndex.toString(),10).toString());var t=(this.jodit.options.toolbarButtonSize||"middle").toLowerCase();this.container.classList.add("jodit_toolbar_size-"+(-1!==["middle","large","small"].indexOf(t)?t:"middle"))},e.prototype.build=function(t,e,o){var i=this;this.applyContainerOptions(),this.jodit.events.off("rebuildToolbar"),this.jodit.events.on("afterInit rebuildToolbar",(function(){return i.build(t,e,o)})),this.__parentContainer=e;var s=!1;this.clear(),("string"==typeof t?t.split(/[,\s]+/):t).map(this.__getControlType).forEach((function(t){var e=null;if(-1===i.jodit.options.removeButtons.indexOf(t.name)){switch(t.name){case"\n":e=new n.ToolbarBreak(i);break;case"|":s||(s=!0,e=new a.ToolbarSeparator(i));break;default:s=!1,e=new r.ToolbarButton(i,t,o)}e&&i.appendChild(e)}})),this.container.parentNode!==e&&e.appendChild(this.container),this.immediateCheckActiveButtons()},e.prototype.clear=function(){var t=this;i.__spreadArrays(this.__buttons).forEach((function(e){t.removeChild(e),e.destruct()})),this.__buttons.length=0},e.prototype.buttonIsActive=function(t){return!(d.isJoditObject(this.jodit)&&!this.jodit.editorIsActive)&&("function"==typeof t.control.isActive?t.control.isActive(this.jodit,t.control,t):void 0)},e.prototype.buttonIsDisabled=function(t){return!!this.jodit.options.disabled||!(!this.jodit.options.readonly||this.jodit.options.activeButtonsInReadOnly&&-1!==this.jodit.options.activeButtonsInReadOnly.indexOf(t.control.name))||("function"==typeof t.control.isDisable&&(e=t.control.isDisable(this.jodit,t.control,t)),e);var e},e.prototype.getTarget=function(t){return t.target},e.prototype.setDirection=function(t){this.container.style.direction=t,this.container.setAttribute("dir",t)},e.prototype.destruct=function(){this.isDestructed||(this.jodit.events.off(this.jodit.ownerWindow,"mousedown touchstart",this.closeAll).off(this.listenEvents,this.checkActiveButtons).off("afterSetMode focus",this.immediateCheckActiveButtons),this.clear(),s.Dom.safeRemove(this.container),delete this.container,t.prototype.destruct.call(this))},e}(l.Component);e.ToolbarCollection=u},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(7),r=o(36),a=o(6),s=o(1),l=o(8),c=function(t){function e(e,o,i){void 0===o&&(o="li"),void 0===i&&(i="jodit_toolbar_btn");var n=this;return e instanceof r.ToolbarCollection?(n=t.call(this,e.jodit)||this).parentToolbar=e:n=t.call(this,e)||this,n.container=n.jodit.create.element(o),n.container.classList.add(i),n}return i.__extends(e,t),e.prototype.focus=function(){this.container.focus()},e.prototype.destruct=function(){this.isInDestruct||(this.setStatus(n.STATUSES.beforeDestruct),s.Dom.safeRemove(this.container),this.parentToolbar=void 0,t.prototype.destruct.call(this))},e.prototype.createIcon=function(t,e){var o=e?e.icon||e.name:t;if(!this.jodit.options.textIcons){var i=this.jodit.events.fire("getIcon",o,e,t),n=void 0;return e&&e.iconURL&&void 0===i?(n=this.jodit.create.element("i")).style.backgroundImage="url("+e.iconURL.replace("{basePath}",this.jodit.basePath)+")":(void 0===i&&(i=a.ToolbarIcon.exists(o)?a.ToolbarIcon.getIcon(o):a.ToolbarIcon.getIcon("empty")),n="string"==typeof i?this.jodit.create.fromHTML(l.trim(i)):i),n.classList.add("jodit_icon","jodit_icon_"+t),n}return this.jodit.create.fromHTML(''+this.jodit.i18n(e?e.name:t)+"")},e}(n.Component);e.ToolbarElement=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(4),r=o(3),a=o(56);n.Config.prototype.defaultAjaxOptions={dataType:"json",method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:function(){return new XMLHttpRequest}};var s=function(){function t(t,e){var o=this;this.success_response_codes=[200,201,202],this.resolved=!1,this.activated=!1,this.jodit=t,this.options=r.extend(!0,{},n.Config.prototype.defaultAjaxOptions,e),this.options.xhr&&(this.xhr=this.options.xhr()),t&&t.events&&t.events.on("beforeDestruct",(function(){o.abort()}))}return t.prototype.__buildParams=function(t,e){return this.options.queryBuild&&"function"==typeof this.options.queryBuild?this.options.queryBuild.call(this,t,e):"string"==typeof t||this.jodit.ownerWindow.FormData&&t instanceof this.jodit.ownerWindow.FormData?t:a.buildQuery(t)},t.prototype.abort=function(){try{this.xhr.abort()}catch(t){}return this},t.prototype.send=function(){var t=this;return this.activated=!0,new Promise((function(e,o){var i=function(e){var o=null;if("json"===t.options.dataType&&(o=JSON.parse(e)),!o)throw r.error("No JSON format");return o};t.xhr.onabort=function(){o(r.error(t.xhr.statusText))},t.xhr.onerror=function(){o(r.error(t.xhr.statusText))},t.xhr.ontimeout=function(){o(r.error(t.xhr.statusText))},t.xhr.onload=function(){t.response=t.xhr.responseText,t.status=t.xhr.status,t.resolved=!0,e.call(t.xhr,i(t.response)||{})},t.xhr.onreadystatechange=function(){if(t.xhr.readyState===XMLHttpRequest.DONE){var n=t.xhr.responseText;t.response=n,t.status=t.xhr.status,t.resolved=!0,t.success_response_codes.indexOf(t.xhr.status)>-1?e.call(t.xhr,i(n)):o.call(t.xhr,r.error(t.xhr.statusText||t.jodit.i18n("Connection error!")))}},t.xhr.withCredentials=t.options.withCredentials||!1;var n=t.prepareRequest(),a=n.data;t.xhr.open(n.method,n.url,!0),t.options.contentType&&t.xhr.setRequestHeader&&t.xhr.setRequestHeader("Content-type",t.options.contentType),t.options.headers&&t.xhr.setRequestHeader&&r.each(t.options.headers,(function(e,o){t.xhr.setRequestHeader(e,o)})),setTimeout((function(){t.xhr.send(a?t.__buildParams(a):void 0)}),0)}))},t.prototype.prepareRequest=function(){if(!this.options.url)throw r.error("Need URL for AJAX request");var e=this.options.url,o=this.options.data,n=(this.options.method||"get").toLowerCase();if("get"===n&&o&&r.isPlainObject(o)){var s=e.indexOf("?");if(-1!==s){var l=r.parseQuery(e);e=e.substr(0,s)+"?"+a.buildQuery(i.__assign(i.__assign({},l),o))}else e+="?"+a.buildQuery(this.options.data)}var c={url:e,method:n,data:o};return t.log.splice(100),t.log.push(c),c},t.prototype.destruct=function(){this.activated&&!this.resolved&&(this.abort(),this.resolved=!0)},t.log=[],t}();e.Ajax=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(7),r=o(10),a=o(6),s=o(1),l=function(t){function e(e){var o=t.call(this,e)||this;return o.evnts="mousedown jodit_close_dialog scroll",o.hide=function(){s.Dom.safeRemove(o.context),o.jodit.events.off(o.jodit.ownerWindow,o.evnts,o.hide)},o.context=e.create.div("jodit_context_menu"),o.context.classList.add("jodit_context_menu-show"),o}return i.__extends(e,t),e.prototype.show=function(t,e,o,i){var n,l=this,c=this;Array.isArray(o)&&(i&&(this.context.style.zIndex=i.toString()),s.Dom.detach(this.context),o.forEach((function(t){if(t){var e=c.jodit.i18n(t.title||""),o=l.jodit.create.fromHTML(''+(t.icon?a.ToolbarIcon.getIcon(t.icon):"")+""),i=o.querySelector("span");o.addEventListener("mousedown",(function(e){var o;return null===(o=t.exec)||void 0===o||o.call(c,e),c.hide(),!1})),i.textContent=e,c.context.appendChild(o)}})),r.css(c.context,{left:t,top:e}),this.jodit.events.on(this.jodit.ownerWindow,this.evnts,c.hide),this.jodit.markOwner(this.context),null===(n=this.jodit)||void 0===n||n.ownerDocument.body.appendChild(this.context))},e.prototype.destruct=function(){this.isInDestruct||(this.setStatus(n.STATUSES.beforeDestruct),s.Dom.safeRemove(this.context),delete this.context,this.jodit.events.off(this.jodit.ownerWindow,this.evnts,this.hide),t.prototype.destruct.call(this))},e}(n.Component);e.ContextMenu=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.F_CLASS="jodit_filebrowser",e.ITEM_CLASS=e.F_CLASS+"_files_item",e.ICON_LOADER=''},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(85),e),i.__exportStar(o(86),e)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.asArray=function(t){return Array.isArray(t)?t:[t]}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),o(0).__exportStar(o(89),e)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isWindow=function(t){return null!==t&&t===t.window}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=function(t){return"function"==typeof t}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isURL=function(t){return new RegExp("^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isValidName=function(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_\.]/.test(t)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.colorToHex=function(t){if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;var e,o,i,n=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!n)return"#000000";for(o=parseInt(n[2],10),i=parseInt(n[3],10),e=(parseInt(n[4],10)|i<<8|o<<16).toString(16).toUpperCase();6>e.length;)e="0"+e;return n[1]+"#"+e}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=function(t){return t.replace(/([-_])(.)/g,(function(t,e,o){return o.toUpperCase()}))}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromCamelCase=function(t){return t.replace(/([A-Z]+)/g,(function(t,e){return"-"+e.toLowerCase()}))}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2);e.trim=function(t){return t.replace(i.SPACE_REG_EXP_START,"").replace(i.SPACE_REG_EXP_END,"")}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(24);e.normilizeCSSValue=function(t,e){switch(t.toLowerCase()){case"font-weight":switch(e.toString().toLowerCase()){case"bold":return 700;case"normal":return 400;case"heavy":return 900}return i.isNumeric(e)?+e:e}return e}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.completeUrl=function(t){return"file:"===window.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseQuery=function(t){for(var e={},o=t.substr(1).split("&"),i=0;o.length>i;i+=1){var n=o[i].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return e}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ctrlKey=function(t){if("undefined"!=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}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(11);e.buildQuery=function(t,o){var n=[],r=encodeURIComponent;for(var a in t)if(t.hasOwnProperty(a)){var s=o?o+"["+a+"]":a,l=t[a];n.push(i.isPlainObject(l)?e.buildQuery(l,s):r(s)+"="+r(l))}return n.join("&")}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(4),r=o(7),a=o(58),s=o(59),l=o(125);n.Config.prototype.observer={timeout:100};var c=function(t){function e(e){var o=t.call(this,e)||this;o.onChangeStack=function(){var t=o.snapshot.make();a.Snapshot.equal(t,o.startValue)||(o.stack.push(new l.Command(o.startValue,t,o)),o.startValue=t,o.changeStack())},o.stack=new s.Stack,o.snapshot=new a.Snapshot(e);var i=e.async.debounce(o.onChangeStack,e.defaultTimeout);return e.events.on("afterAddPlace.observer",(function(){o.isInDestruct||(o.startValue=o.snapshot.make(),e.events.on(e.editor,["changeSelection.observer","selectionstart.observer","selectionchange.observer","mousedown.observer","mouseup.observer","keydown.observer","keyup.observer"].join(" "),(function(){o.startValue.html===o.jodit.getNativeEditorValue()&&(o.startValue=o.snapshot.make())})).on(o,"change.observer",(function(){o.snapshot.isBlocked||i()})))})),o}return i.__extends(e,t),e.prototype.redo=function(){this.stack.redo()&&(this.startValue=this.snapshot.make(),this.changeStack())},e.prototype.undo=function(){this.stack.undo()&&(this.startValue=this.snapshot.make(),this.changeStack())},e.prototype.clear=function(){this.startValue=this.snapshot.make(),this.stack.clear(),this.changeStack()},e.prototype.changeStack=function(){var t;this.jodit&&!this.jodit.isInDestruct&&(null===(t=this.jodit.events)||void 0===t||t.fire("changeStack"))},e.prototype.destruct=function(){this.jodit.events&&this.jodit.events.off(".observer"),this.snapshot.destruct(),delete this.snapshot,delete this.stack,delete this.startValue,t.prototype.destruct.call(this)},e}(r.Component);e.Observer=c},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(7),r=o(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isBlocked=!1,e}return i.__extends(e,t),e.equal=function(t,e){return t.html===e.html&&JSON.stringify(t.range)===JSON.stringify(e.range)},e.countNodesBeforeInParent=function(t){if(!t.parentNode)return 0;var e,o=t.parentNode.childNodes,i=0,n=null;for(e=0;o.length>e;e+=1){if(!n||r.Dom.isText(o[e])&&""===o[e].textContent||r.Dom.isText(n)&&r.Dom.isText(o[e])||(i+=1),o[e]===t)return i;n=o[e]}return 0},e.strokeOffset=function(t,e){for(;r.Dom.isText(t);)r.Dom.isText(t=t.previousSibling)&&null!==t.textContent&&(e+=t.textContent.length);return e},e.prototype.calcHierarchyLadder=function(t){var o=[];if(!t||!t.parentNode||!r.Dom.isOrContains(this.jodit.editor,t))return[];for(;t&&t!==this.jodit.editor;)t&&o.push(e.countNodesBeforeInParent(t)),t=t.parentNode;return o.reverse()},e.prototype.getElementByLadder=function(t){var e,o=this.jodit.editor;for(e=0;o&&t.length>e;e+=1)o=o.childNodes[t[e]];return o},e.prototype.make=function(){var t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.jodit.getNativeEditorValue();var o=this.jodit.selection.sel;if(o&&o.rangeCount){var i=o.getRangeAt(0),n=this.calcHierarchyLadder(i.startContainer),r=this.calcHierarchyLadder(i.endContainer),a=e.strokeOffset(i.startContainer,i.startOffset),s=e.strokeOffset(i.endContainer,i.endOffset);n.length||i.startContainer===this.jodit.editor||(a=0),r.length||i.endContainer===this.jodit.editor||(s=0),t.range={startContainer:n,startOffset:a,endContainer:r,endOffset:s}}return t},e.prototype.restore=function(t){this.isBlocked=!0,this.jodit.getNativeEditorValue()!==t.html&&this.jodit.setEditorValue(t.html),this.restoreOnlySelection(t),this.isBlocked=!1},e.prototype.restoreOnlySelection=function(t){try{if(t.range){var e=this.jodit.editorDocument.createRange();e.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),e.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.jodit.selection.selectRange(e)}}catch(t){this.jodit.editor.lastChild&&this.jodit.selection.setCursorAfter(this.jodit.editor.lastChild)}},e.prototype.destruct=function(){this.isBlocked=!1,t.prototype.destruct.call(this)},e}(n.Component);e.Snapshot=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.commands=[],this.stackPosition=-1}return t.prototype.clearRedo=function(){this.commands.length=this.stackPosition+1},t.prototype.clear=function(){this.commands.length=0,this.stackPosition=-1},t.prototype.push=function(t){this.clearRedo(),this.commands.push(t),this.stackPosition+=1},t.prototype.undo=function(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)},t.prototype.redo=function(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)},t.prototype.canUndo=function(){return this.stackPosition>=0},t.prototype.canRedo=function(){return this.commands.length-1>this.stackPosition},t}();e.Stack=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(2),n=o(2),r=o(1),a=o(10),s=o(18),l=o(9),c=o(11),d=o(25),u=o(8),f=o(3),p=function(){function t(t){var e=this;this.jodit=t,this.isMarker=function(t){return r.Dom.isNode(t,e.win)&&r.Dom.isElement(t)&&r.Dom.isTag(t,"span")&&t.hasAttribute("data-"+i.MARKER_CLASS)},this.focus=function(){var t,o,i,n;if(!e.isFocused()){e.jodit.iframe&&"complete"==e.doc.readyState&&e.jodit.iframe.focus(),e.win.focus(),e.area.focus();var a=e.sel,s=(null===(t=a)||void 0===t?void 0:t.rangeCount)?null===(o=a)||void 0===o?void 0:o.getRangeAt(0):null;if(!s||!r.Dom.isOrContains(e.area,s.startContainer)){var l=e.createRange();l.setStart(e.area,0),l.collapse(!0),e.selectRange(l)}return e.jodit.editorIsActive||null===(n=null===(i=e.jodit)||void 0===i?void 0:i.events)||void 0===n||n.fire("focus"),!0}return!1},this.eachSelection=function(t){var o=e.sel;if(o&&o.rangeCount){var i=o.getRangeAt(0),a=[],s=i.startOffset,l=e.area.childNodes.length,c=i.startContainer===e.area?e.area.childNodes[l>s?s:l-1]:i.startContainer,d=i.endContainer===e.area?e.area.childNodes[i.endOffset-1]:i.endContainer;r.Dom.find(c,(function(t){return!t||t===e.area||r.Dom.isEmptyTextNode(t)||e.isMarker(t)||a.push(t),t===d||t&&t.contains&&t.contains(d)}),e.area,!0,"nextSibling",!1);var u=function(o){if(r.Dom.isOrContains(e.jodit.editor,o,!0)){if(o.nodeName.match(/^(UL|OL)$/))return Array.from(o.childNodes).forEach(u);if(r.Dom.isTag(o,"li"))if(o.firstChild)o=o.firstChild;else{var i=e.jodit.create.inside.text(n.INVISIBLE_SPACE);o.appendChild(i),o=i}t(o)}};0===a.length&&r.Dom.isEmptyTextNode(c)&&a.push(c),a.forEach(u)}},t.events.on("removeMarkers",(function(){e.removeMarkers()}))}return t.prototype.errorNode=function(t){if(!r.Dom.isNode(t,this.win))throw f.error("Parameter node must be instance of Node")},Object.defineProperty(t.prototype,"area",{get:function(){return this.jodit.editor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"win",{get:function(){return this.jodit.editorWindow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"doc",{get:function(){return this.jodit.editorDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sel",{get:function(){return this.win.getSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){var t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()},enumerable:!0,configurable:!0}),t.prototype.createRange=function(){return this.doc.createRange()},t.prototype.remove=function(){var t=this.sel,e=this.current();if(t&&e)for(var o=0;t.rangeCount>o;o+=1)t.getRangeAt(o).deleteContents(),t.getRangeAt(o).collapse(!0)},t.prototype.removeNode=function(t){if(!r.Dom.isOrContains(this.jodit.editor,t,!0))throw f.error("Selection.removeNode can remove only editor's children");r.Dom.safeRemove(t),this.jodit.events.fire("afterRemoveNode",t)},t.prototype.insertCursorAtPoint=function(t,e){var o=this;this.removeMarkers();try{var i=this.createRange();return function(){if(o.doc.caretPositionFromPoint&&(n=o.doc.caretPositionFromPoint(t,e)))i.setStart(n.offsetNode,n.offset);else if(o.doc.caretRangeFromPoint){var n=o.doc.caretRangeFromPoint(t,e);i.setStart(n.startContainer,n.startOffset)}}(),i.collapse(!0),this.selectRange(i),!0}catch(t){}return!1},t.prototype.removeMarkers=function(){l.$$("span[data-"+i.MARKER_CLASS+"]",this.area).forEach(r.Dom.safeRemove)},t.prototype.marker=function(t,e){void 0===t&&(t=!1);var o=null;e&&(o=e.cloneRange()).collapse(t);var n=this.jodit.create.inside.span();return n.id=i.MARKER_CLASS+"_"+ +new Date+"_"+(""+Math.random()).slice(2),n.style.lineHeight="0",n.style.display="none",n.setAttribute("data-"+i.MARKER_CLASS,t?"start":"end"),n.appendChild(this.jodit.create.inside.text(i.INVISIBLE_SPACE)),o&&r.Dom.isOrContains(this.area,t?o.startContainer:o.endContainer)&&o.insertNode(n),n},t.prototype.restore=function(t){var e=this;if(void 0===t&&(t=[]),Array.isArray(t)){var o=!1;t.forEach((function(t){var i=e.area.querySelector("#"+t.endId),n=e.area.querySelector("#"+t.startId);if(n)if(o=e.createRange(),t.collapsed||!i){var a=n.previousSibling;r.Dom.isText(a)?o.setStart(a,a.nodeValue?a.nodeValue.length:0):o.setStartBefore(n),r.Dom.safeRemove(n),o.collapse(!0)}else o.setStartAfter(n),r.Dom.safeRemove(n),o.setEndBefore(i),r.Dom.safeRemove(i)})),o&&this.selectRange(o)}},t.prototype.save=function(){var t=this.sel;if(!t||!t.rangeCount)return[];var e,o,i,n=[],r=t.rangeCount,a=[];for(e=0;r>e;e+=1)a[e]=t.getRangeAt(e),a[e].collapsed?(o=this.marker(!0,a[e]),n[e]={startId:o.id,collapsed:!0,startMarker:o.outerHTML}):(o=this.marker(!0,a[e]),i=this.marker(!1,a[e]),n[e]={startId:o.id,endId:i.id,collapsed:!1,startMarker:o.outerHTML,endMarker:i.outerHTML});for(t.removeAllRanges(),e=r-1;e>=0;--e){var s=this.doc.getElementById(n[e].startId);if(s)if(n[e].collapsed)a[e].setStartAfter(s),a[e].collapse(!0);else if(a[e].setStartBefore(s),n[e].endId){var l=this.doc.getElementById(n[e].endId);l&&a[e].setEndAfter(l)}try{t.addRange(a[e].cloneRange())}catch(t){}}return n},t.prototype.isCollapsed=function(){for(var t=this.sel,e=0;t&&t.rangeCount>e;e+=1)if(!t.getRangeAt(e).collapsed)return!1;return!0},t.prototype.isFocused=function(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement},t.prototype.current=function(t){if(void 0===t&&(t=!0),this.jodit.getRealMode()===i.MODE_WYSIWYG){var e=this.sel;if(e&&e.rangeCount>0){var o=e.getRangeAt(0),n=o.startContainer,a=!1,s=function(t){return a?t.lastChild:t.firstChild};if(!r.Dom.isText(n)){if((n=o.startContainer.childNodes[o.startOffset])||(n=o.startContainer.childNodes[o.startOffset-1],a=!0),n&&e.isCollapsed&&!r.Dom.isText(n))if(!a&&r.Dom.isText(n.previousSibling))n=n.previousSibling;else if(t)for(var l=s(n);l;){if(l&&r.Dom.isText(l)){n=l;break}l=s(l)}if(n&&!e.isCollapsed&&!r.Dom.isText(n)){var c=n,d=n;do{c=c.firstChild,d=d.lastChild}while(c&&d&&!r.Dom.isText(c));c===d&&c&&r.Dom.isText(c)&&(n=c)}}if(n&&r.Dom.isOrContains(this.area,n))return n}}return!1},t.prototype.insertNode=function(t,e,o){var i;void 0===e&&(e=!0),void 0===o&&(o=!0),this.errorNode(t),!this.isFocused()&&this.jodit.isEditorMode()&&this.focus();var n=this.sel;if(this.isCollapsed()||this.jodit.execCommand("Delete"),n&&n.rangeCount){var a=n.getRangeAt(0);r.Dom.isOrContains(this.area,a.commonAncestorContainer)?/^(BR|HR|IMG|VIDEO)$/i.test(a.startContainer.nodeName)&&a.collapsed?null===(i=a.startContainer.parentNode)||void 0===i||i.insertBefore(t,a.startContainer):(a.deleteContents(),a.insertNode(t)):this.area.appendChild(t)}else this.area.appendChild(t);e&&(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.lastChild&&this.setCursorAfter(t.lastChild):this.setCursorAfter(t)),o&&this.jodit.events&&this.jodit.events.fire("synchro"),this.jodit.events&&this.jodit.events.fire("afterInsertNode",t)},t.prototype.insertHTML=function(t){if(""!==t){var e,o,i=this.jodit.create.inside.div(),n=this.jodit.create.inside.fragment();if(!this.isFocused()&&this.jodit.isEditorMode()&&this.focus(),r.Dom.isNode(t,this.win)?i.appendChild(t):i.innerHTML=t.toString(),(this.jodit.isEditorMode()||!1!==this.jodit.events.fire("insertHTML",i.innerHTML))&&(e=i.lastChild)){for(;i.firstChild;)e=i.firstChild,n.appendChild(i.firstChild);for(this.insertNode(n,!1),e?this.setCursorAfter(e):this.setCursorIn(n),o=this.area.lastChild;r.Dom.isText(o)&&o.previousSibling&&o.nodeValue&&/^\s*$/.test(o.nodeValue);)o=o.previousSibling;e&&(o&&e===o&&r.Dom.isElement(e)&&this.area.appendChild(this.jodit.create.inside.element("br")),this.setCursorAfter(e))}}},t.prototype.insertImage=function(t,e,o){var i="string"==typeof t?this.jodit.create.inside.element("img"):t;if("string"==typeof t&&i.setAttribute("src",t),null!==o){var n=o.toString();n&&"auto"!==n&&0>String(n).indexOf("px")&&0>String(n).indexOf("%")&&(n+="px"),a.css(i,"width",n)}e&&"object"==typeof e&&a.css(i,e);var r=function(){(i.offsetHeight>i.naturalHeight||i.offsetWidth>i.naturalWidth)&&(i.style.width="",i.style.height=""),i.removeEventListener("load",r)};i.addEventListener("load",r),i.complete&&r();var s=this.insertNode(i);return this.jodit.events.fire("afterInsertImage",i),s},t.prototype.setCursorAfter=function(t){var e=this;if(this.errorNode(t),!r.Dom.up(t,(function(t){return t===e.area||t&&t.parentNode===e.area}),this.area))throw f.error("Node element must be in editor");var o=this.createRange(),n=!1;return r.Dom.isText(t)?o.setEnd(t,null!==t.nodeValue?t.nodeValue.length:0):(n=this.jodit.create.inside.text(i.INVISIBLE_SPACE),o.setStartAfter(t),o.insertNode(n),o.selectNode(n)),o.collapse(!1),this.selectRange(o),n},t.prototype.cursorInTheEdge=function(t,e){var o,i=!t,a=null===(o=this.sel)||void 0===o?void 0:o.getRangeAt(0),s=this.current(!1);if(!a||!s||!r.Dom.isOrContains(e,s,!0))return null;var l=t?a.startContainer:a.endContainer,c=t?a.startOffset:a.endOffset,d=function(t){return t&&!r.Dom.isTag(t,"br")&&!r.Dom.isEmptyTextNode(t)};if(r.Dom.isText(l)){var u=l.nodeValue||"";if(i&&u.replace(n.INVISIBLE_SPACE_REG_EXP_END,"").length>c)return!1;var f=n.INVISIBLE_SPACE_REG_EXP_START.exec(u);if(t&&(f&&c>f[0].length||!f&&c>0))return!1}else{var p=Array.from(l.childNodes);if(i){if(p.slice(c).some(d))return!1}else if(p.slice(0,c).some(d))return!1}return!(t?r.Dom.prev(s,d,e):r.Dom.next(s,d,e))},t.prototype.cursorOnTheLeft=function(t){return this.cursorInTheEdge(!0,t)},t.prototype.cursorOnTheRight=function(t){return this.cursorInTheEdge(!1,t)},t.prototype.setCursorBefore=function(t){var e=this;if(this.errorNode(t),!r.Dom.up(t,(function(t){return t===e.area||t&&t.parentNode===e.area}),this.area))throw f.error("Node element must be in editor");var o=this.createRange(),n=!1;return r.Dom.isText(t)?o.setStart(t,null!==t.nodeValue?t.nodeValue.length:0):(n=this.jodit.create.inside.text(i.INVISIBLE_SPACE),o.setStartBefore(t),o.collapse(!0),o.insertNode(n),o.selectNode(n)),o.collapse(!0),this.selectRange(o),n},t.prototype.setCursorIn=function(t,e){var o=this;if(void 0===e&&(e=!1),this.errorNode(t),!r.Dom.up(t,(function(t){return t===o.area||t&&t.parentNode===o.area}),this.area))throw f.error("Node element must be in editor");var n=this.createRange(),a=t,s=t;do{if(r.Dom.isText(a))break;s=a,a=e?a.firstChild:a.lastChild}while(a);if(!a){var l=this.jodit.create.inside.text(i.INVISIBLE_SPACE);/^(img|br|input)$/i.test(s.nodeName)?a=s:(s.appendChild(l),s=l)}return n.selectNodeContents(a||s),n.collapse(e),this.selectRange(n),s},t.prototype.selectRange=function(t){var e=this.sel;e&&(e.removeAllRanges(),e.addRange(t)),this.jodit.events.fire("changeSelection")},t.prototype.select=function(t,e){var o=this;if(void 0===e&&(e=!1),this.errorNode(t),!r.Dom.up(t,(function(t){return t===o.area||t&&t.parentNode===o.area}),this.area))throw f.error("Node element must be in editor");var i=this.createRange();i[e?"selectNodeContents":"selectNode"](t),this.selectRange(i)},t.prototype.getHTML=function(){var t=this.sel;if(t&&t.rangeCount>0){var e=t.getRangeAt(0).cloneContents(),o=this.jodit.create.inside.div();return o.appendChild(e),o.innerHTML}return""},t.prototype.wrapInTag=function(t){var e=this;l.$$("*[style*=font-size]",this.area).forEach((function(t){t.style&&t.style.fontSize&&t.setAttribute("data-font-size",t.style.fontSize.toString())})),this.doc.execCommand("fontsize",!1,"7"),l.$$("*[data-font-size]",this.area).forEach((function(t){var e=t.getAttribute("data-font-size");t.style&&e&&(t.style.fontSize=e,t.removeAttribute("data-font-size"))}));var o=[];return l.$$('font[size="7"]',this.area).forEach((function(i){try{c.isFunction(t)?t(i):o.push(r.Dom.replace(i,t,e.jodit.create.inside))}finally{i.parentNode&&r.Dom.unwrap(i)}})),o},t.prototype.applyCSS=function(t,e,o){var n=this;void 0===e&&(e="span");var l,f=function(t){return null!==t&&!r.Dom.isEmptyTextNode(t)&&!n.isMarker(t)},p=function(t){return!!t&&(RegExp("^"+t.nodeName+"$","i").test(e)||!(!o||!function(t){return!r.Dom.isTag(t,"font")&&r.Dom.isElement(t)&&(c.isPlainObject(o)&&d.each(o,(function(e,o){var i=a.css(t,e,void 0,!0);return null!==i&&""!==i&&-1!==o.indexOf(i.toString().toLowerCase())}))||"function"==typeof o&&o(n.jodit,t))}(t)))&&f(t)},h=function(e){p(e)&&("SPAN"===e.nodeName&&t&&Object.keys(t).forEach((function(o){0===l||a.css(e,o)===s.normilizeCSSValue(o,t[o])?(a.css(e,o,""),void 0===l&&(l=0)):(a.css(e,o,t[o]),void 0===l&&(l=1))})),r.Dom.isBlock(e,n.win)||e.getAttribute("style")&&"SPAN"===e.nodeName||(r.Dom.unwrap(e),void 0===l&&(l=0)))};if(this.isCollapsed()){var v=!1;if(this.current()&&r.Dom.closest(this.current(),e,this.area)){v=!0;var m=r.Dom.closest(this.current(),e,this.area);m&&this.setCursorAfter(m)}if("SPAN"===e.toUpperCase()||!v){var g=this.jodit.create.inside.element(e);return g.appendChild(this.jodit.create.inside.text(i.INVISIBLE_SPACE)),this.insertNode(g,!1,!1),"SPAN"===e.toUpperCase()&&t&&a.css(g,t),void this.setCursorIn(g)}}var b=this.save();s.normalizeNode(this.area.firstChild),this.wrapInTag((function(o){if(r.Dom.next(o,f,o.parentNode)||r.Dom.prev(o,f,o.parentNode)||!p(o.parentNode)||o.parentNode===n.area||r.Dom.isBlock(o.parentNode,n.win)&&!i.IS_BLOCK.test(e))if(!o.firstChild||r.Dom.next(o.firstChild,f,o)||r.Dom.prev(o.firstChild,f,o)||!p(o.firstChild)){if(r.Dom.closest(o,p,n.area)){var s=n.createRange(),c=r.Dom.closest(o,p,n.area);s.setStartBefore(c),s.setEndBefore(o);var d=s.extractContents();d.textContent&&u.trim(d.textContent).length||!d.firstChild||r.Dom.unwrap(d.firstChild),c.parentNode&&c.parentNode.insertBefore(d,c),s.setStartAfter(o),s.setEndAfter(c);var v=s.extractContents();return v.textContent&&u.trim(v.textContent).length||!v.firstChild||r.Dom.unwrap(v.firstChild),r.Dom.after(c,v),void h(c)}var m,g=[];o.firstChild&&r.Dom.find(o.firstChild,(function(t){return t&&p(t)?(void 0===m&&(m=!0),g.push(t)):void 0===m&&(m=!1),!1}),o,!0),g.forEach(r.Dom.unwrap),m||(void 0===l&&(l=1),1===l&&a.css(r.Dom.replace(o,e,n.jodit.create.inside),t&&"SPAN"===e.toUpperCase()?t:{}))}else h(o.firstChild);else h(o.parentNode)})),this.restore(b)},t.prototype.splitSelection=function(t){if(!this.isCollapsed())return null;var e=this.createRange(),o=this.range;e.setStartBefore(t);var i=this.cursorOnTheRight(t),n=this.cursorOnTheLeft(t),a=null;if(i||n){a=this.jodit.create.inside.element("br"),o.insertNode(a);var s=function(t,e){for(var o=e(t);o;){var i=e(o);if(!o||!r.Dom.isTag(o,"br")&&!r.Dom.isEmptyTextNode(o))break;r.Dom.safeRemove(o),o=i}};s(a,(function(t){return t.nextSibling})),s(a,(function(t){return t.previousSibling})),i?(e.setEndBefore(a),o.setEndBefore(a)):(e.setEndAfter(a),o.setEndAfter(a))}else e.setEnd(o.startContainer,o.startOffset);var l=e.extractContents();if(t.parentNode)try{if(t.parentNode.insertBefore(l,t),i&&a&&a.parentNode){var c=this.createRange();c.setStartBefore(a),this.selectRange(c)}}catch(t){}return t.previousElementSibling},t}();e.Select=p},function(t,e,o){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.canUsePersistentStorage=function(){return void 0===i&&(i=function(){var t="___Jodit___"+Math.random().toString();try{localStorage.setItem(t,"1");var e="1"===localStorage.getItem(t);return localStorage.removeItem(t),e}catch(t){}return!1}()),i};var n=function(){function t(t){this.rootKey=t}return t.prototype.set=function(t,e){try{var o=localStorage.getItem(this.rootKey),i=o?JSON.parse(o):{};i[t]=e,localStorage.setItem(this.rootKey,JSON.stringify(i))}catch(t){}},t.prototype.get=function(t){try{var e=localStorage.getItem(this.rootKey),o=e?JSON.parse(e):{};return void 0!==o[t]?o[t]:null}catch(t){}},t.prototype.exists=function(t){return null!==this.get(t)},t.prototype.clear=function(){try{localStorage.removeItem(this.rootKey)}catch(t){}},t}();e.LocalStorageProvider=n},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.data=new Map}return t.prototype.set=function(t,e){this.data.set(t,e)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.exists=function(t){return this.data.has(t)},t.prototype.clear=function(){this.data.clear()},t}();e.MemoryStorageProvider=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(128),r=o(3),a=function(){function t(t){var e=this;this.__key="__JoditEventsNativeNamespaces",this.doc=document,this.__stopped=[],this.prepareEvent=function(t){t.cancelBubble||(t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach((function(e){Object.defineProperty(t,e,{value:t.changedTouches[0][e],configurable:!0,enumerable:!0})})),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&e.doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:function(){return e.doc.defaultView.clipboardData},configurable:!0,enumerable:!0}))},this.current=[],this.isDestructed=!1,t&&(this.doc=t),this.__key+=(new Date).getTime()}return t.prototype.eachEvent=function(t,e){var o=this;t.split(/[\s,]+/).forEach((function(t){var i=t.split(".");e.call(o,i[0],i[1]||n.defaultNameSpace)}))},t.prototype.getStore=function(t){if(!t)throw r.error("Need subject");if(void 0===t[this.__key]){var e=new n.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,value:e})}return t[this.__key]},t.prototype.clearStore=function(t){void 0!==t[this.__key]&&delete t[this.__key]},t.prototype.triggerNativeEvent=function(t,e){var o=this.doc.createEvent("HTMLEvents");"string"==typeof e?o.initEvent(e,!0,!0):(o.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach((function(t){Object.defineProperty(o,t,{value:e[t],enumerable:!0})})),Object.defineProperty(o,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(o)},t.prototype.removeStop=function(t){if(t){var e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(e,1)}},t.prototype.isStopped=function(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)},t.prototype.on=function(t,e,o,i,n){var a=this;void 0===n&&(n=!1);var s="string"==typeof t?this:t,l="string"==typeof e?e:t,c=o;void 0===c&&"function"==typeof e&&(c=e);var d=this.getStore(s);if("string"!=typeof l||""===l)throw r.error("Need events names");if("function"!=typeof c)throw r.error("Need event handler");if(Array.isArray(s))return s.forEach((function(t){a.on(t,l,c,i)})),this;var u="function"==typeof s.addEventListener,f=this,p=function(t){return c&&c.apply(this,arguments)};return u&&(p=function(t){if(f.prepareEvent(t),c&&!1===c.call(this,t))return t.preventDefault(),t.stopImmediatePropagation(),!1},i&&(p=function(t){f.prepareEvent(t);for(var e=t.target;e&&e!==this;){if(e.matches(i))return Object.defineProperty(t,"target",{value:e,configurable:!0,enumerable:!0}),c&&!1===c.call(e,t)?(t.preventDefault(),!1):void 0;e=e.parentNode}})),this.eachEvent(l,(function(t,e){if(""===t)throw r.error("Need event name");!1===d.indexOf(t,e,c)&&(d.set(t,e,{event:t,originalCallback:c,syntheticCallback:p},n),u&&s.addEventListener(t,p,!1))})),this},t.prototype.off=function(t,e,o){var i=this,r="string"==typeof t?this:t,a="string"==typeof e?e:t,s=this.getStore(r),l=o;if("string"!=typeof a||!a)return s.namespaces().forEach((function(t){i.off(r,"."+t)})),this.clearStore(r),this;void 0===l&&"function"==typeof e&&(l=e);var c="function"==typeof r.removeEventListener,d=function(t){c&&r.removeEventListener(t.event,t.syntheticCallback,!1)},u=function(t,e){if(""!==t){var o=s.get(t,e);if(o&&o.length)if("function"!=typeof l)o.forEach(d),o.length=0;else{var i=s.indexOf(t,e,l);!1!==i&&(d(o[i]),o.splice(i,1))}}else s.events(e).forEach((function(t){""!==t&&u(t,e)}))};return this.eachEvent(a,(function(t,e){e===n.defaultNameSpace?s.namespaces().forEach((function(e){u(t,e)})):u(t,e)})),this},t.prototype.stopPropagation=function(t,e){var o=this,i="string"==typeof t?this:t,a="string"==typeof t?t:e;if("string"!=typeof a)throw r.error("Need event names");var s=this.getStore(i);this.eachEvent(a,(function(t,e){var r=s.get(t,e);r&&o.__stopped.push(r),e===n.defaultNameSpace&&s.namespaces(!0).forEach((function(e){return o.stopPropagation(i,t+"."+e)}))}))},t.prototype.fire=function(t,e){for(var o=this,a=[],s=2;arguments.length>s;s++)a[s-2]=arguments[s];var l,c=void 0,d="string"==typeof t?this:t,u="string"==typeof t?t:e,f="string"==typeof t?i.__spreadArrays([e],a):a,p="function"==typeof d.dispatchEvent;if(!p&&"string"!=typeof u)throw r.error("Need events names");var h=this.getStore(d);return"string"!=typeof u&&p?this.triggerNativeEvent(d,e):this.eachEvent(u,(function(t,e){if(p)o.triggerNativeEvent(d,t);else{var r=h.get(t,e);if(r)try{r.every((function(e){return!o.isStopped(r)&&(o.current.push(t),l=e.syntheticCallback.apply(d,f),o.current.pop(),void 0!==l&&(c=l),!0)}))}finally{o.removeStop(r)}e!==n.defaultNameSpace||p||h.namespaces().filter((function(t){return t!==e})).forEach((function(e){var n=o.fire.apply(o,i.__spreadArrays([d,t+"."+e],f));void 0!==n&&(c=n)}))}})),c},t.prototype.destruct=function(){this.isDestructed&&(this.isDestructed=!0,this.off(this),this.getStore(this).clear(),delete this[this.__key])},t}();e.EventsNative=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(23),n=o(25),r=o(42),a=o(1),s=o(3),l=function(){function t(e,o){void 0===o&&(o=!1),this.jodit=e,this.insideCreator=o,this.applyAttributes=function(t,e){n.each(e,(function(e,o){i.isPlainObject(o)&&"style"===e?s.css(t,o):t.setAttribute(e,o.toString())}))},o||(this.inside=new t(e,!0))}return Object.defineProperty(t.prototype,"doc",{get:function(){return this.insideCreator&&s.isJoditObject(this.jodit)?this.jodit.editorDocument:this.jodit.ownerDocument},enumerable:!0,configurable:!0}),t.prototype.element=function(t,e,o){var n=this,a=this.doc.createElement(t.toLowerCase());if(this.insideCreator){var l=this.jodit.options.createAttributes;if(l&&l[t.toLowerCase()]){var c=l[t.toLowerCase()];s.isFunction(c)?c(a):i.isPlainObject(c)&&this.applyAttributes(a,c)}}return e&&(i.isPlainObject(e)?this.applyAttributes(a,e):o=e),o&&r.asArray(o).forEach((function(t){return a.appendChild("string"==typeof t?n.fromHTML(t):t)})),a},t.prototype.div=function(t,e,o){var i=this.element("div",e,o);return t&&(i.className=t),i},t.prototype.span=function(t,e,o){var i=this.element("span",e,o);return t&&(i.className=t),i},t.prototype.a=function(t,e,o){var i=this.element("a",e,o);return t&&(i.className=t),i},t.prototype.text=function(t){return this.doc.createTextNode(t)},t.prototype.fragment=function(){return this.doc.createDocumentFragment()},t.prototype.fromHTML=function(t,e){var o=this.div();o.innerHTML=t.toString();var i=o.firstChild===o.lastChild&&o.firstChild?o.firstChild:o;if(a.Dom.safeRemove(i),e){var n=s.refs(i);Object.keys(e).forEach((function(t){var o=n[t];o&&!1===e[t]&&a.Dom.hide(o)}))}return i},t}();e.Create=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(7),r=o(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.progressBar=e.jodit.create.div("jodit_progressbar",e.jodit.create.div()),e}return i.__extends(e,t),e.prototype.show=function(){return this.jodit.workplace.appendChild(this.progressBar),this},e.prototype.hide=function(){return r.Dom.safeRemove(this.progressBar),this},e.prototype.progress=function(t){return this.progressBar.style.width=t.toFixed(2)+"%",this},e.prototype.destruct=function(){return this.hide(),t.prototype.destruct.call(this)},e}(n.Component);e.ProgressBar=a},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(3),r=function(){function t(){this.items=new Map}return t.prototype.add=function(t,e){this.items.set(t.toLowerCase(),e)},t.prototype.get=function(t){return this.items.get(t.toLowerCase())},t.prototype.remove=function(t){this.items.delete(t.toLowerCase())},t.prototype.init=function(e){return i.__awaiter(this,void 0,Promise,(function(){var o,r,a,s,l,c,d,u,f=this;return i.__generator(this,(function(i){switch(i.label){case 0:if(o=e.options.extraPlugins.map((function(t){return n.isString(t)?{name:t.toLowerCase()}:t})),r=n.splitArray(e.options.disablePlugins).map((function(t){return t.toLowerCase()})),a=[],s={},l=[],c={},d=function(o,i){if(!(r.includes(i)||a.includes(i)||s[i])){var n=t.makePluginInstance(e,o);f.initOrWait(e,i,n,a,s),l.push(n),c[i]=n}},!o||!o.length)return[3,5];i.label=1;case 1:return i.trys.push([1,4,,5]),(u=o.filter((function(t){return!f.items.has(t.name)}))).length?[4,this.load(e,u)]:[3,3];case 2:i.sent(),i.label=3;case 3:return[3,5];case 4:return i.sent(),[3,5];case 5:return e.isInDestruct?[2]:(this.items.forEach(d),this.addListenerOnBeforeDestruct(e,l),e.__plugins=c,[2])}}))}))},t.makePluginInstance=function(t,e){return n.isFunction(e)?new e(t):e},t.prototype.initOrWait=function(e,o,i,r,a){var s=function(o,i){if(i.hasStyle&&t.loadStyle(e,o),n.isInitable(i)){if(i.requires&&i.requires.length&&!i.requires.every((function(t){return r.includes(t)})))return a[o]=i,!1;i.init(e),r.push(o)}else r.push(o);return!0};s(o,i),Object.keys(a).forEach((function(t){a[t]&&s(t,i)&&(a[t]=void 0,delete a[t])}))},t.prototype.addListenerOnBeforeDestruct=function(t,e){t.events.on("beforeDestruct",(function(){e.forEach((function(e){n.isDestructable(e)&&e.destruct(t)})),e.length=0,delete t.__plugins}))},t.prototype.load=function(e,o){return Promise.all(o.map((function(o){var i=o.url||t.getFullUrl(e,name,!0);return n.appendScriptAsync(e,i).then((function(t){return{v:t,status:"fulfilled"}}),(function(t){return{e:t,status:"rejected"}}))})))},t.loadStyle=function(e,o){return n.appendStyleAsync(e,t.getFullUrl(e,o,!1))},t.getFullUrl=function(t,e,o){return t.basePath+"plugins/"+e+"/"+e+"."+(o?"js":"css")},t}();e.PluginSystem=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(154);e.addNewLine=i.addNewLine;var n=o(155);e.autofocus=n.autofocus;var r=o(156);e.backspace=r.backspace;var a=o(157);e.bold=a.bold;var s=o(158);e.cleanHtml=s.cleanHtml;var l=o(68);e.clipboard=l.clipboard,e.paste=l.paste,e.pasteStorage=l.pasteStorage;var c=o(162);e.color=c.color;var d=o(163);e.DragAndDrop=d.DragAndDrop;var u=o(164);e.DragAndDropElement=u.DragAndDropElement;var f=o(165);e.enter=f.enter;var p=o(166);e.errorMessages=p.errorMessages;var h=o(167);e.font=h.font;var v=o(168);e.formatBlock=v.formatBlock;var m=o(169);e.fullsize=m.fullsize;var g=o(170);e.hotkeys=g.hotkeys;var b=o(171);e.iframe=b.iframe;var y=o(172);e.imageProcessor=y.imageProcessor;var _=o(173);e.imageProperties=_.imageProperties;var w=o(174);e.indent=w.indent;var j=o(175);e.inlinePopup=j.inlinePopup;var S=o(71);e.justify=S.justify;var C=o(176);e.limit=C.limit;var x=o(177);e.link=x.link;var k=o(178);e.media=k.media;var E=o(179);e.mobile=E.mobile;var T=o(180);e.orderedlist=T.orderedlist;var D=o(181);e.placeholder=D.placeholder;var z=o(182);e.redoundo=z.redoundo;var L=o(183);e.resizer=L.resizer;var M=o(184);e.search=M.search;var A=o(185);e.size=A.size;var I=o(186);e.source=I.source;var P=o(193);e.stat=P.stat;var q=o(194);e.sticky=q.sticky;var O=o(195);e.symbols=O.symbols;var R=o(196);e.tableKeyboardNavigation=R.tableKeyboardNavigation;var N=o(197);e.table=N.TableProcessor;var B=o(198);e.tooltip=B.tooltip;var H=o(199);e.xpath=H.xpath},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);i.__exportStar(o(69),e),i.__exportStar(o(70),e),i.__exportStar(o(160),e),o(161)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(4),n=o(2),r=o(33),a=o(70);i.Config.prototype.controls.cut={command:"cut",isDisable:function(t){return t.selection.isCollapsed()},tooltip:"Cut selection"},i.Config.prototype.controls.copy={command:"copy",isDisable:function(t){return t.selection.isCollapsed()},tooltip:"Copy selection"},e.pluginKey="clipboard";var s=function(){function t(){}return t.prototype.init=function(t){t.events.off("copy."+e.pluginKey+" cut."+e.pluginKey).on("copy."+e.pluginKey+" cut."+e.pluginKey,(function(o){var i,s,l=t.selection.getHTML(),c=a.getDataTransfer(o)||a.getDataTransfer(t.editorWindow)||a.getDataTransfer(o.originalEvent);c&&(c.setData(n.TEXT_PLAIN,r.stripTags(l)),c.setData(n.TEXT_HTML,l)),t.buffer.set(e.pluginKey,l),"cut"===o.type&&(t.selection.remove(),t.selection.focus()),o.preventDefault(),null===(s=null===(i=t)||void 0===i?void 0:i.events)||void 0===s||s.fire("afterCopy",l)}))},t.prototype.destruct=function(t){var o,i,n,r;null===(i=null===(o=t)||void 0===o?void 0:o.buffer)||void 0===i||i.set(e.pluginKey,""),null===(r=null===(n=t)||void 0===n?void 0:n.events)||void 0===r||r.off("."+e.pluginKey)},t}();e.clipboard=s},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0),n=o(4),r=o(2),a=o(12),s=o(3),l=o(1),c=o(159),d=o(69);n.Config.prototype.askBeforePasteHTML=!0,n.Config.prototype.processPasteHTML=!0,n.Config.prototype.askBeforePasteFromWord=!0,n.Config.prototype.processPasteFromWord=!0,n.Config.prototype.nl2brInPlainText=!0,n.Config.prototype.defaultActionOnPaste=r.INSERT_AS_HTML,e.getDataTransfer=function(t){if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch(t){return null}},n.Config.prototype.controls.paste={tooltip:"Paste from clipboard",exec:function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,o,n,r,s;return i.__generator(this,(function(i){switch(i.label){case 0:if(t.selection.focus(),e="",(o=!0)&&(e=t.buffer.get(d.pluginKey)||"",o=0===e.length),!o||!navigator.clipboard)return[3,11];i.label=1;case 1:return i.trys.push([1,6,,7]),[4,navigator.clipboard.read()];case 2:return(n=i.sent())&&n.length?[4,n[0].getType("text/plain")]:[3,5];case 3:return r=i.sent(),[4,new Response(r).text()];case 4:e=i.sent(),i.label=5;case 5:return[3,7];case 6:return i.sent(),[3,7];case 7:if(!o)return[3,11];i.label=8;case 8:return i.trys.push([8,10,,11]),[4,navigator.clipboard.readText()];case 9:return e=i.sent(),o=!1,[3,11];case 10:return i.sent(),[3,11];case 11:return o&&(s=t.value,t.editorDocument.execCommand("paste"),o=s!==t.value),e?t.selection.insertHTML(e):o&&a.Alert(t.i18n("Your browser doesn't support direct access to the clipboard."),(function(){t.selection.focus()})),[2]}}))}))}},e.paste=function(t){var o=t.options,i=function(e,o,i,n,r){var s;if(void 0===n&&(n="Clean"),void 0===r&&(r="Insert only Text"),!t.events||!1!==t.events.fire("beforeOpenPasteDialog",e,o,i,n,r)){var l=a.Confirm('
'+e+"
",o,i);t.markOwner(l.container);var c=l.create.fromHTML(''+t.i18n("Keep")+""),d=l.create.fromHTML(''+t.i18n(n)+""),u=l.create.fromHTML(''+t.i18n(r)+""),f=l.create.fromHTML(''+t.i18n("Cancel")+"");return t.events.on(c,"click",(function(){l.close(),i&&i(!0)})),t.events.on(d,"click",(function(){l.close(),i&&i(!1)})),t.events.on(u,"click",(function(){l.close(),i&&i(0)})),t.events.on(f,"click",(function(){l.close()})),l.setFooter([c,d,r?u:"",f]),null===(s=t.events)||void 0===s||s.fire("afterOpenPasteDialog",l,e,o,i,n,r),l}},n=function(e,o){if("string"==typeof e)switch(o){case r.INSERT_CLEAR_HTML:e=s.cleanFromWord(e);break;case r.INSERT_ONLY_TEXT:e=s.stripTags(e);break;case r.INSERT_AS_TEXT:e=s.htmlspecialchars(e)}"string"==typeof e&&t.buffer.set(d.pluginKey,e),t.selection.insertHTML(e)},u=function(e,a){var l=t.buffer.get(d.pluginKey);if(s.isHTML(e)&&l!==f(e)){e=f(e);var c=function(o){"drop"===a.type&&t.selection.insertCursorAtPoint(a.clientX,a.clientY),n(e,o),t.setEditorValue()};return o.askBeforePasteHTML?i(t.i18n("Your code is similar to HTML. Keep as HTML?"),t.i18n("Paste as HTML"),(function(t){var e=r.INSERT_AS_HTML;!1===t&&(e=r.INSERT_AS_TEXT),0===t&&(e=r.INSERT_ONLY_TEXT),c(e)}),"Insert as Text"):c(o.defaultActionOnPaste),!1}},f=function(t){var e=t.search(//i);-1!==e&&(t=t.substr(e+20));var o=t.search(//i);return-1!==o&&(t=t.substr(0,o)),t};t.events.off("paste.paste").on("paste.paste",(function(a){if(!1===function(n){var a=e.getDataTransfer(n);if(a&&n&&a.getData){if(a.getData(r.TEXT_HTML)){var c=function(e){var a=t.buffer.get(d.pluginKey);if(o.processPasteHTML&&s.isHTML(e)&&a!==f(e)){if(o.processPasteFromWord&&s.isHTMLFromWord(e)){var l=function(i){var n;if(i===r.INSERT_AS_HTML&&(e=s.applyStyles(e),o.beautifyHTML)){var a=null===(n=t.events)||void 0===n?void 0:n.fire("beautifyHTML",e);s.isString(a)&&(e=a)}i===r.INSERT_AS_TEXT&&(e=s.cleanFromWord(e)),i===r.INSERT_ONLY_TEXT&&(e=s.stripTags(s.cleanFromWord(e))),t.selection.insertHTML(e),t.setEditorValue()};o.askBeforePasteFromWord?i(t.i18n("The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?"),t.i18n("Word Paste Detected"),(function(t){var e=r.INSERT_AS_HTML;!1===t&&(e=r.INSERT_AS_TEXT),0===t&&(e=r.INSERT_ONLY_TEXT),l(e)})):l(o.defaultActionOnPaste)}else u(e,n);return!1}};if(a.types&&-1!==Array.from(a.types).indexOf("text/html")){var p=a.getData(r.TEXT_HTML);return c(p)}if("drop"!==n.type){var h=t.create.div("",{tabindex:-1,contenteditable:!0,style:{left:-9999,top:0,width:0,height:"100%",lineHeight:"140%",overflow:"hidden",position:"fixed",zIndex:2147483647,wordBreak:"break-all"}});t.container.appendChild(h);var v=t.selection.save();h.focus();var m=0,g=function(){l.Dom.safeRemove(h),t.selection&&t.selection.restore(v)},b=function(){if(m+=1,h.childNodes&&h.childNodes.length>0){var e=h.innerHTML;return g(),void(!1!==c(e)&&t.selection.insertHTML(e))}5>m?t.async.setTimeout(b,20):g()};b()}}return a.getData(r.TEXT_PLAIN)?u(a.getData(r.TEXT_PLAIN),n):void 0}}(a)||!1===t.events.fire("beforePaste",a))return a.preventDefault(),!1;var c=e.getDataTransfer(a);if(a&&c){var p=c.types,h="";if(Array.isArray(p)||"domstringlist"===s.type(p))for(var v=0;p.length>v;v+=1)h+=p[v]+";";else h=(p||r.TEXT_PLAIN).toString()+";";var m=/text\/html/i.test(h)?c.getData("text/html"):/text\/rtf/i.test(h)&&s.browser("safari")?c.getData("text/rtf"):/text\/plain/i.test(h)&&!s.browser("mozilla")?c.getData(r.TEXT_PLAIN):/text/i.test(h)&&r.IS_IE?c.getData(r.TEXT_PLAIN):null;if(l.Dom.isNode(m,t.editorWindow)||m&&""!==s.trim(m)){if(m=f(m),t.buffer.get(d.pluginKey)!==m){var g=t.events.fire("processPaste",a,m,h);void 0!==g&&(m=g)}("string"==typeof m||l.Dom.isNode(m,t.editorWindow))&&("drop"===a.type&&t.selection.insertCursorAtPoint(a.clientX,a.clientY),n(m,o.defaultActionOnPaste)),a.preventDefault(),a.stopPropagation()}}return!1!==t.events.fire("afterPaste",a)&&void 0})),o.nl2brInPlainText&&t.events.off("processPaste.paste").on("processPaste.paste",(function(t,e,o){if(o===r.TEXT_PLAIN+";"&&!s.isHTML(e))return c.nl2br(e)}))}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(4),n=o(1),r=o(3),a=o(6);i.Config.prototype.controls.align={name:"left",tooltip:"Align",getLabel:function(t,e,o){var i=t.selection.current();if(i){var s=n.Dom.closest(i,(function(e){return n.Dom.isBlock(e,t.editorWindow)}),t.editor)||t.editor,l=r.css(s,"text-align").toString();e.defaultValue&&-1!==e.defaultValue.indexOf(l)&&(l="left"),o&&e.data&&e.data.currentValue!==l&&e.list&&-1!==e.list.indexOf(l)&&(o.textBox.innerHTML=t.options.textIcons?""+l+"":a.ToolbarIcon.getIcon(l,""),o.textBox.firstChild.classList.add("jodit_icon"),e.data.currentValue=l)}return!1},isActive:function(t,e){var o=t.selection.current();if(o&&e.defaultValue){var i=n.Dom.closest(o,(function(e){return n.Dom.isBlock(e,t.editorWindow)}),t.editor)||t.editor;return-1===e.defaultValue.indexOf(r.css(i,"text-align").toString())}return!1},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},i.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},i.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},i.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},i.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},e.clearAlign=function(t,e){n.Dom.each(t,(function(t){n.Dom.isHTMLElement(t,e.editorWindow)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))}))},e.alignElement=function(t,o,i){if(n.Dom.isNode(o,i.editorWindow)&&n.Dom.isElement(o))switch(e.clearAlign(o,i),t.toLowerCase()){case"justifyfull":o.style.textAlign="justify";break;case"justifyright":o.style.textAlign="right";break;case"justifyleft":o.style.textAlign="left";break;case"justifycenter":o.style.textAlign="center"}},e.justify=function(t){var o=function(o){return t.selection.focus(),t.selection.eachSelection((function(i){if(i){var r=n.Dom.up(i,(function(e){return n.Dom.isBlock(e,t.editorWindow)}),t.editor);r||(r=n.Dom.wrapInline(i,t.options.enterBlock,t)),e.alignElement(o,r,t)}})),!1};t.registerCommand("justifyfull",o),t.registerCommand("justifyright",o),t.registerCommand("justifyleft",o),t.registerCommand("justifycenter",o)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,o,i){this.jodit=t,this.container=e,this.toWYSIWYG=o,this.fromWYSIWYG=i,this.className="",this.isReady=!1}return t.prototype.onReady=function(){this.isReady=!0,this.jodit.events.fire(this,"ready")},t.prototype.onReadyAlways=function(t){var e;this.isReady?t():null===(e=this.jodit.events)||void 0===e||e.on(this,"ready",t)},t}();e.SourceEditor=i},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(15),n=o(6);e.Prompt=function(t,e,o,r,a){var s=new i.Dialog,l=s.create.fromHTML(''+n.ToolbarIcon.getIcon("cancel")+""+s.i18n("Cancel")+""),c=s.create.fromHTML(''+n.ToolbarIcon.getIcon("check")+""+s.i18n("Ok")+""),d=s.create.element("form",{class:"jodit_prompt"}),u=s.create.element("input",{autofocus:!0,class:"jodit_input"}),f=s.create.element("label");"function"==typeof e&&(o=e,e=void 0),r&&u.setAttribute("placeholder",r),f.appendChild(s.create.text(t)),d.appendChild(f),d.appendChild(u),l.addEventListener("click",s.close,!1);var p=function(){o&&"function"==typeof o&&!1===o(u.value)||s.close()};return c.addEventListener("click",p),d.addEventListener("submit",(function(){return p(),!1})),s.setFooter([c,l]),s.open(d,e||" ",!0,!0),u.focus(),void 0!==a&&a.length&&(u.value=a,u.select()),s}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(15),n=o(6);e.Confirm=function(t,e,o){var r=new i.Dialog,a=r.create.fromHTML('
'),s=r.create.element("label");"function"==typeof e&&(o=e,e=void 0),s.appendChild(r.create.fromHTML(t)),a.appendChild(s);var l=r.create.fromHTML(''+n.ToolbarIcon.getIcon("cancel")+""+r.i18n("Cancel")+"");l.addEventListener("click",(function(){o&&o(!1),r.close()}));var c=function(){o&&o(!0),r.close()},d=r.create.fromHTML(''+n.ToolbarIcon.getIcon("check")+""+r.i18n("Yes")+"");return d.addEventListener("click",c),a.addEventListener("submit",(function(){return c(),!1})),r.setFooter([d,l]),r.open(a,e||" ",!0,!0),d.focus(),r}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(204),n=o(39);e.makeDataProvider=function(t,e){return new i.default(t,e)},e.makeContextMenu=function(t){return new n.ContextMenu(t)}},function(t,e,o){t.exports=o(77)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),o(78),"undefined"!=typeof window&&o(79);var i=o(16),n=o(135),r=o(2),a=o(21),s=o(67),l=o(209),c=o(4),d=o(6);Object.keys(r).forEach((function(t){i.Jodit[t]=r[t]}));var u=function(t){return"__esModule"!==t};Object.keys(l).filter(u).forEach((function(t){d.ToolbarIcon.setIcon(t.replace("_","-"),l[t])})),Object.keys(a).filter(u).forEach((function(t){i.Jodit.modules[t]=a[t]})),["Confirm","Alert","Prompt"].forEach((function(t){i.Jodit[t]=a[t]})),Object.keys(s).filter(u).forEach((function(t){i.Jodit.plugins.add(t,s[t])})),Object.keys(n.default).filter(u).forEach((function(t){i.Jodit.lang[t]=n.default[t]})),i.Jodit.defaultOptions=c.Config.defaultOptions,c.OptionsDefault.prototype=i.Jodit.defaultOptions,e.Jodit=i.Jodit,e.default=i.Jodit},function(t,e,o){},function(t,e,o){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),o(80),o(81),(i=Element.prototype).matches||(i.matches=void 0!==i.matchesSelector?i.matchesSelector:function(t){if(!this.ownerDocument)return[];var e=this.ownerDocument.querySelectorAll(t),o=this;return Array.prototype.some.call(e,(function(t){return t===o}))}),Array.from||(Array.from=function(t){return[].slice.call(t)}),Array.prototype.includes||(Array.prototype.includes=function(t){return this.indexOf(t)>-1}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(t),i=1;arguments.length>i;i++){var n=arguments[i];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])}return o},writable:!0,configurable:!0})},function(t,e){"document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(t){"use strict";if("Element"in t){var e=t.Element.prototype,o=Object,i=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},n=Array.prototype.indexOf||function(t){for(var e=0,o=this.length;o>e;e++)if(e in this&&this[e]===t)return e;return-1},r=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new r("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new r("INVALID_CHARACTER_ERR","String contains an invalid character");return n.call(t,e)},s=function(t){for(var e=i.call(t.getAttribute("class")||""),o=e?e.split(/\s+/):[],n=0,r=o.length;r>n;n++)this.push(o[n]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=s.prototype=[],c=function(){return new s(this)};if(r.prototype=Error.prototype,l.item=function(t){return this[t]||null},l.contains=function(t){return-1!==a(this,t+="")},l.add=function(){var t,e=arguments,o=0,i=e.length,n=!1;do{-1===a(this,t=e[o]+"")&&(this.push(t),n=!0)}while(++oo;o++)e.call(this,t=arguments[o])}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:o.call(this,t)}}t=null}())},function(t,e,o){"use strict";t.exports=o(82).polyfill()},function(t,e,o){(function(e,o){t.exports=function(){"use strict";function t(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=0,r=void 0,a=void 0,s=function(t,e){h[n]=t,h[n+1]=e,2===(n+=2)&&(a?a(v):_())},l="undefined"!=typeof window?window:void 0,c=l||{},d=c.MutationObserver||c.WebKitMutationObserver,u="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var t=setTimeout;return function(){return t(v,1)}}var h=new Array(1e3);function v(){for(var t=0;n>t;t+=2)(0,h[t])(h[t+1]),h[t]=void 0,h[t+1]=void 0;n=0}var m,g,b,y,_=void 0;function w(t,e){var o=this,i=new this.constructor(C);void 0===i[S]&&O(i);var n=o._state;if(n){var r=arguments[n-1];s((function(){return P(n,i,r,o._result)}))}else A(o,i,t,e);return i}function j(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(C);return D(e,t),e}u?_=function(){return e.nextTick(v)}:d?(g=0,b=new d(v),y=document.createTextNode(""),b.observe(y,{characterData:!0}),_=function(){y.data=g=++g%2}):f?((m=new MessageChannel).port1.onmessage=v,_=function(){return m.port2.postMessage(0)}):_=void 0===l?function(){try{var t=Function("return this")().require("vertx");return void 0!==(r=t.runOnLoop||t.runOnContext)?function(){r(v)}:p()}catch(t){return p()}}():p();var S=Math.random().toString(36).substring(2);function C(){}var x=void 0,k=1,E=2;function T(e,o,i){o.constructor===e.constructor&&i===w&&o.constructor.resolve===j?function(t,e){e._state===k?L(t,e._result):e._state===E?M(t,e._result):A(e,void 0,(function(e){return D(t,e)}),(function(e){return M(t,e)}))}(e,o):void 0===i?L(e,o):t(i)?function(t,e,o){s((function(t){var i=!1,n=function(o,n,r,a){try{o.call(n,(function(o){i||(i=!0,e!==o?D(t,o):L(t,o))}),(function(e){i||(i=!0,M(t,e))}))}catch(t){return t}}(o,e);!i&&n&&(i=!0,M(t,n))}),t)}(e,o,i):L(e,o)}function D(t,e){if(t===e)M(t,new TypeError("You cannot resolve a promise with itself"));else if(n=typeof(i=e),null===i||"object"!==n&&"function"!==n)L(t,e);else{var o=void 0;try{o=e.then}catch(e){return void M(t,e)}T(t,e,o)}var i,n}function z(t){t._onerror&&t._onerror(t._result),I(t)}function L(t,e){t._state===x&&(t._result=e,t._state=k,0!==t._subscribers.length&&s(I,t))}function M(t,e){t._state===x&&(t._state=E,t._result=e,s(z,t))}function A(t,e,o,i){var n=t._subscribers,r=n.length;t._onerror=null,n[r]=e,n[r+k]=o,n[r+E]=i,0===r&&t._state&&s(I,t)}function I(t){var e=t._subscribers,o=t._state;if(0!==e.length){for(var i=void 0,n=void 0,r=t._result,a=0;e.length>a;a+=3)n=e[a+o],(i=e[a])?P(o,i,n,r):n(r);t._subscribers.length=0}}function P(e,o,i,n){var r=t(i),a=void 0,s=void 0,l=!0;if(r){try{a=i(n)}catch(t){l=!1,s=t}if(o===a)return void M(o,new TypeError("A promises callback cannot return that same promise."))}else a=n;o._state!==x||(r&&l?D(o,a):!1===l?M(o,s):e===k?L(o,a):e===E&&M(o,a))}var q=0;function O(t){t[S]=q++,t._state=void 0,t._result=void 0,t._subscribers=[]}var R=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(C),this.promise[S]||O(this.promise),i(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?L(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&L(this.promise,this._result))):M(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===x&&t.length>e;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var o=this._instanceConstructor,i=o.resolve;if(i===j){var n=void 0,r=void 0,a=!1;try{n=t.then}catch(t){a=!0,r=t}if(n===w&&t._state!==x)this._settledAt(t._state,e,t._result);else if("function"!=typeof n)this._remaining--,this._result[e]=t;else if(o===N){var s=new o(C);a?M(s,r):T(s,t,n),this._willSettleAt(s,e)}else this._willSettleAt(new o((function(e){return e(t)})),e)}else this._willSettleAt(i(t),e)},t.prototype._settledAt=function(t,e,o){var i=this.promise;i._state===x&&(this._remaining--,t===E?M(i,o):this._result[e]=o),0===this._remaining&&L(i,this._result)},t.prototype._willSettleAt=function(t,e){var o=this;A(t,void 0,(function(t){return o._settledAt(k,e,t)}),(function(t){return o._settledAt(E,e,t)}))},t}(),N=function(){function e(t){this[S]=q++,this._result=this._state=void 0,this._subscribers=[],C!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(t,e){try{e((function(e){D(t,e)}),(function(e){M(t,e)}))}catch(e){M(t,e)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var o=this.constructor;return t(e)?this.then((function(t){return o.resolve(e()).then((function(){return t}))}),(function(t){return o.resolve(e()).then((function(){throw t}))})):this.then(e,e)},e}();return N.prototype.then=w,N.all=function(t){return new R(this,t).promise},N.race=function(t){var e=this;return i(t)?new e((function(o,i){for(var n=t.length,r=0;n>r;r++)e.resolve(t[r]).then(o,i)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))},N.resolve=j,N.reject=function(t){var e=new this(C);return M(e,t),e},N._setScheduler=function(t){a=t},N._setAsap=function(t){s=t},N._asap=s,N.polyfill=function(){var t=void 0;if(void 0!==o)t=o;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var i=null;try{i=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===i&&!e.cast)return}t.Promise=N},N.Promise=N,N}()}).call(this,o(83),o(84))},function(t,e){var o,i,n=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(o===setTimeout)return setTimeout(t,0);if((o===r||!o)&&setTimeout)return o=setTimeout,setTimeout(t,0);try{return o(t,0)}catch(e){try{return o.call(null,t,0)}catch(e){return o.call(this,t,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:r}catch(t){o=r}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l,c=[],d=!1,u=-1;function f(){d&&l&&(d=!1,l.length?c=l.concat(c):u=-1,c.length&&p())}function p(){if(!d){var t=s(f);d=!0;for(var e=c.length;e;){for(l=c,c=[];++u1)for(var o=1;arguments.length>o;o++)e[o-1]=arguments[o];c.push(new h(t,e)),1!==c.length||d||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=v,n.addListener=v,n.once=v,n.off=v,n.removeListener=v,n.removeAllListeners=v,n.emit=v,n.prependListener=v,n.prependOnceListener=v,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(t,e){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(t){"object"==typeof window&&(o=window)}t.exports=o},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);e.cns=console,e.markDeprecated=function(t,o,n){return void 0===o&&(o=[""]),void 0===n&&(n=null),function(){for(var r=[],a=0;arguments.length>a;a++)r[a]=arguments[a];return e.cns.warn('Method "'+o[0]+'" deprecated.'+(o[1]?' Use "'+o[1]+'" instead':"")),t.call.apply(t,i.__spreadArrays([n],r))}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.call=function(t){for(var e=[],o=1;arguments.length>o;o++)e[o-1]=arguments[o];return t.apply(void 0,e)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inArray=function(t,e){return-1!==e.indexOf(t)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitArray=function(t){return"string"==typeof t?t.split(/[,\s]+/):t}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(0);e.setTimeout=function(t,e){for(var o=[],n=2;arguments.length>n;n++)o[n-2]=arguments[n];return e?window.setTimeout.apply(window,i.__spreadArrays([t,e],o)):(t.call.apply(t,i.__spreadArrays([null],o)),0)},e.clearTimeout=function(t){window.clearTimeout(t)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasBrowserColorPicker=function(){var t=!0;try{var e=document.createElement("input");e.type="color",t="color"===e.type&&"number"!=typeof e.selectionStart}catch(e){t=!1}return t}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isHTML=function(t){return/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t)}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isHTMLFromWord=function(t){return-1!==t.search(//)||-1!==t.search(//)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/")+"".length);var e=document.createElement("iframe");e.style.display="none",document.body.appendChild(e);var o="",s=[];try{var l=e.contentDocument||(e.contentWindow?e.contentWindow.document:null);if(l){l.open(),l.write(t),l.close(),l.styleSheets.length&&(s=l.styleSheets[l.styleSheets.length-1].cssRules);for(var c=function(t){if(""===s[t].selectorText)return"continue";n.$$(s[t].selectorText,l.body).forEach((function(e){e.style.cssText=a(s[t].style.cssText+";"+e.style.cssText)}))},d=0;s.length>d;d+=1)c(d);i.Dom.each(l.body,(function(t){if(i.Dom.isElement(t)){var e=t,o=e.style.cssText;o&&(e.style.cssText=a(o)),e.hasAttribute("lang")&&e.removeAttribute("lang")}})),o=l.firstChild?r.trim(l.body.innerHTML):""}}catch(t){}finally{i.Dom.safeRemove(e)}return o&&(t=o),r.trim(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/