jodit 4.8.3 → 4.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +4 -4
  4. package/es2015/jodit.js +15 -14
  5. package/es2015/jodit.min.js +4 -4
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.fat.min.js +4 -4
  13. package/es2018/jodit.min.js +4 -4
  14. package/es2018/plugins/debug/debug.min.js +1 -1
  15. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  16. package/es2021/jodit.css +1 -1
  17. package/es2021/jodit.fat.min.js +4 -4
  18. package/es2021/jodit.js +15 -14
  19. package/es2021/jodit.min.js +4 -4
  20. package/es2021/plugins/debug/debug.css +1 -1
  21. package/es2021/plugins/debug/debug.js +1 -1
  22. package/es2021/plugins/debug/debug.min.js +1 -1
  23. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  25. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  26. package/es2021.en/jodit.css +1 -1
  27. package/es2021.en/jodit.fat.min.js +4 -4
  28. package/es2021.en/jodit.js +15 -14
  29. package/es2021.en/jodit.min.js +4 -4
  30. package/es2021.en/plugins/debug/debug.css +1 -1
  31. package/es2021.en/plugins/debug/debug.js +1 -1
  32. package/es2021.en/plugins/debug/debug.min.js +1 -1
  33. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  36. package/es5/jodit.css +2 -2
  37. package/es5/jodit.fat.min.js +2 -2
  38. package/es5/jodit.js +18 -14
  39. package/es5/jodit.min.css +2 -2
  40. package/es5/jodit.min.js +2 -2
  41. package/es5/plugins/debug/debug.css +1 -1
  42. package/es5/plugins/debug/debug.js +1 -1
  43. package/es5/plugins/debug/debug.min.js +1 -1
  44. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  47. package/es5/polyfills.fat.min.js +1 -1
  48. package/es5/polyfills.js +1 -1
  49. package/es5/polyfills.min.js +1 -1
  50. package/esm/core/constants.js +1 -1
  51. package/esm/modules/toolbar/collection/collection.js +3 -2
  52. package/esm/plugins/size/size.d.ts +1 -0
  53. package/esm/plugins/size/size.js +4 -1
  54. package/esm/plugins/source/editor/engines/ace.js +8 -10
  55. package/esm/plugins/source/editor/engines/area.js +1 -1
  56. package/package.json +1 -1
  57. package/types/plugins/size/size.d.ts +1 -0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.8.3
4
+ * Version: v4.8.4
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -183,7 +183,7 @@
183
183
  body {
184
184
  -webkit-print-color-adjust: exact;
185
185
  }
186
- }`,o.document.head.appendChild(e),o.focus(),o.print()}},mode:o.MODE_SOURCE+o.MODE_WYSIWYG,tooltip:"Print"},n.pluginSystem.add("print",function(t){t.registerButton({name:"print"})})},41324:function(e){"use strict";e.exports=t},41360:function(t,e,i){"use strict";i.d(e,{nonenumerable:function(){return o}});let 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})}})}},42259:function(t,e,i){"use strict";i.d(e,{cursorInTheEdgeOfString:function(){return r},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return n.moveNodeInsideStart}});var o=i(81937),s=i(23211),n=i(89817);function r(t,e,i,s){let n=t.nodeValue?.length?t.nodeValue:"";if(s&&n.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>e)return!0;let r=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(n);return i&&(r&&r[0].length<e||!r&&e>0)}function a(t,e,i,o,n,r){if((t=e.startContainer.childNodes[e.startOffset])||(t=e.startContainer.childNodes[e.startOffset-1],i=!0),t&&o&&!s.Dom.isText(t)){if(!i&&s.Dom.isText(t.previousSibling))t=t.previousSibling;else if(n){let e=r(t);for(;e;){if(e&&s.Dom.isText(e)){t=e;break}e=r(e)}}}if(t&&!o&&!s.Dom.isText(t)){let e=t,i=t;do e=e.firstChild,i=i.lastChild;while(e&&i&&!s.Dom.isText(e))e===i&&e&&s.Dom.isText(e)&&(t=e)}return{node:t,rightMode:i}}i(7470)},42360:function(t,e,i){"use strict";var o=i(27795),s=i(29434),n=i(5266),r=i(67176),a=i.n(r),l=i(14017),c=i.n(l),u=i(11917);s.Icon.set("indent",a()).set("outdent",c()),n.Config.prototype.controls.indent={tooltip:"Increase Indent"},n.Config.prototype.controls.outdent={isDisabled(t){let e=t.s.current();if(e){let i=o.Dom.closest(e,o.Dom.isBlock,t.editor);if(i){let e=(0,u.getKey)(t.o.direction,i);return!i.style[e]||0>=parseInt(i.style[e],10)}}return!0},tooltip:"Decrease Indent"},n.Config.prototype.indentMargin=10},42462:function(t,e,i){"use strict";var o=i(28077),s=i(65946);i(8071),o.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let e=(e,i,o)=>{let n=(0,s.normalizeColor)(o);switch(e){case"background":t.s.commitStyle({attributes:{style:{backgroundColor:n||""}}});break;case"forecolor":t.s.commitStyle({attributes:{style:{color:n||""}}})}return t.synchronizeValues(),!1};t.registerCommand("forecolor",e).registerCommand("background",e)})},42573:function(t,e,i){"use strict";i.d(e,{ToolbarCollection:function(){return c}});var o=i(25045),s=i(31635),n=i(84839),r=i(38027),a=i(4099),l=i(4274);class c extends a.UIList{className(){return"ToolbarCollection"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,e=null){return(0,l.makeButton)(this.j,t,e)}makeSelect(t,e=null){return(0,l.makeSelect)(this.j,t,e)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,r.error)("The method is not implemented for this class.")}build(t,e=null){let i=this.j.e.fire("beforeToolbarBuild",t);return i&&(t=i),super.build(t,e),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(t){super(t),(0,o._)(this,"__listenEvents","updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur")}}(0,s.__decorate)([n.autobind],c.prototype,"__immediateUpdate",null),(0,s.__decorate)([(0,n.debounce)(t=>t.j.defaultTimeout,!0)],c.prototype,"update",null),(0,s.__decorate)([(0,n.hook)("ready")],c.prototype,"__initEvents",null),c=(0,s.__decorate)([n.component],c)},42766:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(28077),a=i(65946),l=i(60936);i(10685);let c="addnewline";class u extends l.Plugin{__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}onLock(t){t&&this.__isShown&&this.__hideForce()}__hide(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(t){t.o.addNewLine&&(t.e.on(this.__line,"mousemove",t=>{t.stopPropagation()}).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",()=>{this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!0}).on(this.__line,"mouseleave",()=>{this.__lineInFocus=!1}).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}__addEventListeners(){let t=this.j;t.e.off(t.editor,"."+c).off(t.container,"."+c).off("."+c).on([t.ow,t.ew,t.editor],"scroll."+c,this.__hideForce).on("finishedCleanHTMLWorker."+c,this.__hideForce).on(t.editor,"click."+c,this.__hide).on(t.container,"mouseleave."+c,this.__hide).on(t.editor,"mousemove."+c,this.__onMouseMove)}onDblClickEditor(t){let e=this.j;if(!e.o.readonly&&e.o.addNewLineOnDBLClick&&t.target===e.editor&&e.s.isCollapsed()){let i=(0,a.offset)(e.editor,e,e.ed),o=t.pageY-e.ew.scrollX,s=e.createInside.element(e.o.enter);Math.abs(o-i.top)<Math.abs(o-(i.height+i.top))&&e.editor.firstChild?e.editor.insertBefore(s,e.editor.firstChild):e.editor.appendChild(s),e.s.setCursorIn(s),e.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__onMouseMove(t){let e=this.j,i=e.ed.elementFromPoint(t.clientX,t.clientY);if(!l.Dom.isHTMLElement(i)||!l.Dom.isOrContains(e.editor,i))return;if(e.editor===i||this.__isMatchedTag(i)||(i=l.Dom.closest(i,this.__isMatchedTag,e.editor)),!i)return void this.__hide();if(this.__isMatchedTag(i)){let t=l.Dom.up(i,l.Dom.isBlock,e.editor);t&&t!==e.editor&&(i=t)}let o=(0,a.position)(i,this.j),s=!1,{clientY:n,clientX:r}=t;if(this.j.iframe){let{top:t,left:e}=(0,a.position)(this.j.iframe,this.j,!0);n+=t,r+=e}let c=this.j.o.addNewLineDeltaShow;Math.abs(n-o.top)<=c?(s=o.top,this.__isBeforeContent=!0):Math.abs(n-(o.top+o.height))<=c&&(s=o.top+o.height,this.__isBeforeContent=!1);let u=e.editor===i;!1===s||(!u||this.__isBeforeContent)&&(u||(0,a.call)(this.__isBeforeContent?l.Dom.prev:l.Dom.next,i,this.__canGetFocus,e.editor))?(this.__current=!1,this.__hide()):(this.__line.style.top=s+"px",this.__current=i,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",r-o.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),l.Dom.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+c).off(this.j.container,"."+c).off("."+c)}constructor(...t){super(...t),(0,o._)(this,"__line",this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${l.Icon.get("enter")}</span></div>`)),(0,o._)(this,"__isMatchedTag",t=>!!(t&&this.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase()))),(0,o._)(this,"__timeout",void 0),(0,o._)(this,"__isBeforeContent",!1),(0,o._)(this,"__current",void 0),(0,o._)(this,"__lineInFocus",!1),(0,o._)(this,"__isShown",!1),(0,o._)(this,"__hideForce",()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,l.Dom.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))}),(0,o._)(this,"__canGetFocus",t=>null!=t&&l.Dom.isBlock(t)&&!/^(img|table|iframe|hr)$/i.test(t.nodeName)),(0,o._)(this,"__onClickLine",t=>{let e=this.j,i=e.createInside.element(e.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===e.editor?l.Dom.prepend(e.editor,i):this.__current.parentNode.insertBefore(i,this.__current):e.editor.appendChild(i),e.s.setCursorIn(i),(0,a.scrollIntoViewIfNeeded)(i,e.editor,e.ed),e.synchronizeValues(),this.__hideForce(),t.preventDefault()})}}(0,s.__decorate)([(0,n.watch)(":lock")],u.prototype,"onLock",null),(0,s.__decorate)([n.autobind],u.prototype,"__hide",null),(0,s.__decorate)([(0,n.watch)(":dblclick")],u.prototype,"onDblClickEditor",null),(0,s.__decorate)([(0,n.throttle)(t=>t.defaultTimeout)],u.prototype,"__onMouseMove",null),r.pluginSystem.add("addNewLine",u)},42820:function(t,e,i){"use strict";i.d(e,{LimitedStack:function(){return s}});var o=i(25045);class s{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){(0,o._)(this,"limit",void 0),(0,o._)(this,"stack",void 0),this.limit=t,this.stack=[]}}},43102:function(t,e,i){"use strict";var o,s=i(25045),n=i(31635),r=i(84839),a=i(27795),l=i(28077),c=i(65946),u=i(91206);i(65701);var h=((o=h||{})[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING",o);class d extends u.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,c.splitArray)(this.j.o.draggableTags).filter(Boolean).map(t=>t.toLowerCase()):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>0)return;let e=t.target;if(!this.dragList.length||!e)return;let i=t=>!!(t&&this.dragList.includes(t.nodeName.toLowerCase())),o=a.Dom.furthest(e,i,this.j.editor)||(i(e)?e:null);o&&(a.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,c.ctrlKey)(t),this.draggable=o.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",o),this.state=1,this.addDragListeners())}onDrag(t){if(!this.draggable||0===this.state)return;let e=t.clientX,i=t.clientY;if(!(1===this.state&&Math.sqrt(Math.pow(e-this.startX,2)+Math.pow(i-this.startY,2))<this.diffStep)){if(1===this.state&&(this.j.lock("drag-and-drop-element"),this.state=2),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let e=(0,c.dataBind)(this.draggable,"target");(0,c.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:e?.offsetWidth??100,height:e?.offsetHeight??100}),(0,l.getContainer)(this.j,d).appendChild(this.draggable)}(0,c.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=0,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<2)return void this.onDragEnd();let t=(0,c.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));let{parentElement:e}=t;this.j.s.insertNode(t,!0,!1),e&&a.Dom.isEmpty(e)&&!a.Dom.isCell(e)&&a.Dom.safeRemove(e),a.Dom.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}constructor(...t){super(...t),(0,s._)(this,"dragList",[]),(0,s._)(this,"draggable",null),(0,s._)(this,"isCopyMode",!1),(0,s._)(this,"diffStep",10),(0,s._)(this,"startX",0),(0,s._)(this,"startY",0),(0,s._)(this,"state",0)}}(0,n.__decorate)([r.autobind],d.prototype,"onDragStart",null),(0,n.__decorate)([(0,r.throttle)(t=>t.defaultTimeout/10)],d.prototype,"onDrag",null),(0,n.__decorate)([r.autobind],d.prototype,"onDragEnd",null),(0,n.__decorate)([r.autobind],d.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",d)},43218:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>'},43219:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},no:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},43271:function(t,e,i){"use strict";i.d(e,{ImageEditor:function(){return m},openImageEditor:function(){return g}});var o=i(25045),s=i(31635),n=i(16964),r=i(84839),a=i(27795),l=i(65946),c=i(59400),u=i(5266);i(54500);var h=i(8908);let d="jodit-image-editor",p="resize",f="crop";class m extends n.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(t,e){return this.j.async.promise(i=>{let o=new Date().getTime();this.image=this.j.c.element("img"),(0,l.$$)("img,.jodit-icon_loader",this.resize_box).forEach(a.Dom.safeRemove),(0,l.$$)("img,.jodit-icon_loader",this.crop_box).forEach(a.Dom.safeRemove),(0,l.css)(this.cropHandler,"background","transparent"),this.onSave=e,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(t)?t+="&_tst="+o:t+="?_tst="+o,this.image.setAttribute("src",t),this._dialog.open();let{widthInput:s,heightInput:n}=(0,l.refs)(this.editor),r=()=>{this.isDestructed||(this.image.removeEventListener("load",r),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,s.value=this.naturalWidth.toString(),n.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),a.Dom.safeRemove.apply(null,(0,l.$$)(".jodit-icon_loader",this.editor)),this.activeTab===f&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),i(this._dialog))};this.image.addEventListener("load",r),this.image.complete&&r()})}onTitleModeClick(t){let e=t.target,i=e?.parentElement;if(!i)return;(0,l.$$)(`.${d}__slider,.${d}__area`,this.editor).forEach(t=>t.classList.remove(`${d}_active`)),i.classList.add(`${d}_active`),this.activeTab=(0,l.attr)(i,"-area")||p;let o=this.editor.querySelector(`.${d}__area.${d}__area_`+this.activeTab);o&&o.classList.add(`${d}_active`),this.activeTab===f&&this.showCrop()}onChangeSizeInput(t){let e,i=t.target,{widthInput:o,heightInput:s}=(0,l.refs)(this.editor),n="widthInput"===(0,l.attr)(i,"data-ref"),r=parseInt(i.value,10),a=n?this.o.min_width:this.o.min_height,c=n?this.o.min_height:this.o.min_width;r>a&&((0,l.css)(this.image,n?"width":"height",r),this.resizeUseRatio&&(e=n?Math.round(r/this.ratio):Math.round(r*this.ratio))>c&&((0,l.css)(this.image,n?"height":"width",e),n?s.value=e.toString():o.value=e.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){this.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),this.clicked=!0,this.start_x=t.clientX,this.start_y=t.clientY,this.activeTab===f?(this.top_x=(0,l.css)(this.cropHandler,"left"),this.top_y=(0,l.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(t){this.clicked&&(this.clicked=!1,t.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(t){if(!this.clicked)return;let{widthInput:e,heightInput:i}=(0,l.refs)(this.editor);this.diff_x=t.clientX-this.start_x,this.diff_y=t.clientY-this.start_y,this.activeTab===p&&this.resizeUseRatio||this.activeTab===f&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===p?(this.new_w>this.o.resizeMinWidth&&((0,l.css)(this.image,"width",this.new_w+"px"),e.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,l.css)(this.image,"height",this.new_h+"px"),i.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,l.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,l.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,l.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),a.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+d).off("."+d),super.destruct())}constructor(t){super(t),(0,o._)(this,"options",void 0),(0,o._)(this,"onSave",void 0),(0,o._)(this,"resizeUseRatio",!0),(0,o._)(this,"cropUseRatio",!0),(0,o._)(this,"_dialog",void 0),(0,o._)(this,"image",void 0),(0,o._)(this,"cropImage",void 0),(0,o._)(this,"clicked",!1),(0,o._)(this,"target",void 0),(0,o._)(this,"start_x",0),(0,o._)(this,"start_y",0),(0,o._)(this,"top_x",0),(0,o._)(this,"top_y",0),(0,o._)(this,"width",0),(0,o._)(this,"height",0),(0,o._)(this,"activeTab",p),(0,o._)(this,"naturalWidth",0),(0,o._)(this,"naturalHeight",0),(0,o._)(this,"ratio",0),(0,o._)(this,"new_h",0),(0,o._)(this,"new_w",0),(0,o._)(this,"diff_x",0),(0,o._)(this,"diff_y",0),(0,o._)(this,"buttons",void 0),(0,o._)(this,"editor",void 0),(0,o._)(this,"resize_box",void 0),(0,o._)(this,"crop_box",void 0),(0,o._)(this,"sizes",void 0),(0,o._)(this,"resizeHandler",void 0),(0,o._)(this,"cropHandler",void 0),(0,o._)(this,"cropBox",{x:0,y:0,w:0,h:0}),(0,o._)(this,"resizeBox",{w:0,h:0}),(0,o._)(this,"calcCropBox",()=>{let t=this.crop_box.parentNode,e=.8*t.offsetWidth,i=.8*t.offsetHeight,o=e,s=i,{naturalWidth:n,naturalHeight:r}=this;e>n&&i>r?(o=n,s=r):this.ratio>e/i?(o=e,s=e/n*r):(o=i/r*n,s=i),(0,l.css)(this.crop_box,{width:o,height:s})}),(0,o._)(this,"showCrop",()=>{if(!this.cropImage)return;this.calcCropBox();let t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=m.calcValueByPercent(t,this.o.cropDefaultWidth);let e=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=m.calcValueByPercent(e,this.o.cropDefaultHeight),(0,l.css)(this.cropHandler,{backgroundImage:"url("+(0,l.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:e/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")}),(0,o._)(this,"updateCropBox",()=>{if(!this.cropImage)return;let t=this.cropImage.offsetWidth/this.naturalWidth,e=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,l.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,l.css)(this.cropHandler,"top")/e,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/e,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)}),(0,o._)(this,"updateResizeBox",()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight}),(0,o._)(this,"setHandlers",()=>{let t=this,{widthInput:e,heightInput:i}=(0,l.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],"mousedown."+d,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+d,()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")}),t.j.e.on((0,l.toArray)(this.editor.querySelectorAll(`.${d}__slider-title`)),"click",this.onTitleModeClick).on([e,i],"input",this.onChangeSizeInput);let{keepAspectRatioResize:o,keepAspectRatioCrop:s}=(0,l.refs)(this.editor);o&&o.addEventListener("change",()=>{this.resizeUseRatio=o.checked}),s&&s.addEventListener("change",()=>{this.cropUseRatio=s.checked}),t.j.e.on(t.resizeHandler,"updatesize",()=>{(0,l.css)(t.resizeHandler,{top:0,left:0,width:t.image.offsetWidth||t.naturalWidth,height:t.image.offsetHeight||t.naturalHeight}),this.updateResizeBox()}).on(t.cropHandler,"updatesize",()=>{if(!t.cropImage)return;let e=(0,l.css)(t.cropHandler,"left"),i=(0,l.css)(t.cropHandler,"top"),o=t.cropHandler.offsetWidth,s=t.cropHandler.offsetHeight;e<0&&(e=0),i<0&&(i=0),e+o>t.cropImage.offsetWidth&&(o=t.cropImage.offsetWidth-e,t.cropUseRatio&&(s=o/t.ratio)),i+s>t.cropImage.offsetHeight&&(s=t.cropImage.offsetHeight-i,t.cropUseRatio&&(o=s*t.ratio)),(0,l.css)(t.cropHandler,{width:o,height:s,left:e,top:i,backgroundPosition:-e-1+"px "+(-i-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()}),Object.values(t.buttons).forEach(o=>{o.onAction(()=>{let s={action:t.activeTab,box:t.activeTab===p?t.resizeBox:t.cropBox};switch(o){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",e=>{if(!(0,l.trim)(e))return t.j.alert("The name should not be empty"),!1;t.onSave(e,s,t.hide,e=>{t.j.alert(e.message)})});break;case t.buttons.save:t.onSave(void 0,s,t.hide,e=>{t.j.alert(e.message)});break;case t.buttons.reset:t.activeTab===p?((0,l.css)(t.image,{width:null,height:null}),e.value=t.naturalWidth.toString(),i.value=t.naturalHeight.toString(),t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}})})}),this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:u.Config.defaultOptions.imageeditor;const e=this.options;this.resizeUseRatio=e.resizeUseRatio,this.cropUseRatio=e.cropUseRatio,this.buttons={reset:(0,c.Button)(this.j,"update","Reset"),save:(0,c.Button)(this.j,"save","Save"),saveas:(0,c.Button)(this.j,"save","Save as ...")},this.activeTab=e.resize?p:f,this.editor=(0,h.form)(this.j,this.options);const{resizeBox:i,cropBox:s}=(0,l.refs)(this.editor);this.resize_box=i,this.crop_box=s,this.sizes=this.editor.querySelector(`.${d}__area.${d}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${d}__resizer`),this.cropHandler=this.editor.querySelector(`.${d}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}}function g(t,e,i,o,s,n){return this.getInstance("ImageEditor",this.o).open(t,(t,r,a,c)=>(0,l.call)("resize"===r.action?this.dataProvider.resize:this.dataProvider.crop,i,o,e,t,r.box).then(t=>{t&&(a(),s&&s())}).catch(t=>{c(t),n&&n(t)}))}(0,o._)(m,"calcValueByPercent",(t,e)=>{let i,o=e.toString(),s=parseFloat(t.toString());return(i=/^[-+]?[0-9]+(px)?$/.exec(o))?parseInt(o,10):(i=/^([-+]?[0-9.]+)%$/.exec(o))?Math.round(s*(parseFloat(i[1])/100)):s||0}),(0,s.__decorate)([r.autobind],m.prototype,"hide",null),(0,s.__decorate)([r.autobind],m.prototype,"open",null),(0,s.__decorate)([r.autobind],m.prototype,"onTitleModeClick",null),(0,s.__decorate)([(0,r.debounce)(),r.autobind],m.prototype,"onChangeSizeInput",null),(0,s.__decorate)([r.autobind],m.prototype,"onResizeHandleMouseDown",null),(0,s.__decorate)([r.autobind],m.prototype,"onGlobalMouseUp",null),(0,s.__decorate)([(0,r.throttle)(10)],m.prototype,"onGlobalMouseMove",null),m=(0,s.__decorate)([r.component],m)},43354:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(51676),r=i(28077),a=i(65946);i(81008);class l{init(t){this.buttons?.forEach(e=>t.registerButton(e)),t.e.off(`copy.${s.CLIPBOARD_ID} cut.${s.CLIPBOARD_ID}`).on(`copy.${s.CLIPBOARD_ID} cut.${s.CLIPBOARD_ID}`,e=>{let i=t.s.html,o=(0,a.getDataTransfer)(e)||(0,a.getDataTransfer)(t.ew)||(0,a.getDataTransfer)(e.originalEvent);o&&(o.setData(s.TEXT_PLAIN,(0,a.stripTags)(i)),o.setData(s.TEXT_HTML,i)),t.buffer.set(s.CLIPBOARD_ID,i),t.e.fire("pasteStack",{html:i,action:t.o.defaultActionOnPaste||s.INSERT_AS_HTML}),"cut"===e.type&&(t.s.remove(),t.s.focus()),e.preventDefault(),t?.events?.fire("afterCopy",i)})}destruct(t){(0,n.cached)(t,"buffer")?.set(s.CLIPBOARD_ID,""),t?.events?.off("."+s.CLIPBOARD_ID)}constructor(){(0,o._)(this,"jodit",void 0),(0,o._)(this,"buttons",[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}])}}r.pluginSystem.add("clipboard",l)},43379:function(t,e,i){"use strict";i.d(e,{reset:function(){return a}});var o=i(81937),s=i(91565),n=i(89308);let r={};function a(t){if(!(t in r)){let e=o.globalDocument.createElement("iframe");try{if(e.src="about:blank",o.globalDocument.body.appendChild(e),!e.contentWindow)return null;let i=(0,n.get)(t,e.contentWindow),a=(0,n.get)(t.split(".").slice(0,-1).join("."),e.contentWindow);(0,s.isFunction)(i)&&(r[t]=i.bind(a))}catch(t){if(!o.IS_PROD)throw t}finally{e.parentNode?.removeChild(e)}}return r[t]??null}},44322:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(28077),a=i(72412),l=i(80991),c=i(18855);i(80202);class u extends c.Plugin{afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__initialize()}__initialize(){let{j:t}=this;if(t.o.inline)return;let{height:e}=t.o;if(t.o.saveHeightInStorage&&"auto"!==e){let i=t.storage.get("height");i&&(e=i)}(0,l.css)(t.editor,{minHeight:"100%"}),(0,l.css)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(e),this.__setWidth(t.o.width))}__setHeight(t){let{clientHeight:e,clientWidth:i}=this.j.container;if((0,a.isNumber)(t)){let{minHeight:e,maxHeight:i}=this.j.o;(0,a.isNumber)(e)&&e>t&&(t=e),(0,a.isNumber)(i)&&i<t&&(t=i)}(0,l.css)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd({clientHeight:e,clientWidth:i})}__setWidth(t){let{clientHeight:e,clientWidth:i}=this.j.container;if((0,a.isNumber)(t)){let{minWidth:e,maxWidth:i}=this.j.o;(0,a.isNumber)(e)&&e>t&&(t=e),(0,a.isNumber)(i)&&t>i&&(t=i)}(0,l.css)(this.j.container,"width",t),this.__resizeWorkspaceImd({clientHeight:e,clientWidth:i})}__getNotWorkHeight(){return(this.j.toolbarContainer?.offsetHeight||0)+(this.j.statusbar?.getHeight()||0)+2}__resizeWorkspaceImd({clientHeight:t,clientWidth:e}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,l.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,a.isNumber)(i)&&i>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,l.css)(t,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,a.isNumber)(this.j.o.maxHeight)){let t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,l.css)(e,"maxHeight",t)}),this.j.e.fire("setMaxHeight",t)}if(this.j.container){let t="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,l.css)(this.j.workplace,"height",t),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,a.isNumber)(t)?t+"px":t)}let{clientHeight:o,clientWidth:s}=this.j.container;(t!==o||e!==s)&&this.j.e.fire(this.j,"resize")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(...t){super(...t),(0,o._)(this,"__resizeWorkspaces",this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0))}}(0,s.__decorate)([(0,n.throttle)()],u.prototype,"__initialize",null),(0,s.__decorate)([n.autobind],u.prototype,"__setHeight",null),(0,s.__decorate)([n.autobind],u.prototype,"__setWidth",null),(0,s.__decorate)([n.autobind],u.prototype,"__resizeWorkspaceImd",null),r.pluginSystem.add("size",u)},44599:function(t,e,i){"use strict";i.r(e),i.d(e,{en:function(){return o},es:function(){return s}});var o=i(17918),s=i(41324)},44636:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>'},44998:function(t,e,i){"use strict";i.d(e,{isLicense:function(){return s}});var o=i(85932);let s=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},45062:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>'},45219:function(t,e,i){"use strict";i.d(e,{visitNodeWalker:function(){return r}});var o=i(81937),s=i(91560);let n=Object.keys(s);function r(t,e,i,r,a){let l=!1,c=t.o.cleanHTML.disableCleanFilter;for(let u of n)if(!(c&&c.has(u))&&(l=(0,s[u])(t,e,l,i,r,a),o.IS_PROD,!e.isConnected))return!0;return l}},45244:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>'},45512:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>'},45664:function(t,e,i){"use strict";i.d(e,{asArray:function(){return o.asArray},splitArray:function(){return s.splitArray},toArray:function(){return n.toArray}});var o=i(78982),s=i(32328),n=i(88475)},45674:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg>'},45778:function(t,e,i){"use strict";i.d(e,{formTemplate:function(){return n}});var o=i(59400),s=i(5658);let n=t=>{let{openInNewTabCheckbox:e,noFollowCheckbox:i,modeClassName:n,selectSizeClassName:r,selectMultipleClassName:a,selectOptionsClassName:l}=t.o.link;return new s.UIForm(t,[new s.UIBlock(t,[new s.UIInput(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new s.UIBlock(t,[new s.UIInput(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),n?new s.UIBlock(t,["input"===n?new s.UIInput(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===n?new s.UISelect(t,{name:"className",ref:"className_select",label:"Class name",size:r,multiple:a,options:l}):null]):null,e?new s.UICheckbox(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new s.UICheckbox(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new s.UIBlock(t,[new o.UIButton(t,{name:"unlink",variant:"default",text:"Unlink"}),new o.UIButton(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},45844:function(t,e,i){"use strict";i.d(e,{TextAreaEditor:function(){return a}});var o=i(25045),s=i(23211),n=i(80991),r=i(94193);class a extends r.SourceEditor{init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===t.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),t.e.on(this.instance,"mousedown keydown touchstart input",t.async.debounce(this.toWYSIWYG,t.defaultTimeout)).on("setMinHeight.source",t=>{(0,n.css)(this.instance,"minHeight",t)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",e=>{t.e.fire(e.type,e)}),this.autosize(),this.onReady()}destruct(){s.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){let e=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),o=this.getSelectionEnd();this.setValue(e.substring(0,i)+t+e.substring(o,e.length))}else this.setValue(e+t)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,e=t){this.instance.setSelectionRange(t,e)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){this.instance.setAttribute("placeholder",t)}setReadOnly(t){t?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){let{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",e=>{if((e.ctrlKey||e.metaKey)&&"z"===e.key)return e.shiftKey?t.redo():t.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(...t){super(...t),(0,o._)(this,"autosize",this.j.async.debounce(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout))}}},46248:function(t,e,i){"use strict";i.d(e,{isHTML:function(){return s}});var o=i(85932);let s=t=>(0,o.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},46303:function(t,e,i){"use strict";i.d(e,{splitFragment:function(){return r}});var o=i(23211),s=i(60898),n=i(65710);function r(t,e,i){let r=e.s,{enter:a}=e.o,l=a.toLowerCase(),c=o.Dom.isLeaf(i),u=i.tagName.toLowerCase()===l||c,h=r.cursorOnTheRight(i,t),d=r.cursorOnTheLeft(i,t);if(!u&&(h||d)){h?o.Dom.after(i,t):o.Dom.before(i,t),(0,n.insertParagraph)(t,e,l),d&&!h&&o.Dom.prepend(i,t);return}let p=r.splitSelection(i,t);(0,s.scrollIntoViewIfNeeded)(p,e.editor,e.ed)}},46363:function(t,e,i){"use strict";i.d(e,{Snapshot:function(){return a}});var o=i(25045),s=i(16964),n=i(81937),r=i(23211);class a extends s.ViewComponent{className(){return"Snapshot"}static equal(t,e){return t.html===e.html&&JSON.stringify(t.range)===JSON.stringify(e.range)}static countNodesBeforeInParent(t){if(!t.parentNode)return 0;let e=t.parentNode.childNodes,i=0,o=null;for(let s=0;s<e.length;s+=1){if(!o||this.isIgnoredNode(e[s])||r.Dom.isText(o)&&r.Dom.isText(e[s])||(i+=1),e[s]===t)return i;o=e[s]}return 0}static strokeOffset(t,e){for(;r.Dom.isText(t);)t=t.previousSibling,r.Dom.isText(t)&&t.nodeValue&&(e+=t.nodeValue.length);return e}calcHierarchyLadder(t){let e=[];if(!t||!t.parentNode||!r.Dom.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!a.isIgnoredNode(t)&&e.push(a.countNodesBeforeInParent(t)),t=t.parentNode;return e.reverse()}getElementByLadder(t){let e=this.j.editor,i;for(i=0;e&&i<t.length;i+=1)e=e.childNodes[t[i]];return e}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0),this.__levelOfTransaction+=1;try{t()}catch(t){if(!n.IS_PROD)throw t}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.__getCleanedEditorValue(this.j.editor);let e=this.j.s.sel;if(e&&e.rangeCount){let i=e.getRangeAt(0),o=this.calcHierarchyLadder(i.startContainer),s=this.calcHierarchyLadder(i.endContainer),n=a.strokeOffset(i.startContainer,i.startOffset),r=a.strokeOffset(i.endContainer,i.endOffset);o.length||i.startContainer===this.j.editor||(n=0),s.length||i.endContainer===this.j.editor||(r=0),t.range={startContainer:o,startOffset:n,endContainer:s,endOffset:r}}return t}restore(t){this.transaction(()=>{let e=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(e)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){let{j:e}=this,{ow:i}=e;i.scrollTo(i.scrollX,t[0]),e.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){let e=this.j.ed.createRange();e.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),e.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(e)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),n.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return r.Dom.isText(t)&&!t.nodeValue||r.Dom.isTemporary(t)}__getCleanedEditorValue(t){let e=t.cloneNode(!0);return r.Dom.temporaryList(e).forEach(r.Dom.unwrap),e.innerHTML}constructor(...t){super(...t),(0,o._)(this,"__isBlocked",!1),(0,o._)(this,"__levelOfTransaction",0)}}},46533:function(t,e,i){"use strict";i.d(e,{sendFiles:function(){return n}});var o=i(65946),s=i(77911);function n(t,e,i,n,r){if(!e)return Promise.reject((0,o.error)("Need files"));let{o:a}=t,l=(0,o.toArray)(e);if(!l.length)return Promise.reject((0,o.error)("Need files"));let c=[];if(a.insertImageAsBase64URI&&function(t,e,i,s,n,r){let a,l;for(l=0;l<t.length;l+=1)if((a=t[l])&&a.type){let c=a.type.match(/\/([a-z0-9]+)/i),u=c[1]?c[1].toLowerCase():"";if(!e.includes(u))continue;let h=new FileReader;i.push(s.j.async.promise((t,e)=>{h.onerror=e,h.onloadend=()=>{let e={baseurl:"",files:[h.result],isImages:[!0]};((0,o.isFunction)(n)?n:r).call(s,e),t(e)},h.readAsDataURL(a)})),t[l]=null}}(l,a.imagesExtensions,c,t,i,a.defaultHandlerSuccess),(l=l.filter(t=>t)).length){let e,u=new FormData;u.append(a.pathVariableName,t.path),u.append("source",t.source);for(let i=0;i<l.length;i+=1)if(e=l[i]){let o=/\.\w+$/.test(e.name),s=e.type.match(/\/([a-z0-9]+)/i),n=s&&s[1]?s[1].toLowerCase():"",r=l[i].name||Math.random().toString().replace(".","");if(!o&&n){let t=n;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(r)||(r+="."+n)}let[c,h,d]=a.processFileName.call(t,a.filesVariableName(i),l[i],r);u.append(c,h,d)}r&&r(u),a.data&&(0,o.isPlainObject)(a.data)&&Object.keys(a.data).forEach(t=>{u.append(t,a.data[t])}),a.prepareData.call(t,u),c.push((0,s.send)(t,u).then(e=>(a.isSuccess.call(t,e)?((0,o.isFunction)(i)?i:a.defaultHandlerSuccess).call(t,a.process.call(t,e)):((0,o.isFunction)(n)?n:a.defaultHandlerError).call(t,(0,o.error)(a.getMessage.call(t,e))),e)).then(()=>{t.j.events&&t.j.e.fire("filesWereUploaded")}))}return Promise.all(c)}},47670:function(t,e,i){"use strict";i(5266).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},47744:function(t,e,i){"use strict";i.d(e,{readValuesFromImage:function(){return l}});var o=i(7909),s=i(26633),n=i(79310),r=i(18380),a=i(57339);async function l(t,e){let{sourceImage:i,values:l}=e;return(0,s.readAlign)(i,l),l.borderRadius=parseInt(i.style.borderRadius||"0",10)||0,l.id=(0,o.attr)(i,"id")||"",l.imageTitle=(0,o.attr)(i,"title")||"",l.imageAlt=(0,o.attr)(i,"alt")||"",l.style=(0,o.attr)(i,"style")||"",l.classes=((0,o.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,r.readMargins)(i,l,e),(0,n.readLink)(e,t,l),l.imageSrc=(0,o.attr)(i,"src")||"",(0,a.readSizes)(i,l,e)}},47760:function(t,e,i){"use strict";i.d(e,{alreadyLoadedList:function(){return n},appendScriptAsync:function(){return a},appendStyleAsync:function(){return l},loadNext:function(){return function t(e,i,s=0){return(0,o.isString)(i[s])?a(e,i[s]).then(()=>t(e,i,s+1)):Promise.resolve()}},loadNextStyle:function(){return function t(e,i,s=0){return(0,o.isString)(i[s])?l(e,i[s]).then(()=>t(e,i,s+1)):Promise.resolve()}}});var o=i(85932),s=i(91321);let n=new Map,r=t=>(e,i)=>{if(n.has(i))return n.get(i);let o=t(e,i);return n.set(i,o),o},a=r((t,e)=>t.async.promise((i,o)=>{if(t.isInDestruct)return o();let n=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(e)});t.e.one(n,"error",o).one(n,"load",i),t.od.body.appendChild(n)})),l=r((t,e)=>t.async.promise((i,o)=>{if(t.isInDestruct)return o();let n=t.c.element("link");n.rel="stylesheet",n.media="all",n.crossOrigin="anonymous",t.isInDestruct||t.e.on(n,"load",()=>i(n)).on(n,"error",o),n.href=(0,s.completeUrl)(e),t.o.shadowRoot?t.o.shadowRoot.appendChild(n):t.od.body.appendChild(n)}))},47919:function(t,e,i){"use strict";i.d(e,{moveCursorOutFromSpecialTags:function(){return s}});var o=i(23211);function s(t,e,i){let{s}=t,n=o.Dom.closest(e,i,t.editor);n&&(s.cursorOnTheRight(n,e)?o.Dom.after(n,e):s.cursorOnTheLeft(n,e)&&o.Dom.before(n,e))}},48007:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>'},48009:function(t,e,i){"use strict";i.d(e,{normalizeUrl:function(){return o}});let o=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},48155:function(t,e,i){"use strict";i.d(e,{safeHTML:function(){return n},sanitizeHTMLElement:function(){return r}});var o=i(23211),s=i(93640);function n(t,e){(o.Dom.isElement(t)||o.Dom.isFragment(t))&&(e.removeOnError&&(r(t),(0,s.$$)("[onerror]",t).forEach(t=>r(t,e))),e.safeJavaScriptLink&&(r(t),(0,s.$$)('a[href^="javascript"]',t).forEach(t=>r(t,e))))}function r(t,{safeJavaScriptLink:e,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let n=!1;i&&t.hasAttribute("onerror")&&((0,s.attr)(t,"onerror",null),n=!0);let a=t.getAttribute("href");return e&&a&&0===a.trim().indexOf("javascript")&&((0,s.attr)(t,"href",location.protocol+"//"+a),n=!0),n}},48290:function(t,e,i){"use strict";var o=i(27795),s=i(65946),n=i(93640),r=i(29434),a=i(5266),l=i(67447),c=i.n(l);a.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},r.Icon.set("table",c()),a.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup(t,e,i,r){t.editor.normalize();let a=t.history.snapshot.make(),l=r.control,c=l.data&&l.data.rows?l.data.rows:10,u=l.data&&l.data.cols?l.data.cols:10,h=t.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!t.o.table.useExtraClassesOptions)return"";let e=[];if(l.data){let t=l.data.classList;Object.keys(t).forEach(i=>{e.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${i}" type="checkbox"/>${t[i]}</label>`)})}return e.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),d=h.querySelectorAll("span")[0],p=h.querySelectorAll("span")[1],f=h.querySelector(".jodit-form__container"),m=h.querySelector(".jodit-form__options"),g=[],_=c*u;for(let e=0;e<_;e+=1)g[e]||g.push(t.c.element("span",{dataIndex:e}));if(t.e.on(f,"mousemove",(t,e)=>{let i=t.target;if(!o.Dom.isTag(i,"span"))return;let s=void 0===e||isNaN(e)?parseInt((0,n.attr)(i,"-index")||"0",10):e||0,r=Math.ceil((s+1)/u),a=s%u+1;for(let t=0;t<g.length;t+=1)a>=t%u+1&&r>=Math.ceil((t+1)/u)?g[t].className="jodit_hovered":g[t].className="";p.textContent=a.toString(),d.textContent=r.toString()}).on(f,"touchstart mousedown",e=>{let r=e.target;if(e.preventDefault(),e.stopImmediatePropagation(),!o.Dom.isTag(r,"span"))return;let l=parseInt((0,n.attr)(r,"-index")||"0",10),c=Math.ceil((l+1)/u),h=l%u+1,d=t.createInside,p=d.element("tbody"),f=d.element("table");f.appendChild(p);let g=null,_,v;for(let t=1;c>=t;t+=1){_=d.element("tr");for(let t=1;t<=h;t+=1)v=d.element("td"),g||(g=v),(0,s.css)(v,"width",(100/h).toFixed(4)+"%"),v.appendChild(d.element("br")),_.appendChild(d.text(`
186
+ }`,o.document.head.appendChild(e),o.focus(),o.print()}},mode:o.MODE_SOURCE+o.MODE_WYSIWYG,tooltip:"Print"},n.pluginSystem.add("print",function(t){t.registerButton({name:"print"})})},41324:function(e){"use strict";e.exports=t},41360:function(t,e,i){"use strict";i.d(e,{nonenumerable:function(){return o}});let 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})}})}},42259:function(t,e,i){"use strict";i.d(e,{cursorInTheEdgeOfString:function(){return r},findCorrectCurrentNode:function(){return a},moveNodeInsideStart:function(){return n.moveNodeInsideStart}});var o=i(81937),s=i(23211),n=i(89817);function r(t,e,i,s){let n=t.nodeValue?.length?t.nodeValue:"";if(s&&n.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>e)return!0;let r=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(n);return i&&(r&&r[0].length<e||!r&&e>0)}function a(t,e,i,o,n,r){if((t=e.startContainer.childNodes[e.startOffset])||(t=e.startContainer.childNodes[e.startOffset-1],i=!0),t&&o&&!s.Dom.isText(t)){if(!i&&s.Dom.isText(t.previousSibling))t=t.previousSibling;else if(n){let e=r(t);for(;e;){if(e&&s.Dom.isText(e)){t=e;break}e=r(e)}}}if(t&&!o&&!s.Dom.isText(t)){let e=t,i=t;do e=e.firstChild,i=i.lastChild;while(e&&i&&!s.Dom.isText(e))e===i&&e&&s.Dom.isText(e)&&(t=e)}return{node:t,rightMode:i}}i(7470)},42360:function(t,e,i){"use strict";var o=i(27795),s=i(29434),n=i(5266),r=i(67176),a=i.n(r),l=i(14017),c=i.n(l),u=i(11917);s.Icon.set("indent",a()).set("outdent",c()),n.Config.prototype.controls.indent={tooltip:"Increase Indent"},n.Config.prototype.controls.outdent={isDisabled(t){let e=t.s.current();if(e){let i=o.Dom.closest(e,o.Dom.isBlock,t.editor);if(i){let e=(0,u.getKey)(t.o.direction,i);return!i.style[e]||0>=parseInt(i.style[e],10)}}return!0},tooltip:"Decrease Indent"},n.Config.prototype.indentMargin=10},42462:function(t,e,i){"use strict";var o=i(28077),s=i(65946);i(8071),o.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let e=(e,i,o)=>{let n=(0,s.normalizeColor)(o);switch(e){case"background":t.s.commitStyle({attributes:{style:{backgroundColor:n||""}}});break;case"forecolor":t.s.commitStyle({attributes:{style:{color:n||""}}})}return t.synchronizeValues(),!1};t.registerCommand("forecolor",e).registerCommand("background",e)})},42573:function(t,e,i){"use strict";i.d(e,{ToolbarCollection:function(){return c}});var o=i(25045),s=i(31635),n=i(84839),r=i(38027),a=i(4099),l=i(4274);class c extends a.UIList{className(){return"ToolbarCollection"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,e=null){return(0,l.makeButton)(this.j,t,e)}makeSelect(t,e=null){return(0,l.makeSelect)(this.j,t,e)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,r.error)("The method is not implemented for this class.")}build(t,e=null){let i=this.j.e.fire("beforeToolbarBuild",t);return i&&(t=i),super.build(t,e),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(t){super(t),(0,o._)(this,"__listenEvents","updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur")}}(0,s.__decorate)([(0,n.watch)(":afterInit"),n.autobind],c.prototype,"__immediateUpdate",null),(0,s.__decorate)([(0,n.debounce)(t=>t.j.defaultTimeout,!0)],c.prototype,"update",null),(0,s.__decorate)([(0,n.hook)("ready")],c.prototype,"__initEvents",null),c=(0,s.__decorate)([n.component],c)},42766:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(28077),a=i(65946),l=i(60936);i(10685);let c="addnewline";class u extends l.Plugin{__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}onLock(t){t&&this.__isShown&&this.__hideForce()}__hide(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(t){t.o.addNewLine&&(t.e.on(this.__line,"mousemove",t=>{t.stopPropagation()}).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",()=>{this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!0}).on(this.__line,"mouseleave",()=>{this.__lineInFocus=!1}).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}__addEventListeners(){let t=this.j;t.e.off(t.editor,"."+c).off(t.container,"."+c).off("."+c).on([t.ow,t.ew,t.editor],"scroll."+c,this.__hideForce).on("finishedCleanHTMLWorker."+c,this.__hideForce).on(t.editor,"click."+c,this.__hide).on(t.container,"mouseleave."+c,this.__hide).on(t.editor,"mousemove."+c,this.__onMouseMove)}onDblClickEditor(t){let e=this.j;if(!e.o.readonly&&e.o.addNewLineOnDBLClick&&t.target===e.editor&&e.s.isCollapsed()){let i=(0,a.offset)(e.editor,e,e.ed),o=t.pageY-e.ew.scrollX,s=e.createInside.element(e.o.enter);Math.abs(o-i.top)<Math.abs(o-(i.height+i.top))&&e.editor.firstChild?e.editor.insertBefore(s,e.editor.firstChild):e.editor.appendChild(s),e.s.setCursorIn(s),e.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__onMouseMove(t){let e=this.j,i=e.ed.elementFromPoint(t.clientX,t.clientY);if(!l.Dom.isHTMLElement(i)||!l.Dom.isOrContains(e.editor,i))return;if(e.editor===i||this.__isMatchedTag(i)||(i=l.Dom.closest(i,this.__isMatchedTag,e.editor)),!i)return void this.__hide();if(this.__isMatchedTag(i)){let t=l.Dom.up(i,l.Dom.isBlock,e.editor);t&&t!==e.editor&&(i=t)}let o=(0,a.position)(i,this.j),s=!1,{clientY:n,clientX:r}=t;if(this.j.iframe){let{top:t,left:e}=(0,a.position)(this.j.iframe,this.j,!0);n+=t,r+=e}let c=this.j.o.addNewLineDeltaShow;Math.abs(n-o.top)<=c?(s=o.top,this.__isBeforeContent=!0):Math.abs(n-(o.top+o.height))<=c&&(s=o.top+o.height,this.__isBeforeContent=!1);let u=e.editor===i;!1===s||(!u||this.__isBeforeContent)&&(u||(0,a.call)(this.__isBeforeContent?l.Dom.prev:l.Dom.next,i,this.__canGetFocus,e.editor))?(this.__current=!1,this.__hide()):(this.__line.style.top=s+"px",this.__current=i,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",r-o.left-10+"px"))}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),l.Dom.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+c).off(this.j.container,"."+c).off("."+c)}constructor(...t){super(...t),(0,o._)(this,"__line",this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${l.Icon.get("enter")}</span></div>`)),(0,o._)(this,"__isMatchedTag",t=>!!(t&&this.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase()))),(0,o._)(this,"__timeout",void 0),(0,o._)(this,"__isBeforeContent",!1),(0,o._)(this,"__current",void 0),(0,o._)(this,"__lineInFocus",!1),(0,o._)(this,"__isShown",!1),(0,o._)(this,"__hideForce",()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,l.Dom.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))}),(0,o._)(this,"__canGetFocus",t=>null!=t&&l.Dom.isBlock(t)&&!/^(img|table|iframe|hr)$/i.test(t.nodeName)),(0,o._)(this,"__onClickLine",t=>{let e=this.j,i=e.createInside.element(e.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===e.editor?l.Dom.prepend(e.editor,i):this.__current.parentNode.insertBefore(i,this.__current):e.editor.appendChild(i),e.s.setCursorIn(i),(0,a.scrollIntoViewIfNeeded)(i,e.editor,e.ed),e.synchronizeValues(),this.__hideForce(),t.preventDefault()})}}(0,s.__decorate)([(0,n.watch)(":lock")],u.prototype,"onLock",null),(0,s.__decorate)([n.autobind],u.prototype,"__hide",null),(0,s.__decorate)([(0,n.watch)(":dblclick")],u.prototype,"onDblClickEditor",null),(0,s.__decorate)([(0,n.throttle)(t=>t.defaultTimeout)],u.prototype,"__onMouseMove",null),r.pluginSystem.add("addNewLine",u)},42820:function(t,e,i){"use strict";i.d(e,{LimitedStack:function(){return s}});var o=i(25045);class s{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){(0,o._)(this,"limit",void 0),(0,o._)(this,"stack",void 0),this.limit=t,this.stack=[]}}},43102:function(t,e,i){"use strict";var o,s=i(25045),n=i(31635),r=i(84839),a=i(27795),l=i(28077),c=i(65946),u=i(91206);i(65701);var h=((o=h||{})[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING",o);class d extends u.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,c.splitArray)(this.j.o.draggableTags).filter(Boolean).map(t=>t.toLowerCase()):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>0)return;let e=t.target;if(!this.dragList.length||!e)return;let i=t=>!!(t&&this.dragList.includes(t.nodeName.toLowerCase())),o=a.Dom.furthest(e,i,this.j.editor)||(i(e)?e:null);o&&(a.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,c.ctrlKey)(t),this.draggable=o.cloneNode(!0),(0,c.dataBind)(this.draggable,"target",o),this.state=1,this.addDragListeners())}onDrag(t){if(!this.draggable||0===this.state)return;let e=t.clientX,i=t.clientY;if(!(1===this.state&&Math.sqrt(Math.pow(e-this.startX,2)+Math.pow(i-this.startY,2))<this.diffStep)){if(1===this.state&&(this.j.lock("drag-and-drop-element"),this.state=2),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let e=(0,c.dataBind)(this.draggable,"target");(0,c.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:e?.offsetWidth??100,height:e?.offsetHeight??100}),(0,l.getContainer)(this.j,d).appendChild(this.draggable)}(0,c.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=0,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<2)return void this.onDragEnd();let t=(0,c.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));let{parentElement:e}=t;this.j.s.insertNode(t,!0,!1),e&&a.Dom.isEmpty(e)&&!a.Dom.isCell(e)&&a.Dom.safeRemove(e),a.Dom.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}constructor(...t){super(...t),(0,s._)(this,"dragList",[]),(0,s._)(this,"draggable",null),(0,s._)(this,"isCopyMode",!1),(0,s._)(this,"diffStep",10),(0,s._)(this,"startX",0),(0,s._)(this,"startY",0),(0,s._)(this,"state",0)}}(0,n.__decorate)([r.autobind],d.prototype,"onDragStart",null),(0,n.__decorate)([(0,r.throttle)(t=>t.defaultTimeout/10)],d.prototype,"onDrag",null),(0,n.__decorate)([r.autobind],d.prototype,"onDragEnd",null),(0,n.__decorate)([r.autobind],d.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",d)},43218:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg>'},43219:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},no:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},43271:function(t,e,i){"use strict";i.d(e,{ImageEditor:function(){return m},openImageEditor:function(){return g}});var o=i(25045),s=i(31635),n=i(16964),r=i(84839),a=i(27795),l=i(65946),c=i(59400),u=i(5266);i(54500);var h=i(8908);let d="jodit-image-editor",p="resize",f="crop";class m extends n.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(t,e){return this.j.async.promise(i=>{let o=new Date().getTime();this.image=this.j.c.element("img"),(0,l.$$)("img,.jodit-icon_loader",this.resize_box).forEach(a.Dom.safeRemove),(0,l.$$)("img,.jodit-icon_loader",this.crop_box).forEach(a.Dom.safeRemove),(0,l.css)(this.cropHandler,"background","transparent"),this.onSave=e,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(t)?t+="&_tst="+o:t+="?_tst="+o,this.image.setAttribute("src",t),this._dialog.open();let{widthInput:s,heightInput:n}=(0,l.refs)(this.editor),r=()=>{this.isDestructed||(this.image.removeEventListener("load",r),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,s.value=this.naturalWidth.toString(),n.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),a.Dom.safeRemove.apply(null,(0,l.$$)(".jodit-icon_loader",this.editor)),this.activeTab===f&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),i(this._dialog))};this.image.addEventListener("load",r),this.image.complete&&r()})}onTitleModeClick(t){let e=t.target,i=e?.parentElement;if(!i)return;(0,l.$$)(`.${d}__slider,.${d}__area`,this.editor).forEach(t=>t.classList.remove(`${d}_active`)),i.classList.add(`${d}_active`),this.activeTab=(0,l.attr)(i,"-area")||p;let o=this.editor.querySelector(`.${d}__area.${d}__area_`+this.activeTab);o&&o.classList.add(`${d}_active`),this.activeTab===f&&this.showCrop()}onChangeSizeInput(t){let e,i=t.target,{widthInput:o,heightInput:s}=(0,l.refs)(this.editor),n="widthInput"===(0,l.attr)(i,"data-ref"),r=parseInt(i.value,10),a=n?this.o.min_width:this.o.min_height,c=n?this.o.min_height:this.o.min_width;r>a&&((0,l.css)(this.image,n?"width":"height",r),this.resizeUseRatio&&(e=n?Math.round(r/this.ratio):Math.round(r*this.ratio))>c&&((0,l.css)(this.image,n?"height":"width",e),n?s.value=e.toString():o.value=e.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){this.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),this.clicked=!0,this.start_x=t.clientX,this.start_y=t.clientY,this.activeTab===f?(this.top_x=(0,l.css)(this.cropHandler,"left"),this.top_y=(0,l.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(t){this.clicked&&(this.clicked=!1,t.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(t){if(!this.clicked)return;let{widthInput:e,heightInput:i}=(0,l.refs)(this.editor);this.diff_x=t.clientX-this.start_x,this.diff_y=t.clientY-this.start_y,this.activeTab===p&&this.resizeUseRatio||this.activeTab===f&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===p?(this.new_w>this.o.resizeMinWidth&&((0,l.css)(this.image,"width",this.new_w+"px"),e.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,l.css)(this.image,"height",this.new_h+"px"),i.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,l.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,l.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,l.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),a.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,"."+d).off("."+d),super.destruct())}constructor(t){super(t),(0,o._)(this,"options",void 0),(0,o._)(this,"onSave",void 0),(0,o._)(this,"resizeUseRatio",!0),(0,o._)(this,"cropUseRatio",!0),(0,o._)(this,"_dialog",void 0),(0,o._)(this,"image",void 0),(0,o._)(this,"cropImage",void 0),(0,o._)(this,"clicked",!1),(0,o._)(this,"target",void 0),(0,o._)(this,"start_x",0),(0,o._)(this,"start_y",0),(0,o._)(this,"top_x",0),(0,o._)(this,"top_y",0),(0,o._)(this,"width",0),(0,o._)(this,"height",0),(0,o._)(this,"activeTab",p),(0,o._)(this,"naturalWidth",0),(0,o._)(this,"naturalHeight",0),(0,o._)(this,"ratio",0),(0,o._)(this,"new_h",0),(0,o._)(this,"new_w",0),(0,o._)(this,"diff_x",0),(0,o._)(this,"diff_y",0),(0,o._)(this,"buttons",void 0),(0,o._)(this,"editor",void 0),(0,o._)(this,"resize_box",void 0),(0,o._)(this,"crop_box",void 0),(0,o._)(this,"sizes",void 0),(0,o._)(this,"resizeHandler",void 0),(0,o._)(this,"cropHandler",void 0),(0,o._)(this,"cropBox",{x:0,y:0,w:0,h:0}),(0,o._)(this,"resizeBox",{w:0,h:0}),(0,o._)(this,"calcCropBox",()=>{let t=this.crop_box.parentNode,e=.8*t.offsetWidth,i=.8*t.offsetHeight,o=e,s=i,{naturalWidth:n,naturalHeight:r}=this;e>n&&i>r?(o=n,s=r):this.ratio>e/i?(o=e,s=e/n*r):(o=i/r*n,s=i),(0,l.css)(this.crop_box,{width:o,height:s})}),(0,o._)(this,"showCrop",()=>{if(!this.cropImage)return;this.calcCropBox();let t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=m.calcValueByPercent(t,this.o.cropDefaultWidth);let e=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=m.calcValueByPercent(e,this.o.cropDefaultHeight),(0,l.css)(this.cropHandler,{backgroundImage:"url("+(0,l.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:e/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")}),(0,o._)(this,"updateCropBox",()=>{if(!this.cropImage)return;let t=this.cropImage.offsetWidth/this.naturalWidth,e=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,l.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,l.css)(this.cropHandler,"top")/e,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/e,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)}),(0,o._)(this,"updateResizeBox",()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight}),(0,o._)(this,"setHandlers",()=>{let t=this,{widthInput:e,heightInput:i}=(0,l.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],"mousedown."+d,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+d,()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")}),t.j.e.on((0,l.toArray)(this.editor.querySelectorAll(`.${d}__slider-title`)),"click",this.onTitleModeClick).on([e,i],"input",this.onChangeSizeInput);let{keepAspectRatioResize:o,keepAspectRatioCrop:s}=(0,l.refs)(this.editor);o&&o.addEventListener("change",()=>{this.resizeUseRatio=o.checked}),s&&s.addEventListener("change",()=>{this.cropUseRatio=s.checked}),t.j.e.on(t.resizeHandler,"updatesize",()=>{(0,l.css)(t.resizeHandler,{top:0,left:0,width:t.image.offsetWidth||t.naturalWidth,height:t.image.offsetHeight||t.naturalHeight}),this.updateResizeBox()}).on(t.cropHandler,"updatesize",()=>{if(!t.cropImage)return;let e=(0,l.css)(t.cropHandler,"left"),i=(0,l.css)(t.cropHandler,"top"),o=t.cropHandler.offsetWidth,s=t.cropHandler.offsetHeight;e<0&&(e=0),i<0&&(i=0),e+o>t.cropImage.offsetWidth&&(o=t.cropImage.offsetWidth-e,t.cropUseRatio&&(s=o/t.ratio)),i+s>t.cropImage.offsetHeight&&(s=t.cropImage.offsetHeight-i,t.cropUseRatio&&(o=s*t.ratio)),(0,l.css)(t.cropHandler,{width:o,height:s,left:e,top:i,backgroundPosition:-e-1+"px "+(-i-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()}),Object.values(t.buttons).forEach(o=>{o.onAction(()=>{let s={action:t.activeTab,box:t.activeTab===p?t.resizeBox:t.cropBox};switch(o){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",e=>{if(!(0,l.trim)(e))return t.j.alert("The name should not be empty"),!1;t.onSave(e,s,t.hide,e=>{t.j.alert(e.message)})});break;case t.buttons.save:t.onSave(void 0,s,t.hide,e=>{t.j.alert(e.message)});break;case t.buttons.reset:t.activeTab===p?((0,l.css)(t.image,{width:null,height:null}),e.value=t.naturalWidth.toString(),i.value=t.naturalHeight.toString(),t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}})})}),this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:u.Config.defaultOptions.imageeditor;const e=this.options;this.resizeUseRatio=e.resizeUseRatio,this.cropUseRatio=e.cropUseRatio,this.buttons={reset:(0,c.Button)(this.j,"update","Reset"),save:(0,c.Button)(this.j,"save","Save"),saveas:(0,c.Button)(this.j,"save","Save as ...")},this.activeTab=e.resize?p:f,this.editor=(0,h.form)(this.j,this.options);const{resizeBox:i,cropBox:s}=(0,l.refs)(this.editor);this.resize_box=i,this.crop_box=s,this.sizes=this.editor.querySelector(`.${d}__area.${d}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${d}__resizer`),this.cropHandler=this.editor.querySelector(`.${d}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}}function g(t,e,i,o,s,n){return this.getInstance("ImageEditor",this.o).open(t,(t,r,a,c)=>(0,l.call)("resize"===r.action?this.dataProvider.resize:this.dataProvider.crop,i,o,e,t,r.box).then(t=>{t&&(a(),s&&s())}).catch(t=>{c(t),n&&n(t)}))}(0,o._)(m,"calcValueByPercent",(t,e)=>{let i,o=e.toString(),s=parseFloat(t.toString());return(i=/^[-+]?[0-9]+(px)?$/.exec(o))?parseInt(o,10):(i=/^([-+]?[0-9.]+)%$/.exec(o))?Math.round(s*(parseFloat(i[1])/100)):s||0}),(0,s.__decorate)([r.autobind],m.prototype,"hide",null),(0,s.__decorate)([r.autobind],m.prototype,"open",null),(0,s.__decorate)([r.autobind],m.prototype,"onTitleModeClick",null),(0,s.__decorate)([(0,r.debounce)(),r.autobind],m.prototype,"onChangeSizeInput",null),(0,s.__decorate)([r.autobind],m.prototype,"onResizeHandleMouseDown",null),(0,s.__decorate)([r.autobind],m.prototype,"onGlobalMouseUp",null),(0,s.__decorate)([(0,r.throttle)(10)],m.prototype,"onGlobalMouseMove",null),m=(0,s.__decorate)([r.component],m)},43354:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(51676),r=i(28077),a=i(65946);i(81008);class l{init(t){this.buttons?.forEach(e=>t.registerButton(e)),t.e.off(`copy.${s.CLIPBOARD_ID} cut.${s.CLIPBOARD_ID}`).on(`copy.${s.CLIPBOARD_ID} cut.${s.CLIPBOARD_ID}`,e=>{let i=t.s.html,o=(0,a.getDataTransfer)(e)||(0,a.getDataTransfer)(t.ew)||(0,a.getDataTransfer)(e.originalEvent);o&&(o.setData(s.TEXT_PLAIN,(0,a.stripTags)(i)),o.setData(s.TEXT_HTML,i)),t.buffer.set(s.CLIPBOARD_ID,i),t.e.fire("pasteStack",{html:i,action:t.o.defaultActionOnPaste||s.INSERT_AS_HTML}),"cut"===e.type&&(t.s.remove(),t.s.focus()),e.preventDefault(),t?.events?.fire("afterCopy",i)})}destruct(t){(0,n.cached)(t,"buffer")?.set(s.CLIPBOARD_ID,""),t?.events?.off("."+s.CLIPBOARD_ID)}constructor(){(0,o._)(this,"jodit",void 0),(0,o._)(this,"buttons",[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}])}}r.pluginSystem.add("clipboard",l)},43379:function(t,e,i){"use strict";i.d(e,{reset:function(){return a}});var o=i(81937),s=i(91565),n=i(89308);let r={};function a(t){if(!(t in r)){let e=o.globalDocument.createElement("iframe");try{if(e.src="about:blank",o.globalDocument.body.appendChild(e),!e.contentWindow)return null;let i=(0,n.get)(t,e.contentWindow),a=(0,n.get)(t.split(".").slice(0,-1).join("."),e.contentWindow);(0,s.isFunction)(i)&&(r[t]=i.bind(a))}catch(t){if(!o.IS_PROD)throw t}finally{e.parentNode?.removeChild(e)}}return r[t]??null}},44322:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(28077),a=i(72412),l=i(80991),c=i(18855);i(80202);class u extends c.Plugin{afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:t}=this;if(t.o.inline)return;let{height:e}=t.o;if(t.o.saveHeightInStorage&&"auto"!==e){let i=t.storage.get("height");i&&(e=i)}(0,l.css)(t.editor,{minHeight:"100%"}),(0,l.css)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(e),this.__setWidth(t.o.width))}__setHeight(t){let{clientHeight:e,clientWidth:i}=this.j.container;if((0,a.isNumber)(t)){let{minHeight:e,maxHeight:i}=this.j.o;(0,a.isNumber)(e)&&e>t&&(t=e),(0,a.isNumber)(i)&&i<t&&(t=i)}(0,l.css)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd({clientHeight:e,clientWidth:i})}__setWidth(t){let{clientHeight:e,clientWidth:i}=this.j.container;if((0,a.isNumber)(t)){let{minWidth:e,maxWidth:i}=this.j.o;(0,a.isNumber)(e)&&e>t&&(t=e),(0,a.isNumber)(i)&&t>i&&(t=i)}(0,l.css)(this.j.container,"width",t),this.__resizeWorkspaceImd({clientHeight:e,clientWidth:i})}__getNotWorkHeight(){return(this.j.toolbarContainer?.offsetHeight||0)+(this.j.statusbar?.getHeight()||0)+2}__resizeWorkspaceImd({clientHeight:t,clientWidth:e}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,l.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,a.isNumber)(i)&&i>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,l.css)(t,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,a.isNumber)(this.j.o.maxHeight)){let t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,l.css)(e,"maxHeight",t)}),this.j.e.fire("setMaxHeight",t)}if(this.j.container){let t="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,l.css)(this.j.workplace,"height",t),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,a.isNumber)(t)?t+"px":t)}let{clientHeight:o,clientWidth:s}=this.j.container;(t!==o||e!==s)&&this.j.e.fire(this.j,"resize")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(...t){super(...t),(0,o._)(this,"__resizeWorkspaces",this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0))}}(0,s.__decorate)([(0,n.throttle)()],u.prototype,"__initialize",null),(0,s.__decorate)([n.autobind],u.prototype,"__setHeight",null),(0,s.__decorate)([n.autobind],u.prototype,"__setWidth",null),(0,s.__decorate)([n.autobind],u.prototype,"__resizeWorkspaceImd",null),r.pluginSystem.add("size",u)},44599:function(t,e,i){"use strict";i.r(e),i.d(e,{en:function(){return o},es:function(){return s}});var o=i(17918),s=i(41324)},44636:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg>'},44998:function(t,e,i){"use strict";i.d(e,{isLicense:function(){return s}});var o=i(85932);let s=t=>(0,o.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},45062:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg>'},45219:function(t,e,i){"use strict";i.d(e,{visitNodeWalker:function(){return r}});var o=i(81937),s=i(91560);let n=Object.keys(s);function r(t,e,i,r,a){let l=!1,c=t.o.cleanHTML.disableCleanFilter;for(let u of n)if(!(c&&c.has(u))&&(l=(0,s[u])(t,e,l,i,r,a),o.IS_PROD,!e.isConnected))return!0;return l}},45244:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg>'},45512:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg>'},45664:function(t,e,i){"use strict";i.d(e,{asArray:function(){return o.asArray},splitArray:function(){return s.splitArray},toArray:function(){return n.toArray}});var o=i(78982),s=i(32328),n=i(88475)},45674:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg>'},45778:function(t,e,i){"use strict";i.d(e,{formTemplate:function(){return n}});var o=i(59400),s=i(5658);let n=t=>{let{openInNewTabCheckbox:e,noFollowCheckbox:i,modeClassName:n,selectSizeClassName:r,selectMultipleClassName:a,selectOptionsClassName:l}=t.o.link;return new s.UIForm(t,[new s.UIBlock(t,[new s.UIInput(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new s.UIBlock(t,[new s.UIInput(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),n?new s.UIBlock(t,["input"===n?new s.UIInput(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===n?new s.UISelect(t,{name:"className",ref:"className_select",label:"Class name",size:r,multiple:a,options:l}):null]):null,e?new s.UICheckbox(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,i?new s.UICheckbox(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new s.UIBlock(t,[new o.UIButton(t,{name:"unlink",variant:"default",text:"Unlink"}),new o.UIButton(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},45844:function(t,e,i){"use strict";i.d(e,{TextAreaEditor:function(){return a}});var o=i(25045),s=i(23211),n=i(80991),r=i(94193);class a extends r.SourceEditor{init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===t.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),t.e.on(this.instance,"mousedown keydown touchstart input",t.async.debounce(this.toWYSIWYG,t.defaultTimeout)).on("setMinHeight.source",t=>{(0,n.css)(this.instance,"minHeight",t)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",e=>{t.e.fire(e.type,e)}),this.autosize(),this.onReady()}destruct(){s.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){let e=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),o=this.getSelectionEnd();this.setValue(e.substring(0,i)+t+e.substring(o,e.length))}else this.setValue(e+t)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,e=t){this.instance.setSelectionRange(t,e)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){this.instance.setAttribute("placeholder",t)}setReadOnly(t){t?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){let{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",e=>{if((e.ctrlKey||e.metaKey)&&"z"===e.key)return e.shiftKey?t.redo():t.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(...t){super(...t),(0,o._)(this,"autosize",this.j.async.debounce(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout,!0))}}},46248:function(t,e,i){"use strict";i.d(e,{isHTML:function(){return s}});var o=i(85932);let s=t=>(0,o.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},46303:function(t,e,i){"use strict";i.d(e,{splitFragment:function(){return r}});var o=i(23211),s=i(60898),n=i(65710);function r(t,e,i){let r=e.s,{enter:a}=e.o,l=a.toLowerCase(),c=o.Dom.isLeaf(i),u=i.tagName.toLowerCase()===l||c,h=r.cursorOnTheRight(i,t),d=r.cursorOnTheLeft(i,t);if(!u&&(h||d)){h?o.Dom.after(i,t):o.Dom.before(i,t),(0,n.insertParagraph)(t,e,l),d&&!h&&o.Dom.prepend(i,t);return}let p=r.splitSelection(i,t);(0,s.scrollIntoViewIfNeeded)(p,e.editor,e.ed)}},46363:function(t,e,i){"use strict";i.d(e,{Snapshot:function(){return a}});var o=i(25045),s=i(16964),n=i(81937),r=i(23211);class a extends s.ViewComponent{className(){return"Snapshot"}static equal(t,e){return t.html===e.html&&JSON.stringify(t.range)===JSON.stringify(e.range)}static countNodesBeforeInParent(t){if(!t.parentNode)return 0;let e=t.parentNode.childNodes,i=0,o=null;for(let s=0;s<e.length;s+=1){if(!o||this.isIgnoredNode(e[s])||r.Dom.isText(o)&&r.Dom.isText(e[s])||(i+=1),e[s]===t)return i;o=e[s]}return 0}static strokeOffset(t,e){for(;r.Dom.isText(t);)t=t.previousSibling,r.Dom.isText(t)&&t.nodeValue&&(e+=t.nodeValue.length);return e}calcHierarchyLadder(t){let e=[];if(!t||!t.parentNode||!r.Dom.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!a.isIgnoredNode(t)&&e.push(a.countNodesBeforeInParent(t)),t=t.parentNode;return e.reverse()}getElementByLadder(t){let e=this.j.editor,i;for(i=0;e&&i<t.length;i+=1)e=e.childNodes[t[i]];return e}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0),this.__levelOfTransaction+=1;try{t()}catch(t){if(!n.IS_PROD)throw t}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.__getCleanedEditorValue(this.j.editor);let e=this.j.s.sel;if(e&&e.rangeCount){let i=e.getRangeAt(0),o=this.calcHierarchyLadder(i.startContainer),s=this.calcHierarchyLadder(i.endContainer),n=a.strokeOffset(i.startContainer,i.startOffset),r=a.strokeOffset(i.endContainer,i.endOffset);o.length||i.startContainer===this.j.editor||(n=0),s.length||i.endContainer===this.j.editor||(r=0),t.range={startContainer:o,startOffset:n,endContainer:s,endOffset:r}}return t}restore(t){this.transaction(()=>{let e=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(e)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){let{j:e}=this,{ow:i}=e;i.scrollTo(i.scrollX,t[0]),e.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){let e=this.j.ed.createRange();e.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),e.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(e)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),n.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return r.Dom.isText(t)&&!t.nodeValue||r.Dom.isTemporary(t)}__getCleanedEditorValue(t){let e=t.cloneNode(!0);return r.Dom.temporaryList(e).forEach(r.Dom.unwrap),e.innerHTML}constructor(...t){super(...t),(0,o._)(this,"__isBlocked",!1),(0,o._)(this,"__levelOfTransaction",0)}}},46533:function(t,e,i){"use strict";i.d(e,{sendFiles:function(){return n}});var o=i(65946),s=i(77911);function n(t,e,i,n,r){if(!e)return Promise.reject((0,o.error)("Need files"));let{o:a}=t,l=(0,o.toArray)(e);if(!l.length)return Promise.reject((0,o.error)("Need files"));let c=[];if(a.insertImageAsBase64URI&&function(t,e,i,s,n,r){let a,l;for(l=0;l<t.length;l+=1)if((a=t[l])&&a.type){let c=a.type.match(/\/([a-z0-9]+)/i),u=c[1]?c[1].toLowerCase():"";if(!e.includes(u))continue;let h=new FileReader;i.push(s.j.async.promise((t,e)=>{h.onerror=e,h.onloadend=()=>{let e={baseurl:"",files:[h.result],isImages:[!0]};((0,o.isFunction)(n)?n:r).call(s,e),t(e)},h.readAsDataURL(a)})),t[l]=null}}(l,a.imagesExtensions,c,t,i,a.defaultHandlerSuccess),(l=l.filter(t=>t)).length){let e,u=new FormData;u.append(a.pathVariableName,t.path),u.append("source",t.source);for(let i=0;i<l.length;i+=1)if(e=l[i]){let o=/\.\w+$/.test(e.name),s=e.type.match(/\/([a-z0-9]+)/i),n=s&&s[1]?s[1].toLowerCase():"",r=l[i].name||Math.random().toString().replace(".","");if(!o&&n){let t=n;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(r)||(r+="."+n)}let[c,h,d]=a.processFileName.call(t,a.filesVariableName(i),l[i],r);u.append(c,h,d)}r&&r(u),a.data&&(0,o.isPlainObject)(a.data)&&Object.keys(a.data).forEach(t=>{u.append(t,a.data[t])}),a.prepareData.call(t,u),c.push((0,s.send)(t,u).then(e=>(a.isSuccess.call(t,e)?((0,o.isFunction)(i)?i:a.defaultHandlerSuccess).call(t,a.process.call(t,e)):((0,o.isFunction)(n)?n:a.defaultHandlerError).call(t,(0,o.error)(a.getMessage.call(t,e))),e)).then(()=>{t.j.events&&t.j.e.fire("filesWereUploaded")}))}return Promise.all(c)}},47670:function(t,e,i){"use strict";i(5266).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},47744:function(t,e,i){"use strict";i.d(e,{readValuesFromImage:function(){return l}});var o=i(7909),s=i(26633),n=i(79310),r=i(18380),a=i(57339);async function l(t,e){let{sourceImage:i,values:l}=e;return(0,s.readAlign)(i,l),l.borderRadius=parseInt(i.style.borderRadius||"0",10)||0,l.id=(0,o.attr)(i,"id")||"",l.imageTitle=(0,o.attr)(i,"title")||"",l.imageAlt=(0,o.attr)(i,"alt")||"",l.style=(0,o.attr)(i,"style")||"",l.classes=((0,o.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,r.readMargins)(i,l,e),(0,n.readLink)(e,t,l),l.imageSrc=(0,o.attr)(i,"src")||"",(0,a.readSizes)(i,l,e)}},47760:function(t,e,i){"use strict";i.d(e,{alreadyLoadedList:function(){return n},appendScriptAsync:function(){return a},appendStyleAsync:function(){return l},loadNext:function(){return function t(e,i,s=0){return(0,o.isString)(i[s])?a(e,i[s]).then(()=>t(e,i,s+1)):Promise.resolve()}},loadNextStyle:function(){return function t(e,i,s=0){return(0,o.isString)(i[s])?l(e,i[s]).then(()=>t(e,i,s+1)):Promise.resolve()}}});var o=i(85932),s=i(91321);let n=new Map,r=t=>(e,i)=>{if(n.has(i))return n.get(i);let o=t(e,i);return n.set(i,o),o},a=r((t,e)=>t.async.promise((i,o)=>{if(t.isInDestruct)return o();let n=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(e)});t.e.one(n,"error",o).one(n,"load",i),t.od.body.appendChild(n)})),l=r((t,e)=>t.async.promise((i,o)=>{if(t.isInDestruct)return o();let n=t.c.element("link");n.rel="stylesheet",n.media="all",n.crossOrigin="anonymous",t.isInDestruct||t.e.on(n,"load",()=>i(n)).on(n,"error",o),n.href=(0,s.completeUrl)(e),t.o.shadowRoot?t.o.shadowRoot.appendChild(n):t.od.body.appendChild(n)}))},47919:function(t,e,i){"use strict";i.d(e,{moveCursorOutFromSpecialTags:function(){return s}});var o=i(23211);function s(t,e,i){let{s}=t,n=o.Dom.closest(e,i,t.editor);n&&(s.cursorOnTheRight(n,e)?o.Dom.after(n,e):s.cursorOnTheLeft(n,e)&&o.Dom.before(n,e))}},48007:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg>'},48009:function(t,e,i){"use strict";i.d(e,{normalizeUrl:function(){return o}});let o=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},48155:function(t,e,i){"use strict";i.d(e,{safeHTML:function(){return n},sanitizeHTMLElement:function(){return r}});var o=i(23211),s=i(93640);function n(t,e){(o.Dom.isElement(t)||o.Dom.isFragment(t))&&(e.removeOnError&&(r(t),(0,s.$$)("[onerror]",t).forEach(t=>r(t,e))),e.safeJavaScriptLink&&(r(t),(0,s.$$)('a[href^="javascript"]',t).forEach(t=>r(t,e))))}function r(t,{safeJavaScriptLink:e,removeOnError:i}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let n=!1;i&&t.hasAttribute("onerror")&&((0,s.attr)(t,"onerror",null),n=!0);let a=t.getAttribute("href");return e&&a&&0===a.trim().indexOf("javascript")&&((0,s.attr)(t,"href",location.protocol+"//"+a),n=!0),n}},48290:function(t,e,i){"use strict";var o=i(27795),s=i(65946),n=i(93640),r=i(29434),a=i(5266),l=i(67447),c=i.n(l);a.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},r.Icon.set("table",c()),a.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup(t,e,i,r){t.editor.normalize();let a=t.history.snapshot.make(),l=r.control,c=l.data&&l.data.rows?l.data.rows:10,u=l.data&&l.data.cols?l.data.cols:10,h=t.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!t.o.table.useExtraClassesOptions)return"";let e=[];if(l.data){let t=l.data.classList;Object.keys(t).forEach(i=>{e.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${i}" type="checkbox"/>${t[i]}</label>`)})}return e.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),d=h.querySelectorAll("span")[0],p=h.querySelectorAll("span")[1],f=h.querySelector(".jodit-form__container"),m=h.querySelector(".jodit-form__options"),g=[],_=c*u;for(let e=0;e<_;e+=1)g[e]||g.push(t.c.element("span",{dataIndex:e}));if(t.e.on(f,"mousemove",(t,e)=>{let i=t.target;if(!o.Dom.isTag(i,"span"))return;let s=void 0===e||isNaN(e)?parseInt((0,n.attr)(i,"-index")||"0",10):e||0,r=Math.ceil((s+1)/u),a=s%u+1;for(let t=0;t<g.length;t+=1)a>=t%u+1&&r>=Math.ceil((t+1)/u)?g[t].className="jodit_hovered":g[t].className="";p.textContent=a.toString(),d.textContent=r.toString()}).on(f,"touchstart mousedown",e=>{let r=e.target;if(e.preventDefault(),e.stopImmediatePropagation(),!o.Dom.isTag(r,"span"))return;let l=parseInt((0,n.attr)(r,"-index")||"0",10),c=Math.ceil((l+1)/u),h=l%u+1,d=t.createInside,p=d.element("tbody"),f=d.element("table");f.appendChild(p);let g=null,_,v;for(let t=1;c>=t;t+=1){_=d.element("tr");for(let t=1;t<=h;t+=1)v=d.element("td"),g||(g=v),(0,s.css)(v,"width",(100/h).toFixed(4)+"%"),v.appendChild(d.element("br")),_.appendChild(d.text(`
187
187
  `)),_.appendChild(d.text(" ")),_.appendChild(v);p.appendChild(d.text(`
188
188
  `)),p.appendChild(_)}(0,s.$$)("input[type=checkbox]:checked",m).forEach(t=>{t.value.split(/[\s]+/).forEach(t=>{f.classList.add(t)})}),t.s.restore(),t.s.removeMarkers(),t.editor.normalize(),t.history.snapshot.restore(a);let b=o.Dom.furthest(t.s.current(),o.Dom.isBlock,t.editor);if(b&&o.Dom.isEmpty(b))o.Dom.replace(b,f,void 0,!1,!0);else if(b){let e=d.text(`
189
189
  `);if(t.o.table.splitBlockOnInsertTable){let i=t.s.range;i.collapse(!1),i.insertNode(e),i.collapse(!1),t.s.selectRange(i);let s=t.s.splitSelection(b,e);s?o.Dom.after(s,f):o.Dom.after(b,f)}else o.Dom.after(b,e),o.Dom.after(e,f)}else t.s.insertNode(f,!1);g&&(t.s.setCursorIn(g),(0,s.scrollIntoViewIfNeeded)(g,t.editor,t.ed)),i()}),r&&r.parentElement){for(let e=0;e<c;e+=1){let i=t.c.div();for(let t=0;t<u;t+=1)i.appendChild(g[e*u+t]);f.appendChild(i)}g[0]&&(g[0].className="hovered")}return h},tooltip:"Insert table"}},48729:function(t,e,i){"use strict";i.d(e,{FiniteStateMachine:function(){return a}});var o=i(25045),s=i(81937),n=i(85932),r=i(28712);class a{setState(t){(0,r.assert)(!this.__previewsStates.has(t),"Circled states"),this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(t,e){let i=this.transitions[this.getState()][t];if(i){let t=i.call(this,e);return(0,r.assert)(t&&t!==e,"Action should return new value"),(0,r.assert)((0,n.isString)(t.next),"Value should contain the next state"),(0,r.assert)(t.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(t.next),s.IS_PROD||this.silent,t}throw Error(`invalid action: ${this.getState()}.${t.toString()}`)}constructor(t,e){(0,o._)(this,"transitions",void 0),(0,o._)(this,"__state",void 0),(0,o._)(this,"silent",void 0),(0,o._)(this,"__previewsStates",void 0),this.transitions=e,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}}},48776:function(t,e,i){"use strict";i.r(e),i.d(e,{required:function(){return n},url:function(){return r}});var o=i(91764),s=i(4040);let n=function(t){return!!(0,s.trim)(t.value).length||(t.error="Please fill out this field",!1)},r=function(t){return!!(0,o.isURL)((0,s.trim)(t.value))||(t.error="Please enter a web address",!1)}},48838:function(t,e,i){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}i.d(e,{nl2br:function(){return o}})},48842:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg>'},48899:function(t,e,i){"use strict";var o=i(65946),s=i(59400),n=i(5658),r=i(29434),a=i(5266),l=i(15753),c=i(36339),u=i.n(c);a.Config.prototype.video={parseUrlToVideoEmbed:o.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},r.Icon.set("video",u()),a.Config.prototype.controls.video={popup(t,e,i){let r=new n.UIForm(t,[new n.UIBlock(t,[new n.UIInput(t,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new n.UIBlock(t,[(0,s.Button)(t,"","Insert","primary").onAction(()=>r.submit())])]),a=new n.UIForm(t,[new n.UIBlock(t,[new n.UITextArea(t,{name:"code",required:!0,label:"Embed code"})]),new n.UIBlock(t,[(0,s.Button)(t,"","Insert","primary").onAction(()=>a.submit())])]),c=[],u=e=>{t.s.restore(),t.s.insertHTML(e),i()};return t.s.save(),c.push({icon:"link",name:"Link",content:r.container},{icon:"source",name:"Code",content:a.container}),r.onSubmit(e=>{u((0,o.call)(t.o.video?.parseUrlToVideoEmbed??o.convertMediaUrlToVideoEmbed,e.url,{width:t.o.video?.defaultWidth,height:t.o.video?.defaultHeight}))}),a.onSubmit(t=>{u(t.code)}),(0,l.TabsWidget)(t,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},49147:function(t,e,i){"use strict";i.d(e,{applySize:function(){return a}});var o=i(70222),s=i(7909),n=i(80991),r=i(10808);function a(t,e,i,a){if(e!==t.offsetWidth||i!==t.offsetHeight){let l=e?(0,r.normalSizeToString)(e):null,c=i?(0,r.normalSizeToString)(i):null;(0,n.css)(t,{width:l,height:l&&a?null:c}),(0,s.attr)(t,"width",l&&(0,o.isNumeric)(e)&&(0,s.attr)(t,"width")?l:null),(!(0,s.attr)(t,"width")||a)&&(c=null),(0,s.attr)(t,"height",c)}}},49385:function(t,e,i){"use strict";i.d(e,{cns:function(){return o},markDeprecated:function(){return s}});let o=console;function s(t,e=[""],i=null){return(...s)=>(o.warn(`Method "${e[0]}" deprecated.`+(e[1]?` Use "${e[1]}" instead`:"")),t.call(i,...s))}},49422:function(t,e,i){"use strict";i.d(e,{applyLink:function(){return n}});var o=i(23211),s=i(7909);function n(t,e,i,n){let r=o.Dom.closest(e,"a",t.editor);i?(r||(r=o.Dom.wrap(e,"a",t.createInside)),(0,s.attr)(r,"href",i),(0,s.attr)(r,"target",n?"_blank":null)):r&&r.parentNode&&r.parentNode.replaceChild(e,r)}},49574:function(t,e,i){"use strict";i.d(e,{autobind:function(){return s}});var o=i(91565);function s(t,e,i){if(!(0,o.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${e}" is not a function`);let s=i.value;return{configurable:!0,get(){let t=s.bind(this);return Object.defineProperty(this,e,{value:t,configurable:!0,writable:!0}),t}}}},49663:function(t,e,i){"use strict";i.d(e,{normalizeLicense:function(){return o}});let o=(t,e=8)=>{let i=[];for(;t.length;)i.push(t.substr(0,e)),t=t.substr(e);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}},49690:function(t,e,i){"use strict";var o=i(81937),s=i(28077),n=i(57075);i(5266).Config.prototype.controls.preview={icon:"eye",command:"preview",mode:o.MODE_SOURCE+o.MODE_WYSIWYG,tooltip:"Preview"},s.pluginSystem.add("preview",function(t){t.registerButton({name:"preview"}),t.registerCommand("preview",(e,i,o)=>{let s=t.dlg();s.setSize(1024,600).open("",t.i18n("Preview")).setModal(!0);let[,r]=(0,n.previewBox)(t,o,"px",s.getElm("content"));s.e.on(s,"afterClose",r)})})},49764:function(t,e,i){"use strict";var o=i(23211),s=i(28077),n=i(5266),r=i(15753);n.Config.prototype.controls.file={popup(t,e,i){let s=(e,i="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${e}" title="${i}">${i||e}</a>`))},n=null;return e&&(o.Dom.isTag(e,"a")||o.Dom.closest(e,"a",t.editor))&&(n=o.Dom.isTag(e,"a")?e:o.Dom.closest(e,"a",t.editor)),(0,r.FileSelectorWidget)(t,{filebrowser(t){t.files&&t.files.forEach(e=>s(t.baseurl+e)),i()},upload:!0,url(t,e){n?(n.setAttribute("href",t),n.setAttribute("title",e)):s(t,e),i()}},n,i,!1)},tags:["a"],tooltip:"Insert file"},s.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},49972:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg>'},49983:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg>'},49989:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg>'},49999:function(t,e,i){"use strict";i.d(e,{UISelect:function(){return c}});var o=i(25045),s=i(31635),n=i(91672),r=i(7909),a=i(65273),l=i(81488);class c extends a.UIInput{className(){return"UISelect"}createContainer(t){let e=super.createContainer(t),{j:i}=this,{nativeInput:o}=this;if(void 0!==t.placeholder){let e=i.create.element("option");e.value="",e.text=i.i18n(t.placeholder),o.add(e)}return t.options?.forEach(t=>{let e=i.create.element("option");e.value=t.value.toString(),e.text=i.i18n(t.text),o.add(e)}),t.size&&t.size>0&&(0,r.attr)(o,"size",t.size),t.multiple&&(0,r.attr)(o,"multiple",""),e}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(l.inputValidators.required),this.validators.add(l.selectValidators.required))}constructor(t,e){super(t,e),(0,o._)(this,"state",{...c.defaultState}),Object.assign(this.state,e)}}(0,o._)(c,"defaultState",{...a.UIInput.defaultState,options:[],size:1,multiple:!1}),c=(0,s.__decorate)([n.component],c)},50083:function(t,e,i){"use strict";function o(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}i.d(e,{isValidName:function(){return o}})},50294:function(t,e,i){"use strict";var o=i(28077),s=i(65946);i(7433),o.pluginSystem.add("font",function(t){t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let e=(e,i,o)=>{switch(e){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,s.normalizeSize)(o,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:o}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",e).registerCommand("fontname",e)})},50662:function(t,e,i){"use strict";var o=i(31635),s=i(81937),n=i(84839),r=i(28077),a=i(91206);i(82147);class l extends a.Plugin{afterInit(t){let{limitWords:e,limitChars:i}=t.o;if(t&&(e||i)){let e=null;t.e.off(".limit").on("beforePaste.limit",()=>{e=t.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&e)return t.history.snapshot.restore(e),t.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(t){return!(t&&(s.COMMAND_KEYS.includes(t.key)||t.ctrlKey||t.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(t){var e,i;let{jodit:o}=this,{limitWords:s,limitChars:n}=o.o,r=o.o.limitHTML?o.value:o.text,a=this.__splitWords(r);if(s&&(e=a.length,t?e>s:e>=s))return o.e.fire("denyWords.limit limit.limit"),!0;let l=!!(n&&(i=a.join("").length,t?i>n:i>=n));return l&&o.e.fire("denyChars.limit limit.limit"),l}checkPreventKeyPressOrPaste(t){if(this.shouldPreventInsertHTML(t))return!1}checkPreventChanging(t,e){let{jodit:i}=this;this.__shouldDenyInput(!0)&&(i.value=e)}__splitWords(t){return t.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"").split((0,s.SPACE_REG_EXP)()).filter(t=>t.length)}beforeDestruct(t){t.e.off(".limit")}}(0,o.__decorate)([n.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,o.__decorate)([n.autobind],l.prototype,"checkPreventChanging",null),r.pluginSystem.add("limit",l)},50982:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(28077),r=i(65946),a=i(91206);i(14907);class l extends a.Plugin{afterInit(t){(0,r.keys)(t.o.commandToHotkeys,!1).forEach(e=>{let i=t.o.commandToHotkeys[e];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&t.registerHotkeyToCommand(i,e)});let e=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",t=>{if(t.key===s.KEY_ESC)return this.j.e.fire("escape",t)}).on("keydown.hotkeys",i=>{let o=this.onKeyPress(i),s={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",i.type,s))if(s.shouldStop)return e=!0,t.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(e)return e=!1,t.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}constructor(...t){super(...t),(0,o._)(this,"onKeyPress",t=>{let e=this.specialKeys[t.which],i=(t.key||String.fromCharCode(t.which)).toLowerCase(),o=[e||i];return["alt","ctrl","shift","meta"].forEach(i=>{t[i+"Key"]&&e!==i&&o.push(i)}),(0,r.normalizeKeyAliases)(o.join("+"))}),(0,o._)(this,"specialKeys",{8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"})}}n.pluginSystem.add("hotkeys",l)},51034:function(t,e,i){"use strict";i(5266).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},51116:function(t,e,i){"use strict";i.d(e,{Popup:function(){return f}});var o=i(25045),s=i(31635),n=i(80251),r=i(84839),a=i(23211),l=i(28077),c=i(65946),u=i(28712),h=i(96007),d=i(63468);let p=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"];class f extends d.UIGroup{className(){return"Popup"}appendChildToContainer(t){let e=this.getElm("content");(0,u.assert)(e,"Content element should exist"),e.appendChild(t)}updateParentElement(t){return t!==this&&n.Component.isInstanceOf(t,f)&&(this.__childrenPopups.forEach(e=>{!t.closest(e)&&e.isOpened&&e.close()}),this.__childrenPopups.has(t)||this.j.e.on(t,"beforeClose",()=>{this.__childrenPopups.delete(t)}),this.__childrenPopups.add(t)),super.updateParentElement(t)}setContent(t){if(this.allChildren.length)throw Error("Remove children");if(n.Component.isInstanceOf(t,h.UIElement))this.append(t);else{let e=(0,c.isString)(t)?this.j.c.fromHTML(t):t;this.appendChildToContainer(e)}return this.updatePosition(),this}open(t,e=!1,i){if((0,c.markOwner)(this.jodit,this.container),this.container.classList.add("jodit_theme_"+this.jodit.o.theme),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=e?this.getKeepBound(t):t,i)i.appendChild(this.container);else{let t=(0,l.getContainer)(this.jodit,f);i!==this.container.parentElement&&t.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}__calculateZIndex(){if(this.container.style.zIndex)return;let t=t=>{let e=t.container.style.zIndex||t.o.zIndex;return!!e&&(this.setZIndex(1+parseInt(e.toString(),10)),!0)},{j:e}=this;if(t(e))return;let i=this.parentElement;for(;i;){if(t(i.j))return;if(i.container.style.zIndex)return void this.setZIndex(1+parseInt(i.container.style.zIndex.toString(),10));if(!i.parentElement&&i.container.parentElement){let t=h.UIElement.closestElement(i.container.parentElement,h.UIElement);if(t){i=t;continue}}i=i.parentElement}}getKeepBound(t){let e=t(),i=this.od.elementFromPoint(e.left,e.top);if(!i)return t;let o=a.Dom.isHTMLElement(i)?i:i.parentElement,s=(0,c.position)(o,this.j);return()=>{let e=t(),i=(0,c.position)(o,this.j);return{...e,top:e.top+(i.top-s.top),left:e.left+(i.left-s.left)}}}updatePosition(){if(!this.isOpened)return this;let[t,e]=this.__calculatePosition(this.__targetBound(),this.viewBound(),(0,c.position)(this.container,this.j));return this.setMod("strategy",e),(0,c.css)(this.container,{left:t.left,top:t.top}),this.__childrenPopups.forEach(t=>t.updatePosition()),this}__throttleUpdatePosition(){this.updatePosition()}__calculatePosition(t,e,i,o=this.strategy){let s={left:t.left,right:t.left-(i.width-t.width)},n={bottom:t.top+t.height,top:t.top-i.height},r=Object.keys(s).reduce((t,e)=>t.concat(Object.keys(n).map(t=>`${e}${(0,c.ucfirst)(t)}`)),[]),a=t=>{let[e,o]=(0,c.kebabCase)(t).split("-");return{left:s[e],top:n[o],width:i.width,height:i.height}},l=t=>f.boxInView(a(o),t)?o:r.find(e=>{if(f.boxInView(a(e),t))return e})||null,u=l((0,c.position)(this.j.container,this.j));return u&&f.boxInView(a(u),e)||(u=l(e)||u||o),[a(u),u]}static boxInView(t,e){return t.top-e.top>=-2&&t.left-e.left>=-2&&e.top+e.height-(t.top+t.height)>=-2&&e.left+e.width-(t.left+t.width)>=-2}close(){return this.isOpened&&(this.isOpened=!1,this.__childrenPopups.forEach(t=>t.close()),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),a.Dom.safeRemove(this.container)),this}__closeOnOutsideClick(t){!this.isOpened||this.isOwnClick(t)||this.close()}isOwnClick(t){if(!t.target)return!1;let e=h.UIElement.closestElement(t.target,f);return!!(e&&(this===e||e.closest(this)))}__addGlobalListeners(){let t=this.__throttleUpdatePosition,e=this.ow;l.eventEmitter.on("closeAllPopups",this.close),this.smart&&this.j.e.on(p,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(e,"scroll",t).on(e,"resize",t),a.Dom.up(this.j.container,e=>{e&&this.j.e.on(e,"scroll mousewheel",t)})}__removeGlobalListeners(){let t=this.__throttleUpdatePosition,e=this.ow;l.eventEmitter.off("closeAllPopups",this.close),this.smart&&this.j.e.off(p,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(e,"scroll",t).off(e,"resize",t),this.j.container.isConnected&&a.Dom.up(this.j.container,e=>{e&&this.j.e.off(e,"scroll mousewheel",t)})}setZIndex(t){this.container.style.zIndex=t.toString()}render(){return`<div>
@@ -250,7 +250,7 @@
250
250
  <div class="${e("resizer")}">${f.Icon.get("resize_handler")}</div>
251
251
  </div>
252
252
  </div>`),"rtl"===this.options.direction&&(this.container.style.direction="rtl",this.container.setAttribute("dir","rtl")),this.o.zIndex&&(this.container.style.zIndex=this.o.zIndex.toString()),(0,d.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);const i=this.getElm("panel");(0,p.assert)(null!=i,"Panel element does not exist");const s=this.getElm("resizer");(0,p.assert)(null!=s,"Resizer element does not exist");const n=this.getElm("header-title");(0,p.assert)(null!=n,"header-title element does not exist");const r=this.getElm("content");(0,p.assert)(null!=r,"Content element does not exist");const a=this.getElm("footer");(0,p.assert)(null!=a,"Footer element does not exist");const u=this.getElm("header-toolbar");(0,p.assert)(null!=u,"header-toolbar element does not exist"),this.dialog=i,this.resizer=s,this.dialogbox_header=n,this.dialogbox_content=r,this.dialogbox_footer=a,this.dialogbox_toolbar=u,(0,d.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});const m=this.getElm("header");m&&this.e.on(m,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);const g=c.pluginSystem.get("fullsize");if((0,h.isFunction)(g)&&g(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){const t=this.getElm("overlay");(0,p.assert)(null!=t,"Overlay element does not exist"),this.e.on(t,"click",this.close)}}}(0,o._)(v,"defaultOptions",{...m.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0}),(0,s.__decorate)([a.autobind],v.prototype,"__onMouseUp",null),(0,s.__decorate)([a.autobind],v.prototype,"__onHeaderMouseDown",null),(0,s.__decorate)([a.autobind],v.prototype,"__onMouseMove",null),(0,s.__decorate)([a.autobind],v.prototype,"__onEsc",null),(0,s.__decorate)([a.autobind],v.prototype,"__onResizerMouseDown",null),(0,s.__decorate)([a.autobind],v.prototype,"close",null),(0,s.__decorate)([(0,a.hook)("ready")],v.prototype,"buildToolbar",null),v=(0,s.__decorate)([a.component],v)},77036:function(t,e,i){"use strict";i.d(e,{persistent:function(){return n}});var o=i(69364),s=i(31534);function n(t,e){t.hookStatus(o.STATUSES.ready,t=>{let i=(0,s.isViewObject)(t)?t:t.jodit,o=`${i.options.namespace}${t.componentName}_prop_${e}`,n=t[e];Object.defineProperty(t,e,{get:()=>i.storage.get(o)??n,set(t){i.storage.set(o,t)}})})}},77213:function(t,e,i){"use strict";i.d(e,{ctrlKey:function(){return o}});let o=t=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1}},77227:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(91115),r=i.n(n),a=i(1916),l=i.n(a);s.Config.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},o.Icon.set("ai-assistant",l()),o.Icon.set("ai-commands",r()),s.Config.prototype.controls["ai-commands"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec(t,e,{control:i}){t.e.fire("generateAiAssistantForm.ai-assistant",i.name)}},s.Config.prototype.controls["ai-assistant"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(t,e,i){t.e.fire("generateAiAssistantForm.ai-assistant")}}},77367:function(t,e,i){"use strict";i.d(e,{normalizeColor:function(){return n}});var o=i(93387),s=i(4040);let n=t=>{let e=["#"],i=(0,o.colorToHex)(t);if(!i)return!1;if(3===(i=(i=(0,s.trim)(i.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)e.push(i[t]),e.push(i[t]);return e.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}},77483:function(t,e,i){"use strict";i.d(e,{ConfigDeepFlatten:function(){return function t(e){return(0,c.keys)(e,!1).reduce((i,o)=>(i[o]=(0,s.isPlainObject)(e[o])?t(e[o]):e[o],i),{})}},ConfigFlatten:function(){return u},ConfigProto:function(){return function t(e,i,c=0){if(Object.getPrototypeOf(e)!==Object.prototype)return e;let u=a.Config.defaultOptions;if((0,n.isString)(e.preset)){if(void 0!==u.presets[e.preset]){let t=u.presets[e.preset];Object.keys(t).forEach(i=>{(0,r.isVoid)(e[i])&&(e[i]=t[i])})}delete e.preset}let h={};return Object.keys(e).forEach(n=>{let r=e[n],a=i?i[n]:null;if((0,s.isPlainObject)(r)&&(0,s.isPlainObject)(a)&&!(0,l.isAtom)(r)){h[n]=t(r,a,c+1);return}if(0!==c&&(0,o.isArray)(r)&&!(0,l.isAtom)(r)&&(0,o.isArray)(a)){h[n]=[...r,...a.slice(r.length)];return}h[n]=r}),Object.setPrototypeOf(h,i),h}}});var o=i(17312),s=i(62101),n=i(85932),r=i(18303),a=i(5266),l=i(54794),c=i(71125);function u(t){return(0,c.keys)(t,!1).reduce((e,i)=>(e[i]=t[i],e),{})}},77911:function(t,e,i){"use strict";i.d(e,{ajaxInstances:function(){return r},send:function(){return a}});var o=i(65946),s=i(73714),n=i(89446);let r=new WeakMap;function a(t,e){let i=(0,n.buildData)(t,e),a=e=>{t.j.progressbar.show().progress(e),e>=100&&t.j.progressbar.hide()},l=(e,i)=>{let n=new s.Ajax({xhr(){let e=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&e.upload?(i(10),e.upload.addEventListener("progress",t=>{if(t.lengthComputable){let e=t.loaded/t.total;i(e*=100)}},!1)):i(100),e},method:t.o.method||"POST",data:e,url:(0,o.isFunction)(t.o.url)?t.o.url(e):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,e),withCredentials:t.o.withCredentials||!1}),a=r.get(t);return a||(a=new Set,r.set(t,a)),a.add(n),t.j.e.one("beforeDestruct",n.destruct),n.send().then(t=>t.json()).catch(t=>({success:!1,data:{messages:[t]}})).finally(()=>{n.destruct(),a?.delete(n)})};return((0,o.isFunction)(t.o.customUploadFunction)&&(l=t.o.customUploadFunction),(0,o.isPromise)(i))?i.then(t=>l(t,a)).catch(e=>{t.o.error.call(t,e)}):l(i,a)}},78462:function(t,e,i){"use strict";i.d(e,{states:function(){return l},transactions:function(){return c}});var o=i(81937),s=i(23211),n=i(28712),r=i(59841),a=i(51640);let l={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},c={[l.START]:{exec(t){let{element:e,jodit:i,style:o,mode:n,collapsed:c}=t;if((0,a.isInsideInvisibleElement)(e,i.editor)||!c&&s.Dom.isEmptyContent(e))return{...t,next:l.END};let u=(0,a.getSuitParent)(o,e,i.editor)||(0,a.getSuitChild)(o,e);if(u)return{...t,next:l.ELEMENT,element:u};let h=(0,a.suitableClosest)(o,e,i.editor);return o.elementIsList&&s.Dom.isList(h)?{...t,next:l.LIST}:h?{...t,next:l.EXTRACT}:{...t,next:n!==r.UNWRAP?l.UNWRAP_CHILDREN:l.END}}},[l.LIST]:{exec(t){let{element:e,jodit:i,mode:n}=t;if(n!==r.INITIAL&&n!==r.UNWRAP&&n!==r.REPLACE)return{...t,next:l.END};let a=s.Dom.closest(e,"li",i.editor);return a&&s.Dom.closest(e,o.LIST_TAGS,i.editor)?{...t,element:a,next:l.TOGGLE_LIST}:{...t,next:l.END}}},[l.TOGGLE_LIST]:{exec:t=>({...t,mode:(0,a.toggleOrderedList)(t.style,t.element,t.jodit,t.mode),next:l.END})},[l.EXTRACT]:{exec(t){let{element:e,jodit:i,style:o}=t,r=(0,a.suitableClosest)(o,e,i.editor);return((0,n.assert)(r,"This place should have an element"),!o.elementIsBlock&&o.options.attributes?.style&&s.Dom.isBlock(r))?{...t,next:l.WRAP}:(o.elementIsBlock||(0,a.extractSelectedPart)(r,e,i),{...t,element:r,next:l.ELEMENT})}},[l.UNWRAP_CHILDREN]:{exec(t){let{element:e,style:i}=t;return(0,a.unwrapChildren)(i,e)?{...t,mode:r.UNWRAP,next:l.END}:{...t,next:l.WRAP}}},[l.WRAP]:{exec(t){let{element:e,jodit:i,style:o}=t,s=(0,a.wrap)(o,e,i);return{...t,next:o.elementIsList?l.END:l.CHANGE,mode:r.WRAP,element:s}}},[l.ELEMENT]:{exec(t){let{style:e,element:i,jodit:o}=t;return(0,a.toggleAttributes)(e,i,o,r.INITIAL,!0)!==r.INITIAL?{...t,next:l.CHANGE}:s.Dom.isTag(i,e.element)?{...t,next:l.UNWRAP}:{...t,next:l.END}}},[l.CHANGE]:{exec(t){let{style:e,element:i,jodit:o,mode:n}=t,c=(0,a.toggleAttributes)(e,i,o,t.mode);return n!==r.WRAP&&c===r.UNSET&&!i.attributes.length&&s.Dom.isTag(i,e.element)?{...t,next:l.UNWRAP}:{...t,mode:c,next:l.END}}},[l.UNWRAP]:{exec:t=>t.element.attributes.length&&s.Dom.isTag(t.element,t.style.element)?{...t,next:l.REPLACE_DEFAULT}:(s.Dom.unwrap(t.element),{...t,mode:r.UNWRAP,next:l.END})},[l.REPLACE_DEFAULT]:{exec:t=>(s.Dom.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:r.REPLACE,next:l.END})},[l.END]:{exec:t=>t}}},78690:function(t,e,i){"use strict";var o=i(27795),s=i(28077),n=i(5266);n.Config.prototype.autofocus=!1,n.Config.prototype.cursorAfterAutofocus="end",n.Config.prototype.saveSelectionOnBlur=!0,s.pluginSystem.add("focus",function(t){t.o.saveSelectionOnBlur&&t.e.on("blur",()=>{t.isEditorMode()&&t.s.save(!0)}).on("focus",()=>{t.s.restore()});let e=()=>{if(t.s.focus(),"end"===t.o.cursorAfterAutofocus){let e=o.Dom.last(t.editor,t=>o.Dom.isText(t));e&&t.s.setCursorIn(e,!1)}};t.e.on("afterInit",()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(e,300):e())}),t.e.on("afterInit afterAddPlace",()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",e=>{t.isEditorMode()&&e.target&&o.Dom.isBlock(e.target)&&!e.target.childNodes.length&&(t.editor===e.target?t.s.focus():t.s.setCursorIn(e.target))})})})},78982:function(t,e,i){"use strict";i.d(e,{asArray:function(){return s}});var o=i(17312);let s=t=>(0,o.isArray)(t)?t:[t]},79310:function(t,e,i){"use strict";i.d(e,{readLink:function(){return n}});var o=i(23211),s=i(7909);function n(t,e,i){let n=o.Dom.closest(t.sourceImage,"a",e.editor);n?(i.imageLink=(0,s.attr)(n,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,s.attr)(n,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},79803:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.toolbarSticky=!0,o.Config.prototype.toolbarDisableStickyForMobile=!0,o.Config.prototype.toolbarStickyOffset=0},79821:function(t,e,i){"use strict";i.d(e,{Create:function(){return o.Create}});var o=i(76517)},79947:function(t,e,i){"use strict";i.d(e,{clearTimeout:function(){return n},setTimeout:function(){return s}});var o=i(81937);function s(t,e,...i){return e?o.globalWindow.setTimeout(t,e,...i):(t.call(null,...i),0)}function n(t){o.globalWindow.clearTimeout(t)}},80202:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.minWidth=200,o.Config.prototype.maxWidth="100%",o.Config.prototype.minHeight=200,o.Config.prototype.maxHeight="auto",o.Config.prototype.saveHeightInStorage=!1},80251:function(t,e,i){"use strict";i.d(e,{Component:function(){return c}});var o=i(25045),s=i(91231),n=i(69364),r=i(28077),a=i(65946);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,e,i){let o=[this.componentName];return t&&o.push("__"+(t=t.replace(/[^a-z0-9-]/gi,"-"))),e&&(o.push("_",e),o.push("_",(0,a.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,a.get)(t,e||this)}get isReady(){return this.componentStatus===n.STATUSES.ready}get isDestructed(){return this.componentStatus===n.STATUSES.destructed}get isInDestruct(){return n.STATUSES.beforeDestruct===this.componentStatus||n.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(n.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(n.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);let i=Object.getPrototypeOf(this);i&&(0,a.isFunction)(i.setStatusComponent)&&i.setStatusComponent(t,e);let o=l.get(this),s=o?.[t];s&&s.length&&s.forEach(t=>t(e))}hookStatus(t,e){let i=l.get(this);i||(i={},l.set(this,i)),i[t]||(i[t]=[]),i[t].push(e)}static isInstanceOf(t,e){return t instanceof e}constructor(){(0,o._)(this,"__componentName",void 0),(0,o._)(this,"async",new s.Async),(0,o._)(this,"uid",void 0),(0,o._)(this,"ownerWindow",window),(0,o._)(this,"__componentStatus",n.STATUSES.beforeInit),this.uid="jodit-uid-"+(0,r.uniqueUid)()}}(0,o._)(c,"STATUSES",n.STATUSES)},80347:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg>'},80512:function(t,e,i){"use strict";i.d(e,{Dlgs:function(){return a}});var o=i(28077),s=i(28686),n=i(71125),r=i(37333);class a{dlg(t){let e=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),i=new r.Dialog({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:e,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,n.markOwner)(this,i.container),i.parent=this,i.bindDestruct(this)}confirm(t,e,i){return t=l(t,this),e=l(e,this),r.Confirm.call(this.dlg({closeOnClickOverlay:!0}),t,e,i)}prompt(t,e,i,o,s){return t=l(t,this),e=l(e,this),o=l(o,this),r.Prompt.call(this.dlg({closeOnClickOverlay:!0}),t,e,i,o,s)}alert(t,e,i,o){return t=l(t,this),e=l(e,this),r.Alert.call(this.dlg({closeOnClickOverlay:!0}),t,e,i,o)}}function l(t,e){return(0,s.isString)(t)&&!(0,s.isHTML)(t)&&(t=e.i18n(t)),t}},80515:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg>'},80538:function(t,e,i){"use strict";var o=i(81937),s=i(29434),n=i(5266),r=i(24772),a=i.n(r),l=i(66547),c=i.n(l);n.Config.prototype.fullsize=!1,n.Config.prototype.globalFullSize=!0,s.Icon.set("fullsize",a()).set("shrink",c()),n.Config.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,e){let i=t.isFullSize?"shrink":"fullsize";e.state.activated=t.isFullSize,t.o.textIcons?e.state.text=i:e.state.icon.name=i},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},80840:function(t,e,i){"use strict";i.d(e,{wait:function(){return r}});var o=i(69364),s=i(91565),n=i(33201);function r(t){return(e,i)=>{let r=e[i];if(!(0,s.isFunction)(r))throw(0,n.error)("Handler must be a Function");e.hookStatus(o.STATUSES.ready,e=>{let{async:o}=e,s=e[i],n=0;Object.defineProperty(e,i,{configurable:!0,value:function i(...r){o.clearTimeout(n),t(e)?s.apply(e,r):n=o.setTimeout(()=>i(...r),10)}})})}}},80951:function(t,e,i){"use strict";i.d(e,{checkJoinTwoLists:function(){return r}});var o=i(23211),s=i(71125),n=i(15200);function r(t,e,i){let r=o.Dom.findSibling(e,i),a=o.Dom.findSibling(e,!i);if(!o.Dom.closest(e,o.Dom.isElement,t.editor)&&o.Dom.isList(r)&&o.Dom.isList(a)&&o.Dom.isTag(r.lastElementChild,"li")&&o.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=t.s,u=r.lastElementChild,h=a.firstElementChild;return(0,s.call)(i?o.Dom.prepend:o.Dom.append,h,e),o.Dom.moveContent(a,r,!i,(0,n.getMoveFilter)(t)),o.Dom.safeRemove(a),(0,s.call)(i?o.Dom.append:o.Dom.prepend,u,e),(0,s.call)(i?l:c,e),!0}return!1}},80991:function(t,e,i){"use strict";i.d(e,{clearCenterAlign:function(){return c},css:function(){return l}});var o=i(22289),s=i(62101),n=i(19147),r=i(57821),a=i(74264);function l(t,e,i,c=!1){if((0,o.isBoolean)(i)&&(c=i,i=void 0),(0,s.isPlainObject)(e)||void 0!==i){let o=(t,e,i)=>{void 0!==(i=(0,n.normalizeCssNumericValue)(e,i))&&(null==i||l(t,e,!0)!==(0,n.normalizeCssValue)(e,i))&&(t.style[e]=i)};if((0,s.isPlainObject)(e)){let i=Object.keys(e);for(let s=0;s<i.length;s+=1)o(t,(0,r.camelCase)(i[s]),e[i[s]])}else o(t,(0,r.camelCase)(e),i);return""}let u=(0,a.kebabCase)(e),h=t.ownerDocument||document,d=!!h&&(h.defaultView||h.parentWindow),p=t.style[e],f="";return void 0!==p&&""!==p?f=p:d&&!c&&(f=d.getComputedStyle(t).getPropertyValue(u)),n.NUMBER_FIELDS_REG.test(e)&&/^[-+]?[0-9.]+px$/.test(f.toString())&&(f=parseInt(f.toString(),10)),(0,n.normalizeCssValue)(e,f)}let c=t=>{"block"===l(t,"display")&&l(t,"display","");let{style:e}=t;"auto"===e.marginLeft&&"auto"===e.marginRight&&(e.marginLeft="",e.marginRight="")}},81008:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(51457),r=i.n(n),a=i(23602),l=i.n(a),c=i(86899),u=i.n(c),h=i(95320),d=i.n(h);s.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},s.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},s.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",r()).set("cut",l()).set("paste",u()).set("select-all",d())},81144:function(t,e,i){"use strict";var o=i(81937),s=i(28077),n=i(65946);i(17326),s.pluginSystem.add("iframe",function(t){let e=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,i)=>{let o=t||i.iframe.contentWindow.document;if(o.open(),o.write(e.iframeDoctype+`<html dir="${e.direction}" class="jodit" lang="${(0,n.defaultLanguage)(e.language)}">`+"<head>"+`<title>${e.iframeTitle}</title>`+(e.iframeBaseUrl?`<base href="${e.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),e.iframeCSSLinks&&e.iframeCSSLinks.forEach(t=>{let e=o.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),o.head&&o.head.appendChild(e)}),e.iframeStyle){let t=o.createElement("style");t.innerHTML=e.iframeStyle,o.head&&o.head.appendChild(t)}}).on("createEditor",()=>{if(!e.iframe)return;let i=t.c.element("iframe");i.style.display="block",i.src="about:blank",i.className="jodit-wysiwyg_iframe",i.setAttribute("allowtransparency","true"),i.setAttribute("tabindex",e.tabIndex.toString()),i.setAttribute("frameborder","0"),null!=e.iframeSandbox&&i.setAttribute("sandbox",e.iframeSandbox),t.workplace.appendChild(i),t.iframe=i;let s=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,n.callPromise)(s,()=>{if(!t.iframe)return!1;let i=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let s=e.editHTMLDocumentMode,r=()=>{(0,n.attr)(i.body,"contenteditable",t.getMode()!==o.MODE_SOURCE&&!t.getReadOnly()||null)},a=t=>{let e=/<body.*<\/body>/im,i="{%%BODY%%}",o=e.exec(t);return o&&(t=t.replace(e,i).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(i,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(s){let e=t.element.tagName;if("TEXTAREA"!==e&&"INPUT"!==e)throw(0,n.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>a(t.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:e})=>!t.isLocked&&(/<(html|body)/i.test(e)?a(i.documentElement.outerHTML)!==a(e)&&(i.open(),i.write(t.o.iframeDoctype+a(e)),i.close(),t.editor=i.body,t.e.fire("safeHTML",t.editor),r(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):i.body.innerHTML=e,!0),{top:!0})}if(t.editor=i.body,t.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===e.height){i.documentElement&&(i.documentElement.style.overflowY="hidden");let o=t.async.throttle((...i)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===e.height){let e=t.ew.getComputedStyle(t.editor),i=parseInt(e.marginTop||"0",10)+parseInt(e.marginBottom||"0",10);(0,n.css)(t.iframe,"height",t.editor.offsetHeight+i)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",o).on([t.iframe,t.ew,i.documentElement],"load",o).on(i,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let e=new ResizeObserver(o);e.observe(i.body),t.e.on("beforeDestruct",()=>{e.disconnect()})}}return i.documentElement&&t.e.on(i.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===i.body&&t.s.setCursorIn(i.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",e=>{t.events?.fire(t.ow,e)}),!1})})})},81488:function(t,e,i){"use strict";i.d(e,{inputValidators:function(){return o},selectValidators:function(){return s}});var o=i(48776),s=i(6490)},81576:function(t,e,i){"use strict";i.d(e,{generateCriticalCSS:function(){return n}});var o=i(25045),s=i(88475);function n(t){let e=(t,e=t.ownerDocument.styleSheets)=>(0,s.toArray)(e).map(t=>{try{return(0,s.toArray)(t.cssRules)}catch{}return[]}).flat().filter(e=>{try{return!!(e&&t.matches(e.selectorText))}catch{}return!1});class i{generateCSS(){let t="";for(let e in this.css)if(!/:not\(/.test(e)){for(let i in t+=e+" { ",this.css[e])t+=i+": "+this.css[e][i]+"; ";t+=`}
253
- `}return t}constructor(i,s,n){(0,o._)(this,"css",{});const r=n||{},a=e=>{let i=e.selectorText.split(",").map(t=>t.trim()).sort().join(",");!1==!!this.css[i]&&(this.css[i]={});let o=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;e<o.length;e++){if(!o[e])continue;let s=o[e].split(":");s[0]=s[0].trim(),s[1]=s[1].trim(),this.css[i][s[0]]=s[1].replace(/var\(([^)]+)\)/g,(e,i)=>{let[o,s]=i.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(o.trim())||s||e).trim()})}};(()=>{let o=i.innerHeight,n=s.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;n.nextNode();){let t=n.currentNode;if(t.getBoundingClientRect().top<o||r.scanFullPage){let i=e(t);if(i)for(let t=0;t<i.length;t++)a(i[t])}}})()}}try{return new i(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},81582:function(t,e,i){"use strict";var o=i(31635),s=i(81937),n=i(84839),r=i(28077),a=i(91206);i(69023);var l=i(2923);class c extends a.Plugin{afterInit(t){}__onTab(t){if(t.key===s.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){let e=(0,l.onTabInsideLi)(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,o.__decorate)([(0,n.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,o.__decorate)([(0,n.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},81875:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>'},81937:function(t,e,i){"use strict";i.r(e),i.d(e,{ACCURACY:function(){return U},APP_VERSION:function(){return o},BASE_PATH:function(){return td},BASE_PATH_IS_MIN:function(){return tp},BR:function(){return V},CLIPBOARD_ID:function(){return tg},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return te},ES:function(){return s},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return x},INSERT_AS_HTML:function(){return ti},INSERT_AS_TEXT:function(){return ts},INSERT_CLEAR_HTML:function(){return to},INSERT_ONLY_TEXT:function(){return tn},INVISIBLE_SPACE:function(){return p},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return _},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return n},IS_ES_NEXT:function(){return r},IS_IE:function(){return X},IS_INLINE:function(){return E},IS_MAC:function(){return ta},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return tl},KEY_ALT:function(){return N},KEY_BACKSPACE:function(){return j},KEY_DELETE:function(){return q},KEY_DOWN:function(){return B},KEY_ENTER:function(){return P},KEY_ESC:function(){return A},KEY_F3:function(){return F},KEY_LEFT:function(){return M},KEY_META:function(){return k},KEY_RIGHT:function(){return R},KEY_SPACE:function(){return O},KEY_TAB:function(){return L},KEY_UP:function(){return z},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return tt},MODE_SOURCE:function(){return G},MODE_SPLIT:function(){return K},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return f},NEARBY:function(){return H},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return $},PASSIVE_EVENTS:function(){return tv},SAFE_COUNT_CHANGE_CALL:function(){return tr},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return t_},SPACE_REG_EXP:function(){return v},SPACE_REG_EXP_END:function(){return y},SPACE_REG_EXP_START:function(){return b},TEMP_ATTR:function(){return tf},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return J},TEXT_RTF:function(){return Q},TOKENS:function(){return d},globalDocument:function(){return S},globalWindow:function(){return w},lang:function(){return tm}});let o="4.8.3",s="es2021",n=!0,r=!0,a=!0,l=!1,c=!0,u="https://xdsoft.net/jodit/",h=()=>l=!0,d={},p="\uFEFF",f=" ",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,_=()=>/^[\uFEFF]+/g,v=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="u">typeof window?window:void 0,S="u">typeof document?document:void 0,C=/^(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,E=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],x=new Set([...T,"br","hr"]),D=new Set(T),k="Meta",j="Backspace",L="Tab",P="Enter",A="Escape",N="Alt",M="ArrowLeft",z="ArrowUp",R="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,z,B,R,M,P,A,F,L],V="br",$="p",Y=1,G=2,K=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),J=X?"text":"text/plain",Z=X?"html":"text/html",Q=X?"rtf":"text/rtf",tt="jodit-selection_marker",te=300,ti="insert_as_html",to="insert_clear_html",ts="insert_as_text",tn="insert_only_text",tr=10,ta=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),tl={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ta?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},tc=t=>{let e=t.split("/");return/\.js/.test(e[e.length-1])?{basePath:e.slice(0,e.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:tu,isMin:th}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return tc(t.src);let e=S.querySelectorAll("script[src]");return e&&e.length?tc(e[e.length-1].src):tc(w.location.href)})(),td=tu,tp=th,tf="data-jodit-temp",tm={},tg="clipboard",t_="source-consumer",tv=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},81987:function(t,e,i){"use strict";i.d(e,{Mods:function(){return s}});var o=i(18303);class s{afterSetMod(t,e){}setMod(t,e,i){t=t.toLowerCase();let s=this.mods[t];if(s===e)return this;let n=`${this.componentName}_${t}_`,r=(i||this.container).classList;return null!=s&&r.remove(`${n}${s.toString().toLowerCase()}`),(0,o.isVoid)(e)||""===e||r.add(`${n}${e.toString().toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},82147:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},82166: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,{isHtmlFromWord:function(){return o}})},82495:function(t,e,i){"use strict";i.d(e,{createSourceEditor:function(){return n}});var o=i(65946),s=i(8105);function n(t,e,i,n,r){let a;if((0,o.isFunction)(t))a=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){a=new s.AceEditor(e,i,n,r);break}default:a=new s.TextAreaEditor(e,i,n,r)}return a.init(e),a.onReadyAlways(()=>{a.setReadOnly(e.o.readonly)}),a}},82658:function(t,e,i){"use strict";i.d(e,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return s.cleanFromWord},htmlspecialchars:function(){return n.htmlspecialchars},nl2br:function(){return r.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var o=i(30893),s=i(1277),n=i(6609),r=i(48838),a=i(48155),l=i(22852)},82794:function(t,e,i){"use strict";i.d(e,{toggleAttributes:function(){return m}});var o=i(81937),s=i(23211),n=i(28077),r=i(28686),a=i(19147),l=i(18073),c=i(74264),u=i(93640),h=i(80991),d=i(36400),p=i(98394);let f="toggleAttributes";function m(t,e,i,_,v=!1){if(!v&&t.isApplied(e,f))return _;v||t.setApplied(e,f);let{attributes:b}=t.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(f=>{var m,y,w;let S=b[f];switch(f){case"style":m=_,(0,u.assert)((0,r.isPlainObject)(S)&&(0,l.size)(S),"Style must be an object"),Object.keys(S).forEach(r=>{let l=e.style.getPropertyValue((0,c.kebabCase)(r)),u=S[r];if(""!==l||null!=u){let c,f;if((c=i.create.element(e.tagName.toLowerCase())).style.cssText=e.style.cssText,(function(t){if(void 0!==(0,d.dataBind)(t,"shadowRoot"))return(0,d.dataBind)(t,"shadowRoot");let e=(0,n.getContainer)(t),i=o.globalDocument.createElement("iframe");(0,h.css)(i,{width:0,height:0,position:"absolute",border:0}),i.src="about:blank",e.appendChild(i);let s=i.contentWindow?.document,r=s?s.body:t.od.body;return(0,d.dataBind)(t,"shadowRoot",r),r})(i).appendChild(c),f=(0,h.css)(c,r),s.Dom.safeRemove(c),f===(0,a.normalizeCssValue)(r,u)){if(!l)return;v||(0,h.css)(e,r,null),m=g(t,e,m=p.UNSET);return}m=p.CHANGE,v||((0,h.css)(e,r,u),m=g(t,e,m))}}),_=m;break;case"className":case"class":let C;y=_,(0,u.assert)((0,r.isString)(S),"Class name must be a string"),C=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),e.classList.contains(S.toString())?(y=p.UNSET,v||(e.classList.remove(S),0===e.classList.length&&((0,u.attr)(e,"class",null),C(y,e,"class",null)))):(y=p.CHANGE,v||(e.classList.add(S),C(y,e,"class",S))),_=y;break;default:let E;w=_,(0,u.assert)((0,r.isString)(S)||(0,r.isNumber)(S)||(0,r.isBoolean)(S)||null==S,"Attribute value must be a string or number or boolean or null"),E=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),(0,u.attr)(e,f)===S?(v||(0,u.attr)(e,f,null),w=p.UNSET,v||E(w,e,f,S)):(w=p.CHANGE,v||((0,u.attr)(e,f,S),E(w,e,f,S))),_=w}}),_}function g(t,e,i){return(0,u.attr)(e,"style")||((0,u.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(s.Dom.unwrap(e),i=p.UNWRAP)),i}},83207:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},83215:function(t,e,i){"use strict";i.d(e,{innerWidth:function(){return o}});let o=(t,e)=>{let i=e.getComputedStyle(t);return t.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},83335:function(t,e,i){"use strict";i.d(e,{wrapUnwrappedText:function(){return n}});var o=i(23211),s=i(23175);function n(t,e,i){let n=i.editor,r=i.createInside,a=(t,e="previousSibling")=>{let r=t,a=t;for(;a&&!(0,s.isMarker)(a)&&!o.Dom.isTag(a,i.o.enter)&&(r=a,a=a[e]?a[e]:a.parentNode&&!o.Dom.isBlock(a.parentNode)&&a.parentNode!==n?a.parentNode:null,!o.Dom.isBlock(a)););return r},l=a(e),c=a(e,"nextSibling"),u=i.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let h=u.extractContents(),d=r.element(t.element);return d.appendChild(h),o.Dom.safeInsertNode(u,d),t.elementIsBlock&&o.Dom.isEmpty(d)&&!o.Dom.isTag(d.firstElementChild,"br")&&d.appendChild(r.element("br")),d}},83376:function(t,e,i){"use strict";i.d(e,{getBlockWrapper:function(){return function t(e,i,n=o.IS_BLOCK){let r=e,a=i.editor;do{if(!r||r===a)break;if(n.test(r.nodeName)){if(s.Dom.isLeaf(r))return r;return t(r.parentNode,i,/^li$/i)||r}r=r.parentNode}while(r&&r!==a)return null}}});var o=i(81937),s=i(23211)},83389:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},83653:function(t,e,i){"use strict";i.d(e,{isNormalNode:function(){return n}});var o=i(23211),s=i(23175);function n(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,s.isMarker)(t))}},84578:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return l}});var o=i(25045),s=i(81937),n=i(57821),r=i(98394),a=i(96127);class l{isApplied(t,e){let i=this.__applyMap.get(t);return!!i&&i[e]}setApplied(t,e){let i=this.__applyMap.get(t)??{};i[e]=!0,this.__applyMap.set(t,i)}get elementIsList(){return!!(this.options.element&&s.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&s.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:e}=this.options,i=e?Object.keys(e):[];try{i.forEach(i=>{t.e.on((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),(0,a.ApplyStyle)(t,this)}finally{i.forEach(i=>{t.e.off((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){(0,o._)(this,"options",void 0),(0,o._)(this,"__applyMap",void 0),this.options=t,this.__applyMap=new WeakMap}}},84839:function(t,e,i){"use strict";i.r(e),i.d(e,{autobind:function(){return o.autobind},cache:function(){return s.cache},cacheHTML:function(){return s.cacheHTML},cached:function(){return s.cached},component:function(){return n.component},debounce:function(){return r.debounce},derive:function(){return a.derive},getPropertyDescriptor:function(){return p.getPropertyDescriptor},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return r.throttle},wait:function(){return d.wait},watch:function(){return p.watch}});var o=i(49574),s=i(51676),n=i(91672),r=i(55184),a=i(24968),l=i(29200),c=i(35718),u=i(41360),h=i(77036),d=i(80840),p=i(68616)},85305:function(t,e,i){"use strict";i.d(e,{PluginSystem:function(){return d}});var o=i(25045),s=i(81937),n=i(28077),r=i(45664),a=i(28686),l=i(55810),c=i(3050),u=i(25974),h=i(86189);class d{get size(){return this.__items.size}add(t,e){this.__items.set((0,h.normalizeName)(t),e),n.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,h.normalizeName)(t))}remove(t){this.__items.delete((0,h.normalizeName)(t))}__getFullPluginsList(t){let e=[];return this.__items.forEach((i,o)=>{(!t||t.has(o))&&e.push([o,i])}),e}__init(t){let{extraList:e,disableList:i,filter:o}={extraList:t.o.extraPlugins.map(t=>(0,a.isString)(t)?{name:t}:t),disableList:new Set((0,r.splitArray)(t.o.disablePlugins).map(h.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},n=new Map,d={},p=new Set;t.__plugins=d;let f=()=>{if(t.isInDestruct)return;let e=!1;this.__getFullPluginsList(o).forEach(([o,s])=>{if(i.has(o)||n.has(o))return;let r=s?.requires;if(r&&(0,a.isArray)(r)&&r.length){if(r.some(t=>i.has(t)))return;if(!r.every(t=>n.has(t)))return void p.add(o)}e=!0;let c=(0,u.makeInstance)(t,s);if(!c){n.set(o,null),p.delete(o);return}(0,l.init)(t,o,s,c,n,p),d[o]=c}),e&&(t.e.fire("updatePlugins"),f())};e&&e.length&&(0,c.loadExtras)(this.__items,t,e,f),f(),t.e.on("beforeDestruct",()=>{Object.keys(d).forEach(e=>{let i=d[e];(0,a.isDestructable)(i)&&i.destruct(t),delete d[e]}),delete t.__plugins}),s.IS_PROD||p.size}wait(t){return new Promise(e=>{if(this.get(t))return e();let i=()=>{e(),n.eventEmitter.off(`plugin:${t}:ready`,i)};n.eventEmitter.on(`plugin:${t}:ready`,i)})}constructor(){(0,o._)(this,"__items",new Map)}}},85932:function(t,e,i){"use strict";i.d(e,{isString:function(){return s},isStringArray:function(){return n}});var o=i(17312);function s(t){return"string"==typeof t}function n(t){return(0,o.isArray)(t)&&s(t[0])}},86038:function(t,e,i){"use strict";i(5266).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},86122:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return s}});var o=i(4099);class s extends o.UIGroup{className(){return"FileBrowserFiles"}}},86189:function(t,e,i){"use strict";i.d(e,{normalizeName:function(){return s}});var o=i(74264);function s(t){return(0,o.kebabCase)(t).toLowerCase()}},86236:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(23211),r=i(28077),a=i(18855);i(88580);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){n.Dom.safeRemove(this.charCounter),n.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...t){super(...t),(0,o._)(this,"charCounter",null),(0,o._)(this,"wordCounter",null),(0,o._)(this,"reInit",()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()}),(0,o._)(this,"calc",this.j.async.throttle(()=>{let t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let e;e=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?t.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,s.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",e.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"").split((0,s.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout))}}r.pluginSystem.add("stat",l)},86581:function(t,e,i){"use strict";function o(t,e){let[i,o]=e.split("::");t.execCommand(i,null,o)}i.d(e,{execSpellCommand:function(){return o}})},86634:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},86878:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o.getContentWidth},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return n.innerWidth},offset:function(){return a.offset},position:function(){return l.position},size:function(){return r.size}});var o=i(54447),s=i(34027),n=i(83215),r=i(18073),a=i(69143),l=i(23599)},86899:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},87329:function(t,e,i){"use strict";i.d(e,{UITextArea:function(){return l}});var o=i(25045),s=i(31635),n=i(84839),r=i(91672),a=i(65273);class l extends a.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:e}=this.state;this.nativeInput.style.resize=e?"auto":"none",this.nativeInput.rows=t??5}constructor(t,e){super(t,e),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,size:5,resizable:!0}),(0,s.__decorate)([(0,n.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=(0,s.__decorate)([r.component],l)},87624:function(t,e,i){"use strict";i.d(e,{SentenceFinder:function(){return s.SentenceFinder},clearSelectionWrappers:function(){return o.clearSelectionWrappers},clearSelectionWrappersFromHTML:function(){return o.clearSelectionWrappersFromHTML},getSelectionWrappers:function(){return o.getSelectionWrappers},highlightTextRanges:function(){return o.highlightTextRanges}});var o=i(19213),s=i(59276)},87908:function(t,e,i){"use strict";var o=i(65946),s=i(29434),n=i(5266),r=i(223),a=i.n(r);n.Config.prototype.defaultLineHeight=null,s.Icon.set("line-height",a()),n.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(t,e,{control:i})=>(0,o.memorizeExec)(t,e,{control:i},t=>t)}},88329:function(t,e,i){"use strict";i.d(e,{Confirm:function(){return r}});var o=i(91565),s=i(53681),n=i(76841);function r(t,e,i){let r=this instanceof n.Dialog?this:new n.Dialog({closeOnClickOverlay:!0}),a=r.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=r.c.element("label");(0,o.isFunction)(e)&&(i=e,e=void 0),l.appendChild(r.c.fromHTML(t)),a.appendChild(l);let c=t=>()=>{i&&!1===i(t)||r.close()},u=(0,s.Button)(r,"cancel","Cancel"),h=(0,s.Button)(r,"ok","Yes");return u.onAction(c(!1)),h.onAction(c(!0)),r.e.on(a,"submit",()=>(c(!0)(),!1)),r.setFooter([h,u]),r.open(a,e||"&nbsp;",!0,!0),h.focus(),r}},88475:function(t,e,i){"use strict";i.d(e,{toArray:function(){return n}});var o=i(23283),s=i(43379);let n=function(...t){return((0,o.isNativeFunction)(Array.from)?Array.from:(0,s.reset)("Array.from")??Array.from).apply(Array,t)}},88497:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},88580:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.showCharsCounter=!0,o.Config.prototype.countHTMLChars=!1,o.Config.prototype.countTextSpaces=!1,o.Config.prototype.showWordsCounter=!0},88952:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206),u=i(4099),h=i(56490),d=i(4274);i(89873);class p extends c.Plugin{get popup(){return new h.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let e=this.elmsList,i=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,e,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,l.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(t,e,i){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||i!==this.previousTarget){let t;this.previousTarget=i;let o=this.j.o.popup[e];t=(0,l.isFunction)(o)?o(this.j,i,this.popup.close):o,(0,l.isArray)(t)&&(this.toolbar.build(t,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container),this.popup.setContent(t),this.type=e}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,l.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let e=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!e&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,l.splitArray)(this.j.o.toolbarInlineDisableFor).map(t=>t.toLowerCase()).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",e=>{if(this.toolbar===e){let e=this.toolbar.getButtonsNames();return(0,l.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let i=(0,l.isString)(t)?t:t.name;return i&&"|"!==i&&`
253
+ `}return t}constructor(i,s,n){(0,o._)(this,"css",{});const r=n||{},a=e=>{let i=e.selectorText.split(",").map(t=>t.trim()).sort().join(",");!1==!!this.css[i]&&(this.css[i]={});let o=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;e<o.length;e++){if(!o[e])continue;let s=o[e].split(":");s[0]=s[0].trim(),s[1]=s[1].trim(),this.css[i][s[0]]=s[1].replace(/var\(([^)]+)\)/g,(e,i)=>{let[o,s]=i.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(o.trim())||s||e).trim()})}};(()=>{let o=i.innerHeight,n=s.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,()=>NodeFilter.FILTER_ACCEPT);for(;n.nextNode();){let t=n.currentNode;if(t.getBoundingClientRect().top<o||r.scanFullPage){let i=e(t);if(i)for(let t=0;t<i.length;t++)a(i[t])}}})()}}try{return new i(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},81582:function(t,e,i){"use strict";var o=i(31635),s=i(81937),n=i(84839),r=i(28077),a=i(91206);i(69023);var l=i(2923);class c extends a.Plugin{afterInit(t){}__onTab(t){if(t.key===s.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){let e=(0,l.onTabInsideLi)(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,o.__decorate)([(0,n.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,o.__decorate)([(0,n.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),r.pluginSystem.add("tab",c)},81875:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg>'},81937:function(t,e,i){"use strict";i.r(e),i.d(e,{ACCURACY:function(){return U},APP_VERSION:function(){return o},BASE_PATH:function(){return td},BASE_PATH_IS_MIN:function(){return tp},BR:function(){return V},CLIPBOARD_ID:function(){return tg},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return te},ES:function(){return s},FAT_MODE:function(){return c},HOMEPAGE:function(){return u},INSEPARABLE_TAGS:function(){return x},INSERT_AS_HTML:function(){return ti},INSERT_AS_TEXT:function(){return ts},INSERT_CLEAR_HTML:function(){return to},INSERT_ONLY_TEXT:function(){return tn},INVISIBLE_SPACE:function(){return p},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return _},IS_BLOCK:function(){return C},IS_ES_MODERN:function(){return n},IS_ES_NEXT:function(){return r},IS_IE:function(){return X},IS_INLINE:function(){return E},IS_MAC:function(){return ta},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return tl},KEY_ALT:function(){return N},KEY_BACKSPACE:function(){return j},KEY_DELETE:function(){return q},KEY_DOWN:function(){return B},KEY_ENTER:function(){return P},KEY_ESC:function(){return A},KEY_F3:function(){return F},KEY_LEFT:function(){return M},KEY_META:function(){return k},KEY_RIGHT:function(){return R},KEY_SPACE:function(){return O},KEY_TAB:function(){return L},KEY_UP:function(){return z},LIST_TAGS:function(){return I},MARKER_CLASS:function(){return tt},MODE_SOURCE:function(){return G},MODE_SPLIT:function(){return K},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return f},NEARBY:function(){return H},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return $},PASSIVE_EVENTS:function(){return tv},SAFE_COUNT_CHANGE_CALL:function(){return tr},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return t_},SPACE_REG_EXP:function(){return v},SPACE_REG_EXP_END:function(){return y},SPACE_REG_EXP_START:function(){return b},TEMP_ATTR:function(){return tf},TEXT_HTML:function(){return Z},TEXT_PLAIN:function(){return J},TEXT_RTF:function(){return Q},TOKENS:function(){return d},globalDocument:function(){return S},globalWindow:function(){return w},lang:function(){return tm}});let o="4.8.4",s="es2021",n=!0,r=!0,a=!0,l=!1,c=!0,u="https://xdsoft.net/jodit/",h=()=>l=!0,d={},p="\uFEFF",f=" ",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,_=()=>/^[\uFEFF]+/g,v=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="u">typeof window?window:void 0,S="u">typeof document?document:void 0,C=/^(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,E=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,I=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],x=new Set([...T,"br","hr"]),D=new Set(T),k="Meta",j="Backspace",L="Tab",P="Enter",A="Escape",N="Alt",M="ArrowLeft",z="ArrowUp",R="ArrowRight",B="ArrowDown",O="Space",q="Delete",F="F3",H=5,U=10,W=[k,j,q,z,B,R,M,P,A,F,L],V="br",$="p",Y=1,G=2,K=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),J=X?"text":"text/plain",Z=X?"html":"text/html",Q=X?"rtf":"text/rtf",tt="jodit-selection_marker",te=300,ti="insert_as_html",to="insert_clear_html",ts="insert_as_text",tn="insert_only_text",tr=10,ta=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.navigator.platform),tl={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ta?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},tc=t=>{let e=t.split("/");return/\.js/.test(e[e.length-1])?{basePath:e.slice(0,e.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:tu,isMin:th}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return tc(t.src);let e=S.querySelectorAll("script[src]");return e&&e.length?tc(e[e.length-1].src):tc(w.location.href)})(),td=tu,tp=th,tf="data-jodit-temp",tm={},tg="clipboard",t_="source-consumer",tv=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},81987:function(t,e,i){"use strict";i.d(e,{Mods:function(){return s}});var o=i(18303);class s{afterSetMod(t,e){}setMod(t,e,i){t=t.toLowerCase();let s=this.mods[t];if(s===e)return this;let n=`${this.componentName}_${t}_`,r=(i||this.container).classList;return null!=s&&r.remove(`${n}${s.toString().toLowerCase()}`),(0,o.isVoid)(e)||""===e||r.add(`${n}${e.toString().toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},82147:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},82166: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,{isHtmlFromWord:function(){return o}})},82495:function(t,e,i){"use strict";i.d(e,{createSourceEditor:function(){return n}});var o=i(65946),s=i(8105);function n(t,e,i,n,r){let a;if((0,o.isFunction)(t))a=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){a=new s.AceEditor(e,i,n,r);break}default:a=new s.TextAreaEditor(e,i,n,r)}return a.init(e),a.onReadyAlways(()=>{a.setReadOnly(e.o.readonly)}),a}},82658:function(t,e,i){"use strict";i.d(e,{applyStyles:function(){return o.applyStyles},cleanFromWord:function(){return s.cleanFromWord},htmlspecialchars:function(){return n.htmlspecialchars},nl2br:function(){return r.nl2br},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags}});var o=i(30893),s=i(1277),n=i(6609),r=i(48838),a=i(48155),l=i(22852)},82794:function(t,e,i){"use strict";i.d(e,{toggleAttributes:function(){return m}});var o=i(81937),s=i(23211),n=i(28077),r=i(28686),a=i(19147),l=i(18073),c=i(74264),u=i(93640),h=i(80991),d=i(36400),p=i(98394);let f="toggleAttributes";function m(t,e,i,_,v=!1){if(!v&&t.isApplied(e,f))return _;v||t.setApplied(e,f);let{attributes:b}=t.options;return b&&(0,l.size)(b)>0&&Object.keys(b).forEach(f=>{var m,y,w;let S=b[f];switch(f){case"style":m=_,(0,u.assert)((0,r.isPlainObject)(S)&&(0,l.size)(S),"Style must be an object"),Object.keys(S).forEach(r=>{let l=e.style.getPropertyValue((0,c.kebabCase)(r)),u=S[r];if(""!==l||null!=u){let c,f;if((c=i.create.element(e.tagName.toLowerCase())).style.cssText=e.style.cssText,(function(t){if(void 0!==(0,d.dataBind)(t,"shadowRoot"))return(0,d.dataBind)(t,"shadowRoot");let e=(0,n.getContainer)(t),i=o.globalDocument.createElement("iframe");(0,h.css)(i,{width:0,height:0,position:"absolute",border:0}),i.src="about:blank",e.appendChild(i);let s=i.contentWindow?.document,r=s?s.body:t.od.body;return(0,d.dataBind)(t,"shadowRoot",r),r})(i).appendChild(c),f=(0,h.css)(c,r),s.Dom.safeRemove(c),f===(0,a.normalizeCssValue)(r,u)){if(!l)return;v||(0,h.css)(e,r,null),m=g(t,e,m=p.UNSET);return}m=p.CHANGE,v||((0,h.css)(e,r,u),m=g(t,e,m))}}),_=m;break;case"className":case"class":let C;y=_,(0,u.assert)((0,r.isString)(S),"Class name must be a string"),C=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),e.classList.contains(S.toString())?(y=p.UNSET,v||(e.classList.remove(S),0===e.classList.length&&((0,u.attr)(e,"class",null),C(y,e,"class",null)))):(y=p.CHANGE,v||(e.classList.add(S),C(y,e,"class",S))),_=y;break;default:let E;w=_,(0,u.assert)((0,r.isString)(S)||(0,r.isNumber)(S)||(0,r.isBoolean)(S)||null==S,"Attribute value must be a string or number or boolean or null"),E=i.e.fire.bind(i.e,`${p._PREFIX}AfterToggleAttribute`),(0,u.attr)(e,f)===S?(v||(0,u.attr)(e,f,null),w=p.UNSET,v||E(w,e,f,S)):(w=p.CHANGE,v||((0,u.attr)(e,f,S),E(w,e,f,S))),_=w}}),_}function g(t,e,i){return(0,u.attr)(e,"style")||((0,u.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(s.Dom.unwrap(e),i=p.UNWRAP)),i}},83207:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg>'},83215:function(t,e,i){"use strict";i.d(e,{innerWidth:function(){return o}});let o=(t,e)=>{let i=e.getComputedStyle(t);return t.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}},83335:function(t,e,i){"use strict";i.d(e,{wrapUnwrappedText:function(){return n}});var o=i(23211),s=i(23175);function n(t,e,i){let n=i.editor,r=i.createInside,a=(t,e="previousSibling")=>{let r=t,a=t;for(;a&&!(0,s.isMarker)(a)&&!o.Dom.isTag(a,i.o.enter)&&(r=a,a=a[e]?a[e]:a.parentNode&&!o.Dom.isBlock(a.parentNode)&&a.parentNode!==n?a.parentNode:null,!o.Dom.isBlock(a)););return r},l=a(e),c=a(e,"nextSibling"),u=i.s.createRange();u.setStartBefore(l),u.setEndAfter(c);let h=u.extractContents(),d=r.element(t.element);return d.appendChild(h),o.Dom.safeInsertNode(u,d),t.elementIsBlock&&o.Dom.isEmpty(d)&&!o.Dom.isTag(d.firstElementChild,"br")&&d.appendChild(r.element("br")),d}},83376:function(t,e,i){"use strict";i.d(e,{getBlockWrapper:function(){return function t(e,i,n=o.IS_BLOCK){let r=e,a=i.editor;do{if(!r||r===a)break;if(n.test(r.nodeName)){if(s.Dom.isLeaf(r))return r;return t(r.parentNode,i,/^li$/i)||r}r=r.parentNode}while(r&&r!==a)return null}}});var o=i(81937),s=i(23211)},83389:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg>'},83653:function(t,e,i){"use strict";i.d(e,{isNormalNode:function(){return n}});var o=i(23211),s=i(23175);function n(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,s.isMarker)(t))}},84578:function(t,e,i){"use strict";i.d(e,{CommitStyle:function(){return l}});var o=i(25045),s=i(81937),n=i(57821),r=i(98394),a=i(96127);class l{isApplied(t,e){let i=this.__applyMap.get(t);return!!i&&i[e]}setApplied(t,e){let i=this.__applyMap.get(t)??{};i[e]=!0,this.__applyMap.set(t,i)}get elementIsList(){return!!(this.options.element&&s.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&s.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:e}=this.options,i=e?Object.keys(e):[];try{i.forEach(i=>{t.e.on((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),(0,a.ApplyStyle)(t,this)}finally{i.forEach(i=>{t.e.off((0,n.camelCase)(r._PREFIX+"_"+i),e[i])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){(0,o._)(this,"options",void 0),(0,o._)(this,"__applyMap",void 0),this.options=t,this.__applyMap=new WeakMap}}},84839:function(t,e,i){"use strict";i.r(e),i.d(e,{autobind:function(){return o.autobind},cache:function(){return s.cache},cacheHTML:function(){return s.cacheHTML},cached:function(){return s.cached},component:function(){return n.component},debounce:function(){return r.debounce},derive:function(){return a.derive},getPropertyDescriptor:function(){return p.getPropertyDescriptor},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return r.throttle},wait:function(){return d.wait},watch:function(){return p.watch}});var o=i(49574),s=i(51676),n=i(91672),r=i(55184),a=i(24968),l=i(29200),c=i(35718),u=i(41360),h=i(77036),d=i(80840),p=i(68616)},85305:function(t,e,i){"use strict";i.d(e,{PluginSystem:function(){return d}});var o=i(25045),s=i(81937),n=i(28077),r=i(45664),a=i(28686),l=i(55810),c=i(3050),u=i(25974),h=i(86189);class d{get size(){return this.__items.size}add(t,e){this.__items.set((0,h.normalizeName)(t),e),n.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,h.normalizeName)(t))}remove(t){this.__items.delete((0,h.normalizeName)(t))}__getFullPluginsList(t){let e=[];return this.__items.forEach((i,o)=>{(!t||t.has(o))&&e.push([o,i])}),e}__init(t){let{extraList:e,disableList:i,filter:o}={extraList:t.o.extraPlugins.map(t=>(0,a.isString)(t)?{name:t}:t),disableList:new Set((0,r.splitArray)(t.o.disablePlugins).map(h.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},n=new Map,d={},p=new Set;t.__plugins=d;let f=()=>{if(t.isInDestruct)return;let e=!1;this.__getFullPluginsList(o).forEach(([o,s])=>{if(i.has(o)||n.has(o))return;let r=s?.requires;if(r&&(0,a.isArray)(r)&&r.length){if(r.some(t=>i.has(t)))return;if(!r.every(t=>n.has(t)))return void p.add(o)}e=!0;let c=(0,u.makeInstance)(t,s);if(!c){n.set(o,null),p.delete(o);return}(0,l.init)(t,o,s,c,n,p),d[o]=c}),e&&(t.e.fire("updatePlugins"),f())};e&&e.length&&(0,c.loadExtras)(this.__items,t,e,f),f(),t.e.on("beforeDestruct",()=>{Object.keys(d).forEach(e=>{let i=d[e];(0,a.isDestructable)(i)&&i.destruct(t),delete d[e]}),delete t.__plugins}),s.IS_PROD||p.size}wait(t){return new Promise(e=>{if(this.get(t))return e();let i=()=>{e(),n.eventEmitter.off(`plugin:${t}:ready`,i)};n.eventEmitter.on(`plugin:${t}:ready`,i)})}constructor(){(0,o._)(this,"__items",new Map)}}},85932:function(t,e,i){"use strict";i.d(e,{isString:function(){return s},isStringArray:function(){return n}});var o=i(17312);function s(t){return"string"==typeof t}function n(t){return(0,o.isArray)(t)&&s(t[0])}},86038:function(t,e,i){"use strict";i(5266).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},86122:function(t,e,i){"use strict";i.d(e,{FileBrowserFiles:function(){return s}});var o=i(4099);class s extends o.UIGroup{className(){return"FileBrowserFiles"}}},86189:function(t,e,i){"use strict";i.d(e,{normalizeName:function(){return s}});var o=i(74264);function s(t){return(0,o.kebabCase)(t).toLowerCase()}},86236:function(t,e,i){"use strict";var o=i(25045),s=i(81937),n=i(23211),r=i(28077),a=i(18855);i(88580);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){n.Dom.safeRemove(this.charCounter),n.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(...t){super(...t),(0,o._)(this,"charCounter",null),(0,o._)(this,"wordCounter",null),(0,o._)(this,"reInit",()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()}),(0,o._)(this,"calc",this.j.async.throttle(()=>{let t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let e;e=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?t.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,s.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",e.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,s.INVISIBLE_SPACE_REG_EXP)(),"").split((0,s.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout))}}r.pluginSystem.add("stat",l)},86581:function(t,e,i){"use strict";function o(t,e){let[i,o]=e.split("::");t.execCommand(i,null,o)}i.d(e,{execSpellCommand:function(){return o}})},86634:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},86878:function(t,e,i){"use strict";i.d(e,{getContentWidth:function(){return o.getContentWidth},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return n.innerWidth},offset:function(){return a.offset},position:function(){return l.position},size:function(){return r.size}});var o=i(54447),s=i(34027),n=i(83215),r=i(18073),a=i(69143),l=i(23599)},86899:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg>'},87329:function(t,e,i){"use strict";i.d(e,{UITextArea:function(){return l}});var o=i(25045),s=i(31635),n=i(84839),r=i(91672),a=i(65273);class l extends a.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:e}=this.state;this.nativeInput.style.resize=e?"auto":"none",this.nativeInput.rows=t??5}constructor(t,e){super(t,e),(0,o._)(this,"state",{...l.defaultState}),Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}}(0,o._)(l,"defaultState",{...a.UIInput.defaultState,size:5,resizable:!0}),(0,s.__decorate)([(0,n.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=(0,s.__decorate)([r.component],l)},87624:function(t,e,i){"use strict";i.d(e,{SentenceFinder:function(){return s.SentenceFinder},clearSelectionWrappers:function(){return o.clearSelectionWrappers},clearSelectionWrappersFromHTML:function(){return o.clearSelectionWrappersFromHTML},getSelectionWrappers:function(){return o.getSelectionWrappers},highlightTextRanges:function(){return o.highlightTextRanges}});var o=i(19213),s=i(59276)},87908:function(t,e,i){"use strict";var o=i(65946),s=i(29434),n=i(5266),r=i(223),a=i.n(r);n.Config.prototype.defaultLineHeight=null,s.Icon.set("line-height",a()),n.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(t,e,{control:i})=>(0,o.memorizeExec)(t,e,{control:i},t=>t)}},88329:function(t,e,i){"use strict";i.d(e,{Confirm:function(){return r}});var o=i(91565),s=i(53681),n=i(76841);function r(t,e,i){let r=this instanceof n.Dialog?this:new n.Dialog({closeOnClickOverlay:!0}),a=r.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=r.c.element("label");(0,o.isFunction)(e)&&(i=e,e=void 0),l.appendChild(r.c.fromHTML(t)),a.appendChild(l);let c=t=>()=>{i&&!1===i(t)||r.close()},u=(0,s.Button)(r,"cancel","Cancel"),h=(0,s.Button)(r,"ok","Yes");return u.onAction(c(!1)),h.onAction(c(!0)),r.e.on(a,"submit",()=>(c(!0)(),!1)),r.setFooter([h,u]),r.open(a,e||"&nbsp;",!0,!0),h.focus(),r}},88475:function(t,e,i){"use strict";i.d(e,{toArray:function(){return n}});var o=i(23283),s=i(43379);let n=function(...t){return((0,o.isNativeFunction)(Array.from)?Array.from:(0,s.reset)("Array.from")??Array.from).apply(Array,t)}},88497:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},88580:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.showCharsCounter=!0,o.Config.prototype.countHTMLChars=!1,o.Config.prototype.countTextSpaces=!1,o.Config.prototype.showWordsCounter=!0},88952:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(27795),a=i(28077),l=i(65946),c=i(91206),u=i(4099),h=i(56490),d=i(4274);i(89873);class p extends c.Plugin{get popup(){return new h.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let e=this.elmsList,i=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,e,this.j.editor);if(i&&this.canShowPopupForType(i.nodeName.toLowerCase()))return this.showPopup(()=>(0,l.position)(i,this.j),i.nodeName.toLowerCase(),i),!1}showPopup(t,e,i){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||i!==this.previousTarget){let t;this.previousTarget=i;let o=this.j.o.popup[e];t=(0,l.isFunction)(o)?o(this.j,i,this.popup.close):o,(0,l.isArray)(t)&&(this.toolbar.build(t,i),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container),this.popup.setContent(t),this.type=e}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,l.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let e=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!e&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,l.splitArray)(this.j.o.toolbarInlineDisableFor).map(t=>t.toLowerCase()).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",e=>{if(this.toolbar===e){let e=this.toolbar.getButtonsNames();return(0,l.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let i=(0,l.isString)(t)?t:t.name;return i&&"|"!==i&&`
254
254
  `!==i&&!e.includes(i)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(t,e,i)=>{this.showPopup(e,i||((0,l.isString)(t)?t:t.nodeName),(0,l.isString)(t)?void 0:t)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(t){if(t&&t.target&&u.UIElement.closestElement(t.target,h.Popup))return;let{snapRange:e}=this,{range:i}=this.j.s;(!e||i.collapsed||i.startContainer!==e.startContainer||i.startOffset!==e.startOffset||i.endContainer!==e.endContainer||i.endOffset!==e.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let t="selection",e=this.j.s.sel,i=this.j.s.range;if(e?.isCollapsed||this.isSelectedTarget(i)){this.type===t&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>i.getBoundingClientRect(),t)}isSelectedTarget(t){let e=t.startContainer;return r.Dom.isElement(e)&&e===t.endContainer&&r.Dom.isTag(e.childNodes[t.startOffset],new Set((0,l.keys)(this.j.o.popup,!1)))&&t.startOffset===t.endOffset-1}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){let t=this.elmsList;return t.map(t=>(0,l.camelCase)("click_"+t)).concat(t.map(t=>(0,l.camelCase)("touchstart_"+t))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(t){this.showPopup(()=>{if(t)return t;let{range:e}=this.j.s;return e.getBoundingClientRect()},"toolbar")}constructor(...t){super(...t),(0,o._)(this,"type",null),(0,o._)(this,"previousTarget",void 0),(0,o._)(this,"snapRange",null),(0,o._)(this,"elmsList",(0,l.keys)(this.j.o.popup,!1).filter(t=>!this.isExcludedTarget(t)))}}(0,o._)(p,"requires",["select"]),(0,s.__decorate)([n.cache],p.prototype,"popup",null),(0,s.__decorate)([n.cache],p.prototype,"toolbar",null),(0,s.__decorate)([n.autobind],p.prototype,"onClick",null),(0,s.__decorate)([(0,n.wait)(t=>!t.j.isLocked)],p.prototype,"showPopup",null),(0,s.__decorate)([(0,n.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),n.autobind],p.prototype,"hidePopup",null),(0,s.__decorate)([(0,n.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,s.__decorate)([n.autobind],p.prototype,"onSelectionStart",null),(0,s.__decorate)([n.autobind],p.prototype,"onSelectionEnd",null),(0,s.__decorate)([(0,n.debounce)(t=>t.defaultTimeout)],p.prototype,"onSelectionChange",null),(0,s.__decorate)([n.autobind],p.prototype,"showInlineToolbar",null),a.pluginSystem.add("inlinePopup",p)},89081:function(t,e,i){"use strict";i.d(e,{unwrapChildren:function(){return a}});var o=i(23211),s=i(93640),n=i(9703),r=i(73019);function a(t,e){let i,a=[],l=[],c=t.options.attributes?.style;if(e.firstChild){let u=o.Dom.eachGen(e),h=u.next();for(;!h.done;){let e=h.value;(0,r.isSuitElement)(t,e,!0)&&(!c||(0,n.hasSameStyleKeys)(e,c))?(void 0===i&&(i=!0),a.push(e)):c&&(0,r.isSameStyleChild)(t,e)?(void 0===i&&(i=!1),l.push(()=>{(0,s.css)(e,Object.keys(c).reduce((t,e)=>(t[e]=null,t),{})),(0,s.attr)(e,"style")||(0,s.attr)(e,"style",null),(0,s.attr)(e,"style")||e.nodeName.toLowerCase()!==t.element||a.push(e)})):o.Dom.isEmptyTextNode(e)||void 0!==i||(i=!1),h=u.next()}}return l.forEach(t=>t()),a.forEach(o.Dom.unwrap),!!i}},89097:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg>'},89308:function(t,e,i){"use strict";i.d(e,{get:function(){return n}});var o=i(85932),s=i(18303);function n(t,e){if(!(0,o.isString)(t)||!t.length)return null;let i=t.split("."),n=e;try{for(let t of i){if((0,s.isVoid)(n[t]))return null;n=n[t]}}catch{return null}return(0,s.isVoid)(n)?null:n}},89317:function(t,e,i){"use strict";var o=i(17312),s=i(41324),n=i.n(s),r=i(63837),a=i(53414);let l={};l={ar:n(),cs_cz:n(),de:n(),en:r,es:n(),fi:n(),fr:n(),he:n(),hu:n(),id:n(),it:n(),ja:n(),ko:n(),mn:n(),nl:n(),no:n(),pl:n(),pt_br:n(),ru:n(),tr:n(),ua:n(),zh_cn:n(),zh_tw:n()};let c=t=>t?t.default||t:{},u={};(0,o.isArray)(c(a))&&c(a).forEach((t,e)=>{u[e]=t}),Object.keys(l).forEach(t=>{let e=c(l[t]);(0,o.isArray)(e)?(l[t]={},e.forEach((e,i)=>{l[t][u[i]]=e})):l[t]=e}),e.default=l},89446:function(t,e,i){"use strict";i.d(e,{buildData:function(){return s}});var o=i(65946);function s(t,e){if((0,o.isFunction)(t.o.buildData))return t.o.buildData.call(t,e);let i=t.ow.FormData;if(void 0!==i){if(e instanceof i||(0,o.isString)(e))return e;let t=new i;return Object.keys(e).forEach(i=>{t.append(i,e[i])}),t}return e}},89636:function(t,e,i){"use strict";i.d(e,{TabsWidget:function(){return l}});var o=i(16964),s=i(23211),n=i(91565),r=i(7909),a=i(4099);let l=(t,e,i)=>{let l=t.c.div("jodit-tabs"),c=t.c.div("jodit-tabs__wrapper"),u=t.c.div("jodit-tabs__buttons");(0,r.attr)(u,{role:"tablist","aria-orientation":"horizontal"});let h={},d=[],p="";l.appendChild(u),l.appendChild(c);let f=t=>{h[t]&&(d.forEach(t=>{t.state.activated=!1}),Object.values(h).forEach(({tab:t})=>t.classList.remove("jodit-tab_active")),h[t].button.state.activated=!0,h[t].tab.classList.add("jodit-tab_active"))};if(e.forEach(({icon:l,name:m,content:g})=>{let _=t.c.div("jodit-tab");(0,r.attr)(_,{role:"tabpanel"});let v=(0,a.Button)(t,l||m,m);v.state.role="tab",t.e.on(v.container,"pointerdown",t=>t.preventDefault()),p||(p=m),u.appendChild(v.container),d.push(v),v.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+e.length),(0,n.isFunction)(g)?_.appendChild(t.c.div("jodit-tab_empty")):_.appendChild(o.Component.isInstanceOf(g,a.UIElement)?g.container:g),c.appendChild(_),v.onAction(()=>(f(m),(0,n.isFunction)(g)&&!s.Dom.isElement(g)&&g.call(t),i&&(i.activeTab=m),!1)),h[m]={button:v,tab:_}}),Object.values(h).forEach(({button:t})=>{t.container.style.width=(100/e.length).toFixed(10)+"%"}),f(i&&i.activeTab&&h[i.activeTab]?i.activeTab:p),i){let t=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(e){t=e,f(e)}})}return l}},89817:function(t,e,i){"use strict";i.d(e,{moveNodeInsideStart:function(){return n}});var o=i(81937),s=i(23211);function n(t,e,i){let n=s.Dom.findSibling(e,i),r=s.Dom.findSibling(e,!i);for(;s.Dom.isElement(n)&&!s.Dom.isTag(n,o.INSEPARABLE_TAGS)&&s.Dom.isContentEditable(n,t.editor)&&(!r||!s.Dom.closest(e,s.Dom.isElement,t.editor));)i||!n.firstChild?n.appendChild(e):s.Dom.before(n.firstChild,e),n=s.Dom.sibling(e,i),r=s.Dom.sibling(e,!i)}},89827:function(t,e,i){"use strict";function o(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}i.d(e,{checkNotCollapsed:function(){return o}})},89873:function(t,e,i){"use strict";var o=i(29434),s=i(5266),n=i(70235),r=i(17849),a=i(466),l=i(75711),c=i(59399),u=i(38681),h=i.n(u),d=i(64637),p=i.n(d),f=i(94190),m=i.n(f),g=i(51957),_=i.n(g),v=i(71940),b=i.n(v),y=i(43218),w=i.n(y),S=i(48007),C=i.n(S);s.Config.prototype.toolbarInline=!0,s.Config.prototype.toolbarInlineForSelection=!1,s.Config.prototype.toolbarInlineDisableFor=[],s.Config.prototype.toolbarInlineDisabledButtons=["source"],o.Icon.set("addcolumn",h()).set("addrow",p()).set("merge",m()).set("th",w()).set("splitg",_()).set("splitv",b()).set("th-list",C()),s.Config.prototype.popup={a:n.default,img:l.default,cells:r.default,toolbar:c.default,jodit:a.default,iframe:a.default,"jodit-media":a.default,selection:["bold","underline","italic","ul","ol",`
255
255
  `,"outdent","indent","fontsize","brush","cut",`
256
256
  `,"paragraph","link","align","dots"]}},90204:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(28077),a=i(7909),l=i(91206);i(24268);var c=i(33494);class u extends l.Plugin{afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,a.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}constructor(t){super(t),(0,o._)(this,"buttons",[{group:"state",name:"spellcheck"}]),(0,r.extendLang)(c)}}(0,s.__decorate)([n.autobind],u.prototype,"toggleSpellcheck",null),r.pluginSystem.add("spellcheck",u)},90826:function(t,e,i){"use strict";var o=i(27795),s=i(28077),n=i(65946),r=i(29434),a=i(5266),l=i(15753),c=i(64831),u=i.n(c);r.Icon.set("image",u()),a.Config.prototype.controls.image={popup(t,e,i){let s=null;return e&&!o.Dom.isText(e)&&o.Dom.isHTMLElement(e)&&(o.Dom.isTag(e,"img")||(0,n.$$)("img",e).length)&&(s=o.Dom.isTag(e,"img")?e:(0,n.$$)("img",e)[0]),t.s.save(),(0,l.FileSelectorWidget)(t,{filebrowser(e){t.s.restore(),e.files&&e.files.forEach(i=>t.s.insertImage(e.baseurl+i,null,t.o.imageDefaultWidth)),i()},upload:!0,async url(e,o){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(e)&&(e="//"+e);let n=s||t.createInside.element("img");n.setAttribute("src",e),n.setAttribute("alt",o),s||await t.s.insertImage(n,null,t.o.imageDefaultWidth),i()}},s,i)},tags:["img"],tooltip:"Insert Image"},s.pluginSystem.add("image",function(t){t.registerButton({name:"image",group:"media"})})},90886:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(23211),a=i(28077),l=i(65946),c=i(18855),u=i(59400);i(34689);var h=i(27137),d=i(28771),p=i(670),f=i(47744),m=i(71552);class g extends c.Plugin{get form(){return new h.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,d.openImageEditorDialog)(this.j,this.state),openImagePopup:t=>(0,p.openImagePopup)(this.j,this.dialog,this.state,t)})}get dialog(){let{j:t}=this,e=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,m.applyValuesToImage)(t,this.state,this.state.sourceImage),t.synchronizeValues(),e.close()}),i.remove.onAction(()=>{t.s.removeNode(this.state.sourceImage),e.close()}),i.cancel.onAction(()=>{e.close()}),e.setHeader(t.i18n("Image properties")),e.setContent(this.form),e.setFooter([[i.cancel,i.remove],i.check]),t.e.on(e,"afterClose",()=>{this.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(this.state.sourceImage)}),e.setSize(t.o.image.dialogWidth),(0,l.markOwner)(t,e.container),e}get __buttons(){let{j:t}=this;return{check:(0,u.Button)(t,"ok","Apply","primary"),remove:(0,u.Button)(t,"bin","Delete"),cancel:(0,u.Button)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((t,e)=>(0,f.readValuesFromImage)(this.j,this.state).then(t,e)).catch(t=>{(0,l.isAbortError)(t)||this.dialog.message.error(t.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(t=>t.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(t=>t.state.disabled=!1)}afterInit(t){let e=this;t.e.on("afterConstructor changePlace",()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",i=>{let o=i.target;if(r.Dom.isTag(o,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;e.state.sourceImage=o,e.state.image=o.cloneNode(!0),t.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),e.open())}else i.stopImmediatePropagation(),t.s.select(o)})}).on("openImageProperties.imageproperties",t=>{e.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:t,values:e}=this.state;if(t.src)try{this.__lock();try{await t.decode()}catch(t){}if(this.state.sizeIsLocked&&(0,l.isNumeric)(e.imageWidth)){let t=parseFloat(e.imageWidth.toString());e.imageHeight=Math.round(t/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",t)}catch(t){this.j.alert(t.message)}finally{this.__unlock()}}beforeDestruct(t){Object.values((0,n.cached)(this,"__buttons")??{}).forEach(t=>t.destruct()),(0,n.cached)(this,"dialog")?.destruct(),(0,n.cached)(this,"form")?.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}constructor(...t){super(...t),(0,o._)(this,"state",{image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:t,naturalHeight:e}=this.image;return t/e||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}}),(0,o._)(this,"activeTabState",{activeTab:"Image"})}}(0,s.__decorate)([n.cache],g.prototype,"form",null),(0,s.__decorate)([n.cache],g.prototype,"dialog",null),(0,s.__decorate)([n.cache],g.prototype,"__buttons",null),(0,s.__decorate)([(0,n.watch)("state.image")],g.prototype,"onStateValuesImageSrcChange",null),a.pluginSystem.add("imageProperties",g)},91017:function(t,e,i){"use strict";i.r(e),i.d(e,{ar:function(){return o},cs_cz:function(){return o},de:function(){return o},es:function(){return o},fa:function(){return o},fi:function(){return o},fr:function(){return o},he:function(){return o},hu:function(){return o},id:function(){return o},it:function(){return o},ja:function(){return o},ko:function(){return o},mn:function(){return o},nl:function(){return o},pl:function(){return o},pt_br:function(){return o},ru:function(){return o},tr:function(){return o},ua:function(){return o},zh_cn:function(){return o},zh_tw:function(){return o}});var o=i(41324)},91115:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg>'},91162:function(t,e,i){"use strict";i.d(e,{IndexedDBProvider:function(){return n},canUseIndexedDB:function(){return l},clearUseIndexedDBCache:function(){return a}});var o=i(25045),s=i(81937);class n{getDB(){return this.dbPromise||(this.dbPromise=new Promise((t,e)=>{let i=indexedDB.open(this.dbName,this.DB_VERSION);i.onerror=()=>{e(i.error)},i.onsuccess=()=>{t(i.result)},i.onupgradeneeded=t=>{let e=t.target.result;e.objectStoreNames.contains(this.storeName)||e.createObjectStore(this.storeName)}})),this.dbPromise}async performTransaction(t,e){try{let i=(await this.getDB()).transaction([this.storeName],t).objectStore(this.storeName),o=e(i);return new Promise((t,e)=>{o.onsuccess=()=>{t(o.result)},o.onerror=()=>{e(o.error)}})}catch(t){return Promise.reject(t)}}async set(t,e){try{await this.performTransaction("readwrite",i=>i.put(e,t))}catch(t){s.IS_PROD}return this}async delete(t){try{await this.performTransaction("readwrite",e=>e.delete(t))}catch{}return this}async get(t){try{return await this.performTransaction("readonly",e=>e.get(t))}catch{return}}async exists(t){try{let e=await this.performTransaction("readonly",e=>e.get(t));return void 0!==e}catch{return!1}}async clear(){try{await this.performTransaction("readwrite",t=>t.clear())}catch{}return this}async close(){if(this.dbPromise){try{(await this.dbPromise).close()}catch{}this.dbPromise=null}}async keys(){try{let t=await this.performTransaction("readonly",t=>t.getAllKeys());return t&&"object"==typeof t&&"then"in t&&(t=await t),t.map(t=>t+"")}catch{return[]}}async values(){try{let t=await this.performTransaction("readonly",t=>t.getAll());return t&&"object"==typeof t&&"then"in t&&(t=await t),t}catch{return[]}}async entries(){try{let[t,e]=await Promise.all([this.keys(),this.values()]);return t.map((t,i)=>[t,e[i]])}catch{return[]}}constructor(t="JoditDB",e="keyValueStore"){(0,o._)(this,"dbName",void 0),(0,o._)(this,"dbPromise",void 0),(0,o._)(this,"DB_VERSION",void 0),(0,o._)(this,"storeName",void 0),this.dbName=t,this.dbPromise=null,this.DB_VERSION=1,this.storeName=e}}let r=null;function a(){r=null}async function l(){if(null!=r)return r;try{if("u"<typeof indexedDB)return r=!1,!1;let t="___Jodit___"+Math.random().toString(),e=indexedDB.open(t);return r=await new Promise(i=>{e.onerror=()=>{i(!1)},e.onsuccess=()=>{indexedDB.deleteDatabase(t),i(!0)}})}catch{return r=!1,!1}}},91206:function(t,e,i){"use strict";i.d(e,{Plugin:function(){return o.Plugin}});var o=i(18855);i(85305)},91231:function(t,e,i){"use strict";i.d(e,{Async:function(){return o.Async}});var o=i(24735)},91321:function(t,e,i){"use strict";i.d(e,{completeUrl:function(){return s}});var o=i(81937);let s=t=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},91535:function(t,e,i){"use strict";i.d(e,{Alert:function(){return l}});var o=i(23211),s=i(78982),n=i(91565),r=i(53681),a=i(76841);function l(t,e,i,c="jodit-dialog_alert"){(0,n.isFunction)(e)&&(i=e,e=void 0);let u=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),h=u.c.div(c),d=(0,r.Button)(u,"ok","Ok");return(0,s.asArray)(t).forEach(t=>{h.appendChild(o.Dom.isNode(t)?t:u.c.fromHTML(t))}),d.onAction(()=>{i&&(0,n.isFunction)(i)&&!1===i(u)||u.close()}),u.setFooter([d]),u.open(h,e||"&nbsp;",!0,!0),d.focus(),u}},91560:function(t,e,i){"use strict";i.r(e),i.d(e,{allowAttributes:function(){return o.allowAttributes},fillEmptyParagraph:function(){return s.fillEmptyParagraph},removeEmptyTextNode:function(){return n.removeEmptyTextNode},removeInvTextNodes:function(){return r.removeInvTextNodes},replaceOldTags:function(){return a.replaceOldTags},sanitizeAttributes:function(){return l.sanitizeAttributes},tryRemoveNode:function(){return c.tryRemoveNode}});var o=i(95559),s=i(39188),n=i(94561),r=i(53514),a=i(35104),l=i(65015),c=i(27611)},91565:function(t,e,i){"use strict";function o(t){return"function"==typeof t}i.d(e,{isFunction:function(){return o}})},91672: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,{component:function(){return o}})},91678:function(t,e,i){"use strict";var o=i(28077),s=i(65946),n=i(29434),r=i(5266);i(40291);var a=i(52450),l=i.n(a),c=i(41111),u=i.n(c),h=i(49972),d=i.n(h),p=i(45062),f=i.n(p),m=i(18605),g=i.n(m),_=i(83389),v=i.n(_);o.pluginSystem.add("bold",function(t){let e=e=>{let i,o=r.Config.defaultOptions.controls[e],n={...o.css};return Object.keys(n).forEach(t=>{i||(i={}),i[t]=(0,s.isArray)(n[t])?n[t][0]:n[t]}),t.s.commitStyle({element:o.tags?o.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(e=>{t.registerButton({name:e,group:"font-style"})}),["superscript","subscript"].forEach(e=>{t.registerButton({name:e,group:"script"})}),t.registerCommand("bold",{exec:e,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:e,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:e,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:e}).registerCommand("subscript",{exec:e}).registerCommand("superscript",{exec:e})}),n.Icon.set("bold",l()).set("italic",u()).set("strikethrough",d()).set("subscript",f()).set("superscript",g()).set("underline",v())},91764:function(t,e,i){"use strict";i.d(e,{isURL:function(){return s}});var o=i(81937);function s(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let e=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(e.protocol)}catch(t){return!1}let e=o.globalDocument.createElement("a");return e.href=t,!!e.hostname}},91882:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg>'},92063:function(t,e,i){"use strict";i(5266).Config.prototype.showXPathInStatusbar=!0},93267:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg>'},93387:function(t,e,i){"use strict";i.d(e,{colorToHex:function(){return o}});let o=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let e=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!e)return"#000000";let i=parseInt(e[2],10),o=parseInt(e[3],10),s=(parseInt(e[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;s.length<6;)s="0"+s;return e[1]+"#"+s}},93637:function(t,e,i){"use strict";i(94358),i(42766),i(28286),i(63974),i(91678),i(58910),i(11018),i(43354),i(42462),i(30062),i(64222),i(43102),i(3678),i(49764),i(78690),i(50294),i(53390),i(69696),i(50982),i(2952),i(81144),i(90826),i(39978),i(90886),i(39e3),i(88952),i(64094),i(18210),i(50662),i(58354),i(68624),i(76830),i(74240),i(98792),i(23422),i(96730),i(7758),i(28346),i(198),i(49690),i(41134),i(59758),i(14248),i(72214),i(74522),i(30500),i(98988),i(2756),i(44322),i(13810),i(90204),i(86236),i(67582),i(11774),i(14774),i(81582),i(7994),i(30110),i(34142),i(22980),i(56894),i(52014),i(31262)},93640:function(t,e,i){"use strict";i.r(e),i.d(e,{$$:function(){return D.$$},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return v.ConnectionError},LimitedStack:function(){return j.LimitedStack},OptionsError:function(){return v.OptionsError},abort:function(){return v.abort},alignElement:function(){return o.alignElement},alreadyLoadedList:function(){return s.alreadyLoadedList},appendScriptAsync:function(){return s.appendScriptAsync},appendStyleAsync:function(){return s.appendStyleAsync},attr:function(){return l.attr},browser:function(){return c.browser},buildQuery:function(){return u.buildQuery},call:function(){return L.call},callPromise:function(){return L.callPromise},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return f.clearCenterAlign},cns:function(){return C.cns},completeUrl:function(){return h.completeUrl},connection:function(){return v.connection},convertMediaUrlToVideoEmbed:function(){return p.convertMediaUrlToVideoEmbed},css:function(){return f.css},cssPath:function(){return D.cssPath},ctrlKey:function(){return m.ctrlKey},dataBind:function(){return g.dataBind},defaultLanguage:function(){return _.defaultLanguage},error:function(){return v.error},fastClone:function(){return b.fastClone},get:function(){return y.get},getClassName:function(){return w.getClassName},getDataTransfer:function(){return L.getDataTransfer},getXPathByElement:function(){return D.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return S.humanSizeToBytes},inView:function(){return x.inView},isAbort:function(){return v.isAbort},isAtom:function(){return b.isAtom},keepNames:function(){return w.keepNames},keys:function(){return L.keys},loadImage:function(){return L.loadImage},loadNext:function(){return s.loadNext},loadNextStyle:function(){return s.loadNextStyle},markAsAtomic:function(){return b.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return L.markOwner},memorizeExec:function(){return L.memorizeExec},options:function(){return v.options},parseQuery:function(){return E.parseQuery},previewBox:function(){return I.previewBox},refs:function(){return D.refs},reset:function(){return T.reset},resolveElement:function(){return D.resolveElement},scrollIntoViewIfNeeded:function(){return x.scrollIntoViewIfNeeded},set:function(){return k.set}});var o=i(16849),s=i(47760),n=i(28712),r={};for(var a in n)0>["default","alignElement","clearAlign","hAlignElement","alreadyLoadedList","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(r[a]=(function(t){return n[t]}).bind(0,a));i.d(e,r);var l=i(7909),c=i(26136),u=i(36833),h=i(91321),d=i(77483),p=i(3856),f=i(80991),m=i(77213),g=i(36400),_=i(97228),v=i(33201),b=i(54794),y=i(89308),w=i(421),S=i(37427),C=i(49385),E=i(36310),I=i(57075),T=i(43379),x=i(60898),D=i(28723),k=i(52144),j=i(42820),L=i(71125)},93747:function(t,e,i){"use strict";i.d(e,{EventEmitter:function(){return h}});var o=i(25045),s=i(81937),n=i(32328),r=i(17312),a=i(91565),l=i(85932),c=i(33201),u=i(18869);class h{mute(t){return this.__mutedEvents.add(t??"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(t??"*"),this}__eachEvent(t,e){(0,n.splitArray)(t).map(t=>t.trim()).forEach(t=>{let i=t.split("."),o=i[1]||u.defaultNameSpace;e.call(this,i[0],o)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let e=new u.EventHandlersStore;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){let i=this.__doc.createEvent("HTMLEvents");(0,l.isString)(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,o){let n,u,h,p;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(n=this,u=t,h=e,p=i):(n=t,u=e,h=i,p=o),!((0,l.isString)(u)||(0,l.isStringArray)(u))||0===u.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(h))throw(0,c.error)("Need event handler");if((0,r.isArray)(n))return n.forEach(t=>{this.on(t,u,h,p)}),this;let f=n,m=this.__getStore(f),g=this,_=function(t,...e){if(!g.isMuted(t))return h&&h.call(this,...e)};return d(f)&&(_=function(t){if(!g.isMuted(t.type)&&(g.__prepareEvent(t),h&&!1===h.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(u,(t,e)=>{if(0===t.length)throw(0,c.error)("Need event name");if(!1===m.indexOf(t,e,h)){let i={event:t,originalCallback:h,syntheticCallback:_};if(m.set(t,e,i,p?.top),d(f)){let e=s.PASSIVE_EVENTS.has(t)?{passive:!0,capture:p?.capture??!1}:p?.capture??!1;_.options=e,f.addEventListener(t,_,e),this.__memoryDOMSubjectToHandler(f,_)}}}),this}__memoryDOMSubjectToHandler(t,e){let i=this.__domEventsMap.get(t)||new Set;i.add(e),this.__domEventsMap.set(t,i)}__unmemoryDOMSubjectToHandler(t,e){let 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 s,n,r,a;(0,l.isString)(t)||(0,l.isStringArray)(t)?(s=this,n=t,r=e,a=i):(s=t,n=e,r=i,a=o);let c=(...t)=>(this.off(s,n,c),r(...t));return this.on(s,n,c,a),this}off(t,e,i){let o,s,n;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(o=this,s=t,n=e):(o=t,s=e,n=i),(0,r.isArray)(o))return o.forEach(t=>{this.off(t,s,n)}),this;let c=o,h=this.__getStore(c);if(!((0,l.isString)(s)||(0,l.isStringArray)(s))||0===s.length)return h.namespaces().forEach(t=>{this.off(c,"."+t)}),this.__removeStoreFromSubject(c),this;let p=t=>{d(c)&&(c.removeEventListener(t.event,t.syntheticCallback,t.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(c,t.syntheticCallback))},f=(t,e)=>{if(""===t)return void h.events(e).forEach(t=>{""!==t&&f(t,e)});let i=h.get(t,e);if(i&&i.length)if((0,a.isFunction)(n)){let o=h.indexOf(t,e,n);!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(s,(t,e)=>{e===u.defaultNameSpace?h.namespaces().forEach(e=>{f(t,e)}):f(t,e)}),h.isEmpty()&&this.__removeStoreFromSubject(c),this}stopPropagation(t,e){let i=(0,l.isString)(t)?this:t,o=(0,l.isString)(t)?t:e;if("string"!=typeof o)throw(0,c.error)("Need event names");let s=this.__getStore(i);this.__eachEvent(o,(t,e)=>{let o=s.get(t,e);o&&this.__stopped.push(o),e===u.defaultNameSpace&&s.namespaces(!0).forEach(e=>this.stopPropagation(i,t+"."+e))})}__removeStop(t){if(t){let 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,s,n=(0,l.isString)(t)?this:t,r=(0,l.isString)(t)?t:e,a=(0,l.isString)(t)?[e,...i]:i;if(!d(n)&&!(0,l.isString)(r))throw(0,c.error)("Need events names");let h=this.__getStore(n);return!(0,l.isString)(r)&&d(n)?this.__triggerNativeEvent(n,e):this.__eachEvent(r,(t,e)=>{if(d(n))this.__triggerNativeEvent(n,t);else{let i=h.get(t,e);if(i)try{[...i].every(e=>!this.__isStopped(i)&&(this.currents.push(t),s=e.syntheticCallback.call(n,t,...a),this.currents.pop(),void 0!==s&&(o=s),!0))}finally{this.__removeStop(i)}e!==u.defaultNameSpace||d(n)||h.namespaces().filter(t=>t!==e).forEach(e=>{let i=this.fire.apply(this,[n,t+"."+e,...a]);void 0!==i&&(o=i)})}}),o}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))}constructor(t){(0,o._)(this,"__domEventsMap",new Map),(0,o._)(this,"__mutedEvents",new Set),(0,o._)(this,"__key","__JoditEventEmitterNamespaces"),(0,o._)(this,"__doc",s.globalDocument),(0,o._)(this,"__prepareEvent",t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(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}))}),(0,o._)(this,"currents",[]),(0,o._)(this,"__stopped",[]),(0,o._)(this,"__isDestructed",!1),t&&(this.__doc=t),this.__key+=new Date().getTime()}}function d(t){return(0,a.isFunction)(t.addEventListener)}},93890:function(t,e,i){"use strict";i.d(e,{checkRemoveUnbreakableElement:function(){return r}});var o=i(81937),s=i(23211),n=i(2409);function r(t,e,i){let r=s.Dom.findSibling(e,i);return!!(s.Dom.isElement(r)&&(s.Dom.isTag(r,o.INSEPARABLE_TAGS)||s.Dom.isEmpty(r)))&&(s.Dom.safeRemove(r),s.Dom.isTag(r,"br")&&!s.Dom.findNotEmptySibling(e,!1)&&s.Dom.after(e,t.createInside.element("br")),t.s.setCursorBefore(e),s.Dom.isTag(r,"br")&&(0,n.checkRemoveEmptyParent)(t,e,i),!0)}},94013:function(t,e,i){"use strict";i.d(e,{isEqual:function(){return s},isFastEqual:function(){return n}});var o=i(3347);function s(t,e){return t===e||(0,o.stringify)(t)===(0,o.stringify)(e)}function n(t,e){return t===e}},94092:function(t,e,i){"use strict";i.d(e,{PII:function(){return o},WARN:function(){return s}});let o=440,s=940},94190:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg>'},94193:function(t,e,i){"use strict";i.d(e,{SourceEditor:function(){return s}});var o=i(25045);class s{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(t){this.isReady?t():this.j.events?.on(this,"ready",t)}constructor(t,e,i,s){(0,o._)(this,"jodit",void 0),(0,o._)(this,"container",void 0),(0,o._)(this,"toWYSIWYG",void 0),(0,o._)(this,"fromWYSIWYG",void 0),(0,o._)(this,"instance",void 0),(0,o._)(this,"className",void 0),(0,o._)(this,"isReady",void 0),this.jodit=t,this.container=e,this.toWYSIWYG=i,this.fromWYSIWYG=s,this.className="",this.isReady=!1}}},94358:function(t,e,i){"use strict";var o=i(81937),s=i(28077),n=i(65946),r=i(29434),a=i(5266),l=i(17995),c=i.n(l);a.Config.prototype.controls.about={exec(t){let e=t.dlg({closeOnClickOverlay:!0}),i=t.i18n.bind(t);e.setMod("theme",t.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
@@ -264,5 +264,5 @@
264
264
  ${i("contains detailed help for using")}
265
265
  </div>
266
266
  <div>${i("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")}</div>
267
- </div>`),(0,n.css)(e.dialog,{minHeight:200,minWidth:420}),e.open(!0,!0)},tooltip:"About Jodit",mode:o.MODE_SOURCE+o.MODE_WYSIWYG},s.pluginSystem.add("about",function(t){t.registerButton({name:"about",group:"info"})}),r.Icon.set("about",c())},94561:function(t,e,i){"use strict";i.d(e,{removeEmptyTextNode:function(){return s}});var o=i(23211);function s(t,e,i,s,n,r){return o.Dom.isText(e)&&!e.nodeValue?(e===r&&t.s.isCollapsed()&&t.s.setCursorAfter(e),o.Dom.safeRemove(e),!0):i}},94806:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},94925:function(t,e,i){"use strict";i.d(e,{Uploader:function(){return c}});var o=i(25045),s=i(16964),n=i(81937),r=i(65946),a=i(5266),l=i(11981);i(40013);class c extends s.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,e,i){let o=()=>{t.classList.remove("jodit_drag_hover")},s=this,r=t=>{let r,a,c,u=t.clipboardData,h=t=>{a&&(t.append("extension",c),t.append("mimetype",a.type))};if(!n.IS_IE&&(0,l.hasFiles)(u))return(0,l.sendFiles)(s,u.files,e,i).finally(o),!1;if(n.IS_IE&&!n.IS_ES_NEXT)return(0,l.processOldBrowserDrag)(s,u,e,i,o);if((0,l.hasItems)(u)){let{items:n}=u;for(r=0;r<n.length;r+=1)if("file"===n[r].kind&&"image/png"===n[r].type){if(a=n[r].getAsFile()){let t=a.type.match(/\/([a-z0-9]+)/i);c=t[1]?t[1].toLowerCase():"",(0,l.sendFiles)(s,[a],e,i,h).finally(o)}t.preventDefault();break}}};s.j&&s.j.editor!==t?s.j.e.on(t,"paste",r):s.j.e.on("beforePaste",r),this.attachEvents(t,e,i,o)}attachEvents(t,e,i,o){let s=this;s.j.e.on(t,"dragend dragover dragenter dragleave drop",t=>{t.preventDefault()}).on(t,"dragover",e=>{((0,l.hasFiles)(e.dataTransfer)||(0,l.hasItems)(e.dataTransfer))&&(t.classList.add("jodit_drag_hover"),e.preventDefault())}).on(t,"dragend dragleave",e=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(e.dataTransfer)&&e.preventDefault()}).on(t,"drop",n=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(n.dataTransfer)&&(n.preventDefault(),n.stopImmediatePropagation(),(0,l.sendFiles)(s,n.dataTransfer.files,e,i).finally(o))});let n=t.querySelector("input[type=file]");n&&s.j.e.on(n,"change",()=>{(0,l.sendFiles)(s,n.files,e,i).then(()=>{n.value="",/safari/i.test(navigator.userAgent)||(n.type="",n.type="file")}).finally(o)})}uploadRemoteImage(t,e,i){let o=this,{o:s}=o,n=(0,r.isFunction)(i)?i:s.defaultHandlerError;(0,l.send)(o,{action:"fileUploadRemote",url:t}).then(t=>{s.isSuccess.call(o,t)?((0,r.isFunction)(e)?e:s.defaultHandlerSuccess).call(o,s.process.call(o,t)):n.call(o,(0,r.error)(s.getMessage.call(o,t)))}).catch(t=>n.call(o,t))}upload(t){return this.async.promise((e,i)=>{(0,l.sendFiles)(this,t,e,i)})}destruct(){this.setStatus(s.STATUSES.beforeDestruct);let t=l.ajaxInstances.get(this);t&&(t.forEach(t=>{try{t.destruct()}catch{}}),t.clear()),super.destruct()}constructor(t,e){super(t),(0,o._)(this,"path",""),(0,o._)(this,"source","default"),(0,o._)(this,"options",void 0),this.options=(0,r.ConfigProto)(e||{},(0,r.ConfigProto)(a.Config.defaultOptions.uploader,(0,r.isJoditObject)(t)?t.o.uploader:{}))}}},94978:function(t,e,i){"use strict";i.d(e,{AceEditor:function(){return a}});var o=i(25045),s=i(81937),n=i(65946),r=i(94193);class a extends r.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){let t=this.instance.session.getLength(),e=[],i=0;for(let o=0;t>o;o++)i+=this.getLastColumnIndex(o),o>0&&(i+=1),e[o]=i;return e}getRowColumnIndices(t){let e=this.getLastColumnIndices();if(t<=e[0])return{row:0,column:t};let i=1;for(let o=1;o<e.length;o++)t>e[o]&&(i=o+1);let o=t-e[i-1]-1;return{row:i,column:o}}setSelectionRangeIndices(t,e){let i=this.getRowColumnIndices(t),o=this.getRowColumnIndices(e);this.instance.getSelection().setSelectionRange({start:i,end:o})}getIndexByRowColumn(t,e){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+e}init(t){let e=()=>{if(void 0!==this.instance||!this.aceExists())return;let e=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(e);let i=t.ow.ace;this.instance=i.edit(e),"rtl"===t.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==s.MODE_WYSIWYG&&this.setValue(this.getValue());let o=this.j.async.throttle(()=>{if(t.isInDestruct||t.getMode()===s.MODE_WYSIWYG)return;let e=this.instance.isFocused();"auto"!==t.o.height?this.instance.setOption("maxLines",t.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),e&&this.focus()},2*this.j.defaultTimeout);t.e.on(t,"resize",o).on("afterResize afterSetMode",o),o(),this.onReady()};t.e.on("afterSetMode",()=>{(t.getRealMode()===s.MODE_SOURCE||t.getMode()===s.MODE_SPLIT)&&(this.fromWYSIWYG(),e())}),e(),this.aceExists()||(0,n.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then(()=>{t.isInDestruct||e()}).catch(()=>null)}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",t);(0,n.isString)(e)&&(t=e)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){let e=this.instance.selection.getCursor(),i=this.instance.session.insert(e,t);this.instance.selection.setRange({start:e,end:i},!1)}setSelectionRange(t,e){this.setSelectionRangeIndices(t,e)}setPlaceHolder(t){}replaceUndoManager(){let{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){t.redo()}})}constructor(...t){super(...t),(0,o._)(this,"className","jodit_ace_editor"),(0,o._)(this,"proxyOnBlur",t=>{this.j.e.fire("blur",t)}),(0,o._)(this,"proxyOnFocus",t=>{this.j.e.fire("focus",t)}),(0,o._)(this,"proxyOnMouseDown",t=>{this.j.e.fire("mousedown",t)})}}},95032:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},95134:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},95320:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>'},95399:function(t,e,i){"use strict";i.d(e,{UITooltip:function(){return f}});var o=i(25045),s=i(31635),n=i(16964),r=i(84839),a=i(27795),l=i(28077),c=i(23599),u=i(93640),h=i(96007);let d=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],p=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"];class f extends h.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(t){(0,l.getContainer)(this.j,f).appendChild(this.container),this.__attachedContainers.add(t),this.__attachedContainers.add(this.j.container),this.j.e.on(t,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(t,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let t=this.j;t.e.on(t.ow,d,this.__hide).on(p,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let t=this.j;t.e.off(t.ow,d,this.__hide).off(p,this.__hide)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!a.Dom.isHTMLElement(t.target))return;let e=(0,u.attr)(t.target,"aria-label");if(!e||(0,u.attr)(t.target,"disabled")||!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;let i=t.target;this.__open(()=>{let t=(0,c.position)(i);return{x:t.left+t.width/2,y:t.top+t.height}},e)}__open(t,e){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let i=this.j.o.showTooltipDelay||this.j.defaultTimeout;i?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(t,e),i):this.__show(t,e)}__show(t,e){this.setMod("visible",!0),this.getElm("content").innerHTML=e;let i=t();(0,u.css)(this.container,{left:i.x,top:i.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",(0,u.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(t=>{this.j.e.off(t,"mouseenter.tooltip",this.__onMouseEnter).off(t,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(t){super(t),(0,o._)(this,"__isOpened",!1),(0,o._)(this,"__attachedContainers",new Set),(0,o._)(this,"__listenClose",!1),(0,o._)(this,"__currentTarget",null),(0,o._)(this,"__delayShowTimeout",0),(0,o._)(this,"__hideTimeout",0),t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||(this.j.e.on("getContainer",t=>{this.__onAttach(t)}),t.hookStatus(n.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}}(0,s.__decorate)([r.autobind],f.prototype,"__onMouseLeave",null),(0,s.__decorate)([r.autobind],f.prototype,"__onMouseEnter",null),(0,s.__decorate)([r.autobind],f.prototype,"__hide",null),(0,s.__decorate)([r.autobind],f.prototype,"__hideDelay",null),f=(0,s.__decorate)([r.component],f)},95436:function(t,e,i){"use strict";i.d(e,{processOldBrowserDrag:function(){return c}});var o=i(81937),s=i(27795),n=i(28077),r=i(65946),a=i(23112),l=i(46533);function c(t,e,i,c,u){if(e&&(!e.types.length||e.types[0]!==o.TEXT_PLAIN)){let e=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,n.getContainer)(t.j,t.constructor).appendChild(e);let o=(0,r.isJoditObject)(t.j)?t.j.s.save():null;e.focus(),t.j.async.setTimeout(()=>{let n=e.firstChild;if(s.Dom.safeRemove(e),n&&n.hasAttribute("src")){let e=(0,r.attr)(n,"src")||"";o&&(0,r.isJoditObject)(t.j)&&t.j.s.restore(),(0,l.sendFiles)(t,[(0,a.dataURItoBlob)(e)],i,c).finally(u)}},t.j.defaultTimeout)}}},95559:function(t,e,i){"use strict";i.d(e,{allowAttributes:function(){return s}});var o=i(23211);function s(t,e,i,s){if(s&&o.Dom.isElement(e)&&!0!==s[e.nodeName]){let t=e.attributes;if(t&&t.length){let o=[];for(let i=0;i<t.length;i+=1){let n=s[e.nodeName][t[i].name];n&&(!0===n||n===t[i].value)||o.push(t[i].name)}o.length&&(i=!0),o.forEach(t=>{e.removeAttribute(t)})}}return i}},95971:function(t,e,i){"use strict";i.d(e,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var o=i(18073),s=i(93640),n=i(28712),r=i(9703);function a(t,e){return!((t.attributes.length||(0,o.size)(e))&&(0,o.size)(e))||((0,n.assert)(e,"Attrs must be a non-empty object"),Object.keys(e).every(i=>"class"===i||"className"===i?t.classList.contains(e[i]):"style"===i?(0,r.hasSameStyle)(t,e[i]):(0,s.attr)(t,i)===e[i]))}function l(t,e){return t.attributes.length===e.attributes.length&&Array.from(t.attributes).every(t=>e.hasAttribute(t.name)&&e.getAttribute(t.name)===t.value)}},96007:function(t,e,i){"use strict";i.d(e,{UIElement:function(){return d}});var o=i(25045),s=i(31635),n=i(16964),r=i(24968),a=i(23211),l=i(85932),c=i(23183),u=i(81987),h=i(29434);class d extends n.ViewComponent{get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(t){let e=this.parentElement;for(;e;)t(e),e=e.parentElement;return this}updateParentElement(t){return this.__parentElement?.updateParentElement(t),this}get(t,e){return super.get(t,e)||this.getElm(t)}closest(t){let e="object"==typeof t?e=>e===t:e=>n.Component.isInstanceOf(e,t),i=this.__parentElement;for(;i;){if(e(i))return i;i=!i.parentElement&&i.container.parentElement?d.closestElement(i.container.parentElement,d):i.parentElement}return null}static closestElement(t,e){let i=a.Dom.up(t,t=>{if(t){let{component:i}=t;return i&&n.Component.isInstanceOf(i,e)}return!1});return i?i?.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){let e=this.render(t);if((0,l.isString)(e)){let t=this.parseTemplate(e);return t.classList.add(this.componentName),t}return e}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,(t,e)=>h.Icon.get(e)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(t,e)=>this.i18n(e)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(t,e){super(t),(0,o._)(this,"container",void 0),(0,o._)(this,"name",""),(0,o._)(this,"__parentElement",null),(0,o._)(this,"mods",{}),this.container=this.createContainer(e),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}}d=(0,s.__decorate)([(0,r.derive)(u.Mods,c.Elms)],d)},96127:function(t,e,i){"use strict";i.d(e,{ApplyStyle:function(){return r}});var o=i(51640),s=i(98394),n=i(78462);function r(t,e){let{s:i,editor:r}=t;r.firstChild?.normalize();let a=i.fakes(),l=t.s.wrapInTagGen(a),c=l.next();if(c.done)return;let u={collapsed:i.isCollapsed(),mode:s.INITIAL,element:c.value,next:n.states.START,jodit:t,style:e};for(;c&&!c.done;){let t=new o.FiniteStateMachine(n.states.START,n.transactions);for(u.element=c.value;t.getState()!==n.states.END;)u=t.dispatch("exec",u);c=l.next()}i.restoreFakes(a)}},96340:function(t,e,i){"use strict";i.d(e,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},96608:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),o.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},96722:function(t,e,i){"use strict";i(5266).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},96730:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(81937),r=i(84839),a=i(28077),l=i(65946),c=i(91206);i(71693);var u=i(54308);class h extends c.Plugin{afterInit(t){}beforeDestruct(t){}processWordHTML(t,e,i){let{j:o}=this,{processPasteFromWord:s,askBeforePasteFromWord:n,defaultActionOnPasteFromWord:r,defaultActionOnPaste:a,pasteFromWordActionList:c}=o.o;return!!(s&&(0,l.isHtmlFromWord)(e))&&(n?(0,u.askInsertTypeDialog)(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",o=>{this.insertFromWordByType(t,e,o,i)},c):this.insertFromWordByType(t,e,r||a,i),!0)}insertFromWordByType(t,e,i,o){switch(i){case n.INSERT_AS_HTML:{e=(0,l.applyStyles)(e);let t=this.j.events?.fire("beautifyHTML",e);(0,l.isString)(t)&&(e=t);break}case n.INSERT_AS_TEXT:e=(0,l.cleanFromWord)(e);break;case n.INSERT_ONLY_TEXT:e=(0,l.stripTags)((0,l.cleanFromWord)(e))}(0,u.pasteInsertHtml)(t,this.j,e)}}(0,o._)(h,"requires",["paste"]),(0,s.__decorate)([(0,r.watch)(":processHTML")],h.prototype,"processWordHTML",null),a.pluginSystem.add("pasteFromWord",h)},96863:function(t,e,i){"use strict";var o=i(23211),s=i(62101),n=i(29434),r=i(5266),a=i(29348),l=i.n(a);n.Icon.set("paragraph",l()),r.Config.prototype.controls.paragraph={command:"formatBlock",value(t,e){let i=e.control,s=t.s.current(),n=o.Dom.closest(s,o.Dom.isBlock,t.editor);return n?.nodeName.toLowerCase()??i.data?.currentValue},update(t,e){let i=e.control;if(!t.s.current())return!1;let o=e.state.value,n=i.list;return(0,s.isPlainObject)(n)&&n[o.toString()]&&t.o.textIcons&&(e.state.text=n[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(t,e)=>e.state.value===e.control?.args?.[0],isActive:(t,e)=>e.state.value!==t.o.enter&&(0,s.isPlainObject)(e.control.list)&&!!e.control.list[e.state.value],childTemplate:(t,e,i)=>`<${e} style="margin:0;padding:0"><span>${t.i18n(i)}</span></${e}>`,tooltip:"Insert format block"}},97022:function(t,e,i){"use strict";i.d(e,{NUMBER_FIELDS_REG:function(){return s.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return s.normalizeCssNumericValue},normalizeCssValue:function(){return s.normalizeCssValue},normalizeKeyAliases:function(){return n.normalizeKeyAliases},normalizeLicense:function(){return r.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var o=i(77367),s=i(19147),n=i(27978),r=i(49663),a=i(18377),l=i(96340),c=i(98831),u=i(48009)},97110:function(t,e,i){"use strict";i.d(e,{wrapList:function(){return r}});var o=i(27795),s=i(51640),n=i(98394);function r(t,e,i){let r=i.e.fire(`${n._PREFIX}BeforeWrapList`,n.REPLACE,e,t)??o.Dom.replace(e,"li",i.createInside),a=r.previousElementSibling,l=r.nextElementSibling,c=o.Dom.isTag(a,t.element)?a:null;return c??=o.Dom.isTag(l,t.element)?l:null,o.Dom.isList(c)&&(0,s.isSameAttributes)(c,t.options.attributes)||(c=i.createInside.element(t.element),(0,s.toggleAttributes)(t,c,i,n.INITIAL),o.Dom.before(r,c)),a===c?o.Dom.append(c,r):o.Dom.prepend(c,r),o.Dom.isTag(c.nextElementSibling,t.element)&&(0,s.elementsEqualAttributes)(c,c.nextElementSibling)&&(o.Dom.append(c,Array.from(c.nextElementSibling.childNodes)),o.Dom.safeRemove(c.nextElementSibling)),i.e.fire(`${n._PREFIX}AfterWrapList`,n.WRAP,c,t),c}},97228:function(t,e,i){"use strict";i.d(e,{defaultLanguage:function(){return n}});var o=i(81937),s=i(85932);let n=(t,e="en")=>"auto"!==t&&(0,s.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):e},97642:function(t,e,i){"use strict";i.d(e,{CamelCaseToKebabCase:function(){return r.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return s.fuzzySearchIndex},i18n:function(){return n.i18n},kebabCase:function(){return r.kebabCase},sprintf:function(){return n.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var o=i(57821),s=i(57626),n=i(18080),r=i(74264),a=i(3347),l=i(4040),c=i(99436)},97743:function(t,e,i){"use strict";i.d(e,{SpeechRecognition:function(){return s}});var o=i(81937);let s=o.globalWindow?o.globalWindow.SpeechRecognition||o.globalWindow.webkitSpeechRecognition:void 0},97959:function(t,e,i){"use strict";i.d(e,{UIList:function(){return m}});var o=i(25045),s=i(31635),n=i(80251),r=i(84839),a=i(32328),l=i(53681),c=i(63468),u=i(35676),h=i(27987),d=i(2496),p=i(15982),f=i(40253);class m extends c.UIGroup{className(){return"UIList"}__onChangeMode(){this.setMod("mode",this.mode)}makeGroup(){return new c.UIGroup(this.jodit)}get buttons(){return this.allChildren.filter(t=>n.Component.isInstanceOf(t,l.UIButton))}getButtonsNames(){return this.buttons.map(t=>t instanceof l.UIButton&&t.state.name||"").filter(t=>""!==t)}setRemoveButtons(t){return this.removeButtons=t||[],this}build(t,e=null){let i;t=(0,a.splitArray)(t),this.clear();let o=!1,s=this.makeGroup();this.append(s),s.setMod("line",!0);let n=t=>{let n=null;switch(t.name){case`
267
+ </div>`),(0,n.css)(e.dialog,{minHeight:200,minWidth:420}),e.open(!0,!0)},tooltip:"About Jodit",mode:o.MODE_SOURCE+o.MODE_WYSIWYG},s.pluginSystem.add("about",function(t){t.registerButton({name:"about",group:"info"})}),r.Icon.set("about",c())},94561:function(t,e,i){"use strict";i.d(e,{removeEmptyTextNode:function(){return s}});var o=i(23211);function s(t,e,i,s,n,r){return o.Dom.isText(e)&&!e.nodeValue?(e===r&&t.s.isCollapsed()&&t.s.setCursorAfter(e),o.Dom.safeRemove(e),!0):i}},94806:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg>'},94925:function(t,e,i){"use strict";i.d(e,{Uploader:function(){return c}});var o=i(25045),s=i(16964),n=i(81937),r=i(65946),a=i(5266),l=i(11981);i(40013);class c extends s.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,e,i){let o=()=>{t.classList.remove("jodit_drag_hover")},s=this,r=t=>{let r,a,c,u=t.clipboardData,h=t=>{a&&(t.append("extension",c),t.append("mimetype",a.type))};if(!n.IS_IE&&(0,l.hasFiles)(u))return(0,l.sendFiles)(s,u.files,e,i).finally(o),!1;if(n.IS_IE&&!n.IS_ES_NEXT)return(0,l.processOldBrowserDrag)(s,u,e,i,o);if((0,l.hasItems)(u)){let{items:n}=u;for(r=0;r<n.length;r+=1)if("file"===n[r].kind&&"image/png"===n[r].type){if(a=n[r].getAsFile()){let t=a.type.match(/\/([a-z0-9]+)/i);c=t[1]?t[1].toLowerCase():"",(0,l.sendFiles)(s,[a],e,i,h).finally(o)}t.preventDefault();break}}};s.j&&s.j.editor!==t?s.j.e.on(t,"paste",r):s.j.e.on("beforePaste",r),this.attachEvents(t,e,i,o)}attachEvents(t,e,i,o){let s=this;s.j.e.on(t,"dragend dragover dragenter dragleave drop",t=>{t.preventDefault()}).on(t,"dragover",e=>{((0,l.hasFiles)(e.dataTransfer)||(0,l.hasItems)(e.dataTransfer))&&(t.classList.add("jodit_drag_hover"),e.preventDefault())}).on(t,"dragend dragleave",e=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(e.dataTransfer)&&e.preventDefault()}).on(t,"drop",n=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(n.dataTransfer)&&(n.preventDefault(),n.stopImmediatePropagation(),(0,l.sendFiles)(s,n.dataTransfer.files,e,i).finally(o))});let n=t.querySelector("input[type=file]");n&&s.j.e.on(n,"change",()=>{(0,l.sendFiles)(s,n.files,e,i).then(()=>{n.value="",/safari/i.test(navigator.userAgent)||(n.type="",n.type="file")}).finally(o)})}uploadRemoteImage(t,e,i){let o=this,{o:s}=o,n=(0,r.isFunction)(i)?i:s.defaultHandlerError;(0,l.send)(o,{action:"fileUploadRemote",url:t}).then(t=>{s.isSuccess.call(o,t)?((0,r.isFunction)(e)?e:s.defaultHandlerSuccess).call(o,s.process.call(o,t)):n.call(o,(0,r.error)(s.getMessage.call(o,t)))}).catch(t=>n.call(o,t))}upload(t){return this.async.promise((e,i)=>{(0,l.sendFiles)(this,t,e,i)})}destruct(){this.setStatus(s.STATUSES.beforeDestruct);let t=l.ajaxInstances.get(this);t&&(t.forEach(t=>{try{t.destruct()}catch{}}),t.clear()),super.destruct()}constructor(t,e){super(t),(0,o._)(this,"path",""),(0,o._)(this,"source","default"),(0,o._)(this,"options",void 0),this.options=(0,r.ConfigProto)(e||{},(0,r.ConfigProto)(a.Config.defaultOptions.uploader,(0,r.isJoditObject)(t)?t.o.uploader:{}))}}},94978:function(t,e,i){"use strict";i.d(e,{AceEditor:function(){return a}});var o=i(25045),s=i(81937),n=i(65946),r=i(94193);class a extends r.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){let t=this.instance.session.getLength(),e=[],i=0;for(let o=0;t>o;o++)i+=this.getLastColumnIndex(o),o>0&&(i+=1),e[o]=i;return e}getRowColumnIndices(t){let e=this.getLastColumnIndices();if(t<=e[0])return{row:0,column:t};let i=1;for(let o=1;o<e.length;o++)t>e[o]&&(i=o+1);let o=t-e[i-1]-1;return{row:i,column:o}}setSelectionRangeIndices(t,e){let i=this.getRowColumnIndices(t),o=this.getRowColumnIndices(e);this.instance.getSelection().setSelectionRange({start:i,end:o})}getIndexByRowColumn(t,e){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+e}init(t){let e=()=>{if(void 0!==this.instance||!this.aceExists())return;let e=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(e);let i=t.ow.ace;this.instance=i.edit(e),"rtl"===t.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==s.MODE_WYSIWYG&&this.setValue(this.getValue());let o=this.j.async.throttle(()=>{if(t.isInDestruct||t.getMode()===s.MODE_WYSIWYG)return;let e=this.instance.isFocused();"auto"!==t.o.height?this.instance.setOption("maxLines",t.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),e&&this.focus()},2*this.j.defaultTimeout);t.e.on(t,"resize",o).on("afterResize afterSetMode",o),o(),this.onReady()},i=()=>{t.isInDestruct||t.getRealMode()!==s.MODE_SOURCE&&t.getMode()!==s.MODE_SPLIT||(this.fromWYSIWYG(),e())};t.e.on("afterSetMode",i),i(),this.aceExists()||(0,n.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then(i).catch(()=>null)}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",t);(0,n.isString)(e)&&(t=e)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){let e=this.instance.selection.getCursor(),i=this.instance.session.insert(e,t);this.instance.selection.setRange({start:e,end:i},!1)}setSelectionRange(t,e){this.setSelectionRangeIndices(t,e)}setPlaceHolder(t){}replaceUndoManager(){let{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){t.redo()}})}constructor(...t){super(...t),(0,o._)(this,"className","jodit_ace_editor"),(0,o._)(this,"proxyOnBlur",t=>{this.j.e.fire("blur",t)}),(0,o._)(this,"proxyOnFocus",t=>{this.j.e.fire("focus",t)}),(0,o._)(this,"proxyOnMouseDown",t=>{this.j.e.fire("mousedown",t)})}}},95032:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg>'},95134:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg>'},95320:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg>'},95399:function(t,e,i){"use strict";i.d(e,{UITooltip:function(){return f}});var o=i(25045),s=i(31635),n=i(16964),r=i(84839),a=i(27795),l=i(28077),c=i(23599),u=i(93640),h=i(96007);let d=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],p=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"];class f extends h.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(t){(0,l.getContainer)(this.j,f).appendChild(this.container),this.__attachedContainers.add(t),this.__attachedContainers.add(this.j.container),this.j.e.on(t,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(t,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let t=this.j;t.e.on(t.ow,d,this.__hide).on(p,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let t=this.j;t.e.off(t.ow,d,this.__hide).off(p,this.__hide)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!a.Dom.isHTMLElement(t.target))return;let e=(0,u.attr)(t.target,"aria-label");if(!e||(0,u.attr)(t.target,"disabled")||!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;let i=t.target;this.__open(()=>{let t=(0,c.position)(i);return{x:t.left+t.width/2,y:t.top+t.height}},e)}__open(t,e){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let i=this.j.o.showTooltipDelay||this.j.defaultTimeout;i?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(t,e),i):this.__show(t,e)}__show(t,e){this.setMod("visible",!0),this.getElm("content").innerHTML=e;let i=t();(0,u.css)(this.container,{left:i.x,top:i.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",(0,u.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(t=>{this.j.e.off(t,"mouseenter.tooltip",this.__onMouseEnter).off(t,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(t){super(t),(0,o._)(this,"__isOpened",!1),(0,o._)(this,"__attachedContainers",new Set),(0,o._)(this,"__listenClose",!1),(0,o._)(this,"__currentTarget",null),(0,o._)(this,"__delayShowTimeout",0),(0,o._)(this,"__hideTimeout",0),t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||(this.j.e.on("getContainer",t=>{this.__onAttach(t)}),t.hookStatus(n.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}}(0,s.__decorate)([r.autobind],f.prototype,"__onMouseLeave",null),(0,s.__decorate)([r.autobind],f.prototype,"__onMouseEnter",null),(0,s.__decorate)([r.autobind],f.prototype,"__hide",null),(0,s.__decorate)([r.autobind],f.prototype,"__hideDelay",null),f=(0,s.__decorate)([r.component],f)},95436:function(t,e,i){"use strict";i.d(e,{processOldBrowserDrag:function(){return c}});var o=i(81937),s=i(27795),n=i(28077),r=i(65946),a=i(23112),l=i(46533);function c(t,e,i,c,u){if(e&&(!e.types.length||e.types[0]!==o.TEXT_PLAIN)){let e=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,n.getContainer)(t.j,t.constructor).appendChild(e);let o=(0,r.isJoditObject)(t.j)?t.j.s.save():null;e.focus(),t.j.async.setTimeout(()=>{let n=e.firstChild;if(s.Dom.safeRemove(e),n&&n.hasAttribute("src")){let e=(0,r.attr)(n,"src")||"";o&&(0,r.isJoditObject)(t.j)&&t.j.s.restore(),(0,l.sendFiles)(t,[(0,a.dataURItoBlob)(e)],i,c).finally(u)}},t.j.defaultTimeout)}}},95559:function(t,e,i){"use strict";i.d(e,{allowAttributes:function(){return s}});var o=i(23211);function s(t,e,i,s){if(s&&o.Dom.isElement(e)&&!0!==s[e.nodeName]){let t=e.attributes;if(t&&t.length){let o=[];for(let i=0;i<t.length;i+=1){let n=s[e.nodeName][t[i].name];n&&(!0===n||n===t[i].value)||o.push(t[i].name)}o.length&&(i=!0),o.forEach(t=>{e.removeAttribute(t)})}}return i}},95971:function(t,e,i){"use strict";i.d(e,{elementsEqualAttributes:function(){return l},isSameAttributes:function(){return a}});var o=i(18073),s=i(93640),n=i(28712),r=i(9703);function a(t,e){return!((t.attributes.length||(0,o.size)(e))&&(0,o.size)(e))||((0,n.assert)(e,"Attrs must be a non-empty object"),Object.keys(e).every(i=>"class"===i||"className"===i?t.classList.contains(e[i]):"style"===i?(0,r.hasSameStyle)(t,e[i]):(0,s.attr)(t,i)===e[i]))}function l(t,e){return t.attributes.length===e.attributes.length&&Array.from(t.attributes).every(t=>e.hasAttribute(t.name)&&e.getAttribute(t.name)===t.value)}},96007:function(t,e,i){"use strict";i.d(e,{UIElement:function(){return d}});var o=i(25045),s=i(31635),n=i(16964),r=i(24968),a=i(23211),l=i(85932),c=i(23183),u=i(81987),h=i(29434);class d extends n.ViewComponent{get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(t){let e=this.parentElement;for(;e;)t(e),e=e.parentElement;return this}updateParentElement(t){return this.__parentElement?.updateParentElement(t),this}get(t,e){return super.get(t,e)||this.getElm(t)}closest(t){let e="object"==typeof t?e=>e===t:e=>n.Component.isInstanceOf(e,t),i=this.__parentElement;for(;i;){if(e(i))return i;i=!i.parentElement&&i.container.parentElement?d.closestElement(i.container.parentElement,d):i.parentElement}return null}static closestElement(t,e){let i=a.Dom.up(t,t=>{if(t){let{component:i}=t;return i&&n.Component.isInstanceOf(i,e)}return!1});return i?i?.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){let e=this.render(t);if((0,l.isString)(e)){let t=this.parseTemplate(e);return t.classList.add(this.componentName),t}return e}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,(t,e)=>h.Icon.get(e)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(t,e)=>this.i18n(e)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(t,e){super(t),(0,o._)(this,"container",void 0),(0,o._)(this,"name",""),(0,o._)(this,"__parentElement",null),(0,o._)(this,"mods",{}),this.container=this.createContainer(e),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}}d=(0,s.__decorate)([(0,r.derive)(u.Mods,c.Elms)],d)},96127:function(t,e,i){"use strict";i.d(e,{ApplyStyle:function(){return r}});var o=i(51640),s=i(98394),n=i(78462);function r(t,e){let{s:i,editor:r}=t;r.firstChild?.normalize();let a=i.fakes(),l=t.s.wrapInTagGen(a),c=l.next();if(c.done)return;let u={collapsed:i.isCollapsed(),mode:s.INITIAL,element:c.value,next:n.states.START,jodit:t,style:e};for(;c&&!c.done;){let t=new o.FiniteStateMachine(n.states.START,n.transactions);for(u.element=c.value;t.getState()!==n.states.END;)u=t.dispatch("exec",u);c=l.next()}i.restoreFakes(a)}},96340:function(t,e,i){"use strict";i.d(e,{normalizeRelativePath:function(){return o}});let o=t=>t.split("/").reduce((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},96608:function(t,e,i){"use strict";var o=i(5266);o.Config.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),o.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},96722:function(t,e,i){"use strict";i(5266).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},96730:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(81937),r=i(84839),a=i(28077),l=i(65946),c=i(91206);i(71693);var u=i(54308);class h extends c.Plugin{afterInit(t){}beforeDestruct(t){}processWordHTML(t,e,i){let{j:o}=this,{processPasteFromWord:s,askBeforePasteFromWord:n,defaultActionOnPasteFromWord:r,defaultActionOnPaste:a,pasteFromWordActionList:c}=o.o;return!!(s&&(0,l.isHtmlFromWord)(e))&&(n?(0,u.askInsertTypeDialog)(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",o=>{this.insertFromWordByType(t,e,o,i)},c):this.insertFromWordByType(t,e,r||a,i),!0)}insertFromWordByType(t,e,i,o){switch(i){case n.INSERT_AS_HTML:{e=(0,l.applyStyles)(e);let t=this.j.events?.fire("beautifyHTML",e);(0,l.isString)(t)&&(e=t);break}case n.INSERT_AS_TEXT:e=(0,l.cleanFromWord)(e);break;case n.INSERT_ONLY_TEXT:e=(0,l.stripTags)((0,l.cleanFromWord)(e))}(0,u.pasteInsertHtml)(t,this.j,e)}}(0,o._)(h,"requires",["paste"]),(0,s.__decorate)([(0,r.watch)(":processHTML")],h.prototype,"processWordHTML",null),a.pluginSystem.add("pasteFromWord",h)},96863:function(t,e,i){"use strict";var o=i(23211),s=i(62101),n=i(29434),r=i(5266),a=i(29348),l=i.n(a);n.Icon.set("paragraph",l()),r.Config.prototype.controls.paragraph={command:"formatBlock",value(t,e){let i=e.control,s=t.s.current(),n=o.Dom.closest(s,o.Dom.isBlock,t.editor);return n?.nodeName.toLowerCase()??i.data?.currentValue},update(t,e){let i=e.control;if(!t.s.current())return!1;let o=e.state.value,n=i.list;return(0,s.isPlainObject)(n)&&n[o.toString()]&&t.o.textIcons&&(e.state.text=n[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(t,e)=>e.state.value===e.control?.args?.[0],isActive:(t,e)=>e.state.value!==t.o.enter&&(0,s.isPlainObject)(e.control.list)&&!!e.control.list[e.state.value],childTemplate:(t,e,i)=>`<${e} style="margin:0;padding:0"><span>${t.i18n(i)}</span></${e}>`,tooltip:"Insert format block"}},97022:function(t,e,i){"use strict";i.d(e,{NUMBER_FIELDS_REG:function(){return s.NUMBER_FIELDS_REG},normalizeColor:function(){return o.normalizeColor},normalizeCssNumericValue:function(){return s.normalizeCssNumericValue},normalizeCssValue:function(){return s.normalizeCssValue},normalizeKeyAliases:function(){return n.normalizeKeyAliases},normalizeLicense:function(){return r.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var o=i(77367),s=i(19147),n=i(27978),r=i(49663),a=i(18377),l=i(96340),c=i(98831),u=i(48009)},97110:function(t,e,i){"use strict";i.d(e,{wrapList:function(){return r}});var o=i(27795),s=i(51640),n=i(98394);function r(t,e,i){let r=i.e.fire(`${n._PREFIX}BeforeWrapList`,n.REPLACE,e,t)??o.Dom.replace(e,"li",i.createInside),a=r.previousElementSibling,l=r.nextElementSibling,c=o.Dom.isTag(a,t.element)?a:null;return c??=o.Dom.isTag(l,t.element)?l:null,o.Dom.isList(c)&&(0,s.isSameAttributes)(c,t.options.attributes)||(c=i.createInside.element(t.element),(0,s.toggleAttributes)(t,c,i,n.INITIAL),o.Dom.before(r,c)),a===c?o.Dom.append(c,r):o.Dom.prepend(c,r),o.Dom.isTag(c.nextElementSibling,t.element)&&(0,s.elementsEqualAttributes)(c,c.nextElementSibling)&&(o.Dom.append(c,Array.from(c.nextElementSibling.childNodes)),o.Dom.safeRemove(c.nextElementSibling)),i.e.fire(`${n._PREFIX}AfterWrapList`,n.WRAP,c,t),c}},97228:function(t,e,i){"use strict";i.d(e,{defaultLanguage:function(){return n}});var o=i(81937),s=i(85932);let n=(t,e="en")=>"auto"!==t&&(0,s.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):e},97642:function(t,e,i){"use strict";i.d(e,{CamelCaseToKebabCase:function(){return r.CamelCaseToKebabCase},camelCase:function(){return o.camelCase},fuzzySearchIndex:function(){return s.fuzzySearchIndex},i18n:function(){return n.i18n},kebabCase:function(){return r.kebabCase},sprintf:function(){return n.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},ucfirst:function(){return c.ucfirst}});var o=i(57821),s=i(57626),n=i(18080),r=i(74264),a=i(3347),l=i(4040),c=i(99436)},97743:function(t,e,i){"use strict";i.d(e,{SpeechRecognition:function(){return s}});var o=i(81937);let s=o.globalWindow?o.globalWindow.SpeechRecognition||o.globalWindow.webkitSpeechRecognition:void 0},97959:function(t,e,i){"use strict";i.d(e,{UIList:function(){return m}});var o=i(25045),s=i(31635),n=i(80251),r=i(84839),a=i(32328),l=i(53681),c=i(63468),u=i(35676),h=i(27987),d=i(2496),p=i(15982),f=i(40253);class m extends c.UIGroup{className(){return"UIList"}__onChangeMode(){this.setMod("mode",this.mode)}makeGroup(){return new c.UIGroup(this.jodit)}get buttons(){return this.allChildren.filter(t=>n.Component.isInstanceOf(t,l.UIButton))}getButtonsNames(){return this.buttons.map(t=>t instanceof l.UIButton&&t.state.name||"").filter(t=>""!==t)}setRemoveButtons(t){return this.removeButtons=t||[],this}build(t,e=null){let i;t=(0,a.splitArray)(t),this.clear();let o=!1,s=this.makeGroup();this.append(s),s.setMod("line",!0);let n=t=>{let n=null;switch(t.name){case`
268
268
  `:(s=this.makeGroup()).setMod("line",!0),i=this.makeGroup(),s.append(i),this.append(s);break;case"|":o||(o=!0,n=new u.UISeparator(this.j));break;case"---":{i.setMod("before-spacer",!0);let t=new h.UISpacer(this.j);s.append(t),i=this.makeGroup(),s.append(i),o=!1;break}default:o=!1,n="select"===t.component?this.makeSelect(t,e):this.makeButton(t,e)}n&&(i||(i=this.makeGroup(),s.append(i)),i.append(n))},r=t=>!this.removeButtons.includes(t.name)&&(!t.isVisible||t.isVisible?.(this.j,t));return t.forEach(t=>{if((0,d.isButtonGroup)(t)){let e=t.buttons.filter(t=>t);e.length&&((i=this.makeGroup()).setMod("separated",!0).setMod("group",t.group),s.append(i),(0,f.getStrongControlTypes)(e,this.j.o.controls).filter(r).forEach(n))}else{i||(i=this.makeGroup(),s.append(i));let e=(0,p.getControlType)(t,this.j.o.controls);r(e)&&n(e)}}),this.update(),this}makeSelect(t,e){throw Error("Not implemented behaviour")}makeButton(t,e){return new l.UIButton(this.j,{name:t.name})}constructor(t){super(t),(0,o._)(this,"mode","horizontal"),(0,o._)(this,"removeButtons",[])}}(0,s.__decorate)([(0,r.watch)("mode"),(0,r.hook)("ready")],m.prototype,"__onChangeMode",null),m=(0,s.__decorate)([r.component],m)},98394:function(t,e,i){"use strict";i.d(e,{CHANGE:function(){return n},INITIAL:function(){return a},REPLACE:function(){return l},UNSET:function(){return r},UNWRAP:function(){return s},WRAP:function(){return o},_PREFIX:function(){return c}});let o="wrap",s="unwrap",n="change",r="unset",a="initial",l="replace",c="commitStyle"},98595:function(t,e,i){"use strict";i.d(e,{Selection:function(){return f}});var o=i(25045),s=i(31635),n=i(81937),r=i(84839),a=i(23211),l=i(65946),c=i(28686),u=i(28712),h=i(7470),d=i(84578),p=i(42259);class f{get j(){return this.jodit}errorNode(t){if(!a.Dom.isNode(t))throw(0,l.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,c.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:t}=this,e=t?.rangeCount?t.getRangeAt(0):null;return!(!e||!a.Dom.isOrContains(this.area,e.startContainer))}createRange(t=!1){let e=this.doc.createRange();return t&&this.selectRange(e),e}remove(){let t=this.sel,e=this.current();if(t&&e)for(let e=0;e<t.rangeCount;e+=1)t.getRangeAt(e).deleteContents(),t.getRangeAt(e).collapse(!0)}clear(){this.sel?.rangeCount&&this.sel?.removeAllRanges()}removeNode(t){if(!a.Dom.isOrContains(this.j.editor,t,!0))throw(0,l.error)("Selection.removeNode can remove only editor's children");a.Dom.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,e){this.removeMarkers();try{let i=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let o=this.doc.caretPositionFromPoint(t,e);if(o)return i.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){let o=this.doc.caretRangeFromPoint(t,e);(0,u.assert)(o,"Incorrect caretRangeFromPoint behaviour"),i.setStart(o.startContainer,o.startOffset)}})(),i.collapse(!0),this.selectRange(i),!0}catch{}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,l.$$)("span[data-"+n.MARKER_CLASS+"]",this.area)}removeMarkers(){a.Dom.safeRemove.apply(null,this.markers)}marker(t=!1,e){let i=null;e&&(i=e.cloneRange()).collapse(t);let o=this.j.createInside.span();return o.id=n.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),o.style.lineHeight="0",o.style.display="none",a.Dom.markTemporary(o),(0,l.attr)(o,"data-"+n.MARKER_CLASS,t?"start":"end"),o.appendChild(this.j.createInside.text(n.INVISIBLE_SPACE)),i&&a.Dom.isOrContains(this.area,t?i.startContainer:i.endContainer)&&i.insertNode(o),o}restore(){let t=!1,e=t=>`span[data-${n.MARKER_CLASS}=${t?"start":"end"}]`,i=this.area.querySelector(e(!0)),o=this.area.querySelector(e(!1));if(i){if(t=this.createRange(),o)t.setStartAfter(i),a.Dom.safeRemove(i),t.setEndBefore(o),a.Dom.safeRemove(o);else{let e=i.previousSibling;a.Dom.isText(e)?t.setStart(e,e.nodeValue?e.nodeValue.length:0):t.setStartBefore(i),a.Dom.safeRemove(i),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){let t=this.sel;if(!t||!t.rangeCount)return[];let e=t.getRangeAt(0);(0,u.assert)(e,"Range is null");let i=e.cloneRange();i.collapse(!0);let o=this.j.createInside.fake();a.Dom.safeInsertNode(i,o),e.setStartBefore(o);let s=[o];if(!e.collapsed){let t=e.cloneRange();t.collapse(!1);let i=this.j.createInside.fake();a.Dom.safeInsertNode(t,i),e.setEndAfter(i),s.push(i)}return this.selectRange(e),s}restoreFakes(t){let e=t.filter(t=>t.isConnected);if(!e.length)return;let[i,o]=e,s=this.createRange();s.setStartAfter(i),o&&s.setEndBefore(o),this.selectRange(s),i.parentNode?.firstChild!==i.parentNode?.lastChild&&a.Dom.safeRemove(i),o?.parentNode?.firstChild!==o?.parentNode?.lastChild&&a.Dom.safeRemove(o)}save(t=!1){if(this.hasMarkers)return[];let e=this.sel;if(!e||!e.rangeCount)return[];let i=[],o=e.rangeCount,s=[];for(let t=0;o>t;t+=1)if(s[t]=e.getRangeAt(t),s[t].collapsed){let e=this.marker(!0,s[t]);i[t]={startId:e.id,collapsed:!0,startMarker:e.outerHTML}}else{let e=this.marker(!0,s[t]),o=this.marker(!1,s[t]);i[t]={startId:e.id,endId:o.id,collapsed:!1,startMarker:e.outerHTML,endMarker:o.outerHTML}}if(!t){e.removeAllRanges();for(let t=o-1;t>=0;--t){let o=this.doc.getElementById(i[t].startId);if(o){if(i[t].collapsed)s[t].setStartAfter(o),s[t].collapse(!0);else if(s[t].setStartBefore(o),i[t].endId){let e=this.doc.getElementById(i[t].endId);e&&s[t].setEndAfter(e)}try{e.addRange(s[t].cloneRange())}catch{}}}}return i}focus(t={preventScroll:!0}){if(!this.isFocused()){let e=(0,l.getScrollParent)(this.j.container),i=e?.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),i&&e?.scrollTo&&e.scrollTo(0,i);let o=this.sel,s=o?.rangeCount?o?.getRangeAt(0):null;if(!s||!a.Dom.isOrContains(this.area,s.startContainer)){let t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||this.j?.events?.fire("focus"),!0}return!1}isCollapsed(){let t=this.sel;for(let e=0;t&&e<t.rangeCount;e+=1)if(!t.getRangeAt(e).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.j.getRealMode()!==n.MODE_WYSIWYG)return null;let e=this.sel;if(!e||0===e.rangeCount)return null;let i=e.getRangeAt(0),o=i.startContainer,s=!1;if(a.Dom.isTag(o,"br")&&e.isCollapsed)return o;if(!a.Dom.isText(o)){let n=(0,p.findCorrectCurrentNode)(o,i,s,e.isCollapsed,t,t=>s?t.lastChild:t.firstChild);o=n.node,s=n.rightMode}return o&&a.Dom.isOrContains(this.area,o)?o:null}insertNode(t,e=!0,i=!0){this.errorNode(t);let o=a.Dom.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let s=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),s&&s.rangeCount){let e=s.getRangeAt(0),{firstChild:i}=t;a.Dom.isOrContains(this.area,e.commonAncestorContainer)?a.Dom.safeInsertNode(e,t):this.area.appendChild(t),[()=>i?.previousSibling,()=>i?.previousSibling,()=>i?.previousSibling?.lastChild].forEach(t=>{let e=t();e&&a.Dom.isEmptyTextNode(e)&&a.Dom.safeRemove(e)})}else this.area.appendChild(t);let i=t=>{if(a.Dom.isBlock(t)){let e=t.lastChild;if(e)return i(e)}this.setCursorAfter(t)};e&&(a.Dom.isFragment(t)?o&&i(o):i(t)),this.j.o.scrollToPastedContent&&(0,l.scrollIntoViewIfNeeded)(o??t,this.j.editor,this.doc)}),i&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",a.Dom.isFragment(t)?o:t)}insertHTML(t,e=!0){if(""===t)return;let i=this.j.createInside.div(),o=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),a.Dom.isNode(t)?i.appendChild(t):i.innerHTML=t.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",i.innerHTML))&&i.lastChild){for(;i.firstChild;)i.firstChild,o.appendChild(i.firstChild);this.insertNode(o,e,!1),this.j.__imdSynchronizeValues()}}insertImage(t,e=null,i=null){let o=(0,c.isString)(t)?this.j.createInside.element("img"):t;if((0,c.isString)(t)&&o.setAttribute("src",t),null!=i){let t=i.toString();t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),(0,l.attr)(o,"width",t)}e&&"object"==typeof e&&(0,l.css)(o,e);let s=()=>{(o.naturalHeight<o.offsetHeight||o.naturalWidth<o.offsetWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",s)};this.j.e.on(o,"load",s),o.complete&&s(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(t){let e=this.sel;if(!e||!e.rangeCount)return;let i=e.getRangeAt(0),o=i.commonAncestorContainer;a.Dom.isHTMLElement(o)||(o=o.parentElement);let s=[],r=i.startOffset,u=o.childNodes.length,h=i.startContainer===this.area?o.childNodes[r<u?r:u-1]:i.startContainer,d=i.endContainer===this.area?o.childNodes[i.endOffset-1]:i.endContainer;a.Dom.isText(h)&&h===i.startContainer&&i.startOffset===h.nodeValue?.length&&h.nextSibling&&(h=h.nextSibling),a.Dom.isText(d)&&d===i.endContainer&&0===i.endOffset&&d.previousSibling&&(d=d.previousSibling);let p=t=>{!t||t===o||a.Dom.isEmptyTextNode(t)||(0,c.isMarker)(t)||s.push(t)};p(h),h!==d&&a.Dom.isOrContains(o,h,!0)&&a.Dom.find(h,t=>(p(t),t===d||t&&t.contains&&t.contains(d)),o,!0,!1);let f=e=>{if(a.Dom.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,l.toArray)(e.childNodes).forEach(f);if(a.Dom.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{let t=this.j.createInside.text(n.INVISIBLE_SPACE);e.appendChild(t),e=t}t(e)}};0===s.length&&(a.Dom.isEmptyTextNode(h)&&s.push(h),h.firstChild&&s.push(h.firstChild)),s.forEach(f)}cursorInTheEdge(t,e,i=null){let o=!t,s=this.sel?.getRangeAt(0);if(i??=this.current(!1),!s||!i||!a.Dom.isOrContains(e,i,!0))return null;let n=t?s.startContainer:s.endContainer,r=t?s.startOffset:s.endOffset,c=t=>!!(t&&!a.Dom.isTag(t,"br")&&!a.Dom.isEmptyTextNode(t)&&!a.Dom.isTemporary(t)&&!(a.Dom.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t)));if(a.Dom.isText(n)){if((0,p.cursorInTheEdgeOfString)(n,r,t,o))return!1}else{let t=(0,l.toArray)(n.childNodes);if(o){if(t.slice(r).some(c))return!1}else if(t.slice(0,r).some(c))return!1}let u=i;for(;u&&u!==e;){let e=a.Dom.sibling(u,t);if(!e){u=u.parentNode;continue}if((u=e)&&c(u))return!1}return!0}cursorOnTheLeft(t,e){return this.cursorInTheEdge(!0,t,e)}cursorOnTheRight(t,e){return this.cursorInTheEdge(!1,t,e)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,e){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),o=null;return a.Dom.isText(t)?e?i.setStart(t,0):i.setEnd(t,t.nodeValue?.length??0):(o=this.j.createInside.fake(),e?i.setStartBefore(t):i.setEndAfter(t),i.collapse(e),a.Dom.safeInsertNode(i,o),i.selectNode(o)),i.collapse(e),this.selectRange(i),o}setCursorIn(t,e=!1){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange(),o=t,s=t;do{if(a.Dom.isText(o)||a.Dom.isTag(o,n.INSEPARABLE_TAGS))break;s=o,o=e?o.firstChild:o.lastChild}while(o)if(!o){let t=this.j.createInside.text(n.INVISIBLE_SPACE);a.Dom.isTag(s,n.INSEPARABLE_TAGS)?o=s:(s.appendChild(t),s=t)}let r=o||s;return a.Dom.isTag(r,n.INSEPARABLE_TAGS)?e||a.Dom.isTag(r,"br")?i.setStartBefore(r):i.setEndAfter(r):i.selectNodeContents(r),i.collapse(e),this.selectRange(i),s}selectRange(t,e=!0){let i=this.sel;return e&&!this.isFocused()&&this.focus(),i&&(i.removeAllRanges(),i.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,e=!1){if(this.errorNode(t),!a.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,l.error)("Node element must be in editor");let i=this.createRange();return i[e?"selectNodeContents":"selectNode"](t),this.selectRange(i)}get html(){let t=this.sel;if(t&&t.rangeCount>0){let e=t.getRangeAt(0).cloneContents(),i=this.j.createInside.div();return i.appendChild(e),i.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){let e=this.jodit.createInside.element("font",n.INVISIBLE_SPACE);this.insertNode(e,!1,!1),t&&t[0]&&e.appendChild(t[0]),yield e,a.Dom.unwrap(e);return}for(let t of((0,l.$$)("*[style*=font-size]",this.area).forEach(t=>{(0,l.attr)(t,"data-font-size",t.style.fontSize.toString()),t.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,l.$$)("*[data-font-size]",this.area).forEach(t=>{let e=(0,l.attr)(t,"data-font-size");e&&(t.style.fontSize=e,(0,l.attr)(t,"data-font-size",null))}),(0,l.$$)('font[size="7"]',this.area))){let{firstChild:e,lastChild:i}=t;if(e&&e===i&&(0,c.isMarker)(e)){a.Dom.unwrap(t);continue}e&&(0,c.isMarker)(e)&&a.Dom.before(t,e),i&&(0,c.isMarker)(i)&&a.Dom.after(t,i),yield t,a.Dom.unwrap(t)}}wrapInTag(t){let e=[];for(let i of this.wrapInTagGen())try{if(i.firstChild&&i.firstChild===i.lastChild&&(0,c.isMarker)(i.firstChild))continue;(0,c.isFunction)(t)?t(i):e.push(a.Dom.replace(i,t,this.j.createInside))}finally{let t=i.parentNode;t&&(a.Dom.unwrap(i),a.Dom.isEmpty(t)&&a.Dom.unwrap(t))}return e}commitStyle(t){(0,u.assert)((0,l.size)(t)>0,"Need to pass at least one option"),new d.CommitStyle(t).apply(this.j)}splitSelection(t,e){if(!this.isCollapsed())return null;let i=this.createRange(),o=this.range;i.setStartBefore(t);let s=this.cursorOnTheRight(t,e),r=this.cursorOnTheLeft(t,e),l=this.j.createInside.element("br"),c=this.j.createInside.fake(),h=c.cloneNode();try{if(s||r){e?a.Dom.before(e,l):a.Dom.safeInsertNode(o,l);let t=(t,e)=>{let i=e(t);for(;i;){let t=e(i);if(i&&(a.Dom.isTag(i,"br")||a.Dom.isEmptyTextNode(i)))a.Dom.safeRemove(i);else break;i=t}};t(l,t=>t.nextSibling),t(l,t=>t.previousSibling),a.Dom.after(l,h),a.Dom.before(l,c),s?(i.setEndBefore(l),o.setEndBefore(l)):(i.setEndAfter(l),o.setEndAfter(l))}else i.setEnd(o.startContainer,o.startOffset);let d=i.extractContents(),p=t=>a.Dom.each(t,t=>a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t));(0,u.assert)(t.parentNode,"Splitting fails");try{if(p(d),p(t),t.parentNode.insertBefore(d,t),!e&&s&&l?.parentNode){let t=this.createRange();t.setStartBefore(l),this.selectRange(t)}}catch(t){if(!n.IS_PROD)throw t}let f=t=>{t?.parentNode?.firstChild===t?.parentNode?.lastChild&&t?.parentNode?.appendChild(l.cloneNode())};f(c),f(h)}finally{a.Dom.safeRemove(c),a.Dom.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:t}=this,e=t.cloneRange();if(!a.Dom.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;let i=e=>{let i=this.j.createInside.fake(),o=t.cloneRange();return o.collapse(e),a.Dom.safeInsertNode(o,i),(0,h.moveTheNodeAlongTheEdgeOutward)(i,e,this.j.editor),i},o=i(!0),s=i(!1);e.setStartAfter(o),e.setEndBefore(s);let n=a.Dom.findSibling(o,!1),r=a.Dom.findSibling(s,!0);if(n!==r){let t=a.Dom.isElement(n)&&a.Dom.isOrContains(n,s),i=!t&&a.Dom.isElement(r)&&a.Dom.isOrContains(r,o);if(t||i){let i=t?n:r,l=i;for(;a.Dom.isElement(i);)(i=t?i.firstElementChild:i.lastElementChild)&&(t?a.Dom.isOrContains(i,s):a.Dom.isOrContains(i,o))&&(l=i);t?e.setStart(l,0):e.setEnd(l,l.childNodes.length)}}if(this.selectRange(e),a.Dom.safeRemove(o,s),this.isCollapsed())throw(0,l.error)("Selection is collapsed");return this}constructor(t){(0,o._)(this,"jodit",void 0),this.jodit=t,t.e.on("removeMarkers",()=>{this.removeMarkers()})}}(0,s.__decorate)([r.autobind],f.prototype,"createRange",null),(0,s.__decorate)([r.autobind],f.prototype,"focus",null),(0,s.__decorate)([r.autobind],f.prototype,"setCursorAfter",null),(0,s.__decorate)([r.autobind],f.prototype,"setCursorBefore",null),(0,s.__decorate)([r.autobind],f.prototype,"setCursorIn",null)},98711:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg>'},98740:function(t,e,i){"use strict";i.d(e,{hasBrowserColorPicker:function(){return s}});var o=i(81937);function s(){let t=!0;try{let e=o.globalDocument.createElement("input");e.type="color",e.value="!",t="color"===e.type&&"!"!==e.value}catch(e){t=!1}return t}},98792:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(28077),a=i(91206);i(60162);class l extends a.Plugin{afterInit(t){t.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(t,e,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===t?"ul":"ol",attributes:{style:{listStyleType:i??null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"ul",group:"list"},{name:"ol",group:"list"}])}}(0,s.__decorate)([n.autobind],l.prototype,"onCommand",null),r.pluginSystem.add("orderedList",l)},98803:function(t,e,i){"use strict";i.d(e,{Table:function(){return d}});var o=i(25045),s=i(31635),n=i(16964),r=i(81937),a=i(84839),l=i(27795),c=i(28077),u=i(65946);let h=new WeakMap;class d extends n.ViewComponent{className(){return"Table"}__recalculateStyles(){let t=(0,c.getContainer)(this.j,d,"style",!0),e=[];this.selected.forEach(t=>{let i=(0,u.cssPath)(t);i&&e.push(i)}),t.innerHTML=e.length?e.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();let e=l.Dom.closest(t,"table",this.j.editor);if(e){let i=d.__selectedByTable.get(e)||new Set;i.add(t),d.__selectedByTable.set(e,i)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();let e=l.Dom.closest(t,"table",this.j.editor);if(e){let i=d.__selectedByTable.get(e);i&&(i.delete(t),i.size||d.__selectedByTable.delete(e))}}getAllSelectedCells(){return(0,u.toArray)(this.selected)}static __getSelectedCellsByTable(t){let e=d.__selectedByTable.get(t);return e?(0,u.toArray)(e):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return d.__getRowsCount(t)}static __getColumnsCount(t){return d.__formalMatrix(t).reduce((t,e)=>Math.max(t,e.length),0)}getColumnsCount(t){return d.__getColumnsCount(t)}static __formalMatrix(t,e){let i=[[]],o=(0,u.toArray)(t.rows),s=(t,o)=>{void 0===i[o]&&(i[o]=[]);let s=t.colSpan,n=t.rowSpan,r,a,l=0;for(;i[o][l];)l+=1;for(a=0;n>a;a+=1)for(r=0;r<s;r+=1){if(void 0===i[o+a]&&(i[o+a]=[]),e&&!1===e(t,o+a,l+r,s,n))return!1;i[o+a][l+r]=t}};for(let t=0;t<o.length;t+=1){let e=(0,u.toArray)(o[t].cells);for(let o=0;o<e.length;o+=1)if(!1===s(e[o],t))return i}return i}formalMatrix(t,e){return d.__formalMatrix(t,e)}static __formalCoordinate(t,e,i=!1){let o=0,s=0,n=1,r=1;return d.__formalMatrix(t,(t,a,l,c,u)=>{if(e===t)return o=a,s=l,n=c||1,r=u||1,i&&(s+=(c||1)-1,o+=(u||1)-1),!1}),[o,s,n,r]}formalCoordinate(t,e,i=!1){return d.__formalCoordinate(t,e,i)}static __appendRow(t,e,i,o){let s;if(e)s=e.cloneNode(!0),(0,u.$$)("td,th",e).forEach(t=>{let e=(0,u.attr)(t,"rowspan");if(e&&parseInt(e,10)>1){let i=parseInt(e,10)-1;(0,u.attr)(t,"rowspan",i>1?i:null)}}),(0,u.$$)("td,th",s).forEach(t=>{t.innerHTML=""});else{let e=d.__getColumnsCount(t);s=o.element("tr");for(let t=0;t<e;t+=1)s.appendChild(o.element("td"))}i&&e&&e.nextSibling?e.parentNode&&e.parentNode.insertBefore(s,e.nextSibling):!i&&e?e.parentNode&&e.parentNode.insertBefore(s,e):(t.getElementsByTagName("tbody")?.[0]||t).appendChild(s)}appendRow(t,e,i){return d.__appendRow(t,e,i,this.j.createInside)}static __removeRow(t,e){let i,o=d.__formalMatrix(t),s=t.rows[e];o[e].forEach((n,r)=>{if(i=!1,e-1>=0&&o[e-1][r]===n)i=!0;else if(o[e+1]&&o[e+1][r]===n){if(n.parentNode===s&&n.parentNode.nextSibling){i=!0;let s=r+1;for(;o[e+1][s]===n;)s+=1;let a=l.Dom.next(n.parentNode,t=>l.Dom.isTag(t,"tr"),t);a&&(o[e+1][s]?a.insertBefore(n,o[e+1][s]):a.appendChild(n))}}else l.Dom.safeRemove(n);if(i&&(n.parentNode===s||n!==o[e][r-1])){let t=n.rowSpan;(0,u.attr)(n,"rowspan",t-1>1?t-1:null)}}),l.Dom.safeRemove(s)}removeRow(t,e){return d.__removeRow(t,e)}appendColumn(t,e,i=!0){let o=d.__formalMatrix(t);if(!i&&l.Dom.isCell(e.previousElementSibling))return this.appendColumn(t,e.previousElementSibling,!0);let s=i?e.cellIndex+((e.colSpan||1)-1):e.cellIndex,n=i?s+1:s;for(let t=0;t<o.length;){let e=o[t];if(e[s]!==e[n]||s===n){let t=this.j.createInside.element("td");i?l.Dom.after(e[s],t):l.Dom.before(e[s],t),e[s].rowSpan>1&&(t.rowSpan=e[s].rowSpan)}else e[s].colSpan+=1;t+=e[s].rowSpan||1}}static __removeColumn(t,e){let i,o=d.__formalMatrix(t);o.forEach((t,s)=>{let n=t[e];if(i=!1,e-1>=0&&o[s][e-1]===n||e+1<t.length&&o[s][e+1]===n?i=!0:l.Dom.safeRemove(n),i&&(s-1<0||n!==o[s-1][e])){let t=n.colSpan;(0,u.attr)(n,"colspan",t-1>1?(t-1).toString():null)}})}removeColumn(t,e){return d.__removeColumn(t,e)}static __getSelectedBound(t,e){let i,o,s,n=[[1/0,1/0],[0,0]],r=d.__formalMatrix(t);for(i=0;i<r.length;i+=1)for(o=0;r[i]&&o<r[i].length;o+=1)e.includes(r[i][o])&&(n[0][0]=Math.min(i,n[0][0]),n[0][1]=Math.min(o,n[0][1]),n[1][0]=Math.max(i,n[1][0]),n[1][1]=Math.max(o,n[1][1]));for(i=n[0][0];i<=n[1][0];i+=1)for(s=1,o=n[0][1];o<=n[1][1];o+=1){for(;r[i]&&r[i][o-s]&&r[i][o]===r[i][o-s];)n[0][1]=Math.min(o-s,n[0][1]),n[1][1]=Math.max(o-s,n[1][1]),s+=1;for(s=1;r[i]&&r[i][o+s]&&r[i][o]===r[i][o+s];)n[0][1]=Math.min(o+s,n[0][1]),n[1][1]=Math.max(o+s,n[1][1]),s+=1;for(s=1;r[i-s]&&r[i][o]===r[i-s][o];)n[0][0]=Math.min(i-s,n[0][0]),n[1][0]=Math.max(i-s,n[1][0]),s+=1;for(s=1;r[i+s]&&r[i][o]===r[i+s][o];)n[0][0]=Math.min(i+s,n[0][0]),n[1][0]=Math.max(i+s,n[1][0]),s+=1}return n}getSelectedBound(t,e){return d.__getSelectedBound(t,e)}static __normalizeTable(t){let e=[],i=d.__formalMatrix(t);d.__removeExtraColspans(i,e),d.__removeExtraRowspans(i,e);for(let t=0;t<i.length;t+=1)for(let e=0;e<i[t].length;e+=1)void 0!==i[t][e]&&(i[t][e].hasAttribute("rowspan")&&1===i[t][e].rowSpan&&(0,u.attr)(i[t][e],"rowspan",null),i[t][e].hasAttribute("colspan")&&1===i[t][e].colSpan&&(0,u.attr)(i[t][e],"colspan",null),i[t][e].hasAttribute("class")&&!(0,u.attr)(i[t][e],"class")&&(0,u.attr)(i[t][e],"class",null));d.__unmark(e)}static __removeExtraColspans(t,e){for(let i=0;i<t[0].length;i+=1){let o=1e6,s=!1;for(let e=0;e<t.length;e+=1)if(void 0!==t[e][i]){if(t[e][i].colSpan<2){s=!0;break}o=Math.min(o,t[e][i].colSpan)}if(!s)for(let s=0;s<t.length;s+=1)void 0!==t[s][i]&&d.__mark(t[s][i],"colspan",t[s][i].colSpan-o+1,e)}}static __removeExtraRowspans(t,e){let i=0,o=0;for(i=0;i<t.length;i+=1){let s=1e6,n=!1;for(o=0;o<t[i].length;o+=1)if(void 0!==t[i][o]){if(t[i][o].rowSpan<2){n=!0;break}s=Math.min(s,t[i][o].rowSpan)}if(!n)for(o=0;o<t[i].length;o+=1)void 0!==t[i][o]&&d.__mark(t[i][o],"rowspan",t[i][o].rowSpan-s+1,e)}}normalizeTable(t){return d.__normalizeTable(t)}static __mergeSelected(t,e){let i=[],o=d.__getSelectedBound(t,d.__getSelectedCellsByTable(t)),s=0,n=null,a=0,c=0,h=0,f=new Set,m=[];o&&(o[0][0]-o[1][0]||o[0][1]-o[1][1])&&(d.__formalMatrix(t,(t,r,l,g,_)=>{r>=o[0][0]&&r<=o[1][0]&&l>=o[0][1]&&l<=o[1][1]&&(f.has(t)||(f.add(t),r===o[0][0]&&t.style.width&&(s+=t.offsetWidth),""!==(0,u.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(t.innerHTML),g>1&&(c+=g-1),_>1&&(h+=_-1),n?(d.__mark(t,"remove",1,m),p(e).removeSelection(t)):(n=t,a=l)))}),c=o[1][1]-o[0][1]+1,h=o[1][0]-o[0][0]+1,n&&(c>1&&d.__mark(n,"colspan",c,m),h>1&&d.__mark(n,"rowspan",h,m),s&&(d.__mark(n,"width",(s/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",m),a&&d.__setColumnWidthByDelta(t,a,0,!0,m)),n.innerHTML=i.join("<br/>"),p(e).addSelection(n),f.delete(n),d.__unmark(m),d.__normalizeTable(t),(0,u.toArray)(t.rows).forEach(t=>{t.cells.length||l.Dom.safeRemove(t)})))}mergeSelected(t){return d.__mergeSelected(t,this.j)}static __splitHorizontal(t,e){let i,o,s,n,r,a=[];d.__getSelectedCellsByTable(t).forEach(c=>{(o=e.createInside.element("td")).appendChild(e.createInside.element("br")),s=e.createInside.element("tr"),i=d.__formalCoordinate(t,c),c.rowSpan<2?(d.__formalMatrix(t,(t,e,o)=>{i[0]===e&&i[1]!==o&&t!==c&&d.__mark(t,"rowspan",t.rowSpan+1,a)}),l.Dom.after(l.Dom.closest(c,"tr",t),s),s.appendChild(o)):(d.__mark(c,"rowspan",c.rowSpan-1,a),d.__formalMatrix(t,(e,o,s)=>{o>i[0]&&o<i[0]+c.rowSpan&&i[1]>s&&e.parentNode.rowIndex===o&&(r=e),i[0]<o&&e===c&&(n=t.rows[o])}),r?l.Dom.after(r,o):n.insertBefore(o,n.firstChild)),c.colSpan>1&&d.__mark(o,"colspan",c.colSpan,a),d.__unmark(a),p(e).removeSelection(c)}),this.__normalizeTable(t)}splitHorizontal(t){return d.__splitHorizontal(t,this.j)}static __splitVertical(t,e){let i,o,s,n=[];d.__getSelectedCellsByTable(t).forEach(a=>{i=d.__formalCoordinate(t,a),a.colSpan<2?d.__formalMatrix(t,(t,e,o)=>{i[1]===o&&i[0]!==e&&t!==a&&d.__mark(t,"colspan",t.colSpan+1,n)}):d.__mark(a,"colspan",a.colSpan-1,n),(o=e.createInside.element("td")).appendChild(e.createInside.element("br")),a.rowSpan>1&&d.__mark(o,"rowspan",a.rowSpan,n);let c=a.offsetWidth;l.Dom.after(a,o),s=c/t.offsetWidth/2,d.__mark(a,"width",(100*s).toFixed(r.ACCURACY)+"%",n),d.__mark(o,"width",(100*s).toFixed(r.ACCURACY)+"%",n),d.__unmark(n),p(e).removeSelection(a)}),d.__normalizeTable(t)}splitVertical(t){return d.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,e,i,o,s){let n=d.__formalMatrix(t),a=0;for(let o=0;o<n.length;o+=1){let l=n[o][e];if(l.colSpan>1&&n.length>1)continue;let c=(l.offsetWidth+i)/t.offsetWidth*100;d.__mark(l,"width",c.toFixed(r.ACCURACY)+"%",s),a=o;break}for(let t=a+1;t<n.length;t+=1){let i=n[t][e];d.__mark(i,"width",null,s)}o||d.__unmark(s)}setColumnWidthByDelta(t,e,i,o,s){return d.__setColumnWidthByDelta(t,e,i,o,s)}static __mark(t,e,i,o){o.push(t);let s=h.get(t)??{};s[e]=void 0===i?1:i,h.set(t,s)}static __unmark(t){t.forEach(t=>{let e=h.get(t);e&&(Object.keys(e).forEach(i=>{let o=e[i];switch(i){case"remove":l.Dom.safeRemove(t);break;case"rowspan":(0,u.attr)(t,"rowspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"colspan":(0,u.attr)(t,"colspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"width":null==o?(t.style.removeProperty("width"),(0,u.attr)(t,"style")||(0,u.attr)(t,"style",null)):t.style.width=o.toString()}delete e[i]}),h.delete(t))})}constructor(...t){super(...t),(0,o._)(this,"selected",new Set)}}(0,o._)(d,"__selectedByTable",new WeakMap),(0,s.__decorate)([(0,a.debounce)()],d.prototype,"__recalculateStyles",null);let p=t=>t.getInstance("Table",t.o)},98831:function(t,e,i){"use strict";i.d(e,{normalizeSize:function(){return o}});let o=(t,e)=>/^[0-9]+$/.test(t.toString())?t+e:t.toString()},98838:function(t,e,i){"use strict";i.d(e,{UIForm:function(){return u}});var o=i(31635),s=i(80251),n=i(91672),r=i(93640),a=i(65273),l=i(49999),c=i(63468);class u extends c.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let t of this.allChildren.filter(t=>s.Component.isInstanceOf(t,a.UIInput)))if(!t.validate())return!1;for(let t of this.allChildren.filter(t=>s.Component.isInstanceOf(t,l.UISelect)))if(!t.validate())return!1;return!0}onSubmit(t){return this.j.e.on(this.container,"submit",()=>{let e=this.allChildren.filter(t=>s.Component.isInstanceOf(t,a.UIInput));return!!this.validate()&&(t(e.reduce((t,e)=>(t[e.state.name]=e.value,t),{})),!1)}),this}createContainer(){let t=this.j.c.element("form");return t.classList.add(this.componentName),(0,r.attr)(t,"dir",this.j.o.direction||"auto"),(0,r.attr)(t,"novalidate",""),t}constructor(...t){super(...t),this.options?.className&&this.container.classList.add(this.options?.className)}}u=(0,o.__decorate)([n.component],u)},98964:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},98988:function(t,e,i){"use strict";var o=i(25045),s=i(31635),n=i(84839),r=i(23211),a=i(28077),l=i(57821),c=i(91206),u=i(4099);i(47670);class h extends c.Plugin{afterInit(t){this.proxyEventsList.forEach(e=>{t.e.on(e+".select",this.onStartSelection)})}beforeDestruct(t){this.proxyEventsList.forEach(e=>{t.e.on(e+".select",this.onStartSelection)})}onStartSelection(t){let{j:e}=this,i,o=t.target;for(;void 0===i&&o&&o!==e.editor;)i=e.e.fire((0,l.camelCase)(t.type+"_"+o.nodeName.toLowerCase()),o,t),o=o.parentElement;"click"===t.type&&void 0===i&&o===e.editor&&e.e.fire(t.type+"Editor",o,t)}onOutsideClick(t){let e=t.target;r.Dom.up(e,t=>t===this.j.editor)||u.UIElement.closestElement(e,u.Popup)||this.j.e.fire("outsideClick",t)}beforeCommandCut(){let{s:t}=this.j;if(!t.isCollapsed()){let e=t.current();e&&r.Dom.isOrContains(this.j.editor,e)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:t}=this.j;return t.focus(),t.select(this.j.editor,!0),t.expandSelection(),!1}onTripleClickNormalizeSelection(t){if(3!==t.detail||!this.j.o.select.normalizeTripleClick)return;let{s:e}=this.j,{startContainer:i,startOffset:o}=e.range;0===o&&r.Dom.isText(i)&&e.select(r.Dom.closest(i,r.Dom.isBlock,this.j.editor)||i,!0)}onCopyNormalizeSelectionBound(t){let{s:e,editor:i,o}=this.j;!o.select.normalizeSelectionBeforeCutAndCopy||e.isCollapsed()||(!t||t.isTrusted&&r.Dom.isNode(t.target)&&r.Dom.isOrContains(i,t.target))&&this.jodit.s.expandSelection()}constructor(...t){super(...t),(0,o._)(this,"proxyEventsList",["click","mousedown","touchstart","mouseup","touchend"])}}(0,s.__decorate)([n.autobind],h.prototype,"onStartSelection",null),(0,s.__decorate)([(0,n.watch)("ow:click")],h.prototype,"onOutsideClick",null),(0,s.__decorate)([(0,n.watch)([":beforeCommandCut"])],h.prototype,"beforeCommandCut",null),(0,s.__decorate)([(0,n.watch)([":beforeCommandSelectall"])],h.prototype,"beforeCommandSelectAll",null),(0,s.__decorate)([(0,n.watch)([":click"])],h.prototype,"onTripleClickNormalizeSelection",null),(0,s.__decorate)([(0,n.watch)([":copy",":cut"])],h.prototype,"onCopyNormalizeSelectionBound",null),a.pluginSystem.add("select",h)},99436:function(t,e,i){"use strict";function o(t){return t.length?t[0].toUpperCase()+t.substring(1):""}i.d(e,{ucfirst:function(){return o}})},99732:function(t,e,i){"use strict";i.d(e,{isInt:function(){return n}});var o=i(70222),s=i(85932);function n(t){return(0,s.isString)(t)&&(0,o.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},99876:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg>'}},i={};function o(t){var s=i[t];if(void 0!==s)return s.exports;var n=i[t]={exports:{}};return e[t](n,n.exports,o),n.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return!function(){"use strict";o.r(s),o.d(s,{CommitMode:function(){return u},Jodit:function(){return t.Jodit}});var t=o(73302),e=o(28686),i=o(81937),n=o(84839),r=o(60936),a=o(13564),l=o(89317);o(93637),Object.keys(i).forEach(e=>{t.Jodit[e]=i[e]});let c=t=>"__esModule"!==t;Object.keys(a).filter(c).forEach(t=>{r.Icon.set(t.replace("_","-"),a[t])}),Object.keys(r).filter(c).forEach(i=>{let o=r[i],s=(0,e.isFunction)(o.prototype?.className)?o.prototype.className():i;(0,e.isString)(s)&&(t.Jodit.modules[s]=o)}),Object.keys(n).filter(c).forEach(e=>{t.Jodit.decorators[e]=n[e]}),["Confirm","Alert","Prompt"].forEach(e=>{t.Jodit[e]=r[e]}),Object.keys(l.default).filter(c).forEach(e=>{t.Jodit.lang[e]=l.default[e]});class u{}}(),s});