UNPKG

jodit-pro

Version:

PRO Version of Jodit Editor

1 lines 545 kB
((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var s in i)("object"==typeof exports?exports:e)[s]=i[s]}})(self,(function(){return function(){var e,t={52784(e,t,i){"use strict";function s(e,t,i,s){var o,r=arguments.length,n=3>r?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(3>r?o(n):r>3?o(t,i,n):o(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n}i.d(t,{gn(){return s}})},733(e,t,i){"use strict";i.d(t,{D(){return o}});var s=i(49940);class o{constructor(){this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace"],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.styleValues={},this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorCssClass=!1,this.style=!1,this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=1e3,this.useNativeTooltip=!1,this.defaultActionOnPaste=s.INSERT_AS_HTML,this.enter=s.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:s.PARAGRAPH,this.defaultMode=s.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.buttonsMD=["bold","italic","|","ul","ol","eraser","|","font","fontsize","---","image","table","|","link","\n","brush","paragraph","align","|","hr","copyformat","fullsize","---","undo","redo","|","dots"],this.buttonsSM=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],this.buttonsXS=["bold","brush","paragraph","eraser","|","fontsize","---","image","\n","align","undo","redo","|","link","table","---","dots"],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!0}static get defaultOptions(){return o.__defaultOptions||(o.__defaultOptions=new o),o.__defaultOptions}}o.prototype.controls={}},82200(e,t,i){"use strict";i.d(t,{e(){return c}});var s=i(55641),o=i(6244),r=i(6395),n=i(22233),a=i(57348),l=i(92845);i(52378);class c{constructor(){var e,t,i,s;this.timers=new Map,this.__callbacks=new Map,this.promisesRejections=new Set,this.requestsIdle=new Set,this.requestsRaf=new Set,this.requestIdleCallbackNative=null!==(t=null===(e=window.requestIdleCallback)||void 0===e?void 0:e.bind(window))&&void 0!==t?t:(e,t)=>{var i;const s=Date.now();return this.setTimeout((()=>{e({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-s))}})}),null!==(i=null==t?void 0:t.timeout)&&void 0!==i?i:1)},this.cancelIdleCallbackNative=null!==(s=null===(i=window.cancelIdleCallback)||void 0===i?void 0:i.bind(window))&&void 0!==s?s:e=>{this.clearTimeout(e)},this.isDestructed=!1}delay(e){return this.promise((t=>this.setTimeout(t,e)))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let o={};(0,l.h)(t)||(o=t,t=o.timeout||0),o.label&&this.clearLabel(o.label);const r=(0,s.i)(e,t,...i),n=o.label||r;return this.timers.set(n,r),this.__callbacks.set(n,e),r}updateTimeout(e,t){if(!e||!this.timers.has(e))return null;const i=this.__callbacks.get(e);return this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,s.g)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,a.H)(e))return this.clearLabel(e);(0,s.g)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let a=0,l=!1;const c=[],d=(...t)=>{if(!l){a=0;const i=e(...t);if(l=!0,c.length){const e=()=>{c.forEach((e=>e())),c.length=0};(0,n.t)(i)?i.finally(e):e()}}},h=(...r)=>{l=!1,t?(!a&&i&&d(...r),(0,s.g)(a),a=this.setTimeout((()=>d(...r)),(0,o.m)(t)?t():t),this.timers.set(e,a)):d(...r)};return(0,r.P)(t)&&t.promisify?(...e)=>{const t=this.promise((e=>{c.push(e)}));return h(...e),t}:h}throttle(e,t,i=!1){let s,r,n,a=null;return(...i)=>{s=!0,n=i,t?a||(r=()=>{s?(e(...n),s=!1,a=this.setTimeout(r,(0,o.m)(t)?t():t),this.timers.set(r,a)):a=null},r()):e(...n)}}promise(e){let t=()=>{};const i=new Promise(((i,s)=>(this.promisesRejections.add(s),t=s,e(i,s))));return i.finally((()=>{this.promisesRejections.delete(t)})).catch((()=>null)),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise((t=>{e.then((e=>(t("fulfilled"),e)),(e=>{throw t("rejected"),e})),this.setTimeout((()=>{t("pending")}),100)}));const t={};return Promise.race([e,t]).then((e=>e===t?"pending":"fulfilled"),(()=>"rejected"))}requestIdleCallback(e,t){const i=this.requestIdleCallbackNative(e,t);return this.requestsIdle.add(i),i}requestIdlePromise(e){return this.promise((t=>{const i=this.requestIdleCallback((()=>t(i)),e)}))}cancelIdleCallback(e){return this.requestsIdle.delete(e),this.cancelIdleCallbackNative(e)}requestAnimationFrame(e){const t=requestAnimationFrame(e);return this.requestsRaf.add(t),t}cancelAnimationFrame(e){this.requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.requestsIdle.forEach((e=>this.cancelIdleCallback(e))),this.requestsRaf.forEach((e=>this.cancelAnimationFrame(e))),this.timers.forEach((e=>(0,s.g)(this.timers.get(e)))),this.timers.clear(),this.promisesRejections.forEach((e=>e())),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},90456(e,t,i){"use strict";i.d(t,{w(){return l}});var s=i(16892),o=i(58706),r=i(20937),n=i(82200);const a=new Map;class l{constructor(){this.async=new n.e,this.ownerWindow=window,this.__componentStatus=r.n.beforeInit,this.uid="jodit-uid-"+(0,o.fe)()}get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,i){const o=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),o.push("__"+e)),t&&(o.push("_",t),o.push("_",(0,s.isVoid)(i)?"true":""+i)),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===r.n.ready}get isDestructed(){return this.componentStatus===r.n.destructed}get isInDestruct(){return r.n.beforeDestruct===this.componentStatus||r.n.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(r.n.beforeDestruct,(()=>!this.isInDestruct&&this.destruct())),this}destruct(){this.setStatus(r.n.destructed),this.async.destruct(),a.get(this)&&a.delete(this)}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);const i=Object.getPrototypeOf(this);i&&(0,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);const o=a.get(this),r=null==o?void 0:o[e];r&&r.length&&r.forEach((e=>e(t)))}hookStatus(e,t){let i=a.get(this);i||(i={},a.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}}l.STATUSES=r.n},65927(e,t,i){"use strict";i.d(t,{wA(){return o.w},n$(){return s.n},Hr(){return r}});var s=i(20937),o=i(90456);class r extends o.w{constructor(e){super(),this.setParentView(e)}get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}}},20937(e,t,i){"use strict";i.d(t,{n(){return s}});const s={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},49940(e,t,i){"use strict";i.r(t),i.d(t,{ACCURACY(){return _},BASE_PATH(){return K},BR(){return L},CLIPBOARD_ID(){return Z},COMMAND_KEYS(){return I},EMULATE_DBLCLICK_TIMEOUT(){return H},INSEPARABLE_TAGS(){return p},INSERT_AS_HTML(){return F},INSERT_AS_TEXT(){return W},INSERT_CLEAR_HTML(){return V},INSERT_ONLY_TEXT(){return $},INVISIBLE_SPACE(){return s},INVISIBLE_SPACE_REG_EXP(){return r},INVISIBLE_SPACE_REG_EXP_END(){return n},INVISIBLE_SPACE_REG_EXP_START(){return a},IS_BLOCK(){return h},IS_IE(){return N},IS_INLINE(){return u},IS_MAC(){return Y},KEY_ALIASES(){return G},KEY_ALT(){return w},KEY_BACKSPACE(){return g},KEY_DELETE(){return j},KEY_DOWN(){return E},KEY_ENTER(){return b},KEY_ESC(){return y},KEY_F3(){return z},KEY_LEFT(){return k},KEY_META(){return f},KEY_RIGHT(){return S},KEY_SPACE(){return x},KEY_TAB(){return v},KEY_UP(){return C},MARKER_CLASS(){return O},MAY_BE_REMOVED_WITH_KEY(){return m},MODE_SOURCE(){return D},MODE_SPLIT(){return P},MODE_WYSIWYG(){return A},NBSP_SPACE(){return o},NEARBY(){return T},PARAGRAPH(){return M},SAFE_COUNT_CHANGE_CALL(){return U},SOURCE_CONSUMER(){return Q},SPACE_REG_EXP(){return l},SPACE_REG_EXP_END(){return d},SPACE_REG_EXP_START(){return c},TEMP_ATTR(){return J},TEXT_HTML(){return q},TEXT_PLAIN(){return R},TEXT_RTF(){return B},lang(){return X}});const s="\ufeff",o=" ",r=()=>/[\uFEFF]/g,n=()=>/[\uFEFF]+$/g,a=()=>/^[\uFEFF]+/g,l=()=>/[\s\n\t\r\uFEFF\u200b]+/g,c=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,d=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,h=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,u=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,p=["img","br","video","iframe","script","input","textarea","hr","link","jodit","jodit-media"],m=RegExp(`^${p.join("|")}$`,"i"),f="Meta",g="Backspace",v="Tab",b="Enter",y="Escape",w="Alt",k="ArrowLeft",C="ArrowUp",S="ArrowRight",E="ArrowDown",x="Space",j="Delete",z="F3",T=5,_=10,I=[f,g,j,C,E,S,k,b,y,z,v],L="br",M="p",A=1,D=2,P=3,N="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),R=N?"text":"text/plain",q=N?"html":"text/html",B=N?"rtf":"text/rtf",O="jodit-selection_marker",H=300,F="insert_as_html",V="insert_clear_html",W="insert_as_text",$="insert_only_text",U=10,Y="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),G={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Y?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},K=(()=>{if("undefined"==typeof document)return"";const e=document.currentScript,t=e=>{const t=e.split("/");return/\.js/.test(t[t.length-1])?t.slice(0,t.length-1).join("/")+"/":e};if(e)return t(e.src);const i=document.querySelectorAll("script[src]");return i&&i.length?t(i[i.length-1].src):window.location.href})(),J="data-jodit-temp",X={},Z="clipboard",Q="source-consumer"},9119(e,t,i){"use strict";function s(e){class t extends e{constructor(...e){super(...e),this.constructor===t&&(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready"))}}return t}i.d(t,{w(){return s}})},98422(e,t,i){"use strict";i.r(t),i.d(t,{autobind(){return C},cache(){return o},component(){return r.w},debounce(){return c},derive(){return b},getPropertyDescriptor(){return v.w7},hook(){return u},idle(){return h},nonenumerable(){return p},persistent(){return f},throttle(){return d},wait(){return g},watch(){return v.YP}});var s=i(16892);function o(e,t,i){const o=i.get;if(!o)throw(0,s.error)("Getter property descriptor expected");i.get=function(){const e=o.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}var r=i(9119),n=i(11228),a=i(65927),l=i(78909);function c(e,t=!1,i="debounce"){return(s,o)=>{const r=s[o];if(!(0,n.mf)(r))throw(0,l.vU)("Handler must be a Function");return s.hookStatus(a.n$.ready,(s=>{const{async:r}=s,a=(0,n.mf)(e)?e(s):e;Object.defineProperty(s,o,{configurable:!0,value:r[i](s[o].bind(s),(0,n.hj)(a)||(0,n.PO)(a)?a:s.defaultTimeout,t)})})),{configurable:!0,get(){return r.bind(this)}}}}function d(e,t=!1){return c(e,t,"throttle")}function h(){return(e,t)=>{if(!(0,s.isFunction)(e[t]))throw(0,s.error)("Handler must be a Function");e.hookStatus(a.n$.ready,(e=>{const{async:i}=e,s=e[t];e[t]=(...t)=>i.requestIdleCallback(s.bind(e,...t))}))}}function u(e){return(t,i)=>{if(!(0,n.mf)(t[i]))throw(0,l.vU)("Handler must be a Function");t.hookStatus(e,(e=>{e[i].call(e)}))}}i(52378);const p=(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})};var m=i(90412);function f(e,t){e.hookStatus(a.n$.ready,(e=>{const i=(0,m.f)(e)?e:e.jodit,s=`${i.options.namespace}${e.componentName}_prop_${t}`,o=e[t];Object.defineProperty(e,t,{get(){var e;return null!==(e=i.storage.get(s))&&void 0!==e?e:o},set(e){i.storage.set(s,e)}})}))}function g(e){return(t,i)=>{if(!(0,s.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(a.n$.ready,(t=>{const{async:s}=t,o=t[i];let r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...n){s.clearTimeout(r),e(t)?o.apply(t,n):r=s.setTimeout((()=>i(...n)),10)}})}))}}var v=i(31501);function b(...e){return t=>{const i=t.prototype;for(let t=0;e.length>t;t++){const s=e[t],o=Object.getOwnPropertyNames(s.prototype);for(let e=0;o.length>e;e++){const t=o[e],r=Object.getOwnPropertyDescriptor(s.prototype,t);null!=r&&(0,n.mf)(r.value)&&!(0,n.mf)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value(...e){return r.value.call(this,...e)}})}}}}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e=>typeof e:e=>e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e,y(e)}function w(e,t,i){var s=i.value;if("function"!=typeof s)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(y(s)));var o=!1;return{configurable:!0,get(){if(o||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof s)return s;var i=s.bind(this);return o=!0,Object.defineProperty(this,t,{configurable:!0,get(){return i},set(e){s=e,delete this[t]}}),o=!1,i},set(e){s=e}}}function k(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((t=>{if("constructor"!==t){var i=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof i.value&&Object.defineProperty(e.prototype,t,w(e,t,i))}})),e}function C(){return 1===arguments.length?k.apply(void 0,arguments):w.apply(void 0,arguments)}},31501(e,t,i){"use strict";i.d(t,{YP(){return h},w7(){return d}});var s=i(6244),o=i(6395),r=i(90412),n=i(71419),a=i(20937),l=i(65735),c=i(78909);function d(e,t){let i;do{i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e)}while(!i&&e);return i}function h(e,t){return(i,h)=>{if(!(0,s.m)(i[h]))throw(0,c.vU)("Handler must be a Function");const u=a=>{const c=(e,...t)=>{if(!a.isInDestruct)return a[h](e,...t)};(0,l.C)(e).forEach((e=>{if(/:/.test(e)){const[i,o]=e.split(":");let n=t;const l=(0,r.f)(a)?a:a.jodit;return i.length&&(n=a.get(i)),(0,s.m)(n)&&(n=n(a)),l.events.on(n||a,o,c),n||l.events.on(o,c),void a.hookStatus("beforeDestruct",(()=>{l.events.off(n||a,o,c).off(o,c)}))}const l=e.split("."),[h]=l,u=l.slice(1);let p=a[h];(0,o.P)(p)&&(0,n.L)(p).on("change."+u.join("."),c);const m=d(i,h);Object.defineProperty(a,h,{configurable:!0,set(e){const t=p;t!==e&&(p=e,m&&m.set&&m.set.call(a,e),(0,o.P)(p)&&(p=(0,n.L)(p),p.on("change."+u.join("."),c)),c(h,t,p))},get:()=>m&&m.get?m.get.call(a):p})}))};(0,s.m)(i.hookStatus)?i.hookStatus(a.n.ready,u):u(i)}}},12815(e,t,i){"use strict";i.d(t,{i(){return n}});var s=i(49940),o=i(16892),r=i(76215);class n{static detach(e){for(;e.firstChild;)e.removeChild(e.firstChild)}static wrapInline(e,t,i){let s,r=e,a=e;i.s.save();let l=!1;do{l=!1,s=r.previousSibling,s&&!n.isBlock(s)&&(l=!0,r=s)}while(l);do{l=!1,s=a.nextSibling,s&&!n.isBlock(s)&&(l=!0,a=s)}while(l);const c=(0,o.isString)(t)?i.createInside.element(t):t;r.parentNode&&r.parentNode.insertBefore(c,r);let d=r;for(;d&&(d=r.nextSibling,c.appendChild(r),r!==a&&d);)r=d;return i.s.restore(),c}static wrap(e,t,i){const s=(0,o.isString)(t)?i.element(t):t;if(n.isNode(e)){if(!e.parentNode)throw(0,o.error)("Element should be in DOM");e.parentNode.insertBefore(s,e),s.appendChild(e)}else{const t=e.extractContents();e.insertNode(s),s.appendChild(t)}return s}static unwrap(e){const t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);n.safeRemove(e)}}static between(e,t,i){let s=e;for(;s&&s!==t&&(e===s||!i(s));){let e=s.firstChild||s.nextSibling;if(!e){for(;s&&!s.nextSibling;)s=s.parentNode;e=null==s?void 0:s.nextSibling}s=e}}static replace(e,t,i,s=!1,r=!1){(0,o.isHTML)(t)&&(t=i.fromHTML(t));const a=(0,o.isString)(t)?i.element(t):t;if(!r)for(;e.firstChild;)a.appendChild(e.firstChild);return s&&n.isElement(e)&&n.isElement(a)&&(0,o.toArray)(e.attributes).forEach((e=>{a.setAttribute(e.name,e.value)})),e.parentNode&&e.parentNode.replaceChild(a,e),a}static isEmptyTextNode(e){return n.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(s.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return n.each(e,(e=>n.isEmptyTextNode(e)))}static isContentEditable(e,t){return n.isNode(e)&&!n.closest(e,(e=>n.isElement(e)&&"false"===e.getAttribute("contenteditable")),t)}static isEmpty(e,t=/^(img|svg|canvas|input|textarea|form)$/){return!e||(n.isText(e)?null==e.nodeValue||0===(0,o.trim)(e.nodeValue).length:!t.test(e.nodeName.toLowerCase())&&n.each(e,(e=>{if(n.isText(e)&&null!=e.nodeValue&&0!==(0,o.trim)(e.nodeValue).length||n.isElement(e)&&t.test(e.nodeName.toLowerCase()))return!1})))}static isNode(e){return!!(e&&(0,o.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,o.isFunction)(e.appendChild))}static isCell(e){return n.isNode(e)&&/^(td|th)$/i.test(e.nodeName)}static isImage(e){return n.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,o.isVoid)(e)&&"object"==typeof e&&n.isNode(e)&&s.IS_BLOCK.test(e.nodeName)}static isText(e){return!(!e||e.nodeType!==Node.TEXT_NODE)}static isElement(e){var t;return!!n.isNode(e)&&!(!(null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||e.nodeType!==Node.ELEMENT_NODE)}static isFragment(e){var t;return!!n.isNode(e)&&!(!(null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(e){var t;if(!n.isNode(e))return!1;const i=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(i&&e instanceof i.HTMLElement)}static isInlineBlock(e){return n.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf(""+(0,o.css)(e,"display"))}static canSplitBlock(e){return!(0,o.isVoid)(e)&&n.isHTMLElement(e)&&n.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static last(e,t){let i=null==e?void 0:e.lastChild;if(!i)return null;do{if(t(i))return i;let s=i.lastChild;if(s||(s=i.previousSibling),!s&&i.parentNode!==e){do{i=i.parentNode}while(i&&!(null==i?void 0:i.previousSibling)&&i.parentNode!==e);s=null==i?void 0:i.previousSibling}i=s}while(i);return null}static prev(e,t,i,s=!0){return n.find(e,t,i,!1,s)}static next(e,t,i,s=!0){return n.find(e,t,i,!0,s)}static prevWithClass(e,t){return n.prev(e,(e=>n.isElement(e)&&e.classList.contains(t)),e.parentNode)}static nextWithClass(e,t){return n.next(e,(e=>n.isElement(e)&&e.classList.contains(t)),e.parentNode)}static find(e,t,i,s=!0,o=!0){const r=this.nextGen(e,i,s,o);let n=r.next();for(;!n.done;){if(t(n.value))return n.value;n=r.next()}return null}static*nextGen(e,t,i=!0,s=!0){const o=[];let r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.unshift(t),t=i?t.nextSibling:t.previousSibling;yield*this.runInStack(e,o,i,s),r=r.parentNode}while(r&&r!==t);return null}static each(e,t,i=!0){const s=this.eachGen(e,i);let o=s.next();for(;!o.done;){if(!1===t(o.value))return!1;o=s.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,s=!0){for(;t.length;){const o=t.pop();if(s){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,s="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){const e=n.findWithCurrent(r[o],t,r,s,o);if(e)return e}for(;r&&!r[s]&&r!==i;)r=r.parentNode;r&&r[s]&&r!==i&&(r=r[s])}while(r&&r!==i);return null}static findSibling(e,t=!0,i=(e=>!n.isEmptyTextNode(e))){let s=n.sibling(e,t);for(;s&&!i(s);)s=n.sibling(s,t);return s&&i(s)?s:null}static findNotEmptySibling(e,t){return n.findSibling(e,t,(e=>{var t;return!n.isEmptyTextNode(e)&&!!(!n.isText(e)||(null===(t=e.nodeValue)||void 0===t?void 0:t.length)&&(0,o.trim)(e.nodeValue))}))}static findNotEmptyNeighbor(e,t,i){return(0,o.call)(t?n.prev:n.next,e,(e=>!(!e||n.isText(e)&&!(0,o.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,s=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i);return o===i&&s&&t(o)?o:null}static closest(e,t,i){let s;return s=(0,o.isFunction)(t)?t:(0,o.isArray)(t)?e=>!(!e||!t.includes(e.nodeName.toLowerCase())):e=>!(!e||t!==e.nodeName.toLowerCase()),n.up(e,s,i)}static furthest(e,t,i){let s=null,o=null==e?void 0:e.parentElement;for(;o&&o!==i;)t(o)&&(s=o),o=null==o?void 0:o.parentElement;return s}static appendChildFirst(e,t){const i=e.firstChild;i?i!==t&&e.insertBefore(t,i):e.appendChild(t)}static after(e,t){const{parentNode:i}=e;i&&(i.lastChild===e?i.appendChild(t):i.insertBefore(t,e.nextSibling))}static before(e,t){const{parentNode:i}=e;i&&i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,o.isArray)(t)?t.forEach((t=>{this.append(e,t)})):e.appendChild(t)}static moveContent(e,t,i=!1){const s=(e.ownerDocument||document).createDocumentFragment();(0,o.toArray)(e.childNodes).forEach((e=>{s.appendChild(e)})),i&&t.firstChild?t.insertBefore(s,t.firstChild):t.appendChild(s)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,(t=>t===e),e,!0))}static safeRemove(...e){e.forEach((e=>n.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e)))}static safeInsertNode(e,t){e.collapsed||e.deleteContents(),e.insertNode(t),[t.nextSibling,t.previousSibling].forEach((e=>n.isText(e)&&!e.nodeValue&&n.safeRemove(e)))}static hide(e){e&&((0,o.dataBind)(e,"__old_display",e.style.display),e.style.display="none")}static show(e){if(!e)return;const t=(0,o.dataBind)(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}static isTag(e,t){const i=(0,o.asArray)(t).map(String);for(let t=0;i.length>t;t+=1)if(this.isElement(e)&&e.tagName.toLowerCase()===i[t].toLowerCase())return!0;return!1}static markTemporary(e,t){return t&&(0,o.attr)(e,t),(0,o.attr)(e,s.TEMP_ATTR,!0),e}static isTemporary(e){return!!n.isElement(e)&&(r.Ph.isMarker(e)||"true"===(0,o.attr)(e,s.TEMP_ATTR))}static replaceTemporaryFromString(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(e){return(0,o.$$)(`[${s.TEMP_ATTR}]`,e)}}},96582(e,t,i){"use strict";i.d(t,{b(){return o.b},i(){return s.i}});var s=i(12815),o=i(51428)},51428(e,t,i){"use strict";i.d(t,{b(){return a}});var s=i(52784),o=i(42440),r=i(98422),n=i(12815);class a extends o.a{constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0}setWork(e){return this.isWorked&&this.break(),this.workNodes=n.i.eachGen(e,!this.options.reverse),this.isFinished=!1,this.startIdleRequest(),this}startIdleRequest(){var e;this.idleId=this.async.requestIdleCallback(this.workPerform,{timeout:null!==(e=this.options.timeout)&&void 0!==e?e:10})}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}workPerform(e){var t;if(this.workNodes){this.isWorked=!0;let i=0;const s=null!==(t=this.options.timeoutChunkSize)&&void 0!==t?t:50;for(;!this.isFinished&&(e.timeRemaining()>0||e.didTimeout&&s>=i);){const e=this.workNodes.next();if(i+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this.startIdleRequest()}visitNode(e){var t;return!(!e||void 0!==this.options.whatToShow&&e.nodeType!==this.options.whatToShow)&&null!==(t=this.emit("visit",e))&&void 0!==t&&t}}(0,s.gn)([r.autobind],a.prototype,"workPerform",null)},42440(e,t,i){"use strict";i.d(t,{a(){return s}});class s{constructor(){this.__map=new Map}on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null===(i=this.__map.get(e))||void 0===i||i.add(t),this}off(e,t){var i;return this.__map.has(e)&&(null===(i=this.__map.get(e))||void 0===i||i.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var i;let s;return this.__map.has(e)&&(null===(i=this.__map.get(e))||void 0===i||i.forEach((e=>{s=e(...t)}))),s}}},21924(e,t,i){"use strict";i.d(t,{vp(){return h},DG(){return r},aN(){return u.a},rO(){return o},LO(){return p.L}}),i(52378);var s=i(62507);const o="JoditEventDefaultNamespace";class r{constructor(){this.__store=new Map}get(e,t){if(this.__store.has(t))return this.__store.get(t)[e]}indexOf(e,t,i){const s=this.get(e,t);if(s)for(let e=0;s.length>e;e+=1)if(s[e].originalCallback===i)return e;return!1}namespaces(e=!1){const t=(0,s.q)(this.__store.keys());return e?t.filter((e=>e!==o)):t}events(e){const t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,s=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),s?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){const i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}}var n=i(57348),a=i(6244),l=i(8356),c=i(78909),d=i(65735);class h{constructor(e){this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=document,this.__prepareEvent=e=>{e.cancelBubble||(e.composed&&(0,a.m)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach((t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})})),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=(new Date).getTime()}mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!(!e||!this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,d.C)(e).map((e=>e.trim())).forEach((e=>{const i=e.split(".");t.call(this,i[0],i[1]||o)}))}__getStore(e){if(!e)throw(0,c.vU)("Need subject");if(void 0===e[this.__key]){const t=new r;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(e,t){const i=this.__doc.createEvent("HTMLEvents");(0,n.H)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach((e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})})),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,s){let o,r,d,h;if((0,n.H)(e)||(0,n.G)(e)?(o=this,r=e,d=t,h=i):(o=e,r=t,d=i,h=s),!(0,n.H)(r)&&!(0,n.G)(r)||0===r.length)throw(0,c.vU)("Need events names");if(!(0,a.m)(d))throw(0,c.vU)("Need event handler");if((0,l.k)(o))return o.forEach((e=>{this.on(e,r,d,h)})),this;const u=o,p=this.__getStore(u),m=(0,a.m)(u.addEventListener),f=this;let g=function(e,...t){if(!f.isMuted(e))return d&&d.call(this,...t)};return m&&(g=function(e){if(!f.isMuted(e.type))return f.__prepareEvent(e),d&&!1===d.call(this,e)?(e.preventDefault(),e.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(r,((e,t)=>{if(0===e.length)throw(0,c.vU)("Need event name");if(!1===p.indexOf(e,t,d)&&(p.set(e,t,{event:e,originalCallback:d,syntheticCallback:g},null==h?void 0:h.top),m)){const t=!!["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"].includes(e)&&{passive:!0};u.addEventListener(e,g,t)}})),this}one(e,t,i,s){let o,r,a,l;(0,n.H)(e)||(0,n.G)(e)?(o=this,r=e,a=t,l=i):(o=e,r=t,a=i,l=s);const c=(...e)=>(this.off(o,r,c),a(...e));return this.on(o,r,c,l),this}off(e,t,i){let s,r,c;if((0,n.H)(e)||(0,n.G)(e)?(s=this,r=e,c=t):(s=e,r=t,c=i),(0,l.k)(s))return s.forEach((e=>{this.off(e,r,c)})),this;const d=s,h=this.__getStore(d);if(!(0,n.H)(r)&&!(0,n.G)(r)||0===r.length)return h.namespaces().forEach((e=>{this.off(d,"."+e)})),this.__removeStoreFromSubject(d),this;const u=(0,a.m)(d.removeEventListener),p=e=>{u&&d.removeEventListener(e.event,e.syntheticCallback,!1)},m=(e,t)=>{if(""===e)return void h.events(t).forEach((e=>{""!==e&&m(e,t)}));const i=h.get(e,t);if(i&&i.length)if((0,a.m)(c)){const s=h.indexOf(e,t,c);!1!==s&&(p(i[s]),i.splice(s,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(r,((e,t)=>{t===o?h.namespaces().forEach((t=>{m(e,t)})):m(e,t)})),h.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(e,t){const i=(0,n.H)(e)?this:e,s=(0,n.H)(e)?e:t;if("string"!=typeof s)throw(0,c.vU)("Need event names");const r=this.__getStore(i);this.__eachEvent(s,((e,t)=>{const s=r.get(e,t);s&&this.__stopped.push(s),t===o&&r.namespaces(!0).forEach((t=>this.stopPropagation(i,e+"."+t)))}))}__removeStop(e){if(e){const t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let s,r;const l=(0,n.H)(e)?this:e,d=(0,n.H)(e)?e:t,h=(0,n.H)(e)?[t,...i]:i,u=(0,a.m)(l.dispatchEvent);if(!u&&!(0,n.H)(d))throw(0,c.vU)("Need events names");const p=this.__getStore(l);return!(0,n.H)(d)&&u?this.__triggerNativeEvent(l,t):this.__eachEvent(d,((e,t)=>{if(u)this.__triggerNativeEvent(l,e);else{const i=p.get(e,t);if(i)try{[...i].every((t=>!this.__isStopped(i)&&(this.currents.push(e),r=t.syntheticCallback.call(l,e,...h),this.currents.pop(),void 0!==r&&(s=r),!0)))}finally{this.__removeStop(i)}t!==o||u||p.namespaces().filter((e=>e!==t)).forEach((t=>{const i=this.fire.call(this,l,e+"."+t,...h);void 0!==i&&(s=i)}))}})),s}destruct(){this.__isDestructed&&(this.__isDestructed=!0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}var u=i(42440),p=i(71419)},71419(e,t,i){"use strict";i.d(t,{L(){return c}});var s=i(8356),o=i(33686),r=i(6395),n=i(31501);const a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;const t={},i={},c=(t,o)=>(0,s.k)(t)?(t.map((e=>c(e,o))),e):(i[t]||(i[t]=[]),i[t].push(o),e),d=(o,...r)=>{if((0,s.k)(o))o.map((e=>d(e,...r)));else try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach((t=>t.call(e,...r))))}finally{t[o]=!1}},h=(t,i=[])=>{const s={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach((a=>{const l=a,c=i.concat(l).filter((e=>e.length));s[l]=t[l];const u=(0,n.w7)(t,l);Object.defineProperty(t,l,{set(t){const i=s[l];if(!(0,o.L)(s[l],t)){d(["beforeChange","beforeChange."+c.join(".")],l,t),(0,r.P)(t)&&h(t,c),u&&u.set?u.set.call(e,t):s[l]=t;const o=[];d(["change",...c.reduce(((e,t)=>(o.push(t),e.push("change."+o.join(".")),e)),[])],c.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get(){return u&&u.get?u.get.call(e):s[l]},enumerable:!0,configurable:!0}),(0,r.P)(s[l])&&h(s[l],c)})),Object.defineProperty(e,"on",{value:c}))};return h(e),e}},58706(e,t,i){"use strict";i.d(t,{TB(){return w},ZO(){return y},as(){return h},fe(){return m},pw(){return f},qz(){return g},xl(){return v}});var s=i(52666),o=i(96582),r=i(21924),n=i(8637),a=i(90412),l=i(87122),c=i(76910),d=i(49940);const h={};let u=1;const p=new Set;function m(){function e(){return u+=10*(Math.random()+1),Math.round(u).toString(16)}let t=e();for(;p.has(t);)t=e();return p.add(t),t}const f=new s.h,g={},v=e=>{Object.keys(e).forEach((t=>{d.lang[t]?Object.assign(d.lang[t],e[t]):d.lang[t]=e[t]}))},b=new WeakMap;function y(e,t,i="div",s=!1){const r=t?(0,l.g)(t.prototype):"jodit-utils",d=b.get(e)||{},h=r+i,u=(0,a.f)(e)?e:e.j;if(!d[h]){let t=u.c,a=(0,n.Z)(e)&&e.o.shadowRoot?e.o.shadowRoot:e.od.body;if(s&&(0,n.Z)(e)&&e.od!==e.ed){t=e.createInside;const s="style"===i?e.ed.head:e.ed.body;a=(0,n.Z)(e)&&e.o.shadowRoot?e.o.shadowRoot:s}const l=t.element(i,{className:`jodit jodit-${(0,c.G)(r)}-container jodit-box`});l.classList.add("jodit_theme_"+(u.o.theme||"default")),a.appendChild(l),d[h]=l,e.hookStatus("beforeDestruct",(()=>{o.i.safeRemove(l),delete d[h],Object.keys(d).length&&b.delete(e)})),b.set(e,d)}return d[h].classList.remove("jodit_theme_default","jodit_theme_dark"),d[h].classList.add("jodit_theme_"+(u.o.theme||"default")),d[h]}const w=new r.vp},5007(e,t,i){"use strict";i.d(t,{_2(){return o},C1(){return r.C},qo(){return n.q}});var s=i(8356);const o=e=>(0,s.k)(e)?e:[e];var r=i(65735),n=i(62507)},65735(e,t,i){"use strict";function s(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}i.d(t,{C(){return s}})},62507(e,t,i){"use strict";i.d(t,{q(){return r}});var s=i(10991),o=i(8412);const r=(...e)=>{var t;return((0,o.Q)(Array.from)?Array.from:null!==(t=(0,s.m)("Array.from"))&&void 0!==t?t:Array.from).apply(Array,e)}},15958(e,t,i){"use strict";i.d(t,{g(){return s.g},i(){return s.i}});var s=i(55641)},55641(e,t,i){"use strict";function s(e,t,...i){return t?window.setTimeout(e,t,...i):(e.call(null,...i),0)}function o(e){window.clearTimeout(e)}i.d(t,{g(){return o},i(){return s}})},11228(e,t,i){"use strict";function s(){let e=!0;try{const t=document.createElement("input");t.type="color",e="color"===t.type&&"number"!=typeof t.selectionStart}catch(t){e=!1}return e}i.d(t,{EO(){return s},Zt(){return f},kJ(){return o.k},jn(){return r.j},Z$(){return m},Xy(){return n.X},LP(){return n.L},mf(){return a.m},FP(){return c},I4(){return d},Gu(){return p},GN(){return v},Zu(){return b.Z},A1(){return w},QC(){return k.Q},hj(){return C.h},kE(){return g.k},PO(){return S.P},tI(){return E.t},HD(){return l.H},GI(){return l.G},PX(){return x.P},r1(){return j},f2(){return y.f},nj(){return u.n},FJ(){return z.F}});var o=i(8356),r=i(82949),n=i(33686),a=i(6244),l=i(57348);const c=e=>(0,l.H)(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""));function d(e){return-1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}var h=i(12815),u=i(93215);function p(e){return!(0,u.n)(e)&&(0,a.m)(e.init)}function m(e){return!(0,u.n)(e)&&(0,a.m)(e.destruct)}function f(e){return!(0,u.n)(e)&&h.i.isElement(e.container)}var g=i(77240);function v(e){return(0,l.H)(e)&&(0,g.k)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}var b=i(8637),y=i(90412);const w=e=>(0,l.H)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e);var k=i(8412),C=i(92845),S=i(6395),E=i(22233),x=i(84842);function j(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_.]/.test(e)}var z=i(51585)},8356(e,t,i){"use strict";function s(e){return Array.isArray(e)}i.d(t,{k(){return s}})},82949(e,t,i){"use strict";function s(e){return"boolean"==typeof e}i.d(t,{j(){return s}})},33686(e,t,i){"use strict";i.d(t,{L(){return r},X(){return o}});var s=i(47475);function o(e,t){return e===t||(0,s.P)(e)===(0,s.P)(t)}function r(e,t){return e===t}},6244(e,t,i){"use strict";function s(e){return"function"==typeof e}i.d(t,{m(){return s}})},8637(e,t,i){"use strict";i.d(t,{Z(){return o}});var s=i(6244);function o(e){return!!(e&&e instanceof Object&&(0,s.m)(e.constructor)&&("undefined"!=typeof Jodit&&e instanceof Jodit||e.isJodit))}},8412(e,t,i){"use strict";function s(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}i.d(t,{Q(){return s}})},92845(e,t,i){"use strict";function s(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}i.d(t,{h(){return s}})},77240(e,t,i){"use strict";i.d(t,{k(){return o}});var s=i(57348);function o(e){if((0,s.H)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},6395(e,t,i){"use strict";i.d(t,{P(){return o}});var s=i(51585);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,s.F)(e)||e.constructor&&!{}.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},22233(e,t,i){"use strict";function s(e){return e&&"function"==typeof e.then}i.d(t,{t(){return s}})},57348(e,t,i){"use strict";i.d(t,{G(){return r},H(){return o}});var s=i(8356);function o(e){return"string"==typeof e}function r(e){return(0,s.k)(e)&&o(e[0])}},84842(e,t,i){"use strict";function s(e){if(e.includes(" "))return!1;if("undefined"!=typeof URL)try{const t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}const t=document.createElement("a");return t.href=e,!!t.hostname}i.d(t,{P(){return s}})},90412(e,t,i){"use strict";i.d(t,{f(){return o}});var s=i(6244);function o(e){return!!(e&&e instanceof Object&&(0,s.m)(e.constructor)&&e.isView)}},93215(e,t,i){"use strict";function s(e){return null==e}i.d(t,{n(){return s}})},51585(e,t,i){"use strict";function s(e){return null!=e&&e===e.window}i.d(t,{F(){return s}})},49771(e,t,i){"use strict";i.d(t,{h(){return s}});const s=e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;const t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";const i=parseInt(t[2],10),s=parseInt(t[3],10);let o=(parseInt(t[4],10)|s<<8|i<<16).toString(16).toUpperCase();for(;6>o.length;)o="0"+o;return t[1]+"#"+o}},8586(e,t,i){"use strict";i.d(t,{h(){return s.h}});var s=i(49771)},74586(e,t,i){"use strict";i.d(t,{Zs(){return a},pQ(){return c},$_(){return d},hU(){return m},eV(){return p.e},nA(){return p.n},oN(){return u}});var s=i(12815),o=i(93772),r=i(78097);function n(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,((e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e}))}function a(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);const t=document.createElement("iframe");t.style.display="none",document.body.appendChild(t);let i="",a=[];try{const l=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(l){l.open(),l.write(e),l.close();try{for(let e=0;l.styleSheets.length>e;e+=1){const t=l.styleSheets[e].cssRules;for(let e=0;t.length>e;e+=1)""!==t[e].selectorText&&(a=(0,o.$$)(t[e].selectorText,l.body),a.forEach((i=>{i.style.cssText=n(t[e].style.cssText+";"+i.style.cssText)})))}}catch(e){}s.i.each(l.body,(e=>{if(s.i.isElement(e)){const t=e,i=t.getAttribute("style");i&&(t.style.cssText=n(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}})),i=l.firstChild?(0,r.f)(l.body.innerHTML):""}}catch(e){}finally{s.i.safeRemove(t)}return i&&(e=i),(0,r.f)(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}var l=i(62507);function c(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{const i=document.createElement("div");i.innerHTML=e;const o=[];i.firstChild&&s.i.each(i,(e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":o.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":s.i.unwrap(e);break;default:(0,l.q)(e.attributes).forEach((t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)}))}break;case Node.TEXT_NODE:break;default:o.push(e)}})),s.i.safeRemove.apply(null,o),t=i.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(r.f).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}function d(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}var h=i(57348);function u(e,t=document){const i=t.createElement("div");return(0,h.H)(e)?i.innerHTML=e:i.appendChild(e),(0,o.$$)("DIV, P, BR, H1, H2, H3, H4, H5, H6, HR",i).forEach((e=>{const i=e.parentNode;if(!i)return;const o=e.nextSibling;s.i.isText(o)&&/^\s/.test(o.nodeValue||"")||o&&i.insertBefore(t.createTextNode(" "),o)})),(0,r.f)(i.innerText)||""}var p=i(37337);function m(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}},37337(e,t,i){"use strict";i.d(t,{e(){return r},n(){return n}});var s=i(93772),o=i(12815);function r(e,t){(o.i.isElement(e)||o.i.isFragment(e))&&(t.removeOnError&&(n(e),(0,s.$$)("[onerror]",e).forEach((e=>n(e,t)))),t.safeJavaScriptLink&&(n(e),(0,s.$$)('a[href^="javascript"]',e).forEach((e=>n(e,t)))))}function n(e,{safeJavaScriptLink:t,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.i.isElement(e))return!1;let r=!1;i&&e.hasAttribute("onerror")&&((0,s.attr)(e,"onerror",null),r=!0);const n=e.getAttribute("href");return t&&n&&0===n.trim().indexOf("javascript")&&((0,s.attr)(e,"href",location.protocol+"//"+n),r=!0),r}},16892(e,t,i){"use strict";i.r(t),i.d(t,{CamelCaseToKebabCase(){return p.gP},applyStyles(){return d.Zs},asArray(){return n._2},camelCase(){return p.eV},cleanFromWord(){return d.pQ},clearTimeout(){return a.g},colorToHex(){return c.h},fuzzySearchIndex(){return p.Qy},getContentWidth(){return u.FK},getScrollParent(){return u.rP},hasBrowserColorPicker(){return l.EO},hasContainer(){return l.Zt},htmlspecialchars(){return d.$_},i18n(){return p.ag},innerWidth(){return u.x9},isArray(){return l.kJ},isBoolean(){return l.jn},isDestructable(){return l.Z$},isEqual(){return l.Xy},isFastEqual(){return l.LP},isFunction(){return l.mf},isHTML(){return l.FP},isHtmlFromWord(){return l.I4},isInitable(){return l.Gu},isInt(){return l.GN},isJoditObject(){return l.Zu},isLicense(){return l.A1},isNativeFunction(){return l.QC},isNumber(){return l.hj},isNumeric(){return l.kE},isPlainObject(){return l.PO},isPromise(){return l.tI},isString(){return l.HD},isStringArray(){return l.GI},isURL(){return l.PX},isValidName(){return l.r1},isViewObject(){return l.f2},isVoid(){return l.nj},isWindow(){return l.FJ},kebabCase(){return p.GL},nl2br(){return d.hU},normalizeColor(){return h.ut},normalizeCssValue(){return h.Zh},normalizeKeyAliases(){return h.T2},normalizeLicense(){return h.Pd},normalizeNode(){return h.Tz},normalizePath(){return h.AH},normalizeRelativePath(){return h.Jf},normalizeSize(){return h.aC},normalizeUrl(){return h.D5},offset(){return u.cv},position(){return u.eL},safeHTML(){return d.eV},sanitizeHTMLElement(){return d.nA},setTimeout(){return a.i},size(){return u.dp},splitArray(){return n.C1},sprintf(){return p.gB},stringify(){return p.Pz},stripTags(){return d.oN},toArray(){return n.qo},trim(){return p.fy},trimInv(){return p.as},ucfirst(){return p.Ps}});var s=i(93772),o={};for(var r in s)"default"!==r&&(o[r]=(e=>s[e]).bind(0,r));i.d(t,o);var n=i(5007),a=i(15958),l=i(11228),c=i(8586),d=i(74586),h=i(1022),u=i(97096),p=i(60982)},1022(e,t,i){"use strict";i.d(t,{ut(){return g},Zh(){return m.Z},T2(){return r},Pd(){return n},Tz(){return l},AH(){return d},Jf(){return h},aC(){return u},D5(){return p}});var s=i(78097),o=i(49940);function r(e){const t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map((e=>(0,s.f)(e.toLowerCase()))).map((e=>o.KEY_ALIASES[e]||e)).sort(((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1)).filter((e=>!t[e]&&""!==e&&(t[e]=!0))).join("+")}const n=(e,t=8)=>{const i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")};var a=i(12815);const l=e=>{if(e){if(a.i.isText(e)&&null!=e.nodeValue&&e.parentNode)for(;a.i.isText(e.nextSibling);)null!=e.nextSibling.nodeValue&&(e.nodeValue+=e.nextSibling.nodeValue),e.nodeValue=e.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),a.i.safeRemove(e.nextSibling);else l(e.firstChild);l(e.nextSibling)}};var c=i(60982);const d=(...e)=>e.filter((e=>(0,c.fy)(e).length)).map(((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t))).join("/"),h=e=>e.split("/").reduce(((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e}),[]).join("/")+(e.endsWith("/")?"/":""),u=e=>/^[0-9]+$/.test(""+e)?e+"px":""+e,p=(...e)=>e.filter((e=>e.length)).map((e=>e.replace(/\/$/,""))).join("/").replace(/([^:])[\\/]+/g,"$1/");var m=i(44523),f=i(49771);const g=e=>{const t=["#"];let i=(0,f.h)(e);if(!i)return!1;if(i=(0,c.fy)(i.toUpperCase()),i=i.substr(1),3===i.length){for(let e=0;3>e;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.substr(0,6)),"#"+i}},44523(e,t,i){"use strict";i.d(t,{Z(){return n}});var s=i(77240),o=i(76910),r=i(49771);function n(e,t){if("font-weight"===(0,o.G)(e)){switch((""+t).toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,s.k)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(""+t)&&(0,r.h)(""+t)||t}},97096(e,t,i){"use strict";i.d(t,{FK(){return s},rP(){return n},x9(){return a},cv(){return l},eL(){return d},dp(){return h.d}});const s=(e,t)=>{const i=e=>parseInt(e,10),s=t.getComputedStyle(e);return e.offsetWidth-i(s.getPropertyValue("padding-left")||"0")-i(s.getPropertyValue("padding-right")||"0")};var o=i(93772),r=i(12815);function n(e){if(!e)return null;const t=r.i.isHTMLElement(e),i=t&&(0,o.css)(e,"overflowY");return t&&"visible"!==i&&"hidden"!==i&&e.scrollHeight>=e.clientHeight?e:n(e.parentNode)||document.scrollingElement||document.body}const a=(e,t)=>{const i=t.getComputedStyle(e);let s=e.clientWidth;return s-=parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"),s},l=(e,t,i,s=!1)=>{let o;try{o=e.getBoundingClientRect()}catch(e){o={top:0,bottom:0,left:0,right:0,width:0,height:0}}const r=i.body,n=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},a=i.defaultView||i.parentWindow,c=a.pageYOffset||n.scrollTop||r.scrollTop,d=a.pageXOffset||n.scrollLeft||r.scrollLeft,h=n.clientTop||r.clientTop||0,u=n.clientLeft||r.clientLeft||0;let p,m;const f=t.iframe;if(!s&&t&&t.options&&t.o.iframe&&f){const{top:e,left:i}=l(f,t,t.od,!0);p=o.top+e,m=o.left+i}else p=o.top+c-h,m=o.left+d-u;return{to