UNPKG

jodit

Version:

Jodit is awesome and usefully wysiwyg editor with filebrowser

10 lines (8 loc) 529 kB
/*! * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/) * Version: v3.4.14 * Url: https://xdsoft.net/jodit/ * License(s): MIT */ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(window,(function(){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/build/",o(o.s=68)}([function(e,t,o){"use strict";o.r(t),o.d(t,"__extends",(function(){return r})),o.d(t,"__assign",(function(){return i})),o.d(t,"__rest",(function(){return a})),o.d(t,"__decorate",(function(){return s})),o.d(t,"__param",(function(){return l})),o.d(t,"__metadata",(function(){return c})),o.d(t,"__awaiter",(function(){return u})),o.d(t,"__generator",(function(){return d})),o.d(t,"__createBinding",(function(){return f})),o.d(t,"__exportStar",(function(){return p})),o.d(t,"__values",(function(){return h})),o.d(t,"__read",(function(){return m})),o.d(t,"__spread",(function(){return v})),o.d(t,"__spreadArrays",(function(){return g})),o.d(t,"__await",(function(){return y})),o.d(t,"__asyncGenerator",(function(){return b})),o.d(t,"__asyncDelegator",(function(){return _})),o.d(t,"__asyncValues",(function(){return w})),o.d(t,"__makeTemplateObject",(function(){return S})),o.d(t,"__importStar",(function(){return C})),o.d(t,"__importDefault",(function(){return k})),o.d(t,"__classPrivateFieldGet",(function(){return E})),o.d(t,"__classPrivateFieldSet",(function(){return x}));var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function r(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var i=function(){return(i=Object.assign||function(e){for(var t,o=1,n=arguments.length;n>o;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);n.length>r;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]])}return o}function s(e,t,o,n){var r,i=arguments.length,a=3>i?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(3>i?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}function l(e,t){return function(o,n){t(o,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,o,n){return new(o||(o=Promise))((function(r,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function d(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&r[3]>i[1])){a.label=i[1];break}if(6===i[0]&&r[1]>a.label){a.label=r[1],r=i;break}if(r&&r[2]>a.label){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var f=Object.create?function(e,t,o,n){void 0===n&&(n=o),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[o]}})}:function(e,t,o,n){void 0===n&&(n=o),e[n]=t[o]};function p(e,t){for(var o in e)"default"===o||t.hasOwnProperty(o)||f(t,e,o)}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var n,r,i=o.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}function v(){for(var e=[],t=0;arguments.length>t;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,o=arguments.length;o>t;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;o>t;t++)for(var i=arguments[t],a=0,s=i.length;s>a;a++,r++)n[r]=i[a];return n}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=o.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){r[e]&&(n[e]=function(t){return new Promise((function(o,n){i.push([e,t,o,n])>1||s(e,t)}))})}function s(e,t){try{(o=r[e](t)).value instanceof y?Promise.resolve(o.value.v).then(l,c):u(i[0][2],o)}catch(e){u(i[0][3],e)}var o}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function _(e){var t,o;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,r){t[n]=e[n]?function(t){return(o=!o)?{value:y(e[n](t)),done:"return"===n}:r?r(t):t}:r}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,o=e[Symbol.asyncIterator];return o?o.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[o]&&function(t){return new Promise((function(n,r){!function(e,t,o,n){Promise.resolve(n).then((function(t){e({value:t,done:o})}),t)}(n,r,(t=e[o](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var j=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.hasOwnProperty.call(e,o)&&f(t,e,o);return j(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function x(e,t,o){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,o),o}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);n.__exportStar(o(15),t),n.__exportStar(o(106),t),n.__exportStar(o(109),t),n.__exportStar(o(27),t),n.__exportStar(o(5),t),n.__exportStar(o(30),t),n.__exportStar(o(112),t),n.__exportStar(o(32),t),n.__exportStar(o(127),t),n.__exportStar(o(12),t),n.__exportStar(o(132),t),n.__exportStar(o(133),t),n.__exportStar(o(134),t),n.__exportStar(o(135),t),n.__exportStar(o(136),t),n.__exportStar(o(137),t),n.__exportStar(o(37),t),n.__exportStar(o(139),t),n.__exportStar(o(42),t),n.__exportStar(o(140),t),n.__exportStar(o(26),t),n.__exportStar(o(36),t),n.__exportStar(o(43),t),n.__exportStar(o(141),t),n.__exportStar(o(142),t),n.__exportStar(o(31),t),n.__exportStar(o(29),t),n.__exportStar(o(143),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dom=void 0;var n=o(3),r=o(1),i=o(46),a=function(){function e(){}return e.detach=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},e.wrapInline=function(t,o,n){var i,a=t,s=t,l=n.s.save(),c=!1;do{c=!1,(i=a.previousSibling)&&!e.isBlock(i,n.ew)&&(c=!0,a=i)}while(c);do{c=!1,(i=s.nextSibling)&&!e.isBlock(i,n.ew)&&(c=!0,s=i)}while(c);var u=r.isString(o)?n.createInside.element(o):o;a.parentNode&&a.parentNode.insertBefore(u,a);for(var d=a;d&&(d=a.nextSibling,u.appendChild(a),a!==s&&d);)a=d;return n.s.restore(l),u},e.wrap=function(e,t,o){var n=o.s.save(),i=r.isString(t)?o.createInside.element(t):t;return e.parentNode?(e.parentNode.insertBefore(i,e),i.appendChild(e),o.s.restore(n),i):null},e.unwrap=function(t){var o=t.parentNode;if(o){for(;t.firstChild;)o.insertBefore(t.firstChild,t);e.safeRemove(t)}},e.each=function(t,o){var n=t.firstChild;if(n)for(;n;){var r=e.next(n,Boolean,t);if(!1===o(n))return!1;if(n.parentNode&&!e.each(n,o))return!1;n=r}return!0},e.replace=function(e,t,o,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1);var a=r.isString(t)?o.element(t):t;if(!i)for(;e.firstChild;)a.appendChild(e.firstChild);return n&&Array.from(e.attributes).forEach((function(e){a.setAttribute(e.name,e.value)})),e.parentNode&&e.parentNode.replaceChild(a,e),a},e.isEmptyTextNode=function(t){return e.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").length)},e.isEmpty=function(t,o){return void 0===o&&(o=/^(img|svg|canvas|input|textarea|form)$/),!t||(e.isText(t)?null===t.nodeValue||0===r.trim(t.nodeValue).length:!o.test(t.nodeName.toLowerCase())&&e.each(t,(function(t){if(e.isText(t)&&null!==t.nodeValue&&0!==r.trim(t.nodeValue).length||e.isElement(t)&&o.test(t.nodeName.toLowerCase()))return!1})))},e.isNode=function(e,t){return!!e&&!("object"!=typeof t||!t||"function"!=typeof t.Node&&"object"!=typeof t.Node)&&e instanceof t.Node},e.isCell=function(t,o){return e.isNode(t,o)&&/^(td|th)$/i.test(t.nodeName)},e.isImage=function(t,o){return e.isNode(t,o)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)},e.isBlock=function(t,o){return t&&"object"==typeof t&&e.isNode(t,o)&&n.IS_BLOCK.test(t.nodeName)},e.isText=function(e){return Boolean(e&&e.nodeType===Node.TEXT_NODE)},e.isElement=function(e){return Boolean(e&&e.nodeType===Node.ELEMENT_NODE)},e.isHTMLElement=function(t,o){return e.isNode(t,o)&&t instanceof o.HTMLElement},e.isInlineBlock=function(t){return e.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf(r.css(t,"display").toString())},e.canSplitBlock=function(t,o){return t&&t instanceof o.HTMLElement&&e.isBlock(t,o)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)},e.prev=function(t,o,n,r){return void 0===r&&(r=!0),e.find(t,o,n,!1,"previousSibling",!!r&&"lastChild")},e.next=function(t,o,n,r){return void 0===r&&(r=!0),e.find(t,o,n,void 0,void 0,!!r&&"firstChild")},e.prevWithClass=function(t,o){return e.prev(t,(function(t){return e.isElement(t)&&t.classList.contains(o)}),t.parentNode)},e.nextWithClass=function(t,o){return e.next(t,(function(t){return e.isElement(t)&&t.classList.contains(o)}),t.parentNode)},e.find=function(t,o,n,r,i,a){if(void 0===r&&(r=!1),void 0===i&&(i="nextSibling"),void 0===a&&(a="firstChild"),r&&o(t))return t;var s,l=t;do{if(o(s=l[i]))return s||null;if(a&&s&&s[a]){var c=e.find(s[a],o,s,!0,i,a);if(c)return c}s||(s=l.parentNode),l=s}while(l&&l!==n);return null},e.findWithCurrent=function(t,o,n,r,i){void 0===r&&(r="nextSibling"),void 0===i&&(i="firstChild");var a=t;do{if(o(a))return a||null;if(i&&a&&a[i]){var s=e.findWithCurrent(a[i],o,a,r,i);if(s)return s}for(;a&&!a[r]&&a!==n;)a=a.parentNode;a&&a[r]&&a!==n&&(a=a[r])}while(a&&a!==n);return null},e.getNormalSibling=function(t,o,n){void 0===o&&(o=!0),void 0===n&&(n=function(t){return!e.isEmptyTextNode(t)});for(var r=i.getSibling(t,o);r&&!n(r);)r=i.getSibling(r,o);return r&&n(r)?r:null},e.up=function(e,t,o,n){void 0===n&&(n=!1);var r=e;if(!e)return null;do{if(t(r))return r;if(r===o||!r.parentNode)break;r=r.parentNode}while(r&&r!==o);return r===o&&n&&t(r)?r:null},e.closest=function(t,o,n){var i;return i=r.isFunction(o)?o:r.isArray(o)?function(e){return e&&o.includes(e.nodeName.toLowerCase())}:function(e){return e&&o===e.nodeName.toLowerCase()},e.up(t,i,n)},e.appendChildFirst=function(e,t){var o=e.firstChild;o?o!==t&&e.insertBefore(t,o):e.appendChild(t)},e.after=function(e,t){var o=e.parentNode;o&&(o.lastChild===e?o.appendChild(t):o.insertBefore(t,e.nextSibling))},e.before=function(e,t){var o=e.parentNode;o&&o.insertBefore(t,e)},e.prepend=function(e,t){e.insertBefore(t,e.firstChild)},e.append=function(e,t){e.appendChild(t)},e.moveContent=function(e,t,o){void 0===o&&(o=!1);var n=(e.ownerDocument||document).createDocumentFragment();Array.from(e.childNodes).forEach((function(e){n.appendChild(e)})),o&&t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)},e.all=function(t,o,n){void 0===n&&(n=!1);var r=t.childNodes?Array.from(t.childNodes):[];return o(t)?t:(n&&(r=r.reverse()),r.forEach((function(t){e.all(t,o,n)})),null)},e.isOrContains=function(e,t,o){return void 0===o&&(o=!1),e===t?!o:Boolean(t&&e&&this.up(t,(function(t){return t===e}),e,!0))},e.safeRemove=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.hide=function(e){e&&(r.dataBind(e,"__old_display",e.style.display),e.style.display="none")},e.show=function(e){if(e){var t=r.dataBind(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}},e.isTag=function(e,t){for(var o=r.asArray(t).map(String),n=0;o.length>n;n+=1)if(this.isElement(e)&&e.tagName.toLowerCase()===o[n].toLowerCase())return!0;return!1},e.findInline=function(t,o,n){var r=t,i=null;do{if(!r)break;if((i=o?r.previousSibling:r.nextSibling)||!r.parentNode||r.parentNode===n||!e.isInlineBlock(r.parentNode))break;r=r.parentNode}while(!i);for(;i&&e.isInlineBlock(i)&&(o?i.lastChild:i.firstChild);)i=o?i.lastChild:i.firstChild;return i},e}();t.Dom=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BASE_PATH=t.KEY_ALIASES=t.IS_MAC=t.SAFE_COUNT_CHANGE_CALL=t.INSERT_ONLY_TEXT=t.INSERT_AS_TEXT=t.INSERT_CLEAR_HTML=t.INSERT_AS_HTML=t.EMULATE_DBLCLICK_TIMEOUT=t.MARKER_CLASS=t.TEXT_HTML=t.TEXT_PLAIN=t.URL_LIST=t.IS_IE=t.MODE_SPLIT=t.MODE_SOURCE=t.MODE_WYSIWYG=t.PARAGRAPH=t.BR=t.COMMAND_KEYS=t.ACCURACY=t.NEARBY=t.KEY_F3=t.KEY_DELETE=t.KEY_DOWN=t.KEY_RIGHT=t.KEY_UP=t.KEY_LEFT=t.KEY_ESC=t.KEY_ENTER=t.KEY_TAB=t.KEY_BACKSPACE=t.MAY_BE_REMOVED_WITH_KEY=t.INSEPARABLE_TAGS=t.IS_INLINE=t.IS_BLOCK=t.SPACE_REG_EXP_END=t.SPACE_REG_EXP_START=t.SPACE_REG_EXP=t.INVISIBLE_SPACE_REG_EXP_START=t.INVISIBLE_SPACE_REG_EXP_END=t.INVISIBLE_SPACE_REG_EXP=t.INVISIBLE_SPACE=void 0,t.INVISIBLE_SPACE="\ufeff",t.INVISIBLE_SPACE_REG_EXP=function(){return/[\uFEFF]/g},t.INVISIBLE_SPACE_REG_EXP_END=function(){return/[\uFEFF]+$/g},t.INVISIBLE_SPACE_REG_EXP_START=function(){return/^[\uFEFF]+/g},t.SPACE_REG_EXP=function(){return/[\s\n\t\r\uFEFF\u200b]+/g},t.SPACE_REG_EXP_START=function(){return/^[\s\n\t\r\uFEFF\u200b]+/g},t.SPACE_REG_EXP_END=function(){return/[\s\n\t\r\uFEFF\u200b]+$/g},t.IS_BLOCK=/^(SCRIPT|IFRAME|JODIT|JODIT-MEDIA|PRE|DIV|P|LI|UL|OL|H[1-6]|BLOCKQUOTE|TD|TH|TABLE|BODY|HTML|FIGCAPTION|FIGURE|DT|DD)$/i,t.IS_INLINE=/^(STRONG|SPAN|I|EM|B|SUP|SUB)$/i,t.INSEPARABLE_TAGS=["img","br","iframe","script","input","textarea","hr","jodit","jodit-media"],t.MAY_BE_REMOVED_WITH_KEY=RegExp("^"+t.INSEPARABLE_TAGS.join("|")+"$","i"),t.KEY_BACKSPACE="Backspace",t.KEY_TAB="Tab",t.KEY_ENTER="Enter",t.KEY_ESC="Escape",t.KEY_LEFT="ArrowLeft",t.KEY_UP="ArrowUp",t.KEY_RIGHT="ArrowRight",t.KEY_DOWN="ArrowDown",t.KEY_DELETE="Delete",t.KEY_F3="F3",t.NEARBY=5,t.ACCURACY=10,t.COMMAND_KEYS=[t.KEY_BACKSPACE,t.KEY_DELETE,t.KEY_UP,t.KEY_DOWN,t.KEY_RIGHT,t.KEY_LEFT,t.KEY_ENTER,t.KEY_ESC,t.KEY_F3,t.KEY_TAB],t.BR="br",t.PARAGRAPH="p",t.MODE_WYSIWYG=1,t.MODE_SOURCE=2,t.MODE_SPLIT=3,t.IS_IE="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),t.URL_LIST=t.IS_IE?"url":"text/uri-list",t.TEXT_PLAIN=t.IS_IE?"text":"text/plain",t.TEXT_HTML=t.IS_IE?"text":"text/html",t.MARKER_CLASS="jodit-selection_marker",t.EMULATE_DBLCLICK_TIMEOUT=300,t.INSERT_AS_HTML="insert_as_html",t.INSERT_CLEAR_HTML="insert_clear_html",t.INSERT_AS_TEXT="insert_as_text",t.INSERT_ONLY_TEXT="insert_only_text",t.SAFE_COUNT_CHANGE_CALL=10,t.IS_MAC="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t.KEY_ALIASES={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:t.IS_MAC?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},t.BASE_PATH=function(){if("undefined"==typeof document)return"";var e=document.currentScript,t=function(e){return e.replace(/\/[^/]+.js$/,"/")};if(e)return t(e.src);var o=document.querySelectorAll("script[src]");return o&&o.length?t(o[o.length-1].src):window.location.href}()},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.configFactory=t.OptionsDefault=t.Config=void 0;var n=o(0),r=o(3),i=o(2),a=o(1),s=o(18),l=function(){function e(){this.iframe=!1,this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,this.shadowRoot=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=1e3,this.useNativeTooltip=!1,this.enter=r.PARAGRAPH,this.enterBlock="br"!==this.enter?this.enter:r.PARAGRAPH,this.defaultMode=r.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","\n","undo","redo","|","hr","copyformat","fullsize","dots"],this.buttonsSM=["source","|","bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","|","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","dots"],this.buttonsXS=["bold","image","|","brush","paragraph","eraser","\n","align","|","undo","redo","|","dots"],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!0}return Object.defineProperty(e,"defaultOptions",{get:function(){return e.__defaultOptions||(e.__defaultOptions=new e),e.__defaultOptions},enumerable:!1,configurable:!0}),e}();t.Config=l,t.OptionsDefault=function(e,t){var o=this;void 0===t&&(t=l.defaultOptions);var n=this;if(n.plainOptions=e,void 0!==e&&"object"==typeof e){var r=function(e,i){if("preset"===i&&void 0!==t.presets[e.preset]){var s=t.presets[e.preset];Object.keys(s).forEach(r.bind(o,s))}var l=t[i];n[i]="object"!=typeof l||null===l||["ownerWindow","ownerDocument"].includes(i)||a.isArray(l)?e[i]:a.extend(!0,{},l,e[i])};Object.keys(e).forEach(r.bind(this,e))}},l.prototype.controls={print:{exec:function(e){var t=window.open("","PRINT");t&&(e.o.iframe?(e.e.fire("generateDocumentStructure.iframe",t.document,e),t.document.body.innerHTML=e.value):(t.document.write('<!doctype html><html lang="'+a.defaultLanguage(e.o.language)+'"><head><title></title></head><body>'+e.value+"</body></html>"),t.document.close()),t.focus(),t.print(),t.close())},mode:r.MODE_SOURCE+r.MODE_WYSIWYG,tooltip:"Print"},hr:{command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},image:{popup:function(e,t,o,r){var l=null;t&&!i.Dom.isText(t)&&i.Dom.isHTMLElement(t,e.ew)&&(i.Dom.isTag(t,"img")||a.$$("img",t).length)&&(l=i.Dom.isTag(t,"img")?t:a.$$("img",t)[0]);var c=e.s.save();return s.FileSelectorWidget(e,{filebrowser:function(t){e.s.restore(c),t.files&&t.files.forEach((function(o){return e.s.insertImage(t.baseurl+o,null,e.o.imageDefaultWidth)})),r()},upload:!0,url:function(t,o){return n.__awaiter(void 0,void 0,void 0,(function(){var i;return n.__generator(this,(function(n){switch(n.label){case 0:return e.s.restore(c),(i=l||e.createInside.element("img")).setAttribute("src",t),i.setAttribute("alt",o),l?[3,2]:[4,e.s.insertImage(i,null,e.o.imageDefaultWidth)];case 1:n.sent(),n.label=2;case 2:return r(),[2]}}))}))}},l,r)},tags:["img"],tooltip:"Insert Image"},file:{popup:function(e,t,o,n){var r=function(t,o){void 0===o&&(o=""),e.s.insertNode(e.createInside.fromHTML('<a href="'+t+'" title="'+o+'">'+(o||t)+"</a>"))},a=null;return t&&(i.Dom.isTag(t,"a")||i.Dom.closest(t,"a",e.editor))&&(a=i.Dom.isTag(t,"a")?t:i.Dom.closest(t,"a",e.editor)),s.FileSelectorWidget(e,{filebrowser:function(e){e.files&&e.files.forEach((function(t){return r(e.baseurl+t)})),n()},upload:!0,url:function(e,t){a?(a.setAttribute("href",e),a.setAttribute("title",t)):r(e,t),n()}},a,n,!1)},tags:["a"],tooltip:"Insert file"},video:{popup:function(e,t,o,n){var r=e.c.fromHTML('<form class="jodit-form">\n\t\t\t\t\t<div class="jodit jodit-form__group">\n\t\t\t\t\t\t<input class="jodit-input" required name="code" placeholder="http://" type="url"/>\n\t\t\t\t\t\t<button class="jodit-button" type="submit">'+e.i18n("Insert")+"</button>\n\t\t\t\t\t</div>\n\t\t\t\t</form>"),i=e.c.fromHTML('<form class="jodit-form">\n\t\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t\t<textarea class="jodit-textarea" required name="code" placeholder="'+e.i18n("Embed code")+'"></textarea>\n\t\t\t\t\t\t\t\t\t\t<button class="jodit-button" type="submit">'+e.i18n("Insert")+"</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</form>"),l=[],c=e.s.save(),u=function(t){e.s.restore(c),e.s.insertHTML(t),n()};return l.push({icon:"link",name:"Link",content:r},{icon:"source",name:"Code",content:i}),e.e.on(i,"submit",(function(e){return e.preventDefault(),a.trim(a.val(i,"textarea[name=code]"))?(u(a.val(i,"textarea[name=code]")),!1):(i.querySelector("textarea[name=code]").focus(),i.querySelector("textarea[name=code]").classList.add("jodit_error"),!1)})),e.e.on(r,"submit",(function(e){return e.preventDefault(),a.isURL(a.val(r,"input[name=code]"))?(u(a.convertMediaUrlToVideoEmbed(a.val(r,"input[name=code]"))),!1):(r.querySelector("input[name=code]").focus(),r.querySelector("input[name=code]").classList.add("jodit_error"),!1)})),s.TabsWidget(e,l)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},t.configFactory=function(e){return new t.OptionsDefault(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);n.__exportStar(o(80),t),n.__exportStar(o(81),t),n.__exportStar(o(82),t),n.__exportStar(o(91),t),n.__exportStar(o(28),t),n.__exportStar(o(92),t),n.__exportStar(o(93),t),n.__exportStar(o(94),t),n.__exportStar(o(95),t),n.__exportStar(o(96),t),n.__exportStar(o(97),t),n.__exportStar(o(98),t),n.__exportStar(o(40),t),n.__exportStar(o(99),t),n.__exportStar(o(21),t),n.__exportStar(o(100),t),n.__exportStar(o(101),t),n.__exportStar(o(102),t),n.__exportStar(o(41),t),n.__exportStar(o(103),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);n.__exportStar(o(44),t),n.__exportStar(o(45),t),n.__exportStar(o(138),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Plugin=void 0;var n=o(0),r=o(10),i=o(6),a=function(e){function t(t){var o=e.call(this,t)||this;return t.e.on("afterInit",o.afterInit.bind(o,t)).on("beforeDestruct",o.destruct),o.setStatus(i.STATUSES.ready),o}return n.__extends(t,e),t.prototype.init=function(e){},t.prototype.destruct=function(){var t,o;this.isInDestruct||(this.setStatus(i.STATUSES.beforeDestruct),null===(o=null===(t=this.j)||void 0===t?void 0:t.events)||void 0===o||o.off("beforeDestruct",this.destruct),this.beforeDestruct(this.j),e.prototype.destruct.call(this))},n.__decorate([r.default],t.prototype,"destruct",null),t}(i.ViewComponent);t.Plugin=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);n.__exportStar(o(22),t),n.__exportStar(o(16),t),n.__exportStar(o(23),t),n.__exportStar(o(50),t),n.__exportStar(o(51),t),n.__exportStar(o(154),t),n.__exportStar(o(49),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Helpers=void 0;var n=o(0);n.__exportStar(o(20),t);var r=o(33);Object.defineProperty(t,"Ajax",{enumerable:!0,get:function(){return r.Ajax}});var i=o(6);Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return i.Component}}),Object.defineProperty(t,"ViewComponent",{enumerable:!0,get:function(){return i.ViewComponent}}),Object.defineProperty(t,"STATUSES",{enumerable:!0,get:function(){return i.STATUSES}});var a=o(52);Object.defineProperty(t,"ContextMenu",{enumerable:!0,get:function(){return a.ContextMenu}});var s=o(14);Object.defineProperty(t,"Alert",{enumerable:!0,get:function(){return s.Alert}}),Object.defineProperty(t,"Confirm",{enumerable:!0,get:function(){return s.Confirm}}),Object.defineProperty(t,"Prompt",{enumerable:!0,get:function(){return s.Prompt}}),Object.defineProperty(t,"Dialog",{enumerable:!0,get:function(){return s.Dialog}});var l=o(2);Object.defineProperty(t,"Dom",{enumerable:!0,get:function(){return l.Dom}});var c=o(7);Object.defineProperty(t,"Plugin",{enumerable:!0,get:function(){return c.Plugin}});var u=o(172);Object.defineProperty(t,"Create",{enumerable:!0,get:function(){return u.Create}});var d=o(8);Object.defineProperty(t,"UIElement",{enumerable:!0,get:function(){return d.UIElement}}),Object.defineProperty(t,"UIButton",{enumerable:!0,get:function(){return d.UIButton}}),Object.defineProperty(t,"Popup",{enumerable:!0,get:function(){return d.Popup}}),Object.defineProperty(t,"UISeparator",{enumerable:!0,get:function(){return d.UISeparator}}),Object.defineProperty(t,"UIGroup",{enumerable:!0,get:function(){return d.UIGroup}}),Object.defineProperty(t,"UIList",{enumerable:!0,get:function(){return d.UIList}}),Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return d.Icon}});var f=o(53);Object.defineProperty(t,"View",{enumerable:!0,get:function(){return f.View}});var p=o(25);Object.defineProperty(t,"ViewWithToolbar",{enumerable:!0,get:function(){return p.ViewWithToolbar}});var h=o(173);Object.defineProperty(t,"FileBrowser",{enumerable:!0,get:function(){return h.FileBrowser}});var m=o(1);t.Helpers=m;var v=o(181);Object.defineProperty(t,"ImageEditor",{enumerable:!0,get:function(){return v.ImageEditor}});var g=o(184);Object.defineProperty(t,"Observer",{enumerable:!0,get:function(){return g.Observer}});var y=o(187);Object.defineProperty(t,"ProgressBar",{enumerable:!0,get:function(){return y.ProgressBar}});var b=o(189);Object.defineProperty(t,"Select",{enumerable:!0,get:function(){return b.Select}}),Object.defineProperty(t,"Style",{enumerable:!0,get:function(){return b.Style}});var _=o(61);Object.defineProperty(t,"Snapshot",{enumerable:!0,get:function(){return _.Snapshot}});var w=o(192);Object.defineProperty(t,"StatusBar",{enumerable:!0,get:function(){return w.StatusBar}});var S=o(194);Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return S.Table}});var j=o(56);Object.defineProperty(t,"ToolbarEditorCollection",{enumerable:!0,get:function(){return j.ToolbarEditorCollection}});var C=o(35);Object.defineProperty(t,"ToolbarCollection",{enumerable:!0,get:function(){return C.ToolbarCollection}}),n.__exportStar(o(195),t);var k=o(196);Object.defineProperty(t,"Uploader",{enumerable:!0,get:function(){return k.Uploader}});var E=o(38);Object.defineProperty(t,"PluginSystem",{enumerable:!0,get:function(){return E.PluginSystem}})},function(e,t,o){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,o){var r=o.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(n(r)));var i=!1;return{configurable:!0,get:function(){if(i||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof r)return r;var o=r.bind(this);return i=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return o},set:function(e){r=e,delete this[t]}}),i=!1,o},set:function(e){r=e}}}function i(e){var t;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype)))),t.forEach((function(t){if("constructor"!==t){var o=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof o.value&&Object.defineProperty(e.prototype,t,r(e,t,o))}})),e}function a(){return 1===arguments.length?i.apply(void 0,arguments):r.apply(void 0,arguments)}o.r(t),o.d(t,"boundMethod",(function(){return r})),o.d(t,"boundClass",(function(){return i})),o.d(t,"default",(function(){return a}))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventEmitter=t.getContainer=t.lang=t.modules=t.pluginSystem=t.uniqueUid=t.instances=void 0;var n=o(38),r=o(2),i=o(1),a=o(20);t.instances={};var s=1;t.uniqueUid=function(){return s+=10*(Math.random()+1),Math.round(s).toString(16)},t.pluginSystem=new n.PluginSystem,t.modules={},t.lang={};var l=new WeakMap;t.getContainer=function(e,t,o,n){void 0===o&&(o="div"),void 0===n&&(n=!1);var a=i.getClassName(t.prototype),s=l.get(e)||{};if(!s[a]){var c=i.isViewObject(e)?e:e.j,u=c.c,d=e.od.body;n&&i.isJoditObject(e)&&e.od!==e.ed&&(u=e.createInside,d="style"===o?e.ed.head:e.ed.body);var f=u.element(o,{className:"jodit jodit-"+i.kebabCase(a)+"-container jodit-box"});f.classList.add("jodit_theme_"+(c.o.theme||"default")),d.appendChild(f),s[a]=f,e.hookStatus("beforeDestruct",(function(){r.Dom.safeRemove(f),delete s[a],Object.keys(s).length&&l.delete(e)})),l.set(e,s)}return s[a]},t.eventEmitter=new a.EventsNative},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);n.__exportStar(o(83),t),n.__exportStar(o(84),t),n.__exportStar(o(85),t),n.__exportStar(o(86),t),n.__exportStar(o(87),t),n.__exportStar(o(88),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);n.__exportStar(o(48),t),n.__exportStar(o(150),t),n.__exportStar(o(151),t),n.__exportStar(o(152),t),n.__exportStar(o(153),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(24);Object.defineProperty(t,"Dialog",{enumerable:!0,get:function(){return n.Dialog}});var r=o(169);Object.defineProperty(t,"Alert",{enumerable:!0,get:function(){return r.Alert}});var i=o(170);Object.defineProperty(t,"Prompt",{enumerable:!0,get:function(){return i.Prompt}});var a=o(171);Object.defineProperty(t,"Confirm",{enumerable:!0,get:function(){return a.Confirm}})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);n.__exportStar(o(78),t),n.__exportStar(o(79),t),n.__exportStar(o(104),t),n.__exportStar(o(105),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(0).__exportStar(o(47),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeButton=t.makeCollection=void 0;var n=o(1),r=o(35),i=o(56),a=o(57),s=o(58);t.makeCollection=function(e,t){var o=n.isJoditObject(e)?new i.ToolbarEditorCollection(e):new r.ToolbarCollection(e);return e.o.textIcons&&o.container.classList.add("jodit_text_icons"),t&&(o.parentElement=t),e.o.toolbarButtonSize&&(o.buttonSize=e.o.toolbarButtonSize),o},t.makeButton=function(e,t,o){if(void 0===o&&(o=null),n.isFunction(t.getContent))return new s.ToolbarContent(e,t,o);var r=new a.ToolbarButton(e,t,o);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,r}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);n.__exportStar(o(144),t),n.__exportStar(o(158),t),n.__exportStar(o(160),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ICON_LOADER=t.ITEM_CLASS=t.F_CLASS=void 0,t.F_CLASS="jodit-filebrowser",t.ITEM_CLASS=t.F_CLASS+"__files-item",t.ICON_LOADER='<i class="jodit-icon_loader"></i>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);n.__exportStar(o(89),t),n.__exportStar(o(90),t),n.__exportStar(o(39),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isString=void 0,t.isString=function(e){return"string"==typeof e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UIElement=void 0;var n=o(0),r=o(6),i=o(2),a=o(15),s=function(e){function t(o){var n=e.call(this,o)||this;return n.__parentElement=null,n.mods={},n.container=n.createContainer(),Object.defineProperty(n.container,"component",{value:n}),a.getClassName(n)===a.getClassName(t.prototype)&&n.setStatus(r.STATUSES.ready),n}return n.__extends(t,e),Object.defineProperty(t.prototype,"parentElement",{get:function(){return this.__parentElement},set:function(e){var t=this;this.__parentElement=e,e&&e.hookStatus("beforeDestruct",(function(){return t.destruct()})),this.updateParentElement(this)},enumerable:!1,configurable:!0}),t.prototype.updateParentElement=function(e){var t;return null===(t=this.__parentElement)||void 0===t||t.updateParentElement(e),this},t.prototype.closest=function(e){for(var t="object"==typeof e?function(t){return t===e}:function(t){return t instanceof e},o=this.__parentElement;o;){if(t(o))return o;o=o.parentElement}return null},t.closestElement=function(e,t){var o=i.Dom.up(e,(function(e){if(e){var o=e.component;return o&&o instanceof t}return!1}));return o?null==o?void 0:o.component:null},t.prototype.setMod=function(e,t,o){if(void 0===o&&(o=this.container),e=e.toLowerCase(),this.mods[e]===t)return this;var n=this.componentName+"_"+e,r=o.classList;return Array.from(r).forEach((function(e){0===e.indexOf(n)&&r.remove(e)})),null!==t&&""!==t&&r.add(n+"_"+t.toString().toLowerCase()),this.mods[e]=t,this},t.prototype.update=function(){},t.prototype.appendTo=function(e){return e.appendChild(this.container),this},t.prototype.clearName=function(e){return e.replace(/[^a-zA-Z0-9]/g,"_")},t.prototype.createContainer=function(){return this.j.c.div(this.componentName)},t.prototype.destruct=function(){return i.Dom.safeRemove(this.container),this.parentElement=null,e.prototype.destruct.call(this)},t}(r.ViewComponent);t.UIElement=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(0).__exportStar(o(147),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dialog=void 0;var n=o(0);o(162);var r=o(10),i=o(4),a=o(3),s=o(1),l=o(25),c=o(2),u=o(6),d=o(11);i.Config.prototype.dialog={extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[]},i.Config.prototype.controls.dialog={close:{icon:"cancel",exec:function(e){e.close()}}};var f=function(e){function t(t){var o=e.call(this,t)||this;o.destination=document.body,o.destroyAfterClose=!1,o.moved=!1,o.iSetMaximization=!1,o.resizable=!1,o.draggable=!1,o.startX=0,o.startY=0,o.startPoint={x:0,y:0,w:0,h:0},o.lockSelect=function(){o.container.classList.add("jodit-dialog__box-moved")},o.unlockSelect=function(){o.container.classList.remove("jodit-dialog__box-moved")},o.onResize=function(){o.options&&o.o.resizable&&!o.moved&&o.isOpened&&!o.offsetX&&!o.offsetY&&o.setPosition()},o.isOpened=!1;var n=o;n.options=new i.OptionsDefault(s.extend(!0,{toolbarButtonSize:"middle"},i.Config.prototype.dialog,t)),c.Dom.safeRemove(n.container),n.container=o.c.fromHTML('<div style="z-index:'+n.o.zIndex+'" class="jodit jodit-dialog__box"><div class="jodit-dialog__overlay"></div><div class="jodit-dialog"><div class="jodit-dialog__header non-selected"><div class="jodit-dialog__header-title"></div><div class="jodit-dialog__header-toolbar"></div></div><div class="jodit-dialog__content"></div><div class="jodit-dialog__footer"></div>'+(n.o.resizable?'<div class="jodit-dialog__resizer"></div>':"")+"</div></div>"),s.attr(n.container,"role","dialog"),Object.defineProperty(n.container,"component",{value:o}),n.container.classList.add("jodit_theme_"+(o.o.theme||"default")),n.dialog=n.container.querySelector(".jodit-dialog"),n.resizer=n.container.querySelector(".jodit-dialog__resizer"),n.dialogbox_header=n.container.querySelector(".jodit-dialog__header>.jodit-dialog__header-title"),n.dialogbox_content=n.container.querySelector(".jodit-dialog__content"),n.dialogbox_footer=n.container.querySelector(".jodit-dialog__footer"),n.dialogbox_toolbar=n.container.querySelector(".jodit-dialog__header>.jodit-dialog__header-toolbar"),n.o.buttons&&n.toolbar.build(s.splitArray(n.o.buttons)).appendTo(n.dialogbox_toolbar);var r=n.container.querySelector(".jodit-dialog__header");r&&n.e.on(r,"mousedown",n.onHeaderMouseDown),n.o.resizable&&n.e.on(n.resizer,"mousedown",n.onResizerMouseDown);var a=d.pluginSystem.get("fullsize");return s.isFunction(a)&&a(n),n.setStatus(u.STATUSES.ready),o.e.on(o.ow,"keydown",o.onEsc).on(o.ow,"resize",o.onResize),o}return n.__extends(t,e),t.prototype.setElements=function(e,t){var o=this,n=[];s.asArray(t).forEach((function(t){if(s.isArray(t)){var r=o.c.div("jodit-dialog__column");return n.push(r),e.appendChild(r),o.setElements(r,t)}var i;i=s.isString(t)?o.c.fromHTML(t):s.hasContainer(t)?t.container:t,n.push(i),i.parentNode!==e&&e.appendChild(i)})),Array.from(e.childNodes).forEach((function(t){-1===n.indexOf(t)&&e.removeChild(t)}))},t.prototype.onMouseUp=function(){(this.draggable||this.resizable)&&(this.e.off(this.ow,"mousemove",this.onMouseMove),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.removeGlobalListeners(),this.e.fire(this,"endResize endMove")))},t.prototype.onHeaderMouseDown=function(e){var t=e.target;!this.o.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=s.css(this.dialog,"left"),this.startPoint.y=s.css(this.dialog,"top"),this.setMaxZIndex(),e.preventDefault(),this.lockSelect(),this.addGlobalListeners(),this.e&&this.e.fire(this,"startMove"))},t.prototype.onMouseMove=function(e){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.e&&this.e.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation(),e.preventDefault()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+e.clientX-this.startX,this.startPoint.h+e.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation(),e.preventDefault())},t.prototype.onEsc=function(e){if(this.isOpened&&e.key===a.KEY_ESC){var t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}},t.prototype.onResizerMouseDown=function(e){this.resizable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.addGlobalListeners(),this.e&&this.e.fire(this,"startResize")},t.prototype.addGlobalListeners=function(){this.e.on(this.ow,"mousemove",this.onMouseMove).on(this.container,"close_dialog",this.close).on(this.ow,"mouseup",this.onMouseUp)},t.prototype.removeGlobalListeners=function(){this.e.off(this.ow,"mousemove",this.onMouseMove).off(this.container,"close_dialog",this.close).off(this.ow,"mouseup",this.onMouseUp)},t.prototype.setSize=function(e,t){return e&&s.css(this.dialog,"width",e),t&&s.css(this.dialog,"height",t),this},t.prototype.setPosition=function(e,t){var o=this.ow.innerWidth/2-this.dialog.offsetWidth/2,n=this.ow.innerHeight/2-this.dialog.offsetHeight/2;return 0>o&&(o=0),0>n&&(n=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=Math.abs(e-o)>100||Math.abs(t-n)>100),this.dialog.style.left=(e||o)+"px",this.dialog.style.top=(t||n)+"px",this},t.prototype.setHeader=function(e){return this.setElements(this.dialogbox_header,e),this},t.prototype.setContent=function(e){return this.setElements(this.dialogbox_content,e),this},t.prototype.setFooter=function(e){return this.setElements(this.dialogbox_footer,e),this.dialog.classList.toggle("jodit-dialog_footer_true",!!e),this},t.prototype.getMaxZIndexDialog=function(){var e,t,o=0,n=this;return s.$$(".jodit-dialog__box",this.destination).forEach((function(r){e=r.component,t=parseInt(s.css(r,"zIndex"),10),e.isOpened&&!isNaN(t)&&t>o&&(n=e,o=t)})),n},t.prototype.setMaxZIndex=function(){var e=0,t=0;s.$$(".jodit-dialog__box",this.destination).forEach((function(o){t=parseInt(s.css(o,"zIndex"),10),e=Math.max(isNaN(t)?0:t,e)})),this.container.style.zIndex=(e+1).toString()},t.prototype.maximization=function(e){return"boolean"!=typeof e&&(e=!this.container.classList.contains("jodit-dialog__box_fullsize")),this.container.classList.toggle("jodit-dialog__box_fullsize",e),[this.destination,this.destination.parentNode].forEach((function(t){t&&t.classList&&t.classList.toggle("jodit-fullsize_box",e)})),this.iSetMaximization=e,e},t.prototype.open=function(e,t,o,n){if(d.eventEmitter.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;s.isBoolean(e)&&(o=e),s.isBoolean(t)&&(n=t),this.destroyAfterClose=!0===o;var r=s.isBoolean(e)?void 0:e,i=s.isBoolean(t)?void 0:t;return void 0!==i&&this.setHeader(i),r&&this.setContent(r),this.container.classList.add("jodit-dialog_active"),this.isOpened=!0,this.setModal(n),this.destination.appendChild(this.container),this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex(),this.o.fullsize&&this.maximization(!0),this.e.fire("afterOpen",this),this},t.prototype.setModal=function(e){return this.container.classList.toggle("jodit-modal",Boolean(e)),this},t.prototype.close=function(e){var t,o,n;return this.isDestructed||!this.isOpened||(e&&(e.stopImmediatePropagation(),e.preventDefault()),this.e&&this.e.fire("beforeClose",this),c.Dom.safeRemove(this.container),null===(t=null==this?void 0:this.container)||void 0===t||t.classList.remove("jodit-dialog_active"),this.isOpened=!1,this.iSetMaximization&&this.maximization(!1),this.removeGlobalListeners(),this.destroyAfterClose&&this.destruct(),null===(o=this.e)||void 0===o||o.fire(this,"afterClose"),null===(n=this.e)||void 0===n||n.fire(this.ow,"joditCloseDialog")),this},t.prototype.destruct=function(){this.isInDestruct||(this.setStatus(u.STATUSES.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.removeGlobalListeners(),this.events.on(this.ow,"keydown",this.onEsc).on(this.ow,"resize",this.onResize)),e.prototype.destruct.call(this))},n.__decorate([r.default],t.prototype,"onMouseUp",null),n.__decorate([r.default],t.prototype,"onHeaderMouseDown",null),n.__decorate([r.default],t.prototype,"onMouseMove",null),n.__decorate([r.default],t.prototype,"onEsc",null),n.__decorate([r.default],t.prototype,"onResizerMouseDown",null),n.__decorate([r.default],t.prototype,"close",null),t}(l.ViewWithToolbar);t.Dialog=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewWithToolbar=void 0;var n=o(0);o(163);var r=o(53),i=o(1),a=o(2),s=o(17),l=o(6),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.toolbar=s.makeCollection(t),t.defaultToolbarContainer=t.c.div("jodit-toolbar__box"),t}return n.__extends(t,e),Object.defineProperty(t.prototype,"toolbarContainer",{get:function(){return this.o.fullsize||!i.isString(this.o.toolbar)&&!a.Dom.isHTMLElement(this.o.toolbar,this.ow)?(this.o.toolbar&&a.Dom.appendChildFirst(this.container,this.defaultToolbarContainer),this.defaultToolbarContainer):i.resolveElement(this.o.toolbar,this.o.shadowRoot||this.od)},enumerable:!1,configurable:!0}),t.prototype.setPanel=function(e){this.o.toolbar=e,this.buildToolbar()},t.prototype.buildToolbar=function(){if(this.o.toolbar){var e=this.o.buttons?i.splitArray(this.o.buttons):[];this.toolbar.setRemoveButtons(this.o.removeButtons).build(e.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}},t.prototype.destruct=function(){this.isDestructed||(this.setStatus(l.STATUSES.beforeDestruct),this.toolbar.destruct(),delete this.toolbar,e.prototype.destruct.call(this))},t}(r.View);t.ViewWithToolbar=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JoditArray=void 0;var n=o(27);t.JoditArray=function(e){var t=this;n.extend(!0,this,e),Object.defineProperty(this,"length",{value:e.length,enumerable:!1,configurable:!1}),Object.defineProperty(this,"toString",{value:function(){for(var e=[],o=0;t.length>o;o+=1)e[o]=t[o];return e.toString()},enumerable:!1,configurable:!1});var o=Array.prototype;["map","forEach","reduce","push","pop","shift","unshift","slice","splice"].forEach((function(e){Object.defineProperty(t,e,{value:o[e],enumerable:!1,configurable:!1})}))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extend=void 0;var n=o(36),r=o(26),i=o(5);t.extend=function e(){for(var t=[],o=0;arguments.length>o;o++)t[o]=arguments[o];var a,s,l,c,u,d,f,p=t.length,h=t[0]||{},m=1,v=!1;for("boolean"==typeof h&&(v=h,h=t[m]||{},m+=1),"object"!=typeof h&&i.isFunction(h)&&(h={}),m===p&&(h=this,m+=1);p>m;m+=1)if(null!=(a=t[m]))for(f=Object.keys(a),d=0;f.length>d;d+=1)l=h[s=f[d]],h!==(c=a[s])&&(v&&c&&(i.isPlainObject(c)&&!(c instanceof n.JoditObject)||Array.isArray(c)&&!(c instanceof r.JoditArray))?(u=Array.isArray(c)?l&&Array.isArray(l)?l:[]:l&&i.isPlainObject(l)?l:{},h[s]=e(v,u,c)):void 0!==c&&(h[s]=c));return h}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.error=t.type=t.hasOwn=void 0;var n={},r=n.toString;t.hasOwn=n.hasOwnProperty,["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol","HTMLDocument","Window","HTMLElement","HTMLBodyElement","Text","DocumentFragment","DOMStringList","HTMLCollection"].forEach((function(e){n["[object "+e+"]"]=e.toLowerCase()})),t.type=function(e){return null===e?"null":"object"==typeof e||"function"==typeof e?n[r.call(e)]||"object":typeof e},t.error=function(e){return new TypeError(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(0).__exportStar(o(111),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveElement=t.cssPath=t.refs=t.getXPathByElement=t.$$=void 0;var n=o(3),r=o(5),i=o(15),a=o(29),s=o(2),l=o(12),c=1;function u(e,t){var o;if(!/:scope/.test(e)||!n.IS_IE||t&&t.nodeType===Node.DOCUMENT_NODE)o=t.querySelectorAll(e);else{var r=t.id,i=r||"_selector_id_"+(""+Math.random()).slice(2)+ ++c;e=e.replace(/:scope/g,"#"+i),!r&&t.setAttribute("id",i),o=t.parentNode.querySelectorAll(e),r||t.removeAttribute("id")}return[].slice.call(o)}t.$$=u,t.getXPathByElement=function(e,o){if(!e||e.nodeType!==Node.ELEMENT_NODE)return"";if(!e.parentNode||o===e)return"";if(e.id)return"//*[@id='"+e.id+"']