@progress/kendo-editor-common 1.11.1-dev.202312111303 → 1.11.1

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.
@@ -1 +1 @@
1
- System.register("@progress/kendo-editor-common",["tslib","prosemirror-dropcursor","prosemirror-commands","prosemirror-gapcursor","prosemirror-inputrules","prosemirror-keymap","prosemirror-model","prosemirror-schema-list","prosemirror-history","prosemirror-state","prosemirror-tables","prosemirror-transform","prosemirror-view"],function(D){var i,a,s,l,u,c,d,f,p,g,m,y,h;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){i=t(e)},function(e){a=t(e)},function(e){s=t(e)},function(e){l=t(e)},function(e){u=t(e)},function(e){c=t(e)},function(e){d=t(e)},function(e){f=t(e)},function(e){p=t(e)},function(e){g=t(e)},function(e){m=t(e)},function(e){y=t(e)},function(e){h=t(e)}],execute:function(){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var n,o;n=[function(e,t){e.exports=g},function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.setAttribute=l.applyStyle=l.parseStyle=l.expandToWordWrap=l.expandSelection=l.shallowEqual=l.indentHtml=l.selectedLineTextOnly=l.getNodeFromSelection=l.getSelectionText=l.hasSameMarkup=l.insertNode=l.parentNode=l.findNthParentNodeOfType=l.canInsert=l.setNodeStyle=l.changeStylesString=void 0;function s(e){return(e instanceof o.Node?e.type:e).name}function i(e){var t,n={};for(t in e)t&&(e[t]||0===e[t])&&(n[t]=e[t]);return n}var a=t(2),o=t(5),g=t(0),u=t(9),c=(l.changeStylesString=function(e,t){var n,r=t.style,o=t.value,t=t.newValue;return e?(n=(e=e.split(/\s*;\s*/).filter(function(e){return Boolean(e)})).filter(function(e){e=e.split(/\s*:\s*/);return!(e[0].toLowerCase()===r&&o.test(e[1]))}),t&&n.push(r+": "+t),{style:n.join("; ")+(n.length?";":""),changed:Boolean(t)||n.length!==e.length}):{changed:!1,style:null}},/^.+$/),m=(l.setNodeStyle=function(e,t,n){var r;return new RegExp("[^-]?"+t+":").test(e.style||"")?(r=l.changeStylesString(e.style||"",{style:t,value:c,newValue:n}).style,a.__assign(a.__assign({},e),{style:r})):e.style?a.__assign(a.__assign({},e),{style:e.style.replace(/;$/,"")+"; "+t+": "+n+";"}):a.__assign(a.__assign({},e),{style:t+": "+n+";"})},l.canInsert=function(e,t){for(var n=e.selection.$from,r=n.depth;0<=r;r--){var o=n.index(r);if(n.node(r).canReplaceWith(o,o,t))return!0}return!1},l.findNthParentNodeOfType=function(i,a){return void 0===a&&(a=1),function(e){t=void 0===a?1:a;for(var t,n=e.$from,r=n.depth;0<r;r--){var o=n.node(r);if(s(o)===s(i)&&0==--t)return{depth:r,node:o}}}},l.parentNode=function(e,t){for(var n=e.depth;0<n;n--){var r=e.node(n);if(t(r))return{node:r,depth:n}}return null},l.insertNode=function(r,o){return function(e,t){var n=e.selection,e=e.tr;n instanceof g.NodeSelection&&n.node.type.name===r.type.name&&r.isLeaf&&!r.isText&&1===r.nodeSize?(e.setNodeMarkup(n.from,null,a.__assign(a.__assign({},i(n.node.attrs)),i(r.attrs))),e.setSelection(g.NodeSelection.create(e.doc,n.from))):e.replaceSelectionWith(r),o&&e.scrollIntoView(),t(e)}},l.hasSameMarkup=function(e,t,n,r){e=o.Fragment.from(u.parseContent(e,n,r)),t=o.Fragment.from(u.parseContent(t,n,r));return e.eq(t)},l.getSelectionText=function(e){var e=e.selection;return e instanceof g.TextSelection||e instanceof g.AllSelection?(e=e.content().content).textBetween(0,e.size):""},l.getNodeFromSelection=function(e){if(e.selection instanceof g.NodeSelection)return e.selection.node},l.selectedLineTextOnly=function(e){var t="",n=!1,r=e.selection,o=e.doc,i=r.$from,a=r.$to,s=r.from,r=r.to;return i.sameParent(a)&&(o.nodesBetween(s,r,function(e){n=n||e.isLeaf&&!e.isText}),n||(t=l.getSelectionText(e))),t},l.indentHtml=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")},l.shallowEqual=function(t,n){var e=Object.keys(t),r=Object.keys(n);return e.length===r.length&&e.every(function(e){return t[e]===n[e]})},{before:/[^ !,?.\[\]{}()]+$/i,after:/^[^ !,?.\[\]{}()]+/i});l.expandSelection=function(e,t,n){if(n.applyToWord&&e.selection.empty){var r,n=!0===n.applyToWord?m:n.applyToWord,o=e.tr,i=e.selection,a=i.$head.nodeBefore,s=i.$head.nodeAfter;if(a&&"text"===a.type.name&&a.text&&s&&"text"===s.type.name&&s.text){var l=[];i.$head.parent.descendants(function(e,t){return l.push({node:e,pos:t}),!1});for(var u=i.$head.parentOffset,a=l.findIndex(function(e){var t=e.node,e=e.pos;return e<=u&&e+t.nodeSize>=u}),c=l[a].node.text,d=!1,f=a-1;0<=f;f--){var p=l[f];!d&&p&&"text"===p.node.type.name?c=p.node.text+c:(d=!0,u-=p.node.nodeSize)}for(f=a+1;f<l.length&&(p=l[f])&&"text"===p.node.type.name;f++)c+=p.node.text;var s=c.substring(0,u),a=c.substring(u),s=n.before.exec(s),n=n.after.exec(a);if(s&&n)return a=s[0].length,s=n[0].length,r=i.from,o.setSelection(g.TextSelection.create(e.doc,r-a,r+s)),{state:{tr:o,selection:o.selection,doc:o.doc,storedMarks:null,schema:o.doc.type.schema},dispatch:function(e){e.setSelection(g.TextSelection.create(e.doc,r)),t(e)}}}}return{state:e,dispatch:t}},l.expandToWordWrap=function(r,o){return function(e,t,n){e=l.expandSelection(e,t,o),t=e.state,e=e.dispatch;return r(o)(t,e)}},l.parseStyle=function(e){return(e||"").split(/\s*;\s*/).filter(Boolean).map(function(e){var t,e=e.split(/\s*:\s*/);return(t={})[e[0]]=e[1],t}).reduce(function(e,t){return a.__assign(a.__assign({},e),t)},{})},l.applyStyle=function(e,t,n){var r=l.parseStyle(e),e=(r[t]=n,Object.keys(r).map(function(e){return r[e]?e+": "+r[e]:null}).filter(Boolean).join("; "));return e?e+";":null},l.setAttribute=function(e,t,n){var r=e.getAttribute(t);if(void 0!==n&&n!==r)if("style"!==t)e.setAttribute(t,n);else{e.removeAttribute(t);var o,i=e,a=l.parseStyle(n);for(o in a)o&&void 0!==i.style[o]&&(i.style[o]=a[o])}else void 0===n&&e.removeAttribute(t)}},function(e,t){e.exports=i},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataResizeDirImage=t.dataResizeDirTable=t.resizeHandle=t.resizableWrap=t.resizableAttr=t.colgroupAttr=t.rowTypeAttr=void 0,t.rowTypeAttr="k-parent-node",t.colgroupAttr="k-colgroup-data",t.resizableAttr="k-resizable-node",t.resizableWrap="k-editor-resize-wrap-element",t.resizeHandle="k-editor-resize-handle",t.dataResizeDirTable="data-dir-table-resize",t.dataResizeDirImage="data-dir-image-resize"},function(e,t){e.exports=d},function(e,t){e.exports=m},function(e,t){e.exports=y},function(e,m,t){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.getActiveMarks=m.getMark=m.selectionMarks=m.styleValue=m.hasMark=m.cleanMarks=m.removeAllMarks=m.removeMarks=m.removeMark=m.toggleMark=m.markApplies=void 0;var n=t(7),y=t(5);m.markApplies=function(r,o,i){for(var e=0;e<o.length;e++){var t=function(e){var e=o[e],t=e.$from,e=e.$to,n=0===t.depth&&r.type.allowsMarkType(i);if(r.nodesBetween(t.pos,e.pos,function(e){if(n)return!1;n=e.inlineContent&&e.type.allowsMarkType(i)}),n)return{v:!0}}(e);if(t)return t.v}return!1},m.toggleMark=function(f,p,g){return function(e,t){var n=e.selection,r=n.empty,o=n.$cursor,i=n.ranges;if(r&&!o||!m.markApplies(e.doc,i,f))return!1;if(t)if(o)f.isInSet(e.storedMarks||o.marks())?t(g.removeStoredMark(f)):t(g.addStoredMark(f.create(p)));else{for(var a=!1,s=0;!a&&s<i.length;s++)var l=i[s],u=l.$from,c=l.$to,a=e.doc.rangeHasMark(u.pos,c.pos,f);for(s=0;s<i.length;s++){var d=i[s],u=d.$from,c=d.$to;a?g.removeMark(u.pos,c.pos,f):g.addMark(u.pos,c.pos,f.create(p))}t(g.scrollIntoView())}return!0}},m.removeMark=function(t,c,d,f){void 0===f&&(f=null);var p=[],g=0;return t.doc.nodesBetween(c,d,function(e,t){if(e.isInline){g++;var n,r=null;if(f instanceof y.MarkType?(n=f.isInSet(e.marks))&&(r=[n]):f?f.isInSet(e.marks)&&(r=[f]):r=e.marks,r&&r.length)for(var o=Math.min(t+e.nodeSize,d),i=0;i<r.length;i++){for(var a=r[i],s=void 0,l=0;l<p.length;l++){var u=p[l];u.step===g-1&&a.eq(u.style)&&(s=u)}s?(s.to=o,s.step=g):p.push({style:a,from:Math.max(t,c),to:o,step:g})}}}),p.forEach(function(e){return t.step(new n.RemoveMarkStep(e.from,e.to,e.style))}),t},m.removeMarks=function(r,t,n,o){var e=t.selection,i=e.$cursor,a=e.ranges;if(o=o||t.tr,i)r.forEach(function(e){e.isInSet(t.storedMarks||i.marks())&&n(o.removeStoredMark(e))});else{for(var s=0;s<a.length;s++)!function(e){var e=a[e],t=e.$from,n=e.$to;r.forEach(function(e){m.removeMark(o,t.pos,n.pos,e)})}(s);n(o.scrollIntoView())}return!0},m.removeAllMarks=function(e){var e=(void 0===e?{}:e).except,r=void 0===e?[]:e;return function(e,t){var n,e=e.tr;m.cleanMarks(e,{except:(n=r)instanceof Array?n:[n]}),e.docChanged&&t(e)}},m.cleanMarks=function(r,e){var o,e=e.except,t=r.doc,n=r.selection,i=t.type.schema,t=n.empty,n=n.ranges,a=(e||[]).map(function(e){return e.name});t||(o=Object.keys(i.marks).map(function(e){return i.marks[e]}).filter(function(e){return-1===a.indexOf(e.name)}),n.forEach(function(e){var t=e.$from,n=e.$to;o.forEach(function(e){return r.removeMark(t.pos,n.pos,e)})}))},m.hasMark=function(e,t){var n,r=e.schema.marks,o=(t.altMarks||[]).filter(function(e){return r[e]}),i=t.altStyle,a=e.selection,s=a.from,l=a.$from,u=a.to,a=a.empty,t=r[t.mark],c=e.doc,d=!1;return!(d=a?(n=e.storedMarks||l.marks(),t&&t.isInSet(n)||o.some(function(e){return r[e].isInSet(n)})):t&&c.rangeHasMark(s,u,t)||o.some(function(e){return c.rangeHasMark(s,u,r[e])}))&&i&&r.style?m.selectionMarks(e,r.style).some(function(e){return null!==m.styleValue(e,i)}):Boolean(d)},m.styleValue=function(e,t){for(var n=(e&&e.attrs.style||"").split(/\s*;\s*/).filter(function(e){return Boolean(e)}),r=0;r<n.length;r++){var o=n[r].split(/\s*:\s*/);if(o[0].toLowerCase()===t.name&&t.value.test(o[1]))return o[1]}return null},m.selectionMarks=function(e,t){var n=e.selection,r=n.from,o=n.$from,i=n.to,a=[];return n.empty?a.push(t.isInSet(e.storedMarks||o.marks())):e.doc.nodesBetween(r,i,function(e){e.isInline&&a.push(t.isInSet(e.marks))}),a},m.getMark=function(e,t){e=m.selectionMarks(e,t),t=e.filter(function(e){return Boolean(e)});return e.length===t.length?e[0]:void 0},m.getActiveMarks=function(e,t){e=m.selectionMarks(e,t),t=e.filter(function(e){return Boolean(e)});return{hasNodesWithoutMarks:e.length!==t.length,marks:t}}},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setHtml=i.getHtml=i.parseContent=i.domToPmDoc=i.pmDocToFragment=i.fragmentToHtml=i.htmlToFragment=i.trimWhitespace=void 0;function o(e,t){var n=(e.ownerDocument||document).createElement(t);Array.from(e.rows).filter(function(e){return e.getAttribute(l.rowTypeAttr)===t}).forEach(function(e){e.removeAttribute(l.rowTypeAttr),n.appendChild(e)}),n.children.length&&e.appendChild(n)}function r(e,n){var t=n.toUpperCase();e.filter(function(e){return e.nodeName===t}).forEach(function(t){Array.from(t.children).forEach(function(e){e.setAttribute(l.rowTypeAttr,n),t.parentNode&&t.parentNode.insertBefore(e,t)}),t.remove()})}function n(e){return e.replace(f," data-style=")}var a=t(5),s=t(0),l=t(4),u=t(51),c=["div","ol","ul","li","table","tbody","thead","tfoot","caption","td","th","p","tr","col","colgroup","article","main","nav","header","footer","aside","section"],d=(i.trimWhitespace=function(e,t){t=(t=void 0===t?c:t).join("|");return e.replace(new RegExp("\\s*(<(?:"+t+")(?:\\s[^>]*?)?>)","g"),"$1").replace(new RegExp("(<\\/(?:"+t+")(?:\\s[^>]*?)?>)\\s*","g"),"$1")},/<[^>]+>/gm),f=/\sstyle=/gm;i.htmlToFragment=function(e){var t=document.createElement("template");return t.innerHTML=e.replace(d,n),e=t.content,Array.from(e.querySelectorAll("[data-style]")).forEach(function(e){var t,n=e.getAttribute("data-style");e.removeAttribute("data-style"),t=e,n.split(";").filter(function(e){return""!==e}).forEach(function(e){e=e.split(":");t.style[e[0].trim()]=e[1].trim()})}),t.content},i.fragmentToHtml=function(e){return Array.from(e.childNodes).reduce(function(e,t){return e+(t.outerHTML||t.textContent||"")},"")},i.pmDocToFragment=function(e){e=u.DOMSerializer.fromSchema(e.type.schema).serializeFragment(e.content);return Array.from(e.querySelectorAll("table")).forEach(function(e){o(e,"thead"),o(e,"tbody"),o(e,"tfoot");var t=Array.from(e.children).find(function(e){return 0===e.children.length}),t=(t&&t.remove(),e.parentNode instanceof HTMLDivElement?e.parentNode:null);if(t&&t.matches("div[table]")){e.style.marginLeft=t.style.marginLeft,e.style.marginRight=t.style.marginRight;var n=Array.from(t.children).find(function(e){return e.matches("div[caption]")});if(n&&"<img>"!==n.innerHTML){var r=e.createCaption();for(n.id&&(r.id=n.id),n.className&&(r.className=n.className),Array.from(n.style).forEach(function(e){r.style[e]=n.style[e]});n.firstChild;)r.appendChild(n.firstChild)}t.style.width&&!e.style.width&&(e.style.width=t.style.width),t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t)}}),e},i.domToPmDoc=function(e,t,n){return a.DOMParser.fromSchema(t).parse(e,n)},i.parseContent=function(e,t,n){e=i.htmlToFragment(e);return Array.from(e.querySelectorAll("table")).forEach(function(t){var e=Array.from(t.children),e=(e.some(function(e){return"THEAD"===e.nodeName||"TFOOT"===e.nodeName})&&(r(e,"thead"),r(e,"tbody"),r(e,"tfoot")),e.find(function(e){return"COLGROUP"===e.nodeName}));if(e&&(t.setAttribute(l.colgroupAttr,e.outerHTML),e.remove()),t.caption||t.style.marginLeft||t.style.marginRight){e=document.createElement("div");if(e.setAttribute("table",""),e.style.display="table",e.style.marginLeft=t.style.marginLeft,e.style.marginRight=t.style.marginRight,t.caption){var n=document.createElement("div");for(n.setAttribute("caption",""),t.caption.id&&(n.id=t.caption.id),t.caption.className&&(n.className=t.caption.className),Array.from(t.caption.style).forEach(function(e){n.style[e]=t.caption.style[e]});t.caption.firstChild;)n.appendChild(t.caption.firstChild);t.removeChild(t.caption),e.appendChild(n)}t.parentNode.insertBefore(e,t),e.appendChild(t),/%/.test(t.style.width)&&(e.style.width=t.style.width,t.style.width="")}}),i.domToPmDoc(e,t,n)},i.getHtml=function(e){e=i.pmDocToFragment(e.doc);return i.fragmentToHtml(e)},i.setHtml=function(n,r,o){return void 0===r&&(r="setHTML"),void 0===o&&(o={preserveWhitespace:"full"}),function(e,t){return t(e.tr.setSelection(new s.AllSelection(e.doc)).replaceSelectionWith(i.parseContent(n,e.schema,o)).setMeta("commandName",r))}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.edgeCell=n.cellIndexes=n.domCellAround=n.getTable=n.otherResizeHandle=n.otherResizing=n.tableRowResizeKey=n.tableColumnResizeKey=n.tableResizeKey=void 0;var r=t(0),o=t(6),i=t(1);n.tableResizeKey=new r.PluginKey("table-resize"),n.tableColumnResizeKey=new r.PluginKey("table-column-resizing"),n.tableRowResizeKey=new r.PluginKey("table-row-resizing"),n.otherResizing=function(e,t){return e!==n.tableResizeKey&&Boolean(n.tableResizeKey.get(t))&&n.tableResizeKey.getState(t).dragging||e!==n.tableColumnResizeKey&&Boolean(n.tableColumnResizeKey.get(t))&&n.tableColumnResizeKey.getState(t).dragging||e!==n.tableRowResizeKey&&Boolean(n.tableRowResizeKey.get(t))&&n.tableRowResizeKey.getState(t).dragging},n.otherResizeHandle=function(e,t){return e!==n.tableColumnResizeKey&&Boolean(n.tableColumnResizeKey.get(t))&&-1<n.tableColumnResizeKey.getState(t).activeHandle||e!==n.tableRowResizeKey&&Boolean(n.tableRowResizeKey.get(t))&&-1<n.tableRowResizeKey.getState(t).activeHandle},n.getTable=function(e){return e&&e.firstChild&&"TABLE"===e.firstChild.nodeName?e.firstChild:e},n.domCellAround=function(e){for(;e&&"TD"!==e.nodeName&&"TH"!==e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e},n.cellIndexes=function(r){e=r.closest("table"),e=Array.from(e&&e.rows||[]),t=Array.from(e&&e[0]&&e[0].cells||[]).map(function(e){return e.colSpan}).reduce(function(e,t){return e+t},0),a=e.map(function(){return new Array(t)}),e.forEach(function(e,o){var i=0;Array.from(e.cells).forEach(function(e){for(var t=0;t<e.colSpan;t++){for(var n=0;n<e.rowSpan;n++){var r=a[o+n].findIndex(function(e,t){return i<=t&&!e});a[o+n][r]=e}i++}})});for(var e,t,a,o=a,i=null,n=0;n<o.length&&"break"!==function(n){if(o[n].forEach(function(e,t){r===e&&(i={rowIndex:n,cellIndex:t})}),i)return"break"}(n);n++);return i||{rowIndex:-1,cellIndex:-1}},n.edgeCell=function(e,t,n){var t=e.posAtCoords({left:t.clientX,top:t.clientY});return!t||(e=e.state.doc.resolve(t.pos),null===(t=i.parentNode(e,function(e){return"table"===e.type.spec.tableRole})))?-1:(e=e.start(t.depth),t=t.node,e+(e=o.TableMap.get(t)).map[e.width*n.rowIndex+n.cellIndex])}},function(e,t){e.exports=s},function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.activeNode=s.parentBlockFormat=s.hasNode=s.addStyles=s.getBlockFormats=s.cleanTextBlockFormatting=s.formatBlockElements=s.blockNodes=s.changeTextBlock=void 0;var l=t(2),o=t(1),u=t(7),c=t(5),i=t(0);s.changeTextBlock=function(i,a,s,l){if(!s.isTextblock)return!1;i.selection.ranges.forEach(function(e){var o=i.steps.length,t=e.$from.pos,e=e.$to.pos;i.doc.nodesBetween(t,e,function(e,t){var n,r;if(e.eq(a)&&e.isTextblock&&!e.hasMarkup(s,l)&&function(e,t,n){e=e.resolve(t),t=e.index();return e.parent.canReplaceWith(t,t+1,n)}(i.doc,i.mapping.slice(o).map(t),s))return i.clearIncompatible(i.mapping.slice(o).map(t,1),s),n=(r=i.mapping.slice(o)).map(t,1),r=r.map(t+e.nodeSize,1),t=new c.Slice(c.Fragment.from(s.create(l,null,e.marks)),0,0),i.step(new u.ReplaceAroundStep(n,r,n+1,r-1,t,1,!0)),!1})})},s.blockNodes=function(e,t){var n=e.doc,e=e.selection,r=e.$from,o=e.ranges,a=(t=void 0===t?{blocksInSelection:!1}:t).blocksInSelection,s=[],t=e instanceof i.NodeSelection?e.node:void 0;return t?t.isBlock?(s.push(t),t.nodesBetween(0,t.content.size,function(e){e.isBlock&&s.push(e)})):!a&&r.parent&&r.parent.isBlock&&s.push(r.parent):o.forEach(function(e){var o=e.$from.pos,i=e.$to.pos;n.nodesBetween(o,i,function(e,t,n,r){e.isBlock&&(!a||o<=t&&t+e.content.size+2<=i)&&s.push(e)})}),s},s.formatBlockElements=function(a,r){return function(e,t){var n=s.blockNodes(e),o=e.schema.nodes,i=e.tr,e=(i.setMeta("commandName",r),i.setMeta("args",{value:a}),n.forEach(function(e){var t,n,r;e.type.isTextblock&&("p"===a?(n=(r=e.attrs).level,r=l.__rest(r,["level"]),s.changeTextBlock(i,e,o.paragraph,r)):/^h[1-6]$/i.test(a)?(n=parseInt(a.substr(1),10),s.changeTextBlock(i,e,o.heading,l.__assign(l.__assign({},e.attrs),{level:n}))):"blockquote"===a&&(n=(t=e.attrs).level,r=l.__rest(t,["level"]),s.changeTextBlock(i,e,o.blockquote,r)))}),i.docChanged);return e&&t(i.scrollIntoView()),e}},s.cleanTextBlockFormatting=function(i,e){var t=i.doc,n=i.selection,r=(e=void 0===e?{blocksInSelection:!0}:e).blocksInSelection,a=e.blockNodeType;s.blockNodes({doc:t,selection:n},{blocksInSelection:r}).filter(function(e){return e.isTextblock}).forEach(function(e){var t=e.attrs||{},n=t.style,n=void 0===n?"":n,r=t.class,r=void 0===r?"":r,t=l.__rest(t,["style","class"]),o=a||e.type;(n||r||o!==e.type)&&s.changeTextBlock(i,e,o,t)})},s.getBlockFormats=function(e){var t=s.blockNodes(e),n=e.schema.nodes,r=[];return t.forEach(function(e){e.type===n.paragraph?r.push("p"):e.type===n.heading?r.push("h"+e.attrs.level):e.type===n.blockquote&&n.blockquote.isTextblock&&r.push("blockquote")}),r},s.addStyles=function(e,t){var n,r=e.attrs.style;return r&&t.forEach(function(e){n={style:e.name,value:/^.+$/,newValue:e.value},n=o.changeStylesString(r,n),r=n.changed?n.style:r}),r=r||t.reduce(function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""},""),Object.assign({},e.attrs,{style:r||null})},s.hasNode=function(e,t){var n=e.selection,r=n.from,n=n.to,o=!1;return e.doc.nodesBetween(r,n,function(e){return!(o=o||e.type===t)}),o},s.parentBlockFormat=function(e){e=s.getBlockFormats(e);return 1===new Set(e).size?e[0]:null},s.activeNode=function(e){return{tag:s.parentBlockFormat(e)||""}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handles=t.directions=void 0,t.directions={southeast:{x:1,y:1},east:{x:1,y:0},south:{x:0,y:1},north:{x:0,y:-1},west:{x:-1,y:0},southwest:{x:-1,y:1},northwest:{x:-1,y:-1},northeast:{x:1,y:-1}},t.handles=Object.keys(t.directions)},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.marks=i.nodes=i.parseStrColgroup=void 0;function a(e){for(var t,n={},r=e.attributes,o=0;o<r.length;o++)n[(t=r[o]).name]=t.value;return n}function n(e){var t={};return e.forEach(function(e){t[e]={default:null}}),t}function r(){return n(["style","class","id"])}function s(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return 1}function l(e,n){void 0===n&&(n=[]);var t,r={};for(t in e)!function(t){t&&null!==e[t]&&!n.find(function(e){return e===t})&&(r[t]=e[t])}(t);return r}function o(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t}function u(n){var e;return(e={})[n]={default:null,getFromDOM:function(e){return e.getAttribute(n)},setDOMAttr:function(e,t){t[n]=e}},e}var c=t(2),d=t(5),f=t(6),p=t(9),g=t(4),m=["blockquote",0],y=["hr"],h=["pre",["code",0]],b=["ol",0],v=["ul",0],w=["li",0],t=c.__assign(c.__assign(c.__assign(c.__assign(c.__assign(c.__assign(c.__assign(c.__assign(c.__assign(c.__assign({link:{attrs:c.__assign(c.__assign({},r()),{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:a}],toDOM:function(e){return["a",l(e.attrs),0]}}},o("strong")),o("b")),o("em")),o("i")),o("del")),o("sub")),o("sup")),o("code")),{style:{attrs:c.__assign({},r()),parseDOM:[{tag:"span",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["span",l(e.attrs),0]:["span",0]}}}),o("u")),t=(i.marks=t,c.__assign(c.__assign(c.__assign(c.__assign(c.__assign({},u("style")),u("class")),u("id")),u("headers")),u("scope"))),k={doc:{content:"colgroup*"},col:{attrs:n(["id","class","style","span"]),parseDOM:[{getAttrs:a,tag:"col"}],toDOM:function(e){return["col",e.attrs]}},colgroup:{attrs:n(["id","class","style","span"]),content:"col*",parseDOM:[{getAttrs:a,tag:"colgroup"}],toDOM:function(e){return["colgroup",e.attrs,0]}},text:{inline:!0,group:"inline"}},_=new d.Schema({nodes:k,marks:{}}),d=(i.parseStrColgroup=function(e){e=p.domToPmDoc(p.htmlToFragment(e),_,{preserveWhitespace:!1});return p.pmDocToFragment(e).firstChild},f.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:t})),k=(d.table_row.attrs=c.__assign(c.__assign({},d.table_row.attrs),n([g.rowTypeAttr,"style","class","id"])),d.table_row.toDOM=function(e){return["tr",l(e.attrs),0]},d.table_row.parseDOM=[{tag:"tr",getAttrs:a}],d.table.attrs=c.__assign(c.__assign({},d.table.attrs),n(["style","class","id",g.colgroupAttr,g.resizableAttr])),d.table.toDOM=function(r){var e,t,n=s(r.attrs)?l(r.attrs,[g.colgroupAttr,g.resizableAttr]):{},o=null;return r.attrs[g.colgroupAttr]&&!function(){for(var e=!1,t=r.child(0),n=0;n<t.childCount;n++)if(t.child(n).attrs.colwidth){e=!0;break}return e}()&&(e=i.parseStrColgroup(r.attrs[g.colgroupAttr]))&&(t=Array.from(e.children).map(function(e){return["col",a(e)]}),o=["colgroup",a(e)].concat(t)),o?["table",n,o,["tbody",0]]:["table",n,["tbody",0]]},d.table.parseDOM=[{tag:"table",getAttrs:function(e){var t=a(e),e=Array.from(e.childNodes).find(function(e){return"COLGROUP"===e.nodeName});return e&&(t[g.colgroupAttr]=e.outerHTML),t}}],c.__assign({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:c.__assign({},r()),parseDOM:[{tag:"p",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["p",l(e.attrs),0]:["p",0]}},table_wrapper:{content:"(table_caption_external | table)+",group:"block",defining:!0,attrs:{table:{default:null},style:{default:null}},parseDOM:[{tag:"div[table]",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["div",l(e.attrs),0]:["div",0]}},table_caption_external:{content:"inline+",group:"block",attrs:c.__assign({caption:{default:null}},r()),parseDOM:[{tag:"div[caption]",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["div",l(e.attrs),0]:["div",0]}},div:{content:"block*",group:"block",attrs:c.__assign({},r()),parseDOM:[{tag:"div",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["div",l(e.attrs),0]:["div",0]}},blockquote:{attrs:c.__assign({},r()),content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["blockquote",l(e.attrs),0]:m}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return y}},heading:{attrs:c.__assign(c.__assign({},r()),{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:1})}},{tag:"h2",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:2})}},{tag:"h3",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:3})}},{tag:"h4",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:4})}},{tag:"h5",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:5})}},{tag:"h6",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:6})}}],toDOM:function(e){return s(e.attrs,"level")?["h"+e.attrs.level,l(e.attrs,["level"]),0]:["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:function(){return h}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:c.__assign({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},r()),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["img",l(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:c.__assign({},r()),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["br",l(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:c.__assign(c.__assign({},r()),{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?s(e.attrs,"order")?["ol",l(e.attrs,["order"]),0]:b:["ol",c.__assign(c.__assign({},l(e.attrs,["order"])),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:c.__assign({},r()),parseDOM:[{tag:"ul",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["ul",l(e.attrs),0]:v}},list_item:{content:"(paragraph | heading) block*",attrs:c.__assign({},r()),parseDOM:[{tag:"li",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["li",l(e.attrs),0]:w},defining:!0}},d));i.nodes=k},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyInlineStyle=t.toggleInlineFormat=t.getInlineStyles=void 0;function p(f,p){return function(e,t,n){var r=e.selection,o=r.empty,i=r.ranges,r=e.selection instanceof g.TextSelection&&e.selection.$cursor;if(o&&!r||!y.markApplies(e.doc,i,f))return!1;var a=!1;if(t){var s=n||e.tr;if(r){o=e.storedMarks||r.marks();if(f.isInSet(o)){var n=w(o,p),e=o.find(function(e){return"style"===e.type.name}),l=b.__assign(b.__assign({},e?e.attrs:{}),{style:n.style||null});if(m.shallowEqual(e.attrs,l))return!1;t(s.removeStoredMark(f)),Object.keys(l).some(function(e){return null!==l[e]})&&t(s.addStoredMark(f.create(l))),a=!0}}else{for(var u=0;u<i.length;u++)var c=i[u],d=c.$from,c=c.$to,a=function(t,u,c,d,f){var p=f.create({style:d.style}),g=[],m=[],y=null,h=null;return t.doc.nodesBetween(u,c,function(e,t,n){if(e.isInline){var r=e.marks;if(!p.isInSet(r)&&n.type.allowsMarkType(p.type)){var o=Math.max(t,u),i=Math.min(t+e.nodeSize,c),n=w(r,d);if(n.changed||d.newValue){for(var t=n.changed?{style:n.style||null}:{style:[d.style]+": "+d.newValue+";"},e=f.isInSet(r)?r.find(function(e){return"style"===e.type.name}):null,a=e?b.__assign(b.__assign({},e.attrs),t):t,n=f.create(a),s=n.addToSet(r),l=0;l<r.length;l++)r[l].isInSet(s)||(y&&y.to===o&&y.mark.eq(r[l])?y.to=i:(y=new v.RemoveMarkStep(o,i,r[l]),g.push(y)));e=h&&h.to===o,t=e&&n.attrs.style===h.mark.attrs.style;e&&t?h.to=i:Object.keys(a).some(function(e){return null!==a[e]})&&(h=new v.AddMarkStep(o,i,n),m.push(h))}}}}),g.forEach(function(e){return t.step(e)}),m.forEach(function(e){return t.step(e)}),0<g.length+m.length}(s,d.pos,c.pos,p,f)||a;a&&(s.scrollIntoView(),t(s))}}return a}}var b=n(2),v=n(7),g=n(0),m=n(1),y=n(8),w=function(e,t){e=e.find(function(e){return"style"===e.type.name}),e=e&&e.attrs.style;return m.changeStylesString(e,t)};t.getInlineStyles=function(e,t){var n=e.schema.marks.style;return(n?y.selectionMarks(e,n):[]).map(function(e){return y.styleValue(e,t)}).filter(function(e){return null!==e})};t.toggleInlineFormat=function(c,d,f){return function(t,e){function n(){return u=!0}var r=t.schema.marks,o=c.altStyle,i=c.altMarks,i=void 0===i?[]:i,a=c.mark,s=d||t.tr,l=!1,u=!1,o=(o&&r.style&&(l=p(r.style,{style:o.name,value:o.value})(t,n,s)),b.__spreadArray([a],i).filter(function(e){return r[e]}).map(function(e){return y.hasMark(t,{mark:e})&&r[e]}).filter(function(e){return e}));return o.length?y.removeMarks(o,t,n,s):l||y.toggleMark(r[a],f,s)(t,n),u&&e(s),u}},t.applyInlineStyle=function(u,c){return function(e,t){var n,r=e.schema.marks.style,o={style:u.style,value:/^.+$/,newValue:u.value},i=e.tr,a=(c&&i.setMeta("commandName",c),i.setMeta("args",u),e.selection),s=a.empty,l=a.$cursor,a=a.ranges;return!(s&&!l||!r||!y.markApplies(e.doc,a,r))&&(l?(s=e.storedMarks||l.marks(),a={style:null},(l=r.isInSet(s)?s.find(function(e){return"style"===e.type.name}):null)&&l.attrs.style?(s=m.changeStylesString(l.attrs.style,o)).changed&&s.style&&(a.style=s.style):o.newValue&&(a.style=[o.style]+": "+o.newValue+";"),n=l?b.__assign(b.__assign({},l.attrs),a):a,Object.keys(n).some(function(e){return null!==n[e]})?t(i.addStoredMark(r.create(n))):t(i.removeStoredMark(r)),!0):p(r,o)(e,t,i))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertMsLists=void 0;function y(e){return/^MsoListParagraph/.test(e.className)}function h(e){return(e=(e=e.innerHTML).replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")}function b(e,t){return(e=document.createElement(e)).style.listStyleType=t,e}function o(e,n){var r=[];Array.from(e).forEach(function(e){var t;e.nodeType===Node.ELEMENT_NODE&&((t=e).getAttribute("datalist")?(r.push(e),n.add(r)):y(t)&&r.length?r.push(e):(r=[],"DIV"===t.nodeName?o(t.children,n):"TABLE"===t.nodeName&&Array.from(t.querySelectorAll("td,th")).forEach(function(e){o(e.children,n)})))})}function v(e){function t(e){return e.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")}var n,r=(r=e.innerHTML).replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g," ");return/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(r)?{tag:"ul",style:(n=t(h(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(n)?null:/^o/.test(n)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(r)?{tag:"ol",style:(n=t(h(e)),r=null,r=/^\d/.test(n)?r:(/^[a-z]/.test(n)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(n)?"roman":"alpha"))}:void 0}var w=n(9),r=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi;t.convertMsLists=function(e){var e=w.htmlToFragment(e.replace(r,function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e})),t=new Set;return o(e.children,t),t.forEach(function(e){for(var t,n,r,o,i,a,s,l=e,u=-1,c={},d=0;d<l.length;d++){var f,p,g=(f={datalist:(a=l[d]).getAttribute("datalist"),datalevel:a.getAttribute("datalevel")}).datalist,m=v(a);(s=m&&m.tag)?(p=f.datalevel||parseFloat(a.style.marginLeft||0),(f.datalevel||a.style.marginLeft)&&(f=s+g,c[p]||(c[p]={}),(!n||n<0)&&(n=p,r=g,o=(g=l.filter(function(e){return e.getAttribute("datalist")===String(r)}))[g.length-1],g=b(s,m&&m.style),a.parentNode.insertBefore(g,a),c[u=p][f]=g),i=o===a,g=c[p][f],(u<p||!g)&&(g=b(s,m&&m.style),c[p][f]=g,t.appendChild(g)),s=void 0,s=(m=a).nodeName.toLowerCase(),m.firstChild&&m.firstChild.nodeType===Node.COMMENT_NODE&&m.removeChild(m.firstChild),s=1===m.childNodes.length?m.firstChild.nodeType===Node.TEXT_NODE?h(m):m.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(m.removeChild(m.firstChild),3===m.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(m.firstChild.nodeValue)&&m.removeChild(m.firstChild),/^(&nbsp;|\s)+$/i.test(m.firstChild.innerHTML)&&m.removeChild(m.firstChild),"p"!==s?"<"+s+">"+m.innerHTML+"</"+s+">":m.innerHTML),m.parentNode.removeChild(m),(m=document.createElement("li")).appendChild(w.htmlToFragment(s)),t=m,g.appendChild(t),i?n=u=-1:u=p)):!t||i&&!y(a)||(a.style.marginLeft&&(a.style.marginLeft=""),a.style.marginLeft&&(a.style.margin=""),t.appendChild(a))}}),w.fragmentToHtml(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unlink=t.link=t.superscript=t.subscript=t.strikethrough=t.underline=t.italic=t.bold=void 0,t.bold={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},t.italic={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},t.underline={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},t.strikethrough={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},t.subscript={mark:"sub"},t.superscript={mark:"sup"},t.link={mark:"link"},t.unlink={mark:"link"}},function(e,t){e.exports=u},function(e,t){e.exports=p},function(e,h,t){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.splitListItemKeepMarks=h.toggleOrderedList=h.toggleUnorderedList=h.toggleList=h.listStyle=void 0;var r=t(2),b=t(5),v=t(0),w=t(7),f=t(11),p=t(15),o=t(23);function k(d){return function(e,t,n){var r,o,i,a,s,l,u,c;return!!n&&(r=(e=n.state).schema.nodes[d.listType],o=e.selection,c=o.$from,o=o.$to,i=c.node(-2),a=c.node(-3),s=e.doc,l=r,s=0===function(e,t,n){for(var r=Array(),o=function(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;t.node(t.depth);for(var r,o=t;1<=t.depth;)(r=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==n.indexOf(r.type.name)&&(o=t);return o}(e,t).depth,i=e.resolve(t.start(o));i.pos<=n.start(n.depth);){var a=Math.min(i.depth,o),s=i.node(a);if(s&&r.push(s),0===a)break;s=e.resolve(i.after(a));if(s.start(a)>=e.nodeSize-2)break;i=(s=s.depth!==i.depth?e.resolve(s.pos+2):s).depth?e.resolve(s.start(s.depth)):e.resolve(s.end(s.depth))}return r}(s,c,o).filter(function(e){return e.type!==l}).length,((i&&i.type===r||a&&a.type===r)&&s?g(d):(s||(g(d)(e,t),e=n.state),u=r,c=d.listAttrs,f.autoJoin(p.wrapInList(u,c=void 0===c?{}:c),function(e,t){return e.type===t.type&&e.type===u})))(e,t))}}function g(i){return function(n,e){var r=n.tr,t=n.selection,o=t.$from,t=t.$to;return r.doc.nodesBetween(o.pos,t.pos,function(e,t){if(e.isTextblock||"blockquote"===e.type.name||"div"===e.type.name)return!(!(t=(e=new v.NodeSelection(r.doc.resolve(r.mapping.map(t)))).$from.blockRange(e.$to))||e.$from.parent.type!==n.schema.nodes[i.listItem])&&null!=(e=t&&w.liftTarget(t))&&void r.lift(t,e)}),e&&e(r),!0}}var n=/list\-style\-type:\s?([\w-]+)/;h.listStyle=function(e){e=e.style||"",e=n.exec(e);return e&&e[1]||""},h.toggleList=function(e,t,n,r,o){var s,i,a,l,u,c,d,f=r.listType,p=r.listAttrs,p=void 0===p?{style:null}:p,g=e.selection,m=g.$from.node(g.$from.depth-2),y=g.$to.node(g.$to.depth-2);return m&&m.type.name===f&&h.listStyle(m.attrs)===h.listStyle(p)&&y&&y.type.name===f&&h.listStyle(y.attrs)===h.listStyle(p)?(m=n.state.schema.nodes,s={bulletList:m[r.bulletList],orderedList:m[r.orderedList],listItem:m[r.listItem]},f=function(e){for(var t,n=s.bulletList,r=s.orderedList,o=s.listItem,i=e.depth-1;0<i;i--){var a=e.node(i);if(a.type!==n&&a.type!==r||(t=i),a.type!==n&&a.type!==r&&a.type!==o)break}return t}(g.$to),i=e,a=g.$to.pos,y=g.$to.end(f),l=f,u=n.state.tr,c=(c=s.listItem)||i.schema.nodes.listItem,d=!1,u.doc.nodesBetween(a,y,function(e,t){if(!d&&e.type===c&&a<t){d=!0;for(var n=l+3;l+2<n;){var r=u.doc.resolve(u.mapping.map(t)),n=r.depth,o=u.doc.resolve(u.mapping.map(t+e.textContent.length)),r=new v.TextSelection(r,o);u=function(e,t,n,r){var o,i=r||e.schema.nodes.listItem,r=t.$from,e=t.$to;return!(t=r.blockRange(e,function(e){return e.childCount&&e.firstChild.type===i}))||t.depth<2||r.node(t.depth-1).type!==i?n:((o=t.end)<(e=e.end(t.depth))&&(n.step(new w.ReplaceAroundStep(o-1,e,o,e,new b.Slice(b.Fragment.from(i.create(void 0,t.parent.copy())),1,0),1,!0)),t=new b.NodeRange(n.doc.resolve(r.pos),n.doc.resolve(e),t.depth)),n.lift(t,w.liftTarget(t)).scrollIntoView())}(i,r,u,c)}}}),(p=function(e,t,n){var r=e.selection,o=r.from,r=r.to,i=e.schema.nodes,a=i.paragraph,s=i.heading,l=[];t.doc.nodesBetween(o,r,function(e,t){e.type!==a&&e.type!==s||l.push({node:e,pos:t})});for(var u=l.length-1;0<=u;u--){var c,d=l[u],f=t.doc.resolve(t.mapping.map(d.pos));0<f.depth&&(c=void 0,c=d.node.textContent&&0<d.node.textContent.length?t.doc.resolve(t.mapping.map(d.pos+d.node.textContent.length)):t.doc.resolve(t.mapping.map(d.pos+1)),d=f.blockRange(c))&&t.lift(d,function(e,t,n){for(var r=t.depth,o=e.nodes[n.bulletList],i=e.nodes[n.orderedList],a=e.nodes[n.listItem],s=t.depth;0<s;s--){var l=t.node(s);if(l.type!==o&&l.type!==i||(r=s),l.type!==o&&l.type!==i&&l.type!==a)break}return r-1}(e.schema,f,n))}return t}(e,p=u,r)).setMeta("commandName",o),t(p),!0):k(r)(e,t,n)},h.toggleUnorderedList=function(e,t,n){return h.toggleList(e,t,n,r.__assign({listType:o.bulletList.listType},o.bulletList.types))},h.toggleOrderedList=function(e,t,n){return h.toggleList(e,t,n,r.__assign({listType:o.orderedList.listType},o.orderedList.types))},h.splitListItemKeepMarks=function(e){return function(n,r){return p.splitListItem(e)(n,function(e){var t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();t&&e.ensureMarks(t),r(e)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.liftBlockquote=t.blockquote=void 0;var r=n(11);t.blockquote=function(e,t){return r.wrapIn(e.schema.nodes.blockquote)(e,t)},t.liftBlockquote=function(e,t){var n=e.selection,r=n.$from,n=n.$to,o=e.schema.nodes.blockquote,i=e.doc,a=-1,r=r.blockRange(n),n=(r&&i.nodesBetween(r.start,r.end,function(e,t,n,r){e.type===o&&(a=t)}),-1!==a);return t&&n&&t(e.tr.lift(r,i.resolve(a).depth)),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bulletList=t.orderedList=t.listsTypes=void 0;n=n(2);t.listsTypes={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},t.orderedList={listType:t.listsTypes.orderedList,types:n.__assign({},t.listsTypes)},t.bulletList={listType:t.listsTypes.bulletList,types:n.__assign({},t.listsTypes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outdentRules=t.indentRules=void 0;var r=n(2),n=n(23);t.indentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"}],listsTypes:r.__assign({},n.listsTypes)},t.outdentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"}],listsTypes:r.__assign({},n.listsTypes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pmDeleteColumn=t.pmAddColumnAfter=t.pmAddColumnBefore=t.pmAddRowAfter=t.pmAddRowBefore=t.deleteColumn=t.addColumnAfter=t.addColumnBefore=t.addRowAfter=t.addRowBefore=t.createTable=void 0;function u(e,t){var n,r;return e?(n=o.TableMap.get(e.node),t=g(t,i),(r=-1)!==(t=n.map.indexOf(t.pos-e.pos-1))?t%n.width:r):-1}function r(e,t,n){var r=u(t,e.selection),o=f.parseStrColgroup(t.node.attrs[d.colgroupAttr]);o.insertBefore(o.ownerDocument.createElement("col"),o.children[r+n]),e.setNodeMarkup(t.pos,null,c.__assign(c.__assign({},t.node.attrs),((r={})[d.colgroupAttr]=o.outerHTML,r)))}var c=n(2),o=n(6),d=(Object.defineProperty(t,"pmAddRowAfter",{enumerable:!0,get:function(){return o.addRowAfter}}),Object.defineProperty(t,"pmAddRowBefore",{enumerable:!0,get:function(){return o.addRowBefore}}),Object.defineProperty(t,"pmAddColumnBefore",{enumerable:!0,get:function(){return o.addColumnBefore}}),Object.defineProperty(t,"pmAddColumnAfter",{enumerable:!0,get:function(){return o.addColumnAfter}}),Object.defineProperty(t,"pmDeleteColumn",{enumerable:!0,get:function(){return o.deleteColumn}}),n(4)),f=n(14),p=(t.createTable=function(e,t,n){for(var r=e.table,o=e.table_row,i=e.table_cell,a=[],s=0;s<t+1;s++){for(var l=[],u=0;u<n+1;u++)l.push(i.createAndFill());a.push(o.createAndFill(void 0,l))}return r.createAndFill(void 0,a)},/^table$/),s=/^table_row$/,i=/^table_cell|table_header$/,g=function(e,t){for(var n=e.$head,r=n.depth;0<r;r--){var o=n.node(r);if(t.test(o.type.name))return{pos:n.before(r),node:o}}return null};t.addRowBefore=function(e,a){return o.addRowBefore(e,a&&function(e){var t=g(e.selection,s),n=g(e.selection,p);if(t&&n&&t.node.attrs[d.rowTypeAttr]){for(var r=0,o=0;o<n.node.nodeSize;o++)if(n.node.child(o).eq(t.node)){r=o;break}var i=n.node.child(r-1),i=t.pos-i.nodeSize;e.setNodeMarkup(i,void 0,((i={})[d.rowTypeAttr]=t.node.attrs[d.rowTypeAttr],i))}return a(e)})},t.addRowAfter=function(e,r){return o.addRowAfter(e,r&&function(e){var t,n=g(e.selection,s);return n&&n.node.attrs[d.rowTypeAttr]&&(t=n.pos+n.node.nodeSize,e.setNodeMarkup(t,void 0,((t={})[d.rowTypeAttr]=n.node.attrs[d.rowTypeAttr],t))),r(e)})};t.addColumnBefore=function(e,n){return o.addColumnBefore(e,n&&function(e){var t=g(e.selection,p);return t.node.attrs[d.colgroupAttr]&&r(e,t,-1),n(e)})},t.addColumnAfter=function(e,n){return o.addColumnAfter(e,n&&function(e){var t=g(e.selection,p);return t.node.attrs[d.colgroupAttr]&&r(e,t,1),n(e)})},t.deleteColumn=function(e,i){var a=g(e.selection,p),s=a&&a.node.attrs[d.colgroupAttr],l=u(a,e.selection);return o.deleteColumn(e,i&&function(e){return s&&(n={node:(t=e).doc.nodeAt(a.pos),pos:a.pos},r=l,(o=f.parseStrColgroup(n.node.attrs[d.colgroupAttr])).removeChild(o.children[r]),t.setNodeMarkup(n.pos,null,c.__assign(c.__assign({},n.node.attrs),((r={})[d.colgroupAttr]=o.outerHTML,r)))),i(e);var t,n,r,o})}},function(e,t){e.exports=c},function(e,t){e.exports=l},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listMarkersStyles=void 0;function b(e,t,n,r,o){var i,a,s=o.resolve(e),o=o.resolve(t),l=r.type.name;return!s.nodeBefore&&(i=s.node(s.depth),a=s.node(s.depth-1),i)&&a&&a.firstChild===i&&a.type.name===l?n+r.content.size<=t:!o.nodeAfter&&(i=o.node(o.depth),a=o.node(o.depth-1),i)&&a&&a.lastChild===i&&a.type.name===l?e<=n:e<=n&&n+r.content.size<=t}var v=n(2),r=n(0),w=n(7),k=n(1),o={listItem:"list_item",resetValues:{"font-size":"","font-family":"",color:""}};t.listMarkersStyles=function(h){return void 0===h&&(h=o),new r.Plugin({key:new r.PluginKey("list-markers-styles"),appendTransaction:function(e,t,n){var i,a,s,l,u,c,r,o,d,f,p,g,m,e=e.slice().pop(),y=e.getMeta("commandName");return"FontSize"===y||"FontName"===y||"ForeColor"===y?(o=h,d=(r=n).tr,f=r.doc,r=r.selection,p=r.from,g=r.to,m=e.getMeta("args"),f.nodesBetween(p,g,function(e,t){e.type.name===o.listItem&&b(p,g,t,e,f)&&d.setNodeMarkup(t,null,v.__assign(v.__assign({},e.attrs),{style:k.applyStyle(e.attrs.style,m.style,m.value)}))}),r=d.docChanged?d:void 0):"CleanFormatting"===y&&(y=e,e=n,i=h,a=Object.keys(i.resetValues),s=e.tr,l=e.doc,e=e.selection,u=e.from,c=e.to,l.nodesBetween(u,c,function(e,t,n){var r,o;e.type.name===i.listItem&&b(u,c,t,e,l)&&(r=e.attrs,o=k.parseStyle(e.attrs.style),a.forEach(function(e){o[e]&&(r=v.__assign(v.__assign({},r),{style:k.applyStyle(r.style,e,"")}))}),r!==e.attrs)&&s.setNodeMarkup(t,null,r)}),y.steps.forEach(function(e){var t,n,r;e instanceof w.RemoveMarkStep&&"style"===(t=e.mark).type.name&&t.attrs.style&&(n=(r=t.attrs.style.split(/\s*:\s*/))[0],r[1],r=s.doc.resolve(e.from),r=k.parentNode(r,function(e){return e.type.name===i.listItem}))&&k.parseStyle(r.node.attrs.style)[n]&&i.resetValues[n]&&(r=t.type.create({style:n+": "+i.resetValues[n]+";"}),s.addMark(e.from,e.to,r))}),r=s.docChanged?s:void 0),r&&r.setMeta("addToHistory",!0),r}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rowResizing=void 0;var r=n(0),f=n(6),p=n(3),g=n(10),c=n(1),o=(i.prototype.ignoreMutation=function(e){return"attributes"===e.type&&"style"===e.attributeName&&"TR"===e.target.nodeName},i);function i(){}t.rowResizing=function(){return new r.Plugin({key:g.tableRowResizeKey,state:{init:function(e,t){return this.spec.props.nodeViews[f.tableNodeTypes(t.schema).row.name]=function(e,t){return new o},new a(-1,null)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return!g.otherResizeHandle(g.tableRowResizeKey,e)&&-1<g.tableRowResizeKey.getState(e).activeHandle?{class:"resize-cursor-vertical"}:null},handleDOMEvents:{mousemove:function(e,t){return g.otherResizing(g.tableRowResizeKey,e.state)||(e=e,t=t,(s=g.tableRowResizeKey.getState(e.state)).dragging||(r=-1,(n=g.domCellAround(t.target))&&(o=g.cellIndexes(n),i=(a=n.getBoundingClientRect()).top,a=a.bottom,Math.abs(t.clientY-i)<=5&&0<o.rowIndex?(o.rowIndex-=n.rowSpan,r=g.edgeCell(e,t,o)):0<a-t.clientY&&a-t.clientY<=5&&(r=g.edgeCell(e,t,o))),r!==s.activeHandle&&l(e,r))),!1;var n,r,o,i,a,s},mouseleave:function(e){return e=e,-1<(t=g.tableRowResizeKey.getState(e.state)).activeHandle&&!t.dragging&&l(e,-1),!1;var t},mousedown:function(e,t){return u=e,e=t,-1!==(t=g.tableRowResizeKey.getState(u.state)).activeHandle&&!t.dragging&&(n=(r=u.state.doc.resolve(t.activeHandle)).parent,r=r.node(-1),n=c.parseStyle(n.attrs.style).height,a=c.parseStyle(r.attrs.style).height,r=n?parseFloat(n):0,n||(r=u.nodeDOM(t.activeHandle).offsetHeight),u.dispatch(u.state.tr.setMeta(g.tableRowResizeKey,{setDragging:{startY:e.clientY,startHeight:{rowHeight:r,tableHeight:a}}})),e.view.addEventListener("mouseup",s),e.view.addEventListener("mousemove",l),e.preventDefault(),!0);function s(e){e.view.removeEventListener("mouseup",s),e.view.removeEventListener("mousemove",l);var t,n,r,o,i,a,e=g.tableRowResizeKey.getState(u.state);e.dragging&&(t=u.state.tr.setMeta(g.tableRowResizeKey,{setDragging:null}),n=u,r=t,e=e.activeHandle,o=n.state.doc,e=o.resolve(e),i=e.parent,e=e.posAtIndex(0)-1,n=n.nodeDOM(e),a=n.ownerDocument&&n.ownerDocument.defaultView||window,n.style.height=a.getComputedStyle(n).height,r.setNodeMarkup(e,null,c.setNodeStyle(i.attrs,"height",n.style.height)),a=n&&n.closest("table"),(i=a&&a.style.height)&&(a=(n=o.resolve(e)).start(n.depth)-1,r.setNodeMarkup(a,null,c.setNodeStyle(n.parent.attrs,"height",i))),u.dispatch(t))}function l(e){if(!e.which)return s(e);var t,n,r=g.tableRowResizeKey.getState(u.state),o=(o=r.dragging,i=e.clientY-o.startY,o.startHeight.rowHeight+i),i=e.clientY-r.dragging.startY;e=u,r=r.activeHandle,o=o,i=i,t=a,e=e.nodeDOM(r),(r=e&&e.parentNode)&&(r.style.height=o+"px",e=r.ownerDocument&&r.ownerDocument.defaultView||window,r.style.height=e.getComputedStyle(r).height,o=r.closest("table"),r=parseFloat(t)+i+"px",n=o&&o.style.height)&&n!==r&&(o.style.height=parseFloat(t)+i+"px",o.style.height=e.getComputedStyle(o).height)}var u,n,a,r}},decorations:function(e){if(g.otherResizing(g.tableRowResizeKey,e))return p.DecorationSet.empty;var t=g.tableRowResizeKey.getState(e);if(-1<t.activeHandle){var t=t.activeHandle,n=[];if("number"!=typeof t)return p.DecorationSet.empty;for(var r=e.doc.resolve(t),o=r.node(-1),i=f.TableMap.get(o),a=r.start(-1),s=[],l=t-a,u=-1,c=0;c<i.height;c++)s.push(i.map.slice(c*i.width,c*i.width+i.width)),-1!==s[c].indexOf(l)&&(u=c);var d=[];return s[u].forEach(function(e,t){s[u+1]&&e===s[u+1][t]||d.push(e)}),d.forEach(function(e){var t=o.nodeAt(e),e=a+e+(t?t.nodeSize:0)-1,t=document.createElement("div");t.className="row-resize-handle",n.push(p.Decoration.widget(e,t))}),p.DecorationSet.create(e.doc,n)}},nodeViews:{}}})};s.prototype.apply=function(e){var t=this,n=e.getMeta(g.tableRowResizeKey);return n&&null!=n.setHandle?new s(n.setHandle,null):n&&void 0!==n.setDragging?new s(t.activeHandle,n.setDragging):(-1<t.activeHandle&&(n=e.mapping.map(t.activeHandle,-1),t=new s(n="row"===(e=e.doc.resolve(n)).parent.type.spec.tableRole&&e.nodeAfter?n:null,t.dragging)),t)};var a=s;function s(e,t){this.activeHandle=e,this.dragging=t}function l(e,t){var n=e.state.tr;n.setMeta("addToHistory",!1),n.setMeta(g.tableRowResizeKey,{setHandle:t}),e.dispatch(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableResizing=void 0;function r(h,e){var t,o,i,n,r,a,s,l,u,c,d,f,b,p=e.target.getAttribute(k.dataResizeDirTable);return!!p&&(n=_.tableResizeKey.getState(h.state),e.preventDefault(),(t=h.state.tr).setMeta(_.tableResizeKey,{setDragging:{startX:e.clientX,startY:e.clientY},activeHandle:p,nodePosition:n.nodePosition}),t.setMeta("addToHistory",!1),p=h,o=t,i=n.nodePosition,n=p.state.doc.nodeAt(i),p=_.getTable(p.nodeDOM(i)),r=A(p),a=r.width,s=r.height,l=r.colsWidth,u=r.rowsHeight,c=r.offsetWidth,r=r.offsetHeight,p=p.firstChild,d=!1,Array.from(p&&p.children||[]).forEach(function(e,t){e.style.width&&!/%$/.test(e.style.width)&&(e.style.width=100*l[t]/a+"%",d=!0)}),f=!1,n.forEach(function(e,t,n){var r=M.parseStyle(e.attrs.style).height;r&&!/%$/.test(r)&&(o.setNodeMarkup(i+t+1,null,M.setNodeStyle(e.attrs,"height",100*u[n]/s+"%")),f=!0)}),n=n.attrs,M.parseStyle(n.style).width!==c+"px"&&(n=M.setNodeStyle(n,"width",c+"px")),d&&(n[k.colgroupAttr]=p.outerHTML),f&&(n=M.setNodeStyle(n,"height",r+"px")),(d||f)&&o.setNodeMarkup(i,null,n),h.dispatch(t),(b=e.view||window).addEventListener("mouseup",function e(t){var n,r,o,i,a,s,l,u,c,d,f,p,g,m,y;b.removeEventListener("mouseup",e),b.removeEventListener("mousemove",v),n=h,g=_.tableResizeKey.getState(n.state),m=g.dragging,y=g.nodePosition,g=g.activeHandle,m&&(m=n.state.doc.nodeAt(y),u=_.getTable(n.nodeDOM(y)),i=A(u),m)&&(l=i.offsetWidth+"px",i=i.offsetHeight+"px",r=n.state.tr,m=m.attrs,o=M.parseStyle(m.style),S[g]&&u.style.width&&o.width!==l&&(m=M.setNodeStyle(m,"width",l)),O[g]&&u.style.height&&o.height!==i&&(m=M.setNodeStyle(m,"height",i)),a=r,s=y,l=m,u=(g=n).state.doc.nodeAt(s),g=_.getTable(g.nodeDOM(s)),c=(g.ownerDocument&&g.ownerDocument.defaultView||window).getComputedStyle,d=Array.from(g.rows),u.forEach(function(e,t,n){var r=M.parseStyle(e.attrs.style).height;r&&!/px$/.test(r)&&a.setNodeMarkup(s+t+1,null,M.setNodeStyle(e.attrs,"height",c(d[n]).height))}),u=g.firstChild,f=Array.from(u&&u.children||[]),p=!1,f.forEach(function(e,t){e.style.width&&!/px$/.test(e.style.width)&&(e.style.width=c(f[t]).width,p=!0)}),g=w.__assign({},l),p&&(g[k.colgroupAttr]=u.outerHTML),m=g,r.setNodeMarkup(y,null,m),r.setMeta("commandName","node-resize"),r.setMeta("args",m),r.setMeta(_.tableResizeKey,{setDragging:null,activeHandle:null,nodePosition:y}),/%/.test(M.parseStyle(m.style).width||"")||(o=r.doc.resolve(y),(i=M.parentNode(o,function(e){return"table_wrapper"===e.type.name}))&&/%/.test(M.parseStyle(i.node.attrs.style).width||"")&&(l=M.setNodeStyle(i.node.attrs,"width",""),u=o.start(i.depth)-1,r.setNodeMarkup(u,null,l))),n.dispatch(r))}),b.addEventListener("mousemove",v),!0);function v(e){var t,n,r,o,i,a,s,l,u;t=h,e=e,s=_.tableResizeKey.getState(t.state),l=s.dragging,u=s.nodePosition,s=s.activeHandle,u<0||!l||(u=(t=_.getTable(t.nodeDOM(u))).getBoundingClientRect(),n=g.directions[s],o=(e.clientX-l.startX)*n.x,r=(e.clientY-l.startY)*n.y,a=(t.ownerDocument&&t.ownerDocument.defaultView||window).getComputedStyle(t),i=/px/.test(a.width)?parseFloat(a.width):t.offsetWidth,a=/px/.test(a.height)?parseFloat(a.height):t.offsetHeight,o=n.x?o+i:u.width,i=n.y?r+a:u.height,l.startX=n.x?e.clientX:l.startX,l.startY=n.y?e.clientY:l.startY,S[s]&&(t.style.width=o+"px"),O[s]&&(t.style.height=i+"px"),/px/.test(t.style.width)&&(a=null==(r=t.parentNode)?void 0:r.parentNode)instanceof HTMLDivElement&&a.matches("div[table]")&&/%/.test(a.style.width)&&(a.style.width=""))}}var w=n(2),o=n(0),k=n(4),_=n(10),M=n(1),g=n(13),n={southeast:!0,southwest:!0,northwest:!0,northeast:!0},S=w.__assign({east:!0,west:!0},n),O=w.__assign({south:!0,north:!0},n),i=(a.prototype.apply=function(e){e=e.getMeta(_.tableResizeKey);return e?new a(e.activeHandle,e.setDragging,e.nodePosition):this},a),A=function(e){var t=Array.from(e.firstChild.children).map(function(e){return e.offsetWidth}),n=Array.from(e.rows).map(function(e){return e.offsetHeight}),r=t.reduce(function(e,t){return e+t},0),o=n.reduce(function(e,t){return e+t},0),i=e.offsetHeight;return{width:r,height:o,colsWidth:t,rowsHeight:n,offsetWidth:e.offsetWidth,offsetHeight:i}};function a(e,t,n){this.activeHandle=e,this.dragging=t,this.nodePosition=n}t.tableResizing=function(l){return void 0===l&&(l={node:"table"}),new o.Plugin({key:_.tableResizeKey,view:function(e){return{selectedNode:function(e,t){var n,r,e=e.selection;return e instanceof o.NodeSelection&&t===e.node.type&&e instanceof o.NodeSelection?{node:e.node,pos:e.from}:(r=(n=M.parentNode(e.$from,function(e){return e.type===t}))&&n.node)?{node:r,pos:e.$from.start(n.depth)-1}:null},update:function(e,t){var n,r,o=e.state,i=o.schema.nodes[l.node],a=this.selectedNode(o,i),s=this.selectedNode(t,i);!a&&s&&!t.doc.eq(e.state.doc)||!a&&!s||((n=o.tr).setMeta("addToHistory",!1),a&&s&&a.pos!==s.pos?(n.setMeta(_.tableResizeKey,{nodePosition:a.pos}),(r=n.doc.nodeAt(s.pos))&&r.type.name===i.name&&n.setNodeMarkup(s.pos,i,w.__assign(w.__assign({},s.node.attrs),((r={})[k.resizableAttr]=!1,r))),n.setNodeMarkup(a.pos,i,w.__assign(w.__assign({},a.node.attrs),((r={})[k.resizableAttr]=!0,r))),e.dispatch(n)):a&&s&&a.pos===s.pos&&!a.node.attrs[k.resizableAttr]&&!o.selection.eq(t.selection)?(n.setMeta(_.tableResizeKey,{nodePosition:a.pos}),e.dispatch(n.setNodeMarkup(a.pos,i,w.__assign(w.__assign({},a.node.attrs),((r={})[k.resizableAttr]=!0,r))))):a&&!s?(n.setMeta(_.tableResizeKey,{nodePosition:a.pos}),e.dispatch(n.setNodeMarkup(a.pos,i,w.__assign(w.__assign({},a.node.attrs),((o={})[k.resizableAttr]=!0,o))))):!a&&s&&(n.setMeta(_.tableResizeKey,{nodePosition:-1}),e.dispatch(n.setNodeMarkup(s.pos,i,w.__assign(w.__assign({},s.node.attrs),((t={})[k.resizableAttr]=!1,t))))))}}},state:{init:function(){return new i("",null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:r}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableWrapperView=t.TableView=void 0;var o=n(4),r=n(14),i=n(13),a=n(1);function s(e,t){this.node=e,this.view=t,this.dom=document.createElement("div"),this.dom.className=o.resizableWrap,this.table=this.dom.appendChild(document.createElement("table")),e.attrs[o.colgroupAttr]&&this.renderColgroup(e.attrs[o.colgroupAttr]);t=this.table.appendChild(document.createElement("tbody"));this.setAttributes(this.table,e.attrs),this.resizeHandles=i.handles.map(function(e){var t=document.createElement("span");return t.className=o.resizeHandle+" "+e,t.setAttribute(o.dataResizeDirTable,e),t}),this.contentDOM=t}function l(e,t){this.node=e,this.view=t,this.dom=document.createElement("div"),this.setAttributes(this.dom,e.attrs),this.contentDOM=this.dom}s.prototype.update=function(e){var t,n=this;return e.type===this.node.type&&(t=this.node,(this.node=e).attrs[o.resizableAttr]?this.resizeHandles.forEach(function(e){n.dom.appendChild(e)}):Array.from(this.dom.children).filter(function(e){return e.classList.contains(o.resizeHandle)}).forEach(function(e){return e.remove()}),this.setAttributes(this.table,e.attrs),t.attrs[o.colgroupAttr]!==e.attrs[o.colgroupAttr]&&this.renderColgroup(e.attrs[o.colgroupAttr]),!0)},s.prototype.ignoreMutation=function(e){return"attributes"===e.type&&(e.target===this.table||e.target.firstChild===this.table||this.colgroup&&this.colgroup.contains(e.target))},s.prototype.destroy=function(){this.node=void 0,this.view=void 0,this.table=void 0,this.colgroup=void 0,this.resizeHandles=void 0},s.prototype.renderColgroup=function(e){this.table&&this.table.firstChild&&"COLGROUP"===this.table.firstChild.nodeName&&this.table.removeChild(this.table.firstChild),e&&(this.colgroup=r.parseStrColgroup(e),this.table.insertBefore(this.colgroup,this.table.firstChild))},s.prototype.setAttributes=function(e,t){var n,r=[o.colgroupAttr,o.resizableAttr];for(n in t)n&&-1===r.indexOf(n)&&a.setAttribute(e,n,t[n]);/%$/.test(e.style.width)?(this.dom.style.width=e.style.width,e.style.width=""):this.dom.style.width=""},t.TableView=s,l.prototype.update=function(e){return e.type===this.node.type&&(this.node=e,this.setAttributes(this.dom,e.attrs),!0)},l.prototype.ignoreMutation=function(e){return"attributes"===e.type&&"style"===e.attributeName},l.prototype.destroy=function(){this.node=void 0,this.view=void 0},l.prototype.setAttributes=function(e,t){for(var n in t)n&&a.setAttribute(e,n,t[n]);var r;e.setAttribute("table",""),/%/.test(e.style.width)&&(r=((r=this.node&&this.node.lastChild)?a.parseStyle(r.attrs.style):{}).width||"")&&!/%/.test(r)&&(e.style.width="")},t.TableWrapperView=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.columnResizing=void 0;var b=n(2),r=n(0),v=n(6),f=n(3),w=n(4),o=n(32),k=n(1),_=n(10),i=(t.columnResizing=function(){return new r.Plugin({key:_.tableColumnResizeKey,state:{init:function(e,t){return new i(-1,null)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return!_.otherResizeHandle(_.tableColumnResizeKey,e)&&-1<_.tableColumnResizeKey.getState(e).activeHandle?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,t){return _.otherResizing(_.tableColumnResizeKey,e.state)||(e=e,t=t,(s=_.tableColumnResizeKey.getState(e.state)).dragging||(r=-1,(n=_.domCellAround(t.target))&&(o=_.cellIndexes(n),i=(a=n.getBoundingClientRect()).left,a=a.right,Math.abs(t.clientX-i)<=5&&0<o.cellIndex?(o.cellIndex-=n.colSpan,r=_.edgeCell(e,t,o)):0<a-t.clientX&&a-t.clientX<=5&&(r=_.edgeCell(e,t,o))),r!==s.activeHandle&&l(e,r))),!1;var n,r,o,i,a,s},mouseleave:function(e){return e=e,-1<(t=_.tableColumnResizeKey.getState(e.state)).activeHandle&&!t.dragging&&l(e,-1),!1;var t},mousedown:function(e,t){var s=e,e=t,l=25;if(-1===(t=_.tableColumnResizeKey.getState(s.state)).activeHandle||t.dragging)return!1;for(var n=s.state.doc.resolve(t.activeHandle),r=n.parent,o=n.index(),i=0,a=0;a<=o;a++)i+=r.child(a).attrs.colspan;var u=n.node(n.depth-1),t=(t=s.domAtPos(t.activeHandle)).node.childNodes[t.offset].closest("table");if(u.attrs[w.colgroupAttr])(p=(d=t.firstChild).children[i-1]).style.width||(p.style.width=p.offsetWidth+"px");else{for(var c=0,a=0;a<r.childCount;a++)c+=r.child(a).attrs.colspan;for(var d=document.createElement("colgroup"),f=new Array(c),a=0;a<c;a++)f[a]=document.createElement("col"),d.appendChild(f[a]);t.insertBefore(d,t.firstChild),(p=f[o]).style.width=p.offsetWidth+"px",g=b.__assign(b.__assign({},u.attrs),((g={})[w.colgroupAttr]="<colgroup>"+f.reduce(function(e,t){return e+t.outerHTML},"")+"</colgroup>",g))}var p,g,m=parseFloat(p.style.width),m=s.state.tr.setMeta(_.tableColumnResizeKey,{setDragging:{startX:e.clientX,startWidth:m}});function y(e){e.view.removeEventListener("mouseup",y),e.view.removeEventListener("mousemove",h);var t,n,r,o,i,a=_.tableColumnResizeKey.getState(s.state);a.dragging&&(t=s.state.tr,n=s,r=t,o=a.activeHandle,M(a.dragging,e,l),o=n.state.doc.resolve(o),a=o.node(-1),e=o.start(-1),o=o.posAtIndex(0,o.depth-1)-1,n=n.nodeDOM(e).closest("table"),e=a.attrs,a&&e[w.colgroupAttr]&&(a=n.firstChild,e=b.__assign(b.__assign({},e),((i={})[w.colgroupAttr]=a.outerHTML,i))),a=n.style.width,n&&a&&k.parseStyle(e.style).width!==a&&(e=k.setNodeStyle(e,"width",a)),r.setNodeMarkup(o,null,e),s.dispatch(t.setMeta(_.tableColumnResizeKey,{setDragging:null})))}function h(e){if(!e.which)return y(e);var t,n,r,o=_.tableColumnResizeKey.getState(s.state),e=M(o.dragging,e,l);t=s,o=o.activeHandle,e=e,o=t.state.doc.resolve(o),n=o.node(-1),r=o.start(-1),n=v.TableMap.get(n).colCount(o.pos-r)+o.nodeAfter.attrs.colspan-1,o=(t=r="TABLE"!==(r=t.domAtPos(o.start(-1)).node).nodeName?r.closest("table"):r).firstChild,(r=Array.from(o.children))[n].style.width=e+"px",t.style.width&&(o=r.map(function(e){return e.style.width})).every(Boolean)&&(n=o.reduce(function(e,t){return e+parseFloat(t)},0),t.style.width=n+"px")}return t.style.width||(t=Array.from(p.parentNode.children).map(function(e){return e.style.width})).every(Boolean)&&(p=t.reduce(function(e,t){return e+parseFloat(t)},0),g=k.setNodeStyle(g||u.attrs,"width",p+"px")),g&&(t=n.posAtIndex(0,n.depth-1)-1,m.setNodeMarkup(t,null,g)),s.dispatch(m),e.view.addEventListener("mouseup",y),e.view.addEventListener("mousemove",h),e.preventDefault(),!0}},decorations:function(e){if(!_.otherResizing(_.tableColumnResizeKey,e)){var t=_.tableColumnResizeKey.getState(e);if(-1<t.activeHandle){t=t.activeHandle;for(var n=[],r=e.doc.resolve(t),o=r.node(-1),i=v.TableMap.get(o),a=r.start(-1),s=[],l=t-a,u=-1,c=0;c<i.height;c++)s.push(i.map.slice(c*i.width,c*i.width+i.width)),-1===u&&(u=s[c].lastIndexOf(l));var d=[];return s.forEach(function(e){var t=e[u];e[u]!==e[u+1]&&d.push(t)}),d.forEach(function(e){var e=a+e+o.nodeAt(e).nodeSize-1,t=document.createElement("div");t.className="column-resize-handle",n.push(f.Decoration.widget(e,t))}),f.DecorationSet.create(e.doc,n);return}}return f.DecorationSet.empty},nodeViews:{table_wrapper:function(e,t){return new o.TableWrapperView(e,t)},table:function(e,t){return new o.TableView(e,t)}}}})},a.prototype.apply=function(e){var t=this,n=e.getMeta(_.tableColumnResizeKey);return n&&null!=n.setHandle?new a(n.setHandle,null):n&&void 0!==n.setDragging?new a(t.activeHandle,n.setDragging):(-1<t.activeHandle&&e.docChanged&&(n=e.mapping.map(t.activeHandle,-1),e=e.doc.resolve(n),t=new a(n=Boolean("row"===e.parent.type.spec.tableRole&&e.nodeAfter)?n:-1,t.dragging)),t)},a);function a(e,t){this.activeHandle=e,this.dragging=t}function M(e,t,n){t=t.clientX-e.startX;return Math.max(n,e.startWidth+t)}function l(e,t){var n=e.state.tr;n.setMeta("addToHistory",!1),n.setMeta(_.tableColumnResizeKey,{setHandle:t}),e.dispatch(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableRowResizeKey=t.tableColumnResizeKey=t.tableResizeKey=t.tableResizing=void 0;var r=n(33),o=n(31),i=n(30),a=(t.tableResizing=function(){return[o.tableResizing(),r.columnResizing(),i.rowResizing()]},n(10));Object.defineProperty(t,"tableResizeKey",{enumerable:!0,get:function(){return a.tableResizeKey}}),Object.defineProperty(t,"tableColumnResizeKey",{enumerable:!0,get:function(){return a.tableColumnResizeKey}}),Object.defineProperty(t,"tableRowResizeKey",{enumerable:!0,get:function(){return a.tableRowResizeKey}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.caretColor=t.caretColorKey=void 0;var r=n(0),a=n(3),s=n(8);t.caretColorKey=new r.PluginKey("caret-color"),t.caretColor=function(){return new r.Plugin({key:t.caretColorKey,props:{decorations:function(e){var n,r,o,t=e.doc,i=e.selection,e=e.storedMarks;return i.empty&&e&&(n=s.styleValue((e||[]).find(function(e){return"style"===e.type.name}),{name:"color",value:/^.+$/}))?(r=i.$anchor.parent,o=[],t.descendants(function(e,t){e.eq(r)&&o.push(a.Decoration.node(t,t+e.nodeSize,{style:"caret-color: "+n}))}),a.DecorationSet.create(t,o)):a.DecorationSet.empty}}})}},function(e,f,t){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.imageResizing=f.imageResizeKey=void 0;var p=t(2),g=t(0),l=t(3),m=t(4),y=t(1),h=t(13),b=(f.imageResizeKey=new g.PluginKey("image-resize"),function(e,t,n){e.style[t]=n+"px"}),v=/[^\-]width:|[^\-]height:/,w=/^.+$/,n=(r.prototype.apply=function(e){e=e.getMeta(f.imageResizeKey);return e?new r(e.activeHandle,e.setDragging,e.rect,e.nodePosition):this},r);function r(e,t,n,r){this.activeHandle=e,this.dragging=t,this.rect=n,this.nodePosition=r}f.imageResizing=function(s){return void 0===s&&(s={node:"image",lockRatio:!0}),new g.Plugin({key:f.imageResizeKey,view:function(e){return{resize:function(){f.imageResizeKey.getState(e.state).rect&&e.dispatch(e.state.tr.setMeta("resize",!0))},get window(){return e.dom.ownerDocument&&e.dom.ownerDocument.defaultView},attachResize:function(){var e=this.window;e&&(e.removeEventListener("resize",this.resize),e.addEventListener("resize",this.resize))},removeResize:function(){var e=this.window;e&&e.removeEventListener("resize",this.resize)},update:function(e,t){var n=e.state,r=n.selection,o=n.schema.nodes[s.node],i=f.imageResizeKey.getState(n),a=i.rect;r instanceof g.NodeSelection&&o===r.node.type?(o={top:(o=e.nodeDOM(r.from)).offsetTop,left:o.offsetLeft,width:o.offsetWidth,height:o.offsetHeight},t.selection.eq(r)&&(!a||a.width===o.width&&a.height===o.height&&a.top===o.top&&a.left===o.left)||((t=n.tr).setMeta(f.imageResizeKey,{rect:o,nodePosition:r.from}),e.dispatch(t),this.attachResize())):a&&(i.rect=null,i.nodePosition=-1)},destroy:function(){this.removeResize()}}},state:{init:function(){return new n("",null,null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:function(e,t){return d=e,u=s,!!(t=(e=t).target.getAttribute(m.dataResizeDirImage))&&(n=f.imageResizeKey.getState(d.state),e.preventDefault(),(r=d.state.tr).setMeta(f.imageResizeKey,{setDragging:{startX:e.clientX,startY:e.clientY},activeHandle:t,rect:n.rect,nodePosition:n.nodePosition}),r.setMeta("addToHistory",!1),d.dispatch(r),e.view.addEventListener("mouseup",function e(t){var n,r,o,i,a,s,l,u;t.view.removeEventListener("mouseup",e),t.view.removeEventListener("mousemove",c),t=d,s=f.imageResizeKey.getState(t.state),l=s.rect,u=s.dragging,s=s.nodePosition,u&&l&&(u=t.state.selection)instanceof g.NodeSelection&&(a=u.node.attrs,n=l.width,r=l.height,o=void 0,o=v.test(a.style||"")?(i=y.changeStylesString(a.style,{style:"width",value:w,newValue:n+"px"}),i=y.changeStylesString(i.style||"",{style:"height",value:w,newValue:r+"px"}).style,p.__assign(p.__assign({},a),{style:i})):p.__assign(p.__assign({},a),{width:n,height:r}),i=u.node.type.createAndFill(o))&&((a=t.state.tr).replaceWith(s,s+1,i),a.setSelection(g.NodeSelection.create(a.doc,s)),a.setMeta("commandName","image-resize"),a.setMeta("args",o),a.setMeta(f.imageResizeKey,{setDragging:null,activeHandle:null,rect:l,nodePosition:s}),t.dispatch(a))}),e.view.addEventListener("mousemove",c),!0);function c(e){var t,n,r,o,i,a,s,l;t=d,e=e,n=u,i=f.imageResizeKey.getState(t.state),a=i.rect,s=i.dragging,l=i.nodePosition,i=i.activeHandle,s&&a&&(t=t.nodeDOM(l),l=h.directions[i],i=(e.clientX-s.startX)*l.x,r=(e.clientY-s.startY)*l.y,i=l.x?i+t.width:a.width,r=l.y?r+t.height:a.height,n.lockRatio&&l.x&&l.y?(n=Math.min(i/t.width,r/t.height),o=t.width*n,n=t.height*n,s.startX=e.clientX-(i-o)*l.x,s.startY=e.clientY-(r-n)*l.y,i=o,r=n):(s.startX=l.x?e.clientX:s.startX,s.startY=l.y?e.clientY:s.startY),b(t,"width",i),b(t,"height",r),a.top=t.offsetTop,a.left=t.offsetLeft,a.width=t.offsetWidth,a.height=t.offsetHeight,(o=t.nextElementSibling).style.width=a.width+"px",o.style.height=a.height+"px",o.style.top=a.top+"px",o.style.left=a.left+"px")}var d,u,n,r}},decorations:function(e){var t=e.selection,n=e.schema.nodes[s.node],r=f.imageResizeKey.getState(e).rect;if(r&&t instanceof g.NodeSelection&&n===t.node.type){var o=document.createElement("div");o.className="k-editor-resize-handles-wrapper",o.style.width=r.width+"px",o.style.height=r.height+"px",o.style.top=r.top+"px",o.style.left=r.left+"px";for(var i=0;i<h.handles.length;i++){var a=document.createElement("div");a.className=m.resizeHandle+" "+h.handles[i],a.setAttribute(m.dataResizeDirImage,h.handles[i]),o.appendChild(a)}return l.DecorationSet.create(e.doc,[l.Decoration.widget(e.selection.from+1,o)])}return l.DecorationSet.empty}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.textHighlight=t.textHighlightKey=void 0;var r=n(0),o=n(3);t.textHighlightKey=new r.PluginKey("highlight"),t.textHighlight=function(e){return void 0===e&&(e=t.textHighlightKey),new r.Plugin({key:e,state:{init:function(){return null},apply:function(e){return e.getMeta(this.spec.key)}},props:{decorations:function(e){var t=(this.spec.key.getState(e)||[]).map(function(e){return o.Decoration.inline(e.from,e.to,e.attrs)});return o.DecorationSet.create(e.doc,t)}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cspFix=void 0;function o(e,t){for(var n in t)n&&i.setAttribute(e,n,t[n])}var r=n(0),i=n(1),a=function(e,t,n,r){void 0===r&&(r=!1),this.node=e,this.view=t,this.dom=document.createElement(n),o(this.dom,e.attrs),this.contentDOM=r?void 0:this.dom},s=function(e,t,n){this.mark=e,this.view=t,this.dom=document.createElement("span"),o(this.dom,e.attrs),this.contentDOM=this.dom};t.cspFix=function(){return new r.Plugin({key:new r.PluginKey("csp-fix"),props:{nodeViews:{paragraph:function(e,t){return new a(e,t,"p")},div:function(e,t){return new a(e,t,"div")},table_wrapper:function(e,t){return new a(e,t,"div")},table_caption_external:function(e,t){return new a(e,t,"div")},table:function(e,t){return new a(e,t,"table")},table_row:function(e,t){return new a(e,t,"tr")},table_cell:function(e,t){return new a(e,t,"td")},table_header:function(e,t){return new a(e,t,"th")},image:function(e,t){return new a(e,t,"img",!0)}},markViews:{style:function(e,t,n){return new s(e,t,n)}}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spacesFix=void 0;var r=n(0),l=n(3),u=/\s+/g,c=/text-align/;t.spacesFix=function(){return new r.Plugin({key:new r.PluginKey("spaces-fix"),props:{decorations:function(e){var r,o,i,a,s=[],e=e.doc;return e.nodesBetween(0,e.content.size,function(e,t,n){if(e.type.isText&&c.test(n&&n.attrs&&n.attrs.style||""))for(o=u.exec(e.text||"");null!==o;){if(r=t+o.index,i=o[0].length,o.index+i<o.input.length)for(a=0;a<=i-1;a+=2)s.push(l.Decoration.inline(r+a,r+a+1,{style:"white-space: normal"}));o=u.exec(e.text||"")}}),l.DecorationSet.create(e,s)}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholder=void 0;var o=n(0),i=n(3);t.placeholder=function(e){var r={class:"k-placeholder","data-placeholder":e};return new o.Plugin({key:new o.PluginKey("placeholder"),props:{decorations:function(e){var n,e=e.doc,t=e.content.firstChild;return 0===e.childCount||1===e.childCount&&t.inlineContent&&0===t.childCount?(n=[],e.descendants(function(e,t){n.push(i.Decoration.node(t,t+e.nodeSize,r))}),i.DecorationSet.create(e,n)):i.DecorationSet.empty}}})}},function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.replaceAll=s.replace=s.findAll=s.find=s.findAt=void 0;var l=t(2),v=t(0),o=(s.findAt=function(i,e,a,s,l){var u,c,d,f,p,g,m,y=[],h=[],t=e.matchCase,b=e.matchWord,n=e.useRegExp,e=e.text;return(e=n&&(/^\\$/.test(e)||/[^\\]\\$/.test(e))?e.substring(0,e.length-1):e)&&(t=t?"g":"gi",m=n?new RegExp(e,t):r(e,t),i.nodesBetween(a,s,function(e,o,t){if(l(y))return!1;e.inlineContent&&o+e.content.size>=a&&(h.length=0,e.nodesBetween(0,e.content.size,function(e,t,n,r){if(l(y))return!1;t=1+o+t;if(e.isText&&t+e.nodeSize>=a){if(p=e.text||"",g=n.childCount-1>=r+1&&n.child(r+1),h.push(a<=t?{text:p,start:t}:{text:p.slice(a-t),start:a}),!g||!g.isText)for(c=h.map(function(e){return e.text}).join(""),u=m.exec(c);null!==u&&(d=h[0].start+u.index,f=d+u[0].length,a<=d&&f<=s&&w(u,b)&&y.push(v.TextSelection.create(i,d,f)),!l(y));)u=m.exec(c)}else h.length=0}))})),y},s.find=function(e,t){var n=t.backward,r=t.matchCyclic,t=l.__rest(t,["backward","matchCyclic"]),o=n?function(){return!1}:function(e){return 0<e.length},i=e.doc,e=e.selection,a=[];return n?!(a=s.findAt(i,t,0,e.from,o)).length&&r&&(a=s.findAt(i,t,e.from,i.content.size,o)):!(a=s.findAt(i,t,e.to,i.content.size,o)).length&&r&&(a=s.findAt(i,t,0,e.to,o)),a.length?a[a.length-1]:null},s.findAll=function(e,t){return s.findAt(e,t,0,e.content.size,function(){return!1})},s.replace=function(e,t,n){var r=e.from,e=e.to;return n.insertText(t,r,e).setSelection(v.TextSelection.create(n.doc,r,r+t.length)),n},s.replaceAll=function(e,t,n){var r=s.findAll(e.doc,n);if(0===r.length)return null;for(var o=e.tr,i=r.length-1;0<=i;i--)o.insertText(t,r[i].from,r[i].to);return o},/^[\s0-9~`!@#$%\^&*\(\)_\-=+\\|\[\]{};:'"\?/.,<>]?$/),w=function(e,t){var n,r;return!t||(!0===t?(n=(r=e.input).charAt(e.index-1),r=r.charAt(e.index+e[0].length),o.test(n)&&o.test(r)):t(e))},r=function(e,t){e=e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(/\s/g,"\\s");return new RegExp(e,t)}},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.replaceImageSourcesFromRtf=a.pasteCleanup=a.sanitizeStyleAttr=a.sanitizeClassAttr=a.removeAttribute=a.removeTag=a.removeComments=a.sanitize=void 0;var n=t(17),r=t(9),s=(a.sanitize=function(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^[\s\S]+?<!--StartFragment-->\s*([\s\S]*?)\s*<!--EndFragment-->[\s\S]+$/,"$1")).replace(/<\/?[ovw]:[^>]*?>/gi,"")).replace(/<\\?\??xml[^>]*>/gi,"")).replace(/<(?:link|meta) [^>]+?>/gi,"")).replace(/<style[^>]*?>\s*<\/style>/gi,"")).replace(/<\/?st1:.*?>/gi,"")).replace(/<a name="[a-zA-Z0-9_]+">/gim,"")).replace(/v:shapes?="[^"]+"/gi,"")).replace(/<!\[if !supportLists\]>/gi,"")).replace(/<!\[endif\]>/gi,"")},a.removeComments=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},a.removeTag=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},a.removeAttribute=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},a.sanitizeClassAttr=function(e){/^Mso/.test(e.value)&&a.removeAttribute(e)},/\s*;\s*/),l=/\s*:\s*/;a.sanitizeStyleAttr=function(e){var t,n,r=e.value.split(s).filter(function(e){return Boolean(e)}),o=e.ownerElement.style,i="";r.forEach(function(e){e=e.split(l);t=e[0],n=e[1],void 0!==o[t]&&(i+=t+": "+n+"; ")}),(i=i.trim())?e.value=i:a.removeAttribute(e)},a.pasteCleanup=function(e,s){var t;return s.convertMsLists&&(e=n.convertMsLists(e)),s.stripTags&&(e=a.removeTag(e,s.stripTags)),s.attributes&&(t=r.htmlToFragment(e),Array.from(t.querySelectorAll("*")).forEach(function(e){var t=e,n=s.attributes;if(t.nodeType===Node.ELEMENT_NODE){for(var r=t.attributes.length-1;0<=r;r--){var o=t.attributes[r];n[o.name]?n[o.name](o):n["*"]&&n["*"](o)}if("SPAN"===t.nodeName&&0===t.attributes.length){var i=t,a=i.parentNode;if(a){for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}}}),e=r.fragmentToHtml(t)),e};var u=/<img\s[^>]*?src=(?:'|")file:\/[^'"]+(?:'|")[^>]*>/gi,c=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,d=new RegExp("(?:("+c.source+"))([\\da-fA-F\\s]+)\\}","g"),f=/[^\da-fA-F]/g,p=/file:\/[^'"]+\.(jpg|png|gif)/i,g=/\\(png|jpeg)blip\\/;a.replaceImageSourcesFromRtf=function(e,t){var n=e.match(u);if(!n||-1===t.types.indexOf("text/rtf"))return e;var t=t.getData("text/rtf"),r=[],o=t.match(d);if(!t||!o)return e;for(var i=0,a=o;i<a.length;i++){var s=a[i],l=g.exec(s);l&&(s=s.replace(c,"").replace(f,""),r.push("data:image/"+l[1]+";base64,"+function(e){for(var t=e.length,n=new Array(t/2),r=0;r<t;r+=2)n[r]=String.fromCharCode(parseInt(e.substring(r,r+2),16));return btoa(n.join(""))}(s)))}return n.length!==r.length?e:e.replace(u,function(e){var t=r.shift()||"";return e.replace(p,t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildListKeymap=t.buildKeymap=void 0;var o=n(2),i=n(11),a=n(20),s=n(19),r=n(21),l=n(18),u=n(16),c=n(1),d="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.buildKeymap=function(e,t){var n,r={},t=t&&t.applyToWord||!1;return r["Mod-z"]=a.undo,r["Shift-Mod-z"]=a.redo,r.Backspace=i.chainCommands(s.undoInputRule,i.deleteSelection,i.joinBackward,i.selectNodeBackward),r.Enter=i.chainCommands(i.newlineInCode,i.createParagraphNear,i.liftEmptyBlock,i.splitBlockKeepMarks),d||(r["Mod-y"]=a.redo),e.marks.strong&&(r["Mod-b"]=c.expandToWordWrap(u.toggleInlineFormat,o.__assign(o.__assign({},l.bold),{applyToWord:t}))),e.marks.em&&(r["Mod-i"]=c.expandToWordWrap(u.toggleInlineFormat,o.__assign(o.__assign({},l.italic),{applyToWord:t}))),e.marks.u&&(r["Mod-u"]=c.expandToWordWrap(u.toggleInlineFormat,o.__assign(o.__assign({},l.underline),{applyToWord:t}))),e.nodes.hard_break&&(n=e.nodes.hard_break,t=i.chainCommands(i.exitCode,function(e,t){return t(e.tr.replaceSelectionWith(n.create()).scrollIntoView()),!0}),r["Shift-Enter"]=t),r},t.buildListKeymap=function(e){var t={};return e.nodes.list_item&&(t.Enter=r.splitListItemKeepMarks(e.nodes.list_item)),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.alignRemoveRules=t.alignJustifyRules=t.alignCenterRules=t.alignRightRules=t.alignLeftRules=void 0;function r(e,t){return{name:e,value:t}}t.alignLeftRules=[{node:"paragraph",style:[r("text-align","left")]},{node:"heading",style:[r("text-align","left")]},{node:"table_caption_external",style:[r("text-align","left")]}],t.alignRightRules=[{node:"paragraph",style:[r("text-align","right")]},{node:"heading",style:[r("text-align","right")]},{node:"table_caption_external",style:[r("text-align","right")]}],t.alignCenterRules=[{node:"paragraph",style:[r("text-align","center")]},{node:"heading",style:[r("text-align","center")]},{node:"table_caption_external",style:[r("text-align","center")]}],t.alignJustifyRules=[{node:"paragraph",style:[r("text-align","justify")]},{node:"heading",style:[r("text-align","justify")]},{node:"table_caption_external",style:[r("text-align","justify")]}],t.alignRemoveRules=[{node:"paragraph",style:[r("text-align","")]},{node:"heading",style:[r("text-align","")]},{node:"table_caption_external",style:[r("text-align","")]}]},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.outdent=i.indent=i.canBeIndented=i.canOutdentAsListItem=i.canIndentAsListItem=i.isIndented=i.indentBlocks=void 0;var a=t(15),s=t(24),l=t(12),o=t(1),u=t(22);i.indentBlocks=function(a,r,s){return function(e,t){var n=l.blockNodes(e),i=e.tr,e=(i.setMeta("commandName",r),n.forEach(function(t){var e,n,r,o;t.type.isTextblock&&(e=void 0,(n=a.find(function(e){return e.node===t.type.name}))&&(r={name:o="rtl"===s?n.rtlStyle:n.style,value:0<n.step?""+n.step+n.unit:""},t.attrs.style&&(o=new RegExp(o+":\\s?(\\d+)"+n.unit,"i"),o=t.attrs.style.match(o))&&(o=parseFloat(o[1])+n.step,r.value=""+(o=o<=0?"":o)+(o?n.unit:"")),e=l.addStyles(t,[r])),e)&&l.changeTextBlock(i,t,t.type,e)}),i.docChanged);return e&&t(i.scrollIntoView()),e}},i.isIndented=function(e,r,o){var i=!1;return l.blockNodes(e).forEach(function(t){var e,n;!i&&t.type.isTextblock&&t.attrs.style&&(e=r.find(function(e){return e.node===t.type.name}))&&(n="rtl"===o?e.rtlStyle:e.style,n=new RegExp(n+":\\s?\\d+"+e.unit,"i"),i=n.test(t.attrs.style))}),i},i.canIndentAsListItem=function(e,t){return a.sinkListItem(t)(e)},i.canOutdentAsListItem=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],r=e.schema.nodes[t.listsTypes.orderedList],t=e.schema.nodes[t.listsTypes.bulletList],r=!!o.findNthParentNodeOfType(r,2)(e.selection),t=!!o.findNthParentNodeOfType(t,2)(e.selection);return(r||t)&&a.liftListItem(n)(e)},i.canBeIndented=function(t,e){var n=t.schema.nodes,r=n[s.indentRules.listsTypes.listItem];return(i.isIndented(t,e.nodes)||s.indentRules.nodes.some(function(e){return n[e.node]&&l.hasNode(t,n[e.node])}))&&!l.hasNode(t,r)},i.indent=function(e,t){var n=e.schema.nodes[s.indentRules.listsTypes.listItem],r=i.canBeIndented(e,s.indentRules);i.canIndentAsListItem(e,n)?a.sinkListItem(n)(e,t):r&&i.indentBlocks(s.indentRules.nodes)(e,t)},i.outdent=function(e,t){var n=e.schema.nodes,r=n[s.outdentRules.listsTypes.listItem],o=i.canBeIndented(e,s.outdentRules);l.hasNode(e,n.blockquote)?u.liftBlockquote(e,t):i.canOutdentAsListItem(e,s.outdentRules)?a.liftListItem(r)(e,t):o&&i.indentBlocks(s.outdentRules.nodes)(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cleanFormatting=void 0;var a=n(12),s=n(8);t.cleanFormatting=function(i){return void 0===i&&(i={blocksInSelection:!0}),function(e,t){var n=e.tr,r=i.blocksInSelection,o=i.blockNodeType,e=(i.exceptMarks||[e.schema.marks.link]).filter(Boolean),e=(s.cleanMarks(n,{except:e}),a.cleanTextBlockFormatting(n,{blocksInSelection:r,blockNodeType:o}),n.docChanged);return e&&t&&t(n),e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAligned=t.alignBlocks=void 0;var a=n(12);t.alignBlocks=function(o,i){return function(e,t){var n=a.blockNodes(e),r=e.tr,e=(r.setMeta("commandName",i),n.forEach(function(t){var e;t.type.isTextblock&&(e=o.find(function(e){return e.node===t.type.name}))&&(e=a.addStyles(t,e.style),a.changeTextBlock(r,t,t.type,e))}),r.docChanged);return e&&t(r.scrollIntoView()),e}},t.isAligned=function(e,n){var r=!1;return a.blockNodes(e).forEach(function(t){var e;!r&&t.type.isTextblock&&t.attrs.style&&(e=n.find(function(e){return e.node===t.type.name}))&&(r=e.style.every(function(e){return!!e.value&&new RegExp(e.name+":\\s?"+e.value,"i").test(t.attrs.style)}))}),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertImage=void 0;var o=n(1);t.insertImage=function(r){return function(e,t){var n=e.schema.nodes.image.createAndFill(r);o.insertNode(n)(e,function(e){return t(e.setMeta("commandName","insertImage").setMeta("args",r))})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertText=void 0,t.insertText=function(n){return function(e,t){t(e.tr.insertText(n.text,n.from,n.to))}}},function(e,S,t){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.applyLink=S.removeLink=void 0;var O=t(16),A=t(8),x=t(0);S.removeLink=function(f,p){return function(e,t){var n=e.selection.$cursor;if(n){for(var r,o=n.parent,i=n.index(),a=e.schema.marks[f.mark],s=o.child(i).marks.find(function(e){return e.type===a}),l=o.childCount,u=n.pos-n.textOffset,c=o.child(i).nodeSize,d=void 0,d=i-1;0<=d&&s.isInSet(o.child(d).marks);)c+=r=o.child(d).nodeSize,u-=r,--d;for(d=i+1;d<l&&s.isInSet(o.child(d).marks);)c+=o.child(d).nodeSize,d+=1;t(A.removeMark(p||e.tr,u,u+c,s))}else O.toggleInlineFormat(f,p)(e,t)}},S.applyLink=function(e,k){var _=e.mark,M=e.attrs;return void 0===k&&(k="link"),function(t,e){function n(){return s=!0}var r,o,i=t.schema.marks,a=t.tr,s=(k&&(a.setMeta("commandName",k),a.setMeta("args",M)),!1);if(function(e){e=A.selectionMarks(t,e);return 1===e.length&&e[0]&&e[0]}(i[_])){r={mark:_,attrs:M},o=a;var l=n,u=(d=(m=t).selection).$cursor,c=d.from,d=d.to,f=m.schema.marks[r.mark];if(u){for(var p,g=u.parent,m=u.index(),y=g.child(m).marks.find(function(e){return e.type===f}),h=g.childCount,b=u.pos-u.textOffset,v=g.child(m).nodeSize,w=void 0,w=m-1;0<=w&&y.isInSet(g.child(w).marks);)v+=p=g.child(w).nodeSize,b-=p,--w;for(w=m+1;w<h&&y.isInSet(g.child(w).marks);)v+=g.child(w).nodeSize,w+=1;o.removeMark(b,b+v,f),o.addMark(b,b+v,f.create(r.attrs)),l(o)}else o.doc.nodesBetween(c,d,function(e,t){e.isInline&&f.isInSet(e.marks)&&(o.removeMark(t,t+e.nodeSize,f),o.addMark(t,t+e.nodeSize,f.create(r.attrs)),l(o))})}else A.hasMark(u=t,{mark:_})&&(S.removeLink({mark:_,attrs:M},a)(t,n),u=x.EditorState.create({doc:a.doc,selection:a.selection})),(s?A.toggleMark(i[_],M,a):O.toggleInlineFormat({mark:_},a,M))(u,n);return s&&e(a),s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOMSerializer=void 0;var p=n(1);function g(e,t){this.nodes=e,this.marks=t}function r(e){var t,n,r={};for(t in e)e[t]&&(n=e[t].spec.toDOM)&&(r[t]=n);return r}function o(e){return e.document||window.document}g.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var r,o=t[0],i=o.indexOf(" "),a=(0<i&&(n=o.slice(0,i),o=o.slice(i+1)),n?e.createElementNS(n,o):e.createElement(o)),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s))for(var u in l=2,s)null!=s[u]&&(0<(i=u.indexOf(" "))?a.setAttributeNS(u.slice(0,i),u.slice(i+1),s[u]):p.setAttribute(a,u,s[u]));for(var c=l;c<t.length;c++){var d=t[c];if(0===d){if(c<t.length-1||l<c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}var d=g.renderSpec(e,d,n),f=d.dom,d=d.contentDOM;if(a.appendChild(f),d){if(r)throw new RangeError("Multiple content holes");r=d}}return{dom:a,contentDOM:r}},g.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new g(this.nodesFromSchema(e),this.marksFromSchema(e)))},g.nodesFromSchema=function(e){e=r(e.nodes);return e.text||(e.text=function(e){return e.text}),e},g.marksFromSchema=function(e){return r(e.marks)},g.prototype.serializeFragment=function(e,a,t){var s=this,l=(void 0===a&&(a={}),t=t||o(a).createDocumentFragment()),u=[];return e.forEach(function(e){if(u.length||e.marks.length){for(var t=0,n=0;t<u.length&&n<e.marks.length;){var r=e.marks[n];if(s.marks[r.type.name]){if(!r.eq(u[t][0])||!1===r.type.spec.spanning)break;t++}n++}for(;t<u.length;)l=u.pop()[1];for(;n<e.marks.length;){var o=e.marks[n++],i=s.serializeMark(o,e.isInline,a);i&&(u.push([o,l]),l.appendChild(i.dom),l=i.contentDOM||i.dom)}}l.appendChild(s.serializeNodeInner(e,a))}),t},g.prototype.serializeNode=function(e,t){for(var n=this.serializeNodeInner(e,t=void 0===t?{}:t),r=e.marks.length-1;0<=r;r--){var o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n},g.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var r=this.marks[e.type.name];return r&&g.renderSpec(o(n),r(e,t))},g.prototype.serializeNodeInner=function(e,t){var n=g.renderSpec(o(t),this.nodes[e.type.name](e)),r=n.dom,n=n.contentDOM;if(n){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r},t.DOMSerializer=g},function(L,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expandSelection=e.selectedLineTextOnly=e.getNodeFromSelection=e.getSelectionText=e.hasSameMarkup=e.liftBlockquote=e.blockquote=e.listStyle=e.toggleList=e.toggleUnorderedList=e.toggleOrderedList=e.indentBlocks=e.canBeIndented=e.isIndented=e.canOutdentAsListItem=e.outdent=e.canIndentAsListItem=e.indent=e.selectionMarks=e.cleanMarks=e.removeAllMarks=e.getActiveMarks=e.getMark=e.hasMark=e.cleanTextBlockFormatting=e.blockNodes=e.changeTextBlock=e.parentBlockFormat=e.getBlockFormats=e.formatBlockElements=e.activeNode=e.hasNode=e.cleanFormatting=e.isAligned=e.alignBlocks=e.insertImage=e.insertText=e.removeLink=e.applyLink=e.toggleInlineFormat=e.getInlineStyles=e.applyInlineStyle=e.fragmentToHtml=e.pmDocToFragment=e.domToPmDoc=e.htmlToFragment=e.trimWhitespace=e.parseContent=e.setHtml=e.getHtml=void 0,e.listMarkersStyles=e.tableRowResizeKey=e.tableColumnResizeKey=e.tableResizeKey=e.tableResizing=e.caretColorKey=e.caretColor=e.imageResizeKey=e.imageResizing=e.textHighlightKey=e.textHighlight=e.cspFix=e.spacesFix=e.placeholder=e.replaceAll=e.replace=e.findAll=e.findAt=e.find=e.convertMsLists=e.replaceImageSourcesFromRtf=e.removeAttribute=e.sanitizeStyleAttr=e.sanitizeClassAttr=e.pasteCleanup=e.removeTag=e.removeComments=e.sanitize=e.link=e.superscript=e.subscript=e.strikethrough=e.underline=e.italic=e.bold=e.buildListKeymap=e.buildKeymap=e.marks=e.nodes=e.outdentRules=e.indentRules=e.alignRemoveRules=e.alignJustifyRules=e.alignRightRules=e.alignCenterRules=e.alignLeftRules=e.indentHtml=e.insertNode=e.canInsert=e.expandToWordWrap=void 0,e.pmDeleteColumn=e.pmAddRowBefore=e.pmAddRowAfter=e.pmAddColumnAfter=e.pmAddColumnBefore=e.deleteColumn=e.addColumnAfter=e.addColumnBefore=e.addRowBefore=e.addRowAfter=e.createTable=e.nextCell=e.moveCellForward=e.removeColSpan=e.findCell=e.cellAround=e.updateColumnsOnResize=e.columnResizingPluginKey=e.columnResizing=e.columnIsHeader=e.colCount=e.addColumn=e.addColSpan=e.addRow=e.rowIsHeader=e.deleteRow=e.mergeCells=e.splitCellWithType=e.splitCell=e.toggleHeaderRow=e.toggleHeaderColumn=e.toggleHeaderCell=e.toggleHeader=e.goToNextCell=e.setCellAttr=e.selectionCell=e.selectedRect=e.CellSelection=e.inSameTable=e.deleteTable=e.isInTable=e.fixTablesKey=e.fixTables=e.tableNodes=e.tableNodeTypes=e.tableEditingKey=e.tableEditing=e.TableMap=void 0;var n,r=t(2),o=t(9),i=(Object.defineProperty(e,"getHtml",{enumerable:!0,get:function(){return o.getHtml}}),Object.defineProperty(e,"setHtml",{enumerable:!0,get:function(){return o.setHtml}}),Object.defineProperty(e,"parseContent",{enumerable:!0,get:function(){return o.parseContent}}),Object.defineProperty(e,"trimWhitespace",{enumerable:!0,get:function(){return o.trimWhitespace}}),Object.defineProperty(e,"htmlToFragment",{enumerable:!0,get:function(){return o.htmlToFragment}}),Object.defineProperty(e,"domToPmDoc",{enumerable:!0,get:function(){return o.domToPmDoc}}),Object.defineProperty(e,"pmDocToFragment",{enumerable:!0,get:function(){return o.pmDocToFragment}}),Object.defineProperty(e,"fragmentToHtml",{enumerable:!0,get:function(){return o.fragmentToHtml}}),t(16)),a=(Object.defineProperty(e,"applyInlineStyle",{enumerable:!0,get:function(){return i.applyInlineStyle}}),Object.defineProperty(e,"getInlineStyles",{enumerable:!0,get:function(){return i.getInlineStyles}}),Object.defineProperty(e,"toggleInlineFormat",{enumerable:!0,get:function(){return i.toggleInlineFormat}}),t(50)),s=(Object.defineProperty(e,"applyLink",{enumerable:!0,get:function(){return a.applyLink}}),Object.defineProperty(e,"removeLink",{enumerable:!0,get:function(){return a.removeLink}}),t(49)),l=(Object.defineProperty(e,"insertText",{enumerable:!0,get:function(){return s.insertText}}),t(48)),u=(Object.defineProperty(e,"insertImage",{enumerable:!0,get:function(){return l.insertImage}}),t(47)),c=(Object.defineProperty(e,"alignBlocks",{enumerable:!0,get:function(){return u.alignBlocks}}),Object.defineProperty(e,"isAligned",{enumerable:!0,get:function(){return u.isAligned}}),t(46)),d=(Object.defineProperty(e,"cleanFormatting",{enumerable:!0,get:function(){return c.cleanFormatting}}),t(12)),f=(Object.defineProperty(e,"hasNode",{enumerable:!0,get:function(){return d.hasNode}}),Object.defineProperty(e,"activeNode",{enumerable:!0,get:function(){return d.activeNode}}),Object.defineProperty(e,"formatBlockElements",{enumerable:!0,get:function(){return d.formatBlockElements}}),Object.defineProperty(e,"getBlockFormats",{enumerable:!0,get:function(){return d.getBlockFormats}}),Object.defineProperty(e,"parentBlockFormat",{enumerable:!0,get:function(){return d.parentBlockFormat}}),Object.defineProperty(e,"changeTextBlock",{enumerable:!0,get:function(){return d.changeTextBlock}}),Object.defineProperty(e,"blockNodes",{enumerable:!0,get:function(){return d.blockNodes}}),Object.defineProperty(e,"cleanTextBlockFormatting",{enumerable:!0,get:function(){return d.cleanTextBlockFormatting}}),t(8)),p=(Object.defineProperty(e,"hasMark",{enumerable:!0,get:function(){return f.hasMark}}),Object.defineProperty(e,"getMark",{enumerable:!0,get:function(){return f.getMark}}),Object.defineProperty(e,"getActiveMarks",{enumerable:!0,get:function(){return f.getActiveMarks}}),Object.defineProperty(e,"removeAllMarks",{enumerable:!0,get:function(){return f.removeAllMarks}}),Object.defineProperty(e,"cleanMarks",{enumerable:!0,get:function(){return f.cleanMarks}}),Object.defineProperty(e,"selectionMarks",{enumerable:!0,get:function(){return f.selectionMarks}}),t(45)),g=(Object.defineProperty(e,"indent",{enumerable:!0,get:function(){return p.indent}}),Object.defineProperty(e,"canIndentAsListItem",{enumerable:!0,get:function(){return p.canIndentAsListItem}}),Object.defineProperty(e,"outdent",{enumerable:!0,get:function(){return p.outdent}}),Object.defineProperty(e,"canOutdentAsListItem",{enumerable:!0,get:function(){return p.canOutdentAsListItem}}),Object.defineProperty(e,"isIndented",{enumerable:!0,get:function(){return p.isIndented}}),Object.defineProperty(e,"canBeIndented",{enumerable:!0,get:function(){return p.canBeIndented}}),Object.defineProperty(e,"indentBlocks",{enumerable:!0,get:function(){return p.indentBlocks}}),t(21)),m=(Object.defineProperty(e,"toggleOrderedList",{enumerable:!0,get:function(){return g.toggleOrderedList}}),Object.defineProperty(e,"toggleUnorderedList",{enumerable:!0,get:function(){return g.toggleUnorderedList}}),Object.defineProperty(e,"toggleList",{enumerable:!0,get:function(){return g.toggleList}}),Object.defineProperty(e,"listStyle",{enumerable:!0,get:function(){return g.listStyle}}),t(22)),y=(Object.defineProperty(e,"blockquote",{enumerable:!0,get:function(){return m.blockquote}}),Object.defineProperty(e,"liftBlockquote",{enumerable:!0,get:function(){return m.liftBlockquote}}),t(1)),h=(Object.defineProperty(e,"hasSameMarkup",{enumerable:!0,get:function(){return y.hasSameMarkup}}),Object.defineProperty(e,"getSelectionText",{enumerable:!0,get:function(){return y.getSelectionText}}),Object.defineProperty(e,"getNodeFromSelection",{enumerable:!0,get:function(){return y.getNodeFromSelection}}),Object.defineProperty(e,"selectedLineTextOnly",{enumerable:!0,get:function(){return y.selectedLineTextOnly}}),Object.defineProperty(e,"expandSelection",{enumerable:!0,get:function(){return y.expandSelection}}),Object.defineProperty(e,"expandToWordWrap",{enumerable:!0,get:function(){return y.expandToWordWrap}}),Object.defineProperty(e,"canInsert",{enumerable:!0,get:function(){return y.canInsert}}),Object.defineProperty(e,"insertNode",{enumerable:!0,get:function(){return y.insertNode}}),Object.defineProperty(e,"indentHtml",{enumerable:!0,get:function(){return y.indentHtml}}),t(44)),b=(Object.defineProperty(e,"alignLeftRules",{enumerable:!0,get:function(){return h.alignLeftRules}}),Object.defineProperty(e,"alignCenterRules",{enumerable:!0,get:function(){return h.alignCenterRules}}),Object.defineProperty(e,"alignRightRules",{enumerable:!0,get:function(){return h.alignRightRules}}),Object.defineProperty(e,"alignJustifyRules",{enumerable:!0,get:function(){return h.alignJustifyRules}}),Object.defineProperty(e,"alignRemoveRules",{enumerable:!0,get:function(){return h.alignRemoveRules}}),t(24)),v=(Object.defineProperty(e,"indentRules",{enumerable:!0,get:function(){return b.indentRules}}),Object.defineProperty(e,"outdentRules",{enumerable:!0,get:function(){return b.outdentRules}}),t(14)),w=(Object.defineProperty(e,"nodes",{enumerable:!0,get:function(){return v.nodes}}),Object.defineProperty(e,"marks",{enumerable:!0,get:function(){return v.marks}}),t(43)),k=(Object.defineProperty(e,"buildKeymap",{enumerable:!0,get:function(){return w.buildKeymap}}),Object.defineProperty(e,"buildListKeymap",{enumerable:!0,get:function(){return w.buildListKeymap}}),t(18)),_=(Object.defineProperty(e,"bold",{enumerable:!0,get:function(){return k.bold}}),Object.defineProperty(e,"italic",{enumerable:!0,get:function(){return k.italic}}),Object.defineProperty(e,"underline",{enumerable:!0,get:function(){return k.underline}}),Object.defineProperty(e,"strikethrough",{enumerable:!0,get:function(){return k.strikethrough}}),Object.defineProperty(e,"subscript",{enumerable:!0,get:function(){return k.subscript}}),Object.defineProperty(e,"superscript",{enumerable:!0,get:function(){return k.superscript}}),Object.defineProperty(e,"link",{enumerable:!0,get:function(){return k.link}}),t(42)),M=(Object.defineProperty(e,"sanitize",{enumerable:!0,get:function(){return _.sanitize}}),Object.defineProperty(e,"removeComments",{enumerable:!0,get:function(){return _.removeComments}}),Object.defineProperty(e,"removeTag",{enumerable:!0,get:function(){return _.removeTag}}),Object.defineProperty(e,"pasteCleanup",{enumerable:!0,get:function(){return _.pasteCleanup}}),Object.defineProperty(e,"sanitizeClassAttr",{enumerable:!0,get:function(){return _.sanitizeClassAttr}}),Object.defineProperty(e,"sanitizeStyleAttr",{enumerable:!0,get:function(){return _.sanitizeStyleAttr}}),Object.defineProperty(e,"removeAttribute",{enumerable:!0,get:function(){return _.removeAttribute}}),Object.defineProperty(e,"replaceImageSourcesFromRtf",{enumerable:!0,get:function(){return _.replaceImageSourcesFromRtf}}),t(17)),S=(Object.defineProperty(e,"convertMsLists",{enumerable:!0,get:function(){return M.convertMsLists}}),t(41)),O=(Object.defineProperty(e,"find",{enumerable:!0,get:function(){return S.find}}),Object.defineProperty(e,"findAt",{enumerable:!0,get:function(){return S.findAt}}),Object.defineProperty(e,"findAll",{enumerable:!0,get:function(){return S.findAll}}),Object.defineProperty(e,"replace",{enumerable:!0,get:function(){return S.replace}}),Object.defineProperty(e,"replaceAll",{enumerable:!0,get:function(){return S.replaceAll}}),t(40)),A=(Object.defineProperty(e,"placeholder",{enumerable:!0,get:function(){return O.placeholder}}),t(39)),x=(Object.defineProperty(e,"spacesFix",{enumerable:!0,get:function(){return A.spacesFix}}),t(38)),R=(Object.defineProperty(e,"cspFix",{enumerable:!0,get:function(){return x.cspFix}}),t(37)),C=(Object.defineProperty(e,"textHighlight",{enumerable:!0,get:function(){return R.textHighlight}}),Object.defineProperty(e,"textHighlightKey",{enumerable:!0,get:function(){return R.textHighlightKey}}),t(36)),T=(Object.defineProperty(e,"imageResizing",{enumerable:!0,get:function(){return C.imageResizing}}),Object.defineProperty(e,"imageResizeKey",{enumerable:!0,get:function(){return C.imageResizeKey}}),t(35)),z=(Object.defineProperty(e,"caretColor",{enumerable:!0,get:function(){return T.caretColor}}),Object.defineProperty(e,"caretColorKey",{enumerable:!0,get:function(){return T.caretColorKey}}),t(34)),P=(Object.defineProperty(e,"tableResizing",{enumerable:!0,get:function(){return z.tableResizing}}),Object.defineProperty(e,"tableResizeKey",{enumerable:!0,get:function(){return z.tableResizeKey}}),Object.defineProperty(e,"tableColumnResizeKey",{enumerable:!0,get:function(){return z.tableColumnResizeKey}}),Object.defineProperty(e,"tableRowResizeKey",{enumerable:!0,get:function(){return z.tableRowResizeKey}}),t(29)),j=(Object.defineProperty(e,"listMarkersStyles",{enumerable:!0,get:function(){return P.listMarkersStyles}}),r.__exportStar(t(11),e),r.__exportStar(t(28),e),r.__exportStar(t(27),e),r.__exportStar(t(20),e),r.__exportStar(t(19),e),r.__exportStar(t(26),e),r.__exportStar(t(5),e),r.__exportStar(t(15),e),r.__exportStar(t(0),e),t(6)),N=(Object.defineProperty(e,"TableMap",{enumerable:!0,get:function(){return j.TableMap}}),Object.defineProperty(e,"tableEditing",{enumerable:!0,get:function(){return j.tableEditing}}),Object.defineProperty(e,"tableEditingKey",{enumerable:!0,get:function(){return j.tableEditingKey}}),Object.defineProperty(e,"tableNodeTypes",{enumerable:!0,get:function(){return j.tableNodeTypes}}),Object.defineProperty(e,"tableNodes",{enumerable:!0,get:function(){return j.tableNodes}}),Object.defineProperty(e,"fixTables",{enumerable:!0,get:function(){return j.fixTables}}),Object.defineProperty(e,"fixTablesKey",{enumerable:!0,get:function(){return j.fixTablesKey}}),Object.defineProperty(e,"isInTable",{enumerable:!0,get:function(){return j.isInTable}}),Object.defineProperty(e,"deleteTable",{enumerable:!0,get:function(){return j.deleteTable}}),Object.defineProperty(e,"inSameTable",{enumerable:!0,get:function(){return j.inSameTable}}),Object.defineProperty(e,"CellSelection",{enumerable:!0,get:function(){return j.CellSelection}}),Object.defineProperty(e,"selectedRect",{enumerable:!0,get:function(){return j.selectedRect}}),Object.defineProperty(e,"selectionCell",{enumerable:!0,get:function(){return j.selectionCell}}),Object.defineProperty(e,"setCellAttr",{enumerable:!0,get:function(){return j.setCellAttr}}),Object.defineProperty(e,"goToNextCell",{enumerable:!0,get:function(){return j.goToNextCell}}),Object.defineProperty(e,"toggleHeader",{enumerable:!0,get:function(){return j.toggleHeader}}),Object.defineProperty(e,"toggleHeaderCell",{enumerable:!0,get:function(){return j.toggleHeaderCell}}),Object.defineProperty(e,"toggleHeaderColumn",{enumerable:!0,get:function(){return j.toggleHeaderColumn}}),Object.defineProperty(e,"toggleHeaderRow",{enumerable:!0,get:function(){return j.toggleHeaderRow}}),Object.defineProperty(e,"splitCell",{enumerable:!0,get:function(){return j.splitCell}}),Object.defineProperty(e,"splitCellWithType",{enumerable:!0,get:function(){return j.splitCellWithType}}),Object.defineProperty(e,"mergeCells",{enumerable:!0,get:function(){return j.mergeCells}}),Object.defineProperty(e,"deleteRow",{enumerable:!0,get:function(){return j.deleteRow}}),Object.defineProperty(e,"rowIsHeader",{enumerable:!0,get:function(){return j.rowIsHeader}}),Object.defineProperty(e,"addRow",{enumerable:!0,get:function(){return j.addRow}}),Object.defineProperty(e,"addColSpan",{enumerable:!0,get:function(){return j.addColSpan}}),Object.defineProperty(e,"addColumn",{enumerable:!0,get:function(){return j.addColumn}}),Object.defineProperty(e,"colCount",{enumerable:!0,get:function(){return j.colCount}}),Object.defineProperty(e,"columnIsHeader",{enumerable:!0,get:function(){return j.columnIsHeader}}),Object.defineProperty(e,"columnResizing",{enumerable:!0,get:function(){return j.columnResizing}}),Object.defineProperty(e,"columnResizingPluginKey",{enumerable:!0,get:function(){return j.columnResizingPluginKey}}),Object.defineProperty(e,"updateColumnsOnResize",{enumerable:!0,get:function(){return j.updateColumnsOnResize}}),Object.defineProperty(e,"cellAround",{enumerable:!0,get:function(){return j.cellAround}}),Object.defineProperty(e,"findCell",{enumerable:!0,get:function(){return j.findCell}}),Object.defineProperty(e,"removeColSpan",{enumerable:!0,get:function(){return j.removeColSpan}}),Object.defineProperty(e,"moveCellForward",{enumerable:!0,get:function(){return j.moveCellForward}}),Object.defineProperty(e,"nextCell",{enumerable:!0,get:function(){return j.nextCell}}),r.__exportStar(t(7),e),r.__exportStar(t(3),e),t(25)),I=(Object.defineProperty(e,"createTable",{enumerable:!0,get:function(){return N.createTable}}),Object.defineProperty(e,"addRowAfter",{enumerable:!0,get:function(){return N.addRowAfter}}),Object.defineProperty(e,"addRowBefore",{enumerable:!0,get:function(){return N.addRowBefore}}),Object.defineProperty(e,"addColumnBefore",{enumerable:!0,get:function(){return N.addColumnBefore}}),Object.defineProperty(e,"addColumnAfter",{enumerable:!0,get:function(){return N.addColumnAfter}}),Object.defineProperty(e,"deleteColumn",{enumerable:!0,get:function(){return N.deleteColumn}}),Object.defineProperty(e,"pmAddColumnBefore",{enumerable:!0,get:function(){return N.pmAddColumnBefore}}),Object.defineProperty(e,"pmAddColumnAfter",{enumerable:!0,get:function(){return N.pmAddColumnAfter}}),Object.defineProperty(e,"pmAddRowAfter",{enumerable:!0,get:function(){return N.pmAddRowAfter}}),Object.defineProperty(e,"pmAddRowBefore",{enumerable:!0,get:function(){return N.pmAddRowBefore}}),Object.defineProperty(e,"pmDeleteColumn",{enumerable:!0,get:function(){return N.pmDeleteColumn}}),e);for(n in I)D(n,I[n])}],o={},r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=52)}}});
1
+ System.register("@progress/kendo-editor-common",["prosemirror-dropcursor","prosemirror-commands","tslib","prosemirror-inputrules","prosemirror-gapcursor","prosemirror-model","prosemirror-history","prosemirror-keymap","prosemirror-schema-list","prosemirror-state","prosemirror-transform","prosemirror-view","prosemirror-tables"],function(D){var i,a,s,l,u,c,d,f,p,g,m,y,h;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){i=t(e)},function(e){a=t(e)},function(e){s=t(e)},function(e){l=t(e)},function(e){u=t(e)},function(e){c=t(e)},function(e){d=t(e)},function(e){f=t(e)},function(e){p=t(e)},function(e){g=t(e)},function(e){m=t(e)},function(e){y=t(e)},function(e){h=t(e)}],execute:function(){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var n,o;n=[function(e,t){e.exports=g},function(e,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.setAttribute=l.applyStyle=l.parseStyle=l.expandToWordWrap=l.expandSelection=l.shallowEqual=l.indentHtml=l.selectedLineTextOnly=l.getNodeFromSelection=l.getSelectionText=l.hasSameMarkup=l.insertNode=l.parentNode=l.findNthParentNodeOfType=l.canInsert=l.setNodeStyle=l.changeStylesString=void 0;function s(e){return(e instanceof o.Node?e.type:e).name}function i(e){var t,n={};for(t in e)t&&(e[t]||0===e[t])&&(n[t]=e[t]);return n}var a=t(2),o=t(5),g=t(0),u=t(9),c=(l.changeStylesString=function(e,t){var n,r=t.style,o=t.value,t=t.newValue;return e?(n=(e=e.split(/\s*;\s*/).filter(function(e){return Boolean(e)})).filter(function(e){e=e.split(/\s*:\s*/);return!(e[0].toLowerCase()===r&&o.test(e[1]))}),t&&n.push(r+": "+t),{style:n.join("; ")+(n.length?";":""),changed:Boolean(t)||n.length!==e.length}):{changed:!1,style:null}},/^.+$/),m=(l.setNodeStyle=function(e,t,n){var r;return new RegExp("[^-]?"+t+":").test(e.style||"")?(r=l.changeStylesString(e.style||"",{style:t,value:c,newValue:n}).style,a.__assign(a.__assign({},e),{style:r})):e.style?a.__assign(a.__assign({},e),{style:e.style.replace(/;$/,"")+"; "+t+": "+n+";"}):a.__assign(a.__assign({},e),{style:t+": "+n+";"})},l.canInsert=function(e,t){for(var n=e.selection.$from,r=n.depth;0<=r;r--){var o=n.index(r);if(n.node(r).canReplaceWith(o,o,t))return!0}return!1},l.findNthParentNodeOfType=function(i,a){return void 0===a&&(a=1),function(e){t=void 0===a?1:a;for(var t,n=e.$from,r=n.depth;0<r;r--){var o=n.node(r);if(s(o)===s(i)&&0==--t)return{depth:r,node:o}}}},l.parentNode=function(e,t){for(var n=e.depth;0<n;n--){var r=e.node(n);if(t(r))return{node:r,depth:n}}return null},l.insertNode=function(r,o){return function(e,t){var n=e.selection,e=e.tr;n instanceof g.NodeSelection&&n.node.type.name===r.type.name&&r.isLeaf&&!r.isText&&1===r.nodeSize?(e.setNodeMarkup(n.from,null,a.__assign(a.__assign({},i(n.node.attrs)),i(r.attrs))),e.setSelection(g.NodeSelection.create(e.doc,n.from))):e.replaceSelectionWith(r),o&&e.scrollIntoView(),t(e)}},l.hasSameMarkup=function(e,t,n,r){e=o.Fragment.from(u.parseContent(e,n,r)),t=o.Fragment.from(u.parseContent(t,n,r));return e.eq(t)},l.getSelectionText=function(e){var e=e.selection;return e instanceof g.TextSelection||e instanceof g.AllSelection?(e=e.content().content).textBetween(0,e.size):""},l.getNodeFromSelection=function(e){if(e.selection instanceof g.NodeSelection)return e.selection.node},l.selectedLineTextOnly=function(e){var t="",n=!1,r=e.selection,o=e.doc,i=r.$from,a=r.$to,s=r.from,r=r.to;return i.sameParent(a)&&(o.nodesBetween(s,r,function(e){n=n||e.isLeaf&&!e.isText}),n||(t=l.getSelectionText(e))),t},l.indentHtml=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")},l.shallowEqual=function(t,n){var e=Object.keys(t),r=Object.keys(n);return e.length===r.length&&e.every(function(e){return t[e]===n[e]})},{before:/[^ !,?.\[\]{}()]+$/i,after:/^[^ !,?.\[\]{}()]+/i});l.expandSelection=function(e,t,n){if(n.applyToWord&&e.selection.empty){var r,n=!0===n.applyToWord?m:n.applyToWord,o=e.tr,i=e.selection,a=i.$head.nodeBefore,s=i.$head.nodeAfter;if(a&&"text"===a.type.name&&a.text&&s&&"text"===s.type.name&&s.text){var l=[];i.$head.parent.descendants(function(e,t){return l.push({node:e,pos:t}),!1});for(var u=i.$head.parentOffset,a=l.findIndex(function(e){var t=e.node,e=e.pos;return e<=u&&e+t.nodeSize>=u}),c=l[a].node.text,d=!1,f=a-1;0<=f;f--){var p=l[f];!d&&p&&"text"===p.node.type.name?c=p.node.text+c:(d=!0,u-=p.node.nodeSize)}for(f=a+1;f<l.length&&(p=l[f])&&"text"===p.node.type.name;f++)c+=p.node.text;var s=c.substring(0,u),a=c.substring(u),s=n.before.exec(s),n=n.after.exec(a);if(s&&n)return a=s[0].length,s=n[0].length,r=i.from,o.setSelection(g.TextSelection.create(e.doc,r-a,r+s)),{state:{tr:o,selection:o.selection,doc:o.doc,storedMarks:null,schema:o.doc.type.schema},dispatch:function(e){e.setSelection(g.TextSelection.create(e.doc,r)),t(e)}}}}return{state:e,dispatch:t}},l.expandToWordWrap=function(r,o){return function(e,t,n){e=l.expandSelection(e,t,o),t=e.state,e=e.dispatch;return r(o)(t,e)}},l.parseStyle=function(e){return(e||"").split(/\s*;\s*/).filter(Boolean).map(function(e){var t,e=e.split(/\s*:\s*/);return(t={})[e[0]]=e[1],t}).reduce(function(e,t){return a.__assign(a.__assign({},e),t)},{})},l.applyStyle=function(e,t,n){var r=l.parseStyle(e),e=(r[t]=n,Object.keys(r).map(function(e){return r[e]?e+": "+r[e]:null}).filter(Boolean).join("; "));return e?e+";":null},l.setAttribute=function(e,t,n){var r=e.getAttribute(t);if(void 0!==n&&n!==r)if("style"!==t)e.setAttribute(t,n);else{e.removeAttribute(t);var o,i=e,a=l.parseStyle(n);for(o in a)o&&void 0!==i.style[o]&&(i.style[o]=a[o])}else void 0===n&&e.removeAttribute(t)}},function(e,t){e.exports=s},function(e,t){e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataResizeDirImage=t.dataResizeDirTable=t.resizeHandle=t.resizableWrap=t.resizableAttr=t.colgroupAttr=t.rowTypeAttr=void 0,t.rowTypeAttr="k-parent-node",t.colgroupAttr="k-colgroup-data",t.resizableAttr="k-resizable-node",t.resizableWrap="k-editor-resize-wrap-element",t.resizeHandle="k-editor-resize-handle",t.dataResizeDirTable="data-dir-table-resize",t.dataResizeDirImage="data-dir-image-resize"},function(e,t){e.exports=c},function(e,t){e.exports=h},function(e,t){e.exports=m},function(e,m,t){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.getActiveMarks=m.getMark=m.selectionMarks=m.styleValue=m.hasMark=m.cleanMarks=m.removeAllMarks=m.removeMarks=m.removeMark=m.toggleMark=m.markApplies=void 0;var n=t(7),y=t(5);m.markApplies=function(r,o,i){for(var e=0;e<o.length;e++){var t=function(e){var e=o[e],t=e.$from,e=e.$to,n=0===t.depth&&r.type.allowsMarkType(i);if(r.nodesBetween(t.pos,e.pos,function(e){if(n)return!1;n=e.inlineContent&&e.type.allowsMarkType(i)}),n)return{v:!0}}(e);if(t)return t.v}return!1},m.toggleMark=function(f,p,g){return function(e,t){var n=e.selection,r=n.empty,o=n.$cursor,i=n.ranges;if(r&&!o||!m.markApplies(e.doc,i,f))return!1;if(t)if(o)f.isInSet(e.storedMarks||o.marks())?t(g.removeStoredMark(f)):t(g.addStoredMark(f.create(p)));else{for(var a=!1,s=0;!a&&s<i.length;s++)var l=i[s],u=l.$from,c=l.$to,a=e.doc.rangeHasMark(u.pos,c.pos,f);for(s=0;s<i.length;s++){var d=i[s],u=d.$from,c=d.$to;a?g.removeMark(u.pos,c.pos,f):g.addMark(u.pos,c.pos,f.create(p))}t(g.scrollIntoView())}return!0}},m.removeMark=function(t,c,d,f){void 0===f&&(f=null);var p=[],g=0;return t.doc.nodesBetween(c,d,function(e,t){if(e.isInline){g++;var n,r=null;if(f instanceof y.MarkType?(n=f.isInSet(e.marks))&&(r=[n]):f?f.isInSet(e.marks)&&(r=[f]):r=e.marks,r&&r.length)for(var o=Math.min(t+e.nodeSize,d),i=0;i<r.length;i++){for(var a=r[i],s=void 0,l=0;l<p.length;l++){var u=p[l];u.step===g-1&&a.eq(u.style)&&(s=u)}s?(s.to=o,s.step=g):p.push({style:a,from:Math.max(t,c),to:o,step:g})}}}),p.forEach(function(e){return t.step(new n.RemoveMarkStep(e.from,e.to,e.style))}),t},m.removeMarks=function(r,t,n,o){var e=t.selection,i=e.$cursor,a=e.ranges;if(o=o||t.tr,i)r.forEach(function(e){e.isInSet(t.storedMarks||i.marks())&&n(o.removeStoredMark(e))});else{for(var s=0;s<a.length;s++)!function(e){var e=a[e],t=e.$from,n=e.$to;r.forEach(function(e){m.removeMark(o,t.pos,n.pos,e)})}(s);n(o.scrollIntoView())}return!0},m.removeAllMarks=function(e){var e=(void 0===e?{}:e).except,r=void 0===e?[]:e;return function(e,t){var n,e=e.tr;m.cleanMarks(e,{except:(n=r)instanceof Array?n:[n]}),e.docChanged&&t(e)}},m.cleanMarks=function(r,e){var o,e=e.except,t=r.doc,n=r.selection,i=t.type.schema,t=n.empty,n=n.ranges,a=(e||[]).map(function(e){return e.name});t||(o=Object.keys(i.marks).map(function(e){return i.marks[e]}).filter(function(e){return-1===a.indexOf(e.name)}),n.forEach(function(e){var t=e.$from,n=e.$to;o.forEach(function(e){return r.removeMark(t.pos,n.pos,e)})}))},m.hasMark=function(e,t){var n,r=e.schema.marks,o=(t.altMarks||[]).filter(function(e){return r[e]}),i=t.altStyle,a=e.selection,s=a.from,l=a.$from,u=a.to,a=a.empty,t=r[t.mark],c=e.doc,d=!1;return!(d=a?(n=e.storedMarks||l.marks(),t&&t.isInSet(n)||o.some(function(e){return r[e].isInSet(n)})):t&&c.rangeHasMark(s,u,t)||o.some(function(e){return c.rangeHasMark(s,u,r[e])}))&&i&&r.style?m.selectionMarks(e,r.style).some(function(e){return null!==m.styleValue(e,i)}):Boolean(d)},m.styleValue=function(e,t){for(var n=(e&&e.attrs.style||"").split(/\s*;\s*/).filter(function(e){return Boolean(e)}),r=0;r<n.length;r++){var o=n[r].split(/\s*:\s*/);if(o[0].toLowerCase()===t.name&&t.value.test(o[1]))return o[1]}return null},m.selectionMarks=function(e,t){var n=e.selection,r=n.from,o=n.$from,i=n.to,a=[];return n.empty?a.push(t.isInSet(e.storedMarks||o.marks())):e.doc.nodesBetween(r,i,function(e){e.isInline&&a.push(t.isInSet(e.marks))}),a},m.getMark=function(e,t){e=m.selectionMarks(e,t),t=e.filter(function(e){return Boolean(e)});return e.length===t.length?e[0]:void 0},m.getActiveMarks=function(e,t){e=m.selectionMarks(e,t),t=e.filter(function(e){return Boolean(e)});return{hasNodesWithoutMarks:e.length!==t.length,marks:t}}},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.setHtml=i.getHtml=i.parseContent=i.domToPmDoc=i.pmDocToFragment=i.fragmentToHtml=i.htmlToFragment=i.trimWhitespace=void 0;function o(e,t){var n=(e.ownerDocument||document).createElement(t);Array.from(e.rows).filter(function(e){return e.getAttribute(l.rowTypeAttr)===t}).forEach(function(e){e.removeAttribute(l.rowTypeAttr),n.appendChild(e)}),n.children.length&&e.appendChild(n)}function r(e,n){var t=n.toUpperCase();e.filter(function(e){return e.nodeName===t}).forEach(function(t){Array.from(t.children).forEach(function(e){e.setAttribute(l.rowTypeAttr,n),t.parentNode&&t.parentNode.insertBefore(e,t)}),t.remove()})}function n(e){return e.replace(f," data-style=")}var a=t(5),s=t(0),l=t(4),u=t(51),c=["div","ol","ul","li","table","tbody","thead","tfoot","caption","td","th","p","tr","col","colgroup","article","main","nav","header","footer","aside","section"],d=(i.trimWhitespace=function(e,t){t=(t=void 0===t?c:t).join("|");return e.replace(new RegExp("\\s*(<(?:"+t+")(?:\\s[^>]*?)?>)","g"),"$1").replace(new RegExp("(<\\/(?:"+t+")(?:\\s[^>]*?)?>)\\s*","g"),"$1")},/<[^>]+>/gm),f=/\sstyle=/gm;i.htmlToFragment=function(e){var t=document.createElement("template");return t.innerHTML=e.replace(d,n),e=t.content,Array.from(e.querySelectorAll("[data-style]")).forEach(function(e){var t,n=e.getAttribute("data-style");e.removeAttribute("data-style"),t=e,n.split(";").filter(function(e){return""!==e}).forEach(function(e){e=e.split(":");t.style[e[0].trim()]=e[1].trim()})}),t.content},i.fragmentToHtml=function(e){return Array.from(e.childNodes).reduce(function(e,t){return e+(t.outerHTML||t.textContent||"")},"")},i.pmDocToFragment=function(e){e=u.DOMSerializer.fromSchema(e.type.schema).serializeFragment(e.content);return Array.from(e.querySelectorAll("table")).forEach(function(e){o(e,"thead"),o(e,"tbody"),o(e,"tfoot");var t=Array.from(e.children).find(function(e){return 0===e.children.length}),t=(t&&t.remove(),e.parentNode instanceof HTMLDivElement?e.parentNode:null);if(t&&t.matches("div[table]")){e.style.marginLeft=t.style.marginLeft,e.style.marginRight=t.style.marginRight;var n=Array.from(t.children).find(function(e){return e.matches("div[caption]")});if(n&&"<img>"!==n.innerHTML){var r=e.createCaption();for(n.id&&(r.id=n.id),n.className&&(r.className=n.className),Array.from(n.style).forEach(function(e){r.style[e]=n.style[e]});n.firstChild;)r.appendChild(n.firstChild)}t.style.width&&!e.style.width&&(e.style.width=t.style.width),t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t)}}),e},i.domToPmDoc=function(e,t,n){return a.DOMParser.fromSchema(t).parse(e,n)},i.parseContent=function(e,t,n){e=i.htmlToFragment(e);return Array.from(e.querySelectorAll("table")).forEach(function(t){var e=Array.from(t.children),e=(e.some(function(e){return"THEAD"===e.nodeName||"TFOOT"===e.nodeName})&&(r(e,"thead"),r(e,"tbody"),r(e,"tfoot")),e.find(function(e){return"COLGROUP"===e.nodeName}));if(e&&(t.setAttribute(l.colgroupAttr,e.outerHTML),e.remove()),t.caption||t.style.marginLeft||t.style.marginRight){e=document.createElement("div");if(e.setAttribute("table",""),e.style.display="table",e.style.marginLeft=t.style.marginLeft,e.style.marginRight=t.style.marginRight,t.caption){var n=document.createElement("div");for(n.setAttribute("caption",""),t.caption.id&&(n.id=t.caption.id),t.caption.className&&(n.className=t.caption.className),Array.from(t.caption.style).forEach(function(e){n.style[e]=t.caption.style[e]});t.caption.firstChild;)n.appendChild(t.caption.firstChild);t.removeChild(t.caption),e.appendChild(n)}t.parentNode.insertBefore(e,t),e.appendChild(t),/%/.test(t.style.width)&&(e.style.width=t.style.width,t.style.width="")}}),i.domToPmDoc(e,t,n)},i.getHtml=function(e){e=i.pmDocToFragment(e.doc);return i.fragmentToHtml(e)},i.setHtml=function(n,r,o){return void 0===r&&(r="setHTML"),void 0===o&&(o={preserveWhitespace:"full"}),function(e,t){return t(e.tr.setSelection(new s.AllSelection(e.doc)).replaceSelectionWith(i.parseContent(n,e.schema,o)).setMeta("commandName",r))}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.edgeCell=n.cellIndexes=n.domCellAround=n.getTable=n.otherResizeHandle=n.otherResizing=n.tableRowResizeKey=n.tableColumnResizeKey=n.tableResizeKey=void 0;var r=t(0),o=t(6),i=t(1);n.tableResizeKey=new r.PluginKey("table-resize"),n.tableColumnResizeKey=new r.PluginKey("table-column-resizing"),n.tableRowResizeKey=new r.PluginKey("table-row-resizing"),n.otherResizing=function(e,t){return e!==n.tableResizeKey&&Boolean(n.tableResizeKey.get(t))&&n.tableResizeKey.getState(t).dragging||e!==n.tableColumnResizeKey&&Boolean(n.tableColumnResizeKey.get(t))&&n.tableColumnResizeKey.getState(t).dragging||e!==n.tableRowResizeKey&&Boolean(n.tableRowResizeKey.get(t))&&n.tableRowResizeKey.getState(t).dragging},n.otherResizeHandle=function(e,t){return e!==n.tableColumnResizeKey&&Boolean(n.tableColumnResizeKey.get(t))&&-1<n.tableColumnResizeKey.getState(t).activeHandle||e!==n.tableRowResizeKey&&Boolean(n.tableRowResizeKey.get(t))&&-1<n.tableRowResizeKey.getState(t).activeHandle},n.getTable=function(e){return e&&e.firstChild&&"TABLE"===e.firstChild.nodeName?e.firstChild:e},n.domCellAround=function(e){for(;e&&"TD"!==e.nodeName&&"TH"!==e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e},n.cellIndexes=function(r){e=r.closest("table"),e=Array.from(e&&e.rows||[]),t=Array.from(e&&e[0]&&e[0].cells||[]).map(function(e){return e.colSpan}).reduce(function(e,t){return e+t},0),a=e.map(function(){return new Array(t)}),e.forEach(function(e,o){var i=0;Array.from(e.cells).forEach(function(e){for(var t=0;t<e.colSpan;t++){for(var n=0;n<e.rowSpan;n++){var r=a[o+n].findIndex(function(e,t){return i<=t&&!e});a[o+n][r]=e}i++}})});for(var e,t,a,o=a,i=null,n=0;n<o.length&&"break"!==function(n){if(o[n].forEach(function(e,t){r===e&&(i={rowIndex:n,cellIndex:t})}),i)return"break"}(n);n++);return i||{rowIndex:-1,cellIndex:-1}},n.edgeCell=function(e,t,n){var t=e.posAtCoords({left:t.clientX,top:t.clientY});return!t||(e=e.state.doc.resolve(t.pos),null===(t=i.parentNode(e,function(e){return"table"===e.type.spec.tableRole})))?-1:(e=e.start(t.depth),t=t.node,e+(e=o.TableMap.get(t)).map[e.width*n.rowIndex+n.cellIndex])}},function(e,t){e.exports=a},function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.activeNode=s.parentBlockFormat=s.hasNode=s.addStyles=s.getBlockFormats=s.cleanTextBlockFormatting=s.formatBlockElements=s.blockNodes=s.changeTextBlock=void 0;var l=t(2),o=t(1),u=t(7),c=t(5),i=t(0);s.changeTextBlock=function(i,a,s,l){if(!s.isTextblock)return!1;i.selection.ranges.forEach(function(e){var o=i.steps.length,t=e.$from.pos,e=e.$to.pos;i.doc.nodesBetween(t,e,function(e,t){var n,r;if(e.eq(a)&&e.isTextblock&&!e.hasMarkup(s,l)&&function(e,t,n){e=e.resolve(t),t=e.index();return e.parent.canReplaceWith(t,t+1,n)}(i.doc,i.mapping.slice(o).map(t),s))return i.clearIncompatible(i.mapping.slice(o).map(t,1),s),n=(r=i.mapping.slice(o)).map(t,1),r=r.map(t+e.nodeSize,1),t=new c.Slice(c.Fragment.from(s.create(l,null,e.marks)),0,0),i.step(new u.ReplaceAroundStep(n,r,n+1,r-1,t,1,!0)),!1})})},s.blockNodes=function(e,t){var n=e.doc,e=e.selection,r=e.$from,o=e.ranges,a=(t=void 0===t?{blocksInSelection:!1}:t).blocksInSelection,s=[],t=e instanceof i.NodeSelection?e.node:void 0;return t?t.isBlock?(s.push(t),t.nodesBetween(0,t.content.size,function(e){e.isBlock&&s.push(e)})):!a&&r.parent&&r.parent.isBlock&&s.push(r.parent):o.forEach(function(e){var o=e.$from.pos,i=e.$to.pos;n.nodesBetween(o,i,function(e,t,n,r){e.isBlock&&(!a||o<=t&&t+e.content.size+2<=i)&&s.push(e)})}),s},s.formatBlockElements=function(a,r){return function(e,t){var n=s.blockNodes(e),o=e.schema.nodes,i=e.tr,e=(i.setMeta("commandName",r),i.setMeta("args",{value:a}),n.forEach(function(e){var t,n,r;e.type.isTextblock&&("p"===a?(n=(r=e.attrs).level,r=l.__rest(r,["level"]),s.changeTextBlock(i,e,o.paragraph,r)):/^h[1-6]$/i.test(a)?(n=parseInt(a.substr(1),10),s.changeTextBlock(i,e,o.heading,l.__assign(l.__assign({},e.attrs),{level:n}))):"blockquote"===a&&(n=(t=e.attrs).level,r=l.__rest(t,["level"]),s.changeTextBlock(i,e,o.blockquote,r)))}),i.docChanged);return e&&t(i.scrollIntoView()),e}},s.cleanTextBlockFormatting=function(i,e){var t=i.doc,n=i.selection,r=(e=void 0===e?{blocksInSelection:!0}:e).blocksInSelection,a=e.blockNodeType;s.blockNodes({doc:t,selection:n},{blocksInSelection:r}).filter(function(e){return e.isTextblock}).forEach(function(e){var t=e.attrs||{},n=t.style,n=void 0===n?"":n,r=t.class,r=void 0===r?"":r,t=l.__rest(t,["style","class"]),o=a||e.type;(n||r||o!==e.type)&&s.changeTextBlock(i,e,o,t)})},s.getBlockFormats=function(e){var t=s.blockNodes(e),n=e.schema.nodes,r=[];return t.forEach(function(e){e.type===n.paragraph?r.push("p"):e.type===n.heading?r.push("h"+e.attrs.level):e.type===n.blockquote&&n.blockquote.isTextblock&&r.push("blockquote")}),r},s.addStyles=function(e,t){var n,r=e.attrs.style;return r&&t.forEach(function(e){n={style:e.name,value:/^.+$/,newValue:e.value},n=o.changeStylesString(r,n),r=n.changed?n.style:r}),r=r||t.reduce(function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""},""),Object.assign({},e.attrs,{style:r||null})},s.hasNode=function(e,t){var n=e.selection,r=n.from,n=n.to,o=!1;return e.doc.nodesBetween(r,n,function(e){return!(o=o||e.type===t)}),o},s.parentBlockFormat=function(e){e=s.getBlockFormats(e);return 1===new Set(e).size?e[0]:null},s.activeNode=function(e){return{tag:s.parentBlockFormat(e)||""}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handles=t.directions=void 0,t.directions={southeast:{x:1,y:1},east:{x:1,y:0},south:{x:0,y:1},north:{x:0,y:-1},west:{x:-1,y:0},southwest:{x:-1,y:1},northwest:{x:-1,y:-1},northeast:{x:1,y:-1}},t.handles=Object.keys(t.directions)},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.marks=i.nodes=i.parseStrColgroup=void 0;function a(e){for(var t,n={},r=e.attributes,o=0;o<r.length;o++)n[(t=r[o]).name]=t.value;return n}function n(e){var t={};return e.forEach(function(e){t[e]={default:null}}),t}function r(){return n(["style","class","id"])}function s(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return 1}function l(e,n){void 0===n&&(n=[]);var t,r={};for(t in e)!function(t){t&&null!==e[t]&&!n.find(function(e){return e===t})&&(r[t]=e[t])}(t);return r}function o(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t}function u(n){var e;return(e={})[n]={default:null,getFromDOM:function(e){return e.getAttribute(n)},setDOMAttr:function(e,t){t[n]=e}},e}var c=t(2),d=t(5),f=t(6),p=t(9),g=t(4),m=["blockquote",0],y=["hr"],h=["pre",["code",0]],b=["ol",0],v=["ul",0],w=["li",0],t=c.__assign(c.__assign(c.__assign(c.__assign(c.__assign(c.__assign(c.__assign(c.__assign(c.__assign(c.__assign({link:{attrs:c.__assign(c.__assign({},r()),{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:a}],toDOM:function(e){return["a",l(e.attrs),0]}}},o("strong")),o("b")),o("em")),o("i")),o("del")),o("sub")),o("sup")),o("code")),{style:{attrs:c.__assign({},r()),parseDOM:[{tag:"span",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["span",l(e.attrs),0]:["span",0]}}}),o("u")),t=(i.marks=t,c.__assign(c.__assign(c.__assign(c.__assign(c.__assign({},u("style")),u("class")),u("id")),u("headers")),u("scope"))),k={doc:{content:"colgroup*"},col:{attrs:n(["id","class","style","span"]),parseDOM:[{getAttrs:a,tag:"col"}],toDOM:function(e){return["col",e.attrs]}},colgroup:{attrs:n(["id","class","style","span"]),content:"col*",parseDOM:[{getAttrs:a,tag:"colgroup"}],toDOM:function(e){return["colgroup",e.attrs,0]}},text:{inline:!0,group:"inline"}},_=new d.Schema({nodes:k,marks:{}}),d=(i.parseStrColgroup=function(e){e=p.domToPmDoc(p.htmlToFragment(e),_,{preserveWhitespace:!1});return p.pmDocToFragment(e).firstChild},f.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:t})),k=(d.table_row.attrs=c.__assign(c.__assign({},d.table_row.attrs),n([g.rowTypeAttr,"style","class","id"])),d.table_row.toDOM=function(e){return["tr",l(e.attrs),0]},d.table_row.parseDOM=[{tag:"tr",getAttrs:a}],d.table.attrs=c.__assign(c.__assign({},d.table.attrs),n(["style","class","id",g.colgroupAttr,g.resizableAttr])),d.table.toDOM=function(r){var e,t,n=s(r.attrs)?l(r.attrs,[g.colgroupAttr,g.resizableAttr]):{},o=null;return r.attrs[g.colgroupAttr]&&!function(){for(var e=!1,t=r.child(0),n=0;n<t.childCount;n++)if(t.child(n).attrs.colwidth){e=!0;break}return e}()&&(e=i.parseStrColgroup(r.attrs[g.colgroupAttr]))&&(t=Array.from(e.children).map(function(e){return["col",a(e)]}),o=["colgroup",a(e)].concat(t)),o?["table",n,o,["tbody",0]]:["table",n,["tbody",0]]},d.table.parseDOM=[{tag:"table",getAttrs:function(e){var t=a(e),e=Array.from(e.childNodes).find(function(e){return"COLGROUP"===e.nodeName});return e&&(t[g.colgroupAttr]=e.outerHTML),t}}],c.__assign({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:c.__assign({},r()),parseDOM:[{tag:"p",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["p",l(e.attrs),0]:["p",0]}},table_wrapper:{content:"(table_caption_external | table)+",group:"block",defining:!0,attrs:{table:{default:null},style:{default:null}},parseDOM:[{tag:"div[table]",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["div",l(e.attrs),0]:["div",0]}},table_caption_external:{content:"inline+",group:"block",attrs:c.__assign({caption:{default:null}},r()),parseDOM:[{tag:"div[caption]",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["div",l(e.attrs),0]:["div",0]}},div:{content:"block*",group:"block",attrs:c.__assign({},r()),parseDOM:[{tag:"div",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["div",l(e.attrs),0]:["div",0]}},blockquote:{attrs:c.__assign({},r()),content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["blockquote",l(e.attrs),0]:m}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return y}},heading:{attrs:c.__assign(c.__assign({},r()),{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:1})}},{tag:"h2",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:2})}},{tag:"h3",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:3})}},{tag:"h4",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:4})}},{tag:"h5",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:5})}},{tag:"h6",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{level:6})}}],toDOM:function(e){return s(e.attrs,"level")?["h"+e.attrs.level,l(e.attrs,["level"]),0]:["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:function(){return h}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:c.__assign({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},r()),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["img",l(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:c.__assign({},r()),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["br",l(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:c.__assign(c.__assign({},r()),{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return c.__assign(c.__assign({},a(e)),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?s(e.attrs,"order")?["ol",l(e.attrs,["order"]),0]:b:["ol",c.__assign(c.__assign({},l(e.attrs,["order"])),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:c.__assign({},r()),parseDOM:[{tag:"ul",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["ul",l(e.attrs),0]:v}},list_item:{content:"(paragraph | heading) block*",attrs:c.__assign({},r()),parseDOM:[{tag:"li",getAttrs:a}],toDOM:function(e){return s(e.attrs)?["li",l(e.attrs),0]:w},defining:!0}},d));i.nodes=k},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyInlineStyle=t.toggleInlineFormat=t.getInlineStyles=void 0;function p(f,p){return function(e,t,n){var r=e.selection,o=r.empty,i=r.ranges,r=e.selection instanceof g.TextSelection&&e.selection.$cursor;if(o&&!r||!y.markApplies(e.doc,i,f))return!1;var a=!1;if(t){var s=n||e.tr;if(r){o=e.storedMarks||r.marks();if(f.isInSet(o)){var n=w(o,p),e=o.find(function(e){return"style"===e.type.name}),l=b.__assign(b.__assign({},e?e.attrs:{}),{style:n.style||null});if(m.shallowEqual(e.attrs,l))return!1;t(s.removeStoredMark(f)),Object.keys(l).some(function(e){return null!==l[e]})&&t(s.addStoredMark(f.create(l))),a=!0}}else{for(var u=0;u<i.length;u++)var c=i[u],d=c.$from,c=c.$to,a=function(t,u,c,d,f){var p=f.create({style:d.style}),g=[],m=[],y=null,h=null;return t.doc.nodesBetween(u,c,function(e,t,n){if(e.isInline){var r=e.marks;if(!p.isInSet(r)&&n.type.allowsMarkType(p.type)){var o=Math.max(t,u),i=Math.min(t+e.nodeSize,c),n=w(r,d);if(n.changed||d.newValue){for(var t=n.changed?{style:n.style||null}:{style:[d.style]+": "+d.newValue+";"},e=f.isInSet(r)?r.find(function(e){return"style"===e.type.name}):null,a=e?b.__assign(b.__assign({},e.attrs),t):t,n=f.create(a),s=n.addToSet(r),l=0;l<r.length;l++)r[l].isInSet(s)||(y&&y.to===o&&y.mark.eq(r[l])?y.to=i:(y=new v.RemoveMarkStep(o,i,r[l]),g.push(y)));e=h&&h.to===o,t=e&&n.attrs.style===h.mark.attrs.style;e&&t?h.to=i:Object.keys(a).some(function(e){return null!==a[e]})&&(h=new v.AddMarkStep(o,i,n),m.push(h))}}}}),g.forEach(function(e){return t.step(e)}),m.forEach(function(e){return t.step(e)}),0<g.length+m.length}(s,d.pos,c.pos,p,f)||a;a&&(s.scrollIntoView(),t(s))}}return a}}var b=n(2),v=n(7),g=n(0),m=n(1),y=n(8),w=function(e,t){e=e.find(function(e){return"style"===e.type.name}),e=e&&e.attrs.style;return m.changeStylesString(e,t)};t.getInlineStyles=function(e,t){var n=e.schema.marks.style;return(n?y.selectionMarks(e,n):[]).map(function(e){return y.styleValue(e,t)}).filter(function(e){return null!==e})};t.toggleInlineFormat=function(c,d,f){return function(t,e){function n(){return u=!0}var r=t.schema.marks,o=c.altStyle,i=c.altMarks,i=void 0===i?[]:i,a=c.mark,s=d||t.tr,l=!1,u=!1,o=(o&&r.style&&(l=p(r.style,{style:o.name,value:o.value})(t,n,s)),b.__spreadArray([a],i).filter(function(e){return r[e]}).map(function(e){return y.hasMark(t,{mark:e})&&r[e]}).filter(function(e){return e}));return o.length?y.removeMarks(o,t,n,s):l||y.toggleMark(r[a],f,s)(t,n),u&&e(s),u}},t.applyInlineStyle=function(u,c){return function(e,t){var n,r=e.schema.marks.style,o={style:u.style,value:/^.+$/,newValue:u.value},i=e.tr,a=(c&&i.setMeta("commandName",c),i.setMeta("args",u),e.selection),s=a.empty,l=a.$cursor,a=a.ranges;return!(s&&!l||!r||!y.markApplies(e.doc,a,r))&&(l?(s=e.storedMarks||l.marks(),a={style:null},(l=r.isInSet(s)?s.find(function(e){return"style"===e.type.name}):null)&&l.attrs.style?(s=m.changeStylesString(l.attrs.style,o)).changed&&s.style&&(a.style=s.style):o.newValue&&(a.style=[o.style]+": "+o.newValue+";"),n=l?b.__assign(b.__assign({},l.attrs),a):a,Object.keys(n).some(function(e){return null!==n[e]})?t(i.addStoredMark(r.create(n))):t(i.removeStoredMark(r)),!0):p(r,o)(e,t,i))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertMsLists=void 0;function y(e){return/^MsoListParagraph/.test(e.className)}function h(e){return(e=(e=e.innerHTML).replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")}function b(e,t){return(e=document.createElement(e)).style.listStyleType=t,e}function o(e,n){var r=[];Array.from(e).forEach(function(e){var t;e.nodeType===Node.ELEMENT_NODE&&((t=e).getAttribute("datalist")?(r.push(e),n.add(r)):y(t)&&r.length?r.push(e):(r=[],"DIV"===t.nodeName?o(t.children,n):"TABLE"===t.nodeName&&Array.from(t.querySelectorAll("td,th")).forEach(function(e){o(e.children,n)})))})}function v(e){function t(e){return e.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")}var n,r=(r=e.innerHTML).replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g," ");return/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(r)?{tag:"ul",style:(n=t(h(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(n)?null:/^o/.test(n)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(r)?{tag:"ol",style:(n=t(h(e)),r=null,r=/^\d/.test(n)?r:(/^[a-z]/.test(n)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(n)?"roman":"alpha"))}:void 0}var w=n(9),r=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi;t.convertMsLists=function(e){var e=w.htmlToFragment(e.replace(r,function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e})),t=new Set;return o(e.children,t),t.forEach(function(e){for(var t,n,r,o,i,a,s,l=e,u=-1,c={},d=0;d<l.length;d++){var f,p,g=(f={datalist:(a=l[d]).getAttribute("datalist"),datalevel:a.getAttribute("datalevel")}).datalist,m=v(a);(s=m&&m.tag)?(p=f.datalevel||parseFloat(a.style.marginLeft||0),(f.datalevel||a.style.marginLeft)&&(f=s+g,c[p]||(c[p]={}),(!n||n<0)&&(n=p,r=g,o=(g=l.filter(function(e){return e.getAttribute("datalist")===String(r)}))[g.length-1],g=b(s,m&&m.style),a.parentNode.insertBefore(g,a),c[u=p][f]=g),i=o===a,g=c[p][f],(u<p||!g)&&(g=b(s,m&&m.style),c[p][f]=g,t.appendChild(g)),s=void 0,s=(m=a).nodeName.toLowerCase(),m.firstChild&&m.firstChild.nodeType===Node.COMMENT_NODE&&m.removeChild(m.firstChild),s=1===m.childNodes.length?m.firstChild.nodeType===Node.TEXT_NODE?h(m):m.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(m.removeChild(m.firstChild),3===m.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(m.firstChild.nodeValue)&&m.removeChild(m.firstChild),/^(&nbsp;|\s)+$/i.test(m.firstChild.innerHTML)&&m.removeChild(m.firstChild),"p"!==s?"<"+s+">"+m.innerHTML+"</"+s+">":m.innerHTML),m.parentNode.removeChild(m),(m=document.createElement("li")).appendChild(w.htmlToFragment(s)),t=m,g.appendChild(t),i?n=u=-1:u=p)):!t||i&&!y(a)||(a.style.marginLeft&&(a.style.marginLeft=""),a.style.marginLeft&&(a.style.margin=""),t.appendChild(a))}}),w.fragmentToHtml(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unlink=t.link=t.superscript=t.subscript=t.strikethrough=t.underline=t.italic=t.bold=void 0,t.bold={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},t.italic={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},t.underline={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},t.strikethrough={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},t.subscript={mark:"sub"},t.superscript={mark:"sup"},t.link={mark:"link"},t.unlink={mark:"link"}},function(e,t){e.exports=l},function(e,t){e.exports=d},function(e,h,t){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.splitListItemKeepMarks=h.toggleOrderedList=h.toggleUnorderedList=h.toggleList=h.listStyle=void 0;var r=t(2),b=t(5),v=t(0),w=t(7),f=t(11),p=t(15),o=t(23);function k(d){return function(e,t,n){var r,o,i,a,s,l,u,c;return!!n&&(r=(e=n.state).schema.nodes[d.listType],o=e.selection,c=o.$from,o=o.$to,i=c.node(-2),a=c.node(-3),s=e.doc,l=r,s=0===function(e,t,n){for(var r=Array(),o=function(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;t.node(t.depth);for(var r,o=t;1<=t.depth;)(r=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==n.indexOf(r.type.name)&&(o=t);return o}(e,t).depth,i=e.resolve(t.start(o));i.pos<=n.start(n.depth);){var a=Math.min(i.depth,o),s=i.node(a);if(s&&r.push(s),0===a)break;s=e.resolve(i.after(a));if(s.start(a)>=e.nodeSize-2)break;i=(s=s.depth!==i.depth?e.resolve(s.pos+2):s).depth?e.resolve(s.start(s.depth)):e.resolve(s.end(s.depth))}return r}(s,c,o).filter(function(e){return e.type!==l}).length,((i&&i.type===r||a&&a.type===r)&&s?g(d):(s||(g(d)(e,t),e=n.state),u=r,c=d.listAttrs,f.autoJoin(p.wrapInList(u,c=void 0===c?{}:c),function(e,t){return e.type===t.type&&e.type===u})))(e,t))}}function g(i){return function(n,e){var r=n.tr,t=n.selection,o=t.$from,t=t.$to;return r.doc.nodesBetween(o.pos,t.pos,function(e,t){if(e.isTextblock||"blockquote"===e.type.name||"div"===e.type.name)return!(!(t=(e=new v.NodeSelection(r.doc.resolve(r.mapping.map(t)))).$from.blockRange(e.$to))||e.$from.parent.type!==n.schema.nodes[i.listItem])&&null!=(e=t&&w.liftTarget(t))&&void r.lift(t,e)}),e&&e(r),!0}}var n=/list\-style\-type:\s?([\w-]+)/;h.listStyle=function(e){e=e.style||"",e=n.exec(e);return e&&e[1]||""},h.toggleList=function(e,t,n,r,o){var s,i,a,l,u,c,d,f=r.listType,p=r.listAttrs,p=void 0===p?{style:null}:p,g=e.selection,m=g.$from.node(g.$from.depth-2),y=g.$to.node(g.$to.depth-2);return m&&m.type.name===f&&h.listStyle(m.attrs)===h.listStyle(p)&&y&&y.type.name===f&&h.listStyle(y.attrs)===h.listStyle(p)?(m=n.state.schema.nodes,s={bulletList:m[r.bulletList],orderedList:m[r.orderedList],listItem:m[r.listItem]},f=function(e){for(var t,n=s.bulletList,r=s.orderedList,o=s.listItem,i=e.depth-1;0<i;i--){var a=e.node(i);if(a.type!==n&&a.type!==r||(t=i),a.type!==n&&a.type!==r&&a.type!==o)break}return t}(g.$to),i=e,a=g.$to.pos,y=g.$to.end(f),l=f,u=n.state.tr,c=(c=s.listItem)||i.schema.nodes.listItem,d=!1,u.doc.nodesBetween(a,y,function(e,t){if(!d&&e.type===c&&a<t){d=!0;for(var n=l+3;l+2<n;){var r=u.doc.resolve(u.mapping.map(t)),n=r.depth,o=u.doc.resolve(u.mapping.map(t+e.textContent.length)),r=new v.TextSelection(r,o);u=function(e,t,n,r){var o,i=r||e.schema.nodes.listItem,r=t.$from,e=t.$to;return!(t=r.blockRange(e,function(e){return e.childCount&&e.firstChild.type===i}))||t.depth<2||r.node(t.depth-1).type!==i?n:((o=t.end)<(e=e.end(t.depth))&&(n.step(new w.ReplaceAroundStep(o-1,e,o,e,new b.Slice(b.Fragment.from(i.create(void 0,t.parent.copy())),1,0),1,!0)),t=new b.NodeRange(n.doc.resolve(r.pos),n.doc.resolve(e),t.depth)),n.lift(t,w.liftTarget(t)).scrollIntoView())}(i,r,u,c)}}}),(p=function(e,t,n){var r=e.selection,o=r.from,r=r.to,i=e.schema.nodes,a=i.paragraph,s=i.heading,l=[];t.doc.nodesBetween(o,r,function(e,t){e.type!==a&&e.type!==s||l.push({node:e,pos:t})});for(var u=l.length-1;0<=u;u--){var c,d=l[u],f=t.doc.resolve(t.mapping.map(d.pos));0<f.depth&&(c=void 0,c=d.node.textContent&&0<d.node.textContent.length?t.doc.resolve(t.mapping.map(d.pos+d.node.textContent.length)):t.doc.resolve(t.mapping.map(d.pos+1)),d=f.blockRange(c))&&t.lift(d,function(e,t,n){for(var r=t.depth,o=e.nodes[n.bulletList],i=e.nodes[n.orderedList],a=e.nodes[n.listItem],s=t.depth;0<s;s--){var l=t.node(s);if(l.type!==o&&l.type!==i||(r=s),l.type!==o&&l.type!==i&&l.type!==a)break}return r-1}(e.schema,f,n))}return t}(e,p=u,r)).setMeta("commandName",o),t(p),!0):k(r)(e,t,n)},h.toggleUnorderedList=function(e,t,n){return h.toggleList(e,t,n,r.__assign({listType:o.bulletList.listType},o.bulletList.types))},h.toggleOrderedList=function(e,t,n){return h.toggleList(e,t,n,r.__assign({listType:o.orderedList.listType},o.orderedList.types))},h.splitListItemKeepMarks=function(e){return function(n,r){return p.splitListItem(e)(n,function(e){var t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();t&&e.ensureMarks(t),r(e)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.liftBlockquote=t.blockquote=void 0;var r=n(11);t.blockquote=function(e,t){return r.wrapIn(e.schema.nodes.blockquote)(e,t)},t.liftBlockquote=function(e,t){var n=e.selection,r=n.$from,n=n.$to,o=e.schema.nodes.blockquote,i=e.doc,a=-1,r=r.blockRange(n),n=(r&&i.nodesBetween(r.start,r.end,function(e,t,n,r){e.type===o&&(a=t)}),-1!==a);return t&&n&&t(e.tr.lift(r,i.resolve(a).depth)),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bulletList=t.orderedList=t.listsTypes=void 0;n=n(2);t.listsTypes={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},t.orderedList={listType:t.listsTypes.orderedList,types:n.__assign({},t.listsTypes)},t.bulletList={listType:t.listsTypes.bulletList,types:n.__assign({},t.listsTypes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outdentRules=t.indentRules=void 0;var r=n(2),n=n(23);t.indentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"}],listsTypes:r.__assign({},n.listsTypes)},t.outdentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"}],listsTypes:r.__assign({},n.listsTypes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pmDeleteColumn=t.pmAddColumnAfter=t.pmAddColumnBefore=t.pmAddRowAfter=t.pmAddRowBefore=t.deleteColumn=t.addColumnAfter=t.addColumnBefore=t.addRowAfter=t.addRowBefore=t.createTable=void 0;function u(e,t){var n,r;return e?(n=o.TableMap.get(e.node),t=g(t,i),(r=-1)!==(t=n.map.indexOf(t.pos-e.pos-1))?t%n.width:r):-1}function r(e,t,n){var r=u(t,e.selection),o=f.parseStrColgroup(t.node.attrs[d.colgroupAttr]);o.insertBefore(o.ownerDocument.createElement("col"),o.children[r+n]),e.setNodeMarkup(t.pos,null,c.__assign(c.__assign({},t.node.attrs),((r={})[d.colgroupAttr]=o.outerHTML,r)))}var c=n(2),o=n(6),d=(Object.defineProperty(t,"pmAddRowAfter",{enumerable:!0,get:function(){return o.addRowAfter}}),Object.defineProperty(t,"pmAddRowBefore",{enumerable:!0,get:function(){return o.addRowBefore}}),Object.defineProperty(t,"pmAddColumnBefore",{enumerable:!0,get:function(){return o.addColumnBefore}}),Object.defineProperty(t,"pmAddColumnAfter",{enumerable:!0,get:function(){return o.addColumnAfter}}),Object.defineProperty(t,"pmDeleteColumn",{enumerable:!0,get:function(){return o.deleteColumn}}),n(4)),f=n(14),p=(t.createTable=function(e,t,n){for(var r=e.table,o=e.table_row,i=e.table_cell,a=[],s=0;s<t+1;s++){for(var l=[],u=0;u<n+1;u++)l.push(i.createAndFill());a.push(o.createAndFill(void 0,l))}return r.createAndFill(void 0,a)},/^table$/),s=/^table_row$/,i=/^table_cell|table_header$/,g=function(e,t){for(var n=e.$head,r=n.depth;0<r;r--){var o=n.node(r);if(t.test(o.type.name))return{pos:n.before(r),node:o}}return null};t.addRowBefore=function(e,a){return o.addRowBefore(e,a&&function(e){var t=g(e.selection,s),n=g(e.selection,p);if(t&&n&&t.node.attrs[d.rowTypeAttr]){for(var r=0,o=0;o<n.node.nodeSize;o++)if(n.node.child(o).eq(t.node)){r=o;break}var i=n.node.child(r-1),i=t.pos-i.nodeSize;e.setNodeMarkup(i,void 0,((i={})[d.rowTypeAttr]=t.node.attrs[d.rowTypeAttr],i))}return a(e)})},t.addRowAfter=function(e,r){return o.addRowAfter(e,r&&function(e){var t,n=g(e.selection,s);return n&&n.node.attrs[d.rowTypeAttr]&&(t=n.pos+n.node.nodeSize,e.setNodeMarkup(t,void 0,((t={})[d.rowTypeAttr]=n.node.attrs[d.rowTypeAttr],t))),r(e)})};t.addColumnBefore=function(e,n){return o.addColumnBefore(e,n&&function(e){var t=g(e.selection,p);return t.node.attrs[d.colgroupAttr]&&r(e,t,-1),n(e)})},t.addColumnAfter=function(e,n){return o.addColumnAfter(e,n&&function(e){var t=g(e.selection,p);return t.node.attrs[d.colgroupAttr]&&r(e,t,1),n(e)})},t.deleteColumn=function(e,i){var a=g(e.selection,p),s=a&&a.node.attrs[d.colgroupAttr],l=u(a,e.selection);return o.deleteColumn(e,i&&function(e){return s&&(n={node:(t=e).doc.nodeAt(a.pos),pos:a.pos},r=l,(o=f.parseStrColgroup(n.node.attrs[d.colgroupAttr])).removeChild(o.children[r]),t.setNodeMarkup(n.pos,null,c.__assign(c.__assign({},n.node.attrs),((r={})[d.colgroupAttr]=o.outerHTML,r)))),i(e);var t,n,r,o})}},function(e,t){e.exports=f},function(e,t){e.exports=u},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listMarkersStyles=void 0;function b(e,t,n,r,o){var i,a,s=o.resolve(e),o=o.resolve(t),l=r.type.name;return!s.nodeBefore&&(i=s.node(s.depth),a=s.node(s.depth-1),i)&&a&&a.firstChild===i&&a.type.name===l?n+r.content.size<=t:!o.nodeAfter&&(i=o.node(o.depth),a=o.node(o.depth-1),i)&&a&&a.lastChild===i&&a.type.name===l?e<=n:e<=n&&n+r.content.size<=t}var v=n(2),r=n(0),w=n(7),k=n(1),o={listItem:"list_item",resetValues:{"font-size":"","font-family":"",color:""}};t.listMarkersStyles=function(h){return void 0===h&&(h=o),new r.Plugin({key:new r.PluginKey("list-markers-styles"),appendTransaction:function(e,t,n){var i,a,s,l,u,c,r,o,d,f,p,g,m,e=e.slice().pop(),y=e.getMeta("commandName");return"FontSize"===y||"FontName"===y||"ForeColor"===y?(o=h,d=(r=n).tr,f=r.doc,r=r.selection,p=r.from,g=r.to,m=e.getMeta("args"),f.nodesBetween(p,g,function(e,t){e.type.name===o.listItem&&b(p,g,t,e,f)&&d.setNodeMarkup(t,null,v.__assign(v.__assign({},e.attrs),{style:k.applyStyle(e.attrs.style,m.style,m.value)}))}),r=d.docChanged?d:void 0):"CleanFormatting"===y&&(y=e,e=n,i=h,a=Object.keys(i.resetValues),s=e.tr,l=e.doc,e=e.selection,u=e.from,c=e.to,l.nodesBetween(u,c,function(e,t,n){var r,o;e.type.name===i.listItem&&b(u,c,t,e,l)&&(r=e.attrs,o=k.parseStyle(e.attrs.style),a.forEach(function(e){o[e]&&(r=v.__assign(v.__assign({},r),{style:k.applyStyle(r.style,e,"")}))}),r!==e.attrs)&&s.setNodeMarkup(t,null,r)}),y.steps.forEach(function(e){var t,n,r;e instanceof w.RemoveMarkStep&&"style"===(t=e.mark).type.name&&t.attrs.style&&(n=(r=t.attrs.style.split(/\s*:\s*/))[0],r[1],r=s.doc.resolve(e.from),r=k.parentNode(r,function(e){return e.type.name===i.listItem}))&&k.parseStyle(r.node.attrs.style)[n]&&i.resetValues[n]&&(r=t.type.create({style:n+": "+i.resetValues[n]+";"}),s.addMark(e.from,e.to,r))}),r=s.docChanged?s:void 0),r&&r.setMeta("addToHistory",!0),r}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rowResizing=void 0;var r=n(0),f=n(6),p=n(3),g=n(10),c=n(1),o=(i.prototype.ignoreMutation=function(e){return"attributes"===e.type&&"style"===e.attributeName&&"TR"===e.target.nodeName},i);function i(){}t.rowResizing=function(){return new r.Plugin({key:g.tableRowResizeKey,state:{init:function(e,t){return this.spec.props.nodeViews[f.tableNodeTypes(t.schema).row.name]=function(e,t){return new o},new a(-1,null)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return!g.otherResizeHandle(g.tableRowResizeKey,e)&&-1<g.tableRowResizeKey.getState(e).activeHandle?{class:"resize-cursor-vertical"}:null},handleDOMEvents:{mousemove:function(e,t){return g.otherResizing(g.tableRowResizeKey,e.state)||(e=e,t=t,(s=g.tableRowResizeKey.getState(e.state)).dragging||(r=-1,(n=g.domCellAround(t.target))&&(o=g.cellIndexes(n),i=(a=n.getBoundingClientRect()).top,a=a.bottom,Math.abs(t.clientY-i)<=5&&0<o.rowIndex?(o.rowIndex-=n.rowSpan,r=g.edgeCell(e,t,o)):0<a-t.clientY&&a-t.clientY<=5&&(r=g.edgeCell(e,t,o))),r!==s.activeHandle&&l(e,r))),!1;var n,r,o,i,a,s},mouseleave:function(e){return e=e,-1<(t=g.tableRowResizeKey.getState(e.state)).activeHandle&&!t.dragging&&l(e,-1),!1;var t},mousedown:function(e,t){return u=e,e=t,-1!==(t=g.tableRowResizeKey.getState(u.state)).activeHandle&&!t.dragging&&(n=(r=u.state.doc.resolve(t.activeHandle)).parent,r=r.node(-1),n=c.parseStyle(n.attrs.style).height,a=c.parseStyle(r.attrs.style).height,r=n?parseFloat(n):0,n||(r=u.nodeDOM(t.activeHandle).offsetHeight),u.dispatch(u.state.tr.setMeta(g.tableRowResizeKey,{setDragging:{startY:e.clientY,startHeight:{rowHeight:r,tableHeight:a}}})),e.view.addEventListener("mouseup",s),e.view.addEventListener("mousemove",l),e.preventDefault(),!0);function s(e){e.view.removeEventListener("mouseup",s),e.view.removeEventListener("mousemove",l);var t,n,r,o,i,a,e=g.tableRowResizeKey.getState(u.state);e.dragging&&(t=u.state.tr.setMeta(g.tableRowResizeKey,{setDragging:null}),n=u,r=t,e=e.activeHandle,o=n.state.doc,e=o.resolve(e),i=e.parent,e=e.posAtIndex(0)-1,n=n.nodeDOM(e),a=n.ownerDocument&&n.ownerDocument.defaultView||window,n.style.height=a.getComputedStyle(n).height,r.setNodeMarkup(e,null,c.setNodeStyle(i.attrs,"height",n.style.height)),a=n&&n.closest("table"),(i=a&&a.style.height)&&(a=(n=o.resolve(e)).start(n.depth)-1,r.setNodeMarkup(a,null,c.setNodeStyle(n.parent.attrs,"height",i))),u.dispatch(t))}function l(e){if(!e.which)return s(e);var t,n,r=g.tableRowResizeKey.getState(u.state),o=(o=r.dragging,i=e.clientY-o.startY,o.startHeight.rowHeight+i),i=e.clientY-r.dragging.startY;e=u,r=r.activeHandle,o=o,i=i,t=a,e=e.nodeDOM(r),(r=e&&e.parentNode)&&(r.style.height=o+"px",e=r.ownerDocument&&r.ownerDocument.defaultView||window,r.style.height=e.getComputedStyle(r).height,o=r.closest("table"),r=parseFloat(t)+i+"px",n=o&&o.style.height)&&n!==r&&(o.style.height=parseFloat(t)+i+"px",o.style.height=e.getComputedStyle(o).height)}var u,n,a,r}},decorations:function(e){if(g.otherResizing(g.tableRowResizeKey,e))return p.DecorationSet.empty;var t=g.tableRowResizeKey.getState(e);if(-1<t.activeHandle){var t=t.activeHandle,n=[];if("number"!=typeof t)return p.DecorationSet.empty;for(var r=e.doc.resolve(t),o=r.node(-1),i=f.TableMap.get(o),a=r.start(-1),s=[],l=t-a,u=-1,c=0;c<i.height;c++)s.push(i.map.slice(c*i.width,c*i.width+i.width)),-1!==s[c].indexOf(l)&&(u=c);var d=[];return s[u].forEach(function(e,t){s[u+1]&&e===s[u+1][t]||d.push(e)}),d.forEach(function(e){var t=o.nodeAt(e),e=a+e+(t?t.nodeSize:0)-1,t=document.createElement("div");t.className="row-resize-handle",n.push(p.Decoration.widget(e,t))}),p.DecorationSet.create(e.doc,n)}},nodeViews:{}}})};s.prototype.apply=function(e){var t=this,n=e.getMeta(g.tableRowResizeKey);return n&&null!=n.setHandle?new s(n.setHandle,null):n&&void 0!==n.setDragging?new s(t.activeHandle,n.setDragging):(-1<t.activeHandle&&(n=e.mapping.map(t.activeHandle,-1),t=new s(n="row"===(e=e.doc.resolve(n)).parent.type.spec.tableRole&&e.nodeAfter?n:null,t.dragging)),t)};var a=s;function s(e,t){this.activeHandle=e,this.dragging=t}function l(e,t){var n=e.state.tr;n.setMeta("addToHistory",!1),n.setMeta(g.tableRowResizeKey,{setHandle:t}),e.dispatch(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableResizing=void 0;function r(h,e){var t,o,i,n,r,a,s,l,u,c,d,f,b,p=e.target.getAttribute(k.dataResizeDirTable);return!!p&&(n=_.tableResizeKey.getState(h.state),e.preventDefault(),(t=h.state.tr).setMeta(_.tableResizeKey,{setDragging:{startX:e.clientX,startY:e.clientY},activeHandle:p,nodePosition:n.nodePosition}),t.setMeta("addToHistory",!1),p=h,o=t,i=n.nodePosition,n=p.state.doc.nodeAt(i),p=_.getTable(p.nodeDOM(i)),r=A(p),a=r.width,s=r.height,l=r.colsWidth,u=r.rowsHeight,c=r.offsetWidth,r=r.offsetHeight,p=p.firstChild,d=!1,Array.from(p&&p.children||[]).forEach(function(e,t){e.style.width&&!/%$/.test(e.style.width)&&(e.style.width=100*l[t]/a+"%",d=!0)}),f=!1,n.forEach(function(e,t,n){var r=M.parseStyle(e.attrs.style).height;r&&!/%$/.test(r)&&(o.setNodeMarkup(i+t+1,null,M.setNodeStyle(e.attrs,"height",100*u[n]/s+"%")),f=!0)}),n=n.attrs,M.parseStyle(n.style).width!==c+"px"&&(n=M.setNodeStyle(n,"width",c+"px")),d&&(n[k.colgroupAttr]=p.outerHTML),f&&(n=M.setNodeStyle(n,"height",r+"px")),(d||f)&&o.setNodeMarkup(i,null,n),h.dispatch(t),(b=e.view||window).addEventListener("mouseup",function e(t){var n,r,o,i,a,s,l,u,c,d,f,p,g,m,y;b.removeEventListener("mouseup",e),b.removeEventListener("mousemove",v),n=h,g=_.tableResizeKey.getState(n.state),m=g.dragging,y=g.nodePosition,g=g.activeHandle,m&&(m=n.state.doc.nodeAt(y),u=_.getTable(n.nodeDOM(y)),i=A(u),m)&&(l=i.offsetWidth+"px",i=i.offsetHeight+"px",r=n.state.tr,m=m.attrs,o=M.parseStyle(m.style),S[g]&&u.style.width&&o.width!==l&&(m=M.setNodeStyle(m,"width",l)),O[g]&&u.style.height&&o.height!==i&&(m=M.setNodeStyle(m,"height",i)),a=r,s=y,l=m,u=(g=n).state.doc.nodeAt(s),g=_.getTable(g.nodeDOM(s)),c=(g.ownerDocument&&g.ownerDocument.defaultView||window).getComputedStyle,d=Array.from(g.rows),u.forEach(function(e,t,n){var r=M.parseStyle(e.attrs.style).height;r&&!/px$/.test(r)&&a.setNodeMarkup(s+t+1,null,M.setNodeStyle(e.attrs,"height",c(d[n]).height))}),u=g.firstChild,f=Array.from(u&&u.children||[]),p=!1,f.forEach(function(e,t){e.style.width&&!/px$/.test(e.style.width)&&(e.style.width=c(f[t]).width,p=!0)}),g=w.__assign({},l),p&&(g[k.colgroupAttr]=u.outerHTML),m=g,r.setNodeMarkup(y,null,m),r.setMeta("commandName","node-resize"),r.setMeta("args",m),r.setMeta(_.tableResizeKey,{setDragging:null,activeHandle:null,nodePosition:y}),/%/.test(M.parseStyle(m.style).width||"")||(o=r.doc.resolve(y),(i=M.parentNode(o,function(e){return"table_wrapper"===e.type.name}))&&/%/.test(M.parseStyle(i.node.attrs.style).width||"")&&(l=M.setNodeStyle(i.node.attrs,"width",""),u=o.start(i.depth)-1,r.setNodeMarkup(u,null,l))),n.dispatch(r))}),b.addEventListener("mousemove",v),!0);function v(e){var t,n,r,o,i,a,s,l,u;t=h,e=e,s=_.tableResizeKey.getState(t.state),l=s.dragging,u=s.nodePosition,s=s.activeHandle,u<0||!l||(u=(t=_.getTable(t.nodeDOM(u))).getBoundingClientRect(),n=g.directions[s],o=(e.clientX-l.startX)*n.x,r=(e.clientY-l.startY)*n.y,a=(t.ownerDocument&&t.ownerDocument.defaultView||window).getComputedStyle(t),i=/px/.test(a.width)?parseFloat(a.width):t.offsetWidth,a=/px/.test(a.height)?parseFloat(a.height):t.offsetHeight,o=n.x?o+i:u.width,i=n.y?r+a:u.height,l.startX=n.x?e.clientX:l.startX,l.startY=n.y?e.clientY:l.startY,S[s]&&(t.style.width=o+"px"),O[s]&&(t.style.height=i+"px"),/px/.test(t.style.width)&&(a=null==(r=t.parentNode)?void 0:r.parentNode)instanceof HTMLDivElement&&a.matches("div[table]")&&/%/.test(a.style.width)&&(a.style.width=""))}}var w=n(2),o=n(0),k=n(4),_=n(10),M=n(1),g=n(13),n={southeast:!0,southwest:!0,northwest:!0,northeast:!0},S=w.__assign({east:!0,west:!0},n),O=w.__assign({south:!0,north:!0},n),i=(a.prototype.apply=function(e){e=e.getMeta(_.tableResizeKey);return e?new a(e.activeHandle,e.setDragging,e.nodePosition):this},a),A=function(e){var t=Array.from(e.firstChild.children).map(function(e){return e.offsetWidth}),n=Array.from(e.rows).map(function(e){return e.offsetHeight}),r=t.reduce(function(e,t){return e+t},0),o=n.reduce(function(e,t){return e+t},0),i=e.offsetHeight;return{width:r,height:o,colsWidth:t,rowsHeight:n,offsetWidth:e.offsetWidth,offsetHeight:i}};function a(e,t,n){this.activeHandle=e,this.dragging=t,this.nodePosition=n}t.tableResizing=function(l){return void 0===l&&(l={node:"table"}),new o.Plugin({key:_.tableResizeKey,view:function(e){return{selectedNode:function(e,t){var n,r,e=e.selection;return e instanceof o.NodeSelection&&t===e.node.type&&e instanceof o.NodeSelection?{node:e.node,pos:e.from}:(r=(n=M.parentNode(e.$from,function(e){return e.type===t}))&&n.node)?{node:r,pos:e.$from.start(n.depth)-1}:null},update:function(e,t){var n,r,o=e.state,i=o.schema.nodes[l.node],a=this.selectedNode(o,i),s=this.selectedNode(t,i);!a&&s&&!t.doc.eq(e.state.doc)||!a&&!s||((n=o.tr).setMeta("addToHistory",!1),a&&s&&a.pos!==s.pos?(n.setMeta(_.tableResizeKey,{nodePosition:a.pos}),(r=n.doc.nodeAt(s.pos))&&r.type.name===i.name&&n.setNodeMarkup(s.pos,i,w.__assign(w.__assign({},s.node.attrs),((r={})[k.resizableAttr]=!1,r))),n.setNodeMarkup(a.pos,i,w.__assign(w.__assign({},a.node.attrs),((r={})[k.resizableAttr]=!0,r))),e.dispatch(n)):a&&s&&a.pos===s.pos&&!a.node.attrs[k.resizableAttr]&&!o.selection.eq(t.selection)?(n.setMeta(_.tableResizeKey,{nodePosition:a.pos}),e.dispatch(n.setNodeMarkup(a.pos,i,w.__assign(w.__assign({},a.node.attrs),((r={})[k.resizableAttr]=!0,r))))):a&&!s?(n.setMeta(_.tableResizeKey,{nodePosition:a.pos}),e.dispatch(n.setNodeMarkup(a.pos,i,w.__assign(w.__assign({},a.node.attrs),((o={})[k.resizableAttr]=!0,o))))):!a&&s&&(n.setMeta(_.tableResizeKey,{nodePosition:-1}),e.dispatch(n.setNodeMarkup(s.pos,i,w.__assign(w.__assign({},s.node.attrs),((t={})[k.resizableAttr]=!1,t))))))}}},state:{init:function(){return new i("",null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:r}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableWrapperView=t.TableView=void 0;var o=n(4),r=n(14),i=n(13),a=n(1);function s(e,t){this.node=e,this.view=t,this.dom=document.createElement("div"),this.dom.className=o.resizableWrap,this.table=this.dom.appendChild(document.createElement("table")),e.attrs[o.colgroupAttr]&&this.renderColgroup(e.attrs[o.colgroupAttr]);t=this.table.appendChild(document.createElement("tbody"));this.setAttributes(this.table,e.attrs),this.resizeHandles=i.handles.map(function(e){var t=document.createElement("span");return t.className=o.resizeHandle+" "+e,t.setAttribute(o.dataResizeDirTable,e),t}),this.contentDOM=t}function l(e,t){this.node=e,this.view=t,this.dom=document.createElement("div"),this.setAttributes(this.dom,e.attrs),this.contentDOM=this.dom}s.prototype.update=function(e){var t,n=this;return e.type===this.node.type&&(t=this.node,(this.node=e).attrs[o.resizableAttr]?this.resizeHandles.forEach(function(e){n.dom.appendChild(e)}):Array.from(this.dom.children).filter(function(e){return e.classList.contains(o.resizeHandle)}).forEach(function(e){return e.remove()}),this.setAttributes(this.table,e.attrs),t.attrs[o.colgroupAttr]!==e.attrs[o.colgroupAttr]&&this.renderColgroup(e.attrs[o.colgroupAttr]),!0)},s.prototype.ignoreMutation=function(e){return"attributes"===e.type&&(e.target===this.table||e.target.firstChild===this.table||this.colgroup&&this.colgroup.contains(e.target))},s.prototype.destroy=function(){this.node=void 0,this.view=void 0,this.table=void 0,this.colgroup=void 0,this.resizeHandles=void 0},s.prototype.renderColgroup=function(e){this.table&&this.table.firstChild&&"COLGROUP"===this.table.firstChild.nodeName&&this.table.removeChild(this.table.firstChild),e&&(this.colgroup=r.parseStrColgroup(e),this.table.insertBefore(this.colgroup,this.table.firstChild))},s.prototype.setAttributes=function(e,t){var n,r=[o.colgroupAttr,o.resizableAttr];for(n in t)n&&-1===r.indexOf(n)&&a.setAttribute(e,n,t[n]);/%$/.test(e.style.width)?(this.dom.style.width=e.style.width,e.style.width=""):this.dom.style.width=""},t.TableView=s,l.prototype.update=function(e){return e.type===this.node.type&&(this.node=e,this.setAttributes(this.dom,e.attrs),!0)},l.prototype.ignoreMutation=function(e){return"attributes"===e.type&&"style"===e.attributeName},l.prototype.destroy=function(){this.node=void 0,this.view=void 0},l.prototype.setAttributes=function(e,t){for(var n in t)n&&a.setAttribute(e,n,t[n]);var r;e.setAttribute("table",""),/%/.test(e.style.width)&&(r=((r=this.node&&this.node.lastChild)?a.parseStyle(r.attrs.style):{}).width||"")&&!/%/.test(r)&&(e.style.width="")},t.TableWrapperView=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.columnResizing=void 0;var b=n(2),r=n(0),v=n(6),f=n(3),w=n(4),o=n(32),k=n(1),_=n(10),i=(t.columnResizing=function(){return new r.Plugin({key:_.tableColumnResizeKey,state:{init:function(e,t){return new i(-1,null)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return!_.otherResizeHandle(_.tableColumnResizeKey,e)&&-1<_.tableColumnResizeKey.getState(e).activeHandle?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,t){return _.otherResizing(_.tableColumnResizeKey,e.state)||(e=e,t=t,(s=_.tableColumnResizeKey.getState(e.state)).dragging||(r=-1,(n=_.domCellAround(t.target))&&(o=_.cellIndexes(n),i=(a=n.getBoundingClientRect()).left,a=a.right,Math.abs(t.clientX-i)<=5&&0<o.cellIndex?(o.cellIndex-=n.colSpan,r=_.edgeCell(e,t,o)):0<a-t.clientX&&a-t.clientX<=5&&(r=_.edgeCell(e,t,o))),r!==s.activeHandle&&l(e,r))),!1;var n,r,o,i,a,s},mouseleave:function(e){return e=e,-1<(t=_.tableColumnResizeKey.getState(e.state)).activeHandle&&!t.dragging&&l(e,-1),!1;var t},mousedown:function(e,t){var s=e,e=t,l=25;if(-1===(t=_.tableColumnResizeKey.getState(s.state)).activeHandle||t.dragging)return!1;for(var n=s.state.doc.resolve(t.activeHandle),r=n.parent,o=n.index(),i=0,a=0;a<=o;a++)i+=r.child(a).attrs.colspan;var u=n.node(n.depth-1),t=(t=s.domAtPos(t.activeHandle)).node.childNodes[t.offset].closest("table");if(u.attrs[w.colgroupAttr])(p=(d=t.firstChild).children[i-1]).style.width||(p.style.width=p.offsetWidth+"px");else{for(var c=0,a=0;a<r.childCount;a++)c+=r.child(a).attrs.colspan;for(var d=document.createElement("colgroup"),f=new Array(c),a=0;a<c;a++)f[a]=document.createElement("col"),d.appendChild(f[a]);t.insertBefore(d,t.firstChild),(p=f[o]).style.width=p.offsetWidth+"px",g=b.__assign(b.__assign({},u.attrs),((g={})[w.colgroupAttr]="<colgroup>"+f.reduce(function(e,t){return e+t.outerHTML},"")+"</colgroup>",g))}var p,g,m=parseFloat(p.style.width),m=s.state.tr.setMeta(_.tableColumnResizeKey,{setDragging:{startX:e.clientX,startWidth:m}});function y(e){e.view.removeEventListener("mouseup",y),e.view.removeEventListener("mousemove",h);var t,n,r,o,i,a=_.tableColumnResizeKey.getState(s.state);a.dragging&&(t=s.state.tr,n=s,r=t,o=a.activeHandle,M(a.dragging,e,l),o=n.state.doc.resolve(o),a=o.node(-1),e=o.start(-1),o=o.posAtIndex(0,o.depth-1)-1,n=n.nodeDOM(e).closest("table"),e=a.attrs,a&&e[w.colgroupAttr]&&(a=n.firstChild,e=b.__assign(b.__assign({},e),((i={})[w.colgroupAttr]=a.outerHTML,i))),a=n.style.width,n&&a&&k.parseStyle(e.style).width!==a&&(e=k.setNodeStyle(e,"width",a)),r.setNodeMarkup(o,null,e),s.dispatch(t.setMeta(_.tableColumnResizeKey,{setDragging:null})))}function h(e){if(!e.which)return y(e);var t,n,r,o=_.tableColumnResizeKey.getState(s.state),e=M(o.dragging,e,l);t=s,o=o.activeHandle,e=e,o=t.state.doc.resolve(o),n=o.node(-1),r=o.start(-1),n=v.TableMap.get(n).colCount(o.pos-r)+o.nodeAfter.attrs.colspan-1,o=(t=r="TABLE"!==(r=t.domAtPos(o.start(-1)).node).nodeName?r.closest("table"):r).firstChild,(r=Array.from(o.children))[n].style.width=e+"px",t.style.width&&(o=r.map(function(e){return e.style.width})).every(Boolean)&&(n=o.reduce(function(e,t){return e+parseFloat(t)},0),t.style.width=n+"px")}return t.style.width||(t=Array.from(p.parentNode.children).map(function(e){return e.style.width})).every(Boolean)&&(p=t.reduce(function(e,t){return e+parseFloat(t)},0),g=k.setNodeStyle(g||u.attrs,"width",p+"px")),g&&(t=n.posAtIndex(0,n.depth-1)-1,m.setNodeMarkup(t,null,g)),s.dispatch(m),e.view.addEventListener("mouseup",y),e.view.addEventListener("mousemove",h),e.preventDefault(),!0}},decorations:function(e){if(!_.otherResizing(_.tableColumnResizeKey,e)){var t=_.tableColumnResizeKey.getState(e);if(-1<t.activeHandle){t=t.activeHandle;for(var n=[],r=e.doc.resolve(t),o=r.node(-1),i=v.TableMap.get(o),a=r.start(-1),s=[],l=t-a,u=-1,c=0;c<i.height;c++)s.push(i.map.slice(c*i.width,c*i.width+i.width)),-1===u&&(u=s[c].lastIndexOf(l));var d=[];return s.forEach(function(e){var t=e[u];e[u]!==e[u+1]&&d.push(t)}),d.forEach(function(e){var e=a+e+o.nodeAt(e).nodeSize-1,t=document.createElement("div");t.className="column-resize-handle",n.push(f.Decoration.widget(e,t))}),f.DecorationSet.create(e.doc,n);return}}return f.DecorationSet.empty},nodeViews:{table_wrapper:function(e,t){return new o.TableWrapperView(e,t)},table:function(e,t){return new o.TableView(e,t)}}}})},a.prototype.apply=function(e){var t=this,n=e.getMeta(_.tableColumnResizeKey);return n&&null!=n.setHandle?new a(n.setHandle,null):n&&void 0!==n.setDragging?new a(t.activeHandle,n.setDragging):(-1<t.activeHandle&&e.docChanged&&(n=e.mapping.map(t.activeHandle,-1),e=e.doc.resolve(n),t=new a(n=Boolean("row"===e.parent.type.spec.tableRole&&e.nodeAfter)?n:-1,t.dragging)),t)},a);function a(e,t){this.activeHandle=e,this.dragging=t}function M(e,t,n){t=t.clientX-e.startX;return Math.max(n,e.startWidth+t)}function l(e,t){var n=e.state.tr;n.setMeta("addToHistory",!1),n.setMeta(_.tableColumnResizeKey,{setHandle:t}),e.dispatch(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tableRowResizeKey=t.tableColumnResizeKey=t.tableResizeKey=t.tableResizing=void 0;var r=n(33),o=n(31),i=n(30),a=(t.tableResizing=function(){return[o.tableResizing(),r.columnResizing(),i.rowResizing()]},n(10));Object.defineProperty(t,"tableResizeKey",{enumerable:!0,get:function(){return a.tableResizeKey}}),Object.defineProperty(t,"tableColumnResizeKey",{enumerable:!0,get:function(){return a.tableColumnResizeKey}}),Object.defineProperty(t,"tableRowResizeKey",{enumerable:!0,get:function(){return a.tableRowResizeKey}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.caretColor=t.caretColorKey=void 0;var r=n(0),a=n(3),s=n(8);t.caretColorKey=new r.PluginKey("caret-color"),t.caretColor=function(){return new r.Plugin({key:t.caretColorKey,props:{decorations:function(e){var n,r,o,t=e.doc,i=e.selection,e=e.storedMarks;return i.empty&&e&&(n=s.styleValue((e||[]).find(function(e){return"style"===e.type.name}),{name:"color",value:/^.+$/}))?(r=i.$anchor.parent,o=[],t.descendants(function(e,t){e.eq(r)&&o.push(a.Decoration.node(t,t+e.nodeSize,{style:"caret-color: "+n}))}),a.DecorationSet.create(t,o)):a.DecorationSet.empty}}})}},function(e,f,t){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.imageResizing=f.imageResizeKey=void 0;var p=t(2),g=t(0),l=t(3),m=t(4),y=t(1),h=t(13),b=(f.imageResizeKey=new g.PluginKey("image-resize"),function(e,t,n){e.style[t]=n+"px"}),v=/[^\-]width:|[^\-]height:/,w=/^.+$/,n=(r.prototype.apply=function(e){e=e.getMeta(f.imageResizeKey);return e?new r(e.activeHandle,e.setDragging,e.rect,e.nodePosition):this},r);function r(e,t,n,r){this.activeHandle=e,this.dragging=t,this.rect=n,this.nodePosition=r}f.imageResizing=function(s){return void 0===s&&(s={node:"image",lockRatio:!0}),new g.Plugin({key:f.imageResizeKey,view:function(e){return{resize:function(){f.imageResizeKey.getState(e.state).rect&&e.dispatch(e.state.tr.setMeta("resize",!0))},get window(){return e.dom.ownerDocument&&e.dom.ownerDocument.defaultView},attachResize:function(){var e=this.window;e&&(e.removeEventListener("resize",this.resize),e.addEventListener("resize",this.resize))},removeResize:function(){var e=this.window;e&&e.removeEventListener("resize",this.resize)},update:function(e,t){var n=e.state,r=n.selection,o=n.schema.nodes[s.node],i=f.imageResizeKey.getState(n),a=i.rect;r instanceof g.NodeSelection&&o===r.node.type?(o={top:(o=e.nodeDOM(r.from)).offsetTop,left:o.offsetLeft,width:o.offsetWidth,height:o.offsetHeight},t.selection.eq(r)&&(!a||a.width===o.width&&a.height===o.height&&a.top===o.top&&a.left===o.left)||((t=n.tr).setMeta(f.imageResizeKey,{rect:o,nodePosition:r.from}),e.dispatch(t),this.attachResize())):a&&(i.rect=null,i.nodePosition=-1)},destroy:function(){this.removeResize()}}},state:{init:function(){return new n("",null,null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:function(e,t){return d=e,u=s,!!(t=(e=t).target.getAttribute(m.dataResizeDirImage))&&(n=f.imageResizeKey.getState(d.state),e.preventDefault(),(r=d.state.tr).setMeta(f.imageResizeKey,{setDragging:{startX:e.clientX,startY:e.clientY},activeHandle:t,rect:n.rect,nodePosition:n.nodePosition}),r.setMeta("addToHistory",!1),d.dispatch(r),e.view.addEventListener("mouseup",function e(t){var n,r,o,i,a,s,l,u;t.view.removeEventListener("mouseup",e),t.view.removeEventListener("mousemove",c),t=d,s=f.imageResizeKey.getState(t.state),l=s.rect,u=s.dragging,s=s.nodePosition,u&&l&&(u=t.state.selection)instanceof g.NodeSelection&&(a=u.node.attrs,n=l.width,r=l.height,o=void 0,o=v.test(a.style||"")?(i=y.changeStylesString(a.style,{style:"width",value:w,newValue:n+"px"}),i=y.changeStylesString(i.style||"",{style:"height",value:w,newValue:r+"px"}).style,p.__assign(p.__assign({},a),{style:i})):p.__assign(p.__assign({},a),{width:n,height:r}),i=u.node.type.createAndFill(o))&&((a=t.state.tr).replaceWith(s,s+1,i),a.setSelection(g.NodeSelection.create(a.doc,s)),a.setMeta("commandName","image-resize"),a.setMeta("args",o),a.setMeta(f.imageResizeKey,{setDragging:null,activeHandle:null,rect:l,nodePosition:s}),t.dispatch(a))}),e.view.addEventListener("mousemove",c),!0);function c(e){var t,n,r,o,i,a,s,l;t=d,e=e,n=u,i=f.imageResizeKey.getState(t.state),a=i.rect,s=i.dragging,l=i.nodePosition,i=i.activeHandle,s&&a&&(t=t.nodeDOM(l),l=h.directions[i],i=(e.clientX-s.startX)*l.x,r=(e.clientY-s.startY)*l.y,i=l.x?i+t.width:a.width,r=l.y?r+t.height:a.height,n.lockRatio&&l.x&&l.y?(n=Math.min(i/t.width,r/t.height),o=t.width*n,n=t.height*n,s.startX=e.clientX-(i-o)*l.x,s.startY=e.clientY-(r-n)*l.y,i=o,r=n):(s.startX=l.x?e.clientX:s.startX,s.startY=l.y?e.clientY:s.startY),b(t,"width",i),b(t,"height",r),a.top=t.offsetTop,a.left=t.offsetLeft,a.width=t.offsetWidth,a.height=t.offsetHeight,(o=t.nextElementSibling).style.width=a.width+"px",o.style.height=a.height+"px",o.style.top=a.top+"px",o.style.left=a.left+"px")}var d,u,n,r}},decorations:function(e){var t=e.selection,n=e.schema.nodes[s.node],r=f.imageResizeKey.getState(e).rect;if(r&&t instanceof g.NodeSelection&&n===t.node.type){var o=document.createElement("div");o.className="k-editor-resize-handles-wrapper",o.style.width=r.width+"px",o.style.height=r.height+"px",o.style.top=r.top+"px",o.style.left=r.left+"px";for(var i=0;i<h.handles.length;i++){var a=document.createElement("div");a.className=m.resizeHandle+" "+h.handles[i],a.setAttribute(m.dataResizeDirImage,h.handles[i]),o.appendChild(a)}return l.DecorationSet.create(e.doc,[l.Decoration.widget(e.selection.from+1,o)])}return l.DecorationSet.empty}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.textHighlight=t.textHighlightKey=void 0;var r=n(0),o=n(3);t.textHighlightKey=new r.PluginKey("highlight"),t.textHighlight=function(e){return void 0===e&&(e=t.textHighlightKey),new r.Plugin({key:e,state:{init:function(){return null},apply:function(e){return e.getMeta(this.spec.key)}},props:{decorations:function(e){var t=(this.spec.key.getState(e)||[]).map(function(e){return o.Decoration.inline(e.from,e.to,e.attrs)});return o.DecorationSet.create(e.doc,t)}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cspFix=void 0;function o(e,t){for(var n in t)n&&i.setAttribute(e,n,t[n])}var r=n(0),i=n(1),a=function(e,t,n,r){void 0===r&&(r=!1),this.node=e,this.view=t,this.dom=document.createElement(n),o(this.dom,e.attrs),this.contentDOM=r?void 0:this.dom},s=function(e,t,n){this.mark=e,this.view=t,this.dom=document.createElement("span"),o(this.dom,e.attrs),this.contentDOM=this.dom};t.cspFix=function(){return new r.Plugin({key:new r.PluginKey("csp-fix"),props:{nodeViews:{paragraph:function(e,t){return new a(e,t,"p")},div:function(e,t){return new a(e,t,"div")},table_wrapper:function(e,t){return new a(e,t,"div")},table_caption_external:function(e,t){return new a(e,t,"div")},table:function(e,t){return new a(e,t,"table")},table_row:function(e,t){return new a(e,t,"tr")},table_cell:function(e,t){return new a(e,t,"td")},table_header:function(e,t){return new a(e,t,"th")},image:function(e,t){return new a(e,t,"img",!0)}},markViews:{style:function(e,t,n){return new s(e,t,n)}}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spacesFix=void 0;var r=n(0),l=n(3),u=/\s+/g,c=/text-align/;t.spacesFix=function(){return new r.Plugin({key:new r.PluginKey("spaces-fix"),props:{decorations:function(e){var r,o,i,a,s=[],e=e.doc;return e.nodesBetween(0,e.content.size,function(e,t,n){if(e.type.isText&&c.test(n&&n.attrs&&n.attrs.style||""))for(o=u.exec(e.text||"");null!==o;){if(r=t+o.index,i=o[0].length,o.index+i<o.input.length)for(a=0;a<=i-1;a+=2)s.push(l.Decoration.inline(r+a,r+a+1,{style:"white-space: normal"}));o=u.exec(e.text||"")}}),l.DecorationSet.create(e,s)}}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placeholder=void 0;var o=n(0),i=n(3);t.placeholder=function(e){var r={class:"k-placeholder","data-placeholder":e};return new o.Plugin({key:new o.PluginKey("placeholder"),props:{decorations:function(e){var n,e=e.doc,t=e.content.firstChild;return 0===e.childCount||1===e.childCount&&t.inlineContent&&0===t.childCount?(n=[],e.descendants(function(e,t){n.push(i.Decoration.node(t,t+e.nodeSize,r))}),i.DecorationSet.create(e,n)):i.DecorationSet.empty}}})}},function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.replaceAll=s.replace=s.findAll=s.find=s.findAt=void 0;var l=t(2),v=t(0),o=(s.findAt=function(i,e,a,s,l){var u,c,d,f,p,g,m,y=[],h=[],t=e.matchCase,b=e.matchWord,n=e.useRegExp,e=e.text;return(e=n&&(/^\\$/.test(e)||/[^\\]\\$/.test(e))?e.substring(0,e.length-1):e)&&(t=t?"g":"gi",m=n?new RegExp(e,t):r(e,t),i.nodesBetween(a,s,function(e,o,t){if(l(y))return!1;e.inlineContent&&o+e.content.size>=a&&(h.length=0,e.nodesBetween(0,e.content.size,function(e,t,n,r){if(l(y))return!1;t=1+o+t;if(e.isText&&t+e.nodeSize>=a){if(p=e.text||"",g=n.childCount-1>=r+1&&n.child(r+1),h.push(a<=t?{text:p,start:t}:{text:p.slice(a-t),start:a}),!g||!g.isText)for(c=h.map(function(e){return e.text}).join(""),u=m.exec(c);null!==u&&(d=h[0].start+u.index,f=d+u[0].length,a<=d&&f<=s&&w(u,b)&&y.push(v.TextSelection.create(i,d,f)),!l(y));)u=m.exec(c)}else h.length=0}))})),y},s.find=function(e,t){var n=t.backward,r=t.matchCyclic,t=l.__rest(t,["backward","matchCyclic"]),o=n?function(){return!1}:function(e){return 0<e.length},i=e.doc,e=e.selection,a=[];return n?!(a=s.findAt(i,t,0,e.from,o)).length&&r&&(a=s.findAt(i,t,e.from,i.content.size,o)):!(a=s.findAt(i,t,e.to,i.content.size,o)).length&&r&&(a=s.findAt(i,t,0,e.to,o)),a.length?a[a.length-1]:null},s.findAll=function(e,t){return s.findAt(e,t,0,e.content.size,function(){return!1})},s.replace=function(e,t,n){var r=e.from,e=e.to;return n.insertText(t,r,e).setSelection(v.TextSelection.create(n.doc,r,r+t.length)),n},s.replaceAll=function(e,t,n){var r=s.findAll(e.doc,n);if(0===r.length)return null;for(var o=e.tr,i=r.length-1;0<=i;i--)o.insertText(t,r[i].from,r[i].to);return o},/^[\s0-9~`!@#$%\^&*\(\)_\-=+\\|\[\]{};:'"\?/.,<>]?$/),w=function(e,t){var n,r;return!t||(!0===t?(n=(r=e.input).charAt(e.index-1),r=r.charAt(e.index+e[0].length),o.test(n)&&o.test(r)):t(e))},r=function(e,t){e=e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(/\s/g,"\\s");return new RegExp(e,t)}},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.replaceImageSourcesFromRtf=a.pasteCleanup=a.sanitizeStyleAttr=a.sanitizeClassAttr=a.removeAttribute=a.removeTag=a.removeComments=a.sanitize=void 0;var n=t(17),r=t(9),s=(a.sanitize=function(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^[\s\S]+?<!--StartFragment-->\s*([\s\S]*?)\s*<!--EndFragment-->[\s\S]+$/,"$1")).replace(/<\/?[ovw]:[^>]*?>/gi,"")).replace(/<\\?\??xml[^>]*>/gi,"")).replace(/<(?:link|meta) [^>]+?>/gi,"")).replace(/<style[^>]*?>\s*<\/style>/gi,"")).replace(/<\/?st1:.*?>/gi,"")).replace(/<a name="[a-zA-Z0-9_]+">/gim,"")).replace(/v:shapes?="[^"]+"/gi,"")).replace(/<!\[if !supportLists\]>/gi,"")).replace(/<!\[endif\]>/gi,"")},a.removeComments=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},a.removeTag=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},a.removeAttribute=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},a.sanitizeClassAttr=function(e){/^Mso/.test(e.value)&&a.removeAttribute(e)},/\s*;\s*/),l=/\s*:\s*/;a.sanitizeStyleAttr=function(e){var t,n,r=e.value.split(s).filter(function(e){return Boolean(e)}),o=e.ownerElement.style,i="";r.forEach(function(e){e=e.split(l);t=e[0],n=e[1],void 0!==o[t]&&(i+=t+": "+n+"; ")}),(i=i.trim())?e.value=i:a.removeAttribute(e)},a.pasteCleanup=function(e,s){var t;return s.convertMsLists&&(e=n.convertMsLists(e)),s.stripTags&&(e=a.removeTag(e,s.stripTags)),s.attributes&&(t=r.htmlToFragment(e),Array.from(t.querySelectorAll("*")).forEach(function(e){var t=e,n=s.attributes;if(t.nodeType===Node.ELEMENT_NODE){for(var r=t.attributes.length-1;0<=r;r--){var o=t.attributes[r];n[o.name]?n[o.name](o):n["*"]&&n["*"](o)}if("SPAN"===t.nodeName&&0===t.attributes.length){var i=t,a=i.parentNode;if(a){for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}}}),e=r.fragmentToHtml(t)),e};var u=/<img\s[^>]*?src=(?:'|")file:\/[^'"]+(?:'|")[^>]*>/gi,c=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,d=new RegExp("(?:("+c.source+"))([\\da-fA-F\\s]+)\\}","g"),f=/[^\da-fA-F]/g,p=/file:\/[^'"]+\.(jpg|png|gif)/i,g=/\\(png|jpeg)blip\\/;a.replaceImageSourcesFromRtf=function(e,t){var n=e.match(u);if(!n||-1===t.types.indexOf("text/rtf"))return e;var t=t.getData("text/rtf"),r=[],o=t.match(d);if(!t||!o)return e;for(var i=0,a=o;i<a.length;i++){var s=a[i],l=g.exec(s);l&&(s=s.replace(c,"").replace(f,""),r.push("data:image/"+l[1]+";base64,"+function(e){for(var t=e.length,n=new Array(t/2),r=0;r<t;r+=2)n[r]=String.fromCharCode(parseInt(e.substring(r,r+2),16));return btoa(n.join(""))}(s)))}return n.length!==r.length?e:e.replace(u,function(e){var t=r.shift()||"";return e.replace(p,t)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildListKeymap=t.buildKeymap=void 0;var o=n(2),i=n(11),a=n(20),s=n(19),r=n(21),l=n(18),u=n(16),c=n(1),d="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.buildKeymap=function(e,t){var n,r={},t=t&&t.applyToWord||!1;return r["Mod-z"]=a.undo,r["Shift-Mod-z"]=a.redo,r.Backspace=i.chainCommands(s.undoInputRule,i.deleteSelection,i.joinBackward,i.selectNodeBackward),r.Enter=i.chainCommands(i.newlineInCode,i.createParagraphNear,i.liftEmptyBlock,i.splitBlockKeepMarks),d||(r["Mod-y"]=a.redo),e.marks.strong&&(r["Mod-b"]=c.expandToWordWrap(u.toggleInlineFormat,o.__assign(o.__assign({},l.bold),{applyToWord:t}))),e.marks.em&&(r["Mod-i"]=c.expandToWordWrap(u.toggleInlineFormat,o.__assign(o.__assign({},l.italic),{applyToWord:t}))),e.marks.u&&(r["Mod-u"]=c.expandToWordWrap(u.toggleInlineFormat,o.__assign(o.__assign({},l.underline),{applyToWord:t}))),e.nodes.hard_break&&(n=e.nodes.hard_break,t=i.chainCommands(i.exitCode,function(e,t){return t(e.tr.replaceSelectionWith(n.create()).scrollIntoView()),!0}),r["Shift-Enter"]=t),r},t.buildListKeymap=function(e){var t={};return e.nodes.list_item&&(t.Enter=r.splitListItemKeepMarks(e.nodes.list_item)),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.alignRemoveRules=t.alignJustifyRules=t.alignCenterRules=t.alignRightRules=t.alignLeftRules=void 0;function r(e,t){return{name:e,value:t}}t.alignLeftRules=[{node:"paragraph",style:[r("text-align","left")]},{node:"heading",style:[r("text-align","left")]},{node:"table_caption_external",style:[r("text-align","left")]}],t.alignRightRules=[{node:"paragraph",style:[r("text-align","right")]},{node:"heading",style:[r("text-align","right")]},{node:"table_caption_external",style:[r("text-align","right")]}],t.alignCenterRules=[{node:"paragraph",style:[r("text-align","center")]},{node:"heading",style:[r("text-align","center")]},{node:"table_caption_external",style:[r("text-align","center")]}],t.alignJustifyRules=[{node:"paragraph",style:[r("text-align","justify")]},{node:"heading",style:[r("text-align","justify")]},{node:"table_caption_external",style:[r("text-align","justify")]}],t.alignRemoveRules=[{node:"paragraph",style:[r("text-align","")]},{node:"heading",style:[r("text-align","")]},{node:"table_caption_external",style:[r("text-align","")]}]},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.outdent=i.indent=i.canBeIndented=i.canOutdentAsListItem=i.canIndentAsListItem=i.isIndented=i.indentBlocks=void 0;var a=t(15),s=t(24),l=t(12),o=t(1),u=t(22);i.indentBlocks=function(a,r,s){return function(e,t){var n=l.blockNodes(e),i=e.tr,e=(i.setMeta("commandName",r),n.forEach(function(t){var e,n,r,o;t.type.isTextblock&&(e=void 0,(n=a.find(function(e){return e.node===t.type.name}))&&(r={name:o="rtl"===s?n.rtlStyle:n.style,value:0<n.step?""+n.step+n.unit:""},t.attrs.style&&(o=new RegExp(o+":\\s?(\\d+)"+n.unit,"i"),o=t.attrs.style.match(o))&&(o=parseFloat(o[1])+n.step,r.value=""+(o=o<=0?"":o)+(o?n.unit:"")),e=l.addStyles(t,[r])),e)&&l.changeTextBlock(i,t,t.type,e)}),i.docChanged);return e&&t(i.scrollIntoView()),e}},i.isIndented=function(e,r,o){var i=!1;return l.blockNodes(e).forEach(function(t){var e,n;!i&&t.type.isTextblock&&t.attrs.style&&(e=r.find(function(e){return e.node===t.type.name}))&&(n="rtl"===o?e.rtlStyle:e.style,n=new RegExp(n+":\\s?\\d+"+e.unit,"i"),i=n.test(t.attrs.style))}),i},i.canIndentAsListItem=function(e,t){return a.sinkListItem(t)(e)},i.canOutdentAsListItem=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],r=e.schema.nodes[t.listsTypes.orderedList],t=e.schema.nodes[t.listsTypes.bulletList],r=!!o.findNthParentNodeOfType(r,2)(e.selection),t=!!o.findNthParentNodeOfType(t,2)(e.selection);return(r||t)&&a.liftListItem(n)(e)},i.canBeIndented=function(t,e){var n=t.schema.nodes,r=n[s.indentRules.listsTypes.listItem];return(i.isIndented(t,e.nodes)||s.indentRules.nodes.some(function(e){return n[e.node]&&l.hasNode(t,n[e.node])}))&&!l.hasNode(t,r)},i.indent=function(e,t){var n=e.schema.nodes[s.indentRules.listsTypes.listItem],r=i.canBeIndented(e,s.indentRules);i.canIndentAsListItem(e,n)?a.sinkListItem(n)(e,t):r&&i.indentBlocks(s.indentRules.nodes)(e,t)},i.outdent=function(e,t){var n=e.schema.nodes,r=n[s.outdentRules.listsTypes.listItem],o=i.canBeIndented(e,s.outdentRules);l.hasNode(e,n.blockquote)?u.liftBlockquote(e,t):i.canOutdentAsListItem(e,s.outdentRules)?a.liftListItem(r)(e,t):o&&i.indentBlocks(s.outdentRules.nodes)(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cleanFormatting=void 0;var a=n(12),s=n(8);t.cleanFormatting=function(i){return void 0===i&&(i={blocksInSelection:!0}),function(e,t){var n=e.tr,r=i.blocksInSelection,o=i.blockNodeType,e=(i.exceptMarks||[e.schema.marks.link]).filter(Boolean),e=(s.cleanMarks(n,{except:e}),a.cleanTextBlockFormatting(n,{blocksInSelection:r,blockNodeType:o}),n.docChanged);return e&&t&&t(n),e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAligned=t.alignBlocks=void 0;var a=n(12);t.alignBlocks=function(o,i){return function(e,t){var n=a.blockNodes(e),r=e.tr,e=(r.setMeta("commandName",i),n.forEach(function(t){var e;t.type.isTextblock&&(e=o.find(function(e){return e.node===t.type.name}))&&(e=a.addStyles(t,e.style),a.changeTextBlock(r,t,t.type,e))}),r.docChanged);return e&&t(r.scrollIntoView()),e}},t.isAligned=function(e,n){var r=!1;return a.blockNodes(e).forEach(function(t){var e;!r&&t.type.isTextblock&&t.attrs.style&&(e=n.find(function(e){return e.node===t.type.name}))&&(r=e.style.every(function(e){return!!e.value&&new RegExp(e.name+":\\s?"+e.value,"i").test(t.attrs.style)}))}),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertImage=void 0;var o=n(1);t.insertImage=function(r){return function(e,t){var n=e.schema.nodes.image.createAndFill(r);o.insertNode(n)(e,function(e){return t(e.setMeta("commandName","insertImage").setMeta("args",r))})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertText=void 0,t.insertText=function(n){return function(e,t){t(e.tr.insertText(n.text,n.from,n.to))}}},function(e,S,t){"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.applyLink=S.removeLink=void 0;var O=t(16),A=t(8),x=t(0);S.removeLink=function(f,p){return function(e,t){var n=e.selection.$cursor;if(n){for(var r,o=n.parent,i=n.index(),a=e.schema.marks[f.mark],s=o.child(i).marks.find(function(e){return e.type===a}),l=o.childCount,u=n.pos-n.textOffset,c=o.child(i).nodeSize,d=void 0,d=i-1;0<=d&&s.isInSet(o.child(d).marks);)c+=r=o.child(d).nodeSize,u-=r,--d;for(d=i+1;d<l&&s.isInSet(o.child(d).marks);)c+=o.child(d).nodeSize,d+=1;t(A.removeMark(p||e.tr,u,u+c,s))}else O.toggleInlineFormat(f,p)(e,t)}},S.applyLink=function(e,k){var _=e.mark,M=e.attrs;return void 0===k&&(k="link"),function(t,e){function n(){return s=!0}var r,o,i=t.schema.marks,a=t.tr,s=(k&&(a.setMeta("commandName",k),a.setMeta("args",M)),!1);if(function(e){e=A.selectionMarks(t,e);return 1===e.length&&e[0]&&e[0]}(i[_])){r={mark:_,attrs:M},o=a;var l=n,u=(d=(m=t).selection).$cursor,c=d.from,d=d.to,f=m.schema.marks[r.mark];if(u){for(var p,g=u.parent,m=u.index(),y=g.child(m).marks.find(function(e){return e.type===f}),h=g.childCount,b=u.pos-u.textOffset,v=g.child(m).nodeSize,w=void 0,w=m-1;0<=w&&y.isInSet(g.child(w).marks);)v+=p=g.child(w).nodeSize,b-=p,--w;for(w=m+1;w<h&&y.isInSet(g.child(w).marks);)v+=g.child(w).nodeSize,w+=1;o.removeMark(b,b+v,f),o.addMark(b,b+v,f.create(r.attrs)),l(o)}else o.doc.nodesBetween(c,d,function(e,t){e.isInline&&f.isInSet(e.marks)&&(o.removeMark(t,t+e.nodeSize,f),o.addMark(t,t+e.nodeSize,f.create(r.attrs)),l(o))})}else A.hasMark(u=t,{mark:_})&&(S.removeLink({mark:_,attrs:M},a)(t,n),u=x.EditorState.create({doc:a.doc,selection:a.selection})),(s?A.toggleMark(i[_],M,a):O.toggleInlineFormat({mark:_},a,M))(u,n);return s&&e(a),s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOMSerializer=void 0;var p=n(1);function g(e,t){this.nodes=e,this.marks=t}function r(e){var t,n,r={};for(t in e)e[t]&&(n=e[t].spec.toDOM)&&(r[t]=n);return r}function o(e){return e.document||window.document}g.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var r,o=t[0],i=o.indexOf(" "),a=(0<i&&(n=o.slice(0,i),o=o.slice(i+1)),n?e.createElementNS(n,o):e.createElement(o)),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s))for(var u in l=2,s)null!=s[u]&&(0<(i=u.indexOf(" "))?a.setAttributeNS(u.slice(0,i),u.slice(i+1),s[u]):p.setAttribute(a,u,s[u]));for(var c=l;c<t.length;c++){var d=t[c];if(0===d){if(c<t.length-1||l<c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}var d=g.renderSpec(e,d,n),f=d.dom,d=d.contentDOM;if(a.appendChild(f),d){if(r)throw new RangeError("Multiple content holes");r=d}}return{dom:a,contentDOM:r}},g.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new g(this.nodesFromSchema(e),this.marksFromSchema(e)))},g.nodesFromSchema=function(e){e=r(e.nodes);return e.text||(e.text=function(e){return e.text}),e},g.marksFromSchema=function(e){return r(e.marks)},g.prototype.serializeFragment=function(e,a,t){var s=this,l=(void 0===a&&(a={}),t=t||o(a).createDocumentFragment()),u=[];return e.forEach(function(e){if(u.length||e.marks.length){for(var t=0,n=0;t<u.length&&n<e.marks.length;){var r=e.marks[n];if(s.marks[r.type.name]){if(!r.eq(u[t][0])||!1===r.type.spec.spanning)break;t++}n++}for(;t<u.length;)l=u.pop()[1];for(;n<e.marks.length;){var o=e.marks[n++],i=s.serializeMark(o,e.isInline,a);i&&(u.push([o,l]),l.appendChild(i.dom),l=i.contentDOM||i.dom)}}l.appendChild(s.serializeNodeInner(e,a))}),t},g.prototype.serializeNode=function(e,t){for(var n=this.serializeNodeInner(e,t=void 0===t?{}:t),r=e.marks.length-1;0<=r;r--){var o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n},g.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var r=this.marks[e.type.name];return r&&g.renderSpec(o(n),r(e,t))},g.prototype.serializeNodeInner=function(e,t){var n=g.renderSpec(o(t),this.nodes[e.type.name](e)),r=n.dom,n=n.contentDOM;if(n){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r},t.DOMSerializer=g},function(L,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expandSelection=e.selectedLineTextOnly=e.getNodeFromSelection=e.getSelectionText=e.hasSameMarkup=e.liftBlockquote=e.blockquote=e.listStyle=e.toggleList=e.toggleUnorderedList=e.toggleOrderedList=e.indentBlocks=e.canBeIndented=e.isIndented=e.canOutdentAsListItem=e.outdent=e.canIndentAsListItem=e.indent=e.selectionMarks=e.cleanMarks=e.removeAllMarks=e.getActiveMarks=e.getMark=e.hasMark=e.cleanTextBlockFormatting=e.blockNodes=e.changeTextBlock=e.parentBlockFormat=e.getBlockFormats=e.formatBlockElements=e.activeNode=e.hasNode=e.cleanFormatting=e.isAligned=e.alignBlocks=e.insertImage=e.insertText=e.removeLink=e.applyLink=e.toggleInlineFormat=e.getInlineStyles=e.applyInlineStyle=e.fragmentToHtml=e.pmDocToFragment=e.domToPmDoc=e.htmlToFragment=e.trimWhitespace=e.parseContent=e.setHtml=e.getHtml=void 0,e.listMarkersStyles=e.tableRowResizeKey=e.tableColumnResizeKey=e.tableResizeKey=e.tableResizing=e.caretColorKey=e.caretColor=e.imageResizeKey=e.imageResizing=e.textHighlightKey=e.textHighlight=e.cspFix=e.spacesFix=e.placeholder=e.replaceAll=e.replace=e.findAll=e.findAt=e.find=e.convertMsLists=e.replaceImageSourcesFromRtf=e.removeAttribute=e.sanitizeStyleAttr=e.sanitizeClassAttr=e.pasteCleanup=e.removeTag=e.removeComments=e.sanitize=e.link=e.superscript=e.subscript=e.strikethrough=e.underline=e.italic=e.bold=e.buildListKeymap=e.buildKeymap=e.marks=e.nodes=e.outdentRules=e.indentRules=e.alignRemoveRules=e.alignJustifyRules=e.alignRightRules=e.alignCenterRules=e.alignLeftRules=e.indentHtml=e.insertNode=e.canInsert=e.expandToWordWrap=void 0,e.pmDeleteColumn=e.pmAddRowBefore=e.pmAddRowAfter=e.pmAddColumnAfter=e.pmAddColumnBefore=e.deleteColumn=e.addColumnAfter=e.addColumnBefore=e.addRowBefore=e.addRowAfter=e.createTable=e.nextCell=e.moveCellForward=e.removeColSpan=e.findCell=e.cellAround=e.updateColumnsOnResize=e.columnResizingPluginKey=e.columnResizing=e.columnIsHeader=e.colCount=e.addColumn=e.addColSpan=e.addRow=e.rowIsHeader=e.deleteRow=e.mergeCells=e.splitCellWithType=e.splitCell=e.toggleHeaderRow=e.toggleHeaderColumn=e.toggleHeaderCell=e.toggleHeader=e.goToNextCell=e.setCellAttr=e.selectionCell=e.selectedRect=e.CellSelection=e.inSameTable=e.deleteTable=e.isInTable=e.fixTablesKey=e.fixTables=e.tableNodes=e.tableNodeTypes=e.tableEditingKey=e.tableEditing=e.TableMap=void 0;var n,r=t(2),o=t(9),i=(Object.defineProperty(e,"getHtml",{enumerable:!0,get:function(){return o.getHtml}}),Object.defineProperty(e,"setHtml",{enumerable:!0,get:function(){return o.setHtml}}),Object.defineProperty(e,"parseContent",{enumerable:!0,get:function(){return o.parseContent}}),Object.defineProperty(e,"trimWhitespace",{enumerable:!0,get:function(){return o.trimWhitespace}}),Object.defineProperty(e,"htmlToFragment",{enumerable:!0,get:function(){return o.htmlToFragment}}),Object.defineProperty(e,"domToPmDoc",{enumerable:!0,get:function(){return o.domToPmDoc}}),Object.defineProperty(e,"pmDocToFragment",{enumerable:!0,get:function(){return o.pmDocToFragment}}),Object.defineProperty(e,"fragmentToHtml",{enumerable:!0,get:function(){return o.fragmentToHtml}}),t(16)),a=(Object.defineProperty(e,"applyInlineStyle",{enumerable:!0,get:function(){return i.applyInlineStyle}}),Object.defineProperty(e,"getInlineStyles",{enumerable:!0,get:function(){return i.getInlineStyles}}),Object.defineProperty(e,"toggleInlineFormat",{enumerable:!0,get:function(){return i.toggleInlineFormat}}),t(50)),s=(Object.defineProperty(e,"applyLink",{enumerable:!0,get:function(){return a.applyLink}}),Object.defineProperty(e,"removeLink",{enumerable:!0,get:function(){return a.removeLink}}),t(49)),l=(Object.defineProperty(e,"insertText",{enumerable:!0,get:function(){return s.insertText}}),t(48)),u=(Object.defineProperty(e,"insertImage",{enumerable:!0,get:function(){return l.insertImage}}),t(47)),c=(Object.defineProperty(e,"alignBlocks",{enumerable:!0,get:function(){return u.alignBlocks}}),Object.defineProperty(e,"isAligned",{enumerable:!0,get:function(){return u.isAligned}}),t(46)),d=(Object.defineProperty(e,"cleanFormatting",{enumerable:!0,get:function(){return c.cleanFormatting}}),t(12)),f=(Object.defineProperty(e,"hasNode",{enumerable:!0,get:function(){return d.hasNode}}),Object.defineProperty(e,"activeNode",{enumerable:!0,get:function(){return d.activeNode}}),Object.defineProperty(e,"formatBlockElements",{enumerable:!0,get:function(){return d.formatBlockElements}}),Object.defineProperty(e,"getBlockFormats",{enumerable:!0,get:function(){return d.getBlockFormats}}),Object.defineProperty(e,"parentBlockFormat",{enumerable:!0,get:function(){return d.parentBlockFormat}}),Object.defineProperty(e,"changeTextBlock",{enumerable:!0,get:function(){return d.changeTextBlock}}),Object.defineProperty(e,"blockNodes",{enumerable:!0,get:function(){return d.blockNodes}}),Object.defineProperty(e,"cleanTextBlockFormatting",{enumerable:!0,get:function(){return d.cleanTextBlockFormatting}}),t(8)),p=(Object.defineProperty(e,"hasMark",{enumerable:!0,get:function(){return f.hasMark}}),Object.defineProperty(e,"getMark",{enumerable:!0,get:function(){return f.getMark}}),Object.defineProperty(e,"getActiveMarks",{enumerable:!0,get:function(){return f.getActiveMarks}}),Object.defineProperty(e,"removeAllMarks",{enumerable:!0,get:function(){return f.removeAllMarks}}),Object.defineProperty(e,"cleanMarks",{enumerable:!0,get:function(){return f.cleanMarks}}),Object.defineProperty(e,"selectionMarks",{enumerable:!0,get:function(){return f.selectionMarks}}),t(45)),g=(Object.defineProperty(e,"indent",{enumerable:!0,get:function(){return p.indent}}),Object.defineProperty(e,"canIndentAsListItem",{enumerable:!0,get:function(){return p.canIndentAsListItem}}),Object.defineProperty(e,"outdent",{enumerable:!0,get:function(){return p.outdent}}),Object.defineProperty(e,"canOutdentAsListItem",{enumerable:!0,get:function(){return p.canOutdentAsListItem}}),Object.defineProperty(e,"isIndented",{enumerable:!0,get:function(){return p.isIndented}}),Object.defineProperty(e,"canBeIndented",{enumerable:!0,get:function(){return p.canBeIndented}}),Object.defineProperty(e,"indentBlocks",{enumerable:!0,get:function(){return p.indentBlocks}}),t(21)),m=(Object.defineProperty(e,"toggleOrderedList",{enumerable:!0,get:function(){return g.toggleOrderedList}}),Object.defineProperty(e,"toggleUnorderedList",{enumerable:!0,get:function(){return g.toggleUnorderedList}}),Object.defineProperty(e,"toggleList",{enumerable:!0,get:function(){return g.toggleList}}),Object.defineProperty(e,"listStyle",{enumerable:!0,get:function(){return g.listStyle}}),t(22)),y=(Object.defineProperty(e,"blockquote",{enumerable:!0,get:function(){return m.blockquote}}),Object.defineProperty(e,"liftBlockquote",{enumerable:!0,get:function(){return m.liftBlockquote}}),t(1)),h=(Object.defineProperty(e,"hasSameMarkup",{enumerable:!0,get:function(){return y.hasSameMarkup}}),Object.defineProperty(e,"getSelectionText",{enumerable:!0,get:function(){return y.getSelectionText}}),Object.defineProperty(e,"getNodeFromSelection",{enumerable:!0,get:function(){return y.getNodeFromSelection}}),Object.defineProperty(e,"selectedLineTextOnly",{enumerable:!0,get:function(){return y.selectedLineTextOnly}}),Object.defineProperty(e,"expandSelection",{enumerable:!0,get:function(){return y.expandSelection}}),Object.defineProperty(e,"expandToWordWrap",{enumerable:!0,get:function(){return y.expandToWordWrap}}),Object.defineProperty(e,"canInsert",{enumerable:!0,get:function(){return y.canInsert}}),Object.defineProperty(e,"insertNode",{enumerable:!0,get:function(){return y.insertNode}}),Object.defineProperty(e,"indentHtml",{enumerable:!0,get:function(){return y.indentHtml}}),t(44)),b=(Object.defineProperty(e,"alignLeftRules",{enumerable:!0,get:function(){return h.alignLeftRules}}),Object.defineProperty(e,"alignCenterRules",{enumerable:!0,get:function(){return h.alignCenterRules}}),Object.defineProperty(e,"alignRightRules",{enumerable:!0,get:function(){return h.alignRightRules}}),Object.defineProperty(e,"alignJustifyRules",{enumerable:!0,get:function(){return h.alignJustifyRules}}),Object.defineProperty(e,"alignRemoveRules",{enumerable:!0,get:function(){return h.alignRemoveRules}}),t(24)),v=(Object.defineProperty(e,"indentRules",{enumerable:!0,get:function(){return b.indentRules}}),Object.defineProperty(e,"outdentRules",{enumerable:!0,get:function(){return b.outdentRules}}),t(14)),w=(Object.defineProperty(e,"nodes",{enumerable:!0,get:function(){return v.nodes}}),Object.defineProperty(e,"marks",{enumerable:!0,get:function(){return v.marks}}),t(43)),k=(Object.defineProperty(e,"buildKeymap",{enumerable:!0,get:function(){return w.buildKeymap}}),Object.defineProperty(e,"buildListKeymap",{enumerable:!0,get:function(){return w.buildListKeymap}}),t(18)),_=(Object.defineProperty(e,"bold",{enumerable:!0,get:function(){return k.bold}}),Object.defineProperty(e,"italic",{enumerable:!0,get:function(){return k.italic}}),Object.defineProperty(e,"underline",{enumerable:!0,get:function(){return k.underline}}),Object.defineProperty(e,"strikethrough",{enumerable:!0,get:function(){return k.strikethrough}}),Object.defineProperty(e,"subscript",{enumerable:!0,get:function(){return k.subscript}}),Object.defineProperty(e,"superscript",{enumerable:!0,get:function(){return k.superscript}}),Object.defineProperty(e,"link",{enumerable:!0,get:function(){return k.link}}),t(42)),M=(Object.defineProperty(e,"sanitize",{enumerable:!0,get:function(){return _.sanitize}}),Object.defineProperty(e,"removeComments",{enumerable:!0,get:function(){return _.removeComments}}),Object.defineProperty(e,"removeTag",{enumerable:!0,get:function(){return _.removeTag}}),Object.defineProperty(e,"pasteCleanup",{enumerable:!0,get:function(){return _.pasteCleanup}}),Object.defineProperty(e,"sanitizeClassAttr",{enumerable:!0,get:function(){return _.sanitizeClassAttr}}),Object.defineProperty(e,"sanitizeStyleAttr",{enumerable:!0,get:function(){return _.sanitizeStyleAttr}}),Object.defineProperty(e,"removeAttribute",{enumerable:!0,get:function(){return _.removeAttribute}}),Object.defineProperty(e,"replaceImageSourcesFromRtf",{enumerable:!0,get:function(){return _.replaceImageSourcesFromRtf}}),t(17)),S=(Object.defineProperty(e,"convertMsLists",{enumerable:!0,get:function(){return M.convertMsLists}}),t(41)),O=(Object.defineProperty(e,"find",{enumerable:!0,get:function(){return S.find}}),Object.defineProperty(e,"findAt",{enumerable:!0,get:function(){return S.findAt}}),Object.defineProperty(e,"findAll",{enumerable:!0,get:function(){return S.findAll}}),Object.defineProperty(e,"replace",{enumerable:!0,get:function(){return S.replace}}),Object.defineProperty(e,"replaceAll",{enumerable:!0,get:function(){return S.replaceAll}}),t(40)),A=(Object.defineProperty(e,"placeholder",{enumerable:!0,get:function(){return O.placeholder}}),t(39)),x=(Object.defineProperty(e,"spacesFix",{enumerable:!0,get:function(){return A.spacesFix}}),t(38)),R=(Object.defineProperty(e,"cspFix",{enumerable:!0,get:function(){return x.cspFix}}),t(37)),C=(Object.defineProperty(e,"textHighlight",{enumerable:!0,get:function(){return R.textHighlight}}),Object.defineProperty(e,"textHighlightKey",{enumerable:!0,get:function(){return R.textHighlightKey}}),t(36)),T=(Object.defineProperty(e,"imageResizing",{enumerable:!0,get:function(){return C.imageResizing}}),Object.defineProperty(e,"imageResizeKey",{enumerable:!0,get:function(){return C.imageResizeKey}}),t(35)),z=(Object.defineProperty(e,"caretColor",{enumerable:!0,get:function(){return T.caretColor}}),Object.defineProperty(e,"caretColorKey",{enumerable:!0,get:function(){return T.caretColorKey}}),t(34)),P=(Object.defineProperty(e,"tableResizing",{enumerable:!0,get:function(){return z.tableResizing}}),Object.defineProperty(e,"tableResizeKey",{enumerable:!0,get:function(){return z.tableResizeKey}}),Object.defineProperty(e,"tableColumnResizeKey",{enumerable:!0,get:function(){return z.tableColumnResizeKey}}),Object.defineProperty(e,"tableRowResizeKey",{enumerable:!0,get:function(){return z.tableRowResizeKey}}),t(29)),j=(Object.defineProperty(e,"listMarkersStyles",{enumerable:!0,get:function(){return P.listMarkersStyles}}),r.__exportStar(t(11),e),r.__exportStar(t(28),e),r.__exportStar(t(27),e),r.__exportStar(t(20),e),r.__exportStar(t(19),e),r.__exportStar(t(26),e),r.__exportStar(t(5),e),r.__exportStar(t(15),e),r.__exportStar(t(0),e),t(6)),N=(Object.defineProperty(e,"TableMap",{enumerable:!0,get:function(){return j.TableMap}}),Object.defineProperty(e,"tableEditing",{enumerable:!0,get:function(){return j.tableEditing}}),Object.defineProperty(e,"tableEditingKey",{enumerable:!0,get:function(){return j.tableEditingKey}}),Object.defineProperty(e,"tableNodeTypes",{enumerable:!0,get:function(){return j.tableNodeTypes}}),Object.defineProperty(e,"tableNodes",{enumerable:!0,get:function(){return j.tableNodes}}),Object.defineProperty(e,"fixTables",{enumerable:!0,get:function(){return j.fixTables}}),Object.defineProperty(e,"fixTablesKey",{enumerable:!0,get:function(){return j.fixTablesKey}}),Object.defineProperty(e,"isInTable",{enumerable:!0,get:function(){return j.isInTable}}),Object.defineProperty(e,"deleteTable",{enumerable:!0,get:function(){return j.deleteTable}}),Object.defineProperty(e,"inSameTable",{enumerable:!0,get:function(){return j.inSameTable}}),Object.defineProperty(e,"CellSelection",{enumerable:!0,get:function(){return j.CellSelection}}),Object.defineProperty(e,"selectedRect",{enumerable:!0,get:function(){return j.selectedRect}}),Object.defineProperty(e,"selectionCell",{enumerable:!0,get:function(){return j.selectionCell}}),Object.defineProperty(e,"setCellAttr",{enumerable:!0,get:function(){return j.setCellAttr}}),Object.defineProperty(e,"goToNextCell",{enumerable:!0,get:function(){return j.goToNextCell}}),Object.defineProperty(e,"toggleHeader",{enumerable:!0,get:function(){return j.toggleHeader}}),Object.defineProperty(e,"toggleHeaderCell",{enumerable:!0,get:function(){return j.toggleHeaderCell}}),Object.defineProperty(e,"toggleHeaderColumn",{enumerable:!0,get:function(){return j.toggleHeaderColumn}}),Object.defineProperty(e,"toggleHeaderRow",{enumerable:!0,get:function(){return j.toggleHeaderRow}}),Object.defineProperty(e,"splitCell",{enumerable:!0,get:function(){return j.splitCell}}),Object.defineProperty(e,"splitCellWithType",{enumerable:!0,get:function(){return j.splitCellWithType}}),Object.defineProperty(e,"mergeCells",{enumerable:!0,get:function(){return j.mergeCells}}),Object.defineProperty(e,"deleteRow",{enumerable:!0,get:function(){return j.deleteRow}}),Object.defineProperty(e,"rowIsHeader",{enumerable:!0,get:function(){return j.rowIsHeader}}),Object.defineProperty(e,"addRow",{enumerable:!0,get:function(){return j.addRow}}),Object.defineProperty(e,"addColSpan",{enumerable:!0,get:function(){return j.addColSpan}}),Object.defineProperty(e,"addColumn",{enumerable:!0,get:function(){return j.addColumn}}),Object.defineProperty(e,"colCount",{enumerable:!0,get:function(){return j.colCount}}),Object.defineProperty(e,"columnIsHeader",{enumerable:!0,get:function(){return j.columnIsHeader}}),Object.defineProperty(e,"columnResizing",{enumerable:!0,get:function(){return j.columnResizing}}),Object.defineProperty(e,"columnResizingPluginKey",{enumerable:!0,get:function(){return j.columnResizingPluginKey}}),Object.defineProperty(e,"updateColumnsOnResize",{enumerable:!0,get:function(){return j.updateColumnsOnResize}}),Object.defineProperty(e,"cellAround",{enumerable:!0,get:function(){return j.cellAround}}),Object.defineProperty(e,"findCell",{enumerable:!0,get:function(){return j.findCell}}),Object.defineProperty(e,"removeColSpan",{enumerable:!0,get:function(){return j.removeColSpan}}),Object.defineProperty(e,"moveCellForward",{enumerable:!0,get:function(){return j.moveCellForward}}),Object.defineProperty(e,"nextCell",{enumerable:!0,get:function(){return j.nextCell}}),r.__exportStar(t(7),e),r.__exportStar(t(3),e),t(25)),I=(Object.defineProperty(e,"createTable",{enumerable:!0,get:function(){return N.createTable}}),Object.defineProperty(e,"addRowAfter",{enumerable:!0,get:function(){return N.addRowAfter}}),Object.defineProperty(e,"addRowBefore",{enumerable:!0,get:function(){return N.addRowBefore}}),Object.defineProperty(e,"addColumnBefore",{enumerable:!0,get:function(){return N.addColumnBefore}}),Object.defineProperty(e,"addColumnAfter",{enumerable:!0,get:function(){return N.addColumnAfter}}),Object.defineProperty(e,"deleteColumn",{enumerable:!0,get:function(){return N.deleteColumn}}),Object.defineProperty(e,"pmAddColumnBefore",{enumerable:!0,get:function(){return N.pmAddColumnBefore}}),Object.defineProperty(e,"pmAddColumnAfter",{enumerable:!0,get:function(){return N.pmAddColumnAfter}}),Object.defineProperty(e,"pmAddRowAfter",{enumerable:!0,get:function(){return N.pmAddRowAfter}}),Object.defineProperty(e,"pmAddRowBefore",{enumerable:!0,get:function(){return N.pmAddRowBefore}}),Object.defineProperty(e,"pmDeleteColumn",{enumerable:!0,get:function(){return N.pmDeleteColumn}}),e);for(n in I)D(n,I[n])}],o={},r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=52)}}});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-editor-common",
3
3
  "description": "Kendo UI TypeScript package exporting functions for Editor component",
4
- "version": "1.11.1-dev.202312111303",
4
+ "version": "1.11.1",
5
5
  "keywords": [
6
6
  "Kendo UI"
7
7
  ],