UNPKG

jodit-react

Version:

Jodit is awesome and usefully wysiwyg editor with filebrowser

2 lines 807 kB
/*! For license information please see jodit-react.js.LICENSE.txt */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.JoditEditor=e(require("react")):(t.JoditEditor=t.JoditEditor||{},t.JoditEditor.Jodit=e(t.React))}(self,(t=>(()=>{var e={922:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",o=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),o&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),o&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,o,n,r){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(o)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<t.length;c++){var d=[].concat(t[c]);o&&s[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),i&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=i):d[2]=i),n&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=n):d[4]="".concat(n)),e.push(d))}},e}},155:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},499:t=>{"use strict";t.exports=function(t){return t[1]}},714:t=>{self,t.exports=function(){var t={26318:function(t,e,i){"use strict";function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function n(t,e,i){var n=i.value;if("function"!=typeof n)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(o(n)));var r=!1;return{configurable:!0,get:function(){if(r||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof n)return n;var i=n.bind(this);return r=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return i},set:function(t){n=t,delete this[e]}}),r=!1,i},set:function(t){n=t}}}function r(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((function(e){if("constructor"!==e){var i=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof i.value&&Object.defineProperty(t.prototype,e,n(t,e,i))}})),t}function s(){return 1===arguments.length?r.apply(void 0,arguments):n.apply(void 0,arguments)}i.d(e,{Ay:function(){return s}})},36115:function(t,e,i){"use strict";i.d(e,{T:function(){return n}});var o=i(17352);class n{constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument="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.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=o.INSERT_AS_HTML,this.enter=o.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!0}static get defaultOptions(){return n.__defaultOptions||(n.__defaultOptions=new n),n.__defaultOptions}}n.prototype.controls={}},86302:function(t,e,i){"use strict";i.d(e,{j:function(){return p}});var o=i(17352),n=i(59146),r=i(99951),s=i(69052),a=i(2461),l=i(25376),c=i(92039),d=i(98253),u=i(35642),h=(i(28712),i(21567));class p{constructor(){var t,e,i,o,n;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!==(t=null===queueMicrotask||void 0===queueMicrotask?void 0:queueMicrotask.bind(window))&&void 0!==t?t:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.requestsIdle=new Set,this.requestsRaf=new Set,this.requestIdleCallbackNative=null!==(i=null===(e=window.requestIdleCallback)||void 0===e?void 0:e.bind(window))&&void 0!==i?i:(t,e)=>{var i;const o=Date.now();return this.setTimeout((()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})}),null!==(i=null==e?void 0:e.timeout)&&void 0!==i?i:1)},this.__cancelIdleCallbackNative=null!==(n=null===(o=window.cancelIdleCallback)||void 0===o?void 0:o.bind(window))&&void 0!==n?n:t=>{this.clearTimeout(t)},this.isDestructed=!1}delay(t){return this.promise((e=>this.setTimeout(e,t)))}setTimeout(t,e,...i){if(this.isDestructed)return 0;let o={};(0,u.R)(e)&&(e=0),(0,a.E)(e)||(o=e,e=o.timeout||0),o.label&&this.clearLabel(o.label);const r=(0,n.w)(t,e,...i),s=o.label||r;return this.timers.set(s,r),this.__callbacks.set(s,t),r}updateTimeout(t,e){if(!t||!this.timers.has(t))return null;const i=this.__callbacks.get(t);return this.setTimeout(i,{label:t,timeout:e})}clearLabel(t){t&&this.timers.has(t)&&((0,n.D)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,d.K)(t))return this.clearLabel(t);(0,n.D)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,e,i=!1){let o=0,a=!1;const d=[],u=(...e)=>{if(!a){o=0;const i=t(...e);if(a=!0,d.length){const t=()=>{d.forEach((t=>t())),d.length=0};(0,c.y)(i)?i.finally(t):t()}}},h=(...r)=>{a=!1,e?(!o&&i&&u(...r),(0,n.D)(o),o=this.setTimeout((()=>u(...r)),(0,s.T)(e)?e():e),this.timers.set(t,o)):u(...r)};return(0,l.Q)(e)&&e.promisify?(...t)=>{const e=this.promise((t=>{d.push(t)})).catch((t=>{if((0,r.z)(t))return null;throw t}));return h(...t),e}:h}microDebounce(t,e=!1){let i,o=!1,n=!0;return(...r)=>{i=r,o?n=!0:(n=!0,e&&(n=!1,t(...i)),o=!0,this.__queueMicrotaskNative((()=>{o=!1,this.isDestructed||n&&t(...i)})))}}throttle(t,e,i=!1){let o,n,r,a=null;return(...i)=>{o=!0,r=i,e?a||(n=()=>{o?(t(...r),o=!1,a=this.setTimeout(n,(0,s.T)(e)?e():e),this.timers.set(n,a)):a=null},n()):t(...r)}}promise(t){let e=()=>{};const i=new Promise(((i,o)=>{e=()=>o((0,h.h)("Abort async")),this.promisesRejections.add(e),t(i,o)}));return i.finally||"undefined"==typeof process||o.IS_ES_NEXT||(i.finally=t=>(i.then(t).catch(t),i)),i.finally((()=>{this.promisesRejections.delete(e)})).catch((()=>null)),i.rejectCallback=e,i}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise((e=>{t.then((t=>(e("fulfilled"),t)),(t=>{throw e("rejected"),t})),this.setTimeout((()=>{e("pending")}),100)}));const e={};return Promise.race([t,e]).then((t=>t===e?"pending":"fulfilled"),(()=>"rejected"))}requestIdleCallback(t,e){const i=this.requestIdleCallbackNative(t,e);return this.requestsIdle.add(i),i}requestIdlePromise(t){return this.promise((e=>{const i=this.requestIdleCallback((()=>e(i)),t)}))}cancelIdleCallback(t){return this.requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){const e=requestAnimationFrame(t);return this.requestsRaf.add(e),e}cancelAnimationFrame(t){this.requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.requestsIdle.forEach((t=>this.cancelIdleCallback(t))),this.requestsRaf.forEach((t=>this.cancelAnimationFrame(t))),this.timers.forEach((t=>(0,n.D)(this.timers.get(t)))),this.timers.clear(),this.promisesRejections.forEach((t=>t())),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},64890:function(t,e,i){"use strict";i.d(e,{j:function(){return o.j}});var o=i(86302)},37474:function(t,e,i){"use strict";i.d(e,{u:function(){return l}});var o=i(64890),n=i(64567),r=i(56298),s=i(65147);const a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(t,e,i){const o=[this.componentName];return t&&(t=t.replace(/[^a-z0-9-]/gi,"-"),o.push(`__${t}`)),e&&(o.push("_",e),o.push("_",(0,s.isVoid)(i)?"true":i.toString())),o.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,e){return(0,s.get)(t,e||this)}get isReady(){return this.componentStatus===n.f.ready}get isDestructed(){return this.componentStatus===n.f.destructed}get isInDestruct(){return n.f.beforeDestruct===this.componentStatus||n.f.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(n.f.beforeDestruct,(()=>!this.isInDestruct&&this.destruct())),this}constructor(){this.async=new o.j,this.ownerWindow=window,this.__componentStatus=n.f.beforeInit,this.uid="jodit-uid-"+(0,r.w9)()}destruct(){this.setStatus(n.f.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);const i=Object.getPrototypeOf(this);i&&(0,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(t,e);const o=a.get(this),n=null==o?void 0:o[t];n&&n.length&&n.forEach((t=>t(e)))}hookStatus(t,e){let i=a.get(this);i||(i={},a.set(this,i)),i[t]||(i[t]=[]),i[t].push(e)}static isInstanceOf(t,e){return t instanceof e}}l.STATUSES=n.f},77753:function(t,e,i){"use strict";i.d(e,{f:function(){return n.f},uA:function(){return o.u},vG:function(){return r.v}});var o=i(37474),n=i(64567),r=i(7982)},64567:function(t,e,i){"use strict";i.d(e,{f:function(){return o}});const o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},7982:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var o=i(37474);class n extends o.u{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...e){return this.j.i18n(t,...e)}setParentView(t){return this.jodit=t,t.components.add(this),this}constructor(t){super(),this.setParentView(t)}destruct(){return this.j.components.delete(this),super.destruct()}}},17352:function(t,e,i){"use strict";i.r(e),i.d(e,{ACCURACY:function(){return J},APP_VERSION:function(){return o},BASE_PATH:function(){return at},BR:function(){return F},CLIPBOARD_ID:function(){return dt},COMMAND_KEYS:function(){return H},EMULATE_DBLCLICK_TIMEOUT:function(){return Q},ES:function(){return n},FAT_MODE:function(){return c},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return C},INSERT_AS_HTML:function(){return tt},INSERT_AS_TEXT:function(){return it},INSERT_CLEAR_HTML:function(){return et},INSERT_ONLY_TEXT:function(){return ot},INVISIBLE_SPACE:function(){return p},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return m},INVISIBLE_SPACE_REG_EXP_START:function(){return b},IS_BLOCK:function(){return w},IS_ES_MODERN:function(){return r},IS_ES_NEXT:function(){return s},IS_IE:function(){return Y},IS_INLINE:function(){return y},IS_MAC:function(){return rt},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return st},KEY_ALT:function(){return L},KEY_BACKSPACE:function(){return T},KEY_DELETE:function(){return D},KEY_DOWN:function(){return N},KEY_ENTER:function(){return I},KEY_ESC:function(){return A},KEY_F3:function(){return q},KEY_LEFT:function(){return M},KEY_META:function(){return z},KEY_RIGHT:function(){return R},KEY_SPACE:function(){return B},KEY_TAB:function(){return E},KEY_UP:function(){return P},LIST_TAGS:function(){return j},MARKER_CLASS:function(){return Z},MODE_SOURCE:function(){return U},MODE_SPLIT:function(){return $},MODE_WYSIWYG:function(){return W},NBSP_SPACE:function(){return f},NEARBY:function(){return O},NO_EMPTY_TAGS:function(){return S},PARAGRAPH:function(){return V},PASSIVE_EVENTS:function(){return ht},SAFE_COUNT_CHANGE_CALL:function(){return nt},SET_TEST:function(){return u},SOURCE_CONSUMER:function(){return ut},SPACE_REG_EXP:function(){return _},SPACE_REG_EXP_END:function(){return x},SPACE_REG_EXP_START:function(){return v},TEMP_ATTR:function(){return lt},TEXT_HTML:function(){return G},TEXT_PLAIN:function(){return K},TEXT_RTF:function(){return X},TOKENS:function(){return h},lang:function(){return ct}});const o="4.2.10",n="es2018",r=!0,s=!1,a=!0;let l=!1;const c=!0,d="https://xdsoft.net/jodit/",u=()=>l=!0,h={},p="\ufeff",f=" ",g=()=>/[\uFEFF]/g,m=()=>/[\uFEFF]+$/g,b=()=>/^[\uFEFF]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+/g,v=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,x=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w=/^(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,y=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,j=new Set(["ul","ol"]),k=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],C=new Set([...k,"br","hr"]),S=new Set(k),z="Meta",T="Backspace",E="Tab",I="Enter",A="Escape",L="Alt",M="ArrowLeft",P="ArrowUp",R="ArrowRight",N="ArrowDown",B="Space",D="Delete",q="F3",O=5,J=10,H=[z,T,D,P,N,R,M,I,A,q,E],F="br",V="p",W=1,U=2,$=3,Y="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),K=Y?"text":"text/plain",G=Y?"html":"text/html",X=Y?"rtf":"text/rtf",Z="jodit-selection_marker",Q=300,tt="insert_as_html",et="insert_clear_html",it="insert_as_text",ot="insert_only_text",nt=10,rt="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),st={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:rt?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},at=(()=>{if("undefined"==typeof document)return"";const t=document.currentScript,e=t=>{const e=t.split("/");return/\.js/.test(e[e.length-1])?e.slice(0,e.length-1).join("/")+"/":t};if(t)return e(t.src);const i=document.querySelectorAll("script[src]");return i&&i.length?e(i[i.length-1].src):window.location.href})(),lt="data-jodit-temp",ct={},dt="clipboard",ut="source-consumer",ht=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},92852:function(t,e,i){"use strict";i.d(e,{X:function(){return s}});var o=i(17352),n=i(55186),r=i(65147);i(28712);class s{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}constructor(t,e){this.document=t,this.createAttributes=e}element(t,e,i){const o=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(o),e&&((0,r.isPlainObject)(e)?(0,r.attr)(o,e):i=e),i&&(0,r.asArray)(i).forEach((t=>o.appendChild((0,r.isString)(t)?this.fromHTML(t):t))),o}div(t,e,i){const o=this.element("div",e,i);return t&&(o.className=t),o}sandbox(){var t;const e=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(e);const i=null===(t=e.contentWindow)||void 0===t?void 0:t.document;if(!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,e]}span(t,e,i){const o=this.element("span",e,i);return t&&(o.className=t),o}a(t,e,i){const o=this.element("a",e,i);return t&&(o.className=t),o}text(t){return this.doc.createTextNode(t)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,e){const i=this.div();i.innerHTML=t.toString();const o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(n.J.safeRemove(o),e){const t=(0,r.refs)(o);Object.keys(e).forEach((i=>{const o=t[i];o&&!1===e[i]&&n.J.hide(o)}))}return o}applyCreateAttributes(t){if(this.createAttributes){const e=this.createAttributes;if(e&&e[t.tagName.toLowerCase()]){const i=e[t.tagName.toLowerCase()];(0,r.isFunction)(i)?i(t):(0,r.isPlainObject)(i)&&(0,r.attr)(t,i)}}}}},40594:function(t,e,i){"use strict";i.d(e,{X:function(){return o.X}});var o=i(92852)},11961:function(t,e,i){"use strict";i.d(e,{d:function(){return o.Ay}});var o=i(26318)},87875:function(t,e,i){"use strict";i.d(e,{OK:function(){return c},PO:function(){return a},PP:function(){return l}});var o=i(64567),n=i(55186),r=i(9823),s=i(76166);function a(t,e){const i=Object.getOwnPropertyDescriptor(t,e);return!i||(0,r.Tn)(i.get)?null:i.value}function l(t,e,i){const o=i.get;if(!o)throw(0,s.z3)("Getter property descriptor expected");i.get=function(){const t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,e,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:t}),t}}function c(t,e,i){const a=i.value;if(!(0,r.Tn)(a))throw(0,s.z3)("Handler must be a Function");let l=!0;const c=new WeakMap;i.value=function(...t){var e;if(l&&c.has(this.constructor))return null===(e=c.get(this.constructor))||void 0===e?void 0:e.cloneNode(!0);const i=a.apply(this,t);return l&&n.J.isElement(i)&&c.set(this.constructor,i),l?i.cloneNode(!0):i},t.hookStatus(o.f.ready,(t=>{const e=(0,r.hH)(t)?t:t.jodit;l=Boolean(e.options.cache)}))}},24767:function(t,e,i){"use strict";function o(t){class e extends t{constructor(...t){super(...t),this.constructor===e&&(this instanceof e||Object.setPrototypeOf(this,e.prototype),this.setStatus("ready"))}}return e}i.d(e,{s:function(){return o}})},37075:function(t,e,i){"use strict";i.d(e,{n:function(){return a},s:function(){return s}});var o=i(77753),n=i(9823),r=(i(28712),i(50156));function s(t,e=!1,i="debounce"){return(s,a)=>{const l=s[a];if(!(0,n.Tn)(l))throw(0,r.z3)("Handler must be a Function");return s.hookStatus(o.f.ready,(o=>{const{async:r}=o,s=(0,n.Tn)(t)?t(o):t,l=(0,n.Et)(s)||(0,n.Qd)(s)?s:o.defaultTimeout;Object.defineProperty(o,a,{configurable:!0,value:r[i](o[a].bind(o),l,e)})})),{configurable:!0,get(){return l.bind(this)}}}}function a(t,e=!1){return s(t,e,"throttle")}},1963:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});var o=i(69052);function n(...t){return e=>{const i=e.prototype;for(let e=0;t.length>e;e++){const n=t[e],r=Object.getOwnPropertyNames(n.prototype);for(let t=0;r.length>t;t++){const e=r[t],s=Object.getOwnPropertyDescriptor(n.prototype,e);null!=s&&(0,o.T)(s.value)&&!(0,o.T)(i[e])&&Object.defineProperty(i,e,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return s.value.call(this,...t)}})}}}}},71151:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var o=i(69052),n=i(50156);function r(t){return(e,i)=>{if(!(0,o.T)(e[i]))throw(0,n.z3)("Handler must be a Function");e.hookStatus(t,(t=>{t[i].call(t)}))}}},86285:function(t,e,i){"use strict";i.d(e,{N:function(){return s}});var o=i(77753),n=i(69052),r=i(50156);function s(){return(t,e)=>{if(!(0,n.T)(t[e]))throw(0,r.z3)("Handler must be a Function");t.hookStatus(o.f.ready,(t=>{const{async:i}=t,o=t[e];t[e]=(...e)=>i.requestIdleCallback(o.bind(t,...e))}))}}},22664:function(t,e,i){"use strict";i.r(e),i.d(e,{autobind:function(){return o.d},cache:function(){return n.PP},cacheHTML:function(){return n.OK},cached:function(){return n.PO},component:function(){return r.s},debounce:function(){return s.s},derive:function(){return a.C},getPropertyDescriptor:function(){return p.N},hook:function(){return l.A},idle:function(){return c.N},nonenumerable:function(){return d.m},persistent:function(){return u.y},throttle:function(){return s.n},wait:function(){return h.u},watch:function(){return p.w}});var o=i(11961),n=i(87875),r=i(24767),s=i(37075),a=i(1963),l=i(71151),c=i(86285),d=i(48791),u=i(33087),h=i(48647),p=i(66927)},48791:function(t,e,i){"use strict";i.d(e,{m:function(){return o}});const o=(t,e)=>{!1!==(Object.getOwnPropertyDescriptor(t,e)||{}).enumerable&&Object.defineProperty(t,e,{enumerable:!1,set(t){Object.defineProperty(this,e,{enumerable:!1,writable:!0,value:t})}})}},33087:function(t,e,i){"use strict";i.d(e,{y:function(){return r}});var o=i(64567),n=i(12041);function r(t,e){t.hookStatus(o.f.ready,(t=>{const i=(0,n.h)(t)?t:t.jodit,o=`${i.options.namespace}${t.componentName}_prop_${e}`,r=t[e];Object.defineProperty(t,e,{get(){var t;return null!==(t=i.storage.get(o))&&void 0!==t?t:r},set(t){i.storage.set(o,t)}})}))}},48647:function(t,e,i){"use strict";i.d(e,{u:function(){return s}});var o=i(64567),n=i(69052),r=i(50156);function s(t){return(e,i)=>{if(!(0,n.T)(e[i]))throw(0,r.z3)("Handler must be a Function");e.hookStatus(o.f.ready,(e=>{const{async:o}=e,n=e[i];let r=0;Object.defineProperty(e,i,{configurable:!0,value:function i(...s){o.clearTimeout(r),t(e)?n.apply(e,s):r=o.setTimeout((()=>i(...s)),10)}})}))}}},66927:function(t,e,i){"use strict";i.d(e,{N:function(){return d},w:function(){return u}});var o=i(64567),n=i(32332),r=i(42589),s=i(69052),a=i(25376),l=i(12041),c=i(50156);function d(t,e){let i;do{i=Object.getOwnPropertyDescriptor(t,e),t=Object.getPrototypeOf(t)}while(!i&&t);return i}function u(t,e){return(i,u)=>{var h;if(!(0,s.T)(i[u]))throw(0,c.z3)("Handler must be a Function");const p=null===(h=null==e?void 0:e.immediately)||void 0===h||h,f=null==e?void 0:e.context,g=e=>{const o=(0,l.h)(e)?e:e.jodit;let c=(t,...i)=>{if(!e.isInDestruct)return e[u](t,...i)};p||(c=e.async.microDebounce(c,!0)),(0,r.u)(t).forEach((t=>{if(/:/.test(t)){const[i,n]=t.split(":");let r=f;return i.length&&(r=e.get(i)),(0,s.T)(r)&&(r=r(e)),o.events.on(r||e,n,c),r||o.events.on(n,c),void e.hookStatus("beforeDestruct",(()=>{o.events.off(r||e,n,c).off(n,c)}))}const r=t.split("."),[l]=r,u=r.slice(1);let h=e[l];(0,a.Q)(h)&&(0,n.s)(h).on(`change.${u.join(".")}`,c);const p=d(i,l);Object.defineProperty(e,l,{configurable:!0,set(t){const i=h;i!==t&&(h=t,p&&p.set&&p.set.call(e,t),(0,a.Q)(h)&&(h=(0,n.s)(h),h.on(`change.${u.join(".")}`,c)),c(l,i,h))},get:()=>p&&p.get?p.get.call(e):h})}))};(0,s.T)(i.hookStatus)?i.hookStatus(o.f.ready,g):g(i)}}},55186:function(t,e,i){"use strict";i.d(e,{J:function(){return l}});var o=i(17352),n=i(42448),r=i(9823),s=i(59101),a=i(97369);class l{constructor(){throw new Error("Dom is static module")}static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapInline(t,e,i){let o,n=t,s=t;i.s.save();let a=!1;do{a=!1,o=n.previousSibling,o&&!l.isBlock(o)&&(a=!0,n=o)}while(a);do{a=!1,o=s.nextSibling,o&&!l.isBlock(o)&&(a=!0,s=o)}while(a);const c=(0,r.Kg)(e)?i.createInside.element(e):e;n.parentNode&&n.parentNode.insertBefore(c,n);let d=n;for(;d&&(d=n.nextSibling,c.appendChild(n),n!==s&&d);)n=d;return i.s.restore(),c}static wrap(t,e,i){const o=(0,r.Kg)(e)?i.element(e):e;if(l.isNode(t)){if(!t.parentNode)throw(0,a.error)("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{const e=t.extractContents();t.insertNode(o),o.appendChild(e)}return o}static unwrap(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);l.safeRemove(t)}}static between(t,e,i){let o=t;for(;o&&o!==e&&(t===o||!i(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)o=o.parentNode;t=null==o?void 0:o.nextSibling}o=t}}static replace(t,e,i,o=!1,s=!1){(0,r.AH)(e)&&(e=i.fromHTML(e));const a=(0,r.Kg)(e)?i.element(e):e;if(!s)for(;t.firstChild;)a.appendChild(t.firstChild);return o&&l.isElement(t)&&l.isElement(a)&&(0,n.$)(t.attributes).forEach((t=>{a.setAttribute(t.name,t.value)})),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return l.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return l.each(t,(t=>l.isEmptyTextNode(t)))}static isContentEditable(t,e){return l.isNode(t)&&!l.closest(t,(t=>l.isElement(t)&&"false"===t.getAttribute("contenteditable")),e)}static isEmpty(t,e=o.NO_EMPTY_TAGS){if(!t)return!0;let i;i=(0,r.Tn)(e)?e:t=>e.has(t.nodeName.toLowerCase());const n=t=>null==t.nodeValue||0===(0,s.Bq)(t.nodeValue).length;return l.isText(t)?n(t):!(l.isElement(t)&&i(t))&&l.each(t,(t=>{if(l.isText(t)&&!n(t)||l.isElement(t)&&i(t))return!1}))}static isNode(t){return Boolean(t&&(0,r.Kg)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,r.Tn)(t.appendChild))}static isCell(t){return l.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return l.isTag(t,o.LIST_TAGS)}static isLeaf(t){return l.isTag(t,"li")}static isImage(t){return l.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,r.Rd)(t)&&"object"==typeof t&&l.isNode(t)&&o.IS_BLOCK.test(t.nodeName)}static isText(t){return Boolean(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return Boolean(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){var e;if(!l.isNode(t))return!1;const i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView;return Boolean(i&&t.nodeType===Node.ELEMENT_NODE)}static isFragment(t){var e;if(!l.isNode(t))return!1;const i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView;return Boolean(i&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){var e;if(!l.isNode(t))return!1;const i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView;return Boolean(i&&t instanceof i.HTMLElement)}static isInlineBlock(t){return l.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,a.css)(t,"display").toString())}static canSplitBlock(t){return!(0,r.Rd)(t)&&l.isHTMLElement(t)&&l.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static last(t,e){let i=null==t?void 0:t.lastChild;if(!i)return null;do{if(e(i))return i;let o=i.lastChild;if(o||(o=i.previousSibling),!o&&i.parentNode!==t){do{i=i.parentNode}while(i&&!(null==i?void 0:i.previousSibling)&&i.parentNode!==t);o=null==i?void 0:i.previousSibling}i=o}while(i);return null}static prev(t,e,i,o=!0){return l.find(t,e,i,!1,o)}static next(t,e,i,o=!0){return l.find(t,e,i,!0,o)}static prevWithClass(t,e){return l.prev(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static nextWithClass(t,e){return l.next(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static find(t,e,i,o=!0,n=!0){const r=this.nextGen(t,i,o,n);let s=r.next();for(;!s.done;){if(e(s.value))return s.value;s=r.next()}return null}static*nextGen(t,e,i=!0,o=!0){const n=[];let r=t;do{let e=i?r.nextSibling:r.previousSibling;for(;e;)n.unshift(e),e=i?e.nextSibling:e.previousSibling;yield*this.runInStack(t,n,i,o),r=r.parentNode}while(r&&r!==e);return null}static each(t,e,i=!0){const o=this.eachGen(t,i);let n=o.next();for(;!n.done;){if(!1===e(n.value))return!1;n=o.next()}return!0}static eachGen(t,e=!0){return this.runInStack(t,[t],e)}static*runInStack(t,e,i,o=!0){for(;e.length;){const n=e.pop();if(o){let t=i?n.lastChild:n.firstChild;for(;t;)e.push(t),t=i?t.previousSibling:t.nextSibling}t!==n&&(yield n)}}static findWithCurrent(t,e,i,o="nextSibling",n="firstChild"){let r=t;do{if(e(r))return r||null;if(n&&r&&r[n]){const t=l.findWithCurrent(r[n],e,r,o,n);if(t)return t}for(;r&&!r[o]&&r!==i;)r=r.parentNode;r&&r[o]&&r!==i&&(r=r[o])}while(r&&r!==i);return null}static findSibling(t,e=!0,i=(t=>!l.isEmptyTextNode(t))){let o=l.sibling(t,e);for(;o&&!i(o);)o=l.sibling(o,e);return o&&i(o)?o:null}static findNotEmptySibling(t,e){return l.findSibling(t,e,(t=>{var e;return!l.isEmptyTextNode(t)&&Boolean(!l.isText(t)||(null===(e=t.nodeValue)||void 0===e?void 0:e.length)&&(0,s.Bq)(t.nodeValue))}))}static findNotEmptyNeighbor(t,e,i){return(0,a.call)(e?l.prev:l.next,t,(t=>Boolean(t&&(!(l.isText(t)||l.isComment(t))||(0,s.Bq)((null==t?void 0:t.nodeValue)||"").length))),i)}static sibling(t,e){return e?t.previousSibling:t.nextSibling}static up(t,e,i,o=!1){let n=t;if(!n)return null;do{if(e(n))return n;if(n===i||!n.parentNode)break;n=n.parentNode}while(n&&n!==i);return n===i&&o&&e(n)?n:null}static closest(t,e,i){let o;const n=t=>t.toLowerCase();if((0,r.Tn)(e))o=e;else if((0,r.cy)(e)||(0,r.vM)(e)){const t=(0,r.vM)(e)?e:new Set(e.map(n));o=e=>Boolean(e&&t.has(n(e.nodeName)))}else o=t=>Boolean(t&&n(e)===n(t.nodeName));return l.up(t,o,i)}static furthest(t,e,i){let o=null,n=null==t?void 0:t.parentElement;for(;n&&n!==i;)e(n)&&(o=n),n=null==n?void 0:n.parentElement;return o}static appendChildFirst(t,e){const i=t.firstChild;i?i!==e&&t.insertBefore(e,i):t.appendChild(e)}static after(t,e){const{parentNode:i}=t;i&&(i.lastChild===t?i.appendChild(e):i.insertBefore(e,t.nextSibling))}static before(t,e){const{parentNode:i}=t;i&&i.insertBefore(e,t)}static prepend(t,e){t.insertBefore(e,t.firstChild)}static append(t,e){(0,r.cy)(e)?e.forEach((e=>{this.append(t,e)})):t.appendChild(e)}static moveContent(t,e,i=!1,o=(()=>!0)){const r=(t.ownerDocument||document).createDocumentFragment();(0,n.$)(t.childNodes).filter((t=>!!o(t)||(l.safeRemove(t),!1))).forEach((t=>{r.appendChild(t)})),i&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}static isOrContains(t,e,i=!1){return t===e?!i:Boolean(e&&t&&this.up(e,(e=>e===t),t,!0))}static safeRemove(...t){t.forEach((t=>l.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t)))}static safeInsertNode(t,e){t.collapsed||t.deleteContents();const i=l.isFragment(e)?e.lastChild:e;t.startContainer===t.endContainer&&t.collapsed&&l.isTag(t.startContainer,o.INSEPARABLE_TAGS)?l.after(t.startContainer,e):(t.insertNode(e),i&&t.setStartBefore(i)),t.collapse(!0),[e.nextSibling,e.previousSibling].forEach((t=>l.isText(t)&&!t.nodeValue&&l.safeRemove(t)))}static hide(t){t&&((0,a.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;const e=(0,a.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=e||"")}static isTag(t,e){if(!this.isElement(t))return!1;const i=t.tagName.toLowerCase(),o=t.tagName.toUpperCase();if(e instanceof Set)return e.has(i)||e.has(o);if(Array.isArray(e))throw new TypeError("Dom.isTag does not support array");return i===e||o===e}static markTemporary(t,e){return e&&(0,a.attr)(t,e),(0,a.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!l.isElement(t)&&((0,r.rg)(t)||"true"===(0,a.attr)(t,o.TEMP_ATTR))}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,a.$$)(`[${o.TEMP_ATTR}]`,t)}}},71842:function(t,e,i){"use strict";i.d(e,{J:function(){return o.J},p:function(){return n.p}});var o=i(55186),n=i(8453)},8453:function(t,e,i){"use strict";i.d(e,{p:function(){return a}});var o=i(31635),n=i(22664),r=i(55186),s=i(43431);class a extends s.h{setWork(t){return this.isWorked&&this.break(),this.workNodes=r.J.eachGen(t,!this.options.reverse),this.isFinished=!1,this.startIdleRequest(),this}constructor(t,e={}){super(),this.async=t,this.options=e,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0}startIdleRequest(){var t;this.idleId=this.async.requestIdleCallback(this.workPerform,{timeout:null!==(t=this.options.timeout)&&void 0!==t?t:10})}break(t){this.isWorked&&(this.stop(),this.emit("break",t))}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(t){var e;if(this.workNodes){this.isWorked=!0;let i=0;const o=null!==(e=this.options.timeoutChunkSize)&&void 0!==e?e:50;for(;!this.isFinished&&(t.timeRemaining()>0||t.didTimeout&&o>=i);){const t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this.startIdleRequest()}visitNode(t){var e;return!(!t||void 0!==this.options.whatToShow&&t.nodeType!==this.options.whatToShow)&&null!==(e=this.emit("visit",t))&&void 0!==e&&e}}(0,o.Cg)([n.autobind],a.prototype,"workPerform",null)},50658:function(t,e,i){"use strict";i.d(e,{b:function(){return d}});var o=i(17352),n=i(42589),r=i(37923),s=i(69052),a=i(98253),l=i(50156),c=i(10004);class d{mute(t){return this.__mutedEvents.add(null!=t?t:"*"),this}isMuted(t){return!(!t||!this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(null!=t?t:"*"),this}__eachEvent(t,e){(0,n.u)(t).map((t=>t.trim())).forEach((t=>{const i=t.split(".");e.call(this,i[0],i[1]||c.X)}))}__getStore(t){if(!t)throw(0,l.z3)("Need subject");if(void 0===t[this.__key]){const e=new c.d;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:e})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,e){const i=this.__doc.createEvent("HTMLEvents");(0,a.K)(e)?i.initEvent(e,!0,!0):(i.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach((t=>{Object.defineProperty(i,t,{value:e[t],enumerable:!0})})),Object.defineProperty(i,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(t,e,i,n){let c,d,h,p;if((0,a.K)(t)||(0,a.B)(t)?(c=this,d=t,h=e,p=i):(c=t,d=e,h=i,p=n),!(0,a.K)(d)&&!(0,a.B)(d)||0===d.length)throw(0,l.z3)("Need events names");if(!(0,s.T)(h))throw(0,l.z3)("Need event handler");if((0,r.c)(c))return c.forEach((t=>{this.on(t,d,h,p)})),this;const f=c,g=this.__getStore(f),m=this;let b=function(t,...e){if(!m.isMuted(t))return h&&h.call(this,...e)};return u(f)&&(b=function(t){if(!m.isMuted(t.type))return m.__prepareEvent(t),h&&!1===h.call(this,t)?(t.preventDefault(),t.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(d,((t,e)=>{var i,n;if(0===t.length)throw(0,l.z3)("Need event name");if(!1===g.indexOf(t,e,h)&&(g.set(t,e,{event:t,originalCallback:h,syntheticCallback:b},null==p?void 0:p.top),u(f))){const e=o.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!==(i=null==p?void 0:p.capture)&&void 0!==i&&i}:null!==(n=null==p?void 0:p.capture)&&void 0!==n&&n;b.options=e,f.addEventListener(t,b,e),this.__memoryDOMSubjectToHandler(f,b)}})),this}__memoryDOMSubjectToHandler(t,e){const i=this.__domEventsMap.get(t)||new Set;i.add(e),this.__domEventsMap.set(t,i)}__unmemoryDOMSubjectToHandler(t,e){const i=this.__domEventsMap,o=i.get(t)||new Set;o.delete(e),o.size?i.set(t,o):i.delete(t)}one(t,e,i,o){let n,r,s,l;(0,a.K)(t)||(0,a.B)(t)?(n=this,r=t,s=e,l=i):(n=t,r=e,s=i,l=o);const c=(...t)=>(this.off(n,r,c),s(...t));return this.on(n,r,c,l),this}off(t,e,i){let o,n,l;if((0,a.K)(t)||(0,a.B)(t)?(o=this,n=t,l=e):(o=t,n=e,l=i),(0,r.c)(o))return o.forEach((t=>{this.off(t,n,l)})),this;const d=o,h=this.__getStore(d);if(!(0,a.K)(n)&&!(0,a.B)(n)||0===n.length)return h.namespaces().forEach((t=>{this.off(d,"."+t)})),this.__removeStoreFromSubject(d),this;const p=t=>{var e;u(d)&&(d.removeEventListener(t.event,t.syntheticCallback,null!==(e=t.syntheticCallback.options)&&void 0!==e&&e),this.__unmemoryDOMSubjectToHandler(d,t.syntheticCallback))},f=(t,e)=>{if(""===t)return void h.events(e).forEach((t=>{""!==t&&f(t,e)}));const i=h.get(t,e);if(i&&i.length)if((0,s.T)(l)){const o=h.indexOf(t,e,l);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(e,t))}else i.forEach(p),i.length=0,h.clearEvents(e,t)};return this.__eachEvent(n,((t,e)=>{e===c.X?h.namespaces().forEach((e=>{f(t,e)})):f(t,e)})),h.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(t,e){const i=(0,a.K)(t)?this:t,o=(0,a.K)(t)?t:e;if("string"!=typeof o)throw(0,l.z3)("Need event names");const n=this.__getStore(i);this.__eachEvent(o,((t,e)=>{const o=n.get(t,e);o&&this.__stopped.push(o),e===c.X&&n.namespaces(!0).forEach((e=>this.stopPropagation(i,t+"."+e)))}))}__removeStop(t){if(t){const e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(0,e+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,e,...i){let o,n;const r=(0,a.K)(t)?this:t,s=(0,a.K)(t)?t:e,d=(0,a.K)(t)?[e,...i]:i;if(!u(r)&&!(0,a.K)(s))throw(0,l.z3)("Need events names");const h=this.__getStore(r);return!(0,a.K)(s)&&u(r)?this.__triggerNativeEvent(r,e):this.__eachEvent(s,((t,e)=>{if(u(r))this.__triggerNativeEvent(r,t);else{const i=h.get(t,e);if(i)try{[...i].every((e=>!this.__isStopped(i)&&(this.currents.push(t),n=e.syntheticCallback.call(r,t,...d),this.currents.pop(),void 0!==n&&(o=n),!0)))}finally{this.__removeStop(i)}e!==c.X||u(r)||h.namespaces().filter((t=>t!==e)).forEach((e=>{const i=this.fire.apply(this,[r,t+"."+e,...d]);void 0!==i&&(o=i)}))}})),o}constructor(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=document,this.__prepareEvent=t=>{t.cancelBubble||(t.composed&&(0,s.T)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach((e=>{Object.defineProperty(t,e,{value:t.changedTouches[0][e],configurable:!0,enumerable:!0})})),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=(new Date).getTime()}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach(((t,e)=>{this.off(e)})),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}function u(t){return(0,s.T)(t.addEventListener)}},43431:function(t,e,i){"use strict";i.d(e,{h:function(){return o}});class o{constructor(){this.__map=new Map}on(t,e){var i;return this.__map.has(t)||this.__map.set(t,new Set),null===(i=this.__map.get(t))||void 0===i||i.add(e),this}off(t,e){var i;return this.__map.has(t)&&(null===(i=this.__map.get(t))||void 0===i||i.delete(e)),this}destruct(){this.__map.clear()}emit(t,...e){var i;let o;return this.__map.has(t)&&(null===(i=this.__map.get(t))||void 0===i||i.forEach((t=>{o=t(...e)}))),o}}},50025:function(t,e,i){"use strict";i.d(e,{Xr:function(){return s.X},bk:function(){return o.b},d$:function(){return s.d},h5:function(){return n.h},sH:function(){return r.s}});var o=i(50658),n=i(43431),r=i(32332),s=i(10004)},32332:function(t,e,i){"use strict";i.d(e,{s:function(){return c}});var o=i(66927),n=i(37923),r=i(69810),s=i(25376);const a=Symbol("observable-object");function l(t){return void 0!==t[a]}function c(t){if(l(t))return t;const e={},i={},c=(e,o)=>(0,n.c)(e)?(e.map((t=>c(t,o))),t):(i[e]||(i[e]=[]),i[e].push(o),t),d=(o,...r)=>{if((0,n.c)(o))o.map((t=>d(t,...r)));else try{!e[o]&&i[o]&&(e[o]=!0,i[o].forEach((e=>e.call(t,...r))))}finally{e[o]=!1}},u=(e,i=[])=>{const n={};l(e)||(Object.defineProperty(e,a,{enumerable:!1,value:!0}),Object.keys(e).forEach((a=>{const l=a,c=i.concat(l).filter((t=>t.length));n[l]=e[l];const h=(0,o.N)(e,l);Object.defineProperty(e,l,{set:e=>{const i=n[l];if(!(0,r.P)(n[l],e)){d(["beforeChange",`beforeChange.${c.join(".")}`],l,e),(0,s.Q)(e)&&u(e,c),h&&h.set?h.set.call(t,e):n[l]=e;const o=[];d(["change",...c.reduce(((t,e)=>(o.push(e),t.push(`change.${o.join(".")}`),t)),[])],c.join("."),i,(null==e?void 0:e.valueOf)?e.valueOf():e)}},get:()=>h&&h.get?h.get.call(t):n[l],enumerable:!0,configurable:!0}),(0,s.Q)(n[l])&&u(n[l],c)})),Object.defineProperty(t,"on",{value:c}))};return u(t),t}},10004:function(t,e,i){"use strict";i.d(e,{X:function(){return n},d:function(){return r}});var o=i(42448);i(28712);const n="JoditEventDefaultNamespace";class r{constructor(){this.__store=new Map}get(t,e){if(this.__store.has(e))return this.__store.get(e)[t]}indexOf(t,e,i){const o=this.get(t,e);if(o)for(let t=0;o.length>t;t+=1)if(o[t].originalCallback===i)return t;return!1}namespaces(t=!1){const e=(0,o.$)(this.__store.keys());return t?e.filter((t=>t!==n)):e}events(t){const e=this.__store.get(t);return e?Object.keys(e):[]}set(t,e,i,o=!1){let n=this.__store.get(e);n||(n={},this.__store.set(e,n)),void 0===n[t]&&(n[t]=[]),o?n[t].unshift(i):n[t].push(i)}clear(){this.__store.clear()}clearEvents(t,e){const i=this.__store.get(t);i&&i[e]&&(delete i[e],Object.keys(i).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}}},56298:function(t,e,i){"use strict";i.d(e,{JW:function(){return _},My:function(){return x},RR:function(){return w},VF:function(){return h},av:function(){return b},fg:function(){return m},w9:function(){return g}});var o=i(83044),n=i(98253),r=i(12041),s=i(449),a=i(75766),l=i(77402),c=i(17352),d=i(71842),u=i(50025);const h={};let p=1;const f=new Set;function g(){function t(){return p+=10*(Math.random()+1),Math.round(p).toString(16)}let e=t();for(;f.has(e);)e=t();return f.add(e),e}const m=new l.$,b={},_=t=>{Object.keys(t).forEach((e=>{c.lang[e]?Object.assign(c.lang[e],t[e]):c.lang[e]=t[e]}))},v=new WeakMap;function x(t,e,i="div",l=!1){const c=(0,n.K)(e)?e:e?(0,a.u)(e.prototype):"jodit-utils",u=v.get(t)||{},h=c+i,p=(0,r.h)(t)?t:t.j;if(!u[h]){let e=p.c,n=(0,o.y)(t)&&t.o.shadowRoot?t.o.shadowRoot:t.od.body;if(l&&(0,o.y)(t)&&t.od!==t.ed){e=t.createInside;const r="style"===i?t.ed.head:t.ed.body;n=(0,o.y)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}const r=e.element(i,{className:`jodit jodit-${(0,s.k)(c)}-container jodit-box`});r.classList.add(`jodit_theme_${p.o.theme||"default"}`),n.appendChild(r),u[h]=r,t.hookStatus("beforeDestruct",(()=>{d.J.safeRemove(r),delete u[h],Object.keys(u).length&&v.delete(t)})),v.set(t,u)}return u[h].classList.remove("jodit_theme_default","jodit_theme_dark"),u[h].classList.add(`jodit_theme_${p.o.theme||"default"}`),u[h]}const w=new u.bk},82317:function(t,e,i){"use strict";i.d(e,{_:function(){return n}});var o=i(37923);const n=t=>(0,o.c)(t)?t:[t]},32709:function(t,e,i){"use strict";i.d(e,{$r:function(){return r.$},_j:function(){return o._},uM:function(){return n.u}});var o=i(82317),n=i(42589),r=i(42448)},42589:function(t,e,i){"use strict";function o(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}i.d(e,{u:function(){return o}})},42448:function(t,e,i){"use strict";i.d(e,{$:function(){return r}});var o=i(34796),n=i(44210);const r=function(...t){var e;return((0,o.a)(Array.from)?Array.from:null!==(e=(0,n.c)("Array.from"))&&void 0!==e?e:Array.from).apply(Array,t)}},89044:function(t,e,i){"use strict";i.d(e,{D:function(){return o.D},w:function(){return o.w}});var o=i(59146)},59146:function(t,e,i){"use strict";function o(t,e,...i){return e?window.setTimeout(t,e,...i):(t.call(null,...i),0)}function n(t){window.clearTimeout(t)}i.d(e,{D:function(){return n},w:function(){return o}})},78479:function(t,e,i){"use strict";function o(){let t=!0;try{const e=document.createElement("input");e.type="color",e.value="!",t="color"===e.type&&"!"!==e.value}catch(e){t=!1}return t}i.d(e,{k:function(){return o}})},9823:function(t,e,i){"use strict";i.d(e,{AH:function(){return c.A},Bo:function(){return y.B},CE:function(){return d.C},E6:function(){return h.E},Et:function(){return b.E},Gp:function(){return u.n4},Kg:function(){return y.K},Lm:function(){return s.L},Mj:function(){return f.M},P5:function(){return a.P},Qd:function(){return v.Q},Rd:function(){return S.R},Tn:function(){return l.T},a3:function(){return m.a},cy:function(){return r.c},hH:function(){return C.h},kC:function(){return o.k},kO:function(){return u.kO},kf:function(){return _.k},l6:function(){return z.l},mv:function(){return j.m},n4:function(){return a.n},pV:function(){return u.pV},rg:function(){return g.r},uV:function(){return k.u},vM:function(){return w.v},y0:function(){return p.y},yL:function(){return x.y},zf:function(){return n.z}});var o=i(78479),n=i(99951),r=i(37923),s=i(9810),a=i(69810),l=i(69052),c=i(53701),d=i(21811),u=i(10058),h=i(3947),p=i(83044),f=i(82201),g=i(71274),m=i(34796),b=i(2461),_=i(12461),v=i(25376),x=i(92039),w=i(53470),y=i(98253),j=i(6939),k=i(59082),C=i(12041),S=i(35642),z=i(76776)},99951:function(t,e,i){"use strict";function o(t){return Boolean(t)&&t instanceof DOMException&&"AbortError"===t.name}i.d(e,{z:function(){return o}})},37923:function(t,e,i){"use strict";function o(t){return Array.isArray(t)}i.d(e,{c:function(){return o}})},9810:function(t,e,i){"use strict";function o(t){return"boolean"==typeof t}i.d(e,{L:function(){return o}})},69810:function(t,e,i){"use strict";i.d(e,{P:function(){return r},n:function(){return n}});var o=i(28616);function n(t,e){return t===e||(0,o.A)(t)===(0,o.A)(e)}function r(t,e){return t===e}},69052:function(t,e,i){"use strict";function o(t){return"function"==typeof t}i.d(e,{T:function(){return o}})},21811:function(t,e,i){"use strict";function o(t){return-1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}i.d(e,{C:function(){return o}})},53701:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var o=i(98253);const n=t=>(0,o.K)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},10058:function(t,e,i){"use strict";i.d(e,{kO:function(){return l},n4:function(){return s},pV:function(){return a}});var o=i(55186),n=i(69052),r=i(35642);function s(t){return!(0,r.R)(t)&&(0,n.T)(t.init)}function a(t){return!(0,r.R)(t)&&(0,n.T)(t.destruct)}function l(t){return!(0,r.R)(t)&&o.J.isElement(t.container)}},3947:function(t,e,i){"use strict";i.d(e,{E:function(){return r}});var o=i(12461),n=i(98253);function r(t){return(0,n.K)(t)&&(0,o.k)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},83044:function(t,e,i){"use strict";i.d(e,{y:function(){return n}});var o=i(69052);function n(t){return Boolean(t&&t instanceof Object&&(0,o.T)(t.constructor)&&("undefined"!=typeof Jodit&&t instanceof Jodit||t.isJodit))}},82201:function(t,e,i){"use strict";i.d(e,{M:function(){return n}});var o=i(98253);const n=t=>(0,o.K)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},71274:function(t,e,i){"use strict";i.d(e,{r:function(){return r}});var o=i(17352),n=i(55186);function r(t){return n.J.isNode(t)&&n.J.isTag(t,"span")&&t.hasAttribute("data-"+o.MARKER_CLASS)}},34796:function(t,e,i){"use strict";function o(t){return Boolean(t)&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(t)))}i.d(e,{a:function(){return o}})},2461:function(t,e,i){"use strict";function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}i.d(e,{E:function(){return o}})},12461:function(t,e,i){"use strict";i.d(e,{k:function(){return n}});var o=i(98253);function n(t){if((0,o.K)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},25376:function(t,e,i){"use strict";i.d(e,{Q:function(){return n}});var o=i(76776);function n(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.l)(t)||t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},92039:function(t,e,i){"use strict";function o(t){return t&&"function"==typeof t.then}i.d(e,{y:function(){return o}})},53470:function(t,e,i){"use strict";i.d(e,{v:function(){return n}});var o=i(69052);function n(t){return Boolean(t)&&(0,o.T)(t.has)&&(0,o.T)(t.add)&&(0,o.T)(t.delete)}},98253:function(t,e,i){"use strict";i.d(e,{B:function(){return r},K:function(){return n}});var o=i(37923);function n(t){return"string"==typeof t}function r(t){return(0,o.c)(t)&&n(t[0])}}