PageSourceSearch

https://thenauticalacademy.net/static/js/860.6ff18543.chunk.js

js thenauticalacademy.net collected 2026-10-06 09:39:35 UTC 605,302 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunksovren_frontend||=[]).push([[860],{99475(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatting=t.complex=t.basic=void 0,t.basic=[["font","fontSize"],["fontColor"],["horizontalRule"],["link","image"]],t.complex=[["undo","redo"],["font","fontSize","formatBlock"],["bold","underline","italic","strike","subscript","superscript"],["removeFormat"],"/",["fontColor","hiliteColor"],["outdent","indent"],["align","horizontalRule","list","table"],["link","image","video"],["fullScreen","showBlocks","codeView"],["preview","print"],["save","template"]],t.formatting=[["undo","redo"],["bold","underline","italic","strike","subscript","superscript"],["removeFormat"],["outdent","indent"],["fullScreen","showBlocks","codeView"],["preview","print"]]},41325(e,t,i){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var l in t=arguments[i])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},n.apply(this,arguments)},l=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var l=Object.getOwnPropertyDescriptor(t,i);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,l)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&l(t,e,i);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=s(i(9950)),c=a(i(59286)),d=a(i(19378)),u=a(i(71036)),h=i(10825);t.default=function(e){var t=e.name,i=e.lang,l=e.setOptions,o=void 0===l?{}:l,s=e.placeholder,a=e.width,g=void 0===a?"100%":a,p=e.height,m=e.defaultValue,f=e.setContents,b=e.setDefaultStyle,_=e.getSunEditorInstance,v=e.appendContents,y=e.setAllPlugins,w=void 0===y||y,C=e.disable,x=void 0!==C&&C,S=e.readOnly,k=void 0!==S&&S,E=e.hide,L=void 0!==E&&E,N=e.hideToolbar,T=void 0!==N&&N,z=e.disableToolbar,B=void 0!==z&&z,A=e.onChange,R=e.autoFocus,I=e.onBlur,M=e.onLoad,H=(0,r.useRef)(null),O=(0,r.useRef)(null),D=(0,r.useRef)(!0);return(0,r.useEffect)(function(){var l,a=n(n({},o),{lang:i?(0,u.default)(i):o.lang,width:null!==g&&void 0!==g?g:o.width,placeholder:null!==s&&void 0!==s?s:o.placeholder,plugins:null!==(l=o.plugins)&&void 0!==l?l:w?c.default:void 0,height:null!==p&&void 0!==p?p:o.height,value:null!==m&&void 0!==m?m:o.value,defaultStyle:null!==b&&void 0!==b?b:o.defaultStyle});return t&&a.value&&(H.current.value=a.value),O.current=d.default.create(H.current,a),_&&_(O.current),O.current.onload=function(e,t){return t||(f&&(O.current.setContents(f),O.current.core.focusEdge(null)),v&&O.current.appendContents(v),O.current.util.isIE&&O.current.core._createDefaultRange(),x&&O.current.disable(),k&&O.current.readOnly(!0),L&&O.current.hide(),T&&O.current.toolbar.hide(),B&&O.current.toolbar.disable(),!1===R?O.current.core.context.element.wysiwyg.blur():R&&O.current.core.context.element.wysiwyg.focus()),null===M||void 0===M?void 0:M(t)},O.current.onChange=function(e){t&&H.current&&(H.current.value=e),A&&A(e)},I&&(O.current.onBlur=function(e){return I(e,O.current.getContents(!0))}),h.uploadBeforeEvents.forEach(function(t){var i=e[t];O.current&&i&&(O.current[t]=function(e,t,n,l){return i(e,t,l)})}),h.events.forEach(function(t){var i=e[t];i&&O.current&&(O.current[t]=i)}),function(){O.current&&O.current.destroy(),O.current=null}},[]),(0,r.useEffect)(function(){var e;D.current||null===(e=O.current)||void 0===e||e.setOptions({lang:(0,u.default)(i)})},[i]),(0,r.useEffect)(function(){var e;D.current||null===(e=O.current)||void 0===e||e.setOptions({placeholder:s,height:p,width:g})},[s,p,g]),(0,r.useEffect)(function(){var e;b&&!D.current&&(null===(e=O.current)||void 0===e||e.setDefaultStyle(b))},[b]),(0,r.useEffect)(function(){var e,t;D.current||void 0===f||(null===(e=O.current)||void 0===e?void 0:e.core.hasFocus)||null===(t=O.current)||void 0===t||t.setContents(f)},[f]),(0,r.useEffect)(function(){var e,t,i;D.current||void 0===v||(null===(e=O.current)||void 0===e?void 0:e.core.hasFocus)||(null===(t=O.current)||void 0===t||t.appendContents(v),null===(i=O.current)||void 0===i||i.core.focusEdge(null))},[v]),(0,r.useEffect)(function(){var e,t,i,n,l,o,s,a,r;D.current||(null===(e=O.current)||void 0===e||e.readOnly(k),T?null===(t=O.current)||void 0===t||t.toolbar.hide():null===(i=O.current)||void 0===i||i.toolbar.show(),B?null===(n=O.current)||void 0===n||n.toolbar.disable():null===(l=O.current)||void 0===l||l.toolbar.enable(),x?null===(o=O.current)||void 0===o||o.disable():null===(s=O.current)||void 0===s||s.enable(),L?null===(a=O.current)||void 0===a||a.hide():null===(r=O.current)||void 0===r||r.show())},[x,T,B,L,k]),(0,r.useEffect)(function(){D.current=!1}
1,[]),r.default.createElement("textarea",n({style:{visibility:"hidden"},ref:H},{name:t}))}},10825(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.uploadBeforeEvents=t.events=void 0,t.events=["onMouseDown","onScroll","onInput","onClick","onKeyUp","onKeyDown","onFocus","onImageUpload","onAudioUpload","onVideoUpload","onImageUploadError","onVideoUploadError","onAudioUploadError","onSave","onSetToolbarButtons","imageUploadHandler","toggleCodeView","toggleFullScreen","showInline","showController","onCopy","onCut","onDrop","onPaste"],t.uploadBeforeEvents=["onImageUploadBefore","onVideoUploadBefore","onAudioUploadBefore"]},63029(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var l=Object.getOwnPropertyDescriptor(t,i);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,l)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&n(t,e,i);return l(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.buttonList=void 0;var a=s(i(41325));t.buttonList=o(i(99475)),t.default=a.default},71036(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){switch(typeof e){case"object":return e;case"string":return i(32224)("./".concat(e,".js"));default:return}}},99e3(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"ckb",toolbar:{default:"\u0628\u0646\u0647\u200c\u0695\u0647\u200c\u062a",save:"\u067e\u0627\u0634\u0647\u200c\u0643\u0647\u200c\u0648\u062a\u0643\u0631\u062f\u0646",font:"\u0641\u06c6\u0646\u062a",formats:"Formats",fontSize:"\u0642\u0647\u200c\u0628\u0627\u0631\u0647\u200c",bold:"\u062a\u06c6\u062e\u0643\u0631\u062f\u0646",underline:"\u0647\u06ce\u06b5 \u0628\u0647\u200c\u0698\u06ce\u0631\u062f\u0627 \u0628\u06ce\u0646\u0647\u200c",italic:"\u0644\u0627\u0631",strike:"\u0647\u06ce\u06b5 \u0628\u0647\u200c\u0646\u0627\u0648\u062f\u0627 \u0628\u06ce\u0646\u0647\u200c",subscript:"\u0698\u06ce\u0631\u0633\u06a9\u0631\u06cc\u067e\u062a",superscript:"\u0633\u06d5\u0631\u0646\u0648\u0648\u0633",removeFormat:"\u0644\u0627\u0628\u0631\u062f\u0646\u06cc \u0641\u06c6\u0631\u0645\u0627\u062a",fontColor:"\u0631\u0647\u200c\u0646\u06af\u06cc \u0641\u06c6\u0646\u062a",hiliteColor:"\u0631\u0647\u200c\u0646\u06af\u06cc \u062f\u06cc\u0627\u0631\u0643\u0631\u0627\u0648",indent:"\u0628\u06c6\u0634\u0627\u06cc\u06cc \u0628\u06d5\u062c\u06ce\u0647\u06ce\u0634\u062a\u0646",outdent:"\u0644\u0627\u0628\u0631\u062f\u0646\u06cc \u0628\u06c6\u0634\u0627\u06cc\u06cc",align:"\u0626\u0627\u0631\u0627\u0633\u062a\u0647\u200c",alignLeft:"\u0644\u0627\u06cc \u0686\u0647\u200c\u067e",alignRight:"\u0644\u0627\u06cc \u0631\u0627\u0633\u062a",alignCenter:"\u0646\u0627\u0648\u0647\u200c\u0646\u062f",alignJustify:"\u0628\u0647\u200c\u0631\u06ce\u0643\u06cc \u062f\u0627\u0628\u0647\u200c\u0634 \u0628\u0643\u0647\u200c",list:"\u0644\u06cc\u0633\u062a",orderList:"\u0644\u06cc\u0633\u062a\u06cc \u0631\u06cc\u0632\u0643\u0631\u0627\u0648",unorderList:"\u0644\u06cc\u0633\u062a\u06cc \u0631\u06cc\u0632\u0646\u0647\u200c\u0643\u0631\u0627\u0648",horizontalRule:"\u0647\u06ce\u06b5\u06cc \u0626\u0627\u0633\u06c6\u06cc\u06cc",hr_solid:"\u067e\u062a\u0647\u200c\u0648",hr_dotted:"\u0646\u0648\u0643\u062a\u0647\u200c \u0646\u0648\u0643\u062a\u0647\u200c",hr_dashed:"\u062f\u0627\u0634 \u062f\u0627\u0634",table:"\u062e\u0634\u062a\u0647\u200c",link:"\u0628\u0647\u200c\u0633\u062a\u0647\u200c\u0631",math:"\u0628\u06cc\u0631\u0643\u0627\u0631\u06cc",image:"\u0648\u06ce\u0646\u0647\u200c",video:"\u06a4\u06cc\u062f\u06cc\u06c6",audio:"\u062f\u0647\u200c\u0646\u06af",fullScreen:"\u067e\u0695 \u0628\u0647\u200c \u0634\u0627\u0634\u0647\u200c",showBlocks:"\u0628\u06b5\u06c6\u0643 \u0646\u06cc\u0634\u0627\u0646\u0628\u062f\u0647",codeView:"\u0628\u06cc\u0646\u06cc\u0646\u06cc \u0643\u06c6\u062f\u0647\u200c\u0643\u0627\u0646",undo:"\u0648\u06d5\u06a9 \u062e\u06c6\u06cc \u0644\u06ce \u0628\u06a9\u06d5\u0648\u06d5",redo:"\u0647\u06d5\u06b5\u06af\u06d5\u0695\u0627\u0646\u062f\u0646\u06d5\u0648\u06d5",preview:"\u067e\u06ce\u0634\u0628\u06cc\u0646\u06cc\u0646",print:"\u067e\u0631\u06cc\u0646\u062a",tag_p:"\u067e\u0647\u200c\u0631\u0647\u200c\u06af\u0631\u0627\u0641",tag_div:"\u06cc \u0626\u0627\u0633\u0627\u06cc\u06cc (DIV)",tag_h:"\u0633\u06d5\u0631\u067e\u06d5\u0695\u06d5",tag_blockquote:"\u062f\u0647\u200c\u0642",tag_pre:"\u0643\u06c6\u062f",template:"\u0642\u0627\u06b5\u0628",lineHeight:"\u0628\u06b5\u0646\u062f\u06cc \u062f\u06ce\u0631",paragraphStyle:"\u0633\u062a\u0627\u06cc\u0644\u06cc \u06
17e\u0647\u200c\u0631\u0647\u200c\u06af\u0631\u0627\u0641",textStyle:"\u0633\u062a\u0627\u06cc\u0644\u06cc \u0646\u0648\u0633\u06cc\u0646",imageGallery:"\u06af\u0627\u0644\u0647\u200c\u0631\u06cc \u0648\u06ce\u0646\u0647\u200c\u0643\u0627\u0646",dir_ltr:"\u0645\u0646 \u0627\u0644\u064a\u0633\u0627\u0631 \u0625\u0644\u0649 \u0627\u0644\u064a\u0645\u064a\u0646",dir_rtl:"\u0645\u0646 \u0627\u0644\u064a\u0645\u064a\u0646 \u0627\u0644\u0649 \u0627\u0644\u064a\u0633\u0627\u0631",mention:"\u062a\u0646\u0648\u064a\u0647 \u0628"},dialogBox:{linkBox:{title:"\u0628\u0647\u200c\u0633\u062a\u0647\u200c\u0631 \u062f\u0627\u0628\u0646\u06ce",url:"\u0628\u0647\u200c\u0633\u062a\u0647\u200c\u0631",text:"\u062a\u06ce\u0643\u0633\u062a\u06cc \u0628\u0647\u200c\u0633\u062a\u0647\u200c\u0631",newWindowCheck:"\u0644\u0647\u200c \u067e\u0647\u200c\u0646\u062c\u0647\u200c\u0631\u0647\u200c\u06cc\u0647\u200c\u0643\u06cc \u0646\u0648\u06ce \u0628\u0643\u0647\u200c\u0631\u0647\u200c\u0648\u0647\u200c",downloadLinkCheck:"\u0631\u0627\u0628\u0637 \u0627\u0644\u062a\u062d\u0645\u064a\u0644",bookmark:"\u0627\u0644\u0645\u0631\u062c\u0639\u064a\u0629"},mathBox:{title:"\u0628\u06cc\u0631\u0643\u0627\u0631\u06cc",inputLabel:"\u0646\u06cc\u0634\u0627\u0646\u0647\u200c\u0643\u0627\u0646\u06cc \u0628\u06cc\u0631\u0643\u0627\u0631\u06cc",fontSizeLabel:"\u0642\u0647\u200c\u0628\u0627\u0631\u0647\u200c\u06cc \u0641\u06c6\u0646\u062a",previewLabel:"\u067e\u06ce\u0634\u0628\u06cc\u0646\u06cc\u0646"},imageBox:{title:"\u0648\u06ce\u0646\u0647\u200c\u06cc\u0647\u200c\u0643 \u062f\u0627\u0628\u0646\u06ce",file:"\u0641\u0627\u06cc\u0644\u06ce\u0643 \u0647\u0647\u200c\u06b5\u0628\u0698\u06ce\u0631\u0647\u200c",url:"\u0628\u0647\u200c\u0633\u062a\u0647\u200c\u0631\u06cc \u0648\u06ce\u0646\u0647\u200c",altText:"\u0646\u0648\u0633\u06cc\u0646\u06cc \u062c\u06ce\u06af\u0631\u0647\u200c\u0648\u0647\u200c"},videoBox:{title:"\u06a4\u06cc\u062f\u06cc\u06c6\u06cc\u0647\u200c\u0643 \u062f\u0627\u0628\u0646\u06ce",file:"\u0641\u0627\u06cc\u0644\u06ce\u0643 \u0647\u0647\u200c\u06b5\u0628\u0698\u06ce\u0631\u0647\u200c",url:"YouTube/Vimeo \u0628\u0647\u200c\u0633\u062a\u0647\u200c\u0631\u06cc \u0644\u0647\u200c\u0646\u0627\u0648\u062f\u0627\u0646\u0627\u0646 \u0648\u0647\u200c\u0643 "},audioBox:{title:"\u062f\u0647\u200c\u0646\u06af\u06ce\u0643 \u062f\u0627\u0628\u0646\u06ce",file:"\u0641\u0627\u06cc\u0644\u06ce\u0643 \u0647\u0647\u200c\u06b5\u0628\u0698\u06ce\u0631\u0647\u200c",url:"\u0628\u0647\u200c\u0633\u062a\u0647\u200c\u0631\u06cc \u062f\u0647\u200c\u0646\u06af"},browser:{tags:"\u062a\u0627\u06af\u0647\u200c\u0643\u0627\u0646",search:"\u06af\u0647\u200c\u0631\u0627\u0646"},caption:"\u067e\u06ce\u0646\u0627\u0633\u0647\u200c\u06cc\u0647\u200c\u0643 \u062f\u0627\u0628\u0646\u06ce",close:"\u062f\u0627\u062e\u0633\u062a\u0646",submitButton:"\u0646\u0627\u0631\u062f\u0646",revertButton:"\u0628\u06cc\u06af\u06d5\u0695\u06ce\u0646\u06d5\u0648\u06d5 \u0633\u06d5\u0631 \u0628\u0627\u0631\u06cc \u0633\u06d5\u0631\u06d5\u062a\u0627\u06cc\u06cc",proportion:"\u0631\u06ce\u0698\u0647\u200c\u0643\u0627\u0646 \u0648\u0647\u200c\u0643 \u062e\u06c6\u06cc \u0628\u0647\u06ce\u06b5\u0647\u200c\u0648\u0647\u200c",basic:"\u0633\u0647\u200c\u0631\u0647\u200c\u062a\u0627\u06cc\u06cc",left:"\u0686\u0647\u200c\u067e",right:"\u0631\u0627\u0633\u062a",center:"\u0646\u0627\u0648\u06d5\u0695\u0627\u0633\u062a",width:"\u067e\u0627\u0646\u06cc",height:"\u0628\u0647\u200c\u0631\u0632\u06cc",size:"\u0642\u0647\u200c\u0628\u0627\u0631\u0647\u200c",ratio:"\u0631\u06ce\u0698\u0647\u200c"},controller:{edit:"\u062f\u06d5\u0633\u06a9\u0627\u0631\u06cc\u06a9\u0631\u062f\u0646",unlink:"\u0633\u0695\u06cc\u0646\u06d5\u0648\u06d5\u06cc \u0628\u06d5\u0633\u062a\u06d5\u0631",remove:"\u0633\u0695\u06cc\u0646\u0647\u200c\u0648\u0647\u200c",insertRowAbove:"\u0631\u06cc\u0632\u0643 \u0644\u0647\u200c \u0633\u0647\u200c\u0631\u0647\u200c\u0648\u0647\u200c \u0632\u06cc\u0627\u062f\u0628\u0643\u0647\u200c",insertRowBelow:"\u0631\u06cc\u0632\u06ce\u0643 \u0644\u0647\u200c \u062e\u0648\u0627\u0631\u0647\u200c\u0648\u0647\u200c \u0632\u06cc\u0627\u062f\u0628\u0643\u0647\u200c",deleteRow:"\u0631\u06cc\u0632 \u0628\u0633\u0631\u0647\u200c\u0648\u0647\u200c",insertColumnBefore:"\u0633\u062a\u0648\u0646\u06ce\u0643 \u0644\u0647\u200c \u067e\u06ce\u0634\u0647\u200c\u0648\u0647\u200c \u0632\u06cc\u0627\u062f\u0628\u0643\u0647\u200c",insertColumnAfter:"\u0633\u062a\u0648\u0646\u06ce\u0643 \u0644\u0647\u200c \u062f\u0648\u0627\u0648\u0647\u200c \u0632\u06cc\u0627\u062f\u0628\u0643\u0647\u200c",deleteColumn:"\u0633\u062a\u0648\u0646\u06ce\u0643 \u0628\u0633\u0631\u0647\u200c\u0648\u0647\u200c",fixedColumnWidth:"\u067e\u0627\u0646\u06cc \u0633\u062a\u0648\u0646 \u0646\u0647\u200c\u06af\u06c6\u0631\u0628\u0643\u0647\u200c",resize100:"\u0642\u0647\u200c\u0628\u0627\u0631\u0647\u200c \u0628\u06af\u06c6\u0631\u0647\u200c \u0628\u06c6 \u0661\u0660\u0660%",resize75:"\u0642\u0647\u200c\u0628\u0627\u0631\u0647\u200c \u0628\u06af\u06c6\u0631\u0647\u200c \u0628\u06c6 \u0667\u066
15%",resize50:"\u0642\u0647\u200c\u0628\u0627\u0631\u0647\u200c \u0628\u06af\u06c6\u0631\u0647\u200c \u0628\u06c6 \u0665\u0660%",resize25:"\u0642\u0647\u200c\u0628\u0627\u0631\u0647\u200c \u0628\u06af\u06c6\u0631\u0647\u200c \u0628\u06c6 \u0662\u0665%",autoSize:"\u0642\u0647\u200c\u0628\u0627\u0631\u0647\u200c\u06cc \u062e\u06c6\u0643\u0627\u0631\u0627\u0646\u0647\u200c",mirrorHorizontal:"\u0647\u0647\u200c\u06b5\u06af\u0647\u200c\u0631\u06ce\u0646\u0647\u200c\u0648\u0647\u200c \u0628\u0647\u200c\u062f\u0647\u200c\u0648\u0631\u06cc \u062a\u0647\u200c\u0648\u0647\u200c\u0631\u0647\u200c\u06cc \u0626\u0627\u0633\u06c6\u06cc\u06cc",mirrorVertical:"\u0647\u0647\u200c\u06b5\u06af\u0647\u200c\u0631\u06ce\u0646\u0647\u200c\u0648\u0647\u200c \u0628\u0647\u200c\u062f\u0647\u200c\u0648\u0631\u06cc \u062a\u0647\u200c\u0648\u0647\u200c\u0631\u0647\u200c\u06cc \u0633\u062a\u0648\u0646\u06cc",rotateLeft:"\u0628\u0633\u0648\u0695\u06ce\u0646\u0647\u200c \u0628\u0647\u200c\u0644\u0627\u06cc \u0686\u0647\u200c\u067e\u062f\u0627",rotateRight:"\u0628\u0633\u0648\u0631\u06ce\u0646\u0647\u200c \u0628\u0647\u200c\u0644\u0627\u06cc \u0631\u0627\u0633\u062a\u062f\u0627",maxSize:"\u06af\u0647\u200c\u0648\u0631\u0647\u200c\u062a\u0631\u06cc\u0646 \u0642\u0647\u200c\u0628\u0627\u0631\u0647\u200c",minSize:"\u0628\u0686\u0648\u0643\u062a\u0631\u06cc\u0646 \u0642\u0647\u200c\u0628\u0627\u0631\u0647\u200c",tableHeader:"\u0633\u0647\u200c\u0631\u062f\u06ce\u0631\u06cc \u062e\u0634\u062a\u0647\u200c\u0643",mergeCells:"\u062e\u0627\u0646\u0647\u200c\u0643\u0627\u0646 \u062a\u06ce\u0643\u0647\u200c\u06b5\u0628\u0643\u0647\u200c",splitCells:"\u062e\u0627\u0646\u0647\u200c\u0643\u0627\u0646 \u0644\u06ce\u0643 \u062c\u06cc\u0627\u0628\u0643\u0647\u200c\u0648\u0647\u200c",HorizontalSplit:"\u062c\u06cc\u0627\u0643\u0631\u062f\u0646\u0647\u200c\u0648\u0647\u200c\u06cc \u0626\u0627\u0633\u06c6\u06cc\u06cc",VerticalSplit:"\u062c\u06cc\u0627\u0643\u0631\u062f\u0646\u0647\u200c\u0648\u0647\u200c\u06cc \u0633\u062a\u0648\u0646\u06cc"},menu:{spaced:"\u0628\u06c6\u0634\u0627\u06cc \u0647\u0647\u200c\u0628\u06ce\u062a",bordered:"\u0644\u06ce\u0648\u0627\u0631\u06cc \u0647\u0647\u200c\u0628\u06ce\u062a",
1neon:"\u0646\u06cc\u06c6\u0646",translucent:"\u0643\u0647\u200c\u0645\u06ce\u0643 \u0648\u0647\u200c\u0643 \u0634\u0648\u0648\u0634\u0647\u200c",shadow:"\u0633\u06ce\u0628\u0647\u200c\u0631",code:"\u0643\u06c6\u062f"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"ckb",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},76696(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"cs",toolbar:{default:"V\xfdchoz\xed",save:"Ulo\u017eit",font:"P\xedsmo",formats:"Form\xe1ty",fontSize:"Velikost",bold:"Tu\u010dn\xe9",underline:"Podtr\u017een\xed",italic:"Kurz\xedva",strike:"P\u0159e\u0161krtnut\xed",subscript:"Doln\xed index",superscript:"Horn\xed index",removeFormat:"Odebrat form\xe1t",fontColor:"Barva p\xedsma",hiliteColor:"Barva zv\xfdrazn\u011bn\xed",indent:"Odsadit",outdent:"P\u0159edsadit",align:"Zarovnat",alignLeft:"Zarovnat vlevo",alignRight:"Zarovnat vpravo",alignCenter:"Zarovnat na st\u0159ed",alignJustify:"Zarovnat do bloku",list:"Seznam",orderList:"Se\u0159azen\xfd seznam",unorderList:"Ne\u0159azen\xfd seznam",horizontalRule:"Vodorovn\xe1 \u010d\xe1ra",hr_solid:"Nep\u0159eru\u0161ovan\xe1",hr_dotted:"Te\u010dkovan\xe1",hr_dashed:"\u010c\xe1rkovan\xe1",table:"Tabulka",link:"Odkaz",math:"Matematika",image:"Obr\xe1zek",video:"Video",audio:"Zvuk",fullScreen:"Cel\xe1 obrazovka",showBlocks:"Zobrazit bloky",codeView:"Zobrazen\xed k\xf3du",undo:"Zp\u011bt",redo:"Opakovat",preview:"N\xe1hled",print:"tisk",tag_p:"Odstavec",tag_div:"Norm\xe1ln\xed (DIV)",tag_h:"Z\xe1hlav\xed",tag_blockquote:"Citovat",tag_pre:"K\xf3d",template:"\u0160ablona",lineHeight:"V\xfd\u0161ka \u0159\xe1dku",paragraphStyle:"Styl odstavce",textStyle:"Styl textu",imageGallery:"Obr\xe1zkov\xe1 galerie",dir_ltr:"Zleva doprava",dir_rtl:"Zprava doleva",mention:"Zm\xednka"},dialogBox:{linkBox:{title:"Vlo\u017eit odkaz",url:"URL pro odkaz",text:"Text k zobrazen\xed",newWindowCheck:"Otev\u0159\xedt v nov\xe9m okn\u011b",downloadLinkCheck:"Odkaz ke sta\u017een\xed",bookmark:"Z\xe1lo\u017eka"},mathBox:{title:"Matematika",inputLabel:"Matematick\xe1 notace",fontSizeLabel:"Velikost p\xedsma",previewLabel:"N\xe1hled"},imageBox:{title:"Vlo\u017eit obr\xe1zek",file:"Vybrat ze soubor\u016f",url:"URL obr\xe1zku",altText:"Alternativn\xed text"},videoBox:{title:"Vlo\u017eit video",file:"Vybrat ze soubor\u016f",url:"URL pro vlo\u017een\xed m\xe9di\xed, YouTube/Vimeo"},audioBox:{title:"Vlo\u017eit zvuk",file:"Vybrat ze soubor\u016f",url:"Adresa URL zvuku"},browser:{tags:"\u0160t\xedtky",search:"Hledat"},caption:"Vlo\u017eit popis",close:"Zav\u0159\xedt",submitButton:"Odeslat",revertButton:"Vr\xe1tit zp\u011bt",proportion:"Omezen\xed proporc\xed",basic:"Z\xe1kladn\xed",left:"Vlevo",right:"Vpravo",center:"St\u0159ed",width:"\u0160\xed\u0159ka",height:"V\xfd\u0161ka",size:"Velikost",ratio:"Pom\u011br"}
1,controller:{edit:"Upravit",unlink:"Odpojit",remove:"Odebrat",insertRowAbove:"Vlo\u017eit \u0159\xe1dek v\xfd\u0161e",insertRowBelow:"Vlo\u017eit \u0159\xe1dek n\xed\u017ee",deleteRow:"Smazat \u0159\xe1dek",insertColumnBefore:"Vlo\u017eit sloupec p\u0159ed",insertColumnAfter:"Vlo\u017eit sloupec za",deleteColumn:"Smazat sloupec",fixedColumnWidth:"Pevn\xe1 \u0161\xed\u0159ka sloupce",resize100:"Zm\u011bnit velikost 100%",resize75:"Zm\u011bnit velikost 75%",resize50:"Zm\u011bnit velikost 50%",resize25:"Zm\u011bnit velikost 25%",autoSize:"Automatick\xe1 velikost",mirrorHorizontal:"Zrcadlo, horizont\xe1ln\xed",mirrorVertical:"Zrcadlo, vertik\xe1ln\xed",rotateLeft:"Oto\u010dit doleva",rotateRight:"Oto\u010dit doprava",maxSize:"Max. velikost",minSize:"Min. velikost",tableHeader:"Z\xe1hlav\xed tabulky",mergeCells:"Spojit bu\u0148ky",splitCells:"Rozd\u011blit bu\u0148ky",HorizontalSplit:"Vodorovn\xe9 rozd\u011blen\xed",VerticalSplit:"Svisl\xe9 rozd\u011blen\xed"},menu:{spaced:"Rozlo\u017een\xe9",bordered:"Ohrani\u010den\xe9",neon:"Neon",translucent:"Pr\u016fsvitn\xe9",shadow:"St\xedn",code:"K\xf3d"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"cs",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},18217(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"da",toolbar:{default:"Default",save:"Gem",font:"Skrifttype",formats:"Format",fontSize:"Skriftst\xf8rrelse",bold:"Fed",underline:"Understreget",italic:"Skr\xe5skrift",strike:"Overstreget",subscript:"S\xe6nket skrift",superscript:"H\xe6vet skrift",removeFormat:"Fjern formatering",fontColor:"Skriftfarve",hiliteColor:"Baggrundsfarve",indent:"Ryk ind",outdent:"Ryk ud",align:"Justering",alignLeft:"Venstrejustering",alignRight:"H\xf8jrejustering",alignCenter:"Midterjustering",alignJustify:"Tilpas margin",list:"Lister",orderList:"Nummereret liste",unorderList:"Uordnet liste",horizontalRule:"Horisontal linie",hr_solid:"Almindelig",hr_dotted:"Punkteret",hr_dashed:"Streget",table:"Tabel",link:"Link",math:"Math",image:"Billede",video:"Video",audio:"Audio",fullScreen:"Fuld sk\xe6rm",showBlocks:"Vis blokke",codeView:"Vis koder",undo:"Undo",redo:"Redo",preview:"Preview",print:"Print",tag_p:"Paragraph",tag_div:"Normal (DIV)",tag_h:"Overskrift",tag_blockquote:"Citer",tag_pre:"Code",template:"Schablone",lineHeight:"Linjeh\xf8jde",paragraphStyle:"Afsnitstil",textStyle:"Tekststil",imageGallery:"Billedgalleri",dir_ltr:"Venstre til h\xf8jre",dir_rtl:"H\xf8jre til venstre",mention:"N\xe6vne"},dialogBox:{linkBox:{title:"Inds\xe6t link",url:"URL til link",text:"Tekst for link",newWindowCheck:"\xc5ben i nyt faneblad",downloadLinkCheck:"Download link",bookmark:"Bogm\xe6rke"},mathBox:{title:"Math",inputLabel:"Matematisk notation",fontSizeLabel:"Skriftst\xf8rrelse",previewLabel:"Preview"},imageBox:{title:"Inds\xe6t billede",file:"Inds\xe6t fra fil",url:"Inds\xe6t fra URL",altText:"Alternativ tekst"},videoBox:{title:"Inds\xe6t Video",file:"Inds\xe6t fra fil",url:"Indlejr video / YouTube,Vimeo"},audioBox:{title:"Inds\xe6t Audio",file:"Inds\xe6t fra fil",url:"Inds\xe6t fra URL"},browser:{tags:"Tags",search:"S\xf8g"},caption:"Inds\xe6t beskrivelse",close:"Luk",submitButton:"Gennemf\xf8r",revertButton:"Gendan",proportion:"Bevar proportioner",basic:"Basis",left:"Venstre",right:"H\xf8jre",center:"Center",width:"Bredde",height:"H\xf8jde",size:"St\xf8rrelse",ratio:"Forhold"},controller:{edit:"Rediger",unlink:"Fjern link",remove:"Fjern",insertRowAbove:"Inds\xe6t r\xe6kke foroven",insertRowBelow:"Inds\xe6t r\xe6kke nedenfor",deleteRow:"Slet r\xe6kke",insertColumnBefore:"Inds\xe6t kolonne f\xf8r",insertColumnAfter:"Inds\xe6t kolonne efter",deleteColumn:"Slet kolonne",fixedColumnWidth:"Fast s\xf8jlebredde",resize100:"Forst\xf8r 100%",resize75:"Forst\xf8r 75%",resize50:"Forst\xf8r 50%",resize25:"Forst\xf8r 25%",autoSize:"Auto st\xf8rrelse",mirrorHorizontal:"Spejling, horisontal",mirrorVertical:"Spejling, vertikal",rotateLeft:"Roter til venstre",rotateRight:"Toter til h\xf8jre",maxSize:"Max st\xf8rrelse",minSize:"Min st\xf8rrelse",tableHeader:"Tabel overskrift",mergeCells:"Sammenl\xe6g celler (merge)",splitCells:"Opdel celler",HorizontalSplit:"Opdel horisontalt",VerticalSplit:"Opdel vertikalt"},menu:{spaced:"Brev Afstand",bordered:"Afgr\xe6nsningslinje",neon:"Neon",translucent:"Gennemsigtig",shadow:"Skygge",code:"Code"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,
1configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"da",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},34181(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"de",toolbar:{default:"Standard",save:"Speichern",font:"Schriftart",formats:"Format",fontSize:"Schriftgr\xf6\xdfe",bold:"Fett",underline:"Unterstrichen",italic:"Kursiv",strike:"Durchgestrichen",subscript:"Tiefgestellt",superscript:"Hochgestellt",removeFormat:"Format entfernen",fontColor:"Schriftfarbe",hiliteColor:"Farbe f\xfcr Hervorhebungen",indent:"Einzug vergr\xf6\xdfern",outdent:"Einzug verkleinern",align:"Ausrichtung",alignLeft:"Links ausrichten",alignRight:"Rechts ausrichten",alignCenter:"Zentriert ausrichten",alignJustify:"Blocksatz",list:"Liste",orderList:"Nummerierte Liste",unorderList:"Aufz\xe4hlung",horizontalRule:"Horizontale Linie",hr_solid:"Strich",hr_dotted:"Gepunktet",hr_dashed:"Gestrichelt",table:"Tabelle",link:"Link",math:"Mathematik",image:"Bild",video:"Video",audio:"Audio",fullScreen:"Vollbild",showBlocks:"Blockformatierungen anzeigen",codeView:"Quelltext anzeigen",undo:"R\xfcckg\xe4ngig",redo:"Wiederholen",preview:"Vorschau",print:"Drucken",tag_p:"Absatz",tag_div:"Normal (DIV)",tag_h:"Header",tag_blockquote:"Zitat",tag_pre:"Quellcode",template:"Vorlage",lineHeight:"Zeilenh\xf6he",paragraphStyle:"Absatzstil",textStyle:"Textstil",imageGallery:"Bildergalerie",dir_ltr:"Links nach rechts",dir_rtl:"Rechts nach links",mention:"Erw\xe4hnen"},dialogBox:{linkBox:{title:"Link einf\xfcgen",url:"Link-URL",text:"Link-Text",newWindowCheck:"In neuem Fenster anzeigen",downloadLinkCheck:"Download-Link",bookmark:"Lesezeichen"},mathBox:{title:"Mathematik",inputLabel:"Mathematische Notation",fontSizeLabel:"Schriftgr\xf6\xdfe",previewLabel:"Vorschau"},imageBox:{title:"Bild einf\xfcgen",file:"Datei ausw\xe4hlen",url:"Bild-URL",altText:"Alternativer Text"},videoBox:{title:"Video einf\xfcgen",file:"Datei ausw\xe4hlen",url:"Video-URL, YouTube/Vimeo"},audioBox:{title:"Audio einf\xfcgen",file:"Datei ausw\xe4hlen",url:"Audio-URL"},browser:{tags:"Stichworte",search:"Suche"},caption:"Beschreibung eingeben",close:"Schlie\xdfen",submitButton:"\xdcbernehmen",revertButton:"R\xfcckg\xe4ngig",proportion:"Seitenverh\xe4ltnis beibehalten",basic:"Standard",left:"Links",right:"Rechts",center:"Zentriert",width:"Breite",height:"H\xf6he",size:"Gr\xf6\xdfe",ratio:"Verh\xe4ltnis"},controller:{edit:"Bearbeiten",unlink:"Link entfernen",remove:"L\xf6schen",insertRowAbove:"Zeile oberhalb einf\xfcgen",insertRowBelow:"Zeile unterhalb einf\xfcgen",deleteRow:"Zeile l\xf6schen",insertColumnBefore:"Spalte links einf\xfcgen",insertColumnAfter:"Spalte rechts einf\xfcgen",deleteColumn:"Spalte l\xf6schen",fixedColumnWidth:"Feste Spaltenbreite",resize100:"Zoom 100%",resize75:"Zoom 75%",resize50:"Zoom 50%",resize25:"Zoom 25%",autoSize:"Automatische Gr\xf6\xdfenanpassung",mirrorHorizontal:"Horizontal spiegeln",mirrorVertical:"Vertikal spiegeln",rotateLeft:"Nach links drehen",rotateRight:"Nach rechts drehen",maxSize:"Maximale Gr\xf6\xdfe",minSize:"Mindestgr\xf6\xdfe",tableHeader:"Tabellen\xfcberschrift",mergeCells:"Zellen verbinden",splitCells:"Zellen teilen",HorizontalSplit:"Horizontal teilen",VerticalSplit:"Vertikal teilen"},menu:{spaced:"Buchstabenabstand",bordered:"Umrandet",neon:"Neon",translucent:"Durchscheinend",shadow:"Schatten",code:"Quellcode"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"de",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},68381(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"en",toolbar:{default:"Default",save:"Save",font:"Font",formats:"Formats",fontSize:"Size",bold:"Bold",underline:"Underline",italic:"Italic",strike:"Strike",subscript:"Subscript",superscript:"Superscript",removeFormat:"Remove Format",fontColor:"Font Color",hiliteColor:"Highlight Color",indent:"Indent",outdent:"Outdent",align:"Align",alignLeft:"Align left",alignRight:"Align right",alignCenter:"Align center",alignJustify:"Align justify",list:"List",orderList:"Ordered list",unorderList:"Unordered list",horizontalRule:"Horizontal line",hr_solid:"Solid",hr_dotted:"Dotted",hr_dashed:"Dashed",table:"Table",link:"Link",math:"Math",image:"Image",video:"Video",audio:"Audio",fullScreen:"Full screen",showBlocks:"Show blocks",codeView:"Code view",undo:"Undo",redo:"Redo",preview:"Preview",print:"print",tag_p:"Paragraph",tag_div:"Normal (DIV)",tag_h:"Header",tag_blockquote:"Quote",tag_pre:"Code",template:"Template",lineHeight:"Line height",paragraphStyle:"Paragraph style",textStyle:"Text style",imageGallery:"Image gallery",dir_ltr:"Left to right",dir_rtl:"Right to left",mention:"Mention"},dialogBox:{linkBox:{title:"Insert Link",url:"URL to link",text:"Text to display",newWindowCheck:"Open in new window",downloadLinkCheck:"Download link",bookmark:"Bookmark"},mathBox:{title:"Math",inputLabel:"Mathematical Notation",fontSizeLabel:"Font Size",previewLabel:"Preview"}
1,imageBox:{title:"Insert image",file:"Select from files",url:"Image URL",altText:"Alternative text"},videoBox:{title:"Insert Video",file:"Select from files",url:"Media embed URL, YouTube/Vimeo"},audioBox:{title:"Insert Audio",file:"Select from files",url:"Audio URL"},browser:{tags:"Tags",search:"Search"},caption:"Insert description",close:"Close",submitButton:"Submit",revertButton:"Revert",proportion:"Constrain proportions",basic:"Basic",left:"Left",right:"Right",center:"Center",width:"Width",height:"Height",size:"Size",ratio:"Ratio"},controller:{edit:"Edit",unlink:"Unlink",remove:"Remove",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",deleteRow:"Delete row",insertColumnBefore:"Insert column before",insertColumnAfter:"Insert column after",deleteColumn:"Delete column",fixedColumnWidth:"Fixed column width",resize100:"Resize 100%",resize75:"Resize 75%",resize50:"Resize 50%",resize25:"Resize 25%",autoSize:"Auto size",mirrorHorizontal:"Mirror, Horizontal",mirrorVertical:"Mirror, Vertical",rotateLeft:"Rotate left",rotateRight:"Rotate right",maxSize:"Max size",minSize:"Min size",tableHeader:"Table header",mergeCells:"Merge cells",splitCells:"Split Cells",HorizontalSplit:"Horizontal split",VerticalSplit:"Vertical split"},menu:{spaced:"Spaced",bordered:"Bordered",neon:"Neon",translucent:"Translucent",shadow:"Shadow",code:"Code"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"en",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},1402(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"es",toolbar:{default:"Valor por defecto",save:"Guardar",font:"Fuente",formats:"Formato",fontSize:"Tama\xf1o de fuente",bold:"Negrita",underline:"Subrayado",italic:"Cursiva",strike:"Tachado",subscript:"Sub\xedndice",superscript:"Super\xedndice",removeFormat:"Eliminar formato",fontColor:"Color de fuente",hiliteColor:"Color de resaltado",indent:"M\xe1s tabulaci\xf3n",outdent:"Menos tabulaci\xf3n",align:"Alinear",alignLeft:"Alinear a la izquierda",alignRight:"Alinear a la derecha",alignCenter:"Alinear al centro",alignJustify:"Justificar",list:"Lista",orderList:"Lista ordenada",unorderList:"Lista desordenada",horizontalRule:"Horizontal line",hr_solid:"L\xednea horizontal solida",hr_dotted:"L\xednea horizontal punteada",hr_dashed:"L\xednea horizontal discontinua",table:"Tabla",link:"Link",math:"Matem\xe1ticas",image:"Imagen",video:"Video",audio:"Audio",fullScreen:"Pantalla completa",showBlocks:"Ver bloques",codeView:"Ver c\xf3digo fuente",undo:"UndoDeshacer \xfaltima acci\xf3n",redo:"Rehacer \xfaltima acci\xf3n",preview:"Vista previa",print:"Imprimir",tag_p:"P\xe1rrafo",tag_div:"Normal (DIV)",tag_h:"Header",tag_blockquote:"Cita",tag_pre:"C\xf3digo",template:"Plantilla",lineHeight:"Altura de la l\xednea",paragraphStyle:"Estilo del parrafo",textStyle:"Estilo del texto",imageGallery:"Galer\xeda de im\xe1genes",dir_ltr:"De izquierda a derecha",dir_rtl:"De derecha a izquierda",mention:"Mencionar"},dialogBox:{linkBox:{title:"Insertar Link",url:"\xbfHacia que URL lleva el link?",text:"Texto para mostrar",newWindowCheck:"Abrir en una nueva ventana",downloadLinkCheck:"Enlace de descarga",bookmark:"Marcador"},mathBox:{title:"Matem\xe1ticas",inputLabel:"Notaci\xf3n Matem\xe1tica",fontSizeLabel:"Tama\xf1o de fuente",previewLabel:"Vista previa"},imageBox:{title:"Insertar imagen",file:"Seleccionar desde los archivos",url:"URL de la imagen",altText:"Texto alternativo"},videoBox:{title:"Insertar Video",file:"Seleccionar desde los archivos",url:"\xbfURL del v\xeddeo? Youtube/Vimeo"},audioBox:{title:"Insertar Audio",file:"Seleccionar desde los archivos",url:"URL de la audio"},browser:{tags:"Etiquetas",search:"Buscar"},caption:"Insertar descripci\xf3n",close:"Cerrar",submitButton:"Enviar",revertButton:"revertir",proportion:"Restringir las proporciones",basic:"Basico",left:"Izquierda",right:"derecha",center:"Centro",width:"Ancho",height:"Alto",size:"Tama\xf1o",ratio:"Proporci\xf3n"},controller:{edit:"Editar",unlink:"Desvincular",remove:"RemoveQuitar",insertRowAbove:"Insertar fila arriba",insertRowBelow:"Insertar fila debajo",deleteRow:"Eliminar fila",insertColumnBefore:"Insertar c
1olumna antes",insertColumnAfter:"Insertar columna despu\xe9s",deleteColumn:"Eliminar columna",fixedColumnWidth:"Ancho de columna fijo",resize100:"Redimensionar 100%",resize75:"Redimensionar 75%",resize50:"Redimensionar 50%",resize25:"Redimensionar 25%",autoSize:"Tama\xf1o autom\xe1tico",mirrorHorizontal:"Espejo, Horizontal",mirrorVertical:"Espejo, Vertical",rotateLeft:"Girar a la izquierda",rotateRight:"Girar a la derecha",maxSize:"Tama\xf1o m\xe1ximo",minSize:"Tama\xf1o min\xedmo",tableHeader:"Encabezado de tabla",mergeCells:"Combinar celdas",splitCells:"Dividir celdas",HorizontalSplit:"Divisi\xf3n horizontal",VerticalSplit:"Divisi\xf3n vertical"},menu:{spaced:"Espaciado",bordered:"Bordeado",neon:"Ne\xf3n",translucent:"Transl\xfacido",shadow:"Sombreado",code:"C\xf3digo"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"es",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},48383(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"fa",toolbar:{default:"\u067e\u06cc\u0634 \u0641\u0631\u0636",save:"\u0630\u062e\u06cc\u0631\u0647",font:"\u0641\u0648\u0646\u062a",formats:"\u0642\u0627\u0644\u0628\u200c\u0647\u0627",fontSize:"\u0627\u0646\u062f\u0627\u0632\u0647\u200c\u06cc \u0641\u0648\u0646\u062a",bold:"\u067e\u0631\u0631\u0646\u06af \u06a9\u0631\u062f\u0646",underline:"\u0632\u06cc\u0631\u062e\u0637\u062f\u0627\u0631 \u06a9\u0631\u062f\u0646",italic:"\u06a9\u062c \u06a9\u0631\u062f\u0646",strike:"\u062e\u0637 \u0645\u06cc\u0627\u0646\u200c\u062f\u0627\u0631 \u06a9\u0631\u062f\u0646",subscript:"\u0646\u0648\u0634\u062a\u0646 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0645\u062a\u0646",superscript:"\u0646\u0648\u0634\u062a\u0646 \u0628\u0647 \u0635\u0648\u0631\u062a \u0628\u0627\u0644\u0627\u06cc \u0645\u062a\u0646",removeFormat:"\u062d\u0630\u0641 \u0642\u0627\u0644\u0628",fontColor:"\u0631\u0646\u06af \u067e\u06cc\u0634 \u0632\u0645\u06cc\u0646\u0647",hiliteColor:"\u0631\u0646\u06af \u067e\u0633\u200c\u0632\u0645\u06cc\u0646\u0647",indent:"\u062c\u0644\u0648 \u0628\u0631\u062f\u0646",outdent:"\u0639\u0642\u0628 \u0628\u0631\u062f\u0646",align:"\u0686\u06cc\u062f\u0645\u0627\u0646",alignLeft:"\u0686\u067e\u200c\u0686\u06cc\u0646",alignRight:"\u0631\u0627\u0633\u062a\u200c\u0686\u06cc\u0646",alignCenter:"\u0648\u0633\u0637\u200c\u0686\u06cc\u0646",alignJustify:"\u0647\u0645\u062a\u0631\u0627\u0632 \u0627\u0632 \u0647\u0631 \u062f\u0648 \u0633\u0645\u062a",list:"\u0644\u06cc\u0633\u062a",orderList:"\u0644\u06cc\u0633\u062a \u0634\u0645\u0627\u0631\u0634\u06cc",unorderList:"\u0644\u06cc\u0633\u062a \u06af\u0644\u0648\u0644\u0647\u200c\u0627\u06cc",horizontalRule:"\u062f\u0631\u062c \u062e\u0637 \u0627\u0641\u0642\u06cc",hr_solid:"\u062a\u0648 \u067e\u0631",hr_dotted:"\u0646\u0642\u0637\u0647\u200c\u0686\u06cc\u0646",hr_dashed:"\u062e\u0637 \u062a\u06cc\u0631\u0647",table:"\u062f\u0631\u062c \u062c\u062f\u0648\u0644",link:"\u062f\u0631\u062c \u0644\u06cc\u0646\u06a9",math:"\u062f\u0631\u062c \u0641\u0631\u0645\u0648\u0644 \u0631\u06cc\u0627\u0636\u06cc",image:"\u062f\u0631\u062c \u062a\u0635\u0648\u06cc\u0631",video:"\u062f\u0631\u062c \u0648\u06cc\u062f\u0626\u0648",audio:"\u062f\u0631\u062c \u0635\u0648\u062a",fullScreen:"\u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647",showBlocks:"\u0646\u0645\u0627\u06cc\u0634 \u0628\u0644\u0627\u06a9\u200c\u0628\u0646\u062f\u06cc",codeView:"\u0645\u0634\u0627\u0647\u062f\u0647\u200c\u06cc \u06a9\u064f\u062f HTML",undo:"\u0628\u0631\u06af\u0631\u062f\u0627\u0646\u062f\u0646 \u062a\u063a\u06cc\u06cc\u0631",redo:"\u062a\u06a9\u0631\u0627\u0631 \u062a\u063a\u06cc\u06cc\u0631",preview:"\u067e\u06cc\u0634 \u0646\u0645\u0627\u06cc\u0634",print:"\u0686\u0627\u067e",tag_p:"\u067e\u0627\u0631\u0627\u06af\u0631\u0627\u0641",tag_div:"\u0639\u0627\u062f\u06cc (DIV)",tag_h:"\u0647\u062f\u0631",tag_blockquote:"\u0646\u0642\u0644 \u0642\u0648\u0644",tag_pre:"\u06a9\u064f\u062f",template:"\u062f\u0631\u062c \u0645\u062d\u062a\u0648\u0627 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0627\u0644\u06af\u0648",lineHeight:"\u0627\u0631\u062a\u0641\u0627\u0639 \u062e\u0637",paragraphStyle:"\u0627\u0633\u062a\u0627\u06cc\u0644 \u067e\u0627\u0631\u0627\u06af\u0631\u0627\u0641",textStyle:"\u0627\u0633\u062a\u0627\u06cc\u0644 \u0645\u062a\u0646",imageGallery:"\u06af\u0627\u0644\u0631\u06cc \u062a\u0635\u0627\u0648\u06cc\u0631",dir_ltr:"\u0686\u067e \u0628\u0647 \u0631\u0627\u0633\u062a",dir_rtl:"\u0631\u0627\u0633\u062a \u0628\u0647 \u0686\u067e",mention:"\u0630\u06a9\u0631 \u06a9\u0631\u062f\u0646"},dialogBox:{linkBox:{title:"\u062f\u0631\u062c  \u0644\u06cc\u0646\u06a9",url:"\u0622\u062f\u0631\u0633 \u0644\u06cc\u0646\u06a9",text:"\u0639\u0646\u0648\u0627\u0646 \u0644\u06cc\u0646\u06a9",newWindowCheck:"\u062f\u0631 \u067e\u0646\u062c\u0631\u0647\u200c\u06cc \u062c\u062f\u06cc\u062f\u06cc \u0628\u0627\u0632 \u0634\u0648\u062f",downloadLinkCheck:"\u0644\u06cc\u0646\u06a9 \u062f\u0627\u0646\u0644\u0648\u062f",bookmark:"\u0646\u0634\u0627\u0646"},mathBox:{title:"\u0641\u0631\u0645\u0648\u0644 \u0631\u06cc\u0627\u0636\u06cc",inputLabel:"\u062a\u0639\u0631\u06cc\u064
11 \u0641\u0631\u0645\u0648\u0644",fontSizeLabel:"\u0627\u0646\u062f\u0627\u0632\u0647\u200c\u06cc \u0641\u0648\u0646\u062a",previewLabel:"\u067e\u06cc\u0634 \u0646\u0645\u0627\u06cc\u0634"},imageBox:{title:"\u062f\u0631\u062c \u062a\u0635\u0648\u06cc\u0631",file:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0641\u0627\u06cc\u0644",url:"\u0622\u062f\u0631\u0633 Url",altText:"\u0645\u062a\u0646 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646"},videoBox:{title:"\u062f\u0631\u062c \u0648\u06cc\u062f\u0626\u0648",file:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0641\u0627\u06cc\u0644",url:"\u0622\u062f\u0631\u0633 Url \u0648\u06cc\u062f\u0626\u0648, YouTube/Vimeo"},audioBox:{title:"\u062f\u0631\u062c \u0635\u0648\u062a",file:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0641\u0627\u06cc\u0644",url:"\u0622\u062f\u0631\u0633 Url"},browser:{tags:"\u062a\u06af\u200c\u0647\u0627",search:"\u062c\u0633\u062a\u062c\u0648"},caption:"\u062a\u0648\u0636\u06cc\u062d",close:"\u0628\u0633\u062a\u0646",submitButton:"\u062f\u0631\u062c",revertButton:"\u0628\u0631\u06af\u0631\u062f\u0627\u0646\u062f\u0646 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a",proportion:"\u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u0627\u0646\u062f\u0627\u0632\u0647",basic:"\u0686\u06cc\u062f\u0645\u0627\u0646 \u067e\u06cc\u0634 \u0641\u0631\u0636",left:"\u0686\u067e",right:"\u0631\u0627\u0633\u062a",center:"\u0648\u0633\u0637",width:"\u067e\u0647\u0646\u0627",height:"\u0627\u0631\u062a\u0641\u0627\u0639",size:"\u0627\u0646\u062f\u0627\u0632\u0647",ratio:"\u0646\u0633\u0628\u062a"},controller:{edit:"\u0648\u06cc\u0631\u0627\u06cc\u0634",unlink:"\u062d\u0630\u0641 \u0644\u06cc\u0646\u06a9",remove:"\u062d\u0630\u0641",insertRowAbove:"\u062f\u0631\u062c \u0633\u0637\u0631 \u062f\u0631 \u0628\u0627\u0644\u0627",insertRowBelow:"\u062f\u0631\u062c \u0633\u0637\u0631 \u062f\u0631 \u067e\u0627\u06cc\u06cc\u0646",deleteRow:"\u062d\u0630\u0641 \u0633\u0637\u0631",insertColumnBefore:"\u062f\u0631\u062c \u06cc\u06a9 \u0633\u062a\u0648\u0646 \u0628\u0647 \u0639\u0642\u0628",insertColumnAfter:"\u062f\u0631\u062c \u06cc\u06a9 \u0633\u062a\u0648\u0646 \u062f\u0631 \u062c\u0644\u0648",deleteColumn:"\u062d\u0630\u0641 \u0633\u062a\u0648\u0646",fixedColumnWidth:"\u0627\u0646\u062f\u0627\u0632\u0647 \u0633\u062a\u0648\u0646 \u062b\u0627\u0628\u062a",resize100:"\u0627\u0646\u062f\u0627\u0632\u0647\u200c\u06cc 100%",resize75:"\u0627\u0646\u062f\u0627\u0632\u0647\u200c\u06cc 75%",resize50:"\u0627\u0646\u062f\u0627\u0632\u0647\u200c\u06cc 50%",resize25:"\u0627\u0646\u062f\u0627\u0632\u0647\u200c\u06cc 25%",autoSize:"\u0627\u0646\u062f\u0627\u0632\u0647\u200c\u06cc \u062e\u0648\u062f\u06a9\u0627\u0631",mirrorHorizontal:"\u0628\u0631 \u0639\u06a9\u0633 \u06a9\u0631\u062f\u0646 \u062f\u0631 \u062c\u0647\u062a \u0627\u0641\u0642\u06cc",mirrorVertical:"\u0628\u0631 \u0639\u06a9\u0633 \u06a9\u0631\u062f\u0646 \u062f\u0631 \u062c\u0647\u062a \u0639\u0645\u0648\u062f\u06cc",rotateLeft:"\u062f\u0648\u0631\u0627\u0646 \u0628\u0647 \u0686\u067e",rotateRight:"\u062f\u0648\u0631\u0627\u0646 \u0628\u0647 \u0631\u0627\u0633\u062a",maxSize:"\u062d\u062f\u0627\u06a9\u062b\u0631 \u0627\u0646\u062f\u0627\u0632\u0647",minSize:"\u062d\u062f\u0627\u0642\u0644 \u0627\u0646\u062f\u0627\u0632\u0647",tableHeader:"\u0647\u062f\u0631 \u062c\u062f\u0648\u0644",mergeCells:"\u0627\u062f\u063a\u0627\u0645 \u062e\u0627\u0646\u0647\u200c\u0647\u0627",splitCells:"\u062a\u0642\u0633\u06cc\u0645 \u062e\u0627\u0646\u0647 \u0628\u0647 \u0686\u0646\u062f \u062e\u0627\u0646\u0647",HorizontalSplit:"\u062a\u0642\u0633\u06cc\u0645 \u062f\u0631 \u062c\u0647\u062a \u0627\u0641\u0642\u06cc",VerticalSplit:"\u062a\u0642\u0633\u06cc\u0645 \u062f\u0631 \u062c\u0647\u062a \u0639\u0645\u0648\u062f\u06cc"},menu:{spaced:"\u0641\u0636\u0627\u062f\u0627\u0631",bordered:"\u0644\u0628\u0647\u200c\u062f\u0627\u0631",neon:"\u0646\u0626\u0648\u0646\u06cc",translucent:"\u0646\u06cc\u0645\u0647 \u0634\u0641\u0627\u0641",shadow:"\u0633\u0627\u06cc\u0647",code:"\u06a9\u064f\u062f"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,
1configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"fa",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},78210(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"fr",toolbar:{default:"D\xe9faut",save:"Sauvegarder",font:"Police",formats:"Formats",fontSize:"Taille",bold:"Gras",underline:"Soulign\xe9",italic:"Italique",strike:"Barr\xe9",subscript:"Indice",superscript:"Exposant",removeFormat:"Effacer le formatage",fontColor:"Couleur du texte",hiliteColor:"Couleur en arri\xe8re plan",indent:"Indenter",outdent:"D\xe9sindenter",align:"Alignement",alignLeft:"\xc0 gauche",alignRight:"\xc0 droite",alignCenter:"Centr\xe9",alignJustify:"Justifi\xe9",list:"Liste",orderList:"Ordonn\xe9e",unorderList:"Non-ordonn\xe9e",horizontalRule:"Ligne horizontale",hr_solid:"Solide",hr_dotted:"Points",hr_dashed:"Tirets",table:"Table",link:"Lien",math:"Math",image:"Image",video:"Video",audio:"Audio",fullScreen:"Plein \xe9cran",showBlocks:"Voir les blocs",codeView:"Voir le code",undo:"Annuler",redo:"R\xe9tablir",preview:"Pr\xe9visualiser",print:"Imprimer",tag_p:"Paragraphe",tag_div:"Normal (DIV)",tag_h:"Titre",tag_blockquote:"Citation",tag_pre:"Code",template:"Template",lineHeight:"Hauteur de la ligne",paragraphStyle:"Style de paragraphe",textStyle:"Style de texte",imageGallery:"Galerie d'images",dir_ltr:"De gauche \xe0 droite",dir_rtl:"De droite \xe0 gauche",mention:"Mention"},dialogBox:{linkBox:{title:"Ins\xe9rer un lien",url:"Adresse URL du lien",text:"Texte \xe0 afficher",newWindowCheck:"Ouvrir dans une nouvelle fen\xeatre",downloadLinkCheck:"Lien de t\xe9l\xe9chargement",bookmark:"Signet"},mathBox:{title:"Math",inputLabel:"Notation math\xe9matique",fontSizeLabel:"Taille",previewLabel:"Pr\xe9visualiser"},imageBox:{title:"Ins\xe9rer une image",file:"S\xe9lectionner le fichier",url:"Adresse URL du fichier",altText:"Texte Alternatif"},videoBox:{title:"Ins\xe9rer une vid\xe9o",file:"S\xe9lectionner le fichier",url:"URL d\u2019int\xe9gration du m\xe9dia, YouTube/Vimeo"},audioBox:{title:"Ins\xe9rer un fichier audio",file:"S\xe9lectionner le fichier",url:"Adresse URL du fichier"},browser:{tags:"Mots cl\xe9s",search:"Chercher"},caption:"Ins\xe9rer une description",close:"Fermer",submitButton:"Appliquer",revertButton:"Revenir en arri\xe8re",proportion:"Maintenir le rapport hauteur/largeur",basic:"Basique",left:"Gauche",right:"Droite",center:"Centr\xe9",width:"Largeur",height:"Hauteur",size:"Taille",ratio:"Rapport"},controller:{edit:"Modifier",unlink:"Supprimer un lien",remove:"Effacer",insertRowAbove:"Ins\xe9rer une ligne en dessous",insertRowBelow:"Ins\xe9rer une ligne au dessus",deleteRow:"Effacer la ligne",insertColumnBefore:"Ins\xe9rer une colonne avant",insertColumnAfter:"Ins\xe9rer une colonne apr\xe8s",deleteColumn:"Effacer la colonne",fixedColumnWidth:"Largeur de colonne fixe",resize100:"Redimensionner \xe0 100%",resize75:"Redimensionner \xe0 75%",resize50:"Redimensionner \xe0 50%",resize25:"Redimensionner \xe0 25%",autoSize:"Taille automatique",mirrorHorizontal:"Mirroir, Horizontal",mirrorVertical:"Mirroir, Vertical",rotateLeft:"Rotation \xe0 gauche",rotateRight:"Rotation \xe0 droite",maxSize:"Taille max",minSize:"Taille min",tableHeader:"En-t\xeate de table",mergeCells:"Fusionner les cellules",splitCells:"Diviser les Cellules",HorizontalSplit:"Scission horizontale",VerticalSplit:"Scission verticale"},menu:{spaced:"Espacement",bordered:"Ligne de d\xe9marcation",neon:"N\xe9on",translucent:"Translucide",shadow:"Ombre",code:"Code"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"fr",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},34361(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"he",toolbar:{default:"\u
105d1\u05e8\u05d9\u05e8\u05ea \u05de\u05d7\u05d3\u05dc",save:"\u05e9\u05de\u05d5\u05e8",font:"\u05d2\u05d5\u05e4\u05df",formats:"\u05e2\u05d9\u05e6\u05d5\u05d1",fontSize:"\u05d2\u05d5\u05d3\u05dc",bold:"\u05de\u05d5\u05d3\u05d2\u05e9",underline:"\u05e7\u05d5 \u05ea\u05d7\u05ea\u05d5\u05df",italic:"\u05e0\u05d8\u05d5\u05d9",strike:"\u05e7\u05d5 \u05d7\u05d5\u05e6\u05d4",subscript:"\u05e2\u05d9\u05dc\u05d9",superscript:"\u05ea\u05d7\u05ea\u05d9",removeFormat:"\u05d4\u05e1\u05e8 \u05e2\u05d9\u05e6\u05d5\u05d1",fontColor:"\u05e6\u05d1\u05e2 \u05d2\u05d5\u05e4\u05df",hiliteColor:"\u05e6\u05d1\u05e2 \u05e7\u05d5 \u05ea\u05d7\u05ea\u05d5\u05df",indent:"\u05d4\u05d2\u05d3\u05dc \u05db\u05e0\u05d9\u05e1\u05d4",outdent:"\u05d4\u05e7\u05d8\u05df \u05db\u05e0\u05d9\u05e1\u05d4",align:"\u05d9\u05d9\u05e9\u05d5\u05e8",alignLeft:"\u05d9\u05d9\u05e9\u05e8 \u05dc\u05e9\u05de\u05d0\u05dc",alignRight:"\u05d9\u05d9\u05e9\u05e8 \u05dc\u05d9\u05de\u05d9\u05df",alignCenter:"\u05de\u05e8\u05db\u05d6",alignJustify:"\u05d9\u05d9\u05e9\u05e8 \u05dc\u05e9\u05e0\u05d9 \u05d4\u05e6\u05d3\u05d3\u05d9\u05dd",list:"\u05e8\u05e9\u05d9\u05de\u05d4",orderList:"\u05de\u05e1\u05e4\u05d5\u05e8",unorderList:"\u05ea\u05d1\u05dc\u05d9\u05d8\u05d9\u05dd",horizontalRule:"\u05e7\u05d5 \u05d0\u05d5\u05e4\u05e7\u05d9",hr_solid:"\u05e7\u05d5",hr_dotted:"\u05e0\u05e7\u05d5\u05d3\u05d5\u05ea",hr_dashed:"\u05de\u05e7\u05e4\u05d9\u05dd",table:"\u05d8\u05d1\u05dc\u05d4",link:"\u05e7\u05d9\u05e9\u05d5\u05e8",math:"\u05de\u05ea\u05de\u05d8\u05d9\u05e7\u05d4",image:"\u05ea\u05de\u05d5\u05e0\u05d4",video:"\u05d7\u05d5\u05d6\u05d9",audio:"\u05e9\u05de\u05e2",fullScreen:"\u05de\u05e1\u05da \u05de\u05dc\u05d0",showBlocks:"\u05d4\u05e6\u05d2 \u05d2\u05d5\u05e9\u05d9\u05dd",codeView:"\u05d4\u05e6\u05d2 \u05e7\u05d5\u05d3",undo:"\u05d1\u05d8\u05dc",redo:"\u05d7\u05d6\u05d5\u05e8",preview:"\u05ea\u05e6\u05d5\u05d2\u05d4 \u05de\u05e7\u05d3\u05d9\u05de\u05d4",print:"\u05d4\u05d3\u05e4\u05e1",tag_p:"\u05e4\u05e1\u05e7\u05d4",tag_div:"\u05e8\u05d2\u05d9\u05dc\u05d4 (DIV)",tag_h:"\u05db\u05d5\u05ea\u05e8\u05ea",tag_blockquote:"\u05e6\u05d9\u05d8\u05d5\u05d8",tag_pre:"\u05e7\u05d5\u05d3",template:"\u05ea\u05d1\u05e0\u05d9\u05ea",lineHeight:"\u05d2\u05d5\u05d1\u05d4 \u05d4\u05e9\u05d5\u05e8\u05d4",paragraphStyle:"\u05e1\u05d2\u05e0\u05d5\u05df \u05e4\u05e1\u05e7\u05d4",textStyle:"\u05e1\u05d2\u05e0\u05d5\u05df \u05d2\u05d5\u05e4\u05df",imageGallery:"\u05d2\u05dc\u05e8\u05d9\u05ea \u05ea\u05de\u05d5\u05e0\u05d5\u05ea",dir_ltr:"\u05de\u05e9\u05de\u05d0\u05dc \u05dc\u05d9\u05de\u05d9\u05df",dir_rtl:"\u05de\u05d9\u05de\u05d9\u05df \u05dc\u05e9\u05de\u05d0\u05dc",mention:"\u05d4\u05d6\u05db\u05e8"},dialogBox:{linkBox:{title:"\u05d4\u05db\u05e0\u05e1 \u05e7\u05e9\u05d5\u05e8",url:"\u05db\u05ea\u05d5\u05d1\u05ea \u05e7\u05e9\u05d5\u05e8",text:"\u05ea\u05d9\u05d0\u05d5\u05e8",newWindowCheck:"\u05e4\u05ea\u05d7 \u05d1\u05d7\u05dc\u05d5\u05df \u05d7\u05d3\u05e9",downloadLinkCheck:"\u05e7\u05d9\u05e9\u05d5\u05e8 \u05dc\u05d4\u05d5\u05e8\u05d3\u05d4",bookmark:"\u05e1\u05de\u05e0\u05d9\u05d4"},mathBox:{title:"\u05e0\u05d5\u05e1\u05d7\u05d4",inputLabel:"\u05e1\u05d9\u05de\u05e0\u05d9\u05dd \u05de\u05ea\u05de\u05d8\u05d9\u05dd",fontSizeLabel:"\u05d2\u05d5\u05d3\u05dc \u05d2\u05d5\u05e4\u05df",previewLabel:"\u05ea\u05e6\u05d5\u05d2\u05d4 \u05de\u05e7\u05d3\u05d9\u05de\u05d4"},imageBox:{title:"\u05d4\u05db\u05e0\u05e1 \u05ea\u05de\u05d5\u05e0\u05d4",file:"\u05d1\u05d7\u05e8 \u05de\u05e7\u05d5\u05d1\u05e5",url:"\u05db\u05ea\u05d5\u05d1\u05ea URL \u05ea\u05de\u05d5\u05e0\u05d4",altText:"\u05ea\u05d9\u05d0\u05d5\u05e8 (\u05ea\u05d2\u05d9\u05ea alt)"},videoBox:{title:"\u05d4\u05db\u05e0\u05e1 \u05e1\u05e8\u05d8\u05d5\u05df",file:"\u05d1\u05d7\u05e8 \u05de\u05e7\u05d5\u05d1\u05e5",url:"\u05db\u05ea\u05d5\u05d1\u05ea \u05d4\u05d8\u05de\u05e2\u05d4 YouTube/Vimeo"},audioBox:{title:"\u05d4\u05db\u05e0\u05e1 \u05e9\u05de\u05e2",file:"\u05d1\u05d7\u05e8 \u05de\u05e7\u05d5\u05d1\u05e5",url:"\u05db\u05ea\u05d5\u05d1\u05ea URL \u05e9\u05de\u05e2"},browser:{tags:"\u05ea\u05d2",search:"\u05d7\u05e4\u05e9"},caption:"\u05d4\u05db\u05e0\u05e1 \u05ea\u05d9\u05d0\u05d5\u05e8",close:"\u05e1\u05d2\u05d5\u05e8",submitButton:"\u05e9\u05dc\u05d7",revertButton:"\u05d1\u05d8\u05dc",proportion:"\u05e9\u05de\u05e8 \u05d9\u05d7\u05e1",basic:"\u05d1\u05e1\u05d9\u05e1\u05d9",left:"\u05e9\u05de\u05d0\u05dc",right:"\u05d9\u05de\u05d9\u05df",center:"\u05de\u05e8\u
105db\u05d6",width:"\u05e8\u05d5\u05d7\u05d1",height:"\u05d2\u05d5\u05d1\u05d4",size:"\u05d2\u05d5\u05d3\u05dc",ratio:"\u05d9\u05d7\u05e1"},controller:{edit:"\u05e2\u05e8\u05d5\u05da",unlink:"\u05d4\u05e1\u05e8 \u05e7\u05d9\u05e9\u05d5\u05e8\u05d9\u05dd",remove:"\u05d4\u05e1\u05e8",insertRowAbove:"\u05d4\u05db\u05e0\u05e1 \u05e9\u05d5\u05e8\u05d4 \u05de\u05e2\u05dc",insertRowBelow:"\u05d4\u05db\u05e0\u05e1 \u05e9\u05d5\u05e8\u05d4 \u05de\u05ea\u05d7\u05ea",deleteRow:"\u05de\u05d7\u05e7 \u05e9\u05d5\u05e8\u05d4",insertColumnBefore:"\u05d4\u05db\u05e0\u05e1 \u05e2\u05de\u05d5\u05d3\u05d4 \u05dc\u05e4\u05e0\u05d9",insertColumnAfter:"\u05d4\u05db\u05e0\u05e1 \u05e2\u05de\u05d5\u05d3\u05d4 \u05d0\u05d7\u05e8\u05d9",deleteColumn:"\u05de\u05d7\u05e7 \u05e2\u05de\u05d5\u05d3\u05d4",fixedColumnWidth:"\u05e7\u05d1\u05e2 \u05e8\u05d5\u05d7\u05d1 \u05e2\u05de\u05d5\u05d3\u05d5\u05ea",resize100:"\u05dc\u05dc\u05d0 \u05d4\u05e7\u05d8\u05e0\u05d4",resize75:"\u05d4\u05e7\u05d8\u05df 75%",resize50:"\u05d4\u05e7\u05d8\u05df 50%",resize25:"\u05d4\u05e7\u05d8\u05df 25%",autoSize:"\u05d4\u05e7\u05d8\u05df \u05d0\u05d5\u05d8\u05d5\u05de\u05d8\u05d9\u05ea",mirrorHorizontal:"\u05d4\u05e4\u05d5\u05da \u05dc\u05e8\u05d5\u05d7\u05d1",mirrorVertical:"\u05d4\u05e4\u05d5\u05da \u05dc\u05d2\u05d5\u05d1\u05d4",rotateLeft:"\u05e1\u05d5\u05d1\u05d1 \u05e9\u05de\u05d0\u05dc\u05d4",rotateRight:"\u05e1\u05d5\u05d1\u05d1 \u05d9\u05de\u05d9\u05e0\u05d4",maxSize:"\u05d2\u05d5\u05d3\u05dc \u05de\u05e8\u05d1\u05d9",minSize:"\u05d2\u05d5\u05d3\u05dc \u05de\u05d6\u05e2\u05e8\u05d9",tableHeader:"\u05db\u05d5\u05ea\u05e8\u05ea \u05d8\u05d1\u05dc\u05d4",mergeCells:"\u05de\u05d6\u05d2 \u05ea\u05d0\u05d9\u05dd",splitCells:"\u05e4\u05e6\u05dc \u05ea\u05d0",HorizontalSplit:"\u05e4\u05e6\u05dc \u05dc\u05d2\u05d5\u05d1\u05d4",VerticalSplit:"\u05e4\u05e6\u05dc \u05dc\u05e8\u05d5\u05d7\u05d1"},menu:{spaced:"\u05de\u05e8\u05d5\u05d5\u05d7",bordered:"\u05d1\u05e2\u05dc \u05de\u05d9\u05ea\u05d0\u05e8",neon:"\u05d6\u05d5\u05d4\u05e8",translucent:"\u05e9\u05e7\u05d5\u05e3 \u05dc\u05de\u05d7\u05e6\u05d4",shadow:"\u05e6\u05dc",code:"\u05e7\u05d5\u05d3"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"he",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},20041(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"hu",toolbar:{default:"Alap\xe9rtelmezett",save:"Ment\xe9s",font:"Bet\u0171t\xedpus",formats:"Form\xe1z\xe1s",fontSize:"Bet\u0171m\xe9ret",bold:"F\xe9lk\xf6v\xe9r",underline:"Al\xe1h\xfazott",italic:"D\u0151lt",strike:"\xc1th\xfazott",subscript:"Als\xf3 index",superscript:"Fels\u0151 index",removeFormat:"Form\xe1z\xe1s t\xf6rl\xe9se",fontColor:"Bet\u0171sz\xedn",hiliteColor:"H\xe1tt\xe9rsz\xedn",indent:"Beh\xfaz\xe1s n\xf6vel\xe9se",outdent:"Beh\xfaz\xe1s cs\xf6kkent\xe9se",align:"Igaz\xedt\xe1s",alignLeft:"Balra igaz\xedt\xe1s",alignRight:"Jobbra igaz\xedt\xe1s",alignCenter:"K\xf6z\xe9pre igaz\xedt\xe1s",alignJustify:"Sorkiz\xe1rt",list:"Lista",orderList:"Sz\xe1mozott lista",unorderList:"Sz\xe1mozatlan lista",horizontalRule:"Elv\xe1laszt\xf3",hr_solid:"Folytonos",hr_dotted:"Pontozott",hr_dashed:"Szaggatott",table:"T\xe1bl\xe1zat",link:"Hivatkoz\xe1s",math:"Matematika",image:"K\xe9p",video:"Vide\xf3",audio:"Hang",fullScreen:"Teljes k\xe9perny\u0151",showBlocks:"Blokkok megjelen\xedt\xe9se",codeView:"Forr\xe1sk\xf3d n\xe9zet",undo:"Visszavon\xe1s",redo:"Visszavon\xe1s visszavon\xe1sa",preview:"El\u0151n\xe9zet",print:"Nyomtat\xe1s",tag_p:"Bekezd\xe9s",tag_div:"Norm\xe1l (DIV)",tag_h:"Fejl\xe9c",tag_blockquote:"Id\xe9zet",tag_pre:"K\xf3d",template:"Minta",lineHeight:"Sormagass\xe1g",paragraphStyle:"Bekezd\xe9sst\xedlus",textStyle:"Karakterst\xedlus",imageGallery:"K\xe9pgall\xe9ria",dir_ltr:"Balr\xf3l jobbra",dir_rtl:"Jobbr\xf3l balra",mention:"Eml\xedt\xe9s"},dialogBox:{linkBox:{title:"Link besz\xfar\xe1sa",url:"URL",text:"Megjelen\xedtett sz\xf6veg",newWindowCheck:"Megnyit\xe1s \xfaj ablakban",downloadLinkCheck:"Let\xf6lt\xe9si hivatkoz\xe1s",bookmark:"K\xf6nyvjelz\u0151"}
1,mathBox:{title:"Matematika",inputLabel:"Matematikai jel\xf6l\xe9sek",fontSizeLabel:"Bet\u0171m\xe9ret",previewLabel:"El\u0151n\xe9zet"},imageBox:{title:"K\xe9p besz\xfar\xe1sa",file:"F\xe1jlfelt\xf6lt\xe9s",url:"K\xe9phivatkoz\xe1s",altText:"Alternat\xedv sz\xf6veg"},videoBox:{title:"Vide\xf3 besz\xfar\xe1sa",file:"F\xe1jlfelt\xf6lt\xe9s",url:"Be\xe1gyazhat\xf3 URL, YouTube/Vimeo"},audioBox:{title:"Hang besz\xfar\xe1sa",file:"F\xe1jlfelt\xf6lt\xe9s",url:"Hang URL"},browser:{tags:"C\xedmk\xe9k",search:"Keres\xe9s"},caption:"K\xe9pal\xe1\xedr\xe1s",close:"Bez\xe1r\xe1s",submitButton:"K\xfcld\xe9s",revertButton:"M\xe9gse",proportion:"M\xe9retkorl\xe1tok",basic:"Alapszint\u0171",left:"Balra",right:"Jobbra",center:"K\xf6z\xe9pre",width:"Sz\xe9less\xe9g",height:"Magass\xe1g",size:"M\xe9ret",ratio:"K\xe9par\xe1ny"},controller:{edit:"Szerkeszt\xe9s",unlink:"Link elt\xe1vol\xedt\xe1sa",remove:"T\xf6rl\xe9s",insertRowAbove:"\xdaj sor f\xf6l\xf6tte",insertRowBelow:"\xdaj sor alatta",deleteRow:"Sor t\xf6rl\xe9se",insertColumnBefore:"\xdaj oszlop balra",insertColumnAfter:"\xdaj oszlop jobbra",deleteColumn:"Oszlop t\xf6rl\xe9se",fixedColumnWidth:"R\xf6gz\xedtett oszlopsz\xe9less\xe9g",resize100:"\xc1tm\xe9retez\xe9s: 100%",resize75:"\xc1tm\xe9retez\xe9s: 75%",resize50:"\xc1tm\xe9retez\xe9s: 50%",resize25:"\xc1tm\xe9retez\xe9s: 25%",autoSize:"Automatikus m\xe9ret",mirrorHorizontal:"V\xedzszintes t\xfckr\xf6z\xe9s",mirrorVertical:"F\xfcgg\u0151leges t\xfckr\xf6z\xe9s",rotateLeft:"Forgat\xe1s balra",rotateRight:"Forgat\xe1s jobbra",maxSize:"Maxim\xe1lis m\xe9ret",minSize:"Minim\xe1lis m\xe9ret",tableHeader:"T\xe1bl\xe1zatfejl\xe9c",mergeCells:"Cell\xe1k egyes\xedt\xe9se",splitCells:"Cell\xe1k sz\xe9tv\xe1laszt\xe1sa",HorizontalSplit:"Sz\xe9tv\xe1laszt\xe1s v\xedzszintesen",VerticalSplit:"Sz\xe9tv\xe1laszt\xe1s f\xfcgg\u0151legesen"},menu:{spaced:"Ritk\xedtott",bordered:"Keretezett",neon:"Neon",translucent:"\xc1ttetsz\u0151",shadow:"\xc1rny\xe9k",code:"K\xf3d"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"hu",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},26688(e,t,i){i.r(t),i.d(t,{ckb:()=>l.a,cs:()=>s.a,da:()=>r.a,de:()=>d.a,en:()=>h.a,es:()=>p.a,fa:()=>f.a,fr:()=>_.a,he:()=>y.a,hu:()=>C.a,it:()=>S.a,ja:()=>E.a,km:()=>z.a,ko:()=>N.a,lv:()=>A.a,nl:()=>I.a,pl:()=>H.a,pt_br:()=>D.a,ro:()=>V.a,ru:()=>U.a,se:()=>Z.a,tr:()=>q.a,ua:()=>$.a,ur:()=>K.a,zh_cn:()=>J.a});var n=i(99e3),l=i.n(n),o=i(76696),s=i.n(o),a=i(18217),r=i.n(a),c=i(34181),d=i.n(c),u=i(68381),h=i.n(u),g=i(1402),p=i.n(g),m=i(48383),f=i.n(m),b=i(78210),_=i.n(b),v=i(34361),y=i.n(v),w=i(20041),C=i.n(w),x=i(49956),S=i.n(x),k=i(25739),E=i.n(k),L=i(49732),N=i.n(L),T=i(13614),z=i.n(T),B=i(80628),A=i.n(B),R=i(72740),I=i.n(R),M=i(36554),H=i.n(M),O=i(72449),D=i.n(O),F=i(83265),V=i.n(F),P=i(21127),U=i.n(P),W=i(63278),Z=i.n(W),j=i(37840),q=i.n(j),G=i(50224),$=i.n(G),Y=i(97497),K=i.n(Y),X=i(32638),J=i.n(X);const Q={ckb:l(),cs:s(),da:r(),de:d(),en:h(),es:p(),fa:f(),fr:_(),he:y(),hu:C(),it:S(),ja:E(),ko:N(),km:z(),lv:A(),nl:I(),pl:H(),pt_br:D(),ro:V(),ru:U(),se:Z(),tr:q(),ua:$(),ur:K(),zh_cn:J()};i.d(t,["default",0,Q])},49956(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"it",toolbar:{default:"Predefinita",save:"Salva",font:"Font",formats:"Formato",fontSize:"Grandezza",bold:"Grassetto",underline:"Sottolineato",italic:"Corsivo",strike:"Barrato",subscript:"Apice",superscript:"Pedice",removeFormat:"Rimuovi formattazione",fontColor:"Colore testo",hiliteColor:"Colore sottolineatura",indent:"Aumenta rientro",outdent:"Riduci rientro",align:"Allinea",alignLeft:"Allinea a sinistra",alignRight:"Allinea a destra",alignCenter:"Allinea al centro",alignJustify:"Giustifica testo",list:"Elenco",orderList:"Elenco numerato",unorderList:"Elenco puntato",horizontalRule:"Linea orizzontale",hr_solid:"Linea continua",hr_dotted:"Puntini",hr_dashed:"Trattini",table:"Tabella",link:"Collegamento ipertestuale",math:"Formula matematica",image:"Immagine",video:"Video",audio:"Audio",fullScreen:"A tutto schermo",showBlocks:"Visualizza blocchi",codeView:"Visualizza codice",undo:"Annulla",redo:"Ripristina",preview:"Anteprima",print:"Stampa",tag_p:"Paragrafo",tag_div:"Normale (DIV)",tag_h:"Titolo",tag_blockquote:"Citazione",tag_pre:"Codice",template:"Modello",lineHeight:"Interlinea",paragraphStyle:"Stile paragrafo",textStyle:"Stile testo",imageGallery:"Galleria di immagini",dir_ltr:"Da sinistra a destra",dir_rtl:"Da destra a sinistra",mention:"Menzione"},dialogBox:{linkBox:{title:"Inserisci un link",url:"Indirizzo",text:"Testo da visualizzare",newWindowCheck:"Apri in una nuova finestra",downloadLinkCheck:"Link per scaricare",bookmark:"Segnalibro"}
1,mathBox:{title:"Matematica",inputLabel:"Notazione matematica",fontSizeLabel:"Grandezza testo",previewLabel:"Anteprima"},imageBox:{title:"Inserisci immagine",file:"Seleziona da file",url:"Indirizzo immagine",altText:"Testo alternativo (ALT)"},videoBox:{title:"Inserisci video",file:"Seleziona da file",url:"Indirizzo video di embed, YouTube/Vimeo"},audioBox:{title:"Inserisci audio",file:"Seleziona da file",url:"Indirizzo audio"},browser:{tags:"tag",search:"Ricerca"},caption:"Inserisci didascalia",close:"Chiudi",submitButton:"Invia",revertButton:"Annulla",proportion:"Proporzionale",basic:"Da impostazione",left:"Sinistra",right:"Destra",center:"Centrato",width:"Larghezza",height:"Altezza",size:"Dimensioni",ratio:"Rapporto"},controller:{edit:"Modifica",unlink:"Elimina link",remove:"Rimuovi",insertRowAbove:"Inserisci riga sopra",insertRowBelow:"Inserisci riga sotto",deleteRow:"Cancella riga",insertColumnBefore:"Inserisci colonna prima",insertColumnAfter:"Inserisci colonna dopo",deleteColumn:"Cancella colonna",fixedColumnWidth:"Larghezza delle colonne fissa",resize100:"Ridimensiona 100%",resize75:"Ridimensiona 75%",resize50:"Ridimensiona 50%",resize25:"Ridimensiona 25%",autoSize:"Ridimensione automatica",mirrorHorizontal:"Capovolgi orizzontalmente",mirrorVertical:"Capovolgi verticalmente",rotateLeft:"Ruota a sinistra",rotateRight:"Ruota a destra",maxSize:"Dimensione massima",minSize:"Dimensione minima",tableHeader:"Intestazione tabella",mergeCells:"Unisci celle",splitCells:"Dividi celle",HorizontalSplit:"Separa orizontalmente",VerticalSplit:"Separa verticalmente"},menu:{spaced:"Spaziato",bordered:"Bordato",neon:"Luminoso",translucent:"Traslucido",shadow:"Ombra",code:"Codice"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"it",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG una finestra con un documento");return i(e)}:i(t)},25739(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"ja",toolbar:{default:"\u30c7\u30d5\u30a9\u30eb\u30c8",save:"\u4fdd\u5b58",font:"\u30d5\u30a9\u30f3\u30c8",formats:"\u6bb5\u843d\u5f62\u5f0f",fontSize:"\u30b5\u30a4\u30ba",bold:"\u592a\u5b57",underline:"\u4e0b\u7dda",italic:"\u30a4\u30bf\u30ea\u30c3\u30af",strike:"\u53d6\u308a\u6d88\u3057\u7dda",subscript:"\u4e0b\u4ed8\u304d",superscript:"\u4e0a\u4ed8\u304d",removeFormat:"\u5f62\u5f0f\u3092\u524a\u9664",fontColor:"\u6587\u5b57\u8272",hiliteColor:"\u6587\u5b57\u306e\u80cc\u666f\u8272",indent:"\u30a4\u30f3\u30c7\u30f3\u30c8",outdent:"\u30a4\u30f3\u30c7\u30f3\u30c8",align:"\u30bd\u30fc\u30c8",alignLeft:"\u5de6\u63c3\u3048",alignRight:"\u53f3\u63c3\u3048",alignCenter:"\u4e2d\u592e\u63c3\u3048",alignJustify:"\u4e21\u7aef\u63c3\u3048",list:"\u30ea\u30b9\u30c8",orderList:"\u6570\u5024\u30d6\u30ea\u30c3\u30c8",unorderList:"\u5186\u5f62\u30d6\u30ea\u30c3\u30c8",horizontalRule:"\u6c34\u5e73\u7dda\u3092\u633f\u5165",hr_solid:"\u5b9f\u7dda",hr_dotted:"\u70b9\u7dda",hr_dashed:"\u30c0\u30c3\u30b7\u30e5",table:"\u30c6\u30fc\u30d6\u30eb",link:"\u30ea\u30f3\u30af",math:"\u6570\u5b66",image:"\u753b\u50cf",video:"\u52d5\u753b",audio:"\u30aa\u30fc\u30c7\u30a3\u30aa",fullScreen:"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3",showBlocks:"\u30d6\u30ed\u30c3\u30af\u8868\u793a",codeView:"HTML\u306e\u7de8\u96c6",undo:"\u5143\u306b\u623b\u3059",redo:"\u518d\u5b9f\u884c",preview:"\u30d7\u30ec\u30d3\u30e5\u30fc",print:"\u5370\u5237",tag_p:"\u672c\u6587",tag_div:"\u57fa\u672c\uff08DIV\uff09",tag_h:"\u30bf\u30a4\u30c8\u30eb",tag_blockquote:"\u5f15\u7528",tag_pre:"\u30b3\u30fc\u30c9",template:"\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8",lineHeight:"\u884c\u306e\u9ad8\u3055",paragraphStyle:"\u6bb5\u843d\u30b9\u30bf\u30a4\u30eb",textStyle:"\u30c6\u30ad\u30b9\u30c8\u30b9\u30bf\u30a4\u30eb",imageGallery:"\u30a4\u30e1\u30fc\u30b8\u30ae\u30e3\u30e9\u30ea\u30fc",dir_ltr:"\u5de6\u304b\u3089\u53f3\u3078",dir_rtl:"\u53f3\u304b\u3089\u5de6\u306b",mention:"\u8a00\u53ca\u3059\u308b"},dialogBox:{linkBox:{title:"\u30ea\u30f3\u30af\u306e\u633f\u5165",url:"\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30a2\u30c9\u30ec\u30b9",text:"\u753b\u9762\u306e\u30c6\u30ad\u30b9\u30c8",newWindowCheck:"\u5225\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u958b\u304f",downloadLinkCheck:"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30ea\u30f3\u30af",bookmark:"\u30d6\u30c3\u30af\u30de\u30fc\u30af"},mathBox:{title:"\u6570\u5b66",inputLabel:"\u6570\u5b66\u8868\u8a18",fontSizeLabel:"\u30b5\u30a4\u30ba",previewLabel:"\u30d7\u30ec\u30d3\u30e5\u30fc"},imageBox:{title:"\u753b\u50cf\u306e\u633f\u5165",file:"\u30d5\u30a1\u30a4\u30eb\u306e\u9078\u629e",url:"\u30a4\u30e1\u30fc\u30b8\u30a2\u30c9\u30ec\u30b9",altText:"\u7f6e\u63db\u6587\u5b57\u5217"},videoBox:{title:"\u52d5\u753b\u3092\u633f\u5165",file:"\u30d5\u30a1\u30a4\u30eb\u306e\u9078\u629e",url:"\u30e1\u30c7\u30a3\u30a2\u57cb\u3081\u8fbc\u307f\u30a2\u30c9\u30ec\u30b9, YouTube/Vimeo"},audioBox:{title:"\u30aa\u30fc\u30c7\u30a3\u30aa\u3092\u633f\u5165",file:"\u30d5\u30a1\u30a4\u30eb\u306e\u9078\u629e",url:"\u30aa\u30fc\u30c7\u30a3\u30aa\u30a2\u30c9\u30ec\u30b9"},browser:{tags:"\u30bf\u30b0",search:"\u63a2\u3059"},caption:"\u8aac\u660e\u4ed8\u3051",close:"\u9589\u3058\u308b",submitButton:"\u78ba\u8a8d",revertButton:"\u5143\u306b\u623b\u3059",proportion:"\u306e\u5272\u5408\u30ab\u30b9\u30bf\u30de\u30a4\u30ba",basic:"\u57fa\u672c",left:"\u5de6",right:"\u53f3",center:"\u4e2d\u592e",width:"\u6a2a",height:"\u7e26",size:"\u30b5\u30a4\u30ba",ratio:"\u6bd4\u7387"},controller:{edit:"\u7de8\u96c6",unlink:"\u30ea\u30f3\u30af\u89e3\u9664",remove:"\u524a\u9664",insertRowAbove:"\u4e0a\u306b\u884c\u3092\u633f\u5165",insertRowBelow:"\u4e0b\u306b\u884c\u3092\u633f\u5165",deleteRow:"\u884c\u306e\u524a\u9664",insertColumnBefore:"\u5de6\u306b\u5217\u3092\u633f\u5165",insertColumnAfter:"\u53f3\u306b\u5217\u3092\u633f\u5165",deleteColumn:"\u5217\u3092\u524a\u9664\u3059\u308b",fixedColumnWidth:"\u56fa\u5b9a\u5217\u5e45",resize100:"100\uff05 \u30b5\u30a4\u30ba",resize75:"75\uff05 \u30b5\u30a4\u30ba",resize50:"50\uff05 \u30b5\u30a4\u30ba",resize25:"25\uff05 \u30b5\u30a4\u30ba",autoSize:"\u81ea\u52d5\u30b5\u30a4\u30ba",mirrorHorizontal:"\u5de6\u53f3\u53cd\u8ee2",mirrorVertical:"\u4e0a\u4e0b\u53cd\u8ee2",rotateLeft:"\u5de6\u306b\u56de\u8ee2",rotateRight:"\u53f3\u306b\u56de\u8ee2",maxSize:"\u6700\u5927\u30b5\u30a4\u30ba",minSize:"\u6700\u5c0f\u30b5\u30a4\u30ba",tableHeader:"\u8868\u306e\u30d8\u30c3\u30c0\u30fc",mergeCells:"\u30bb\u30eb\u306e\u7d50\u5408",splitCells:"\u30bb\u30eb\u3092\u5206\u5272",HorizontalSplit:"\u6a2a\u5206\u5272",VerticalSplit:"\u5782\u76f4\u5206\u5272"},menu:{spaced:"\u6587\u5b57\u9593\u9694",bordered:"\u5883\u754c\u7dda",neon:"\u30cd\u30aa\u30f3",translucent:"\u534a\u900f\u660e",shadow:"\u5f71",code:"\u30b3\u30fc\u30c9"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,
1configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"ja",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},13614(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"km",toolbar:{default:"\u179b\u17c6\u1793\u17b6\u17c6\u178a\u17be\u1798",save:"\u179a\u1780\u17d2\u179f\u17b6\u1791\u17bb\u1780",font:"\u1796\u17bb\u1798\u17d2\u1796\u17a2\u1780\u17d2\u179f\u179a",formats:"\u1791\u17d2\u179a\u1784\u17cb\u1791\u17d2\u179a\u17b6\u1799",fontSize:"\u1791\u17c6\u17a0\u17c6\u17a2\u1780\u17d2\u179f\u179a",bold:"\u17a2\u1780\u17d2\u179f\u179a\u178a\u17b7\u178f",underline:"\u1782\u17bc\u179f\u1794\u1793\u17d2\u1791\u17b6\u178f\u17cb\u1780\u17d2\u179a\u17c4\u1798",italic:"\u17a2\u1780\u17d2\u179f\u179a\u1791\u17d2\u179a\u17c1\u178f",strike:"\u1786\u17bc\u178f\u17a2\u1780\u17d2\u179f\u179a",subscript:"\u17a2\u1780\u17d2\u179f\u179a\u178f\u17bc\u1785\u1780\u17d2\u179a\u17c4\u1798",superscript:"\u17a2\u1780\u17d2\u179f\u179a\u178f\u17bc\u1785\u179b\u17be",removeFormat:"\u179b\u17bb\u1794\u1791\u17d2\u179a\u1784\u17cb\u1791\u17d2\u179a\u17b6\u1799",fontColor:"\u1796\u178e\u17cc\u17a2\u1780\u17d2\u179f\u179a",hiliteColor:"\u1796\u178e\u17cc\u1794\u1793\u17d2\u179b\u17b7\u1785",indent:"\u1785\u17bc\u179b\u1794\u1793\u17d2\u1791\u17b6\u178f\u17cb",outdent:"\u1785\u17c1\u1789\u1794\u1793\u17d2\u1791\u17b6\u178f\u17cb",align:"\u178f\u1798\u17d2\u179a\u17b9\u1798",alignLeft:"\u178f\u1798\u17d2\u179a\u17b9\u1798\u1786\u17d2\u179c\u17c1\u1784",alignRight:"\u178f\u1798\u17d2\u179a\u17b9\u1798\u179f\u17d2\u178a\u17b6\u17c6",alignCenter:"\u178f\u1798\u17d2\u179a\u17b9\u1798\u1780\u178e\u17d2\u178f\u17b6\u179b",alignJustify:"\u178f\u1798\u17d2\u179a\u17b9\u1798\u179f\u1798\u17d2\u179a\u17bd\u179b",list:"\u1794\u1789\u17d2\u1787\u17b8",orderList:"\u1794\u1789\u17d2\u1787\u17b8\u179b\u17c1\u1781\u179b\u17c6\u178a\u17b6\u1794\u17cb",unorderList:"\u1794\u1789\u17d2\u1787\u17b8\u179f\u1789\u17d2\u1789\u17b6\u179b\u17c6\u178a\u17b6\u1794\u17cb",horizontalRule:"\u1794\u1793\u17d2\u1791\u17b6\u178f\u17cb\u1795\u17d2\u178f\u17c1\u1780",hr_solid:"\u1794\u1793\u17d2\u1791\u17b6\u178f\u17cb\u1781\u17d2\u179f\u17c2\u179f\u17d2\u1798\u17be",hr_dotted:"\u1794\u1793\u17d2\u1791\u17b6\u178f\u17cb\u1785\u17bb\u1785\u179f\u17d2\u1798\u17be",hr_dashed:"\u1794\u1793\u17d2\u1791\u17b6\u178f\u17cb\u178f\u17d2\u179a\u17c1\u179f\u17d2\u1798\u17be",table:"\u178f\u17b6\u179a\u17b6\u1784",link:"\u178f\u17c6\u178e",math:"\u1782\u178e\u17b7\u178f",image:"\u179a\u17bc\u1794\u1797\u17b6\u1796",video:"\u179c\u17b8\u178a\u17c1\u17a2\u17bc",audio:"\u17a2\u17bc\u178c\u17b8\u1799\u17bc",fullScreen:"\u17a2\u17c1\u1780\u17d2\u179a\u1784\u17cb\u1796\u17c1\u1789",showBlocks:"\u1794\u1784\u17d2\u17a0\u17b6\u1789\u1794\u17d2\u179b\u1780\u17cb",codeView:"\u1798\u17be\u179b\u1780\u17bc\u178a",undo:"\u1798\u17b7\u1793\u1792\u17d2\u179c\u17be\u179c\u17b7\u1789",redo:"\u1792\u17d2\u179c\u17be\u179c\u17b7\u1789",preview:"\u1798\u17be\u179b\u1787\u17b6\u1798\u17bb\u1793",print:"\u1794\u17c4\u17c7\u1796\u17bb\u1798\u17d2\u1796",tag_p:"\u1780\u1790\u17b6\u1781\u178e\u17d2\u178c",tag_div:"\u1792\u1798\u17d2\u1798\u178f\u17b6 (DIV)",tag_h:"\u1785\u17c6\u178e\u1784\u1787\u17be\u1784",tag_blockquote:"\u17a2\u178f\u17d2\u1790\u1794\u1791\u178a\u1780\u179f\u17d2\u179a\u1784\u17cb",tag_pre:"\u1780\u17bc\u178a",template:"\u1796\u17bb\u1798\u17d2\u1796",lineHeight:"\u1780\u1798\u17d2\u1796\u179f\u17cb\u1794\u1793\u17d2\u1791\u17b6\u178f\u17cb",paragraphStyle:"\u179a\u1785\u1793\u17b6\u1794\u17d0\u1791\u17d2\u1798\u1780\u1790\u17b6\u1781\u178e\u17d2\u178c",textStyle:"\u179a\u1785\u1793\u17b6\u1794\u17d0\u1791\u17d2\u1798\u17a2\u1780\u17d2\u179f\u179a",imageGallery:"\u179c\u17b7\u1785\u17b7\u178f\u17d2\u179a\u179f\u17b6\u179b\u179a\u17bc\u1794\u1797\u17b6\u1796",dir_ltr:"\u1796\u17b8\u1786\u17d2\u179c\u17c1\u1784\u1791\u17c5\u179f\u17d2\u178f\u17b6\u17c6",dir_rtl:"\u1796\u17b8\u179f\u17d2\u178f\u17b6\u17c6\u1791\u17c5\u1786\u17d2\u179c\u17c1\u1784",mention:"\u179b\u17be\u1780\u17a1\u17be\u1784"},dialogBox:{linkBox:{title:"\u1794\u1789\u17d2\u1785\u17bc\u179b\u178f\u17c6\u178e",url:"URL \u1791\u17c5\u178f\u17c6\u178e",text:"\u17a2\u178f\u17d2\u1790\u1794\u1791\u1794\u1784\u17d2\u17a0\u17b6\u1789",newWindowCheck:"\u1794\u17be\u1780\u1795\u17d2\u1791\u17b6\u17c6\u1784\u1780\u17d2\u1793\u17bb\u1784\u1790\u17d2\u1798\u17b8",downloadLinkCheck:"\u178f\u17c6\u178e\u1791\u17b6\u1789\u1799\u1780",bookmark:"\u1785\u17c6\u178e\u17b6\u17c6"},mathBox:{title:"\u1782\u178e\u17b7\u178f",inputLabel:"\u179f\u179a\u179f\u17c1\u179a\u1780\u17bc\u178a\u1782\u178e\u17b7\u178f",fontSizeLabel:"\u1791\u17c6\u17a0\u17c6\u17a2\u1780\u17d2\u179f\u179a",previewLabel:"\u1798\u17be\u179b\u1787\u17b6\u1798\u17bb\u1793"},imageBox:{title:"\u1794\u1789\u17d2\u1785\u17bc\u179b\u179a\u17bc\u1794\u1797\u17b6\u1796",file:"\u1787\u17d2\u179a\u17be\u179f\u179a\u17bc\u1794\u1797\u17b6\u1796",url:"URL \u179a\u17bc\u1794\u1797\u17b6\u1796",altText:"\u17a2\u178f\u17d2\u1790\u1794\u1791\u1787\u17c6\u1793\u17bd\u179f"},videoBox:{title:"\u1794\u1789\u17d2\u1785\u17bc\u179b\u179c\u17b8\u178a\u17c1\u17a2\u17b
1c",file:"\u1787\u17d2\u179a\u17be\u179f\u179c\u17b8\u178a\u17c1\u17a2\u17bc",url:"URL \u179c\u17b8\u178a\u17c1\u17a2\u17bc (YouTube/Vimeo)"},audioBox:{title:"\u1794\u1789\u17d2\u1785\u17bc\u179b\u17a2\u17bc\u178c\u17b8\u1799\u17c9\u17bc",file:"\u1787\u17d2\u179a\u17be\u179f\u17a2\u17bc\u178c\u17b8\u1799\u17c9\u17bc",url:"URL \u17a2\u17bc\u178c\u17b8\u1799\u17c9\u17bc"},browser:{tags:"\u179f\u17d2\u179b\u17b6\u1780",search:"\u179f\u17d2\u179c\u17c2\u1784\u179a\u1780"},caption:"\u1794\u1789\u17d2\u1785\u17bc\u179b\u1780\u17b6\u179a\u1796\u17b7\u1796\u178e\u17cc\u1793\u17b6",close:"\u1794\u17b7\u1791",submitButton:"\u178a\u17b6\u1780\u17cb\u179f\u17d2\u1793\u17be",revertButton:"\u179a\u1780\u17d2\u179f\u17b6\u1797\u17b6\u1796\u178a\u17be\u1798",proportion:"\u1780\u17c6\u178e\u178f\u17cb\u179f\u1798\u17b6\u1798\u17b6\u178f\u17d2\u179a",basic:"\u1798\u17bc\u179b\u178a\u17d2\u178b\u17b6\u1793",left:"\u1786\u17d2\u179c\u17c1\u1784",right:"\u179f\u17d2\u178f\u17b6\u17c6",center:"\u1780\u178e\u17d2\u178f\u17b6\u179b",width:"\u1791\u1791\u17b9\u1784",height:"\u1780\u1798\u17d2\u1796\u179f\u17cb",size:"\u1791\u17c6\u17a0\u17c6",ratio:"\u179f\u1798\u17b6\u1798\u17b6\u178f\u17d2\u179a"},controller:{edit:"\u1780\u17c2\u179f\u1798\u17d2\u179a\u17bd\u179b",unlink:"\u1795\u17d2\u178f\u17b6\u1785\u17cb\u178f\u17c6\u178e",remove:"\u179b\u17bb\u1794",insertRowAbove:"\u1794\u1789\u17d2\u1785\u17bc\u179b\u1787\u17bd\u179a\u178a\u17c1\u1780\u1781\u17b6\u1784\u179b\u17be",insertRowBelow:"\u1794\u1789\u17d2\u1785\u17bc\u179b\u1787\u17bd\u179a\u178a\u17c1\u1780\u1781\u17b6\u1784\u1780\u17d2\u179a\u17c4\u1798",deleteRow:"\u179b\u17bb\u1794\u1787\u17bd\u179a\u178a\u17c1\u1780",insertColumnBefore:"\u1794\u1789\u17d2\u1785\u17bc\u179b\u1787\u17bd\u179a\u1788\u179a\u1798\u17bb\u1793",insertColumnAfter:"\u1794\u1789\u17d2\u1785\u17bc\u179b\u1787\u17bd\u179a\u1788\u179a\u1794\u1793\u17d2\u1791\u17b6\u1794\u17cb",deleteColumn:"\u179b\u17bb\u1794\u1787\u17bd\u179a\u1788\u179a",fixedColumnWidth:"\u1791\u17c6\u17a0\u17c6\u1787\u17bd\u179a\u1788\u179a\u178f\u17d2\u179a\u17b9\u1798\u178f\u17d2\u179a\u17bc\u179c",resize100:"\u1794\u17d2\u178a\u17bc\u179a\u1791\u17c6\u17a0\u17c6 100%",resize75:"\u1794\u17d2\u178a\u17bc\u179a\u1791\u17c6\u17a0\u17c6 75%",resize50:"\u1794\u17d2\u178a\u17bc\u179a\u1791\u17c6\u17a0\u17c6 50%",resize25:"\u1794\u17d2\u178a\u17bc\u179a\u1791\u17c6\u17a0\u17c6 25%",autoSize:"\u1791\u17c6\u17a0\u17c6\u179f\u17d2\u179c\u17d0\u1799\u1794\u17d2\u179a\u179c\u178f\u17d2\u178f\u17b7",mirrorHorizontal:"\u1794\u1789\u17d2\u1785\u17d2\u179a\u17b6\u179f\u1795\u17d2\u178a\u17c1\u1780",mirrorVertical:"\u1794\u1789\u17d2\u1785\u17d2\u179a\u17b6\u179f\u1794\u1789\u17d2\u1788\u179a",rotateLeft:"\u1794\u1784\u17d2\u179c\u17b7\u179b\u1786\u17d2\u179c\u17c1\u1784",rotateRight:"\u1794\u1784\u17d2\u179c\u17b7\u179b\u179f\u17d2\u178f\u17b6\u17c6",maxSize:"\u1791\u17c6\u17a0\u17c6\u1792\u17c6",minSize:"\u1791\u17c6\u17a0\u17c6\u178f\u17bc\u1785",tableHeader:"\u1780\u17d2\u1794\u17b6\u179b\u178f\u17b6\u179a\u17b6\u1784",mergeCells:"\u1794\u1784\u17d2\u179a\u17bd\u1798\u1780\u17d2\u179a\u17a1\u17b6",splitCells:"\u1794\u17c6\u1794\u17c2\u1780\u1780\u17d2\u179a\u17a1\u17b6",HorizontalSplit:"\u1794\u17c6\u1794\u17c2\u1780\u1795\u17d2\u178a\u17c1\u1780",VerticalSplit:"\u1794\u17c6\u1794\u17c2\u1780\u1794\u1789\u17d2\u1788\u179a"},menu:{spaced:"\u1798\u17b6\u1793\u1785\u1793\u17d2\u179b\u17c4\u17c7",bordered:"\u1798\u17b6\u1793\u179f\u17ca\u17bb\u1798",neon:"Neon",translucent:"\u1790\u17d2\u179b\u17b6",shadow:"\u179f\u17d2\u179a\u1798\u17c4\u179b",code:"\u1780\u17bc\u178a"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"km",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},49732(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"ko",toolbar:{default:"\uae30\ubcf8\uac12",save:"\uc800\uc7a5",font:"\uae00\uaf34",formats:"\ubb38\ub2e8 \ud615\uc2dd",fontSize:"\ud06c\uae30",bold:"\uad75\uac8c",underline:"\ubc11\uc904",italic:"\uae30\uc6b8\uc784",strike:"\ucde8\uc18c\uc120",subscript:"\uc544\ub798 \ucca8\uc790",superscript:"\uc704 \ucca8\uc790",removeFormat:"\ud615\uc2dd \uc81c\uac70",fontColor:"\uae00\uc790\uc0c9",hiliteColor:"\ubc30\uacbd\uc0c9",indent:"\ub4e4\uc5ec\uc4f0\uae30",outdent:"\ub0b4\uc5b4\uc4f0\uae30",align:"\uc815\ub82c",alignLeft:"\uc67c\ucabd \uc815\ub82c",alignRight:"\uc624\ub978\ucabd \uc815\ub82c",alignCenter:"\uac00\uc6b4\ub370 \uc815\ub82c",alignJustify:"\uc591\ucabd \uc815\ub82c",list:"\ub9ac\uc2a4\ud2b8",orderList:"\uc22b\uc790\ud615 \ub9ac\uc2a4\ud2b8",unorderList:"\uc6d0\ud615 \ub9ac\uc2a4\ud2b8",horizontalRule:"\uac00\ub85c \uc904 \uc0bd\uc785",hr_solid:"\uc2e4\uc120",hr_dotted:"\uc810\uc120",hr_dashed:"\ub300\uc2dc",table:"\ud14c\uc774\ube14",link:"\ub9c1\ud06c",math:"\uc218\uc2dd",image:"\uc774\ubbf8\uc9c0",video:"\ub3d9\uc601\uc0c1",audio:"\uc624\ub514\uc624",fullScreen:"\uc804\uccb4 \ud654\uba74",showBlocks:"\ube14\ub85d \ubcf4\uae30",codeView:"HTML \ud3b8\uc9d1",undo:"\uc2e4\ud589 \ucde8\uc18c",redo:"\ub2e4\uc2dc \uc2e4\ud589",preview:"\ubbf8\ub9ac\ubcf4\uae30",print:"\uc778\uc1c4",tag_p:"\ubcf8\ubb38",tag_div:"\uae30\ubcf8 (DIV)",tag_h:"\uc81c\ubaa9",tag_blockquote:"\uc778\uc6a9\ubb38",tag_pre:"\ucf54\ub4dc",template:"\ud15c\ud50c\ub9bf",lineHeight:"\uc904 \ub192\uc774",paragraphStyle:"\ubb38\ub2e8 \uc2a4\ud0c0\uc77c",textStyle:"\uae00\uc790 \uc2a4\ud0c0\uc77c",imageGallery:"\u
1c774\ubbf8\uc9c0 \uac24\ub7ec\ub9ac",dir_ltr:"\uc67c\ucabd\uc5d0\uc11c \uc624\ub978\ucabd",dir_rtl:"\uc624\ub978\ucabd\uc5d0\uc11c \uc67c\ucabd",mention:"\uba58\uc158"},dialogBox:{linkBox:{title:"\ub9c1\ud06c \uc0bd\uc785",url:"\uc778\ud130\ub137 \uc8fc\uc18c",text:"\ud654\uba74 \ud14d\uc2a4\ud2b8",newWindowCheck:"\uc0c8\ucc3d\uc73c\ub85c \uc5f4\uae30",downloadLinkCheck:"\ub2e4\uc6b4\ub85c\ub4dc \ub9c1\ud06c",bookmark:"\ubd81\ub9c8\ud06c"},mathBox:{title:"\uc218\uc2dd",inputLabel:"\uc218\ud559\uc801 \ud45c\uae30\ubc95",fontSizeLabel:"\uae00\uc790 \ud06c\uae30",previewLabel:"\ubbf8\ub9ac\ubcf4\uae30"},imageBox:{title:"\uc774\ubbf8\uc9c0 \uc0bd\uc785",file:"\ud30c\uc77c \uc120\ud0dd",url:"\uc774\ubbf8\uc9c0 \uc8fc\uc18c",altText:"\ub300\uccb4 \ubb38\uc790\uc5f4"},videoBox:{title:"\ub3d9\uc601\uc0c1 \uc0bd\uc785",file:"\ud30c\uc77c \uc120\ud0dd",url:"\ubbf8\ub514\uc5b4 \uc784\ubca0\ub4dc \uc8fc\uc18c, \uc720\ud29c\ube0c/\ube44\uba54\uc624"},audioBox:{title:"\uc624\ub514\uc624 \uc0bd\uc785",file:"\ud30c\uc77c \uc120\ud0dd",url:"\uc624\ub514\uc624 \ud30c\uc77c \uc8fc\uc18c"},browser:{tags:"\ud0dc\uadf8",search:"\uac80\uc0c9"},caption:"\uc124\uba85 \ub123\uae30",close:"\ub2eb\uae30",submitButton:"\ud655\uc778",revertButton:"\ub418\ub3cc\ub9ac\uae30",proportion:"\ube44\uc728 \ub9de\ucda4",basic:"\uae30\ubcf8",left:"\uc67c\ucabd",right:"\uc624\ub978\ucabd",center:"\uac00\uc6b4\ub370",width:"\uac00\ub85c",height:"\uc138\ub85c",size:"\ud06c\uae30",ratio:"\ube44\uc728"},controller:{edit:"\ud3b8\uc9d1",unlink:"\ub9c1\ud06c \ud574\uc81c",remove:"\uc0ad\uc81c",insertRowAbove:"\uc704\uc5d0 \ud589 \uc0bd\uc785",insertRowBelow:"\uc544\ub798\uc5d0 \ud589 \uc0bd\uc785",deleteRow:"\ud589 \uc0ad\uc81c",insertColumnBefore:"\uc67c\ucabd\uc5d0 \uc5f4 \uc0bd\uc785",insertColumnAfter:"\uc624\ub978\ucabd\uc5d0 \uc5f4 \uc0bd\uc785",deleteColumn:"\uc5f4 \uc0ad\uc81c",fixedColumnWidth:"\uace0\uc815 \ub41c \uc5f4 \ub108\ube44",resize100:"100% \ud06c\uae30",resize75:"75% \ud06c\uae30",resize50:"50% \ud06c\uae30",resize25:"25% \ud06c\uae30",autoSize:"\uc790\ub3d9 \ud06c\uae30",mirrorHorizontal:"\uc88c\uc6b0 \ubc18\uc804",mirrorVertical:"\uc0c1\ud558 \ubc18\uc804",rotateLeft:"\uc67c\ucabd\uc73c\ub85c \ud68c\uc804",rotateRight:"\uc624\ub978\ucabd\uc73c\ub85c \ud68c\uc804",maxSize:"\ucd5c\ub300\ud654",minSize:"\ucd5c\uc18c\ud654",tableHeader:"\ud14c\uc774\ube14 \uc81c\ubaa9",mergeCells:"\uc140 \ubcd1\ud569",splitCells:"\uc140 \ubd84\ud560",HorizontalSplit:"\uac00\ub85c \ubd84\ud560",VerticalSplit:"\uc138\ub85c \ubd84\ud560"},menu:{spaced:"\uae00\uc790 \uac04\uaca9",bordered:"\uacbd\uacc4\uc120",neon:"\ub124\uc628",translucent:"\ubc18\ud22c\uba85",shadow:"\uadf8\ub9bc\uc790",code:"\ucf54\ub4dc"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"ko",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},80628(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"lv",toolbar:{default:"Noklus\u0113juma",save:"Saglab\u0101t",font:"Fonts",formats:"Form\u0101ti",fontSize:"Fonta lielums",bold:"Treknraksts",underline:"Pasv\u012btrot",italic:"Sl\u012bpraksts",strike:"P\u0101rsv\u012btrojums",subscript:"Apak\u0161raksts",superscript:"Aug\u0161raksts",removeFormat:"No\u0146emt form\u0101tu",fontColor:"Fonta kr\u0101sa",hiliteColor:"Teksta iez\u012bm\u0113\u0161anas kr\u0101sa",indent:"Palielin\u0101t atk\u0101pi",outdent:"Samazin\u0101t atk\u0101pi",align:"Izl\u012bdzin\u0101t",alignLeft:"L\u012bdzin\u0101t pa kreisi",alignRight:"L\u012bdzin\u0101t pa labi",alignCenter:"Centr\u0113t",alignJustify:"Taisnot",list:"Saraksts",orderList:"Numer\u0101cija",unorderList:"Aizzimes",horizontalRule:"Horizont\u0101la l\u012bnija",hr_solid:"Ciets",hr_dotted:"Punkti\u0146\u0161",hr_dashed:"Bra\u0161a",table:"Tabula",link:"Saite",math:"Matem\u0101tika",image:"Att\u0113ls",video:"Video",audio:"Audio",fullScreen:"Pilnekr\u0101na re\u017e\u012bms",showBlocks:"Par\u0101dit bloku
1s",codeView:"Koda skats",undo:"Atsaukt",redo:"Atk\u0101rtot",preview:"Priek\u0161skat\u012bjums",print:"Druk\u0101t",tag_p:"Paragr\u0101fs",tag_div:"Norm\u0101li (DIV)",tag_h:"Galvene",tag_blockquote:"Cit\u0101ts",tag_pre:"Kods",template:"Veidne",lineHeight:"L\u012bnijas augstums",paragraphStyle:"Paragr\u0101fa stils",textStyle:"Teksta stils",imageGallery:"Att\u0113lu galerija",dir_ltr:"No kreis\u0101s uz labo",dir_rtl:"No lab\u0101s uz kreiso",mention:"Piemin\u0113t"},dialogBox:{linkBox:{title:"Ievietot saiti",url:"Saites URL",text:"Par\u0101d\u0101mais teksts",newWindowCheck:"Atv\u0113rt jaun\u0101 log\u0101",downloadLinkCheck:"Lejupiel\u0101des saite",bookmark:"Gr\u0101matz\u012bme"},mathBox:{title:"Matem\u0101tika",inputLabel:"Matem\u0101tisk\u0101 not\u0101cija",fontSizeLabel:"Fonta lielums",previewLabel:"Priek\u0161skat\u012bjums"},imageBox:{title:"Ievietot att\u0113lu",file:"Izv\u0113lieties no failiem",url:"Att\u0113la URL",altText:"Alternat\u012bvs teksts"},videoBox:{title:"Ievietot video",file:"Izv\u0113lieties no failiem",url:"Multivides iegul\u0161anas URL, YouTube/Vimeo"},audioBox:{title:"Ievietot audio",file:"Izv\u0113lieties no failiem",url:"Audio URL"},browser:{tags:"Tagi",search:"Mekl\u0113t"},caption:"Ievietot aprakstu",close:"Aizv\u0113rt",submitButton:"Iesniegt",revertButton:"Atjaunot",proportion:"Ierobe\u017eo proporcijas",basic:"Nav iesai\u0146ojuma",left:"Pa kreisi",right:"Labaj\u0101 pus\u0113",center:"Centrs",width:"Platums",height:"Augstums",size:"Izm\u0113rs",ratio:"Attiec\u012bba"},controller:{edit:"Redi\u0123\u0113t",unlink:"Atsaist\u012bt",remove:"No\u0146emt",insertRowAbove:"Ievietot rindu virs",insertRowBelow:"Ievietot rindu zem\u0101k",deleteRow:"Dz\u0113st rindu",insertColumnBefore:"Ievietot kolonnu pirms",insertColumnAfter:"Ievietot kolonnu aiz",deleteColumn:"Dz\u0113st kolonnu",fixColumnWidth:"Fiks\u0113ts kolonnas platums",resize100:"Main\u012bt izm\u0113ru 100%",resize75:"Main\u012bt izm\u0113ru 75%",resize50:"Main\u012bt izm\u0113ru 50%",resize25:"Main\u012bt izm\u0113ru 25%",autoSize:"Autom\u0101tiskais izm\u0113rs",mirrorHorizontal:"Spogulis, horizont\u0101ls",mirrorVertical:"Spogulis, vertik\u0101ls",rotateLeft:"Pagriezt pa kreisi",rotateRight:"Pagriezt pa labi",maxSize:"Maksim\u0101lais izm\u0113rs",minSize:"Minim\u0101lais izm\u0113rs",tableHeader:"Tabulas galvene",mergeCells:"Apvienot \u0161\u016bnas",splitCells:"Sadal\u012bt \u0161\u016bnas",HorizontalSplit:"Horizont\u0101ls sadal\u012bjums",VerticalSplit:"Vertik\u0101ls sadal\u012bjums"},menu:{spaced:"Ar atstarpi",bordered:"Robe\u017eoj\u0101s",neon:"Neona",translucent:"Caursp\u012bd\u012bgs",shadow:"\u0112na",code:"Kods"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"lv",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},72740(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"nl",toolbar:{default:"Standaard",save:"Opslaan",font:"Lettertype",formats:"Formaten",fontSize:"Lettergrootte",bold:"Vetgedrukt",underline:"Onderstrepen",italic:"Cursief",strike:"Doorstrepen",subscript:"Subscript",superscript:"Superscript",removeFormat:"Opmaak verwijderen",fontColor:"Tekstkleur",hiliteColor:"Tekst markeren",indent:"Inspringen",outdent:"Inspringen ongedaan maken",align:"Uitlijnen",alignLeft:"Links uitlijnen",alignRight:"Rechts uitlijnen",alignCenter:"In het midden uitlijnen",alignJustify:"Uitvullen",list:"Lijst",orderList:"Geordende lijst",unorderList:"Ongeordende lijst",horizontalRule:"Horizontale regel",hr_solid:"Standaard",hr_dotted:"Gestippeld",hr_dashed:"Gestreept",table:"Tabel",link:"Link",math:"Wiskunde",image:"Afbeelding",video:"Video",audio:"Audio",fullScreen:"Volledig scherm",showBlocks:"Blokken tonen",codeView:"Broncode weergeven",undo:"Ongedaan maken",redo:"Ongedaan maken herstellen",preview:"Voorbeeldweergave",print:"Printen",tag_p:"Alinea",tag_div:"Normaal (div)",tag_h:"Kop",tag_blockquote:"Citaat",tag_pre:"Code",template:"Sjabloon",lineHeight:"Lijnhoogte",paragraphStyle:"Alineastijl",textStyle:"Tekststijl",imageGallery:"Galerij",dir_ltr:"Van links naar rechts",dir_rtl:"Rechts naar links",mention:"Vermelding"},dialogBox:{linkBox:{title:"Link invoegen",url:"URL",text:"Tekst van de link",
1newWindowCheck:"In een nieuw tabblad openen",downloadLinkCheck:"Downloadlink",bookmark:"Bladwijzer"},mathBox:{title:"Wiskunde",inputLabel:"Wiskundige notatie",fontSizeLabel:"Lettergrootte",previewLabel:"Voorbeeld"},imageBox:{title:"Afbeelding invoegen",file:"Selecteer een bestand van uw apparaat",url:"URL",altText:"Alt-tekst"},videoBox:{title:"Video invoegen",file:"Selecteer een bestand van uw apparaat",url:"Embedded URL (YouTube/Vimeo)"},audioBox:{title:"Audio invoegen",file:"Selecteer een bestand van uw apparaat",url:"URL"},browser:{tags:"Tags",search:"Zoeken"},caption:"Omschrijving toevoegen",close:"Sluiten",submitButton:"Toepassen",revertButton:"Standaardwaarden herstellen",proportion:"Verhouding behouden",basic:"Standaard",left:"Links",right:"Rechts",center:"Midden",width:"Breedte",height:"Hoogte",size:"Grootte",ratio:"Verhouding"},controller:{edit:"Bewerken",unlink:"Ontkoppelen",remove:"Verwijderen",insertRowAbove:"Rij hierboven invoegen",insertRowBelow:"Rij hieronder invoegen",deleteRow:"Rij verwijderen",insertColumnBefore:"Kolom links invoegen",insertColumnAfter:"Kolom rechts invoegen",deleteColumn:"Kolom verwijderen",fixedColumnWidth:"Vaste kolombreedte",resize100:"Formaat wijzigen: 100%",resize75:"Formaat wijzigen: 75%",resize50:"Formaat wijzigen: 50%",resize25:"Formaat wijzigen: 25%",autoSize:"Automatische grootte",mirrorHorizontal:"Horizontaal spiegelen",mirrorVertical:"Verticaal spiegelen",rotateLeft:"Naar links draaien",rotateRight:"Naar rechts draaien",maxSize:"Maximale grootte",minSize:"Minimale grootte",tableHeader:"Tabelkoppen",mergeCells:"Cellen samenvoegen",splitCells:"Cellen splitsen",HorizontalSplit:"Horizontaal splitsen",VerticalSplit:"Verticaal splitsen"},menu:{spaced:"Uit elkaar",bordered:"Omlijnd",neon:"Neon",translucent:"Doorschijnend",shadow:"Schaduw",code:"Code"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"nl",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},36554(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"pl",toolbar:{default:"Domy\u015blne",save:"Zapisz",font:"Czcionka",formats:"Formaty",fontSize:"Rozmiar",bold:"Pogrubienie",underline:"Podkre\u015blenie",italic:"Kursywa",strike:"Przekre\u015blenie",subscript:"Indeks dolny",superscript:"Indeks g\xf3rny",removeFormat:"Wyczy\u015b\u0107 formatowanie",fontColor:"Kolor tekstu",hiliteColor:"Kolor t\u0142a tekstu",indent:"Zwi\u0119ksz wci\u0119cie",outdent:"Zmniejsz wci\u0119cie",align:"Wyr\xf3wnaj",alignLeft:"Do lewej",alignRight:"Do prawej",alignCenter:"Do \u015brodka",alignJustify:"Wyjustuj",list:"Lista",orderList:"Lista numerowana",unorderList:"Lista wypunktowana",horizontalRule:"Pozioma linia",hr_solid:"Ci\u0105g\u0142a",hr_dotted:"Kropkowana",hr_dashed:"Przerywana",table:"Tabela",link:"Odno\u015bnik",math:"Matematyczne",image:"Obraz",video:"Wideo",audio:"Audio",fullScreen:"Pe\u0142ny ekran",showBlocks:"Poka\u017c bloki",codeView:"Widok kodu",undo:"Cofnij",redo:"Pon\xf3w",preview:"Podgl\u0105d",print:"Drukuj",tag_p:"Akapit",tag_div:"Blok (DIV)",tag_h:"Nag\u0142\xf3wek H",tag_blockquote:"Cytat",tag_pre:"Kod",template:"Szablon",lineHeight:"Odst\u0119p mi\u0119dzy wierszami",paragraphStyle:"Styl akapitu",textStyle:"Styl tekstu",imageGallery:"Galeria obraz\xf3w",dir_ltr:"Od lewej do prawej",dir_rtl:"Od prawej do lewej",mention:"Wzmianka"},dialogBox:{linkBox:{title:"Wstaw odno\u015bnik",url:"Adres URL",text:"Tekst do wy\u015bwietlenia",newWindowCheck:"Otw\xf3rz w nowym oknie",downloadLinkCheck:"Link do pobrania",bookmark:"Zak\u0142adka"},mathBox:{title:"Matematyczne",inputLabel:"Zapis matematyczny",fontSizeLabel:"Rozmiar czcionki",previewLabel:"Podgl\u0105d"},imageBox:{title:"Wstaw obraz",file:"Wybierz plik",url:"Adres URL obrazka",altText:"Tekst alternatywny"},videoBox:{title:"Wstaw wideo",file:"Wybierz plik",url:"Adres URL video, np. YouTube/Vimeo"},audioBox:{title:"Wstaw audio",file:"Wybierz plik",url:"Adres URL audio"},browser:{tags:"Tagi",search:"Szukaj"},caption:"Wstaw opis",close:"Zamknij",submitButton:"Zatwierd\u017a",revertButton:"Cofnij zmiany",proportion:"Ogranicz proporcje",basic:"Bez wyr\xf3wnania",left:"Do lewej",right:"Do prawej",center:"Do \u015brodka",width:"Szeroko\u015b\u
10107",height:"Wysoko\u015b\u0107",size:"Rozmiar",ratio:"Proporcje"},controller:{edit:"Edycja",unlink:"Usu\u0144 odno\u015bnik",remove:"Usu\u0144",insertRowAbove:"Wstaw wiersz powy\u017cej",insertRowBelow:"Wstaw wiersz poni\u017cej",deleteRow:"Usu\u0144 wiersz",insertColumnBefore:"Wstaw kolumn\u0119 z lewej",insertColumnAfter:"Wstaw kolumn\u0119 z prawej",deleteColumn:"Usu\u0144 kolumn\u0119",fixedColumnWidth:"Sta\u0142a szeroko\u015b\u0107 kolumny",resize100:"Zmie\u0144 rozmiar - 100%",resize75:"Zmie\u0144 rozmiar - 75%",resize50:"Zmie\u0144 rozmiar - 50%",resize25:"Zmie\u0144 rozmiar - 25%",autoSize:"Rozmiar automatyczny",mirrorHorizontal:"Odbicie lustrzane w poziomie",mirrorVertical:"Odbicie lustrzane w pionie",rotateLeft:"Obr\xf3\u0107 w lewo",rotateRight:"Obr\xf3\u0107 w prawo",maxSize:"Maksymalny rozmiar",minSize:"Minimalny rozmiar",tableHeader:"Nag\u0142\xf3wek tabeli",mergeCells:"Scal kom\xf3rki",splitCells:"Podziel kom\xf3rki",HorizontalSplit:"Podzia\u0142 poziomy",VerticalSplit:"Podzia\u0142 pionowy"},menu:{spaced:"Rozstawiony",bordered:"Z obw\xf3dk\u0105",neon:"Neon",translucent:"P\xf3\u0142przezroczysty",shadow:"Cie\u0144",code:"Kod"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"pl",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},72449(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"pt_br",toolbar:{default:"Padr\xe3o",save:"Salvar",font:"Fonte",formats:"Formatos",fontSize:"Tamanho",bold:"Negrito",underline:"Sublinhado",italic:"It\xe1lico",strike:"Tachado",subscript:"Subscrito",superscript:"Sobrescrito",removeFormat:"Remover formata\xe7\xe3o",fontColor:"Cor da fonte",hiliteColor:"Cor de destaque",indent:"Recuo",outdent:"Avan\xe7ar",align:"Alinhar",alignLeft:"Alinhar \xe0 esquerda",alignRight:"Alinhar \xe0 direita",alignCenter:"Centralizar",alignJustify:"Justificar",list:"Lista",orderList:"Lista ordenada",unorderList:"Lista desordenada",horizontalRule:"Linha horizontal",hr_solid:"s\xf3lida",hr_dotted:"pontilhada",hr_dashed:"tracejada",table:"Tabela",link:"Link",math:"Matem\xe1tica",image:"Imagem",video:"V\xeddeo",audio:"\xc1udio",fullScreen:"Tela cheia",showBlocks:"Mostrar blocos",codeView:"Mostrar c\xf3digos",undo:"Voltar",redo:"Refazer",preview:"Prever",print:"Imprimir",tag_p:"Par\xe1grafo",tag_div:"(DIV) Normal",tag_h:"Cabe\xe7alho",tag_blockquote:"Citar",tag_pre:"C\xf3digo",template:"Modelo",lineHeight:"Altura da linha",paragraphStyle:"Estilo do par\xe1grafo",textStyle:"Estilo do texto",imageGallery:"Galeria de imagens",dir_ltr:"Esquerda para direita",dir_rtl:"Direita para esquerda",mention:"Men\xe7\xe3o"},dialogBox:{linkBox:{title:"Inserir link",url:"Endere\xe7o do link",text:"Texto exibido",newWindowCheck:"Abrir em uma nova guia",downloadLinkCheck:"Link para Download",bookmark:"marcar p\xe1ginas"},mathBox:{title:"Matem\xe1tica",inputLabel:"Nota\xe7\xe3o matem\xe1tica",fontSizeLabel:"Tamanho",previewLabel:"Prever"},imageBox:{title:"Inserir imagens",file:"Selecionar arquivos",url:"URL da imagem",altText:"Texto alternativo"},videoBox:{title:"Inserir v\xeddeo",file:"Selecionar arquivos",url:"URL do YouTube/Vimeo"},audioBox:{title:"Inserir \xe1udio",file:"Selecionar arquivos",url:"URL do \xe1udio"},browser:{tags:"Tag",search:"Procurar"},caption:"Inserir descri\xe7\xe3o",close:"Fechar",submitButton:"Enviar",revertButton:"Reverter",proportion:"Restringir propor\xe7\xf5es",basic:"B\xe1sico",left:"Esquerda",right:"Direita",center:"Centro",width:"Largura",height:"Altura",size:"Tamanho",ratio:"Propor\xe7\xf5es"},controller:{edit:"Editar",unlink:"Remover link",remove:"Remover",insertRowAbove:"Inserir linha acima",insertRowBelow:"Inserir linha abaixo",deleteRow:"Deletar linha",insertColumnBefore:"Inserir coluna antes",insertColumnAfter:"Inserir coluna depois",deleteColumn:"Deletar coluna",fixedColumnWidth:"Largura fixa da coluna",resize100:"Redimensionar para 100%",resize75:"Redimensionar para 75%",resize50:"Redimensionar para 50%",resize25:"Redimensionar para 25%",autoSize:"Tamanho autom\xe1tico",mirrorHorizontal:"Espelho, Horizontal",mirrorVertical:"Espelho, Vertical",rotateLeft:"Girar para esquerda",rotateRight:"Girar para direita",maxSize:"Tam m\xe1x",minSize:"Tam m\xedn",tableHeader:"Cabe\xe7alho da tabela",mergeCells:"Mesclar c\xe9lulas",splitCells:"Dividir c\xe9lulas",HorizontalSplit:"Divis\xe3o horizontal",VerticalSplit:"Divis\xe3o vertical"},menu:{spaced:"Espa\xe7ado",bordered:"Com borda",neon:"Neon",translucent:"Transl\xfacido",shadow:"Sombreado",code:"C\xf3digo"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,
1configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"pt_br",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},83265(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"ro",toolbar:{default:"Default",save:"Salveaz\u0103",font:"Font",formats:"Format",fontSize:"Dimensiune",bold:"\xcengro\u0219at",underline:"Subliniat",italic:"\xcenclinat",strike:"T\u0103iat",subscript:"Subscript",superscript:"Superscript",removeFormat:"\u0218terge formatare",fontColor:"Culoare font",hiliteColor:"Culoare de eviden\u021biere",indent:"Indenteaz\u0103",outdent:"F\u0103r\u0103 indentare",align:"Aliniere",alignLeft:"Aliniere la st\xe2nga",alignRight:"Aliniere la dreapta",alignCenter:"Aliniere la centru",alignJustify:"Aliniere st\xe2nga - dreapta",list:"List\u0103",orderList:"List\u0103 ordonat\u0103",unorderList:"List\u0103 neordonat\u0103",horizontalRule:"Linie orizontal\u0103",hr_solid:"Solid",hr_dotted:"Punctat",hr_dashed:"Punctate",table:"Tabel",link:"Link",math:"Matematic\u0103",image:"Imagine",video:"Video",audio:"Audio",fullScreen:"Tot ecranul",showBlocks:"Arat\u0103 blocuri",codeView:"Vizualizare cod",undo:"Anuleaz\u0103",redo:"Ref\u0103",preview:"Previzualizare",print:"printeaz\u0103",tag_p:"Paragraf",tag_div:"Normal (DIV)",tag_h:"Antet",tag_blockquote:"Quote",tag_pre:"Citat",template:"Template",lineHeight:"\xcen\u0103l\u021bime linie",paragraphStyle:"Stil paragraf",textStyle:"Stil text",imageGallery:"Galerie de imagini",dir_ltr:"De la st\xe2nga la dreapta",dir_rtl:"De la dreapta la stanga",mention:"Mentiune"},dialogBox:{linkBox:{title:"Insereaz\u0103 Link",url:"Adres\u0103 link",text:"Text de afi\u0219at",newWindowCheck:"Deschide \xeen fereastr\u0103 nou\u0103",downloadLinkCheck:"Link de desc\u0103rcare",bookmark:"Marcaj"},mathBox:{title:"Matematic\u0103",inputLabel:"Nota\u021bie matematic\u0103",fontSizeLabel:"Dimensiune font",previewLabel:"Previzualizare"},imageBox:{title:"Insereaz\u0103 imagine",file:"Selecteaz\u0103",url:"URL imagine",altText:"text alternativ"},videoBox:{title:"Insereaz\u0103 video",file:"Selecteaz\u0103",url:"Include URL, youtube/vimeo"},audioBox:{title:"Insereaz\u0103 Audio",file:"Selecteaz\u0103",url:"URL Audio"},browser:{tags:"Etichete",search:"C\u0103utareim"},caption:"Insereaz\u0103 descriere",close:"\xcenchide",submitButton:"Salveaz\u0103",revertButton:"Revenire",proportion:"Constr\xe2nge propor\u021biile",basic:"De baz\u0103",left:"St\xe2nga",right:"Dreapta",center:"Centru",width:"L\u0103\u021bime",height:"\xcen\u0103l\u021bime",size:"Dimensiune",ratio:"Ratie"},controller:{edit:"Editeaz\u0103",unlink:"Scoate link",remove:"Elimin\u0103",insertRowAbove:"Insereaz\u0103 r\xe2nd deasupra",insertRowBelow:"Insereaz\u0103 r\xe2nd dedesupt",deleteRow:"\u0218terge linie",insertColumnBefore:"Insereaz\u0103 coloan\u0103 \xeenainte",insertColumnAfter:"Insereaz\u0103 coloan\u0103 dup\u0103",deleteColumn:"\u0218terge coloan\u0103",fixedColumnWidth:"L\u0103\u021bime fix\u0103 coloan\u0103",resize100:"Redimensionare 100%",resize75:"Redimensionare 75%",resize50:"Redimensionare 50%",resize25:"Redimensionare 25%",autoSize:"Dimensiune automat\u0103",mirrorHorizontal:"Oglind\u0103, orizontal",mirrorVertical:"Oglind\u0103, vertical",rotateLeft:"Rote\u0219te la st\xe2nga",rotateRight:"Rote\u0219te la dreapta",maxSize:"Dimensiune maxim\u0103",minSize:"Dimensiune minim\u0103",tableHeader:"Antet tabel",mergeCells:"\xcembin\u0103 celule",splitCells:"Divizeaz\u0103 celule",HorizontalSplit:"Despicare orizontal\u0103",VerticalSplit:"Despicare vertical\u0103"},menu:{spaced:"Spa\u021biat",bordered:"M\u0103rginit",neon:"Neon",translucent:"Translucent",shadow:"Umbr\u0103",code:"Citat"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"ro",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},21127(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"ru",toolbar:{default:"\u
1041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",save:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c",font:"\u0428\u0440\u0438\u0444\u0442",formats:"\u0421\u0442\u0438\u043b\u044c \u0430\u0431\u0437\u0430\u0446\u0430",fontSize:"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",bold:"\u041f\u043e\u043b\u0443\u0436\u0438\u0440\u043d\u044b\u0439",underline:"\u041f\u043e\u0434\u0447\u0451\u0440\u043a\u043d\u0443\u0442\u044b\u0439",italic:"\u041a\u0443\u0440\u0441\u0438\u0432",strike:"\u0417\u0430\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044b\u0439",subscript:"\u041d\u0438\u0436\u043d\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441",superscript:"\u0412\u0435\u0440\u0445\u043d\u0438\u0439 \u0438\u043d\u0434\u0435\u043a\u0441",removeFormat:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435",fontColor:"\u0426\u0432\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u0430",hiliteColor:"\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430",indent:"\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f",outdent:"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f",align:"\u0412\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435",alignLeft:"\u0421\u043b\u0435\u0432\u0430",alignRight:"\u0421\u043f\u0440\u0430\u0432\u0430",alignCenter:"\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443",alignJustify:"\u041f\u043e \u0448\u0438\u0440\u0438\u043d\u0435",list:"\u0421\u043f\u0438\u0441\u043a\u0438",orderList:"\u041d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439",unorderList:"\u041c\u0430\u0440\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439",horizontalRule:"\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043b\u0438\u043d\u0438\u044f",hr_solid:"\u0421\u043f\u043b\u043e\u0448\u043d\u0430\u044f",hr_dotted:"\u041f\u0443\u043d\u043a\u0442\u0438\u0440",hr_dashed:"\u0428\u0442\u0440\u0438\u0445\u043e\u0432\u0430\u044f",table:"\u0422\u0430\u0431\u043b\u0438\u0446\u0430",link:"\u0421\u0441\u044b\u043b\u043a\u0430",math:"\u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439",image:"\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",video:"\u0412\u0438\u0434\u0435\u043e",audio:"\u0410\u0443\u0434\u0438\u043e",fullScreen:"\u041f\u043e\u043b\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d",showBlocks:"\u0411\u043b\u043e\u0447\u043d\u044b\u0439 \u0432\u0438\u0434",codeView:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c HTML",undo:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c",redo:"\u0412\u0435\u0440\u043d\u0443\u0442\u044c",preview:"\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440",print:"\u041f\u0435\u0447\u0430\u0442\u044c",tag_p:"\u0422\u0435\u043a\u0441\u0442",tag_div:"\u0411\u0430\u0437\u043e\u0432\u044b\u0439",tag_h:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a",tag_blockquote:"\u0426\u0438\u0442\u0430\u0442\u0430",tag_pre:"\u041a\u043e\u0434",template:"\u0428\u0430\u0431\u043b\u043e\u043d",lineHeight:"\u0412\u044b\u0441\u043e\u0442\u0430 \u043b\u0438\u043d\u0438\u0438",paragraphStyle:"\u0421\u0442\u0438\u043b\u044c \u0430\u0431\u0437\u0430\u0446\u0430",textStyle:"\u0421\u0442\u0438\u043b\u044c \u0442\u0435\u043a\u0441\u0442\u0430",imageGallery:"\u0413\u0430\u043b\u0435\u0440\u0435\u044f",dir_ltr:"\u0421\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e",dir_rtl:"\u0421\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e",mention:"\u0423\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435"},dialogBox:{linkBox:{title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",url:"\u0421\u0441\u044b\u043b\u043a\u0430",text:"\u0422\u0435\u043a\u0441\u0442",newWindowCheck:"\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432 \u043d\u043e\u0432\u043e\u043c \u043e\u043a\u043d\u0435",downloadLinkCheck:"\u0421\u0441\u044b\u043b\u043a\u0430 \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f",bookmark:"\u0417\u0430\u043a\u043b\u0430\u0434\u043a\u0430"},mathBox:{title:"\u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439",inputLabel:"\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c",fontSizeLabel:"\u041a\u0435\u0433\u043b\u044c",previewLabel:"\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440"},imageBox:{title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",file:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043b",url:"\u0410\u0434\u0440\u0435\u0441 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f",altText:"\u0422\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f"},videoBox:{title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e",file:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043b",url:"\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e, Youtube,Vimeo"},audioBox:{title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0430\u0443\u0434\u0438\u043e",file:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043b",url:"\u0410\u0434\u0440\u0435\u0441 \u0430\u0443\u0434\u0438\u043e"},browser:{tags:"\u0422\u0435\u0433\u0438",search:"\u041f\u043e\u0438\u0441\u043a"},caption:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u044c",close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",submitButton:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c",revertButton:"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c",proportion:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u0438",basic:"\u0411\u0435\u0437 \u043e\u0431\u0442\u0435\u043a\u0430\u043d\u0438\u044f",left:"\u0421\u043b\u0435\u0432\u0430",right:"\u0421\u043f\u0440\u0430\u0432\u0430",center:"\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443",width:"\u0428\u0438\u0440\u0438\u043d\u0430",height:"\u0412\u044b\u0441\u043e\u0442\u0430",size:"\u0420\u0430\u0437\u043c\u0435\u0440",ratio:"\u0421\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435"},controller:{edit:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c",unlink:"\u0423\u0431\u0440\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",remove:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c",insertRowAbove:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0432\u044b\u0448\u0435",insertRowBelow:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0438\u0436\u0435",deleteRow:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443",insertColumnBefore:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043b\u0435\u0432\u0430",insertColumnAfter:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0441\u043f\u0440\u0430\u0432\u0430",deleteColumn:"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0435\u0446",fixedColumnWidth:"\u0424\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u0430",resize100:"\u0420\u0430\u0437\u043c\u0435\u0440 100%",resize75:"\u0420\u0430\u0437\u043c\u0435\u0440 75%",resize50:"\u0420\u0430\u0437\u043c\u0435\u0440 50%",resize25:"\u0420\u0430\u0437\u043c\u0435\u0440 25%",autoSize:"\u0410\u0432\u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0440",mirrorHorizontal:"\u041e\u0442\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438",mirrorVertical:"\u041e\u0442\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438",rotateLeft:"\u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u0440\u043e\u0442\u0438\u0432 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438",rotateRight:"\u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u043e \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0435",maxSize:"\u0428\u0438\u0440\u0438\u043d\u0430 \u043f\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b",minSize:"\u0428\u0438\u0440\u0438\u043d\u0430 \u043f\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c\u0443",tableHeader:"\u
10421\u0442\u0440\u043e\u043a\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432",mergeCells:"\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u044f\u0447\u0435\u0439\u043a\u0438",splitCells:"\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u044f\u0447\u0435\u0439\u043a\u0443",HorizontalSplit:"\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e",VerticalSplit:"\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e"},menu:{spaced:"\u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b",bordered:"\u0413\u0440\u0430\u043d\u0438\u0447\u043d\u0430\u044f \u041b\u0438\u043d\u0438\u044f",neon:"\u043d\u0435\u043e\u043d",translucent:"\u043f\u043e\u043b\u0443\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439",shadow:"\u0422\u0435\u043d\u044c",code:"\u041a\u043e\u0434"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"ru",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},63278(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"se",toolbar:{default:"Default",save:"Spara",font:"Typsnitt",formats:"Format",fontSize:"Textstorlek",bold:"Fet",underline:"Understruket",italic:"Kursiv",strike:"\xd6verstruket",subscript:"S\xe4nkt skrift",superscript:"H\xf6jd skrift",removeFormat:"Ta bort formattering",fontColor:"Textf\xe4rg",hiliteColor:"Bakgrundsf\xe4rg",indent:"Minska indrag",outdent:"\xd6ka indrag",align:"Justering",alignLeft:"V\xe4nsterjustering",alignRight:"H\xf6gerjustering",alignCenter:"Mittenjusteirng",alignJustify:"Justera indrag",list:"Listor",orderList:"Numrerad lista",unorderList:"Oordnad lista",horizontalRule:"Horisontell linje",hr_solid:"Solid",hr_dotted:"Punkter",hr_dashed:"Prickad",table:"Tabell",link:"L\xe4nk",math:"Math",image:"Bild",video:"Video",audio:"Ljud",fullScreen:"Helsk\xe4rm",showBlocks:"Visa block",codeView:"Visa koder",undo:"\xc5ngra",redo:"G\xf6r om",preview:"Preview",print:"Print",tag_p:"Paragraf",tag_div:"Normal (DIV)",tag_h:"Rubrik",tag_blockquote:"Citer",tag_pre:"Kod",template:"Mall",lineHeight:"Linjeh\xf6jd",paragraphStyle:"Stil p\xe5 stycke",textStyle:"Textstil",imageGallery:"Bildgalleri",dir_ltr:"V\xe4nster till h\xf6ger",dir_rtl:"H\xf6ger till v\xe4nster",mention:"Namn"},dialogBox:{linkBox:{title:"L\xe4gg till l\xe4nk",url:"URL till l\xe4nk",text:"L\xe4nktext",newWindowCheck:"\xd6ppna i nytt f\xf6nster",downloadLinkCheck:"Nedladdningsl\xe4nk",bookmark:"Bokm\xe4rke"},mathBox:{title:"Math",inputLabel:"Matematisk notation",fontSizeLabel:"Textstorlek",previewLabel:"Preview"},imageBox:{title:"L\xe4gg till bild",file:"L\xe4gg till fr\xe5n fil",url:"L\xe4gg till fr\xe5n URL",altText:"Alternativ text"},videoBox:{title:"L\xe4gg till video",file:"L\xe4gg till fr\xe5n fil",url:"B\xe4dda in video / YouTube,Vimeo"},audioBox:{title:"L\xe4gg till ljud",file:"L\xe4gg till fr\xe5n fil",url:"L\xe4gg till fr\xe5n URL"},browser:{tags:"Tags",search:"S\xf6k"},caption:"L\xe4gg till beskrivning",close:"St\xe4ng",submitButton:"Skicka",revertButton:"\xc5terg\xe5",proportion:"Spara proportioner",basic:"Basic",left:"V\xe4nster",right:"H\xf6ger",center:"Center",width:"Bredd",height:"H\xf6jd",size:"Storlek",ratio:"F\xf6rh\xe5llande"},controller:{edit:"Redigera",unlink:"Ta bort l\xe4nk",remove:"Ta bort",insertRowAbove:"L\xe4gg till rad \xf6ver",insertRowBelow:"L\xe4gg till rad under",deleteRow:"Ta bort rad",insertColumnBefore:"L\xe4gg till kolumn f\xf6re",insertColumnAfter:"L\xe4gg till kolumn efter",deleteColumn:"Ta bort kolumner",fixedColumnWidth:"Fast kolumnbredd",resize100:"F\xf6rstora 100%",resize75:"F\xf6rstora 75%",resize50:"F\xf6rstora 50%",resize25:"F\xf6rstora 25%",autoSize:"Autostorlek",mirrorHorizontal:"Spegling, horisontell",mirrorVertical:"Spegling, vertikal",rotateLeft:"Rotera till v\xe4nster",rotateRight:"Rotera till h\xf6ger",maxSize:"Maxstorlek",minSize:"Minsta storlek",tableHeader:"Rubrik tabell",mergeCells:"Sammanfoga celler (merge)",splitCells:"Separera celler",HorizontalSplit:"Separera horisontalt",VerticalSplit:"Separera vertikalt"},menu:{spaced:"Avst\xe5nd",bordered:"Avgr\xe4nsningslinje",neon:"Neon",translucent:"Genomskinlig",shadow:"Skugga",code:"Kod"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,
1configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"se",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},37840(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"tr",toolbar:{default:"Varsay\u0131lan",save:"Kaydet",font:"Yaz\u0131 Tipi",formats:"Bi\xe7imlendirmeler",fontSize:"Boyut",bold:"Kal\u0131n",underline:"Alt \xc7izili",italic:"\u0130talik",strike:"\xdcst\xfc \xc7izili",subscript:"Alt Simge",superscript:"\xdcst Simge",removeFormat:"Bi\xe7imi Kald\u0131r",fontColor:"Yaz\u0131 Tipi Rengi",hiliteColor:"Vurgu Rengi",indent:"Girinti",outdent:"Girintiyi Azalt",align:"Hizala",alignLeft:"Sola Hizala",alignRight:"Sa\u011fa Hizala",alignCenter:"Ortaya Hizala",alignJustify:"\u0130ki Yana Yasla",list:"Liste",orderList:"S\u0131ral\u0131 Liste",unorderList:"S\u0131ras\u0131z Liste",horizontalRule:"Yatay \xc7izgi",hr_solid:"D\xfcz",hr_dotted:"Noktal\u0131",hr_dashed:"Kesikli",table:"Tablo",link:"Ba\u011flant\u0131",math:"Matematik",image:"G\xf6rsel",video:"Video",audio:"Ses",fullScreen:"Tam Ekran",showBlocks:"Bloklar\u0131 G\xf6ster",codeView:"Kod G\xf6r\xfcn\xfcm\xfc",undo:"Geri Al",redo:"\u0130leri Al",preview:"\xd6nizleme",print:"Yazd\u0131r",tag_p:"Paragraf",tag_div:"Normal (DIV)",tag_h:"Ba\u015fl\u0131k",tag_blockquote:"Al\u0131nt\u0131",tag_pre:"Kod",template:"\u015eablon",lineHeight:"Sat\u0131r Y\xfcksekli\u011fi",paragraphStyle:"Paragraf Stili",textStyle:"Metin Stili",imageGallery:"G\xf6r\xfcnt\xfc Galer
1isi",dir_ltr:"Soldan Sa\u011fa",dir_rtl:"Sa\u011fdan Sola",mention:"Belirtmek"},dialogBox:{linkBox:{title:"Ba\u011flant\u0131 Ekle",url:"Ba\u011flant\u0131 URL'si",text:"G\xf6r\xfcnt\xfclenecek Metin",newWindowCheck:"Yeni Pencerede A\xe7",downloadLinkCheck:"Ba\u011flant\u0131y\u0131 \u0130ndir",bookmark:"Ba\u011flant\u0131y\u0131 Yer \u0130mlerine Ekle"},mathBox:{title:"Matematik",inputLabel:"Matematiksel Simgeler",fontSizeLabel:"Yaz\u0131 Tipi Boyutu",previewLabel:"\xd6nizleme"},imageBox:{title:"G\xf6r\xfcnt\xfc Ekle",file:"Dosya Se\xe7",url:"G\xf6r\xfcnt\xfc URL'si",altText:"Alternatif Metin"},videoBox:{title:"Video Ekle",file:"Dosya Se\xe7",url:"Medya Ekleme URL'si (YouTube/Vimeo)"},audioBox:{title:"Ses Ekle",file:"Dosya Se\xe7",url:"Ses URL'si"},browser:{tags:"Etiketler",search:"Ara"},caption:"A\xe7\u0131klama Giriniz",close:"Kapat",submitButton:"G\xf6nder",revertButton:"Geri D\xf6n",proportion:"Orant\u0131lar\u0131 Koru",basic:"Temel",left:"Sola",right:"Sa\u011fa",center:"Ortaya",width:"Geni\u015flik",height:"Y\xfckseklik",size:"Boyut",ratio:"Oran"},controller:{edit:"D\xfczenle",unlink:"Ba\u011flant\u0131y\u0131 Kald\u0131r",remove:"Kald\u0131r",insertRowAbove:"Sat\u0131r Yukar\u0131 Ekle",insertRowBelow:"Sat\u0131r A\u015fa\u011f\u0131 Ekle",deleteRow:"Sat\u0131r\u0131 Sil",insertColumnBefore:"S\xfctun \xd6nce Ekle",insertColumnAfter:"S\xfctun Sonras\u0131 Ekle",deleteColumn:"S\xfctunu Sil",fixedColumnWidth:"Sabit S\xfctun Geni\u015fli\u011fi",resize100:"%100 \xd6l\xe7eklendir",resize75:"%75 \xd6l\xe7eklendir",resize50:"%50 \xd6l\xe7eklendir",resize25:"%25 \xd6l\xe7eklendir",autoSize:"\xd6l\xe7e\u011fe Otomatik Ayar",mirrorHorizontal:"D\xfczlemsel Aynalama (Yatay)",mirrorVertical:"D\xfczlemsel Aynalama (Dikey)",rotateLeft:"Saat Y\xf6n\xfcnde D\xf6nd\xfcr",rotateRight:"Saat Y\xf6n\xfcn\xfcn Tersine D\xf6nd\xfcr",maxSize:"En B\xfcy\xfck Boyut",minSize:"En K\xfc\xe7\xfck Boyut",tableHeader:"Tablo Ba\u015fl\u0131\u011f\u0131",mergeCells:"H\xfccreleri Birle\u015ftir",splitCells:"H\xfccreleri Ay\u0131r",HorizontalSplit:"Yatay Ay\u0131rma",VerticalSplit:"Dikey Ay\u0131rma"},menu:{spaced:"Aral\u0131kl\u0131",bordered:"\xc7er\xe7eveli",neon:"Neon",translucent:"Yar\u0131 Saydam",shadow:"G\xf6lge",code:"Kod"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"tr",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},50224(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"ua",toolbar:{default:"\u041f\u043e \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c",save:"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438",font:"\u0428\u0440\u0438\u0444\u0442",formats:"\u0421\u0442\u0438\u043b\u044c \u0430\u0431\u0437\u0430\u0446\u0443",fontSize:"\u0420\u043e\u0437\u043c\u0456\u0440 \u0448\u0440\u0438\u0444\u0442\u0443",bold:"\u0416\u0438\u0440\u043d\u0438\u0439",underline:"\u041f\u0456\u0434\u043a\u0440\u0435\u0441\u043b\u0435\u043d\u0438\u0439",italic:"\u041a\u0443\u0440\u0441\u0438\u0432",strike:"\u041f\u0435\u0440\u0435\u043a\u0440\u0435\u0441\u043b\u0438\u0442\u0438",subscript:"\u041d\u0438\u0436\u043d\u0456\u0439 \u0456\u043d\u0434\u0435\u043a\u0441",superscript:"\u0412\u0435\u0440\u0445\u043d\u0456\u0439 \u0456\u043d\u0434\u0435\u043a\u0441",removeFormat:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f",fontColor:"\u041a\u043e\u043b\u0456\u0440 \u0442\u0435\u043a\u0441\u0442\u0443",hiliteColor:"\u041a\u043e\u043b\u0456\u0440 \u0432\u0438\u0434\u0456\u043b\u0435\u043d\u043d\u044f",indent:"\u0417\u0431\u0456\u043b\u044c\u0448\u0438\u0442\u0438 \u0432\u0456\u0434\u0441\u0442\u0443\u043f",outdent:"\u0417\u043c\u0435\u043d\u0448\u0438\u0442\u0438 \u0432\u0456\u0434\u0441\u0442\u0443\u043f",align:"\u0412\u0438\u0440\u0456\u0432\u043d\u044e\u0432\u0430\u043d\u043d\u044f",alignLeft:"\u0417\u0430 \u043b\u0456\u0432\u0438\u043c \u043a\u0440\u0430\u0454\u043c",alignRight:"\u0417\u0430 \u043f\u0440\u0430\u0432\u0438\u043c \u043a\u0440\u0430\u0454\u043c",alignCenter:"\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443",alignJustify:"\u0417\u0430 \u0448\u0438\u0440\u0438\u043d\u043e\u044e",list:"\u0421\u043f\u0438\u0441\u043e\u043a",orderList:"\u041d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u0438\u0439",unorderList:"\u041c\u0430\u0440\u043a\u043e\u0432\u0430\u043d\u0438\u0439",horizontalRule:"\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430 \u043b\u0456\u043d\u0456\u044f",hr_solid:"\u0421\u0443\u0446\u0456\u043b\u044c\u043d\u0430",hr_dotted:"\u041f\u0443\u043d\u043a\u0442\u0438\u0440\u043d\u0430",hr_dashed:"\u0428\u0442\u0440\u0438\u0445\u043e\u0432\u0430",table:"\u0422\u0430\u0431\u043b\u0438\u0446\u044f",link:"\u041f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f",math:"\u0424\u043e\u0440\u043c\u0443\u043b\u0430",image:"\u0417\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f",video:"\u0412\u0456\u0434\u0435\u043e",audio:"\u0410\u0443\u0434\u0456\u043e",fullScreen:"\u041f\u043e\u0432\u043d\u0438\u0439 \u0435\u043a\u0440\u0430\u043d",showBlocks:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0431\u043b\u043e\u043a\u0438",codeView:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u044f\u043a HTML",undo:"\u0421\u043a\u0430\u0441\u0443\u0432\u0430\u0442\u0438",redo:"\u0412\u0438\u043a\u043e\u043d\u0430\u0442\u0438 \u0437\u043d\u043e\u0432\u0443",preview:"\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439 \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434",print:"\u0414\u0440\u0443\u043a",tag_p:"\u0410\u0431\u0437\u0430\u0446",tag_div:"\u0411\u0430\u0437\u043e\u0432\u0438\u0439",tag_h:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a",tag_blockquote:"\u0426\u0438\u0442\u0430\u0442\u0430",tag_pre:"\u041a\u043e\u0434",template:"\u0428\u0430\u0431\u043b\u043e\u043d",lineHeight:"\u0412\u0438\u0441\u043e\u0442\u0430 \u043b\u0456\u043d\u0456\u0457",paragraphStyle:"\u0421\u0442\u0438\u043b\u044c \u0430\u0431\u0437\u0430\u0446\u0443",textStyle:"\u0421\u0442\u0438\u043b\u044c \u0442\u0435\u043a\u0441\u0442\u0443",imageGallery:"\u0413\u0430\u043b\u0435\u0440\u0435\u044f",dir_ltr:"\u0417\u043b\u0456\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e",dir_rtl:"\u0421\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0456\u0432\u043e",mention:"\u0417\u0433\u0430\u0434\u0430\u0442\u0438"},dialogBox:{linkBox:{title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f",url:"\u041f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f",text:"\u0422\u0435\u043a\u0441\u0442",newWindowCheck:"\u0412\u0456\u0434\u043a\u0440\u0438\u0432\u0430\u0442\u0438 \u0432 \u043d\u043e\u0432\u043e\u043c\u0443 \u0432\u0456\u043a\u043d\u0456",downloadLinkCheck:"\u041f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u0434\u043b\u044f \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f",bookmark:"\u0417\u0430\u043a\u043b\u0430\u0434\u043a\u0430"},mathBox:{title:"\u0424\u043e\u0440\u043c\u0443\u043b\u0430",input
1Label:"\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u0430 \u0437\u0430\u043f\u0438\u0441",fontSizeLabel:"\u0420\u043e\u0437\u043c\u0456\u0440 \u0448\u0440\u0438\u0444\u0442\u0443",previewLabel:"\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439 \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434"},imageBox:{title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f",file:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0444\u0430\u0439\u043b",url:"\u041f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u043d\u0430 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f",altText:"\u0422\u0435\u043a\u0441\u0442\u043e\u0432\u0438\u0439 \u043e\u043f\u0438\u0441 \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f"},videoBox:{title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0432\u0456\u0434\u0435\u043e",file:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0444\u0430\u0439\u043b",url:"\u041f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u043d\u0430 \u0432\u0456\u0434\u0435\u043e, Youtube, Vimeo"},audioBox:{title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0430\u0443\u0434\u0456\u043e",file:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0444\u0430\u0439\u043b",url:"\u041f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u043d\u0430 \u0430\u0443\u0434\u0456\u043e"},browser:{tags:"\u0422\u0435\u0433\u0438",search:"\u041f\u043e\u0448\u0443\u043a"},caption:"\u0414\u043e\u0434\u0430\u0442\u0438 \u043f\u0456\u0434\u043f\u0438\u0441",close:"\u0417\u0430\u043a\u0440\u0438\u0442\u0438",submitButton:"\u041f\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438",revertButton:"\u0421\u043a\u0438\u043d\u0443\u0442\u0438",proportion:"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0456\u0457",basic:"\u0411\u0435\u0437 \u043e\u0431\u0442\u0456\u043a\u0430\u043d\u043d\u044f",left:"\u0417\u043b\u0456\u0432\u0430",right:"\u0421\u043f\u0440\u0430\u0432\u0430",center:"\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443",width:"\u0428\u0438\u0440\u0438\u043d\u0430",height:"\u0412\u0438\u0441\u043e\u0442\u0430",size:"\u0420\u043e\u0437\u043c\u0456\u0440",ratio:"\u0421\u043f\u0456\u0432\u0432\u0456\u0434\u043d\u043e\u0448\u0435\u043d\u043d\u044f"},controller:{edit:"\u0417\u043c\u0456\u043d\u0438\u0442\u0438",unlink:"\u041f\u0440\u0438\u0431\u0440\u0430\u0442\u0438 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f",remove:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438",insertRowAbove:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0440\u044f\u0434\u043e\u043a \u0432\u0438\u0449\u0435",insertRowBelow:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0440\u044f\u0434\u043e\u043a \u043d\u0438\u0436\u0447\u0435",deleteRow:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0440\u044f\u0434\u043e\u043a",insertColumnBefore:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u0437\u043b\u0456\u0432\u0430",insertColumnAfter:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c \u0441\u043f\u0440\u0430\u0432\u0430",deleteColumn:"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c",fixedColumnWidth:"\u0424\u0456\u043a\u0441\u043e\u0432\u0430\u043d\u0430 \u0448\u0438\u0440\u0438\u043d\u0430 \u0441\u0442\u043e\u0432\u043f\u0446\u044f",resize100:"\u0420\u043e\u0437\u043c\u0456\u0440 100%",resize75:"\u0420\u043e\u0437\u043c\u0456\u0440 75%",resize50:"\u0420\u043e\u0437\u043c\u0456\u0440 50%",resize25:"\u0420\u043e\u0437\u043c\u0456\u0440 25%",autoSize:"\u0410\u0432\u0442\u043e \u0440\u043e\u0437\u043c\u0456\u0440",mirrorHorizontal:"\u0412\u0456\u0434\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0438 \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0456",mirrorVertical:"\u0412\u0456\u0434\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u0438 \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0456",rotateLeft:"\u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438 \u043f\u0440\u043e\u0442\u0438 \u0433\u043e\u0434\u0438\u043d\u043d\u0438\u043a\u043e\u0432\u043e\u0457 \u0441\u0442\u0440\u0456\u043b\u043a\u0438",rotateRight:"\u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438 \u0437\u0430 \u0433\u043e\u0434\u0438\u043d\u043d\u0438\u043a\u043e\u0432\u043e\u044e \u0441\u0442\u0440\u0456\u043b\u043a\u043e\u044e",maxSize:"\u0428\u0438\u0440\u0438\u043d\u0430 \u0437\u0430 \u0440\u043e\u0437\u043c\u0456\u0440\u043e\u043c \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438",minSize:"\u0428\u0438\u0440\u0438\u043d\u0430 \u0437\u0430 \u0432\u043c\u0456\u0441\u0442\u043e\u043c",tableHeader:"\u
10417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0456",mergeCells:"\u041e\u0431'\u0454\u0434\u043d\u0430\u0442\u0438 \u043a\u043b\u0456\u0442\u0438\u043d\u043a\u0438",splitCells:"\u0420\u043e\u0437\u0434\u0456\u043b\u0438\u0442\u0438 \u043a\u043b\u0456\u0442\u0438\u043d\u043a\u0443",HorizontalSplit:"\u0420\u043e\u0437\u0434\u0456\u043b\u0438\u0442\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e",VerticalSplit:"\u0420\u043e\u0437\u0434\u0456\u043b\u0438\u0442\u0438 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e"},menu:{spaced:"\u0406\u043d\u0442\u0435\u0440\u0432\u0430\u043b",bordered:"\u0417 \u043b\u0456\u043d\u0456\u044f\u043c\u0438",neon:"\u041d\u0435\u043e\u043d",translucent:"\u041d\u0430\u043f\u0456\u0432\u043f\u0440\u043e\u0437\u043e\u0440\u0438\u0439",shadow:"\u0422\u0456\u043d\u044c",code:"\u041a\u043e\u0434"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"ua",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},97497(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"ur",toolbar:{default:"\u0637\u06d2 \u0634\u062f\u06c1",save:"\u0645\u062d\u0641\u0648\u0638 \u06a9\u0631\u06cc\u06ba",font:"\u0641\u0648\u0646\u0679",formats:"\u0641\u0627\u0631\u0645\u06cc\u0679\u0633",fontSize:"\u0633\u0627\u0626\u0632",bold:"\u0628\u0648\u0644\u0688",underline:"\u0627\u0646\u0688\u0631 \u0644\u0627\u0626\u0646",italic:"\u062a\u0631\u0686\u06be\u0627",strike:"\u0644\u06a9\u06cc\u0631\u06c1 \u06a9\u0631\u062f\u06c1",subscript:"\u0630\u06cc\u0644\u06cc",superscript:"\u0627\u0646\u062a\u06c1\u0627\u0626\u06cc",removeFormat:"\u0641\u0627\u0631\u0645\u06cc\u0679 \u06a9\u0648 \u062d\u0630\u0641 \u062f\u06cc\u06ba",fontColor:"\u0644\u06a9\u06be\u0627\u0626\u06cc \u06a9\u0627 \u0631\u0646\u06af",hiliteColor:"\u0646\u0645\u0627\u06cc\u0627\u06ba \u0631\u0646\u06af",indent:"\u062d\u0627\u0634\u06cc\u06c1",outdent:"\u06c1\u0627\u0634\u06cc\u06c1 \u0648\u0627\u067e\u0633",align:"\u0631\u062e",alignLeft:"\u0628\u0627\u0626\u06cc\u06ba \u0637\u0631\u0641",alignRight:"\u062f\u0627\u0626\u06cc\u06ba \u0637\u0631\u0641",alignCenter:"\u0645\u0631\u06a9\u0632 \u0645\u06cc\u06ba \u0637\u0631\u0641",alignJustify:"\u06c1\u0631 \u0637\u0631\u0641 \u0628\u0631\u0627\u0628\u0631",list:"\u0641\u06c1\u0631\u0633\u062a",orderList:"\u062a\u0631\u062a\u06cc\u0628 \u0634\u062f\u06c1 \u0641\u06c1\u0631\u0633\u062a",unorderList:"\u063a\u06cc\u0631 \u062a\u0631\u062a\u06cc\u0628 \u0634\u062f\u06c1 \u0641\u06c1\u0631\u0633\u062a",horizontalRule:"\u0644\u06a9\u06cc\u0631",hr_solid:"\u0679\u06be\u0648\u0633",hr_dotted:"\u0646\u0642\u0637\u06d2 \u062f\u0627\u0631",hr_dashed:"\u0688\u06cc\u0634\u0688",table:"\u0645\u06cc\u0632",link:"\u0644\u0646\u06a9",math:"\u0631\u06cc\u0627\u0636\u06cc",image:"\u062a\u0635\u0648\u06cc\u0631",video:"\u0648\u06cc\u0688\u06cc\u0648",audio:"\u0622\u0648\u0627\u0632",fullScreen:"\u067e\u0648\u0631\u06cc \u0627\u0633\u06a9\u0631\u06cc\u0646",showBlocks:"\u0688\u0628\u06d2 \u062f\u06a9\u06be\u0627\u0626\u06cc\u06ba",codeView:"\u06a9\u0648\u0688 \u06a9\u0627 \u0646\u0638\u0627\u0631\u06c1",undo:"\u0648\u0627\u067e\u0633 \u06a9\u0631\u06cc\u06ba",redo:"\u062f\u0648\u0628\u0627\u0631\u06c1 \u06a9\u0631\u06cc\u06ba",preview:"\u067e\u06cc\u0634\u0646\u0638\u0631",print:"\u067e\u0631\u0646\u0679 \u06a9\u0631\u06cc\u06ba",tag_p:"\u067e\u06cc\u0631\u0627\u06af\u0631\u0627\u0641",tag_div:"\u0639\u0627\u0645 (div)",tag_h:"\u06c1\u06cc\u0688\u0631",tag_blockquote:"\u0627\u0642\u062a\u0628\u0627\u0633",tag_pre:"\u06a9\u0648\u0688",template:"\u0633\u0627\u0646\u0686\u06c1",lineHeight:"\u0644\u06a9\u06cc\u0631 \u06a9\u06cc \u0627\u0648\u0646\u0686\u0627\u0626\u06cc",paragraphStyle:"\u0639\u0628\u0627\u0631\u062a \u06a9\u0627 \u0627\u0646\u062f\u0627\u0632",textStyle:"\u0645\u062a\u0646 \u06a9\u0627 \u0627\u0646\u062f\u0627\u0632",imageGallery:"\u062a\u0635\u0648\u06cc\u0631\u06cc \u0646\u06af\u0627\u0631\u062e\u0627\u0646\u06c1",dir_ltr:"\u0628\u0627\u0626\u06cc\u06ba \u0633\u06d2 \u062f\u0627\u0626\u06cc\u06ba",dir_rtl:"\u062f\u0627\u0626\u06cc\u06ba \u0633\u06d2 \u0628\u0627\u0626\u06cc\u06ba",mention:"\u062a\u0630\u06a9\u0631\u06c1"},dialogBox:{linkBox:{title:"\u0644\u0646\u06a9 \u062f\u0627\u062e\u0644 \u06a9\u0631\u06cc\u06ba",url:"\u0644\u0646\u06a9 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 URL",text:"\u0638\u0627\u06c1\u0631 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0644\u06cc\u06d2 \u0645\u062a\u0646",newWindowCheck:"\u0646\u0626\u06cc \u0648\u0646\u0688\u0648 \u0645\u06cc\u06ba \u06a9\u06be\u0648\u0644\u06cc\u06ba",downloadLinkCheck:"\u0688\u0627\u0624\u0646 \u0644\u0648\u0688 \u0644\u0646\u06a9",bookmark:"\u0628\u06a9 \u0645\u0627\u0631\u06a9"},mathBox:{title:"\u0631\u06cc\u0627\u0636\u06cc",inputLabel:"\u0631\u06cc\u0627\u0636\u06cc\u0627\u062a\u06cc \u0627\u0634\u0627\u0631\u06d2",fontSizeLabel:"\u062d\u0631\u0641 \u06a9\u0627 \u0633\u0627\u0626\u0632",previewLabel:"\u067e\u06cc\u0634 \u0646\u0638\u0627\u0631\u06c1"},imageBox:{title:"\u062a\u0635\u0648\u06cc\u0631 \u062f\u0627\u062e\u0644 \u06a9\u0631\u06cc\u06ba",file:"\u0641\u0627\u0626\u0644\u0648\u06ba \u0633\u06d2 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba",url:"\u062a\u0635\u0648\u06cc\u0631\u06cc URL",altText:"\u0645\u062a\u0628\u0627\u062f\u0644 \u0645\u062a\u0646"},videoBox:{title:"\u0648\u06cc\u0688\u06cc\u0648 \u062f\u0627\u062e\u0644 \u06a9\u0631\u06cc\u06ba",file:"\u0641\u0627\u0626\u0644\u0648\u06ba \u0633\u06d2 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba",url:"\u0630\u0631\u0627\u0626\u0639 \u0627\u0628\u0644\u0627\u063a \u06a9\u0627 \u06cc\u0648 \u0622\u0631 \u0627\u06cc\u0644\u060c \u06cc\u0648\u0679\u06cc\u0648\u0628/\u0648\u06cc\u0645\u06cc\u0648"},audioBox:{title:"\u0622\u0648\u0627\u0632 \u062f\u0627\u062e\u0644 \u06a9\u0631\u06cc\u06ba",file:"\u0641\u0627\u0626\u0644\u0648\u06ba \u0633\u06d2 \u0645\u0646\u062a\u062e\u0628 \u06a9\u0631\u06cc\u06ba",url:"\u0622\u0648\u0627\u0632 URL"},browser:{tags:"\u0679\u06cc\u06af\u0632",search:"\u062a\u0644\u0627\u0634 \u06a9\u0631\u06cc\u06ba"},caption:"\u0639\u0646\u0648\u0627\u0646",close:"\u0628\u0646\u062f \u06a9\u0631\u06cc\u06ba",submitButton:"\u0628\u06be\u06cc\u062c\u06cc\u06ba",revertButton:"\u0648\u0627\u067e\u0633",proportion:"\u062a\u0646\u0627\u0633\u0628 \u06a9\u0648 \u0645\u062d\u062f\u0648\u062f \u06a9\u0631\u06cc\u06ba",basic:"\u0628\u0646\u06cc\u0627\u062f\u06cc",left:"\u0628\u0627\u0626\u06cc\u06ba",right:"\u062f\u0627\u0626\u06cc\u06ba",center:"\u0645\u0631\u06a9\u0632",width:"\u0686\u0648\u0691\u0627\u0626\u06cc",height:"\u0627\u0648\u0646\u0686\u0627\u0626\u06cc",size:"\u062d\u062c\u0645",ratio:"\u062a\u0646\u0627\u0633\u0628"},controller:{edit:"\u062a\u0631\u0645\u06cc\u0645",unlink:"\u0644\u0646\u06a9 \u062e\u062a\u0645 \u06a9\u0631\u06cc\u06ba",remove:"\u062d\u0630\u0641",insertRowAbove:"\u0627\u0648\u067e\u0631 \u0642\u0637\u0627\u0631 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba",insertRowBelow:"\u0646\u06cc\u0686\u06d2 \u0642\u0637\u0627\u0631 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba",deleteRow:"\u0642\u0637\u0627\u0631 \u06a9\u0648 \u062d\u0630\u0641 \u06a9\u0631\u06cc\u06ba",insertColumnBefore:"\u067e\u06c1\u0644\u06d2 \u0633\u062a\u0648\u0646 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba",insertColumnAfter:"\u0627\u0633 \u06a9\u06d2 \u0628\u0639\u062f \u0633\u062a\u0648\u0646 \u0634\u0627\u0645\u0644 \u06a9\u0631\u06cc\u06ba",deleteColumn:"\u0633\u062a\u0648\u0646 \u062d\u0630\u0641 \u06a9\u0631\u06cc\u06ba",fixedColumnWidth:"\u0645\u0642\u0631\u0631\u06c1 \u0633\u062a\u0648\u0646 \u06a9\u06cc \u0686\u0648\u0691\u0627\u0626\u06cc",resize100:"100% \u06a9\u0627 \u062d\u062c\u0645 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u06cc\u06ba",resize75:"75% \u06a9\u0627 \u062d\u062c\u0645 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u06cc\u06ba",resize50:"50% \u06a9\u0627 \u062d\u062c\u0645 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u06cc\u06ba",resize25:"25% \u06a9\u0627 \u062d\u062c\u0645 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0631\u06cc\u06ba",autoSize:"\u0627\u0632\u062e\u0648\u062f \u062d\u062c\u0645",mirrorHorizontal:"\u0622\u0626\u06cc\u0646\u06c1\u060c \u0627\u0641\u0642\u06cc",mirrorVertical:"\u0622\u0626\u06cc\u0646\u06c1\u060c \u0639\u0645\u0648\u062f\u06cc",rotateLeft:"\u0628\u0627\u0626\u06cc\u06ba \u06af\u06be\u0648\u0645\u0648",rotateRight:"\u062f\u0627\u0626\u06cc\u06ba \u06af\u06be\u0645\u0627\u0626\u06cc\u06ba",maxSize:"\u0632\u06cc\u0627\u062f\u06c1 \u0633\u06d2 \u0632\u06cc\u0627\u062f\u06c1 \u0633\u0627\u0626\u0632",minSize:"\u06a9\u0645 \u0627\u0632 \u06a9\u0645 \u0633\u0627\u0626\u0632",tableHeader:"\u
10645\u06cc\u0632 \u06a9\u06cc \u0633\u0631\u062e\u06cc",mergeCells:"\u062d\u062c\u0631\u0648\u06ba \u06a9\u0648 \u0636\u0645 \u06a9\u0631\u06cc\u06ba",splitCells:"\u062d\u062c\u0631\u0648\u06ba \u06a9\u0648 \u0639\u0644\u06cc\u062f\u06c1 \u06a9\u0631\u0648",HorizontalSplit:"\u0627\u0641\u0642\u06cc \u062a\u0642\u0633\u06cc\u0645",VerticalSplit:"\u0639\u0645\u0648\u062f\u06cc \u062a\u0642\u0633\u06cc\u0645"},menu:{spaced:"\u0641\u0627\u0635\u0644\u06c1",bordered:"\u0633\u0631\u062d\u062f\u06cc",neon:"\u0646\u06cc\u06cc\u0646",translucent:"\u067e\u0627\u0631\u0628\u0627\u0633\u06cc",shadow:"\u0633\u0627\u06cc\u06c1",code:"\u06a9\u0648\u0688"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"ur",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},32638(e){var t,i;t="undefined"!==typeof window?window:this,i=function(e,t){const i={code:"zh_cn",toolbar:{default:"\u9ed8\u8ba4",save:"\u4fdd\u5b58",font:"\u5b57\u4f53",formats:"\u683c\u5f0f",fontSize:"\u5b57\u53f7",bold:"\u7c97\u4f53",underline:"\u4e0b\u5212\u7ebf",italic:"\u659c\u4f53",strike:"\u5220\u9664\u7ebf",subscript:"\u4e0b\u6807",superscript:"\u4e0a\u6807",removeFormat:"\u6e05\u9664\u683c\u5f0f",fontColor:"\u5b57\u4f53\u989c\u8272",hiliteColor:"\u80cc\u666f\u989c\u8272",indent:"\u589e\u52a0\u7f29\u8fdb",outdent:"\u51cf\u5c11\u7f29\u8fdb",align:"\u5bf9\u9f50\u65b9\u5f0f",alignLeft:"\u5de6\u5bf9\u9f50",alignRight:"\u53f3\u5bf9\u9f50",alignCenter:"\u5c45\u4e2d",alignJustify:"\u4e24\u7aef\u5bf9\u9f50",list:"\u5217\u8868",orderList:"\u6709\u5e8f\u5217\u8868",unorderList:"\u65e0\u5e8f\u5217\u8868",horizontalRule:"\u6c34\u5e73\u7ebf",hr_solid:"\u5b9e\u7ebf",hr_dotted:"\u70b9\u7ebf",hr_dashed:"\u865a\u7ebf",table:"\u8868\u683c",link:"\u8d85\u94fe\u63a5",math:"\u6570\u5b66",image:"\u56fe\u7247",video:"\u89c6\u9891",audio:"\u97f3\u8baf",fullScreen:"\u5168\u5c4f",showBlocks:"\u663e\u793a\u5757\u533a\u57df",codeView:"\u4ee3\u7801\u89c6\u56fe",undo:"\u64a4\u6d88",redo:"\u6062\u590d",preview:"\u9884\u89c8",print:"\u6253\u5370",tag_p:"\u6bb5\u843d",tag_div:"\u6b63\u6587 (DIV)",tag_h:"\u6807\u9898",tag_blockquote:"\u5f15\u7528",tag_pre:"\u4ee3\u7801",template:"\u6a21\u677f",lineHeight:"\u884c\u9ad8",paragraphStyle:"\u6bb5\u843d\u6837\u5f0f",textStyle:"\u6587\u5b57\u6837\u5f0f",imageGallery:"\u56fe\u7247\u5e93",dir_ltr:"\u5de6\u5230\u53f3",dir_rtl:"\u53f3\u5230\u5de6",mention:"\u63d0\u5230"},dialogBox:{linkBox:{title:"\u63d2\u5165\u8d85\u94fe\u63a5",url:"\u7f51\u5740",text:"\u8981\u663e\u793a\u7684\u6587\u5b57",newWindowCheck:"\u5728\u65b0\u6807\u7b7e\u9875\u4e2d\u6253\u5f00",downloadLinkCheck:"\u4e0b\u8f7d\u94fe\u63a5",bookmark:"\u4e66\u7b7e"},mathBox:{title:"\u6570\u5b66",inputLabel:"\u6570\u5b66\u7b26\u53f7",fontSizeLabel:"\u5b57\u53f7",previewLabel:"\u9884\u89c8"},imageBox:{title:"\u63d2\u5165\u56fe\u7247",file:"\u4e0a\u4f20\u56fe\u7247",url:"\u56fe\u7247\u7f51\u5740",altText:"\u66ff\u6362\u6587\u5b57"},videoBox:{title:"\u63d2\u5165\u89c6\u9891",file:"\u4e0a\u4f20\u56fe\u7247",url:"\u5d4c\u5165\u7f51\u5740, Youtube,Vimeo"},audioBox:{title:"\u63d2\u5165\u97f3\u9891",file:"\u4e0a\u4f20\u56fe\u7247",url:"\u97f3\u9891\u7f51\u5740"},browser:{tags:"\u6807\u7b7e",search:"\u641c\u7d22"},caption:"\u6807\u9898",close:"\u53d6\u6d88",submitButton:"\u786e\u5b9a",revertButton:"\u6062\u590d",proportion:"\u6bd4\u4f8b",basic:"\u57fa\u672c",left:"\u5de6",right:"\u53f3",center:"\u5c45\u4e2d",width:"\u5bbd\u5ea6",height:"\u9ad8\u5ea6",size:"\u5c3a\u5bf8",ratio:"\u6bd4"},controller:{edit:"\u7f16\u8f91",unlink:"\u53bb\u9664\u94fe\u63a5",remove:"\u5220\u9664",insertRowAbove:"\u5728\u4e0a\u65b9\u63d2\u5165",insertRowBelow:"\u5728\u4e0b\u65b9\u63d2\u5165",deleteRow:"\u5220\u9664\u884c",insertColumnBefore:"\u5728\u5de6\u4fa7\u63d2\u5165",insertColumnAfter:"\u5728\u53f3\u4fa7\u63d2\u5165",deleteColumn:"\u5220\u9664\u5217",fixedColumnWidth:"\u56fa\u5b9a\u5217\u5bbd",resize100:"\u653e\u5927 100%",resize75:"\u653e\u5927 75%",resize50:"\u653e\u5927 50%",resize25:"\u653e\u5927 25%",mirrorHorizontal:"\u7ffb\u8f6c\u5de6\u53f3",mirrorVertical:"\u7ffb\u8f6c\u4e0a\u4e0b",rotateLeft:"\u5411\u5de6\u65cb\u8f6c",rotateRight:"\u5411\u53f3\u65cb\u8f6c",maxSize:"\u6700\u5927\u5c3a\u5bf8",minSize:"\u6700\u5c0f\u5c3a\u5bf8",tableHeader:"\u8868\u683c\u6807\u9898",mergeCells:"\u5408\u5e76\u5355\u5143\u683c",splitCells:"\u5206\u5272\u5355\u5143\u683c",HorizontalSplit:"\u6c34\u5e73\u5206\u5272",VerticalSplit:"\u5782\u76f4\u5206\u5272"},menu:{spaced:"\u95f4\u9694\u5f00",bordered:"\u8fb9\u754c\u7ebf",neon:"\u9713\u8679\u706f",translucent:"\u534a\u900f\u660e",shadow:"\u9634\u5f71",code:"\u4ee3\u7801"}};return"undefined"===typeof t&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,
1configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"zh_cn",{enumerable:!0,writable:!0,configurable:!0,value:i})),i},"object"===typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_LANG a window with a document");return i(e)}:i(t)},59286(e,t,i){i.r(t),i.d(t,{align:()=>c,audio:()=>A,blockquote:()=>r,default:()=>O,font:()=>d,fontColor:()=>g,fontSize:()=>u,formatBlock:()=>_,hiliteColor:()=>p,horizontalRule:()=>m,image:()=>z,imageGallery:()=>H,lineHeight:()=>v,link:()=>E,list:()=>f,math:()=>I,paragraphStyle:()=>w,table:()=>b,template:()=>y,textStyle:()=>C,video:()=>B});var n=i.cw(function(e,t){var i,n;i="undefined"!==typeof window?window:this,n=function(e,t){const i={name:"component",set_container:function(e,t){const i=this.util.createElement("DIV");return i.className="se-component "+t,i.appendChild(e),i},set_cover:function(e){const t=this.util.createElement("FIGURE");return t.appendChild(e),t},create_caption:function(){const e=this.util.createElement("FIGCAPTION");return e.innerHTML="<div>"+this.lang.dialogBox.caption+"</div>",e}};return"undefined"===typeof t&&(e.SUNEDITOR_MODULES||Object.defineProperty(e,"SUNEDITOR_MODULES",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_MODULES,"component",{enumerable:!0,writable:!1,configurable:!1,value:i})),i},"object"===typeof e.exports?e.exports=i.document?n(i,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_MODULES a window with a document");return n(e)}:n(i)}),l=i.cw(function(e,t){var i,n;i="undefined"!==typeof window?window:this,n=function(e,t){const i={name:"dialog",add:function(e){const t=e.context;t.dialog={kind:"",updateModal:!1,_closeSignal:!1};let i=e.util.createElement("DIV");i.className="se-dialog sun-editor-common";let n=e.util.createElement("DIV");n.className="se-dialog-back",n.style.display="none";let l=e.util.createElement("DIV");l.className="se-dialog-inner",l.style.display="none",i.appendChild(n),i.appendChild(l),t.dialog.modalArea=i,t.dialog.back=n,t.dialog.modal=l,t.dialog.modal.addEventListener("mousedown",this._onMouseDown_dialog.bind(e)),t.dialog.modal.addEventListener("click",this._onClick_dialog.bind(e)),t.element.relative.appendChild(i),i=null,n=null,l=null},_onMouseDown_dialog:function(e){/se-dialog-inner/.test(e.target.className)?this.context.dialog._closeSignal=!0:this.context.dialog._closeSignal=!1},_onClick_dialog:function(e){(/close/.test(e.target.getAttribute("data-command"))||this.context.dialog._closeSignal)&&this.plugins.dialog.close.call(this)},open:function(e,t){if(this.modalForm)return!1;this.plugins.dialog._bindClose&&(this._d.removeEventListener("keydown",this.plugins.dialog._bindClose),this.plugins.dialog._bindClose=null),this.plugins.dialog._bindClose=function(e){/27/.test(e.keyCode)&&this.plugins.dialog.close.call(this)}.bind(this),this._d.addEventListener("keydown",this.plugins.dialog._bindClose),this.context.dialog.updateModal=t,"full"===this.options.popupDisplay?this.context.dialog.modalArea.style.position="fixed":this.context.dialog.modalArea.style.position="absolute",this.context.dialog.kind=e,this.modalForm=this.context[e].modal;const i=this.context[e].focusElement;"function"===typeof this.plugins[e].on&&this.plugins[e].on.call(this,t),this.context.dialog.modalArea.style.display="block",this.context.dialog.back.style.display="block",this.context.dialog.modal.style.display="block",this.modalForm.style.display="block",i&&i.focus()},_bindClose:null,close:function(){this.plugins.dialog._bindClose&&(this._d.removeEventListener("keydown",this.plugins.dialog._bindClose),this.plugins.dialog._bindClose=null);const e=this.context.dialog.kind;this.modalForm.style.display="none",this.context.dialog.back.style.display="none",this.context.dialog.modalArea.style.display="none",this.context.dialog.updateModal=!1,"function"===typeof this.plugins[e].init&&this.plugins[e].init.call(this),this.context.dialog.kind="",this.modalForm=null,this.focus()}};return"undefined"===typeof t&&(e.SUNEDITOR_MODULES||Object.defineProperty(e,"SUNEDITOR_MODULES",{enumerable:!0,writable:!1,
1configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_MODULES,"dialog",{enumerable:!0,writable:!1,configurable:!1,value:i})),i},"object"===typeof e.exports?e.exports=i.document?n(i,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_MODULES a window with a document");return n(e)}:n(i)}),o=i.cw(function(e,t){var i,n;i="undefined"!==typeof window?window:this,n=function(e,t){const i={name:"fileBrowser",_xmlHttp:null,_loading:null,add:function(e){const t=e.context;t.fileBrowser={_closeSignal:!1,area:null,header:null,tagArea:null,body:null,list:null,tagElements:null,items:[],selectedTags:[],selectorHandler:null,contextPlugin:"",columnSize:4};let i=e.util.createElement("DIV");i.className="se-file-browser sun-editor-common";let n=e.util.createElement("DIV");n.className="se-file-browser-back";let l=e.util.createElement("DIV");l.className="se-file-browser-inner",l.innerHTML=this.set_browser(e),i.appendChild(n),i.appendChild(l),this._loading=i.querySelector(".se-loading-box"),t.fileBrowser.area=i,t.fileBrowser.header=l.querySelector(".se-file-browser-header"),t.fileBrowser.titleArea=l.querySelector(".se-file-browser-title"),t.fileBrowser.tagArea=l.querySelector(".se-file-browser-tags"),t.fileBrowser.body=l.querySelector(".se-file-browser-body"),t.fileBrowser.list=l.querySelector(".se-file-browser-list"),t.fileBrowser.tagArea.addEventListener("click",this.onClickTag.bind(e)),t.fileBrowser.list.addEventListener("click",this.onClickFile.bind(e)),l.addEventListener("mousedown",this._onMouseDown_browser.bind(e)),l.addEventListener("click",this._onClick_browser.bind(e)),t.element.relative.appendChild(i),i=null,n=null,l=null},set_browser:function(e){const t=e.lang;return'<div class="se-file-browser-content"><div class="se-file-browser-header"><button type="button" data-command="close" class="se-btn se-file-browser-close" class="close" title="'+t.dialogBox.close+'" aria-label="'+t.dialogBox.close+'">'+e.icons.cancel+'</button><span class="se-file-browser-title"></span><div class="se-file-browser-tags"></div></div><div class="se-file-browser-body"><div class="se-loading-box sun-editor-common"><div class="se-loading-effect"></div></div><div class="se-file-browser-list"></div></div></div>'},_onMouseDown_browser:function(e){/se-file-browser-inner/.test(e.target.className)?this.context.fileBrowser._closeSignal=!0:this.context.fileBrowser._closeSignal=!1},_onClick_browser:function(e){e.stopPropagation(),(/close/.test(e.target.getAttribute("data-command"))||this.context.fileBrowser._closeSignal)&&this.plugins.fileBrowser.close.call(this)},open:function(e,t){this.plugins.fileBrowser._bindClose&&(this._d.removeEventListener("keydown",this.plugins.fileBrowser._bindClose),this.plugins.fileBrowser._bindClose=null),this.plugins.fileBrowser._bindClose=function(e){/27/.test(e.keyCode)&&this.plugins.fileBrowser.close.call(this)}.bind(this),this._d.addEventListener("keydown",this.plugins.fileBrowser._bindClose);const i=this.context.fileBrowser;i.contextPlugin=e,i.selectorHandler=t;const n=this.context[e],l=n.listClass;this.util.hasClass(i.list,l)||(i.list.className="se-file-browser-list "+l),"full"===this.options.popupDisplay?i.area.style.position="fixed":i.area.style.position="absolute",i.titleArea.textContent=n.title,i.area.style.display="block",this.context[e].directData?this.plugins.fileBrowser._drawListItem.call(this,this.context[e].directData,!0):this.plugins.fileBrowser._drawFileList.call(this,this.context[e].url,this.context[e].header)},_bindClose:null,close:function(){const e=this.plugins.fileBrowser;e._xmlHttp&&e._xmlHttp.abort(),e._bindClose&&(this._d.removeEventListener("keydown",e._bindClose),e._bindClose=null);const t=this.context.fileBrowser;t.area.style.display="none",t.selectorHandler=null,t.selectedTags=[],t.items=[],t.list.innerHTML=t.tagArea.innerHTML=t.titleArea.textContent="","function"===typeof this.plugins[t.contextPlugin].init&&this.plugins[t.contextPlugin].init.call(this),t.contextPlugin=""},showBrowserLoading:function(){this._loading.style.display="block"},closeBrowserLoading:function(){this._loading.style.display="none"},_drawFileList:function(e,t){const i=this.plugins.fileBrowser,n=i._xmlHttp=this.util.getXMLHttpRequest();if(n.onreadystatechange=i._callBackGet.bind(this,n),n.open("get",e,!0),null!==t&&"object"===typeof t&&this._w.Object.keys(t).length>0)for(let l in t)n.setRequestHeader(l,t[l]);n.send(null),this.plugins.fileBrowser.showBrowserLoading()},_callBackGet:function(e){if(4===e.readyState)if(this.plugins.fileBrowser._xmlHttp=null,200===e.status)try{const t=JSON.parse(e.responseText);t.result.length>0?this.plugins.fileBrowser._drawListItem.call(this,t.result,!0):t.nullMessage&&(this.context.fileBrowser.list.innerHTML=t.nullMessage)}catch(t){throw Error('[SUNEDITOR.fileBrowser.drawList.fail] cause : "'+t.message+'"')}finally{this.plugins.fileBrowser.closeBrowserLoading(),this.context.fileBrowser.body.style.maxHeight=this._w.innerHeight-this.context.fileBrowser.header.offsetHeight-50+"px"}else if(this.plugins.fileBrowser.closeBrowserLoading(),0!==e.status){const t=e.responseText?JSON.parse(e.responseText):e,i="[SUNEDITOR.fileBrowser.get.serverException] status: "+e.status+", response: "+(t.errorMessage||e.responseText);throw Error(i)}},_drawListItem:function(e,t){const i=this.context.fileBrowser,n=this.context[i.contextPlugin],l=[],o=e.length,s=n.columnSize||i.columnSize,a=s<=1?1:Math.round(o/s)||1,r=n.itemTemplateHandler;let c="",d='<div class="se-file-item-column">',u=1;for(let h,g,p=0;p<o;p++)if(h=e[p],g=h.tag?"string"===typeof h.tag?h.tag.split(","):h.tag:[],g=h.tag=g.map(function(e){return e.trim()}),d+=r(h),(p+1)%a===0&&u<s&&p+1<o&&(u++,d+='</div><div class="se-file-item-column">'),t&&g.length>0)for(let e,t=0,i=g.length;t<i;t++)e=g[t],e&&-1===l.indexOf(e)&&(l.push(e),c+='<a title="'+e+'" aria-label="'+e+'">'+e+"</a>");d+="</div>",i.list.innerHTML=d,t&&(i.items=e,i.tagArea.innerHTML=c,i.tagElements=i.tagArea.querySelectorAll("A"))},onClickTag:function(e){const t=e.target;if(!this.util.isAnchor(t))return;const i=t.textContent,n=this.plugins.fileBrowser,l=this.context.fileBrowser,o=l.tagArea.querySelector('a[title="'+i+'"]'),s=l.selectedTags,a=s.indexOf(i);a>-1?(s.splice(a,1),this.util.removeClass(o,"on")):(s.push(i),this.util.addClass(o,"on")),n._drawListItem.call(this,0===s.length?l.items:l.items.filter(function(e){return e.tag.some(function(e){return s.indexOf(e)>-1})}),!1)},onClickFile:function(e){e.preventDefault(),e.stopPropagation();const t=this.context.fileBrowser,i=t.list;let n=e.target,l=null;if(n!==i){for(;i!==n.parentNode&&(l=n.getAttribute("data-command"),!l);)n=n.parentNode;l&&((t.selectorHandler||this.context[t.contextPlugin].selectorHandler)(n,n.parentNode.querySelector(".__se__img_name").textContent),this.plugins.fileBrowser.close.call(this))}}};return"undefined"===typeof t&&(e.SUNEDITOR_MODULES||Object.defineProperty(e,"SUNEDITOR_MODULES",{enumerable:!0,writable:!1,
1configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_MODULES,"fileBrowser",{enumerable:!0,writable:!1,configurable:!1,value:i})),i},"object"===typeof e.exports?e.exports=i.document?n(i,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_MODULES a window with a document");return n(e)}:n(i)}),s=i.cw(function(e,t){var i,n;i="undefined"!==typeof window?window:this,n=function(e,t){const i={name:"fileManager",_xmlHttp:null,_checkMediaComponent:function(e){return!/IMG|IFRAME|VIDEO|AUDIO/i.test(e.tagName)||/FIGURE/i.test(e.parentElement.nodeName)||/FIGURE/i.test(e.parentElement.parentElement.nodeName)},upload:function(e,t,i,n,l){this.showLoading();const o=this.plugins.fileManager,s=o._xmlHttp=this.util.getXMLHttpRequest();if(s.onreadystatechange=o._callBackUpload.bind(this,s,n,l),s.open("post",e,!0),null!==t&&"object"===typeof t&&this._w.Object.keys(t).length>0)for(let a in t)s.setRequestHeader(a,t[a]);s.send(i)},_callBackUpload:function(e,t,i){if(4===e.readyState)if(200===e.status)try{t(e)}catch(n){throw Error('[SUNEDITOR.fileManager.upload.callBack.fail] cause : "'+n.message+'"')}finally{this.closeLoading()}else{this.closeLoading();const t=e.responseText?JSON.parse(e.responseText):e;if("function"!==typeof i||i("",t,this)){const i="[SUNEDITOR.fileManager.upload.serverException] status: "+e.status+", response: "+(t.errorMessage||e.responseText);throw this.functions.noticeOpen(i),Error(i)}}},checkInfo:function(e,t,i,n,l){let o=[];for(let g=0,p=t.length;g<p;g++)o=o.concat([].slice.call(this.context.element.wysiwyg.querySelectorAll(t[g]+':not([data-se-embed="true"])')));const s=this.plugins.fileManager,a=this.context[e],r=a._infoList,c=s.setInfo.bind(this);if(o.length===r.length){if(this._componentsInfoReset){for(let t=0,n=o.length;t<n;t++)c(e,o[t],i,null,l);return}{let e=!1;for(let t,i=0,n=r.length;i<n;i++)if(t=r[i],0===o.filter(function(e){return t.src===e.src&&t.index.toString()===e.getAttribute("data-index")}).length){e=!0;break}if(!e)return}}const d=l?this.context.resizing._resize_plugin:"";l&&(this.context.resizing._resize_plugin=e);const u=[],h=[];for(let g=0,p=r.length;g<p;g++)h[g]=r[g].index;for(a.__updateTags=o;o.length>0;){const t=o.shift();this.util.getParentElement(t,this.util.isMediaComponent)&&s._checkMediaComponent(t)?!t.getAttribute("data-index")||h.indexOf(1*t.getAttribute("data-index"))<0?(u.push(a._infoIndex),t.removeAttribute("data-index"),c(e,t,i,null,l)):u.push(1*t.getAttribute("data-index")):(u.push(a._infoIndex),n(t))}for(let g,p=0;p<r.length;p++)g=r[p].index,u.indexOf(g)>-1||(r.splice(p,1),"function"===typeof i&&i(null,g,"delete",null,0,this),p--);l&&(this.context.resizing._resize_plugin=d)},setInfo:function(e,t,i,n,l){const o=l?this.context.resizing._resize_plugin:"";l&&(this.context.resizing._resize_plugin=e);const s=this.plugins[e],a=this.context[e],r=a._infoList;let c=t.getAttribute("data-index"),d=null,u="";if(n||(n={name:t.getAttribute("data-file-name")||("string"===typeof t.src?t.src.split("/").pop():""),size:t.getAttribute("data-file-size")||0}),!c||this._componentsInfoInit)u="create",c=a._infoIndex++,t.setAttribute("data-index",c),t.setAttribute("data-file-name",n.name),t.setAttribute("data-file-size",n.size),d={src:t.src,index:1*c,name:n.name,size:n.size},r.push(d);else{u="update",c*=1;for(let e=0,t=r.length;e<t;e++)if(c===r[e].index){d=r[e];break}d||(c=a._infoIndex++,d={index:c},r.push(d)),d.src=t.src,d.name=t.getAttribute("data-file-name"),d.size=1*t.getAttribute("data-file-size")}if(d.element=t,d.delete=s.destroy.bind(this,t),d.select=function(e){e.scrollIntoView(!0),this._w.setTimeout(s.select.bind(this,e))}.bind(this,t),l){if(!t.getAttribute("origin-size")&&t.naturalWidth&&t.setAttribute("origin-size",t.naturalWidth+","+t.naturalHeight),!t.getAttribute("data-origin")){const e=this.util.getParentElement(t,this.util.isMediaComponent),i=this.util.getParentElement(t,"FIGURE"),n=this.plugins.resizing._module_getSizeX.call(this,a,t,i,e),l=this.plugins.resizing._module_getSizeY.call(this,a,t,i,e);t.setAttribute("data-origin",n+","+l),t.setAttribute("data-size",n+","+l)}if(!t.style.width){const e=(t.getAttribute("data-size")||t.getAttribute("data-origin")||"").split(",");s.onModifyMode.call(this,t,null),s.applySize.call(this,e[0],e[1])}this.context.resizing._resize_plugin=o}"function"===typeof i&&i(t,c,u,d,--a._uploadFileLength<0?0:a._uploadFileLength,this)},deleteInfo:function(e,t,i){if(t>=0){const n=this.context[e]._infoList;for(let e=0,l=n.length;e<l;e++)if(t===n[e].index)return n.splice(e,1),void("function"===typeof i&&i(null,t,"delete",null,0,this))}},resetInfo:function(e,t){const i=this.context[e];if("function"===typeof t){const e=i._infoList;for(let i=0,n=e.length;i<n;i++)t(null,e[i].index,"delete",null,0,this)}i._infoList=[],i._infoIndex=0}};return"undefined"===typeof t&&(e.SUNEDITOR_MODULES||Object.defineProperty(e,"SUNEDITOR_MODULES",{enumerable:!0,writable:!1,
1configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_MODULES,"fileManager",{enumerable:!0,writable:!1,configurable:!1,value:i})),i},"object"===typeof e.exports?e.exports=i.document?n(i,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_MODULES a window with a document");return n(e)}:n(i)}),a=i.cw(function(e,t){var i,n;i="undefined"!==typeof window?window:this,n=function(e,t){const i={name:"resizing",add:function(e){const t=e.icons,i=e.context;i.resizing={_resizeClientX:0,_resizeClientY:0,_resize_plugin:"",_resize_w:0,_resize_h:0,_origin_w:0,_origin_h:0,_rotateVertical:!1,_resize_direction:"",_move_path:null,_isChange:!1,alignIcons:{basic:t.align_justify,left:t.align_left,right:t.align_right,center:t.align_center}};let n=this.setController_resize(e);i.resizing.resizeContainer=n,i.resizing.resizeDiv=n.querySelector(".se-modal-resize"),i.resizing.resizeDot=n.querySelector(".se-resize-dot"),i.resizing.resizeDisplay=n.querySelector(".se-resize-display");let l=this.setController_button(e);i.resizing.resizeButton=l;let o=i.resizing.resizeHandles=i.resizing.resizeDot.querySelectorAll("span");i.resizing.resizeButtonGroup=l.querySelector("._se_resizing_btn_group"),i.resizing.rotationButtons=l.querySelectorAll("._se_resizing_btn_group ._se_rotation"),i.resizing.percentageButtons=l.querySelectorAll("._se_resizing_btn_group ._se_percentage"),i.resizing.alignMenu=l.querySelector(".se-resizing-align-list"),i.resizing.alignMenuList=i.resizing.alignMenu.querySelectorAll("button"),i.resizing.alignButton=l.querySelector("._se_resizing_align_button"),i.resizing.autoSizeButton=l.querySelector("._se_resizing_btn_group ._se_auto_size"),i.resizing.captionButton=l.querySelector("._se_resizing_caption_button"),n.addEventListener("mousedown",function(e){e.preventDefault()}),o[0].addEventListener("mousedown",this.onMouseDown_resize_handle.bind(e)),o[1].addEventListener("mousedown",this.onMouseDown_resize_handle.bind(e)),o[2].addEventListener("mousedown",this.onMouseDown_resize_handle.bind(e)),o[3].addEventListener("mousedown",this.onMouseDown_resize_handle.bind(e)),o[4].addEventListener("mousedown",this.onMouseDown_resize_handle.bind(e)),o[5].addEventListener("mousedown",this.onMouseDown_resize_handle.bind(e)),o[6].addEventListener("mousedown",this.onMouseDown_resize_handle.bind(e)),o[7].addEventListener("mousedown",this.onMouseDown_resize_handle.bind(e)),l.addEventListener("click",this.onClick_resizeButton.bind(e)),i.element.relative.appendChild(n),i.element.relative.appendChild(l),n=null,l=null,o=null},setController_resize:function(e){const t=e.util.createElement("DIV");return t.className="se-controller se-resizing-container",t.style.display="none",t.innerHTML='<div class="se-modal-resize"></div><div class="se-resize-dot"><span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span><span class="lw"></span><span class="th"></span><span class="rw"></span><span class="bh"></span><div class="se-resize-display"></div></div>',t},setController_button:function(e){const t=e.lang,i=e.icons,n=e.util.createElement("DIV");return n.className="se-controller se-controller-resizing",n.innerHTML='<div class="se-arrow se-arrow-up"></div><div class="se-btn-group _se_resizing_btn_group"><button type="button" data-command="percent" data-value="1" class="se-tooltip _se_percentage"><span>100%</span><span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.resize100+'</span></span></button><button type="button" data-command="percent" data-value="0.75" class="se-tooltip _se_percentage"><span>75%</span><span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.resize75+'</span></span></button><button type="button" data-command="percent" data-value="0.5" class="se-tooltip _se_percentage"><span>50%</span><span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.resize50+'</span></span></button><button type="button" data-command="auto" class="se-btn se-tooltip _se_auto_size">'+i.auto_size+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.autoSize+'</span></span></button><button type="button" data-command="rotate" data-value="-90" class="se-btn se-tooltip _se_rotation">'+i.rotate_left+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.rotateLeft+'</span></span></button><button type="button" data-command="rotate" data-value="90" class="se-btn se-tooltip _se_rotation">'+i.rotate_right+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.rotateRight+'</span></span></button></div><div class="se-btn-group" style="padding-top: 0;"><button type="button" data-command="mirror" data-value="h" class="se-btn se-tooltip">'+i.mirror_horizontal+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.mirrorHorizontal+'</span></span></button><button type="button" data-command="mirror" data-value="v" class="se-btn se-tooltip">'+i.mirror_vertical+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.mirrorVertical+'</span></span></button><button type="button" data-command="onalign" class="se-btn se-tooltip _se_resizing_align_button">'+i.align_justify+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.toolbar.align+'</span></span></button><div class="se-btn-group-sub sun-editor-common se-list-layer se-resizing-align-list"><div class="se-list-inner"><ul class="se-list-basic"><li><button type="button" class="se-btn-list se-tooltip" data-command="align" data-value="basic">'+i.align_justify+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.dialogBox.basic+'</span></span></button></li><li><button type="button" class="se-btn-list se-tooltip" data-command="align" data-value="left">'+i.align_left+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.dialogBox.left+'</span></span></button></li><li><button type="button" class="se-btn-list se-tooltip" data-command="align" data-value="center">
1'+i.align_center+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.dialogBox.center+'</span></span></button></li><li><button type="button" class="se-btn-list se-tooltip" data-command="align" data-value="right">'+i.align_right+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.dialogBox.right+'</span></span></button></li></ul></div></div><button type="button" data-command="caption" class="se-btn se-tooltip _se_resizing_caption_button">'+i.caption+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.dialogBox.caption+'</span></span></button><button type="button" data-command="revert" class="se-btn se-tooltip">'+i.revert+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.dialogBox.revertButton+'</span></span></button><button type="button" data-command="update" class="se-btn se-tooltip">'+i.modify+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.edit+'</span></span></button><button type="button" data-command="delete" class="se-btn se-tooltip">'+i.delete+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.remove+"</span></span></button></div>",n},_module_getSizeX:function(e,t,i,n){return t||(t=e._element),i||(i=e._cover),n||(n=e._container),t?/%$/.test(t.style.width)?(n&&this.util.getNumber(n.style.width,2)||100)+"%":t.style.width:""},_module_getSizeY:function(e,t,i,n){return t||(t=e._element),i||(i=e._cover),n||(n=e._container),n&&i?this.util.getNumber(i.style.paddingBottom,0)>0&&!this.context.resizing._rotateVertical?i.style.height:/%$/.test(t.style.height)&&/%$/.test(t.style.width)?(n&&this.util.getNumber(n.style.height,2)||100)+"%":t.style.height:t&&t.style.height||""},_module_setModifyInputSize:function(e,t){const i=e._onlyPercentage&&this.context.resizing._rotateVertical;e.proportion.checked=e._proportionChecked="false"!==e._element.getAttribute("data-proportion");let n=i?"":this.plugins.resizing._module_getSizeX.call(this,e);if(n===e._defaultSizeX&&(n=""),e._onlyPercentage&&(n=this.util.getNumber(n,2)),e.inputX.value=n,t.setInputSize.call(this,"x"),!e._onlyPercentage){let t=i?"":this.plugins.resizing._module_getSizeY.call(this,e);t===e._defaultSizeY&&(t=""),e._onlyPercentage&&(t=this.util.getNumber(t,2)),e.inputY.value=t}e.inputX.disabled=!!i,e.inputY.disabled=!!i,e.proportion.disabled=!!i,t.setRatio.call(this)},_module_setInputSize:function(e,t){if(e._onlyPercentage)"x"===t&&e.inputX.value>100&&(e.inputX.value=100);else if(e.proportion.checked&&e._ratio&&/\d/.test(e.inputX.value)&&/\d/.test(e.inputY.value)){const i=e.inputX.value.replace(/\d+|\./g,"")||e.sizeUnit,n=e.inputY.value.replace(/\d+|\./g,"")||e.sizeUnit;if(i!==n)return;const l="%"===i?2:0;"x"===t?e.inputY.value=this.util.getNumber(e._ratioY*this.util.getNumber(e.inputX.value,l),l)+n:e.inputX.value=this.util.getNumber(e._ratioX*this.util.getNumber(e.inputY.value,l),l)+i}},_module_setRatio:function(e){const t=e.inputX.value,i=e.inputY.value;if(e.proportion.checked&&/\d+/.test(t)&&/\d+/.test(i)){if((t.replace(/\d+|\./g,"")||e.sizeUnit)!==(i.replace(/\d+|\./g,"")||e.sizeUnit))e._ratio=!1;else if(!e._ratio){const n=this.util.getNumber(t,0),l=this.util.getNumber(i,0);e._ratio=!0,e._ratioX=n/l,e._ratioY=l/n}}else e._ratio=!1},_module_sizeRevert:function(e){e._onlyPercentage?e.inputX.value=e._origin_w>100?100:e._origin_w:(e.inputX.value=e._origin_w,e.inputY.value=e._origin_h)},_module_saveCurrentSize:function(e){const t=this.plugins.resizing._module_getSizeX.call(this,e),i=this.plugins.resizing._module_getSizeY.call(this,e);e._element.setAttribute("width",t.replace("px","")),e._element.setAttribute("height",i.replace("px","")),e._element.setAttribute("data-size",t+","+i),e._videoRatio&&(e._videoRatio=i)},call_controller_resize:function(e,t){const i=this.context.resizing,n=this.context[t];i._resize_plugin=t;const l=i.resizeContainer,o=i.resizeDiv,s=this.util.getOffset(e,this.context.element.wysiwygFrame),a=i._rotateVertical=/^(90|270)$/.test(Math.abs(e.getAttribute("data-rotate")).toString()),r=a?e.offsetHeight:e.offsetWidth,c=a?e.offsetWidth:e.offsetHeight,d=s.top,u=s.left-this.context.element.wysiwygFrame.scrollLeft;
1l.style.top=d+"px",l.style.left=u+"px",l.style.width=r+"px",l.style.height=c+"px",o.style.top="0px",o.style.left="0px",o.style.width=r+"px",o.style.height=c+"px";let h=e.getAttribute("data-align")||"basic";h="none"===h?"basic":h;const g=this.util.getParentElement(e,this.util.isComponent),p=this.util.getParentElement(e,"FIGURE"),m=this.plugins.resizing._module_getSizeX.call(this,n,e,p,g)||"auto",f=n._onlyPercentage&&"image"===t?"":", "+(this.plugins.resizing._module_getSizeY.call(this,n,e,p,g)||"auto");this.util.changeTxt(i.resizeDisplay,this.lang.dialogBox[h]+" ("+m+f+")"),i.resizeButtonGroup.style.display=n._resizing?"":"none";const b=!n._resizing||n._resizeDotHide||n._onlyPercentage?"none":"flex",_=i.resizeHandles;for(let x=0,S=_.length;x<S;x++)_[x].style.display=b;if(n._resizing){const e=i.rotationButtons;e[0].style.display=e[1].style.display=n._rotation?"":"none"}if(n._alignHide)i.alignButton.style.display="none";else{i.alignButton.style.display="";const e=i.alignMenuList;this.util.changeElement(i.alignButton.firstElementChild,i.alignIcons[h]);for(let t=0,i=e.length;t<i;t++)e[t].getAttribute("data-value")===h?this.util.addClass(e[t],"on"):this.util.removeClass(e[t],"on")}const v=i.percentageButtons,y=/%$/.test(e.style.width)&&/%$/.test(g.style.width)?this.util.getNumber(g.style.width,0)/100+"":"";for(let x=0,S=v.length;x<S;x++)v[x].getAttribute("data-value")===y?this.util.addClass(v[x],"active"):this.util.removeClass(v[x],"active");n._captionShow?(i.captionButton.style.display="",this.util.getChildElement(e.parentNode,"figcaption")?(this.util.addClass(i.captionButton,"active"),n._captionChecked=!0):(this.util.removeClass(i.captionButton,"active"),n._captionChecked=!1)):i.captionButton.style.display="none",l.style.display="block";const w={left:0,top:50};this.options.iframe&&(w.left-=this.context.element.wysiwygFrame.parentElement.offsetLeft,w.top-=this.context.element.wysiwygFrame.parentElement.offsetTop),this.setControllerPosition(i.resizeButton,l,"bottom",w),this.controllersOn(l,i.resizeButton,function(){this.util.setDisabledButtons.call(this.util,!1,this.resizingDisabledButtons),this.history._resetCachingButton()}.bind(this),e,t),this.util.setDisabledButtons(!0,this.resizingDisabledButtons),i._resize_w=r,i._resize_h=c;const C=(e.getAttribute("origin-size")||"").split(",");return i._origin_w=C[0]||e.naturalWidth,i._origin_h=C[1]||e.naturalHeight,{w:r,h:c,t:d,l:u}},_closeAlignMenu:null,openAlignMenu:function(){const e=this.context.resizing.alignButton;this.util.addClass(e,"on"),this.context.resizing.alignMenu.style.top=e.offsetTop+e.offsetHeight+"px",this.context.resizing.alignMenu.style.left=e.offsetLeft-e.offsetWidth/2+"px",this.context.resizing.alignMenu.style.display="block",this.plugins.resizing._closeAlignMenu=function(){this.util.removeClass(this.context.resizing.alignButton,"on"),this.context.resizing.alignMenu.style.display="none",this.removeDocEvent("click",this.plugins.resizing._closeAlignMenu),this.plugins.resizing._closeAlignMenu=null}.bind(this),this.addDocEvent("click",this.plugins.resizing._closeAlignMenu)},onClick_resizeButton:function(e){e.stopPropagation();const t=e.target,i=t.getAttribute("data-command")||t.parentNode.getAttribute("data-command");if(!i)return;const n=t.getAttribute("data-value")||t.parentNode.getAttribute("data-value"),l=this.context.resizing._resize_plugin,o=this.context[l],s=o._element,a=this.plugins[l];if(e.preventDefault(),"function"!==typeof this.plugins.resizing._closeAlignMenu||(this.plugins.resizing._closeAlignMenu(),"onalign"!==i)){switch(i){case"auto":this.plugins.resizing.resetTransform.call(this,s),a.setAutoSize.call(this),this.selectComponent(s,l);break;case"percent":let e=this.plugins.resizing._module_getSizeY.call(this,o);if(this.context.resizing._rotateVertical){const t=s.getAttribute("data-percentage");t&&(e=t.split(",")[1])}this.plugins.resizing.resetTransform.call(this,s),a.setPercentSize.call(this,100*n,null!==this.util.getNumber(e,0)&&/%$/.test(e)?e:""),this.selectComponent(s,l);break;case"mirror":const t=s.getAttribute("data-rotate")||"0";let i=s.getAttribute("data-rotateX")||"",r=s.getAttribute("data-rotateY")||"";"h"===n&&!this.context.resizing._rotateVertical||"v"===n&&this.context.resizing._rotateVertical?r=r?"":"180":i=i?"":"180",s.setAttribute("data-rotateX",i),s.setAttribute("data-rotateY",r),this.plugins.resizing._setTransForm(s,t,i,r);break;case"rotate":const c=this.context.resizing,d=1*s.getAttribute("data-rotate")+1*n,u=this._w.Math.abs(d)>=360?0:d;s.setAttribute("data-rotate",u),c._rotateVertical=/^(90|270)$/.test(this._w.Math.abs(u).toString()),this.plugins.resizing.setTransformSize.call(this,s,null,null),this.selectComponent(s,l);break;case"onalign":return void this.plugins.resizing.openAlignMenu.call(this);case"align":const h="basic"===n?"none":n;a.setAlign.call(this,h,null,null,null),this.selectComponent(s,l);break;case"caption":const g=!o._captionChecked;if(a.openModify.call(this,!0),o._captionChecked=o.captionCheckEl.checked=g,a.update_image.call(this,!1,
1!1,!1),g){const e=this.util.getChildElement(o._caption,function(e){return 3===e.nodeType});e?this.setRange(e,0,e,e.textContent.length):o._caption.focus(),this.controllersOff()}else this.selectComponent(s,l),a.openModify.call(this,!0);break;case"revert":a.setOriginSize.call(this),this.selectComponent(s,l);break;case"update":a.openModify.call(this),this.controllersOff();break;case"delete":a.destroy.call(this)}this.history.push(!1)}},resetTransform:function(e){const t=(e.getAttribute("data-size")||e.getAttribute("data-origin")||"").split(",");this.context.resizing._rotateVertical=!1,e.style.maxWidth="",e.style.transform="",e.style.transformOrigin="",e.setAttribute("data-rotate",""),e.setAttribute("data-rotateX",""),e.setAttribute("data-rotateY",""),this.plugins[this.context.resizing._resize_plugin].setSize.call(this,t[0]?t[0]:"auto",t[1]?t[1]:"",!0)},setTransformSize:function(e,t,i){let n=e.getAttribute("data-percentage");const l=this.context.resizing._rotateVertical,o=1*e.getAttribute("data-rotate");let s="";if(n&&!l)n=n.split(","),"auto"===n[0]&&"auto"===n[1]?this.plugins[this.context.resizing._resize_plugin].setAutoSize.call(this):this.plugins[this.context.resizing._resize_plugin].setPercentSize.call(this,n[0],n[1]);else{const n=this.util.getParentElement(e,"FIGURE"),a=t||e.offsetWidth,r=i||e.offsetHeight,c=(l?r:a)+"px",d=(l?a:r)+"px";this.plugins[this.context.resizing._resize_plugin].cancelPercentAttr.call(this),this.plugins[this.context.resizing._resize_plugin].setSize.call(this,a+"px",r+"px",!0),n.style.width=c,n.style.height=this.context[this.context.resizing._resize_plugin]._caption?"":d,l&&(s=90===o||-270===o?r/2+"px "+r/2+"px 0":a/2+"px "+a/2+"px 0")}e.style.transformOrigin=s,this.plugins.resizing._setTransForm(e,o.toString(),e.getAttribute("data-rotateX")||"",e.getAttribute("data-rotateY")||""),e.style.maxWidth=l?"none":"",this.plugins.resizing.setCaptionPosition.call(this,e)},_setTransForm:function(e,t,i,n){let l=(e.offsetWidth-e.offsetHeight)*(/-/.test(t)?1:-1),o="";if(/[1-9]/.test(t)&&(i||n))switch(o=i?"Y":"X",t){case"90":o=i&&n?"X":n?o:"";break;case"270":l*=-1,o=i&&n?"Y":i?o:"";break;case"-90":o=i&&n?"Y":i?o:"";break;case"-270":l*=-1,o=i&&n?"X":n?o:"";break;default:o=""}t%180===0&&(e.style.maxWidth=""),e.style.transform="rotate("+t+"deg)"+(i?" rotateX("+i+"deg)":"")+(n?" rotateY("+n+"deg)":"")+(o?" translate"+o+"("+l+"px)":"")},setCaptionPosition:function(e){const t=this.util.getChildElement(this.util.getParentElement(e,"FIGURE"),"FIGCAPTION");t&&(t.style.marginTop=(this.context.resizing._rotateVertical?e.offsetWidth-e.offsetHeight:0)+"px")},onMouseDown_resize_handle:function(e){e.stopPropagation(),e.preventDefault();const t=this.context.resizing,i=t._resize_direction=e.target.classList[0];t._resizeClientX=e.clientX,t._resizeClientY=e.clientY,this.context.element.resizeBackground.style.display="block",t.resizeButton.style.display="none",t.resizeDiv.style.float=/l/.test(i)?"right":/r/.test(i)?"left":"none";const n=function(e){if("keydown"===e.type&&27!==e.keyCode)return;const o=t._isChange;t._isChange=!1,this.removeDocEvent("mousemove",l),this.removeDocEvent("mouseup",n),this.removeDocEvent("keydown",n),"keydown"===e.type?(this.controllersOff(),this.context.element.resizeBackground.style.display="none",this.plugins[this.context.resizing._resize_plugin].init.call(this)):(this.plugins.resizing.cancel_controller_resize.call(this,i),o&&this.history.push(!1))}.bind(this),l=this.plugins.resizing.resizing_element.bind(this,t,i,this.context[t._resize_plugin]);this.addDocEvent("mousemove",l),this.addDocEvent("mouseup",n),this.addDocEvent("keydown",n)},resizing_element:function(e,t,i,n){const l=n.clientX,o=n.clientY;let s=i._element_w,a=i._element_h;const r=i._element_w+(/r/.test(t)?l-e._resizeClientX:e._resizeClientX-l),c=i._element_h+(/b/.test(t)?o-e._resizeClientY:e._resizeClientY-o),d=i._element_h/i._element_w*r;/t/.test(t)&&(e.resizeDiv.style.top=i._element_h-(/h/.test(t)?c:d)+"px"),/l/.test(t)&&(e.resizeDiv.style.left=i._element_w-r+"px"),/r|l/.test(t)&&(e.resizeDiv.style.width=r+"px",s=r),/^(t|b)[^h]$/.test(t)?(e.resizeDiv.style.height=d+"px",a=d):/^(t|b)h$/.test(t)&&(e.resizeDiv.style.height=c+"px",a=c),e._resize_w=s,e._resize_h=a,this.util.changeTxt(e.resizeDisplay,this._w.Math.round(s)+" x "+this._w.Math.round(a)),e._isChange=!0},cancel_controller_resize:function(e){const t=this.context.resizing._rotateVertical;
1this.controllersOff(),this.context.element.resizeBackground.style.display="none";let i=this._w.Math.round(t?this.context.resizing._resize_h:this.context.resizing._resize_w),n=this._w.Math.round(t?this.context.resizing._resize_w:this.context.resizing._resize_h);if(!t&&!/%$/.test(i)){const e=16,t=this.context.element.wysiwygFrame.clientWidth-2*e-2;this.util.getNumber(i,0)>t&&(n=this._w.Math.round(n/i*t),i=t)}const l=this.context.resizing._resize_plugin;this.plugins[l].setSize.call(this,i,n,!1,e),t&&this.plugins.resizing.setTransformSize.call(this,this.context[this.context.resizing._resize_plugin]._element,i,n),this.selectComponent(this.context[l]._element,l)}};return"undefined"===typeof t&&(e.SUNEDITOR_MODULES||Object.defineProperty(e,"SUNEDITOR_MODULES",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_MODULES,"resizing",{enumerable:!0,writable:!1,configurable:!1,value:i})),i},"object"===typeof e.exports?e.exports=i.document?n(i,!0):function(e){if(!e.document)throw new Error("SUNEDITOR_MODULES a window with a document");return n(e)}:n(i)});const r={name:"blockquote",display:"command",add:function(e,t){e.context.blockquote={targetButton:t,tag:e.util.createElement("BLOCKQUOTE")}},active:function(e){if(e){if(/blockquote/i.test(e.nodeName))return this.util.addClass(this.context.blockquote.targetButton,"active"),!0}else this.util.removeClass(this.context.blockquote.targetButton,"active");return!1},action:function(){const e=this.util.getParentElement(this.getSelectionNode(),"blockquote");e?this.detachRangeFormatElement(e,null,null,!1,!1):this.applyRangeFormatElement(this.context.blockquote.tag.cloneNode(!1))}},c={name:"align",display:"submenu",add:function(e,t){const i=e.icons,n=e.context;n.align={targetButton:t,_itemMenu:null,_alignList:null,currentAlign:"",defaultDir:e.options.rtl?"right":"left",icons:{justify:i.align_justify,left:i.align_left,right:i.align_right,center:i.align_center}};let l=this.setSubmenu(e),o=n.align._itemMenu=l.querySelector("ul");o.addEventListener("click",this.pickup.bind(e)),n.align._alignList=o.querySelectorAll("li button"),e.initMenuTarget(this.name,t,l),l=null,o=null},setSubmenu:function(e){const t=e.lang,i=e.icons,n=e.util.createElement("DIV"),l=e.options.alignItems;let o="";for(let s,a,r=0;r<l.length;r++)s=l[r],a=t.toolbar["align"+s.charAt(0).toUpperCase()+s.slice(1)],o+='<li><button type="button" class="se-btn-list se-btn-align" data-value="'+s+'" title="'+a+'" aria-label="'+a+'"><span class="se-list-icon">'+i["align_"+s]+"</span>"+a+"</button></li>";return n.className="se-submenu se-list-layer se-list-align",n.innerHTML='<div class="se-list-inner"><ul class="se-list-basic">'+o+"</ul></div>",n},active:function(e){const t=this.context.align,i=t.targetButton,n=i.firstElementChild;if(e){if(this.util.isFormatElement(e)){const l=e.style.textAlign;if(l)return this.util.changeElement(n,t.icons[l]||t.icons[t.defaultDir]),i.setAttribute("data-focus",l),!0}}else this.util.changeElement(n,t.icons[t.defaultDir]),i.removeAttribute("data-focus");return!1},on:function(){const e=this.context.align,t=e._alignList,i=e.targetButton.getAttribute("data-focus")||e.defaultDir;if(i!==e.currentAlign){for(let e=0,n=t.length;e<n;e++)i===t[e].getAttribute("data-value")?this.util.addClass(t[e],"active"):this.util.removeClass(t[e],"active");e.currentAlign=i}},exchangeDir:function(){const e=this.options.rtl?"right":"left";if(!this.context.align||this.context.align.defaultDir===e)return;this.context.align.defaultDir=e;let t=this.context.align._itemMenu,i=t.querySelector('[data-value="left"]'),n=t.querySelector('[data-value="right"]');if(i&&n){const e=i.parentElement,t=n.parentElement;e.appendChild(n),t.appendChild(i)}},pickup:function(e){e.preventDefault(),e.stopPropagation();let t=e.target,i=null;for(;!i&&!/UL/i.test(t.tagName);)i=t.getAttribute("data-value"),t=t.parentNode;if(!i)return;const n=this.context.align.defaultDir,l=this.getSelectedElements();for(let o=0,s=l.length;o<s;o++)this.util.setStyle(l[o],"textAlign",i===n?"":i);this.effectNode=null,this.submenuOff(),this.focus(),this.history.push(!1)}},d={name:"font",display:"submenu",add:function(e,t){const i=e.context;i.font={targetText:t.querySelector(".txt"),targetTooltip:t.parentNode.querySelector(".se-tooltip-text"),_fontList:null,currentFont:""};let n=this.setSubmenu(e);n.querySelector(".se-list-inner").addEventListener("click",this.pickup.bind(e)),i.font._fontList=n.querySelectorAll("ul li button"),e.initMenuTarget(this.name,t,n),n=null},setSubmenu:function(e){const t=e.lang,i=e.util.createElement("DIV");let n,l,o,s;i.className="se-submenu se-list-layer se-list-font-family";let a=e.options.font,r='<div class="se-list-inner"><ul class="se-list-basic"><li><button type="button" class="default_value se-btn-list" title="'+t.toolbar.default+'" aria-label="'+t.toolbar.default+'">('+t.toolbar.default+")</button></li>";for(o=0,s=a.length;o<s;o++)n=a[o],l=n.split(",")[0],r+='<li><button type="button" class="se-btn-list" data-value="'+n+'" data-txt="'+l+'" title="'+l+'" aria-label="'+l+'" style="font-family:'+n+';">'+l+"</button></li>";return r+="</ul></div>",i.innerHTML=r,i},active:function(e){const t=this.context.font.targetText,i=this.context.font.targetTooltip;if(e){if(e.style&&e.style.fontFamily.length>0){const n=e.style.fontFamily.replace(/["']/g,"");return this.util.changeTxt(t,n),this.util.changeTxt(i,this.lang.toolbar.font+" ("+n+")"),!0}}else{const e=this.hasFocus?this.wwComputedStyle.fontFamily:this.lang.toolbar.font;this.util.changeTxt(t,e),this.util.changeTxt(i,this.hasFocus?this.lang.toolbar.font+(e?" ("+e+")":""):e)}return!1},on:function(){const e=this.context.font,t=e._fontList,i=e.targetText.textContent;if(i!==e.currentFont){for(let e=0,n=t.length;e<n;e++)i===(t[e].getAttribute("data-value")||"").replace(/'|"/g,"")?this.util.addClass(t[e],"active"):this.util.removeClass(t[e],"active");e.currentFont=i}},pickup:function(e){if(!/^BUTTON$/i.test(e.target.tagName))return!1;e.preventDefault(),e.stopPropagation();let t=e.target.getAttribute("data-value");if(t){const e=this.util.createElement("SPAN");/[\s\d\W]/.test(t)&&!/^['"].*['"]$/.test(t)&&(t='"'+t+'"'),e.style.fontFamily=t,this.nodeChange(e,["font-family"],null,null)}else this.nodeChange(null,["font-family"],["span"],!0);this.submenuOff()}},u={name:"fontSize",display:"submenu",add:function(e,t){const i=e.context;i.fontSize={targetText:t.querySelector(".txt"),_sizeList:null,currentSize:""};let n=this.setSubmenu(e),l=n.querySelector("ul");l.addEventListener("click",this.pickup.bind(e)),i.fontSize._sizeList=l.querySelectorAll("li button"),e.initMenuTarget(this.name,t,n),n=null,l=null},setSubmenu:function(e){const t=e.options,i=e.lang,n=e.util.createElement("DIV");n.className="se-submenu se-list-layer se-list-font-size";const l=t.fontSize?t.fontSize:[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72];let o='<div class="se-list-inner"><ul class="se-list-basic"><li><button type="button" class="default_value se-btn-list" title="'+i.toolbar.default+'" aria-label="'+i.toolbar.default+'">('+i.toolbar.default+")</button></li>";for(let s,a=0,r=t.fontSizeUnit,c=l.length;a<c;a++)s=l[a],o+='<li><button type="button" class="se-btn-list" data-value="'+s+r+'" title="'+s+r+'" aria-label="'+s+r+'" style="font-size:'+s+r+';">'+s+"</button></li>";return o+="</ul></div>",n.innerHTML=o,n},active:function(e){if(e){if(e.style&&e.style.fontSize.length>0)return this.util.changeTxt(this.context.fontSize.targetText,this._convertFontSize.call(this,this.options.fontSizeUnit,e.style.fontSize)),!0}else this.util.changeTxt(this.context.fontSize.targetText,this.hasFocus?this._convertFontSize.call(this,this.options.fontSizeUnit,this.wwComputedStyle.fontSize):this.lang.toolbar.fontSize);return!1},on:function(){const e=this.context.fontSize,t=e._sizeList,i=e.targetText.textContent;if(i!==e.currentSize){for(let e=0,n=t.length;e<n;e++)i===t[e].getAttribute("data-value")?this.util.addClass(t[e],"active"):this.util.removeClass(t[e],"active");e.currentSize=i}},pickup:function(e){if(!/^BUTTON$/i.test(e.target.tagName))return!1;e.preventDefault(),e.stopPropagation();const t=e.target.getAttribute("data-value");if(t){const e=this.util.createElement("SPAN");
1e.style.fontSize=t,this.nodeChange(e,["font-size"],null,null)}else this.nodeChange(null,["font-size"],["span"],!0);this.submenuOff()}},h={name:"colorPicker",add:function(e){const t=e.context;t.colorPicker={colorListHTML:"",_colorInput:"",_defaultColor:"#000",_styleProperty:"color",_currentColor:"",_colorList:[]},t.colorPicker.colorListHTML=this.createColorList(e,this._makeColorList)},createColorList:function(e,t){const i=e.options,n=e.lang,l=i.colorList&&0!==i.colorList.length?i.colorList:["#ff0000","#ff5e00","#ffe400","#abf200","#00d8ff","#0055ff","#6600ff","#ff00dd","#000000","#ffd8d8","#fae0d4","#faf4c0","#e4f7ba","#d4f4fa","#d9e5ff","#e8d9ff","#ffd9fa","#f1f1f1","#ffa7a7","#ffc19e","#faed7d","#cef279","#b2ebf4","#b2ccff","#d1b2ff","#ffb2f5","#bdbdbd","#f15f5f","#f29661","#e5d85c","#bce55c","#5cd1e5","#6699ff","#a366ff","#f261df","#8c8c8c","#980000","#993800","#998a00","#6b9900","#008299","#003399","#3d0099","#990085","#353535","#670000","#662500","#665c00","#476600","#005766","#002266","#290066","#660058","#222222"];let o=[],s='<div class="se-list-inner">';for(let a,r=0,c=l.length;r<c;r++)a=l[r],a&&("string"===typeof a&&(o.push(a),r<c-1)||(o.length>0&&(s+='<div class="se-selector-color">'+t(o)+"</div>",o=[]),"object"===typeof a&&(s+='<div class="se-selector-color">'+t(a)+"</div>")));return s+='<form class="se-form-group"><input type="text" maxlength="9" class="_se_color_picker_input se-color-input"/><button type="submit" class="se-btn-primary _se_color_picker_submit" title="'+n.dialogBox.submitButton+'" aria-label="'+n.dialogBox.submitButton+'">'+e.icons.checked+'</button><button type="button" class="se-btn _se_color_picker_remove" title="'+n.toolbar.removeFormat+'" aria-label="'+n.toolbar.removeFormat+'">'+e.icons.erase+"</button></form></div>",s},_makeColorList:function(e){let t="";t+='<ul class="se-color-pallet">';for(let i,n=0,l=e.length;n<l;n++)i=e[n],"string"===typeof i&&(t+='<li><button type="button" data-value="'+i+'" title="'+i+'" aria-label="'+i+'" style="background-color:'+i+';"></button></li>');return t+="</ul>",t},init:function(e,t){const i=this.plugins.colorPicker;let n=t||(i.getColorInNode.call(this,e)||this.context.colorPicker._defaultColor);n=i.isHexColor(n)?n:i.rgb2hex(n)||n;const l=this.context.colorPicker._colorList;if(l)for(let o=0,s=l.length;o<s;o++)n.toLowerCase()===l[o].getAttribute("data-value").toLowerCase()?this.util.addClass(l[o],"active"):this.util.removeClass(l[o],"active");i.setInputText.call(this,i.colorName2hex.call(this,n))},setCurrentColor:function(e){this.context.colorPicker._currentColor=e,this.context.colorPicker._colorInput.style.borderColor=e},setInputText:function(e){e=/^#/.test(e)?e:"#"+e,this.context.colorPicker._colorInput.value=e,this.plugins.colorPicker.setCurrentColor.call(this,e)},getColorInNode:function(e){let t="";const i=this.context.colorPicker._styleProperty;for(;e&&!this.util.isWysiwygDiv(e)&&0===t.length;)1===e.nodeType&&e.style[i]&&(t=e.style[i]),e=e.parentNode;return t},isHexColor:function(e){return/^#[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(e)},rgb2hex:function(e){const t=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return t&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""},colorName2hex:function(e){if(/^#/.test(e))return e;var t=this.util.createElement("div");t.style.display="none",t.style.color=e;var i=this._w.getComputedStyle(this._d.body.appendChild(t)).color.match(/\d+/g).map(function(e){return parseInt(e,10)});return this.util.removeItem(t),i.length>=3&&"#"+((1<<24)+(i[0]<<16)+(i[1]<<8)+i[2]).toString(16).substr(1)}},g={name:"fontColor",display:"submenu",add:function(e,t){e.addModule([h]);const i=e.context;i.fontColor={previewEl:null,colorInput:null,colorList:null};let n=this.setSubmenu(e);i.fontColor.colorInput=n.querySelector("._se_color_picker_input"),i.fontColor.colorInput.addEventListener("keyup",this.onChangeInput.bind(e)),n.querySelector("._se_color_picker_submit").addEventListener("click",this.submit.bind(e)),n.querySelector("._se_color_picker_remove").addEventListener("click",this.remove.bind(e)),n.addEventListener("click",this.pickup.bind(e)),i.fontColor.colorList=n.querySelectorAll("li button"),e.initMenuTarget(this.name,t,n),n=null},setSubmenu:function(e){const t=e.context.colorPicker.colorListHTML,i=e.util.createElement("DIV");return i.className="se-submenu se-list-layer",i.innerHTML=t,i},on:function(){const e=this.context.colorPicker,t=this.context.fontColor;e._colorInput=t.colorInput;const i=this.wwComputedStyle.color;e._defaultColor=i?this.plugins.colorPicker.isHexColor(i)?i:this.plugins.colorPicker.rgb2hex(i):"#333333",e._styleProperty="color",e._colorList=t.colorList,this.plugins.colorPicker.init.call(this,this.get
1SelectionNode(),null)},onChangeInput:function(e){this.plugins.colorPicker.setCurrentColor.call(this,e.target.value)},submit:function(){this.plugins.fontColor.applyColor.call(this,this.context.colorPicker._currentColor)},pickup:function(e){e.preventDefault(),e.stopPropagation(),this.plugins.fontColor.applyColor.call(this,e.target.getAttribute("data-value"))},remove:function(){this.nodeChange(null,["color"],["span"],!0),this.submenuOff()},applyColor:function(e){if(!e)return;const t=this.util.createElement("SPAN");t.style.color=e,this.nodeChange(t,["color"],null,null),this.submenuOff()}},p={name:"hiliteColor",display:"submenu",add:function(e,t){e.addModule([h]);const i=e.context;i.hiliteColor={previewEl:null,colorInput:null,colorList:null};let n=this.setSubmenu(e);i.hiliteColor.colorInput=n.querySelector("._se_color_picker_input"),i.hiliteColor.colorInput.addEventListener("keyup",this.onChangeInput.bind(e)),n.querySelector("._se_color_picker_submit").addEventListener("click",this.submit.bind(e)),n.querySelector("._se_color_picker_remove").addEventListener("click",this.remove.bind(e)),n.addEventListener("click",this.pickup.bind(e)),i.hiliteColor.colorList=n.querySelectorAll("li button"),e.initMenuTarget(this.name,t,n),n=null},setSubmenu:function(e){const t=e.context.colorPicker.colorListHTML,i=e.util.createElement("DIV");return i.className="se-submenu se-list-layer",i.innerHTML=t,i},on:function(){const e=this.context.colorPicker,t=this.context.hiliteColor;e._colorInput=t.colorInput;const i=this.wwComputedStyle.backgroundColor;e._defaultColor=i?this.plugins.colorPicker.isHexColor(i)?i:this.plugins.colorPicker.rgb2hex(i):"#ffffff",e._styleProperty="backgroundColor",e._colorList=t.colorList,this.plugins.colorPicker.init.call(this,this.getSelectionNode(),null)},onChangeInput:function(e){this.plugins.colorPicker.setCurrentColor.call(this,e.target.value)},submit:function(){this.plugins.hiliteColor.applyColor.call(this,this.context.colorPicker._currentColor)},pickup:function(e){e.preventDefault(),e.stopPropagation(),this.plugins.hiliteColor.applyColor.call(this,e.target.getAttribute("data-value"))},remove:function(){this.nodeChange(null,["background-color"],["span"],!0),this.submenuOff()},applyColor:function(e){if(!e)return;const t=this.util.createElement("SPAN");t.style.backgroundColor=e,this.nodeChange(t,["background-color"],null,null),this.submenuOff()}},m={name:"horizontalRule",display:"submenu",add:function(e,t){e.context.horizontalRule={currentHR:null};let i=this.setSubmenu(e);i.querySelector("ul").addEventListener("click",this.horizontalRulePick.bind(e)),e.initMenuTarget(this.name,t,i),i=null},setSubmenu:function(e){const t=e.lang,i=e.util.createElement("DIV"),n=e.options.hrItems||[{name:t.toolbar.hr_solid,class:"__se__solid"},{name:t.toolbar.hr_dashed,class:"__se__dashed"},{name:t.toolbar.hr_dotted,class:"__se__dotted"}];let l="";for(let o=0,s=n.length;o<s;o++)l+='<li><button type="button" class="se-btn-list btn_line" data-command="horizontalRule" data-value="'+n[o].class+'" title="'+n[o].name+'" aria-label="'+n[o].name+'"><hr'+(n[o].class?' class="'+n[o].class+'"':"")+(n[o].style?' style="'+n[o].style+'"':"")+"/></button></li>";return i.className="se-submenu se-list-layer se-list-line",i.innerHTML='<div class="se-list-inner"><ul class="se-list-basic">'+l+"</ul></div>",i},active:function(e){if(e){if(/HR/i.test(e.nodeName))return this.context.horizontalRule.currentHR=e,this.util.hasClass(e,"on")||(this.util.addClass(e,"on"),this.controllersOn("hr",this.util.removeClass.bind(this.util,e,"on"))),!0}else this.util.hasClass(this.context.horizontalRule.currentHR,"on")&&this.controllersOff();return!1},appendHr:function(e){return this.focus(),this.insertComponent(e.cloneNode(!1),!1,!0,!1)},horizontalRulePick:function(e){e.preventDefault(),e.stopPropagation();let t=e.target,i=t.getAttribute("data-command");for(;!i&&!/UL/i.test(t.tagName);)t=t.parentNode,i=t.getAttribute("data-command");if(!i)return;const n=this.plugins.horizontalRule.appendHr.call(this,t.firstElementChild);n&&(this.setRange(n,0,n,0),this.submenuOff())}},f={name:"list",display:"submenu",add:function(e,t){const i=e.context;i.list={targetButton:t,_list:null,currentList:"",icons:{bullets:e.icons.list_bullets,number:e.icons.list_number}};let n=this.setSubmenu(e),l=n.querySelector("ul");l.addEventListener("click",this.pickup.bind(e)),i.list._list=l.querySelectorAll("li button"),e.initMenuTarget(this.name,t,n),n=null,l=null},setSubmenu:function(e){const t=e.lang,i=e.util.createElement("DIV");return i.className="se-submenu se-list-layer",i.innerHTML='<div class="se-list-inner"><ul class="se-list-basic"><li><button type="button" class="se-btn-list se-tooltip" data-command="OL" title="'+t.toolbar.orderList+'" aria-label="'+t.toolbar.orderList+'">'+e.icons.list_number+'</button></li><li><button type="button" class="se-btn-list se-tooltip" data-command="UL" title="'+t.toolbar.unorderList+'" aria-label="'+t.toolbar.unorderList+'">'+e.icons.list_bullets+"</button></li></ul></div>",i},active:function(e){const t=this.context.list.targetButton,i=t.firstElementChild,n=this.util;if(n.isList(e)){const l=e.nodeName;return t.setAttribute("data-focus",l),n.addClass(t,"active"),/UL/i.test(l)?n.changeElement(i,this.context.list.icons.bullets):n.changeElement(i,this.context.list.icons.number),!0}return t.removeAttribute("data-focus"),n.changeElement(i,this.context.list.icons.number),n.removeClass(t,"active"),!1},on:function(){const e=this.context.list,t=e._list,i=e.targetButton.getAttribute("data-focus")||"";if(i!==e.currentList){for(let e=0,n=t.length;e<n;e++)i===t[e].getAttribute("data-command")?this.util.addClass(t[e],"active"):this.util.removeClass(t[e],"active");e.currentList=i}}
1,editList:function(e,t,i){let n=this.getRange(),l=t||this.getSelectedElementsAndComponents(!1);if(0===l.length){if(t)return;if(n=this.getRange_addLine(n,null),l=this.getSelectedElementsAndComponents(!1),0===l.length)return}const o=this.util;o.sortByDepth(l,!0);let s=l[0],a=l[l.length-1],r=!o.isListCell(s)&&!o.isComponent(s)||s.previousElementSibling?s.previousElementSibling:s.parentNode.previousElementSibling,c=!o.isListCell(a)&&!o.isComponent(a)||a.nextElementSibling?a.nextElementSibling:a.parentNode.nextElementSibling;const d=n.collapsed,u={sc:n.startContainer,so:n.startContainer===n.endContainer&&o.onlyZeroWidthSpace(n.startContainer)&&0===n.startOffset&&1===n.endOffset?n.endOffset:n.startOffset,ec:n.endContainer,eo:n.endOffset};let h=null,g=!0;for(let p=0,m=l.length;p<m;p++)if(!o.isList(o.getRangeFormatElement(l[p],function(e){return this.getRangeFormatElement(e)&&e!==l[p]}.bind(o)))){g=!1;break}if(!g||r&&s.tagName===r.tagName&&e===r.tagName.toUpperCase()||c&&a.tagName===c.tagName&&e===c.tagName.toUpperCase()){const t=r?r.parentNode:r,i=c?c.parentNode:c;r=t&&!o.isWysiwygDiv(t)&&t.nodeName===e?t:r,c=i&&!o.isWysiwygDiv(i)&&i.nodeName===e?i:c;const n=r&&r.tagName===e,s=c&&c.tagName===e;let a=n?r:o.createElement(e),d=null,h=null,g=null,p=null;const m=function(e){return!this.isComponent(e)&&!this.isList(e)}.bind(o);for(let r,c,f,b,_,v,y,w,C,x=0,S=l.length;x<S;x++)if(c=l[x],0!==c.childNodes.length||o._isIgnoreNodeChange(c)){if(b=l[x+1],_=c.parentNode,v=b?b.parentNode:null,f=o.isListCell(c),C=o.isRangeFormatElement(_)?_:null,y=f&&!o.isWysiwygDiv(_)?_.parentNode:_,w=f&&!o.isWysiwygDiv(_)?!b||o.isListCell(y)?_:_.nextSibling:c.nextSibling,r=o.createElement("LI"),o.copyFormatAttributes(r,c),0===x&&u.sc===c&&(u.sc=r),x===S-1&&u.ec===c&&(u.ec=r),o.isComponent(c)){const e=/^HR$/i.test(c.nodeName);e||(r.innerHTML="<br>"),r.innerHTML+=c.outerHTML,e&&(r.innerHTML+="<br>")}else{const e=c.childNodes;for(;e[0];)r.appendChild(e[0])}a.appendChild(r),b||(h=a),b&&y===v&&!o.isRangeFormatElement(w)||(d||(d=a),n&&b&&y===v||b&&o.isList(v)&&v===_||a.parentNode!==y&&y.insertBefore(a,w)),o.removeItem(c),n&&null===g&&(g=a.children.length-1),b&&(o.getRangeFormatElement(v,m)!==o.getRangeFormatElement(_,m)||o.isList(v)&&o.isList(_)&&o.getElementDepth(v)!==o.getElementDepth(_))&&(a=o.createElement(e)),C&&0===C.children.length&&o.removeItem(C)}else o.removeItem(c);g&&(d=d.children[g]),s&&(p=a.children.length-1,a.innerHTML+=c.innerHTML,h=a.children[p],o.removeItem(c))}else{if(i)for(let e=0,i=l.length;e<i;e++)for(let t=e-1;t>=0;t--)if(l[t].contains(l[e])){l.splice(e,1),e--,i--;break}const t=o.getRangeFormatElement(s),n=t&&t.tagName===e;let a,r;const c=function(e){return!this.isComponent(e)}.bind(o);n||(r=o.createElement(e));for(let s,d,u=0,g=l.length;u<g;u++)d=o.getRangeFormatElement(l[u],c),d&&o.isList(d)&&(s?s!==d?(i&&o.isListCell(d.parentNode)?this.plugins.list._detachNested.call(this,a.f):h=this.detachRangeFormatElement(a.f[0].parentNode,a.f,r,!1,!0),d=l[u].parentNode,n||(r=o.createElement(e)),s=d,a={r:s,f:[o.getParentElement(l[u],"LI")]}):a.f.push(o.getParentElement(l[u],"LI")):(s=d,a={r:s,f:[o.getParentElement(l[u],"LI")]}),u===g-1&&(i&&o.isListCell(d.parentNode)?this.plugins.list._detachNested.call(this,a.f):h=this.detachRangeFormatElement(a.f[0].parentNode,a.f,r,!1,!0)))}return this.effectNode=null,d&&h||u},_detachNested:function(e){const t=e[0],i=e[e.length-1],n=i.nextElementSibling,l=t.parentNode,o=l.parentNode.nextElementSibling,s=l.parentNode.parentNode;for(let r=0,c=e.length;r<c;r++)s.insertBefore(e[r],o);if(n&&l.children.length>0){const e=l.cloneNode(!1),t=l.childNodes,o=this.util.getPositionIndex(n);for(;t[o];)e.appendChild(t[o]);i.appendChild(e)}0===l.children.length&&this.util.removeItem(l),this.util.mergeSameTags(s);const a=this.util.getEdgeChildNodes(t,i);return{cc:t.parentNode,sc:a.sc,ec:a.ec}},editInsideList:function(e,t){const i=(t=t||this.getSelectedElements().filter(function(e){return this.isListCell(e)}.bind(this.util))).length;if(0===i||!e&&!this.util.isListCell(t[0].previousElementSibling)&&!this.util.isListCell(t[i-1].nextElementSibling))return{sc:t[0],so:0,ec:t[i-1],eo:1};let n=t[0].parentNode,l=t[i-1],o=null;if(e){if(n!==l.parentNode&&this.util.isList(l.parentNode.parentNode)&&l.nextElementSibling)for(l=l.nextElementSibling;l;)t.push(l),l=l.nextElementSibling;o=this.plugins.list.editList.call(this,n.nodeName.toUpperCase(),t,!0)}else{let e=this.util.createElement(n.nodeName),s=t[0].previousElementSibling,a=l.nextElementSibling;const r={s:null,e:null,sl:n,el:n};for(let l,o=0,u=i;o<u;o++)l=t[o],l.parentNode!==n&&(this.plugins.list._insiedList.call(this,n,e,s,a,r),n=l.parentNode,e=this.util.createElement(n.nodeName)),s=l.previousElementSibling,a=l.nextElementSibling,e.appendChild(l);this.plugins.list._insiedList.call(this,n,e,s,a,r);const c=this.util.getNodeFromPath(r.s,r.sl),d=this.util.getNodeFromPath(r.e,r.el);o={sc:c,so:0,ec:d,eo:d.textContent.length}}return o},_insiedList:function(e,t,i,n,l){let o=!1;if(i&&t.tagName===i.tagName){const e=t.children;for(;e[0];)i.appendChild(e[0]);t=i,o=!0}if(n&&t.tagName===n.tagName){const e=n.children;for(;e[0];)t.appendChild(e[0]);const i=n.nextElementSibling;n.parentNode.removeChild(n),n=i}if(!o){this.util.isListCell(i)&&(e=i,n=null),e.insertBefore(t,n),l.s||(l.s=this.util.getNodePath(t.firstElementChild.firstChild,e,null),l.sl=e);const o=e.contains(l.sl)?this.util.getNodePath(l.sl,e):null;l.e=this.util.getNodePath(t.lastElementChild.firstChild,e,null),l.el=e,this.util.mergeSameTags(e,[l.s,l.e,o],!1),this.util.mergeNestedTags(e),o&&(l.sl=this.util.getNodeFromPath(o,e))}return t},pickup:function(e){e.preventDefault(),e.stopPropagation();let t=e.target,i="";for(;!i&&!/^UL$/i.test(t.tagName);)i=t.getAttribute("data-command"),t=t.parentNode;if(!i)return;const n=this.plugins.list.editList.call(this,i,null,!1);n&&this.setRange(n.sc,n.so,n.ec,n.eo),this.submenuOff(),this.history.push(!1)}},b={name:"table",display:"submenu",add:function(e,t){const i=e.context;let n=i.table={_element:null,_tdElement:null,_trElement:null,_trElements:null,_tableXY:[],_maxWidth:!0,_fixedColumn:!1,_rtl:e.options.rtl,cellControllerTop:"top"===e.options.tableCellControllerPosition,resizeText:null,headerButton:null,mergeButton:null,splitButton:null,splitMenu:null,maxText:e.lang.controller.maxSize,minText:e.lang.controller.minSize,_physical_cellCnt:0,_logical_cellCnt:0,_rowCnt:0,_rowIndex:0,_physical_cellIndex:0,_logical_cellIndex:0,_current_colSpan:0,_current_rowSpan:0,icons:{expansion:e.icons.expansion,reduction:e.icons.reduction}},l=this.setSubmenu(e),o=l.querySelector(".se-controller-table-picker");n.tableHighlight=l.querySelector(".se-table-size-highlighted"),n.tableUnHighlight=l.querySelector(".se-table-size-unhighlighted"),n.tableDisplay=l.querySelector(".se-table-size-display"),e.options.rtl&&(n.tableHighlight.style.left="167px");let s=this.setController_table(e);n.tableController=s,n.resizeButton=s.querySelector("._se_table_resize"),n.resizeText=s.querySelector("._se_table_resize > span > span"),n.columnFixedButton=s.querySelector("._se_table_fixed_column"),n.headerButton=s.querySelector("._se_table_header");let a=this.setController_tableEditor(e,n.cellControllerTop);n.resizeDiv=a,n.splitMenu=a.querySelector(".se-btn-group-sub"),n.mergeButton=a.querySelector("._se_table_merge_button"),n.splitButton=a.querySelector("._se_table_split_button"),n.insertRowAboveButton=a.querySelector("._se_table_insert_row_a"),n.insertRowBelowButton=a.querySelector("._se_table_insert_row_b"),o.addEventListener("mousemove",this.onMouseMove_tablePicker.bind(e,n)),o.addEventListener("click",this.appendTable.bind(e)),a.addEventListener("click",this.onClick_tableController.bind(e)),s.addEventListener("click",this.onClick_tableController.bind(e)),e.initMenuTarget(this.name,t,l),i.element.relative.appendChild(a),i.element.relative.appendChild(s),l=null,o=null,a=null,s=null,n=null},setSubmenu:function(e){const t=e.util.createElement("DIV");return t.className="se-submenu se-selector-table",t.innerHTML='<div class="se-table-size"><div class="se-table-size-picker se-controller-table-picker"></div><div class="se-table-size-highlighted"></div><div class="se-table-size-unhighlighted"></div></div><div class="se-table-size-display">1 x 1</div>',t},setController_table:function(e){const t=e.lang,i=e.icons,n=e.util.createElement("DIV");return n.className="se-controller se-controller-table",n.innerHTML='<div><div class="se-btn-group"><button type="button" data-command="resize" class="se-btn se-tooltip _se_table_resize">'+i.expansion+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.maxSize+'</span></span></button><button type="button" data-command="layout" class="se-btn se-tooltip _se_table_fixed_column">'+i.fixed_column_width+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.fixedColumnWidth+'</span></span></button><button type="button" data-command="header" class="se-btn se-tooltip _se_table_header">'+i.table_header+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.tableHeader+'</span></span></button><button type="button" data-command="remove" class="se-btn se-tooltip">'+i.delete+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.remove+"</span></span></button></div></div>",n},setController_tableEditor:function(e,t){const i=e.lang,n=e.icons,l=e.util.createElement("DIV");return l.className="se-controller se-controller-table-cell",l.innerHTML=(t?"":'<div class="se-arrow se-arrow-up"></div>')+'<div class="se-btn-group"><button type="button" data-command="insert" data-value="row" data-option="up" class="se-btn se-tooltip _se_table_insert_row_a">'+n.insert_row_above+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+i.controller.insertRowAbove+'</span></span></button><button type="button" data-command="insert" data-value="row" data-option="down" class="se-btn se-tooltip _se_table_insert_row_b">
1'+n.insert_row_below+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+i.controller.insertRowBelow+'</span></span></button><button type="button" data-command="delete" data-value="row" class="se-btn se-tooltip">'+n.delete_row+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+i.controller.deleteRow+'</span></span></button><button type="button" data-command="merge" class="_se_table_merge_button se-btn se-tooltip" disabled>'+n.merge_cell+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+i.controller.mergeCells+'</span></span></button></div><div class="se-btn-group" style="padding-top: 0;"><button type="button" data-command="insert" data-value="cell" data-option="left" class="se-btn se-tooltip">'+n.insert_column_left+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+i.controller.insertColumnBefore+'</span></span></button><button type="button" data-command="insert" data-value="cell" data-option="right" class="se-btn se-tooltip">'+n.insert_column_right+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+i.controller.insertColumnAfter+'</span></span></button><button type="button" data-command="delete" data-value="cell" class="se-btn se-tooltip">'+n.delete_column+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+i.controller.deleteColumn+'</span></span></button><button type="button" data-command="onsplit" class="_se_table_split_button se-btn se-tooltip">'+n.split_cell+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+i.controller.splitCells+'</span></span></button><div class="se-btn-group-sub sun-editor-common se-list-layer se-table-split"><div class="se-list-inner"><ul class="se-list-basic"><li class="se-btn-list" data-command="split" data-value="vertical" style="line-height:32px;" title="'+i.controller.VerticalSplit+'" aria-label="'+i.controller.VerticalSplit+'">'+i.controller.VerticalSplit+'</li><li class="se-btn-list" data-command="split" data-value="horizontal" style="line-height:32px;" title="'+i.controller.HorizontalSplit+'" aria-label="'+i.controller.HorizontalSplit+'">'+i.controller.HorizontalSplit+"</li></ul></div></div></div>",l},appendTable:function(){const e=this.util.createElement("TABLE"),t=this.plugins.table.createCells,i=this.context.table._tableXY[0];let n=this.context.table._tableXY[1],l="<tbody>";for(;n>0;)l+="<tr>"+t.call(this,"td",i)+"</tr>",--n;l+="</tbody>",e.innerHTML=l;if(this.insertComponent(e,!1,!0,!1)){const t=e.querySelector("td div");this.setRange(t,0,t,0),this.plugins.table.reset_table_picker.call(this)}},createCells:function(e,t,i){if(e=e.toLowerCase(),i){const t=this.util.createElement(e);return t.innerHTML="<div><br></div>",t}{let i="";for(;t>0;)i+="<"+e+"><div><br></div></"+e+">",t--;return i}},onMouseMove_tablePicker:function(e,t){t.stopPropagation();let i=this._w.Math.ceil(t.offsetX/18),n=this._w.Math.ceil(t.offsetY/18);i=i<1?1:i,n=n<1?1:n,e._rtl&&(e.tableHighlight.style.left=18*i-13+"px",i=11-i),e.tableHighlight.style.width=i+"em",e.tableHighlight.style.height=n+"em",this.util.changeTxt(e.tableDisplay,i+" x "+n),e._tableXY=[i,n]},reset_table_picker:function(){if(!this.context.table.tableHighlight)return;const e=this.context.table.tableHighlight.style,t=this.context.table.tableUnHighlight.style;e.width="1em",e.height="1em",t.width="10em",t.height="10em",this.util.changeTxt(this.context.table.tableDisplay,"1 x 1"),this.submenuOff()},init:function(){const e=this.context.table,t=this.plugins.table;if(t._removeEvents.call(this),t._selectedTable){const e=t._selectedTable.querySelectorAll(".se-table-selected-cell");for(let t=0,i=e.length;t<i;t++)this.util.removeClass(e[t],"se-table-selected-cell")}t._toggleEditor.call(this,!0),e._element=null,e._tdElement=null,e._trElement=null,e._trElements=null,e._tableXY=[],e._maxWidth=!0,e._fixedColumn=!1,e._physical_cellCnt=0,e._logical_cellCnt=0,e._rowCnt=0,e._rowIndex=0,e._physical_cellIndex=0,e._logical_cellIndex=0,e._current_colSpan=0,e._current_rowSpan=0,t._shift=!1,t._selectedCells=null,t._selectedTable=null,t._ref=null,t._fixedCell=null,t._selectedCell=null,t._fixedCellName=null},call_controller_tableEdit:function(e){const t=this.plugins.table,i=this.context.table;if(!this.getSelection().isCollapsed&&!t._selectedCell)return this.controllersOff(),void this.util.removeClass(e,"se-table-selected-cell");const n=i._element||this.plugins.table._selectedTable||this.util.getParentElement(e,"TABLE");i._maxWidth=this.util.hasClass(n,"se-table-size-100")||"100%"===n.style.width||!n.style.width&&!this.util.hasClass(n,"se-table-size-auto"),i._fixedColumn=this.util.hasClass(n,"se-table-layout-fixed")||"fixed"===n.style.tableLayout,t.setTableStyle.call(this,i._maxWidth?"width|column":"width"),t.setPositionControllerTop.call(this,n),t.setPositionControllerDiv.call(this,e,t._shift),t._shift||this.controllersOn(i.resizeDiv,i.tableController,t.init.bind(this),e,"table")},setPositionControllerTop:function(e){this.setControllerPosition(this.context.table.tableController,e,"top",{left:0,top:0})},setPositionControllerDiv:function(e,t){const i=this.context.table,n=i.resizeDiv;this.plugins.table.setCellInfo.call(this,e,t),i.cellControllerTop?this.setControllerPosition(n,i._element,"top",{left:i.tableController.offsetWidth,top:0}):this.setControllerPosition(n,e,"bottom",{left:0,top:0})},setCellInfo:function(e,t){const i=this.context.table,n=i._element=this.plugins.table._selectedTable||this.util.getParentElement(e,"TABLE");if(/THEAD/i.test(n.firstElementChild.nodeName)?this.util.addClass(i.headerButton,"active"):this.util.removeClass(i.headerButton,"active"),t||0===i._physical_cellCnt){i._tdElement!==e&&(i._tdElement=e,i._trElement=e.parentNode);const t=i._trElements=n.rows,l=e.cellIndex;let o=0;for(let e=0,i=t[0].cells,n=t[0].cells.length;e<n;e++)o+=i[e].colSpan;const s=i._rowIndex=i._trElement.rowIndex;i._rowCnt=t.length,i._physical_cellCnt=i._trElement.cells.length,i._logical_cellCnt=o,i._physical_cellIndex=l,i._current_colSpan=i._tdElement.colSpan-1,i._current_rowSpan,i._trElement.cells[l].rowSpan;let a=[],r=[];
1for(let e,n,c=0;c<=s;c++){e=t[c].cells,n=0;for(let t,o,d,u,h=0,g=e.length;h<g;h++){if(t=e[h],o=t.colSpan-1,d=t.rowSpan-1,u=h+n,r.length>0)for(let e,t=0;t<r.length;t++)e=r[t],e.row>c||(u>=e.index?(n+=e.cs,u+=e.cs,e.rs-=1,e.row=c+1,e.rs<1&&(r.splice(t,1),t--)):h===g-1&&(e.rs-=1,e.row=c+1,e.rs<1&&(r.splice(t,1),t--)));if(c===s&&h===l){i._logical_cellIndex=u;break}d>0&&a.push({index:u,cs:o+1,rs:d,row:-1}),n+=o}r=r.concat(a).sort(function(e,t){return e.index-t.index}),a=[]}a=null,r=null}},editTable:function(e,t){const i=this.plugins.table,n=this.context.table,l=n._element,o="row"===e;if(o){const e=n._trElement.parentNode;if(/^THEAD$/i.test(e.nodeName)){if("up"===t)return;if(!e.nextElementSibling||!/^TBODY$/i.test(e.nextElementSibling.nodeName))return void(l.innerHTML+="<tbody><tr>"+i.createCells.call(this,"td",n._logical_cellCnt,!1)+"</tr></tbody>")}}if(i._ref){const e=n._tdElement,l=i._selectedCells;if(o)if(t)i.setCellInfo.call(this,"up"===t?l[0]:l[l.length-1],!0),i.editRow.call(this,t,e);else{let e=l[0].parentNode;const n=[l[0]];for(let t,i=1,o=l.length;i<o;i++)t=l[i],e!==t.parentNode&&(n.push(t),e=t.parentNode);for(let l=0,o=n.length;l<o;l++)i.setCellInfo.call(this,n[l],!0),i.editRow.call(this,t)}else{const n=l[0].parentNode;if(t){let o=null;for(let e=0,t=l.length-1;e<t;e++)if(n!==l[e+1].parentNode){o=l[e];break}i.setCellInfo.call(this,"left"===t?l[0]:o||l[0],!0),i.editCell.call(this,t,e)}else{const e=[l[0]];for(let t,i=1,o=l.length;i<o&&(t=l[i],n===t.parentNode);i++)e.push(t);for(let n=0,l=e.length;n<l;n++)i.setCellInfo.call(this,e[n],!0),i.editCell.call(this,t)}}t||i.init.call(this)}else i[o?"editRow":"editCell"].call(this,t);if(!t){const e=l.children;for(let t=0;t<e.length;t++)0===e[t].children.length&&(this.util.removeItem(e[t]),t--);0===l.children.length&&this.util.removeItem(l)}},editRow:function(e,t){const i=this.context.table,n=!e,l="up"===e,o=i._rowIndex,s=n||l?o:o+i._current_rowSpan+1,a=n?-1:1,r=i._trElements;let c=i._logical_cellCnt;
1for(let d,u=0,h=o+(n?-1:0);u<=h;u++){if(d=r[u].cells,0===d.length)return;for(let e,t,i=0,n=d.length;i<n;i++)e=d[i].rowSpan,t=d[i].colSpan,e<2&&t<2||e+u>s&&s>u&&(d[i].rowSpan=e+a,c-=t)}if(n){const e=r[o+1];if(e){const t=[];let i=r[o].cells,n=0;for(let e,l,o=0,s=i.length;o<s;o++)e=i[o],l=o+n,n+=e.colSpan-1,e.rowSpan>1&&(e.rowSpan-=1,t.push({cell:e.cloneNode(!1),index:l}));if(t.length>0){let l=t.shift();i=e.cells,n=0;for(let o,s,a=0,r=i.length;a<r&&(o=i[a],s=a+n,n+=o.colSpan-1,!(s>=l.index)||(a--,n--,n+=l.cell.colSpan-1,e.insertBefore(l.cell,o),l=t.shift(),l));a++);if(l){e.appendChild(l.cell);for(let i=0,n=t.length;i<n;i++)e.appendChild(t[i].cell)}}}i._element.deleteRow(s)}else{i._element.insertRow(s).innerHTML=this.plugins.table.createCells.call(this,"td",c,!1)}n?this.controllersOff():this.plugins.table.setPositionControllerDiv.call(this,t||i._tdElement,!0)},editCell:function(e,t){const i=this.context.table,n=this.util,l=!e,o="left"===e,s=i._current_colSpan,a=l||o?i._logical_cellIndex:i._logical_cellIndex+s+1,r=i._trElements;let c=[],d=[],u=0;const h=[],g=[];for(let p,m,f,b,_,v,y=0,w=i._rowCnt;y<w;y++){p=r[y],m=a,_=!1,f=p.cells,v=0;for(let e,t,i,o,r=0,p=f.length;r<p&&(e=f[r],e);r++)if(t=e.rowSpan-1,i=e.colSpan-1,l){if(o=r+v,d.length>0){const e=!f[r+1];for(let t,i=0;i<d.length;i++)t=d[i],t.row>y||(o>=t.index?(v+=t.cs,o=r+v,t.rs-=1,t.row=y+1,t.rs<1&&(d.splice(i,1),i--)):e&&(t.rs-=1,t.row=y+1,t.rs<1&&(d.splice(i,1),i--)))}t>0&&c.push({rs:t,cs:i+1,index:o,row:-1}),o>=m&&o+i<=m+s?h.push(e):o<=m+s&&o+i>=m?e.colSpan-=n.getOverlapRangeAtIndex(a,a+s,o,o+i):t>0&&(o<m||o+i>m+s)&&g.push({cell:e,i:y,rs:y+t}),v+=i}else{if(r>=m)break;if(i>0){if(u<1&&i+r>=m){e.colSpan+=1,m=null,u=t+1;break}m-=i}if(!_){for(let e,t=0;t<d.length;t++)e=d[t],m-=e.cs,e.rs-=1,e.rs<1&&(d.splice(t,1),t--);_=!0}}if(d=d.concat(c).sort(function(e,t){return e.index-t.index}),c=[],!l){if(u>0){u-=1;continue}null!==m&&f.length>0&&(b=this.plugins.table.createCells.call(this,f[0].nodeName,0,!0),b=p.insertBefore(b,f[m]))}}if(l){let e,t;for(let i,l=0,o=h.length;l<o;l++)i=h[l].parentNode,n.removeItem(h[l]),0===i.cells.length&&(e||(e=n.getArrayIndex(r,i)),t=n.getArrayIndex(r,i),n.removeItem(i));for(let i,l=0,o=g.length;l<o;l++)i=g[l],i.cell.rowSpan=n.getOverlapRangeAtIndex(e,t,i.i,i.rs);this.controllersOff()}else this.plugins.table.setPositionControllerDiv.call(this,t||i._tdElement,!0)},_closeSplitMenu:null,openSplitMenu:function(){this.util.addClass(this.context.table.splitButton,"on"),this.context.table.splitMenu.style.display="inline-table",this.plugins.table._closeSplitMenu=function(){this.util.removeClass(this.context.table.splitButton,"on"),this.context.table.splitMenu.style.display="none",this.removeDocEvent("click",this.plugins.table._closeSplitMenu),this.plugins.table._closeSplitMenu=null}.bind(this),this.addDocEvent("click",this.plugins.table._closeSplitMenu)},splitCells:function(e){const t=this.util,i="vertical"===e,n=this.context.table,l=n._tdElement,o=n._trElements,s=n._trElement,a=n._logical_cellIndex,r=n._rowIndex,c=this.plugins.table.createCells.call(this,l.nodeName,0,!0);if(i){const e=l.colSpan;if(c.rowSpan=l.rowSpan,e>1)c.colSpan=this._w.Math.floor(e/2),l.colSpan=e-c.colSpan,s.insertBefore(c,l.nextElementSibling);else{let t=[],i=[];for(let s,r,c=0,d=n._rowCnt;c<d;c++){s=o[c].cells,r=0;for(let n,o,d,u,h=0,g=s.length;h<g;h++){if(n=s[h],o=n.colSpan-1,d=n.rowSpan-1,u=h+r,i.length>0)for(let e,t=0;t<i.length;t++)e=i[t],e.row>c||(u>=e.index?(r+=e.cs,u+=e.cs,e.rs-=1,e.row=c+1,e.rs<1&&(i.splice(t,1),t--)):h===g-1&&(e.rs-=1,e.row=c+1,e.rs<1&&(i.splice(t,1),t--)));if(u<=a&&d>0&&t.push({index:u,cs:o+1,rs:d,row:-1}),n!==l&&u<=a&&u+o>=a+e-1){n.colSpan+=1;break}if(u>a)break;r+=o}i=i.concat(t).sort(function(e,t){return e.index-t.index}),t=[]}s.insertBefore(c,l.nextElementSibling)}}else{const e=l.rowSpan;if(c.colSpan=l.colSpan,e>1){c.rowSpan=this._w.Math.floor(e/2);const i=e-c.rowSpan,n=[],r=t.getArrayIndex(o,s)+i;for(let e,t,l=0;l<r;l++){e=o[l].cells,t=0;for(let i,o,s,c=0,d=e.length;c<d&&(s=c+t,!(s>=a));c++)i=e[c],o=i.rowSpan-1,o>0&&o+l>=r&&s<a&&n.push({index:s,cs:i.colSpan}),t+=i.colSpan-1}const d=o[r],u=d.cells;let h=n.shift();for(let e,t,l,o,s=0,g=u.length,p=0;s<g;s++){if(l=s+p,e=u[s],t=e.colSpan-1,o=l+t+1,h&&o>=h.index&&(p+=h.cs,o+=h.cs,h=n.shift()),o>=a||s===g-1){d.insertBefore(c,e.nextElementSibling);break}p+=t}l.rowSpan=i}else{c.rowSpan=l.rowSpan;const e=t.createElement("TR");e.appendChild(c);for(let t,n=0;n<r;n++){if(t=o[n].cells,0===t.length)return;for(let e=0,i=t.length;e<i;e++)n+t[e].rowSpan-1>=r&&(t[e].rowSpan+=1)}const i=n._physical_cellIndex,a=s.cells;for(let t=0,n=a.length;t<n;t++)t!==i&&(a[t].rowSpan+=1);s.parentNode.insertBefore(e,s.nextElementSibling)}}this.focusEdge(l),this.plugins.table.setPositionControllerDiv.call(this,l,!0)},mergeCells:function(){const e=this.plugins.table,t=this.context.table,i=this.util,n=e._ref,l=e._selectedCells,o=l[0];let s=null,a=null,r=n.ce-n.cs+1,c=n.re-n.rs+1,d="",u=null;for(let h,g,p=1,m=l.length;p<m;p++){h=l[p],u!==h.parentNode&&(u=h.parentNode),g=h.children;for(let e=0,t=g.length;e<t;e++)i.isFormatElement(g[e])&&i.onlyZeroWidthSpace(g[e].textContent)&&i.removeItem(g[e]);d+=h.innerHTML,i.removeItem(h),0===u.cells.length&&(s?a=u:s=u,c-=1)}if(s){const e=t._trElements,n=i.getArrayIndex(e,s),l=i.getArrayIndex(e,a||s),o=[];for(let t,s=0;s<=l;s++)if(t=e[s].cells,0!==t.length)for(let e,o,a=0,r=t.length;a<r;a++)e=t[a],o=e.rowSpan-1,o>0&&s+o>=n&&(e.rowSpan-=i.getOverlapRangeAtIndex(n,l,s,s+o));else o.push(e[s]);for(let t=0,s=o.length;t<s;t++)i.removeItem(o[t])}o.innerHTML+=d,o.colSpan=r,o.rowSpan=c,this.controllersOff(),e.setActiveButton.call(this,!0,!1),e.call_controller_tableEdit.call(this,o),i.addClass(o,"se-table-selected-cell"),this.focusEdge(o)},toggleHeader:function(){const e=this.util,t=this.context.table.headerButton,i=e.hasClass(t,"active"),n=this.context.table._element;if(i)e.removeItem(n.querySelector("thead"));else{const t=e.createElement("THEAD");t.innerHTML="<tr>"+this.plugins.table.createCells.call(this,"th",this.context.table._logical_cellCnt,!1)+"</tr>",n.insertBefore(t,n.firstElementChild)}e.toggleClass(t,"active"),/TH/i.test(this.context.table._tdElement.nodeName)?this.controllersOff():this.plugins.table.setPositionControllerDiv.call(this,this.context.table._tdElement,!1)},setTableStyle:function(e){const t=this.context.table,i=t._element;let n,l,o,s;e.indexOf("width")>-1&&(n=t.resizeButton.firstElementChild,l=t.resizeText,t._maxWidth?(o=t.icons.reduction,s=t.minText,t.columnFixedButton.style.display="block",this.util.removeClass(i,"se
1-table-size-auto"),this.util.addClass(i,"se-table-size-100")):(o=t.icons.expansion,s=t.maxText,t.columnFixedButton.style.display="none",this.util.removeClass(i,"se-table-size-100"),this.util.addClass(i,"se-table-size-auto")),this.util.changeElement(n,o),this.util.changeTxt(l,s)),e.indexOf("column")>-1&&(t._fixedColumn?(this.util.removeClass(i,"se-table-layout-auto"),this.util.addClass(i,"se-table-layout-fixed"),this.util.addClass(t.columnFixedButton,"active")):(this.util.removeClass(i,"se-table-layout-fixed"),this.util.addClass(i,"se-table-layout-auto"),this.util.removeClass(t.columnFixedButton,"active")))},setActiveButton:function(e,t){const i=this.context.table;/^TH$/i.test(e.nodeName)?(i.insertRowAboveButton.setAttribute("disabled",!0),i.insertRowBelowButton.setAttribute("disabled",!0)):(i.insertRowAboveButton.removeAttribute("disabled"),i.insertRowBelowButton.removeAttribute("disabled")),t&&e!==t?(i.splitButton.setAttribute("disabled",!0),i.mergeButton.removeAttribute("disabled")):(i.splitButton.removeAttribute("disabled"),i.mergeButton.setAttribute("disabled",!0))},_bindOnSelect:null,_bindOffSelect:null,_bindOffShift:null,_selectedCells:null,_shift:!1,_fixedCell:null,_fixedCellName:null,_selectedCell:null,_selectedTable:null,_ref:null,_toggleEditor:function(e){this.context.element.wysiwyg.setAttribute("contenteditable",e),e?this.util.removeClass(this.context.element.wysiwyg,"se-disabled"):this.util.addClass(this.context.element.wysiwyg,"se-disabled")},_offCellMultiSelect:function(e){e.stopPropagation();const t=this.plugins.table;t._shift?t._initBind&&(this._wd.removeEventListener("touchmove",t._initBind),t._initBind=null):(t._removeEvents.call(this),t._toggleEditor.call(this,!0)),t._fixedCell&&t._selectedTable&&(t.setActiveButton.call(this,t._fixedCell,t._selectedCell),t.call_controller_tableEdit.call(this,t._selectedCell||t._fixedCell),t._selectedCells=t._selectedTable.querySelectorAll(".se-table-selected-cell"),t._selectedCell&&t._fixedCell&&this.focusEdge(t._selectedCell),t._shift||(t._fixedCell=null,t._selectedCell=null,t._fixedCellName=null))},_onCellMultiSelect:function(e){this._antiBlur=!0;const t=this.plugins.table,i=this.util.getParentElement(e.target,this.util.isCell);if(t._shift)i===t._fixedCell?t._toggleEditor.call(this,!0):t._toggleEditor.call(this,!1);else if(!t._ref){if(i===t._fixedCell)return;t._toggleEditor.call(this,!1)}i&&i!==t._selectedCell&&t._fixedCellName===i.nodeName&&t._selectedTable===this.util.getParentElement(i,"TABLE")&&(t._selectedCell=i,t._setMultiCells.call(this,t._fixedCell,i))},_setMultiCells:function(e,t){const i=this.plugins.table,n=i._selectedTable.rows,l=this.util,o=i._selectedTable.querySelectorAll(".se-table-selected-cell");for(let d=0,u=o.length;d<u;d++)l.removeClass(o[d],"se-table-selected-cell");if(e===t&&(l.addClass(e,"se-table-selected-cell"),!i._shift))return;let s=!0,a=[],r=[];const c=i._ref={_i:0,cs:null,ce:null,rs:null,re:null};for(let d,u,h=0,g=n.length;h<g;h++){d=n[h].cells,u=0;for(let i,n,o,g,p=0,m=d.length;p<m;p++){if(i=d[p],o=i.colSpan-1,g=i.rowSpan-1,n=p+u,a.length>0)for(let e,t=0;t<a.length;t++)e=a[t],e.row>h||(n>=e.index?(u+=e.cs,n+=e.cs,e.rs-=1,e.row=h+1,e.rs<1&&(a.splice(t,1),t--)):p===m-1&&(e.rs-=1,e.row=h+1,e.rs<1&&(a.splice(t,1),t--)));if(s){if(i!==e&&i!==t||(c.cs=null!==c.cs&&c.cs<n?c.cs:n,c.ce=null!==c.ce&&c.ce>n+o?c.ce:n+o,c.rs=null!==c.rs&&c.rs<h?c.rs:h,c.re=null!==c.re&&c.re>h+g?c.re:h+g,c._i+=1),2===c._i){s=!1,a=[],r=[],h=-1;break}}else if(l.getOverlapRangeAtIndex(c.cs,c.ce,n,n+o)&&l.getOverlapRangeAtIndex(c.rs,c.re,h,h+g)){const e=c.cs<n?c.cs:n,t=c.ce>n+o?c.ce:n+o,s=c.rs<h?c.rs:h,d=c.re>h+g?c.re:h+g;if(c.cs!==e||c.ce!==t||c.rs!==s||c.re!==d){c.cs=e,c.ce=t,c.rs=s,c.re=d,h=-1,a=[],r=[];break}l.addClass(i,"se-table-selected-cell")}g>0&&r.push({index:n,cs:o+1,rs:g,row:-1}),u+=i.colSpan-1}a=a.concat(r).sort(function(e,t){return e.index-t.index}),r=[]}},_removeEvents:function(){const e=this.plugins.table;e._initBind&&(this._wd.removeEventListener("touchmove",e._initBind),e._initBind=null),e._bindOnSelect&&(this._wd.removeEventListener("mousedown",e._bindOnSelect),this._wd.removeEventListener("mousemove",e._bindOnSelect),e._bindOnSelect=null),e._bindOffSelect&&(this._wd.removeEventListener("mouseup",e._bindOffSelect),e._bindOffSelect=null),e._bindOffShift&&(this._wd.removeEventListener("keyup",e._bindOffShift),e._bindOffShift=null)},_initBind:null,onTableCellMultiSelect:function(e,t){const i=this.plugins.table;i._removeEvents.call(this),this.controllersOff(),i._shift=t,i._fixedCell=e,i._fixedCellName=e.nodeName,i._selectedTable=this.util.getParentElement(e,"TABLE");const n=i._selectedTable.querySelectorAll(".se-table-selected-cell");for(let l=0,o=n.length;l<o;l++)this.util.removeClass(n[l],"se-table-selected-cell");this.util.addClass(e,"se-table-selected-cell"),i._bindOnSelect=i._onCellMultiSelect.bind(this),i._bindOffSelect=i._offCellMultiSelect.bind(this),t?(i._bindOffShift=function(){this.controllersOn(this.context.table.resizeDiv,this.context.table.tableController,this.plugins.table.init.bind(this),e,"table"),i._ref||this.controllersOff()}.bind(this),this._wd.addEventListener("keyup",i._bindOffShift,!1),this._wd.addEventListener("mousedown",i._bindOnSelect,!1)):this._wd.addEventListener("mousemove",i._bindOnSelect,!1),this._wd.addEventListener("mouseup",i._bindOffSelect,!1),i._initBind=i.init.bind(this),this._wd.addEventListener("touchmove",i._initBind,!1)},onClick_tableController:function(e){e.stopPropagation();const t=e.target.getAttribute("data-command")?e.target:e.target.parentNode;if(t.getAttribute("disabled"))return;const i=t.getAttribute("data-command"),n=t.getAttribute("data-value"),l=t.getAttribute("data-option"),o=this.plugins.table;if("function"===typeof o._closeSplitMenu&&(o._closeSplitMenu(),"onsplit"===i))return;if(!i)return;e.preventDefault();const s=this.context.table;switch(i){case"insert":case"delete":o.editTable.call(this,n,l);break;case"header":o.toggleHeader.call(this);break;case"onsplit":o.openSplitMenu.call(this);break;case"split":o.splitCells.call(this,n);break;case"merge":o.mergeCells.call(this);break;case"resize":s._maxWidth=!s._maxWidth,o.setTableStyle.call(this,"width"),o.setPositionControllerTop.call(this,s._element),o.setPositionControllerDiv.call(this,s._tdElement,o._shift);break;case"layout":s._fixedColumn=!s._fixedColumn,o.setTableStyle.call(this,"column"),o.setPositionControllerTop.call(this,s._element),o.setPositionControllerDiv.call(this,s._tdElement,o._shift);break;case"remove":const e=s._element.parentNode;this.util.removeItem(s._element),this.controllersOff(),e!==this.context.element.wysiwyg&&this.util.removeItemAllParents(e,function(e){return 0===e.childNodes.length},null),this.focus()}this.history.push(!1)}},_={name:"formatBlock",display:"submenu",add:function(e,t){const i=e.context;i.formatBlock={targetText:t.querySelector(".txt"),targetTooltip:t.parentNode.querySelector(".se-tooltip-text"),_formatList:null,currentFormat:""};let n=this.setSubmenu(e);n.querySelector("ul").addEventListener("click",this.pickUp.bind(e)),i.formatBlock._formatList=n.querySelectorAll("li button"),e.initMenuTarget(this.name,t,n),n=null},setSubmenu:function(e){const t=e.options,i=e.lang.toolbar,n=e.util.createElement("DIV");n.className="se-submenu se-list-layer se-list-format";const l=["p","div","blockquote","pre","h1","h2","h3","h4","h5","h6"],o=t.formats&&0!==t.formats.length?t.formats:l;let s='<div class="se-list-inner"><ul class="se-list-basic">';for(let a,r,c,d,u,h,g,p=0,m=o.length;p<m;p++)a=o[p],"string"===typeof a&&l.indexOf(a)>-1?(r=a.toLowerCase(),c="blockquote"===r?"range":"pre"===r?"free":"replace",u=/^h/.test(r)?r.match(/\d+/)[0]:"",d=i["tag_"+(u?"h":r)]+u,g="",h=""):(r=a.tag.toLowerCase(),c=a.command,d=a.name||r,g=a.class,h=g?' class="'+g+'"':""),s+='<li><button type="button" class="se-btn-list" data-command="'+c+'" data-value="'+r+'" data-class="'+g+'" title="'+d+'" aria-label="'+d+'"><'+r+h+">"+d+"</"+r+"></button></li>";return s+="</ul></div>",n.innerHTML=s,n},active:function(e){let t=this.lang.toolbar.formats;const i=this.context.formatBlock.targetText;if(e){if(this.util.isFormatElement(e)){const n=this.context.formatBlock._formatList,l=e.nodeName.toLowerCase(),o=(e.className.match(/(\s|^)__se__format__[^\s]+/)||[""])[0].trim();for(let e,i=0,s=n.length;i<s;i++)if(e=n[i],l===e.getAttribute("data-value")&&o===e.getAttribute("data-class")){t=e.title;break}return this.util.changeTxt(i,t),i.setAttribute("data-value",l),i.setAttribute("data-class",o),!0}}else this.util.changeTxt(i,t);return!1},on:function(){const e=this.context.formatBlock,t=e._formatList,i=e.targetText,n=(i.getAttribute("data-value")||"")+(i.getAttribute("data-class")||"");if(n!==e.currentFormat){for(let e,i=0,l=t.length;i<l;i++)e=t[i],n===e.getAttribute("data-value")+e.getAttribute("data-class")?this.util.addClass(e,"active"):this.util.removeClass(e,"active");e.currentFormat=n}},pickUp:function(e){e.preventDefault(),e.stopPropagation();let t=e.target,i=null,n=null,l=null,o="";for(;!i&&!/UL/i.test(t.tagName);){if(i=t.getAttribute("data-command"),n=t.getAttribute("data-value"),o=t.getAttribute("data-class"),i){l=t.firstChild;break}t=t.parentNode}if(i){if("range"===i){const e=l.cloneNode(!1);this.applyRangeFormatElement(e)}else{let e=this.getRange(),t=this.getSelectedElementsAndComponents(!1);if(0===t.length&&(e=this.getRange_addLine(e,null),t=this.getSelectedElementsAndComponents(!1),0===t.length))return;const s=e.startOffset,a=e.endOffset,r=this.util;let c=t[0],d=t[t.length-1];const u=r.getNodePath(e.startContainer,c,null,null),h=r.getNodePath(e.endContainer,d,null,null),g=this.detachList(t,!1);
1g.sc&&(c=g.sc),g.ec&&(d=g.ec),this.setRange(r.getNodeFromPath(u,c),s,r.getNodeFromPath(h,d),a);const p=this.getSelectedElementsAndComponents(!1);if("free"===i){const e=p.length-1;let t=p[e].parentNode,i=l.cloneNode(!1);const n=i;for(let o,s,a,c,d,u,h=e,g=!0;h>=0;h--)if(o=p[h],o!==(p[h+1]?p[h+1].parentNode:null)){if(u=r.isComponent(o),s=u?"":o.innerHTML.replace(/(?!>)\s+(?=<)|\n/g," "),a=r.getParentElement(o,function(e){return e.parentNode===t}),(t!==o.parentNode||u)&&(r.isFormatElement(t)?(t.parentNode.insertBefore(i,t.nextSibling),t=t.parentNode):(t.insertBefore(i,a?a.nextSibling:null),t=o.parentNode),c=i.nextSibling,c&&i.nodeName===c.nodeName&&r.isSameAttributes(i,c)&&(i.innerHTML+="<BR>"+c.innerHTML,r.removeItem(c)),i=l.cloneNode(!1),g=!0),d=i.innerHTML,i.innerHTML=(g||!s||!d||/<br>$/i.test(s)?s:s+"<BR>")+d,0===h){t.insertBefore(i,o),c=o.nextSibling,c&&i.nodeName===c.nodeName&&r.isSameAttributes(i,c)&&(i.innerHTML+="<BR>"+c.innerHTML,r.removeItem(c));const e=i.previousSibling;e&&i.nodeName===e.nodeName&&r.isSameAttributes(i,e)&&(e.innerHTML+="<BR>"+i.innerHTML,r.removeItem(i))}u||r.removeItem(o),s&&(g=!1)}this.setRange(n,0,n,0)}else{for(let e,t,i=0,s=p.length;i<s;i++)e=p[i],e.nodeName.toLowerCase()===n.toLowerCase()&&(e.className.match(/(\s|^)__se__format__[^\s]+/)||[""])[0].trim()===o||r.isComponent(e)||(t=l.cloneNode(!1),r.copyFormatAttributes(t,e),t.innerHTML=e.innerHTML,e.parentNode.replaceChild(t,e)),0===i&&(c=t||e),i===s-1&&(d=t||e),t=null;this.setRange(r.getNodeFromPath(u,c),s,r.getNodeFromPath(h,d),a)}this.history.push(!1)}this.submenuOff()}}},v={name:"lineHeight",display:"submenu",add:function(e,t){const i=e.context;i.lineHeight={_sizeList:null,currentSize:-1};let n=this.setSubmenu(e),l=n.querySelector("ul");l.addEventListener("click",this.pickup.bind(e)),i.lineHeight._sizeList=l.querySelectorAll("li button"),e.initMenuTarget(this.name,t,n),n=null,l=null},setSubmenu:function(e){const t=e.options,i=e.lang,n=e.util.createElement("DIV");n.className="se-submenu se-list-layer";const l=t.lineHeights?t.lineHeights:[{text:"1",value:1},{text:"1.15",value:1.15},{text:"1.5",value:1.5},{text:"2",value:2}];let o='<div class="se-list-inner"><ul class="se-list-basic"><li><button type="button" class="default_value se-btn-list" title="'+i.toolbar.default+'" aria-label="'+i.toolbar.default+'">('+i.toolbar.default+")</button></li>";for(let s,a=0,r=l.length;a<r;a++)s=l[a],o+='<li><button type="button" class="se-btn-list" data-value="'+s.value+'" title="'+s.text+'" aria-label="'+s.text+'">'+s.text+"</button></li>";return o+="</ul></div>",n.innerHTML=o,n},on:function(){const e=this.context.lineHeight,t=e._sizeList,i=this.util.getFormatElement(this.getSelectionNode()),n=i?i.style.lineHeight+"":"";if(n!==e.currentSize){for(let e=0,i=t.length;e<i;e++)n===t[e].getAttribute("data-value")?this.util.addClass(t[e],"active"):this.util.removeClass(t[e],"active");e.currentSize=n}},pickup:function(e){if(!/^BUTTON$/i.test(e.target.tagName))return!1;e.preventDefault(),e.stopPropagation();const t=e.target.getAttribute("data-value")||"",i=this.getSelectedElements();for(let n=0,l=i.length;n<l;n++)i[n].style.lineHeight=t;this.submenuOff(),this.history.push(!1)}},y={name:"template",display:"submenu",add:function(e,t){e.context.template={selectedIndex:-1};let i=this.setSubmenu(e);i.querySelector("ul").addEventListener("click",this.pickup.bind(e)),e.initMenuTarget(this.name,t,i),i=null},setSubmenu:function(e){const t=e.options.templates;if(!t||0===t.length)throw Error('[SUNEDITOR.plugins.template.fail] To use the "template" plugin, please define the "templates" option.');const i=e.util.createElement("DIV");i.className="se-list-layer";let n='<div class="se-submenu se-list-inner"><ul class="se-list-basic">';for(let l,o=0,s=t.length;o<s;o++)l=t[o],n+='<li><button type="button" class="se-btn-list" data-value="'+o+'" title="'+l.name+'" aria-label="'+l.name+'">'+l.name+"</button></li>";return n+="</ul></div>",i.innerHTML=n,i},pickup:function(e){if(!/^BUTTON$/i.test(e.target.tagName))return!1;e.preventDefault(),e.stopPropagation(),this.context.template.selectedIndex=1*e.target.getAttribute("data-value");const t=this.options.templates[this.context.template.selectedIndex];if(!t.html)throw this.submenuOff(),Error('[SUNEDITOR.template.fail] cause : "templates[i].html not found"');this.setContents(t.html),this.submenuOff()}},w={name:"paragraphStyle",display:"submenu",add:function(e,t){const i=e.context;i.paragraphStyle={_classList:null};let n=this.setSubmenu(e);n.querySelector("ul").addEventListener("click",this.pickUp.bind(e)),i.paragraphStyle._classList=n.querySelectorAll("li button"),e.initMenuTarget(this.name,t,n),n=null},setSubmenu:function(e){const t=e.options,i=e.util.createElement("DIV");i.className="se-submenu se-list-layer se-list-format";const n=e.lang.menu,l={spaced:{name:n.spaced,class:"__se__p-spaced",_class:""},bordered:{name:n.bordered,class:"__se__p-bordered",_class:""},neon:{name:n.neon,class:"__se__p-neon",_class:""}},o=t.paragraphStyles&&0!==t.paragraphStyles.length?t.paragraphStyles:["spaced","bordered","neon"];let s='<div class="se-list-inner"><ul class="se-list-basic">';for(let a,r,c,d,u=0,h=o.length;u<h;u++){if(a=o[u],"string"===typeof a){const e=l[a.toLowerCase()];if(!e)continue;a=e}r=a.name,c=a.class?' class="'+a.class+'"':"",d=a._class,s+='<li><button type="button" class="se-btn-list'+(d?" "+d:"")+'" data-value="'+a.class+'" title="'+r+'" aria-label="'+r+'"><div'+c+">"+r+"</div></button></li>"}return s+="</ul></div>",i.innerHTML=s,i},on:function(){const e=this.context.paragraphStyle._classList,t=this.util.getFormatElement(this.getSelectionNode());for(let i=0,n=e.length;i<n;i++)this.util.hasClass(t,e[i].getAttribute("data-value"))?this.util.addClass(e[i],"active"):this.util.removeClass(e[i],"active")},pickUp:function(e){e.preventDefault(),e.stopPropagation();let t=e.target,i=null;for(;!/^UL$/i.test(t.tagName)&&(i=t.getAttribute("data-value"),!i);)t=t.parentNode;if(!i)return;let n=this.getSelectedElements();if(0===n.length&&(this.getRange_addLine(this.getRange(),null),n=this.getSelectedElements(),0===n.length))return;const l=this.util.hasClass(t,"active")?this.util.removeClass.bind(this.util):this.util.addClass.bind(this.util);for(let o=0,s=n.length;o<s;o++)l(n[o],i);this.submenuOff(),this.history.push(!1)}},C={name:"textStyle",display:"submenu",add:function(e,t){const i=e.context;i.textStyle={_styleList:null};let n=this.setSubmenu(e),l=n.querySelector("ul");l.addEventListener("click",this.pickup.bind(e)),i.textStyle._styleList=n.querySelectorAll("li button"),e.initMenuTarget(this.name,t,n),n=null,l=null},setSubmenu:function(e){const t=e.options,i=e.util.createElement("DIV");i.className="se-submenu se-list-layer se-list-format";const n={code:{name:e.lang.menu.code,class:"__se__t-code",tag:"co
1de"},translucent:{name:e.lang.menu.translucent,style:"opacity: 0.5;",tag:"span"},shadow:{name:e.lang.menu.shadow,class:"__se__t-shadow",tag:"span"}},l=t.textStyles?t.textStyles:e._w.Object.keys(n);let o='<div class="se-list-inner"><ul class="se-list-basic">';for(let s,a,r,c,d,u,h,g=0,p=l.length;g<p;g++){if(s=l[g],c="",u="",d=[],"string"===typeof s){const e=n[s.toLowerCase()];if(!e)continue;s=e}r=s.name,a=s.tag||"span",h=s._class,s.style&&(c+=' style="'+s.style+'"',u+=s.style.replace(/:[^;]+(;|$)\s*/g,","),d.push("style")),s.class&&(c+=' class="'+s.class+'"',u+="."+s.class.trim().replace(/\s+/g,",."),d.push("class")),u=u.replace(/,$/,""),o+='<li><button type="button" class="se-btn-list'+(h?" "+h:"")+'" data-command="'+a+'" data-value="'+u+'" title="'+r+'" aria-label="'+r+'"><'+a+c+">"+r+"</"+a+"></button></li>"}return o+="</ul></div>",i.innerHTML=o,i},on:function(){const e=this.util,t=this.context.textStyle._styleList,i=this.getSelectionNode();for(let n,l,o,s=0,a=t.length;s<a;s++){n=t[s],l=n.getAttribute("data-value").split(",");for(let t,s,a=0;a<l.length;a++){for(t=i,o=!1;t&&!e.isFormatElement(t)&&!e.isComponent(t);){if(t.nodeName.toLowerCase()===n.getAttribute("data-command").toLowerCase()&&(s=l[a],/^\./.test(s)?e.hasClass(t,s.replace(/^\./,"")):t.style[s])){o=!0;break}t=t.parentNode}if(!o)break}o?e.addClass(n,"active"):e.removeClass(n,"active")}},pickup:function(e){e.preventDefault(),e.stopPropagation();let t=e.target,i=null,n=null;for(;!i&&!/UL/i.test(t.tagName);){if(i=t.getAttribute("data-command"),i){n=t.firstChild;break}t=t.parentNode}if(!i)return;const l=n.style.cssText.replace(/:.+(;|$)/g,",").split(",");l.pop();const o=n.classList;for(let r=0,c=o.length;r<c;r++)l.push("."+o[r]);const s=this.util.hasClass(t,"active")?null:n.cloneNode(!1),a=s?null:[n.nodeName];this.nodeChange(s,l,a,!0),this.submenuOff()}};function x(){return x.c||(x.c=i.n(l()))}
1const S={name:"selectMenu",add:function(e){e.context.selectMenu={caller:{},callerContext:null}},setForm:function(){return'<div class="se-select-list"></div>'},createList:function(e,t,i){e.form.innerHTML="<ul>"+i+"</ul>",e.items=t,e.menus=e.form.querySelectorAll("li")},initEvent:function(e,t){const i=t.querySelector(".se-select-list"),n=this.context.selectMenu.caller[e]={form:i,items:[],menus:[],index:-1,item:null,clickMethod:null,callerName:e};i.addEventListener("mousedown",this.plugins.selectMenu.onMousedown_list),i.addEventListener("mousemove",this.plugins.selectMenu.onMouseMove_list.bind(this,n)),i.addEventListener("click",this.plugins.selectMenu.onClick_list.bind(this,n))},onMousedown_list:function(e){e.preventDefault(),e.stopPropagation()},onMouseMove_list:function(e,t){this.util.addClass(e.form,"__se_select-menu-mouse-move");const i=t.target.getAttribute("data-index");i&&(e.index=1*i)},onClick_list:function(e,t){const i=t.target.getAttribute("data-index");i&&e.clickMethod.call(this,e.items[i])},moveItem:function(e,t){this.util.removeClass(e.form,"__se_select-menu-mouse-move"),t=e.index+t;const i=e.menus,n=i.length,l=e.index=t>=n?0:t<0?n-1:t;for(let o=0;o<n;o++)o===l?this.util.addClass(i[o],"active"):this.util.removeClass(i[o],"active");e.item=e.items[l]},getItem:function(e,t){return t=!t||t<0?e.index:t,e.items[t]},on:function(e,t){const i=this.context.selectMenu.caller[e];this.context.selectMenu.callerContext=i,i.clickMethod=t,i.callerName=e},open:function(e,t){const i=e.form;i.style.visibility="hidden",i.style.display="block",t(i),i.style.visibility=""},close:function(e){e.form.style.display="none",e.items=[],e.menus=[],e.index=-1,e.item=null},init:function(e){e&&(e.items=[],e.menus=[],e.index=-1,e.item=null,e.callerName="",this.context.selectMenu.callerContext=null)}},k={name:"anchor",add:function(e){e.addModule([S]),e.context.anchor={caller:{},forms:this.setDialogForm(e),host:(e._w.location.origin+e._w.location.pathname).replace(/\/$/,""),callerContext:null}},setDialogForm:function(e){const t=e.lang,i=e.options.linkRel,n=(e.options.linkRelDefault.default||"").split(" "),l=e.icons,o=e.util.createElement("DIV");let s='<div class="se-dialog-body"><div class="se-dialog-form"><label>'+t.dialogBox.linkBox.url+'</label><div class="se-dialog-form-files"><input class="se-input-form se-input-url" type="text" placeholder="'+(e.options.protocol||"")+'" /><button type="button" class="se-btn se-dialog-files-edge-button _se_bookmark_button" title="'+t.dialogBox.linkBox.bookmark+'" aria-label="'+t.dialogBox.linkBox.bookmark+'">'+l.bookmark+"</button>"+e.plugins.selectMenu.setForm()+'</div><div class="se-anchor-preview-form"><span class="se-svg se-anchor-preview-icon _se_anchor_bookmark_icon">'+l.bookmark+'</span><span class="se-svg se-anchor-preview-icon _se_anchor_download_icon">'+l.download+'</span><pre class="se-link-preview"></pre></div></div><div class="se-dialog-form"><label>'+t.dialogBox.linkBox.text+'</label><input class="se-input-form _se_anchor_text" type="text" /></div><div class="se-dialog-form-footer"><label><input type="checkbox" class="se-dialog-btn-check _se_anchor_check" />&nbsp;'+t.dialogBox.linkBox.newWindowCheck+'</label><label><input type="checkbox" class="se-dialog-btn-check _se_anchor_download" />&nbsp;'+t.dialogBox.linkBox.downloadLinkCheck+"</label>";if(i.length>0){s+='<div class="se-anchor-rel"><button type="button" class="se-btn se-btn-select se-anchor-rel-btn">&lt;rel&gt;</button><div class="se-anchor-rel-wrapper"><pre class="se-link-preview se-anchor-rel-preview"></pre></div><div class="se-list-layer"><div class="se-list-inner"><ul class="se-list-basic se-list-checked">';for(let e,t=0,o=i.length;t<o;t++)e=i[t],s+='<li><button type="button" class="se-btn-list'+(n.indexOf(e)>-1?" se-checked":"")+'" data-command="'+e+'" title="'+e+'" aria-label="'+e+'"><span class="se-svg">'+l.checked+"</span>"+e+"</button></li>";s+="</ul></div></div></div>"}return s+="</div></div>",o.innerHTML=s,o},initEvent:function(e,t){const i=this.plugins.anchor,n=this.context.anchor.caller[e]={modal:t,urlInput:null,linkDefaultRel:this.options.linkRelDefault,defaultRel:this.options.linkRelDefault.default||"",currentRel:[],linkAnchor:null,linkValue:"",_change:!1,callerName:e};"string"===typeof n.linkDefaultRel.default&&(n.linkDefaultRel.default=n.linkDefaultRel.default.trim()),"string"===typeof n.linkDefaultRel.check_new_window&&(n.linkDefaultRel.check_new_window=n.linkDefaultRel.check_new_window.trim()),"string"===typeof n.linkDefaultRel.check_bookmark&&(n.linkDefaultRel.check_bookmark=n.linkDefaultRel.check_bookmark.trim()),n.urlInput=t.querySelector(".se-input-url"),n.anchorText=t.querySelector("._se_anchor_text"),n.newWindowCheck=t.querySelector("._se_anchor_check"),n.downloadCheck=t.querySelector("._se_anchor_download"),n.download=t.querySelector("._se_anchor_download_icon"),n.preview=t.querySelector(".se-link-preview"),n.bookmark=t.querySelector("._se_anchor_bookmark_icon"),n.bookmarkButton=t.querySelector("._se_bookmark_button"),this.plugins.selectMenu.initEvent.call(this,e,t);const l=this.context.selectMenu.caller[e];this.options.linkRel.length>0&&(n.relButton=t.querySelector(".se-anchor-rel-btn"),n.relList=t.querySelector(".se-list-layer"),n.relPreview=t.querySelector(".se-anchor-rel-preview"),n.relButton.addEventListener("click",i.onClick_relButton.bind(this,n)),n.relList.addEventListener("click",i.onClick_relList.bind(this,n))),n.newWindowCheck.addEventListener("change",i.onChange_newWindowCheck.bind(this,n)),n.downloadCheck.addEventListener("change",i.onChange_downloadCheck.bind(this,n)),n.anchorText.addEventListener("input",i.onChangeAnchorText.bind(this,n)),n.urlInput.addEventListener("input",i.onChangeUrlInput.bind(this,n)),n.urlInput.addEventListener("keydown",i.onKeyDownUrlInput.bind(this,l)),n.urlInput.addEventListener("focus",i.onFocusUrlInput.bind(this,n,l)),n.urlInput.addEventListener("blur",i.onBlurUrlInput.bind(this,l)),n.bookmarkButton.addEventListener("click",i.onClick_bookmarkButton.bind(this,n))},on:function(e,t){const i=this.plugins.anchor;if(t){if(e.linkAnchor){this.context.dialog.updateModal=!0;const t=e.linkAnchor.getAttribute("href");e.linkValue=e.preview.textContent=e.urlInput.value=i.selfPathBookmark.call(this,t)?t.substr(t.lastIndexOf("#")):t,e.anchorText.value=e.linkAnchor.textContent,e.newWindowCheck.checked=!!/_blank/i.test(e.linkAnchor.target),e.downloadCheck.checked=e.linkAnchor.download}}else i.init.call(this,e),e.anchorText.value=this.getSelection().toString().trim(),e.newWindowCheck.checked=this.options.linkTargetNewWindow;this.context.anchor.callerContext=e,i.setRel.call(this,e,t&&e.linkAnchor?e.linkAnchor.rel:e.defaultRel),i.setLinkPreview.call(this,e,e.linkValue),this.plugins.selectMenu.on.call(this,e.callerName,this.plugins.anchor.setHeaderBookmark)},selfPathBookmark:function(e){const t=this._w.location.href.replace(/\/$/,"");return 0===e.indexOf("#")||0===e.indexOf(t)&&e.indexOf("#")===(-1===t.indexOf("#")?t.length:t.substr(0,t.indexOf("#")).length)},_closeRelMenu:null,toggleRelList:function(e,t){if(t){const t=e.relButton,i=e.relList;this.util.addClass(t,"active"),i.style.visibility="hidden",i.style.display="block",this.options.rtl?i.style.left=t.offsetLeft-i.offsetWidth-1+"px":i.style.left=t.offsetLeft+t.offsetWidth+1+"px",i.style.top=t.offsetTop+t.offsetHeight/2-i.offsetHeight/2+"px",i.style.visibility="",this.plugins.anchor._closeRelMenu=function(e,t,i){i&&(e.relButton.contains(i.target)||e.relList.contains(i.target))||(this.util.removeClass(t,"active"),e.relList.style.display="none",this.modalForm.removeEventListener("click",this.plugins.anchor._closeRelMenu),this.plugins.anchor._closeRelMenu=null)}.bind(this,e,t),this.modalForm.addEventListener("click",this.plugins.anchor._closeRelMenu)}else this.plugins.anchor._closeRelMenu&&this.plugins.anchor._closeRelMenu()},onClick_relButton:function(e,t){this.plugins.anchor.toggleRelList.call(this,e,!this.util.hasClass(t.target,"active"))},onClick_relList:function(e,t){const i=t.target,n=i.getAttribute("data-command");if(!n)return;
1const l=e.currentRel,o=this.util.toggleClass(i,"se-checked"),s=l.indexOf(n);o?-1===s&&l.push(n):s>-1&&l.splice(s,1),e.relPreview.title=e.relPreview.textContent=l.join(" ")},setRel:function(e,t){const i=e.relList,n=e.currentRel=t?t.split(" "):[];if(!i)return;const l=i.querySelectorAll("button");for(let o,s=0,a=l.length;s<a;s++)o=l[s].getAttribute("data-command"),n.indexOf(o)>-1?this.util.addClass(l[s],"se-checked"):this.util.removeClass(l[s],"se-checked");e.relPreview.title=e.relPreview.textContent=n.join(" ")},createHeaderList:function(e,t,i){const n=this.util.getListChildren(this.context.element.wysiwyg,function(e){return/h[1-6]/i.test(e.nodeName)});if(0===n.length)return;const l=new this._w.RegExp("^"+i.replace(/^#/,""),"i"),o=[];let s="";for(let a,r=0,c=n.length;r<c;r++)a=n[r],l.test(a.textContent)&&(o.push(a),s+='<li class="se-select-item" data-index="'+r+'">'+a.textContent+"</li>");0===o.length?this.plugins.selectMenu.close.call(this,t):(this.plugins.selectMenu.createList(t,o,s),this.plugins.selectMenu.open.call(this,t,this.plugins.anchor._setMenuListPosition.bind(this,e)))},_setMenuListPosition:function(e,t){t.style.top=e.urlInput.offsetHeight+1+"px"},onKeyDownUrlInput:function(e,t){switch(t.keyCode){case 38:t.preventDefault(),t.stopPropagation(),this.plugins.selectMenu.moveItem.call(this,e,-1);break;case 40:t.preventDefault(),t.stopPropagation(),this.plugins.selectMenu.moveItem.call(this,e,1);break;case 13:e.index>-1&&(t.preventDefault(),t.stopPropagation(),this.plugins.anchor.setHeaderBookmark.call(this,this.plugins.selectMenu.getItem(e,null)))}},setHeaderBookmark:function(e){const t=this.context.anchor.callerContext,i=e.id||"h_"+this._w.Math.random().toString().replace(/.+\./,"");e.id=i,t.urlInput.value="#"+i,t.anchorText.value.trim()&&t._change||(t.anchorText.value=e.textContent),this.plugins.anchor.setLinkPreview.call(this,t,t.urlInput.value),this.plugins.selectMenu.close.call(this,this.context.selectMenu.callerContext),this.context.anchor.callerContext.urlInput.focus()},onChangeAnchorText:function(e,t){e._change=!!t.target.value.trim()},onChangeUrlInput:function(e,t){const i=t.target.value.trim();this.plugins.anchor.setLinkPreview.call(this,e,i),this.plugins.anchor.selfPathBookmark.call(this,i)?this.plugins.anchor.createHeaderList.call(this,e,this.context.selectMenu.callerContext,i):this.plugins.selectMenu.close.call(this,this.context.selectMenu.callerContext)},onFocusUrlInput:function(e,t){const i=e.urlInput.value;this.plugins.anchor.selfPathBookmark.call(this,i)&&this.plugins.anchor.createHeaderList.call(this,e,t,i)},onBlurUrlInput:function(e){this.plugins.selectMenu.close.call(this,e)},setLinkPreview:function(e,t){const i=e.preview,n=this.options.linkProtocol,l=this.options.linkNoPrefix,o=/^(mailto\:|tel\:|sms\:|https*\:\/\/|#)/.test(t)||0===t.indexOf(n),s=!!n&&this._w.RegExp("^"+this.util.escapeStringRegexp(t.substr(0,n.length))).test(n);t=e.linkValue=i.textContent=t?l?t:!n||o||s?o?t:/^www\./.test(t)?"http://"+t:this.context.anchor.host+(/^\//.test(t)?"":"/")+t:n+t:"",this.plugins.anchor.selfPathBookmark.call(this,t)?(e.bookmark.style.display="block",this.util.addClass(e.bookmarkButton,"active")):(e.bookmark.style.display="none",this.util.removeClass(e.bookmarkButton,"active")),!this.plugins.anchor.selfPathBookmark.call(this,t)&&e.downloadCheck.checked?e.download.style.display="block":e.download.style.display="none"},setCtx:function(e,t){e&&(t.linkAnchor=e,t.linkValue=e.href,t.currentRel=e.rel.split(" "))},updateAnchor:function(e,t,i,n,l){!this.plugins.anchor.selfPathBookmark.call(this,t)&&n.downloadCheck.checked?e.setAttribute("download",i||t):e.removeAttribute("download"),n.newWindowCheck.checked?e.target="_blank":e.removeAttribute("target");const o=n.currentRel.join(" ");o?e.rel=o:e.removeAttribute("rel"),e.href=t,l?0===e.children.length&&(e.textContent=""):e.textContent=i},createAnchor:function(e,t){if(0===e.linkValue.length)return null;const i=e.linkValue,n=e.anchorText,l=0===n.value.length?i:n.value,o=e.linkAnchor||this.util.createElement("A");return this.plugins.anchor.updateAnchor.call(this,o,i,l,e,t),e.linkValue=e.preview.textContent=e.urlInput.value=e.anchorText.value="",o},onClick_bookmarkButton:function(e){let t=e.urlInput.value;this.plugins.anchor.selfPathBookmark.call(this,t)?(t=t.substr(1),e.bookmark.style.display="none",this.util.removeClass(e.bookmarkButton,"active"),this.plugins.selectMenu.close.call(this,this.context.selectMenu.callerContext)):(t="#"+t,e.bookmark.style.display="block",this.util.addClass(e.bookmarkButton,"active"),e.downloadCheck.checked=!1,e.download.style.display="none",this.plugins.anchor.createHeaderList.call(this,e,this.context.selectMenu.callerContext,t)),e.urlInput.value=t,this.plugins.anchor.setLinkPreview.call(this,e,t),e.urlInput.focus()},onChange_newWindowCheck:function(e,t){"string"===typeof e.linkDefaultRel.check_new_window&&(t.target.checked?this.plugins.anchor.setRel.call(this,e,this.plugins.anchor._relMerge.call(this,e,e.linkDefaultRel.check_new_window)):this.plugins.anchor.setRel.call(this,e,this.plugins.anchor._relDelete.call(this,e,e.linkDefaultRel.check_new_window)))},onChange_downloadCheck:function(e,t){t.target.checked?(e.download.style.display="block",e.bookmark.style.display="none",this.util.removeClass(e.bookmarkButton,"active"),e.linkValue=e.preview.textContent=e.urlInput.value=e.urlInput.value.replace(/^\#+/,""),"string"===typeof e.linkDefaultRel.check_bookmark&&this.plugins.anchor.setRel.call(this,e,this.plugins.anchor._relMerge.call(this,e,e.linkDefaultRel.check_bookmark))):(e.download.style.display="none","string"===typeof e.linkDefaultRel.check_bookmark&&this.plugins.anchor.setRel.call(this,e,this.plugins.anchor._relDelete.call(this,e,e.linkDefaultRel.check_bookmark)))},_relMerge:function(e,t){const i=e.currentRel;if(!t)return i.join(" ");if(/^only\:/.test(t))return t=t.replace(/^only\:/,"").trim(),e.currentRel=t.split(" "),t;const n=t.split(" ");for(let l,o=0,s=n.length;o<s;o++)l=i.indexOf(n[o]),-1===l&&i.push(n[o]);return i.join(" ")},_relDelete:function(e,t){if(!t)return e.currentRel.join(" ");/^only\:/.test(t)&&(t=t.replace(/^only\:/,"").trim());const i=e.currentRel.join(" ").replace(this._w.RegExp(t+"\\s*"),"");return e.currentRel=i.split(" "),i},init:function(e){e.linkAnchor=null,e.linkValue=e.preview.textContent=e.urlInput.value="",e.anchorText.value="",e.newWindowCheck.checked=!1,e.downloadCheck.checked=!1,e._change=!1,this.plugins.anchor.setRel.call(this,e,e.defaultRel),e.relList&&this.plugins.anchor.toggleRelList.call(this,e,!1),this.context.anchor.callerContext=null,this.plugins.selectMenu.init.call(this,this.context.selectMenu.callerContext)}},E={name:"link",display:"dialog",add:function(e){e.addModule([x()(),k]);const t=e.context,i=t.link={focusElement:null,_linkAnchor:null,anchorCtx:null};let n=this.setDialog(e);i.modal=n;let l=this.setController_LinkButton(e);i.linkController=l,n.querySelector("form").addEventListener("submit",this.submit.bind(e)),l.addEventListener("click",this.onClick_linkController.bind(e)),t.dialog.modal.appendChild(n),t.element.relative.appendChild(l),e.plugins.anchor.initEvent.call(e,"link",n),i.focusElement=t.anchor.caller.link.urlInput,n=null,l=null},setDialog:function(e){const t=e.lang,i=e.util.createElement("DIV"),n=e.icons;i.className="se-dialog-content",i.style.display="none";let l='<form><div class="se-dialog-header"><button type="button" data-command="close" class="se-btn se-dialog-close" title="'+t.dialogBox.close+'" aria-label="'+t.dialogBox.close+'">'+n.cancel+'</button><span class="se-modal-title">'+t.dialogBox.linkBox.title+"</span></div>"+e.context.anchor.forms.innerHTML+'<div class="se-dialog-footer"><button type="submit" class="se-btn-primary" title="'+t.dialogBox.submitButton+'" aria-label="'+t.dialogBox.submitButton+'"><span>'+t.dialogBox.submitButton+"</span></button></div></form>";return i.innerHTML=l,i},setController_LinkButton:function(e){const t=e.lang,i=e.icons,n=e.util.createElement("DIV");return n.className="se-controller se-controller-link",n.innerHTML='<div class="se-arrow se-arrow-up"></div><div class="link-content"><span><a target="_blank" href=""></a>&nbsp;</span><div class="se-btn-group"><button type="button" data-command="update" tabindex="-1" class="se-btn se-tooltip">'+i.edit+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.edit+'</span></span></button><button type="button" data-command="unlink" tabindex="-1" class="se-btn se-tooltip">'+i.unlink+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.unlink+'</span></span></button><button type="button" data-command="delete" tabindex="-1" class="se-btn se-tooltip">'+i.delete+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.remove+"</span></span></button></div></div>",n},open:function(){this.plugins.dialog.open.call(this,"link","link"===this.currentControllerName)},submit:function(e){this.showLoading(),e.preventDefault(),e.stopPropagation();try{const e=this.plugins.anchor.createAnchor.call(this,this.context.anchor.caller.link,!1);if(null===e)return;if(this.context.dialog.updateModal){const e=this.context.link._linkAnchor.childNodes[0];this.setRange(e,0,e,e.textContent.length)}else{const t=this.getSelectedElements();if(t.length>1){const i=this.util.createElement(t[0].nodeName);if(i.appendChild(e),!this.insertNode(i,null,!0))return}else if(!this.insertNode(e,null,!0))return;this.setRange(e.childNodes[0],0,e.childNodes[0],e.textContent.length)}}finally{this.plugins.dialog.close.call(this),this.closeLoading(),this.history.push(!1)}return!1},active:function(e){if(e){if(this.util.isAnchor(e)&&null===e.getAttribute("data-image-link"))return this.controllerArray.indexOf(this.context.link.linkController)<0&&this.plugins.link.call_controller.call(this,e),!0}else this.controllerArray.indexOf(this.context.link.linkController)>-1&&this.controllersOff();return!1},on:function(e){this.plugins.anchor.on.call(this,this.context.anchor.caller.link,e)},call_controller:function(e){this.editLink=this.context.link._linkAnchor=this.context.anchor.caller.link.linkAnchor=e;const t=this.context.link.linkController,i=t.querySelector("a");i.href=e.href,i.title=e.textContent,i.textContent=e.textContent,this.util.addClass(e,"on"),this.setControllerPosition(t,e,"bottom",{left:0,top:0}),this.controllersOn(t,e,"link",this.util.removeClass.bind(this.util,this.context.link._linkAnchor,"on"))},onClick_linkController:function(e){e.stopPropagation();const t=e.target.getAttribute("data-command")||e.target.parentNode.getAttribute("data-command");if(t){if(e.preventDefault(),/update/.test(t))this.plugins.dialog.open.call(this,"link",!0);else if(/unlink/.test(t)){const e=this.util.getChildElement(this.context.link._linkAnchor,function(e){return 0===e.childNodes.length||3===e.n
1odeType},!1),t=this.util.getChildElement(this.context.link._linkAnchor,function(e){return 0===e.childNodes.length||3===e.nodeType},!0);this.setRange(e,0,t,t.textContent.length),this.nodeChange(null,null,["A"],!1)}else this.util.removeItem(this.context.link._linkAnchor),this.context.anchor.caller.link.linkAnchor=null,this.focus(),this.history.push(!1);this.controllersOff()}},init:function(){this.context.link.linkController.style.display="none",this.plugins.anchor.init.call(this,this.context.anchor.caller.link)}};function L(){return L.c||(L.c=i.n(n()))}function N(){return N.c||(N.c=i.n(a()))}function T(){return T.c||(T.c=i.n(s()))}const z={name:"image",display:"dialog",add:function(e){e.addModule([x()(),k,L()(),N()(),T()()]);const t=e.options,i=e.context,n=i.image={_infoList:[],_infoIndex:0,_uploadFileLength:0,focusElement:null,sizeUnit:t._imageSizeUnit,_linkElement:"",_altText:"",_align:"none",_floatClassRegExp:"__se__float\\-[a-z]+",_v_src:{_linkValue:""},svgDefaultSize:"30%",base64RenderIndex:0,_element:null,_cover:null,_container:null,inputX:null,inputY:null,_element_w:1,_element_h:1,_element_l:0,_element_t:0,_defaultSizeX:"auto",_defaultSizeY:"auto",_origin_w:"auto"===t.imageWidth?"":t.imageWidth,_origin_h:"auto"===t.imageHeight?"":t.imageHeight,_proportionChecked:!0,_resizing:t.imageResizing,_resizeDotHide:!t.imageHeightShow,_rotation:t.imageRotation,_alignHide:!t.imageAlignShow,_onlyPercentage:t.imageSizeOnlyPercentage,_ratio:!1,_ratioX:1,_ratioY:1,_captionShow:!0,_captionChecked:!1,_caption:null,captionCheckEl:null};let l=this.setDialog(e);n.modal=l,n.imgInputFile=l.querySelector("._se_image_file"),n.imgUrlFile=l.querySelector("._se_image_url"),n.focusElement=n.imgInputFile||n.imgUrlFile,n.altText=l.querySelector("._se_image_alt"),n.captionCheckEl=l.querySelector("._se_image_check_caption"),n.previewSrc=l.querySelector("._se_tab_content_image .se-link-preview"),l.querySelector(".se-dialog-tabs").addEventListener("click",this.openTab.bind(e)),l.querySelector("form").addEventListener("submit",this.submit.bind(e)),n.imgInputFile&&l.querySelector(".se-file-remove").addEventListener("click",this._removeSelectedFiles.bind(n.imgInputFile,n.imgUrlFile,n.previewSrc)),n.imgUrlFile&&n.imgUrlFile.addEventListener("input",this._onLinkPreview.bind(n.previewSrc,n._v_src,t.linkProtocol)),n.imgInputFile&&n.imgUrlFile&&n.imgInputFile.addEventListener("change",this._fileInputChange.bind(n));const o=l.querySelector(".__se__gallery");o&&o.addEventListener("click",this._openGallery.bind(e)),n.proportion={},n.inputX={},n.inputY={},t.imageResizing&&(n.proportion=l.querySelector("._se_image_check_proportion"),n.inputX=l.querySelector("._se_image_size_x"),n.inputY=l.querySelector("._se_image_size_y"),n.inputX.value=t.imageWidth,n.inputY.value=t.imageHeight,n.inputX.addEventListener("keyup",this.setInputSize.bind(e,"x")),n.inputY.addEventListener("keyup",this.setInputSize.bind(e,"y")),n.inputX.addEventListener("change",this.setRatio.bind(e)),n.inputY.addEventListener("change",this.setRatio.bind(e)),n.proportion.addEventListener("change",this.setRatio.bind(e)),l.querySelector(".se-dialog-btn-revert").addEventListener("click",this.sizeRevert.bind(e))),i.dialog.modal.appendChild(l),e.plugins.anchor.initEvent.call(e,"image",l.querySelector("._se_tab_content_url")),n.anchorCtx=e.context.anchor.caller.image,l=null},setDialog:function(e){const t=e.options,i=e.lang,n=e.util.createElement("DIV");n.className="se-dialog-content se-dialog-image",n.style.display="none";let l='<div class="se-dialog-header"><button type="button" data-command="close" class="se-btn se-dialog-close" class="close" title="'+i.dialogBox.close+'" aria-label="'+i.dialogBox.close+'">'+e.icons.cancel+'</button><span class="se-modal-title">'+i.dialogBox.imageBox.title+'</span></div><div class="se-dialog-tabs"><button type="button" class="_se_tab_link active" data-tab-link="image">'+i.toolbar.image+'</button><button type="button" class="_se_tab_link" data-tab-link="url">'+i.toolbar.link+'</button></div><form method="post" enctype="multipart/form-data"><div class="_se_tab_content _se_tab_content_image"><div class="se-dialog-body"><div style="border-bottom: 1px dashed #ccc;">';if(t.imageFileInput&&(l+='<div class="se-dialog-form"><label>'+i.dialogBox.imageBox.file+'</label><div class="se-dialog-form-files"><input class="se-input-form _se_image_file" type="file" accept="'+t.imageAccept+'"'+(t.imageMultipleFile?' multiple="multiple"':"")+'/><button type="button" class="se-btn se-dialog-files-edge-button se-file-remove" title="'+i.controller.remove+'" aria-label="'+i.controller.remove+'">'+e.icons.cancel+"</button></div></div>"),t.imageUrlInput&&(l+='<div class="se-dialog-form"><label>
1'+i.dialogBox.imageBox.url+'</label><div class="se-dialog-form-files"><input class="se-input-form se-input-url _se_image_url" type="text" />'+(t.imageGalleryUrl&&e.plugins.imageGallery?'<button type="button" class="se-btn se-dialog-files-edge-button __se__gallery" title="'+i.toolbar.imageGallery+'" aria-label="'+i.toolbar.imageGallery+'">'+e.icons.image_gallery+"</button>":"")+'</div><pre class="se-link-preview"></pre></div>'),l+='</div><div class="se-dialog-form"><label>'+i.dialogBox.imageBox.altText+'</label><input class="se-input-form _se_image_alt" type="text" /></div>',t.imageResizing){const n=t.imageSizeOnlyPercentage,o=n?' style="display: none !important;"':"",s=t.imageHeightShow?"":' style="display: none !important;"';l+='<div class="se-dialog-form">',n||!t.imageHeightShow?l+='<div class="se-dialog-size-text"><label class="size-w">'+i.dialogBox.size+"</label></div>":l+='<div class="se-dialog-size-text"><label class="size-w">'+i.dialogBox.width+'</label><label class="se-dialog-size-x">&nbsp;</label><label class="size-h">'+i.dialogBox.height+"</label></div>",l+='<input class="se-input-control _se_image_size_x" placeholder="auto"'+(n?' type="number" min="1"':'type="text"')+(n?' max="100"':"")+' /><label class="se-dialog-size-x"'+s+">"+(n?"%":"x")+'</label><input type="text" class="se-input-control _se_image_size_y" placeholder="auto"'+o+(n?' max="100"':"")+s+"/><label"+o+s+'><input type="checkbox" class="se-dialog-btn-check _se_image_check_proportion" checked/>&nbsp;'+i.dialogBox.proportion+'</label><button type="button" title="'+i.dialogBox.revertButton+'" aria-label="'+i.dialogBox.revertButton+'" class="se-btn se-dialog-btn-revert" style="float: right;">'+e.icons.revert+"</button></div>"}return l+='<div class="se-dialog-form se-dialog-form-footer"><label><input type="checkbox" class="se-dialog-btn-check _se_image_check_caption" />&nbsp;'+i.dialogBox.caption+'</label></div></div></div><div class="_se_tab_content _se_tab_content_url" style="display: none">'+e.context.anchor.forms.innerHTML+'</div><div class="se-dialog-footer"><div'+(t.imageAlignShow?"":' style="display: none"')+'><label><input type="radio" name="suneditor_image_radio" class="se-dialog-btn-radio" value="none" checked>'+i.dialogBox.basic+'</label><label><input type="radio" name="suneditor_image_radio" class="se-dialog-btn-radio" value="left">'+i.dialogBox.left+'</label><label><input type="radio" name="suneditor_image_radio" class="se-dialog-btn-radio" value="center">'+i.dialogBox.center+'</label><label><input type="radio" name="suneditor_image_radio" class="se-dialog-btn-radio" value="right">'+i.dialogBox.right+'</label></div><button type="submit" class="se-btn-primary" title="'+i.dialogBox.submitButton+'" aria-label="'+i.dialogBox.submitButton+'"><span>'+i.dialogBox.submitButton+"</span></button></div></form>",n.innerHTML=l,n},_fileInputChange:function(){this.imgInputFile.value?(this.imgUrlFile.setAttribute("disabled",!0),this.previewSrc.style.textDecoration="line-through"):(this.imgUrlFile.removeAttribute("disabled"),this.previewSrc.style.textDecoration="")},_removeSelectedFiles:function(e,t){this.value="",e&&(e.removeAttribute("disabled"),t.style.textDecoration="")},_openGallery:function(){this.callPlugin("imageGallery",this.plugins.imageGallery.open.bind(this,this.plugins.image._setUrlInput.bind(this.context.image)),null)},_setUrlInput:function(e){this.altText.value=e.alt,this._v_src._linkValue=this.previewSrc.textContent=this.imgUrlFile.value=e.getAttribute("data-value")||e.src,this.imgUrlFile.focus()},_onLinkPreview:function(e,t,i){const n=i.target.value.trim();e._linkValue=this.textContent=n?t&&-1===n.indexOf("://")&&0!==n.indexOf("#")?t+n:-1===n.indexOf("://")?"/"+n:n:""},fileTags:["img"],select:function(e){this.plugins.image.onModifyMode.call(this,e,this.plugins.resizing.call_controller_resize.call(this,e,"image"))},destroy:function(e){const t=e||this.context.image._element,i=this.util.getParentElement(t,this.util.isMediaComponent)||t,n=1*t.getAttribute("data-index");if("function"===typeof this.functions.onImageDeleteBefore&&!1===this.functions.onImageDeleteBefore(t,i,n,this))return;let l=i.previousElementSibling||i.nextElementSibling;const o=i.parentNode;this.util.removeItem(i),this.plugins.image.init.call(this),this.controllersOff(),o!==this.context.element.wysiwyg&&this.util.removeItemAllParents(o,function(e){return 0===e.childNodes.length},null),this.focusEdge(l),this.plugins.fileManager.deleteInfo.call(this,"image",n,this.functions.onImageUpload),this.history.push(!1)}
1,on:function(e){const t=this.context.image;e?t.imgInputFile&&this.options.imageMultipleFile&&t.imgInputFile.removeAttribute("multiple"):(t.inputX.value=t._origin_w=this.options.imageWidth===t._defaultSizeX?"":this.options.imageWidth,t.inputY.value=t._origin_h=this.options.imageHeight===t._defaultSizeY?"":this.options.imageHeight,t.imgInputFile&&this.options.imageMultipleFile&&t.imgInputFile.setAttribute("multiple","multiple")),this.plugins.anchor.on.call(this,t.anchorCtx,e)},open:function(){this.plugins.dialog.open.call(this,"image","image"===this.currentControllerName)},openTab:function(e){const t=this.context.image.modal,i="init"===e?t.querySelector("._se_tab_link"):e.target;if(!/^BUTTON$/i.test(i.tagName))return!1;const n=i.getAttribute("data-tab-link"),l="_se_tab_content";let o,s,a;for(s=t.getElementsByClassName(l),o=0;o<s.length;o++)s[o].style.display="none";for(a=t.getElementsByClassName("_se_tab_link"),o=0;o<a.length;o++)this.util.removeClass(a[o],"active");return t.querySelector("."+l+"_"+n).style.display="block",this.util.addClass(i,"active"),"image"===n&&this.context.image.focusElement?this.context.image.focusElement.focus():"url"===n&&this.context.anchor.caller.image.urlInput.focus(),!1},submit:function(e){const t=this.context.image,i=this.plugins.image;e.preventDefault(),e.stopPropagation(),t._altText=t.altText.value,t._align=t.modal.querySelector('input[name="suneditor_image_radio"]:checked').value,t._captionChecked=t.captionCheckEl.checked,t._resizing&&(t._proportionChecked=t.proportion.checked);try{this.context.dialog.updateModal&&i.update_image.call(this,!1,!0,!1),t.imgInputFile&&t.imgInputFile.files.length>0?(this.showLoading(),i.submitAction.call(this,this.context.image.imgInputFile.files)):t.imgUrlFile&&t._v_src._linkValue.length>0&&(this.showLoading(),i.onRender_imgUrl.call(this,t._v_src._linkValue))}catch(n){throw this.closeLoading(),Error('[SUNEDITOR.image.submit.fail] cause : "'+n.message+'"')}finally{this.plugins.dialog.close.call(this)}return!1},submitAction:function(e){if(0===e.length)return;let t=0,i=[];for(let s=0,a=e.length;s<a;s++)/image/i.test(e[s].type)&&(i.push(e[s]),t+=e[s].size);const n=this.options.imageUploadSizeLimit;if(n>0){let e=0;const i=this.context.image._infoList;for(let t=0,n=i.length;t<n;t++)e+=1*i[t].size;if(t+e>n){this.closeLoading();const i="[SUNEDITOR.imageUpload.fail] Size of uploadable total images: "+n/1e3+"KB";return void(("function"!==typeof this.functions.onImageUploadError||this.functions.onImageUploadError(i,{limitSize:n,currentSize:e,uploadSize:t},this))&&this.functions.noticeOpen(i))}}const l=this.context.image;l._uploadFileLength=i.length;const o={anchor:this.plugins.anchor.createAnchor.call(this,l.anchorCtx,!0),inputWidth:l.inputX.value,inputHeight:l.inputY.value,align:l._align,isUpdate:this.context.dialog.updateModal,alt:l._altText,element:l._element};if("function"===typeof this.functions.onImageUploadBefore){const e=this.functions.onImageUploadBefore(i,o,this,function(e){e&&this._w.Array.isArray(e.result)?this.plugins.image.register.call(this,o,e):this.plugins.image.upload.call(this,o,e)}.bind(this));if("undefined"===typeof e)return;if(!e)return void this.closeLoading();this._w.Array.isArray(e)&&e.length>0&&(i=e)}this.plugins.image.upload.call(this,o,i)},error:function(e,t){if(this.closeLoading(),"function"!==typeof this.functions.onImageUploadError||this.functions.onImageUploadError(e,t,this))throw this.functions.noticeOpen(e),Error("[SUNEDITOR.plugin.image.error] response: "+e)},upload:function(e,t){if(!t)return void this.closeLoading();if("string"===typeof t)return void this.plugins.image.error.call(this,t,null);const i=this.options.imageUploadUrl,n=this.context.dialog.updateModal?1:t.length;if("string"===typeof i&&i.length>0){const l=new FormData;for(let e=0;e<n;e++)l.append("file-"+e,t[e]);this.plugins.fileManager.upload.call(this,i,this.options.imageUploadHeader,l,this.plugins.image.callBack_imgUpload.bind(this,e),this.functions.onImageUploadError)}else this.plugins.image.setup_reader.call(this,t,e.anchor,e.inputWidth,e.inputHeight,e.align,e.alt,n,e.isUpdate)},callBack_imgUpload:function(e,t){if("function"===typeof this.functions.imageUploadHandler)this.functions.imageUploadHandler(t,e,this);else{const i=JSON.parse(t.responseText);i.errorMessage?this.plugins.image.error.call(this,i.errorMessage,i):this.plugins.image.register.call(this,e,i)}},register:function(e,t){const i=t.result;for(let n,l=0,o=i.length;l<o;l++){if(n={name:i[l].name,size:i[l].size}
1,e.isUpdate){this.plugins.image.update_src.call(this,i[l].url,e.element,n);break}this.plugins.image.create_image.call(this,i[l].url,e.anchor,e.inputWidth,e.inputHeight,e.align,n,e.alt)}this.closeLoading()},setup_reader:function(e,t,i,n,l,o,s,a){try{if(0===s)return this.closeLoading(),void console.warn("[SUNEDITOR.image.base64.fail] cause : No applicable files");this.context.image.base64RenderIndex=s;const r=this._w.FileReader,c=[s];this.context.image.inputX.value=i,this.context.image.inputY.value=n;for(let d,u,h=0;h<s;h++)d=new r,u=e[h],d.onload=function(e,s,a,r,d){c[d]={result:e.result,file:r},0===--this.context.image.base64RenderIndex&&(this.plugins.image.onRender_imgBase64.call(this,s,c,a,t,i,n,l,o),this.closeLoading())}.bind(this,d,a,this.context.image._element,u,h),d.readAsDataURL(u)}catch(r){throw this.closeLoading(),Error('[SUNEDITOR.image.setup_reader.fail] cause : "'+r.message+'"')}},onRender_imgBase64:function(e,t,i,n,l,o,s,a){const r=this.plugins.image.update_src,c=this.plugins.image.create_image;for(let d=0,u=t.length;d<u;d++)e?(this.context.image._element.setAttribute("data-file-name",t[d].file.name),this.context.image._element.setAttribute("data-file-size",t[d].file.size),r.call(this,t[d].result,i,t[d].file)):c.call(this,t[d].result,n,l,o,s,t[d].file,a)},onRender_imgUrl:function(e){if(e||(e=this.context.image._v_src._linkValue),!e)return!1;const t=this.context.image;try{const i={name:e.split("/").pop(),size:0};this.context.dialog.updateModal?this.plugins.image.update_src.call(this,e,t._element,i):this.plugins.image.create_image.call(this,e,this.plugins.anchor.createAnchor.call(this,t.anchorCtx,!0),t.inputX.value,t.inputY.value,t._align,i,t._altText)}catch(i){throw Error('[SUNEDITOR.image.URLRendering.fail] cause : "'+i.message+'"')}finally{this.closeLoading()}},onRender_link:function(e,t){return t?(t.setAttribute("data-image-link","image"),e.setAttribute("data-image-link",t.href),t.appendChild(e),t):e},setInputSize:function(e,t){t&&32===t.keyCode?t.preventDefault():this.plugins.resizing._module_setInputSize.call(this,this.context.image,e)},setRatio:function(){this.plugins.resizing._module_setRatio.call(this,this.context.image)},checkFileInfo:function(){const e=this.plugins.image,t=this.context.image,i=function(i){e.onModifyMode.call(this,i,null),e.openModify.call(this,!0),t.inputX.value=t._origin_w,t.inputY.value=t._origin_h;const n=this.util.getFormatElement(i);n&&(t._align=n.style.textAlign||n.style.float),this.util.isAnchor(i.parentNode)&&!t.anchorCtx.linkValue&&(t.anchorCtx.linkValue=" "),e.update_image.call(this,!0,!1,!0),e.init.call(this)}.bind(this);this.plugins.fileManager.checkInfo.call(this,"image",["img"],this.functions.onImageUpload,i,!0)},resetFileInfo:function(){this.plugins.fileManager.resetInfo.call(this,"image",this.functions.onImageUpload)},create_image:function(e,t,i,n,l,o,s){const a=this.plugins.image,r=this.context.image;this.context.resizing._resize_plugin="image";let c=this.util.createElement("IMG");c.src=e,c.alt=s,c.setAttribute("data-rotate","0"),t=a.onRender_link.call(this,c,t?t.cloneNode(!1):null),r._resizing&&c.setAttribute("data-proportion",r._proportionChecked);const d=this.plugins.component.set_cover.call(this,t),u=this.plugins.component.set_container.call(this,d,"se-image-container");r._captionChecked&&(r._caption=this.plugins.component.create_caption.call(this),d.appendChild(r._caption)),r._element=c,r._cover=d,r._container=u,a.applySize.call(this,i,n),a.setAlign.call(this,l,c,d,u),c.onload=a._image_create_onload.bind(this,c,r.svgDefaultSize,u),this.insertComponent(u,!0,!0,!this.options.mediaAutoSelect)&&this.plugins.fileManager.setInfo.call(this,"image",c,this.functions.onImageUpload,o,!0),this.context.resizing._resize_plugin=""},_image_create_onload:function(e,t,i){if(0===e.offsetWidth&&this.plugins.image.applySize.call(this,t,""),this.options.mediaAutoSelect)this.selectComponent(e,"image");else{const e=this.appendFormatTag(i,null);e&&this.setRange(e,0,e,0)}this.history.push(!1)},update_image:function(e,t,i){const n=this.context.image;let l,o=n._element,s=n._cover,a=n._container,r=!1;null===s&&(r=!0,o=n._element.cloneNode(!0),s=this.plugins.component.set_cover.call(this,o)),null===a?(s=s.cloneNode(!0),o=s.querySelector("img"),r=!0,a=this.plugins.component.set_container.call(this,s,"se-image-container")):r&&(a.innerHTML="",a.appendChild(s),n._cover=s,n._element=o,r=!1);const c=this.util.isNumber(n.inputX.value)?n.inputX.value+n.sizeUnit:n.inputX.value,d=this.util.isNumber(n.inputY.value)?n.inputY.value+n.sizeUnit:n.inputY.value;l=/%$/.test(o.style.width)?c!==a.style.width||d!==a.style.height:c!==o.style.width||d!==o.style.height,o.alt=n._altText;let u=!1;
1n._captionChecked?n._caption||(n._caption=this.plugins.component.create_caption.call(this),s.appendChild(n._caption),u=!0):n._caption&&(this.util.removeItem(n._caption),n._caption=null,u=!0);let h=null;const g=this.plugins.anchor.createAnchor.call(this,n.anchorCtx,!0);if(g)n._linkElement!==g||r&&!a.contains(g)?(n._linkElement=g.cloneNode(!1),s.insertBefore(this.plugins.image.onRender_link.call(this,o,n._linkElement),n._caption),h=n._element):n._linkElement.setAttribute("data-image-link","image");else if(null!==n._linkElement){const e=o;if(e.setAttribute("data-image-link",""),s.contains(n._linkElement)){const t=e.cloneNode(!0);s.removeChild(n._linkElement),s.insertBefore(t,n._caption),n._element=o=t}}let p=null;if(r){const e=n._element.parentNode;if(p=this.util.isRangeFormatElement(e)||this.util.isWysiwygDiv(e)?n._element:e||n._element,this.util.getParentElement(n._element,this.util.isNotCheckingNode))p=h?g:n._element,p.parentNode.replaceChild(a,p);else if(this.util.isListCell(p)){const e=this.util.getParentElement(n._element,function(e){return e.parentNode===p});p.insertBefore(a,e),this.util.removeItem(n._element),this.util.removeEmptyNode(e,null,!0)}else if(this.util.isFormatElement(p)){const e=this.util.getParentElement(n._element,function(e){return e.parentNode===p});p=this.util.splitElement(p,e),p.parentNode.insertBefore(a,p),this.util.removeItem(n._element),this.util.removeEmptyNode(p,null,!0),0===p.children.length&&(p.innerHTML=this.util.htmlRemoveWhiteSpace(p.innerHTML))}else if(this.util.isFormatElement(p.parentNode)){const e=p.parentNode;e.parentNode.insertBefore(a,p.previousSibling?e.nextElementSibling:e),0===n.__updateTags.map(function(e){return p.contains(e)}).length&&this.util.removeItem(p)}else p=this.util.isFigures(p.parentNode)?p.parentNode:p,p.parentNode.replaceChild(a,p);o=a.querySelector("img"),n._element=o,n._cover=s,n._container=a}h&&(r?(this.util.removeItem(h),0===this.util.getListChildren(g,function(e){return/IMG/i.test(e.tagName)}).length&&this.util.removeItem(g)):this.util.removeItem(g)),(u||!n._onlyPercentage&&l)&&!e&&(/\d+/.test(o.style.height)||this.context.resizing._rotateVertical&&n._captionChecked)&&(/%$/.test(n.inputX.value)||/%$/.test(n.inputY.value)?this.plugins.resizing.resetTransform.call(this,o):this.plugins.resizing.setTransformSize.call(this,o,this.util.getNumber(n.inputX.value,0),this.util.getNumber(n.inputY.value,0))),n._resizing&&(o.setAttribute("data-proportion",n._proportionChecked),l&&this.plugins.image.applySize.call(this)),this.plugins.image.setAlign.call(this,null,o,null,null),e&&this.plugins.fileManager.setInfo.call(this,"image",o,this.functions.onImageUpload,null,!0),t&&this.selectComponent(o,"image"),i||this.history.push(!1)},update_src:function(e,t,i){t.src=e,this._w.setTimeout(this.plugins.fileManager.setInfo.bind(this,"image",t,this.functions.onImageUpload,i,!0)),this.selectComponent(t,"image")},onModifyMode:function(e,t){if(!e)return;const i=this.context.image;i._linkElement=i.anchorCtx.linkAnchor=this.util.isAnchor(e.parentNode)?e.parentNode:null,i._element=e,i._cover=this.util.getParentElement(e,"FIGURE"),i._container=this.util.getParentElement(e,this.util.isMediaComponent),i._caption=this.util.getChildElement(i._cover,"FIGCAPTION"),i._align=e.getAttribute("data-align")||e.style.float||"none",e.style.float="",this.plugins.anchor.setCtx(i._linkElement,i.anchorCtx),t&&(i._element_w=t.w,i._element_h=t.h,i._element_t=t.t,i._element_l=t.l);let n,l,o=i._element.getAttribute("data-size")||i._element.getAttribute("data-origin");o?(o=o.split(","),n=o[0],l=o[1]):t&&(n=t.w,l=t.h),i._origin_w=n||e.style.width||e.width||"",i._origin_h=l||e.style.height||e.height||""},openModify:function(e){const t=this.context.image;t.imgUrlFile&&(t._v_src._linkValue=t.previewSrc.textContent=t.imgUrlFile.value=t._element.src),t._altText=t.altText.value=t._element.alt,(t.modal.querySelector('input[name="suneditor_image_radio"][value="'+t._align+'"]')||t.modal.querySelector('input[name="suneditor_image_radio"][value="none"]')).checked=!0,t._align=t.modal.querySelector('input[name="suneditor_image_radio"]:checked').value,t._captionChecked=t.captionCheckEl.checked=!!t._caption,t._resizing&&this.plugins.resizing._module_setModifyInputSize.call(this,t,this.plugins.image),e||this.plugins.dialog.open.call(this,"image",!0)}
1,applySize:function(e,t){const i=this.context.image;return e||(e=i.inputX.value||this.options.imageWidth),t||(t=i.inputY.value||this.options.imageHeight),i._onlyPercentage&&e||/%$/.test(e)?(this.plugins.image.setPercentSize.call(this,e,t),!0):(e&&"auto"!==e||t&&"auto"!==t?this.plugins.image.setSize.call(this,e,t,!1):this.plugins.image.setAutoSize.call(this),!1)},sizeRevert:function(){this.plugins.resizing._module_sizeRevert.call(this,this.context.image)},setSize:function(e,t,i,n){const l=this.context.image,o=/^(rw|lw)$/.test(n)&&/\d+/.test(l._element.style.height);/^(th|bh)$/.test(n)&&/\d+/.test(l._element.style.width)||(l._element.style.width=this.util.isNumber(e)?e+l.sizeUnit:e,this.plugins.image.cancelPercentAttr.call(this)),o||(l._element.style.height=this.util.isNumber(t)?t+l.sizeUnit:/%$/.test(t)?"":t),"center"===l._align&&this.plugins.image.setAlign.call(this,null,null,null,null),i||l._element.removeAttribute("data-percentage"),this.plugins.resizing._module_saveCurrentSize.call(this,l)},setAutoSize:function(){const e=this.context.image;e._caption&&(e._caption.style.marginTop=""),this.plugins.resizing.resetTransform.call(this,e._element),this.plugins.image.cancelPercentAttr.call(this),e._element.style.maxWidth="",e._element.style.width="",e._element.style.height="",e._cover.style.width="",e._cover.style.height="",this.plugins.image.setAlign.call(this,null,null,null,null),e._element.setAttribute("data-percentage","auto,auto"),this.plugins.resizing._module_saveCurrentSize.call(this,e)},setOriginSize:function(){const e=this.context.image;e._element.removeAttribute("data-percentage"),this.plugins.resizing.resetTransform.call(this,e._element),this.plugins.image.cancelPercentAttr.call(this);const t=(e._element.getAttribute("data-origin")||"").split(","),i=t[0],n=t[1];t&&(e._onlyPercentage||/%$/.test(i)&&(/%$/.test(n)||!/\d/.test(n))?this.plugins.image.setPercentSize.call(this,i,n):this.plugins.image.setSize.call(this,i,n),this.plugins.resizing._module_saveCurrentSize.call(this,e))},setPercentSize:function(e,t){const i=this.context.image;t=!t||/%$/.test(t)||this.util.getNumber(t,0)?this.util.isNumber(t)?t+i.sizeUnit:t||"":this.util.isNumber(t)?t+"%":t;const n=/%$/.test(t);i._container.style.width=this.util.isNumber(e)?e+"%":e,i._container.style.height="",i._cover.style.width="100%",i._cover.style.height=n?t:"",i._element.style.width="100%",i._element.style.height=n?"":t,i._element.style.maxWidth="","center"===i._align&&this.plugins.image.setAlign.call(this,null,null,null,null),i._element.setAttribute("data-percentage",e+","+t),this.plugins.resizing.setCaptionPosition.call(this,i._element),this.plugins.resizing._module_saveCurrentSize.call(this,i)},cancelPercentAttr:function(){const e=this.context.image;e._cover.style.width="",e._cover.style.height="",e._container.style.width="",e._container.style.height="",this.util.removeClass(e._container,this.context.image._floatClassRegExp),this.util.addClass(e._container,"__se__float-"+e._align),"center"===e._align&&this.plugins.image.setAlign.call(this,null,null,null,null)},setAlign:function(e,t,i,n){const l=this.context.image;e||(e=l._align),t||(t=l._element),i||(i=l._cover),n||(n=l._container),/%$/.test(t.style.width)&&"center"===e?(n.style.minWidth="100%",i.style.width=n.style.width):(n.style.minWidth="",i.style.width=this.context.resizing._rotateVertical?t.style.height||t.offsetHeight:t.style.width&&"auto"!==t.style.width?t.style.width||"100%":""),this.util.hasClass(n,"__se__float-"+e)||(this.util.removeClass(n,l._floatClassRegExp),this.util.addClass(n,"__se__float-"+e)),t.setAttribute("data-align",e)},init:function(){const e=this.context.image;e.imgInputFile&&(e.imgInputFile.value=""),e.imgUrlFile&&(e._v_src._linkValue=e.previewSrc.textContent=e.imgUrlFile.value=""),e.imgInputFile&&e.imgUrlFile&&(e.imgUrlFile.removeAttribute("disabled"),e.previewSrc.style.textDecoration=""),e.altText.value="",e.modal.querySelector('input[name="suneditor_image_radio"][value="none"]').checked=!0,e.captionCheckEl.checked=!1,e._element=null,this.plugins.image.openTab.call(this,"init"),e._resizing&&(e.inputX.value=this.options.imageWidth===e._defaultSizeX?"":this.options.imageWidth,e.inputY.value=this.options.imageHeight===e._defaultSizeY?"":this.options.imageHeight,e.proportion.checked=!0,e._ratio=!1,e._ratioX=1,e._ratioY=1),this.plugins.anchor.init.call(this,e.anchorCtx)}},B={name:"video",display:"dialog",add:function(e){e.addModule([x()(),L()(),N()(),T()()]);const t=e.options,i=e.context,n=i.video={_infoList:[],_infoIndex:0,_uploadFileLength:0,focusElement:null,sizeUnit:t._videoSizeUnit,_align:"none",_floatClassRegExp:"__se__float\\-[a-z]+",_youtubeQuery:t.youtubeQuery,_vimeoQuery:t.vimeoQuery,_videoRatio:100*t.videoRatio+"%",_defaultRatio:100*t.videoRatio+"%",_linkValue:"",_element:null,_cover:null,_container:null,inputX:null,inputY:null,_element_w:1,_element_h:1,_element_l:0,_element_t:0,_defaultSizeX:"100%",_defaultSizeY:100*t.videoRatio+"%",_origin_w:"100%"===t.videoWidth?"":t.videoWidth,_origin_h:"56.25%"===t.videoHeight?"":t.videoHeight,_proportionChecked:!0,_resizing:t.videoResizing,_resizeDotHide:!t.videoHeightShow,_rotation:t.videoRotation,_alignHide:!t.videoAlignShow,_onlyPercentage:t.videoSizeOnlyPercentage,_ratio:!1,_ratioX:1,_ratioY:1,_captionShow:!1};let l=this.setDialog(e);n.modal=l,n.videoInputFile=l.querySelector("._se_video_file"),n.videoUrlFile=l.querySelector(".se-input-url"),n.focusElement=n.videoUrlFile||n.videoInputFile,n.preview=l.querySelector(".se-link-preview"),l.querySelector("form").addEventListener("submit",this.submit.bind(e)),n.videoInputFile&&l.querySelector(".se-dialog-files-edge-button").addEventListener("click",this._removeSelectedFiles.bind(n.videoInputFile,n.videoUrlFile,n.preview)),n.videoInputFile&&n.videoUrlFile&&n.videoInputFile.addEventListener("change",this._fileInputChange.bind(n)),n.videoUrlFile&&n.videoUrlFile.addEventListener("input",this._onLinkPreview.bind(n.preview,n,t.linkProtocol)),n.proportion={},n.videoRatioOption={},n.inputX={},n.inputY={},t.videoResizing&&(n.proportion=l.querySelector("._se_video_check_proportion"),n.videoRatioOption=l.querySelector(".se-video-ratio"),n.inputX=l.querySelector("._se_video_size_x"),n.inputY=l.querySelector("._se_video_size_y"),n.inputX.value=t.videoWidth,n.inputY.value=t.videoHeight,n.inputX.addEventListener("keyup",this.setInputSize.bind(e,"x")),n.inputY.addEventListener("keyup",this.setInputSize.bind(e,"y")),n.inputX.addEventListener("change",this.setRatio.bind(e)),n.inputY.addEventListener("change",this.setRatio.bind(e)),n.proportion.addEventListener("change",this.setRatio.bind(e)),n.videoRatioOption.addEventListener("change",this.setVideoRatio.bind(e)),l.querySelector(".se-dialog-btn-revert").addEventListener("click",this.sizeRevert.bind(e))),i.dialog.modal.appendChild(l),l=null},setDialog:function(e){const t=e.options,i=e.lang,n=e.util.createElement("DIV");n.className="se-dialog-content",n.style.display="none";let l='<form method="post" enctype="multipart/form-data"><div class="se-dialog-header"><button type="button" data-command="close" class="se-btn se-dialog-close" title="'+i.dialogBox.close+'" aria-label="'+i.dialogBox.close+'">'+e.icons.cancel+'</button><span class="se-modal-title">'+i.dialogBox.videoBox.title+'</span></div><div class="se-dialog-body">';if(t.videoFileInput&&(l+='<div class="se-dialog-form"><label>'+i.dialogBox.videoBox.file+'</label><div class="se-dialog-form-files"><input class="se-input-form _se_video_file" type="file" accept="'+t.videoAccept+'"'+(t.videoMultipleFile?' multiple="multiple"':"")+'/><button type="button" data-command="filesRemove" class="se-btn se-dialog-files-edge-button se-file-remove" title="'+i.controller.remove+'" aria-label="'+i.controller.remove+'">'+e.icons.cancel+"</button></div></div>"),t.videoUrlInput&&(l+='<div class="se-dialog-form"><label>
1'+i.dialogBox.videoBox.url+'</label><input class="se-input-form se-input-url" type="text" /><pre class="se-link-preview"></pre></div>'),t.videoResizing){const n=t.videoRatioList||[{name:"16:9",value:.5625},{name:"4:3",value:.75},{name:"21:9",value:.4285}],o=t.videoRatio,s=t.videoSizeOnlyPercentage,a=s?' style="display: none !important;"':"",r=t.videoHeightShow?"":' style="display: none !important;"',c=t.videoRatioShow?"":' style="display: none !important;"',d=s||t.videoHeightShow||t.videoRatioShow?"":' style="display: none !important;"';l+='<div class="se-dialog-form"><div class="se-dialog-size-text"><label class="size-w">'+i.dialogBox.width+'</label><label class="se-dialog-size-x">&nbsp;</label><label class="size-h"'+r+">"+i.dialogBox.height+'</label><label class="size-h"'+c+">("+i.dialogBox.ratio+')</label></div><input class="se-input-control _se_video_size_x" placeholder="100%"'+(s?' type="number" min="1"':'type="text"')+(s?' max="100"':"")+'/><label class="se-dialog-size-x"'+d+">"+(s?"%":"x")+'</label><input class="se-input-control _se_video_size_y" placeholder="'+100*t.videoRatio+'%"'+(s?' type="number" min="1"':'type="text"')+(s?' max="100"':"")+r+'/><select class="se-input-select se-video-ratio" title="'+i.dialogBox.ratio+'" aria-label="'+i.dialogBox.ratio+'"'+c+">",r||(l+='<option value=""> - </option>');for(let e=0,t=n.length;e<t;e++)l+='<option value="'+n[e].value+'"'+(o.toString()===n[e].value.toString()?" selected":"")+">"+n[e].name+"</option>";l+='</select><button type="button" title="'+i.dialogBox.revertButton+'" aria-label="'+i.dialogBox.revertButton+'" class="se-btn se-dialog-btn-revert" style="float: right;">'+e.icons.revert+'</button></div><div class="se-dialog-form se-dialog-form-footer"'+a+d+'><label><input type="checkbox" class="se-dialog-btn-check _se_video_check_proportion" checked/>&nbsp;'+i.dialogBox.proportion+"</label></div>"}return l+='</div><div class="se-dialog-footer"><div'+(t.videoAlignShow?"":' style="display: none"')+'><label><input type="radio" name="suneditor_video_radio" class="se-dialog-btn-radio" value="none" checked>'+i.dialogBox.basic+'</label><label><input type="radio" name="suneditor_video_radio" class="se-dialog-btn-radio" value="left">'+i.dialogBox.left+'</label><label><input type="radio" name="suneditor_video_radio" class="se-dialog-btn-radio" value="center">'+i.dialogBox.center+'</label><label><input type="radio" name="suneditor_video_radio" class="se-dialog-btn-radio" value="right">'+i.dialogBox.right+'</label></div><button type="submit" class="se-btn-primary" title="'+i.dialogBox.submitButton+'" aria-label="'+i.dialogBox.submitButton+'"><span>'+i.dialogBox.submitButton+"</span></button></div></form>",n.innerHTML=l,n},_fileInputChange:function(){this.videoInputFile.value?(this.videoUrlFile.setAttribute("disabled",!0),this.preview.style.textDecoration="line-through"):(this.videoUrlFile.removeAttribute("disabled"),this.preview.style.textDecoration="")},_removeSelectedFiles:function(e,t){this.value="",e&&(e.removeAttribute("disabled"),t.style.textDecoration="")},_onLinkPreview:function(e,t,i){const n=i.target.value.trim();/^<iframe.*\/iframe>$/.test(n)?(e._linkValue=n,this.textContent='<IFrame :src=".."></IFrame>'):e._linkValue=this.textContent=n?t&&-1===n.indexOf("://")&&0!==n.indexOf("#")?t+n:-1===n.indexOf("://")?"/"+n:n:""},_setTagAttrs:function(e){e.setAttribute("controls",!0);const t=this.options.videoTagAttrs;if(t)for(let i in t)this.util.hasOwn(t,i)&&e.setAttribute(i,t[i])},createVideoTag:function(){const e=this.util.createElement("VIDEO");return this.plugins.video._setTagAttrs.call(this,e),e},_setIframeAttrs:function(e){e.frameBorder="0",e.allowFullscreen=!0;const t=this.options.videoIframeAttrs;if(t)for(let i in t)this.util.hasOwn(t,i)&&e.setAttribute(i,t[i])},createIframeTag:function(){const e=this.util.createElement("IFRAME");return this.plugins.video._setIframeAttrs.call(this,e),e},fileTags:["iframe","video"],select:function(e){this.plugins.video.onModifyMode.call(this,e,this.plugins.resizing.call_controller_resize.call(this,e,"video"))},destroy:function(e){const t=e||this.context.video._element,i=this.context.video._container,n=1*t.getAttribute("data-index");if("function"===typeof this.functions.onVideoDeleteBefore&&!1===this.functions.onVideoDeleteBefore(t,i,n,this))return;let l=i.previousElementSibling||i.nextElementSibling;const o=i.parentNode;this.util.removeItem(i),this.plugins.video.init.call(this),this.controllersOff(),o!==this.context.element.wysiwyg&&this.util.removeItemAllParents(o,function(e){return 0===e.childNodes.length},null),this.focusEdge(l),this.plugins.fileManager.deleteInfo.call(this,"video",n,this.functions.onVideoUpload),this.history.push(!1)},on:function(e){const t=this.context.video;e?t.videoInputFile&&this.options.videoMultipleFile&&t.videoInputFile.removeAttribute("multiple"):(t.inputX.value=t._origin_w=this.options.videoWidth===t._defaultSizeX?"":this.options.videoWidth,t.inputY.value=t._origin_h=this.options.videoHeight===t._defaultSizeY?"":this.options.videoHeight,t.proportion.disabled=!0,t.videoInputFile&&this.options.videoMultipleFile&&t.videoInputFile.setAttribute("multiple","multiple")),t._resizing&&this.plugins.video.setVideoRatioSelect.call(this,t._origin_h||t._defaultRatio)},open:function(){this.plugins.dialog.open.call(this,"video","video"===this.currentControllerName)},setVideoRatio:function(e){const t=this.context.video,i=e.target.options[e.target.selectedIndex].value;t._defaultSizeY=t._videoRatio=i?100*i+"%":t._defaultSizeY,t.inputY.placeholder=i?100*i+"%":"",t.inputY.value=""},setInputSize:function(e,t){if(t&&32===t.keyCode)return void t.preventDefault();const i=this.context.video;this.plugins.resizing._module_setInputSize.call(this,i,e),"y"===e&&this.plugins.video.setVideoRatioSelect.call(this,t.target.value||i._defaultRatio)},setRatio:function(){this.plugins.resizing._module_setRatio.call(this,this.context.video)},submit:function(e){const t=this.context.video,i=this.plugins.video;e.preventDefault(),e.stopPropagation(),t._align=t.modal.querySelector('input[name="suneditor_video_radio"]:checked').value;try{t.videoInputFile&&t.videoInputFile.files.length>0?(this.showLoading(),i.submitAction.call(this,this.context.video.videoInputFile.files)):t.videoUrlFile&&t._linkValue.length>0&&(this.showLoading(),i.setup_url.call(this,t._linkValue))}catch(n){throw this.closeLoading(),Error('[SUNEDITOR.video.submit.fail] cause : "'+n.message+'"')}finally{this.plugins.dialog.close.call(this)}return!1},submitAction:function(e){if(0===e.length)return;let t=0,i=[];for(let s=0,a=e.length;s<a;s++)/video/i.test(e[s].type)&&(i.push(e[s]),t+=e[s].size);const n=this.options.videoUploadSizeLimit;if(n>0){let e=0;const i=this.context.video._infoList;for(let t=0,n=i.length;t<n;t++)e+=1*i[t].size;if(t+e>n){this.closeLoading();const i="[SUNEDITOR.videoUpload.fail] Size of uploadable total videos: "+n/1e3+"KB";return void(("function"!==typeof this.functions.onVideoUploadError||this.functions.onVideoUploadError(i,{limitSize:n,currentSize:e,uploadSize:t},this))&&this.functions.noticeOpen(i))}}const l=this.context.video;l._uploadFileLength=i.length;const o={inputWidth:l.inputX.value,inputHeight:l.inputY.value,align:l._align,isUpdate:this.context.dialog.updateModal,element:l._element};if("function"===typeof this.functions.onVideoUploadBefore){const e=this.functions.onVideoUploadBefore(i,o,this,function(e){e&&this._w.Array.isArray(e.result)?this.plugins.video.register.call(this,o,e):this.plugins.video.upload.call(this,o,e)}.bind(this));if("undefined"===typeof e)return;if(!e)return void this.closeLoading();"object"===typeof e&&e.length>0&&(i=e)}this.plugins.video.upload.call(this,o,i)},error:function(e,t){if(this.closeLoading(),"function"!==typeof this.functions.onVideoUploadError||this.functions.onVideoUploadError(e,t,this))throw this.functions.noticeOpen(e),Error("[SUNEDITOR.plugin.video.error] response: "+e)},upload:function(e,t){if(!t)return void this.closeLoading();if("string"===typeof t)return void this.plugins.video.error.call(this,t,null);const i=this.options.videoUploadUrl,n=this.context.dialog.updateModal?
11:t.length;if(!("string"===typeof i&&i.length>0))throw Error('[SUNEDITOR.videoUpload.fail] cause : There is no "videoUploadUrl" option.');{const l=new FormData;for(let e=0;e<n;e++)l.append("file-"+e,t[e]);this.plugins.fileManager.upload.call(this,i,this.options.videoUploadHeader,l,this.plugins.video.callBack_videoUpload.bind(this,e),this.functions.onVideoUploadError)}},callBack_videoUpload:function(e,t){if("function"===typeof this.functions.videoUploadHandler)this.functions.videoUploadHandler(t,e,this);else{const i=JSON.parse(t.responseText);i.errorMessage?this.plugins.video.error.call(this,i.errorMessage,i):this.plugins.video.register.call(this,e,i)}},register:function(e,t){const i=t.result,n=this.plugins.video.createVideoTag.call(this);for(let l,o=0,s=i.length;o<s;o++)l={name:i[o].name,size:i[o].size},this.plugins.video.create_video.call(this,e.isUpdate?e.element:n.cloneNode(!1),i[o].url,e.inputWidth,e.inputHeight,e.align,l,e.isUpdate);this.closeLoading()},setup_url:function(e){try{const t=this.context.video;if(e||(e=t._linkValue),!e)return!1;if(/^<iframe.*\/iframe>$/.test(e)){if(0===(e=(new this._w.DOMParser).parseFromString(e,"text/html").querySelector("iframe").src).length)return!1}if(/youtu\.?be/.test(e)){if(/^http/.test(e)||(e="https://"+e),e=e.replace("watch?v=",""),/^\/\/.+\/embed\//.test(e)||(e=e.replace(e.match(/\/\/.+\//)[0],"//www.youtube.com/embed/").replace("&","?&")),t._youtubeQuery.length>0)if(/\?/.test(e)){const i=e.split("?");e=i[0]+"?"+t._youtubeQuery+"&"+i[1]}else e+="?"+t._youtubeQuery}else if(/vimeo\.com/.test(e)&&(e.endsWith("/")&&(e=e.slice(0,-1)),e="https://player.vimeo.com/video/"+e.slice(e.lastIndexOf("/")+1),t._vimeoQuery.length>0))if(/\?/.test(e)){const i=e.split("?");e=i[0]+"?"+t._vimeoQuery+"&"+i[1]}else e+="?"+t._vimeoQuery;this.plugins.video.create_video.call(this,this.plugins.video[/embed|iframe|player|\/e\/|\.php|\.html?/.test(e)||/vimeo\.com/.test(e)?"createIframeTag":"createVideoTag"].call(this),e,t.inputX.value,t.inputY.value,t._align,null,this.context.dialog.updateModal)}catch(t){throw Error('[SUNEDITOR.video.upload.fail] cause : "'+t.message+'"')}finally{this.closeLoading()}},create_video:function(e,t,i,n,l,o,s){this.context.resizing._resize_plugin="video";const a=this.context.video;let r=null,c=null,d=!1;if(s){if((e=a._element).src!==t){d=!0;const i=/youtu\.?be/.test(t),n=/vimeo\.com/.test(t);if(!i&&!n||/^iframe$/i.test(e.nodeName))if(i||n||/^video$/i.test(e.nodeName))e.src=t;else{const i=this.plugins.video.createVideoTag.call(this);i.src=t,e.parentNode.replaceChild(i,e),a._element=e=i}else{const i=this.plugins.video.createIframeTag.call(this);i.src=t,e.parentNode.replaceChild(i,e),a._element=e=i}}c=a._container,r=this.util.getParentElement(e,"FIGURE")}else d=!0,e.src=t,a._element=e,r=this.plugins.component.set_cover.call(this,e),c=this.plugins.component.set_container.call(this,r,"se-video-container");a._cover=r,a._container=c;const u=this.plugins.resizing._module_getSizeX.call(this,a)!==(i||a._defaultSizeX)||this.plugins.resizing._module_getSizeY.call(this,a)!==(n||a._videoRatio),h=!s||u;a._resizing&&(this.context.video._proportionChecked=a.proportion.checked,e.setAttribute("data-proportion",a._proportionChecked));let g=!1;h&&(g=this.plugins.video.applySize.call(this)),g&&"center"===l||this.plugins.video.setAlign.call(this,null,e,r,c);let p=!0;if(s)a._resizing&&this.context.resizing._rotateVertical&&h&&this.plugins.resizing.setTransformSize.call(this,e,null,null);else if(p=this.insertComponent(c,!1,!0,!this.options.mediaAutoSelect),!this.options.mediaAutoSelect){const e=this.appendFormatTag(c,null);e&&this.setRange(e,0,e,0)}p&&(d&&this.plugins.fileManager.setInfo.call(this,"video",e,this.functions.onVideoUpload,o,!0),s&&(this.selectComponent(e,"video"),this.history.push(!1))),this.context.resizing._resize_plugin=""},_update_videoCover:function(e){if(!e)return;const t=this.context.video;/^video$/i.test(e.nodeName)?this.plugins.video._setTagAttrs.call(this,e):this.plugins.video._setIframeAttrs.call(this,e);const i=e.parentNode;let n=this.util.isRangeFormatElement(i)||this.util.isWysiwygDiv(i)?e:i||e;const l=e;t._element=e=e.cloneNode(!0);const o=t._cover=this.plugins.component.set_cover.call(this,e),s=t._container=this.plugins.component.set_container.call(this,o,"se-video-container");try{const i=n.querySelector("figcaption");let a=null;i&&(a=this.util.createElement("DIV"),a.innerHTML=i.innerHTML,this.util.removeItem(i));const r=(e.getAttribute("data-size")||e.getAttribute("data-origin")||"").split(",");this.plugins.video.applySize.call(this,r[0]||l.style.width||l.width||"",r[1]||l.style.height||l.height||"");const c=this.util.getFormatElement(l);
1if(c&&(t._align=c.style.textAlign||c.style.float),this.plugins.video.setAlign.call(this,null,e,o,s),this.util.getParentElement(l,this.util.isNotCheckingNode))l.parentNode.replaceChild(s,l);else if(this.util.isListCell(n)){const e=this.util.getParentElement(l,function(e){return e.parentNode===n});n.insertBefore(s,e),this.util.removeItem(l),this.util.removeEmptyNode(e,null,!0)}else if(this.util.isFormatElement(n)){const e=this.util.getParentElement(l,function(e){return e.parentNode===n});n=this.util.splitElement(n,e),n.parentNode.insertBefore(s,n),this.util.removeItem(l),this.util.removeEmptyNode(n,null,!0),0===n.children.length&&(n.innerHTML=this.util.htmlRemoveWhiteSpace(n.innerHTML))}else n.parentNode.replaceChild(s,n);a&&n.parentNode.insertBefore(a,s.nextElementSibling)}catch(a){console.warn("[SUNEDITOR.video.error] Maybe the video tag is nested.",a)}this.plugins.fileManager.setInfo.call(this,"video",e,this.functions.onVideoUpload,null,!0),this.plugins.video.init.call(this)},onModifyMode:function(e,t){const i=this.context.video;i._element=e,i._cover=this.util.getParentElement(e,"FIGURE"),i._container=this.util.getParentElement(e,this.util.isMediaComponent),i._align=e.style.float||e.getAttribute("data-align")||"none",e.style.float="",t&&(i._element_w=t.w,i._element_h=t.h,i._element_t=t.t,i._element_l=t.l);let n,l,o=i._element.getAttribute("data-size")||i._element.getAttribute("data-origin");o?(o=o.split(","),n=o[0],l=o[1]):t&&(n=t.w,l=t.h),i._origin_w=n||e.style.width||e.width||"",i._origin_h=l||e.style.height||e.height||""},openModify:function(e){const t=this.context.video;
1if(t.videoUrlFile&&(t._linkValue=t.preview.textContent=t.videoUrlFile.value=t._element.src||(t._element.querySelector("source")||"").src||""),(t.modal.querySelector('input[name="suneditor_video_radio"][value="'+t._align+'"]')||t.modal.querySelector('input[name="suneditor_video_radio"][value="none"]')).checked=!0,t._resizing){this.plugins.resizing._module_setModifyInputSize.call(this,t,this.plugins.video);const e=t._videoRatio=this.plugins.resizing._module_getSizeY.call(this,t);this.plugins.video.setVideoRatioSelect.call(this,e)||(t.inputY.value=t._onlyPercentage?this.util.getNumber(e,2):e)}e||this.plugins.dialog.open.call(this,"video",!0)},setVideoRatioSelect:function(e){let t=!1;const i=this.context.video,n=i.videoRatioOption.options;/%$/.test(e)||i._onlyPercentage?e=this.util.getNumber(e,2)/100+"":(!this.util.isNumber(e)||1*e>=1)&&(e=""),i.inputY.placeholder="";for(let l=0,o=n.length;l<o;l++)n[l].value===e?(t=n[l].selected=!0,i.inputY.placeholder=e?100*e+"%":""):n[l].selected=!1;return t},checkFileInfo:function(){this.plugins.fileManager.checkInfo.call(this,"video",["iframe","video"],this.functions.onVideoUpload,this.plugins.video._update_videoCover.bind(this),!0)},resetFileInfo:function(){this.plugins.fileManager.resetInfo.call(this,"video",this.functions.onVideoUpload)},applySize:function(e,t){const i=this.context.video;return e||(e=i.inputX.value||this.options.videoWidth),t||(t=i.inputY.value||this.options.videoHeight),i._onlyPercentage||/%$/.test(e)||!e?(this.plugins.video.setPercentSize.call(this,e||"100%",t||(/%$/.test(i._videoRatio)?i._videoRatio:i._defaultRatio)),!0):(e&&"auto"!==e||t&&"auto"!==t?this.plugins.video.setSize.call(this,e,t||i._videoRatio||i._defaultRatio,!1):this.plugins.video.setAutoSize.call(this),!1)},sizeRevert:function(){this.plugins.resizing._module_sizeRevert.call(this,this.context.video)},setSize:function(e,t,i,n){const l=this.context.video,o=/^(rw|lw)$/.test(n),s=/^(th|bh)$/.test(n);s||(e=this.util.getNumber(e,0)),o||(t=this.util.isNumber(t)?t+l.sizeUnit:t||""),e=e?e+l.sizeUnit:"",s||(l._element.style.width=e),o||(l._cover.style.paddingBottom=l._cover.style.height=t),s||/%$/.test(e)||(l._cover.style.width=e,l._container.style.width=""),o||/%$/.test(t)?l._element.style.height="":l._element.style.height=t,i||l._element.removeAttribute("data-percentage"),this.plugins.resizing._module_saveCurrentSize.call(this,l)},setAutoSize:function(){this.plugins.video.setPercentSize.call(this,100,this.context.video._defaultRatio)},setOriginSize:function(e){const t=this.context.video;t._element.removeAttribute("data-percentage"),this.plugins.resizing.resetTransform.call(this,t._element),this.plugins.video.cancelPercentAttr.call(this);const i=((e?t._element.getAttribute("data-size"):"")||t._element.getAttribute("data-origin")||"").split(",");if(i){const e=i[0],n=i[1];t._onlyPercentage||/%$/.test(e)&&(/%$/.test(n)||!/\d/.test(n))?this.plugins.video.setPercentSize.call(this,e,n):this.plugins.video.setSize.call(this,e,n),this.plugins.resizing._module_saveCurrentSize.call(this,t)}},setPercentSize:function(e,t){const i=this.context.video;t=!t||/%$/.test(t)||this.util.getNumber(t,0)?this.util.isNumber(t)?t+i.sizeUnit:t||i._defaultRatio:this.util.isNumber(t)?t+"%":t,i._container.style.width=this.util.isNumber(e)?e+"%":e,i._container.style.height="",i._cover.style.width="100%",i._cover.style.height=t,i._cover.style.paddingBottom=t,i._element.style.width="100%",i._element.style.height="100%",i._element.style.maxWidth="","center"===i._align&&this.plugins.video.setAlign.call(this,null,null,null,null),i._element.setAttribute("data-percentage",e+","+t),this.plugins.resizing._module_saveCurrentSize.call(this,i)},cancelPercentAttr:function(){const e=this.context.video;e._cover.style.width="",e._cover.style.height="",e._cover.style.paddingBottom="",e._container.style.width="",e._container.style.height="",this.util.removeClass(e._container,this.context.video._floatClassRegExp),this.util.addClass(e._container,"__se__float-"+e._align),"center"===e._align&&this.plugins.video.setAlign.call(this,null,null,null,null)},setAlign:function(e,t,i,n){const l=this.context.video;e||(e=l._align),t||(t=l._element),i||(i=l._cover),n||(n=l._container),/%$/.test(t.style.width)&&"center"===e?(n.style.minWidth="100%",i.style.width=n.style.width,i.style.height=i.style.height,i.style.paddingBottom=/%$/.test(i.style.height)?this.util.getNumber(this.util.getNumber(i.style.height,2)/100*this.util.getNumber(i.style.width,2),2)+"%":i.style.height):(n.style.minWidth="",i.style.width=this.context.resizing._rotateVertical?t.style.height||t.offsetHeight:t.style.width||"100%",i.style.paddingBottom=i.style.height),this.util.hasClass(n,"__se__float-"+e)||(this.util.removeClass(n,l._floatClassRegExp),this.util.addClass(n,"__se__float-"+e)),t.setAttribute("data-align",e)},init:function(){const e=this.context.video;e.videoInputFile&&(e.videoInputFile.value=""),e.videoUrlFile&&(e._linkValue=e.preview.textContent=e.videoUrlFile.value=""),e.videoInputFile&&e.videoUrlFile&&(e.videoUrlFile.removeAttribute("disabled"),e.preview.style.textDecoration=""),e._origin_w=this.options.videoWidth,e._origin_h=this.options.videoHeight,e.modal.querySelector('input[name="suneditor_video_radio"][value="none"]').checked=!0,e._resizing&&(e.inputX.value=this.options.videoWidth===e._defaultSizeX?"":this.options.videoWidth,e.inputY.value=this.options.videoHeight===e._defaultSizeY?"":this.options.videoHeight,e.proportion.checked=!0,e.proportion.disabled=!0,this.plugins.video.setVideoRatioSelect.call(this,e._defaultRatio))}},A={name:"audio",display:"dialog",add:function(e){e.addModule([x()(),L()(),T()()]);const t=e.context,i=t.audio={_infoList:[],_infoIndex:0,_uploadFileLength:0,focusElement:null,targetSelect:null,_origin_w:e.options.audioWidth,_origin_h:e.options.audioHeight,_linkValue:"",_element:null,_cover:null,_container:null};let n=this.setDialog(e);i.modal=n,i.audioInputFile=n.querySelector("._se_audio_files"),i.audioUrlFile=n.querySelector(".se-input-url"),i.focusElement=i.audioInputFile||i.audioUrlFile,i.preview=n.querySelector(".se-link-preview");let l=this.setController(e);i.controller=l,n.querySelector("form").addEventListener("submit",this.submit.bind(e)),i.audioInputFile&&n.querySelector(".se-dialog-files-edge-button").addEventListener("click",this._removeSelectedFiles.bind(i.audioInputFile,i.audioUrlFile,i.preview)),i.audioInputFile&&i.audioUrlFile&&i.audioInputFile.addEventListener("change",this._fileInputChange.bind(i)),l.addEventListener("click",this.onClick_controller.bind(e)),i.audioUrlFile&&i.audioUrlFile.addEventListener("input",this._onLinkPreview.bind(i.preview,i,e.options.linkProtocol)),t.dialog.modal.appendChild(n),t.element.relative.appendChild(l),n=null,l=null},setDialog:function(e){const t=e.options,i=e.lang,n=e.util.createElement("DIV");n.className="se-dialog-content",n.style.display="none";let l='<form method="post" enctype="multipart/form-data"><div class="se-dialog-header"><button type="button" data-command="close" class="se-btn se-dialog-close" title="'+i.dialogBox.close+'" aria-label="'+i.dialogBox.close+'">'+e.icons.cancel+'</button><span class="se-modal-title">'+i.dialogBox.audioBox.title+'</span></div><div class="se-dialog-body">';return t.audioFileInput&&(l+='<div class="se-dialog-form"><label>'+i.dialogBox.audioBox.file+'</label><div class="se-dialog-form-files"><input class="se-input-form _se_audio_files" type="file" accept="'+t.audioAccept+'"'+(t.audioMultipleFile?' multiple="multiple"':"")+'/><button type="button" data-command="filesRemove" class="se-btn se-dialog-files-edge-button se-file-remove" title="'+i.controller.remove+'" aria-label="'+i.controller.remove+'">'+e.icons.cancel+"</button></div></div>"),t.audioUrlInput&&(l+='<div class="se-dialog-form"><label>
1'+i.dialogBox.audioBox.url+'</label><input class="se-input-form se-input-url" type="text" /><pre class="se-link-preview"></pre></div>'),l+='</div><div class="se-dialog-footer"><button type="submit" class="se-btn-primary" title="'+i.dialogBox.submitButton+'" aria-label="'+i.dialogBox.submitButton+'"><span>'+i.dialogBox.submitButton+"</span></button></div></form>",n.innerHTML=l,n},setController:function(e){const t=e.lang,i=e.icons,n=e.util.createElement("DIV");return n.className="se-controller se-controller-link",n.innerHTML='<div class="se-arrow se-arrow-up"></div><div class="link-content"><div class="se-btn-group"><button type="button" data-command="update" tabindex="-1" class="se-tooltip">'+i.edit+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.edit+'</span></span></button><button type="button" data-command="delete" tabindex="-1" class="se-tooltip">'+i.delete+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.remove+"</span></span></button></div></div>",n},_fileInputChange:function(){this.audioInputFile.value?(this.audioUrlFile.setAttribute("disabled",!0),this.preview.style.textDecoration="line-through"):(this.audioUrlFile.removeAttribute("disabled"),this.preview.style.textDecoration="")},_removeSelectedFiles:function(e,t){this.value="",e&&(e.removeAttribute("disabled"),t.style.textDecoration="")},_createAudioTag:function(){const e=this.util.createElement("AUDIO");this.plugins.audio._setTagAttrs.call(this,e);const t=this.context.audio._origin_w,i=this.context.audio._origin_h;return e.setAttribute("origin-size",t+","+i),e.style.cssText=(t?"width:"+t+"; ":"")+(i?"height:"+i+";":""),e},_setTagAttrs:function(e){e.setAttribute("controls",!0);const t=this.options.audioTagAttrs;if(t)for(let i in t)this.util.hasOwn(t,i)&&e.setAttribute(i,t[i])},_onLinkPreview:function(e,t,i){const n=i.target.value.trim();e._linkValue=this.textContent=n?t&&-1===n.indexOf("://")&&0!==n.indexOf("#")?t+n:-1===n.indexOf("://")?"/"+n:n:""},fileTags:["audio"],select:function(e){this.plugins.audio.onModifyMode.call(this,e)},destroy:function(e){e=e||this.context.audio._element;const t=this.util.getParentElement(e,this.util.isComponent)||e,i=1*e.getAttribute("data-index");if("function"===typeof this.functions.onAudioDeleteBefore&&!1===this.functions.onAudioDeleteBefore(e,t,i,this))return;const n=t.previousElementSibling||t.nextElementSibling,l=t.parentNode;this.util.removeItem(t),this.plugins.audio.init.call(this),this.controllersOff(),l!==this.context.element.wysiwyg&&this.util.removeItemAllParents(l,function(e){return 0===e.childNodes.length},null),this.focusEdge(n),this.plugins.fileManager.deleteInfo.call(this,"audio",i,this.functions.onAudioUpload),this.history.push(!1)},checkFileInfo:function(){this.plugins.fileManager.checkInfo.call(this,"audio",["audio"],this.functions.onAudioUpload,this.plugins.audio.updateCover.bind(this),!1)},resetFileInfo:function(){this.plugins.fileManager.resetInfo.call(this,"audio",this.functions.onAudioUpload)},on:function(e){const t=this.context.audio;e?t._element?(this.context.dialog.updateModal=!0,t._linkValue=t.preview.textContent=t.audioUrlFile.value=t._element.src,t.audioInputFile&&this.options.audioMultipleFile&&t.audioInputFile.removeAttribute("multiple")):t.audioInputFile&&this.options.audioMultipleFile&&t.audioInputFile.removeAttribute("multiple"):(this.plugins.audio.init.call(this),t.audio
1InputFile&&this.options.audioMultipleFile&&t.audioInputFile.setAttribute("multiple","multiple"))},open:function(){this.plugins.dialog.open.call(this,"audio","audio"===this.currentControllerName)},submit:function(e){const t=this.context.audio;e.preventDefault(),e.stopPropagation();try{t.audioInputFile&&t.audioInputFile.files.length>0?(this.showLoading(),this.plugins.audio.submitAction.call(this,t.audioInputFile.files)):t.audioUrlFile&&t._linkValue.length>0&&(this.showLoading(),this.plugins.audio.setupUrl.call(this,t._linkValue))}catch(i){throw this.closeLoading(),Error('[SUNEDITOR.audio.submit.fail] cause : "'+i.message+'"')}finally{this.plugins.dialog.close.call(this)}return!1},submitAction:function(e){if(0===e.length)return;let t=0,i=[];for(let s=0,a=e.length;s<a;s++)/audio/i.test(e[s].type)&&(i.push(e[s]),t+=e[s].size);const n=this.options.audioUploadSizeLimit;if(n>0){let e=0;const i=this.context.audio._infoList;for(let t=0,n=i.length;t<n;t++)e+=1*i[t].size;if(t+e>n){this.closeLoading();const i="[SUNEDITOR.audioUpload.fail] Size of uploadable total audios: "+n/1e3+"KB";return void(("function"!==typeof this.functions.onAudioUploadError||this.functions.onAudioUploadError(i,{limitSize:n,currentSize:e,uploadSize:t},this))&&this.functions.noticeOpen(i))}}const l=this.context.audio;l._uploadFileLength=i.length;const o={isUpdate:this.context.dialog.updateModal,element:l._element};if("function"===typeof this.functions.onAudioUploadBefore){const e=this.functions.onAudioUploadBefore(i,o,this,function(e){e&&this._w.Array.isArray(e.result)?this.plugins.audio.register.call(this,o,e):this.plugins.audio.upload.call(this,o,e)}.bind(this));if("undefined"===typeof e)return;if(!e)return void this.closeLoading();"object"===typeof e&&e.length>0&&(i=e)}this.plugins.audio.upload.call(this,o,i)},error:function(e,t){if(this.closeLoading(),"function"!==typeof this.functions.onAudioUploadError||this.functions.onAudioUploadError(e,t,this))throw this.functions.noticeOpen(e),Error("[SUNEDITOR.plugin.audio.exception] response: "+e)},upload:function(e,t){if(!t)return void this.closeLoading();if("string"===typeof t)return void this.plugins.audio.error.call(this,t,null);const i=this.options.audioUploadUrl,n=this.context.dialog.updateModal?1:t.length,l=new FormData;for(let o=0;o<n;o++)l.append("file-"+o,t[o]);this.plugins.fileManager.upload.call(this,i,this.options.audioUploadHeader,l,this.plugins.audio.callBack_upload.bind(this,e),this.functions.onAudioUploadError)},callBack_upload:function(e,t){if("function"===typeof this.functions.audioUploadHandler)this.functions.audioUploadHandler(t,e,this);else{const i=JSON.parse(t.responseText);i.errorMessage?this.plugins.audio.error.call(this,i.errorMessage,i):this.plugins.audio.register.call(this,e,i)}},register:function(e,t){const i=t.result;for(let n,l,o=0,s=i.length;o<s;o++)l=e.isUpdate?e.element:this.plugins.audio._createAudioTag.call(this),n={name:i[o].name,size:i[o].size},this.plugins.audio.create_audio.call(this,l,i[o].url,n,e.isUpdate);this.closeLoading()},setupUrl:function(e){try{if(0===e.length)return!1;this.plugins.audio.create_audio.call(this,this.plugins.audio._createAudioTag.call(this),e,null,this.context.dialog.updateModal)}catch(t){throw Error('[SUNEDITOR.audio.audio.fail] cause : "'+t.message+'"')}finally{this.closeLoading()}},create_audio:function(e,t,i,n){const l=this.context.audio;if(n){if(l._element&&(e=l._element),!e||e.src===t)return void this.selectComponent(e,"audio");e.src=t,this.selectComponent(e,"audio")}else{e.src=t;const i=this.plugins.component.set_cover.call(this,e),n=this.plugins.component.set_container.call(this,i,"");if(!this.insertComponent(n,!1,!0,!this.options.mediaAutoSelect))return void this.focus();if(!this.options.mediaAutoSelect){const e=this.appendFormatTag(n,null);e&&this.setRange(e,0,e,0)}}this.plugins.fileManager.setInfo.call(this,"audio",e,this.functions.onAudioUpload,i,!1),n&&this.history.push(!1)},updateCover:function(e){const t=this.context.audio;this.plugins.audio._setTagAttrs.call(this,e);const i=e.parentNode;let n=this.util.isRangeFormatElement(i)||this.util.isWysiwygDiv(i)?e:i||e;const l=e;t._element=e=e.cloneNode(!1);const o=this.plugins.component.set_cover.call(this,e),s=this.plugins.component.set_container.call(this,o,"se-audio-container");try{if(this.util.getParentElement(l,this.util.isNotCheckingNode))l.parentNode.replaceChild(s,l);else if(this.util.isListCell(n)){const e=this.util.getParentElement(l,function(e){return e.parentNode===n});n.insertBefore(s,e),this.util.removeItem(l),this.util.removeEmptyNode(e,null,!0)}else if(this.util.isFormatElement(n)){const e=this.util.getParentElement(l,function(e){return e.parentNode===n});n=this.util.splitElement(n,e),n.parentNode.insertBefore(s,n),this.util.removeItem(l),this.util.removeEmptyNode(n,null,!0),0===n.children.length&&(n.innerHTML=this.util.htmlRemoveWhiteSpace(n.innerHTML))}else n.parentNode.replaceChild(s,n)}catch(a){console.warn("[SUNEDITOR.audio.error] Maybe the audio tag is nested.",a)}this.plugins.fileManager.setInfo.call(this,"audio",e,this.functions.onAudioUpload,null,!1),this.plugins.audio.init.call(this)},onModifyMode:function(e){const t=this.context.audio;this.setControllerPosition(t.controller,e,"bottom",{left:0,top:0}),this.controllersOn(t.controller,e,this.plugins.audio.onControllerOff.bind(this,e),"audio"),this.util.addClass(e,"active"),t._element=e,t._cover=this.util.getParentElement(e,"FIGURE"),t._container=this.util.getParentElement(e,this.util.isComponent)},openModify:function(e){if(this.context.audio.audioUrlFile){const e=this.context.audio;e._linkValue=e.preview.textContent=e.audioUrlFile.value=e._element.src}e||this.plugins.dialog.open.call(this,"audio",!0)},onClick_controller:function(e){e.stopPropagation();const t=e.target.getAttribute("data-command");t&&(e.preventDefault(),/update/.test(t)?this.plugins.audio.openModify.call(this,!1):this.plugins.audio.destroy.call(this,this.context.audio._element),this.controllersOff())},onControllerOff:function(e){this.util.removeClass(e,"active"),this.context.audio.controller.style.display="none"},init:function(){if(this.context.dialog.updateModal)return;const e=this.context.audio;
1e.audioInputFile&&(e.audioInputFile.value=""),e.audioUrlFile&&(e._linkValue=e.preview.textContent=e.audioUrlFile.value=""),e.audioInputFile&&e.audioUrlFile&&(e.audioUrlFile.removeAttribute("disabled"),e.preview.style.textDecoration=""),e._element=null}},R="https://katex.org/docs/supported.html",I={name:"math",display:"dialog",add:function(e){e.addModule([x()()]);const t=e.context;t.math={focusElement:null,previewElement:null,fontSizeElement:null,defaultFontSize:"",_mathExp:null};let i=this.setDialog(e);t.math.modal=i,t.math.focusElement=i.querySelector(".se-math-exp"),t.math.previewElement=i.querySelector(".se-math-preview"),t.math.fontSizeElement=i.querySelector(".se-math-size"),t.math.focusElement.addEventListener("paste",function(t){"function"===typeof e.functions.onPasteMath&&e.functions.onPasteMath(t,e)},!1),t.math.focusElement.addEventListener(e.util.isIE?"textinput":"input",this._renderMathExp.bind(e,t.math),!1),t.math.fontSizeElement.addEventListener("change",function(e){this.fontSize=e.target.value}.bind(t.math.previewElement.style),!1);let n=this.setController_MathButton(e);t.math.mathController=n,t.math._mathExp=null,i.querySelector("form").addEventListener("submit",this.submit.bind(e),!1),n.addEventListener("click",this.onClick_mathController.bind(e)),t.math.previewElement.style.fontSize=t.math.defaultFontSize,t.dialog.modal.appendChild(i),t.element.relative.appendChild(n),i=null,n=null},setDialog:function(e){const t=e.lang,i=e.util.createElement("DIV"),n=e.options.mathFontSize;let l=n[0].value;i.className="se-dialog-content",i.style.display="none";let o='<form><div class="se-dialog-header"><button type="button" data-command="close" class="se-btn se-dialog-close" title="'+t.dialogBox.close+'" aria-label="'+t.dialogBox.close+'">'+e.icons.cancel+'</button><span class="se-modal-title">'+t.dialogBox.mathBox.title+'</span></div><div class="se-dialog-body"><div class="se-dialog-form"><label>'+t.dialogBox.mathBox.inputLabel+' (<a href="'+R+'" target="_blank">KaTeX</a>)</label><textarea class="se-input-form se-math-exp" type="text"></textarea></div><div class="se-dialog-form"><label>'+t.dialogBox.mathBox.fontSizeLabel+'</label><select class="se-input-select se-math-size">';for(let s,a=0,r=n.length;a<r;a++)s=n[a],s.default&&(l=s.value),o+='<option value="'+s.value+'"'+(s.default?" selected":"")+">"+s.text+"</option>";return o+='</select></div><div class="se-dialog-form"><label>'+t.dialogBox.mathBox.previewLabel+'</label><p class="se-math-preview"></p></div></div><div class="se-dialog-footer"><button type="submit" class="se-btn-primary" title="'+t.dialogBox.submitButton+'" aria-label="'+t.dialogBox.submitButton+'"><span>'+t.dialogBox.submitButton+"</span></button></div></form>",e.context.math.defaultFontSize=l,i.innerHTML=o,i},setController_MathButton:function(e){const t=e.lang,i=e.util.createElement("DIV");return i.className="se-controller se-controller-link",i.innerHTML='<div class="se-arrow se-arrow-up"></div><div class="link-content"><div class="se-btn-group"><button type="button" data-command="update" tabindex="-1" class="se-btn se-tooltip">'+e.icons.edit+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.edit+'</span></span></button><button type="button" data-command="delete" tabindex="-1" class="se-btn se-tooltip">'+e.icons.delete+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+t.controller.remove+"</span></span></button></div></div>",i},open:function(){this.plugins.dialog.open.call(this,"math","math"===this.currentControllerName)},managedTags:function(){return{className:"katex",method:function(e){if(!e.getAttribute("data-exp")||!this.options.katex)return;const t=this._d.createRange().createContextualFragment(this.plugins.math._renderer.call(this,this.util.HTMLDecoder(e.getAttribute("data-exp"))));e.innerHTML=t.querySelector(".katex").innerHTML,e.setAttribute("contenteditable",!1)}}},_renderer:function(e){let t="";try{this.util.removeClass(this.context.math.focusElement,"se-error"),t=this.options.katex.src.renderToString(e,{throwOnError:!0,displayMode:!0})}catch(i){this.util.addClass(this.context.math.focusElement,"se-error"),t='<span class="se-math-katex-error">Katex syntax error. (Refer <a href="'+R+'" target="_blank">KaTeX</a>)</span>',console.warn("[SUNEDITOR.math.Katex.error] ",i)}return t},_renderMathExp:function(e,t){e.previewElement.innerHTML=this.plugins.math._renderer.call(this,t.target.value)},submit:function(e){this.showLoading(),e.preventDefault(),e.stopPropagation();const t=function(){if(0===this.context.math.focusElement.value.trim().length)return!1;const e=this.context.math,t=e.focusElement.value,i=e.previewElement.querySelector(".katex");if(!i)return!1;if(i.className="__se__katex "+i.className,i.setAttribute("contenteditable",!1),i.setAttribute("data-exp",this.util.HTMLEncoder(t)),i.setAttribute("data-font-size",e.fontSizeElement.value),i.style.fontSize=e.fontSizeElement.value,this.context.dialog.updateModal){const t=this.util.getParentElement(e._mathExp,".katex");t.parentNode.replaceChild(i,t),this.setRange(i,0,i,1)}else{const e=this.getSelectedElements();if(e.length>1){const t=this.util.createElement(e[0].nodeName);if(t.appendChild(i),!this.insertNode(t,null,!0))return!1}else if(!this.insertNode(i,null,!0))return!1;const t=this.util.createTextNode(this.util.zeroWidthSpace);i.parentNode.insertBefore(t,i.nextSibling),this.setRange(i,0,i,1)}return e.focusElement.value="",e.fontSizeElement.value="1em",e.previewElement.style.fontSize="1em",e.previewElement.innerHTML="",!0}.bind(this);try{t()&&(this.plugins.dialog.close.call(this),this.history.push(!1))}catch(e){this.plugins.dialog.close.call(this)}finally{this.closeLoading()}return!1},active:function(e){if(e){if(e.getAttribute("data-exp"))return this.controllerArray.indexOf(this.context.math.mathController)<0&&(this.setRange(e,0,e,1),this.plugins.math.call_controller.call(this,e)),!0}else this.controllerArray.indexOf(this.context.math.mathController)>-1&&this.controllersOff();return!1},on:function(e){if(e){const e=this.context.math;if(e._mathExp){const t=this.util.HTMLDecoder(e._mathExp.getAttribute("data-exp")),i=e._mathExp.getAttribute("data-font-size")||"1em";this.context.dialog.updateModal=!0,e.focusElement.value=t,e.fontSizeElement.value=i,e.previewElement.innerHTML=this.plugins.math._renderer.call(this,t),e.previewElement.style.fontSize=i}}else this.plugins.math.init.call(this)},call_controller:function(e){this.context.math._mathExp=e;const t=this.context.math.mathController;this.setControllerPosition(t,e,"bottom",{left:0,top:0}),this.controllersOn(t,e,"math")},onClick_mathController:function(e){e.stopPropagation();const t=e.target.getAttribute("data-command")||e.target.parentNode.getAttribute("data-command");t&&(e.preventDefault(),/update/.test(t)?(this.context.math.focusElement.value=this.util.HTMLDecoder(this.context.math._mathExp.getAttribute("data-exp")),this.plugins.dialog.open.call(this,"math",!0)):(this.util.removeItem(this.context.math._mathExp),this.context.math._mathExp=null,this.focus(),this.history.push(!1)),this.controllersOff())},init:function(){const e=this.context.math;e.mathController.style.display="none",e._mathExp=null,e.focusElement.value="",e.previewElement.innerHTML=""}};function M(){return M.c||(M.c=i.n(o()))}const H={name:"imageGallery",add:function(e){e.addModule([M()()]);
1e.context.imageGallery={title:e.lang.toolbar.imageGallery,directData:e.options.imageGalleryData,url:e.options.imageGalleryUrl,header:e.options.imageGalleryHeader,listClass:"se-image-list",itemTemplateHandler:this.drawItems,selectorHandler:this.setImage.bind(e),columnSize:4}},open:function(e){this.plugins.fileBrowser.open.call(this,"imageGallery",e)},drawItems:function(e){const t=e.src.split("/").pop();return'<div class="se-file-item-img"><img src="'+(e.thumbnail||e.src)+'" alt="'+(e.alt||t)+'" data-command="pick" data-value="'+(e.src||e.thumbnail)+'"><div class="se-file-img-name se-file-name-back"></div><div class="se-file-img-name __se__img_name">'+(e.name||t)+"</div></div>"},setImage:function(e,t){this.callPlugin("image",function(){const i={name:t,size:0};this.plugins.image.create_image.call(this,e.getAttribute("data-value"),null,this.context.image._origin_w,this.context.image._origin_h,"none",i,e.alt)}.bind(this),null)}},O={blockquote:r,align:c,font:d,fontSize:u,fontColor:g,hiliteColor:p,horizontalRule:m,list:f,table:b,formatBlock:_,lineHeight:v,template:y,paragraphStyle:w,textStyle:C,link:E,image:z,video:B,audio:A,math:I,imageGallery:H}},19378(e,t,i){i.r(t),i.d(t,{default:()=>v});const n={rtl:{italic:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10.5 15.8" xml:space="preserve"><g><path d="M0.3,0.1c0.3,0,0.5,0,0.7,0c1,0.1,1.7,0.1,2.2,0.1H4L7.2,0l0.2,1.1H7c-0.5,0-1,0.1-1.5,0.3v0.4l0.3,1.9L6,4.4L6.3,6 l0.1,0.4l0.1,0.5c0.1,0.2,0.1,0.4,0.2,0.7s0.1,0.6,0.2,0.9L7,9.1l0.6,2.8l0.3,1.4c0.1,0.4,0.2,0.7,0.4,1c0.4,0.2,0.8,0.3,1.2,0.4 l0.8,0.2l0.2,0.9l-1.1,0c-0.9-0.1-1.5-0.1-1.8-0.1h-2c-0.9,0.1-1.4,0.2-1.5,0.2c-0.1,0-0.2,0-0.3,0H3.4c-0.1,0-0.2,0-0.2,0 l-0.1-0.4c0-0.2-0.1-0.4-0.1-0.6l0.7-0.1c0.4,0,0.8-0.1,1.2-0.2c0-0.1,0-0.2,0-0.3l-0.1-0.5l-0.4-2.4L4,9.6L3.4,6.4 C3.2,5.7,3,4.7,2.7,3.3c0-0.3-0.1-0.5-0.1-0.8C2.5,2.1,2.4,1.9,2.3,1.6C2,1.4,1.6,1.3,1.3,1.2C0.9,1.2,0.5,1.1,0.2,0.9L0,0.4L0,0 L0.3,0.1L0.3,0.1z"/></g></svg>',indent:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.7 12.4" xml:space="preserve"><g><g><path d="M15.5,10.1L15.5,10.1c0.1,0,0.3,0.1,0.3,0.3v1.7c0,0.1,0,0.1-0.1,0.2c-0.1,0.1-0.1,0.1-0.2,0.1l-15.2,0 c-0.1,0-0.1,0-0.2-0.1C0,12.2,0,12.2,0,12.1l0-1.7c0-0.1,0-0.1,0.1-0.2c0.1-0.1,0.1-0.1,0.2-0.1C0.3,10.1,15.5,10.1,15.5,10.1z M9.8,6.7c0.1,0,0.1,0,0.2,0.1C10.1,6.9,10.1,7,10.1,7v1.7c0,0.1,0,0.2-0.1,0.2C10,9,9.9,9,9.8,9L0.3,9C0.2,9,0.1,9,0.1,8.9 C0,8.9,0,8.8,0,8.7V7C0,7,0,6.9,0.1,6.8c0.1-0.1,0.1-0.1,0.2-0.1C0.3,6.7,9.8,6.7,9.8,6.7z M0.3,3.4h9.6h0c0.1,0,0.3,0.1,0.3,0.3 v1.7v0c0,0.1-0.1,0.3-0.3,0.3H0.3c-0.1,0-0.1,0-0.2-0.1C0,5.5,0,5.4,0,5.3V3.6c0-0.1,0-0.1,0.1-0.2C0.1,3.4,0.2,3.4,0.3,3.4 L0.3,3.4z M0.3,0l15.2,0c0.1,0,0.1,0,0.2,0.1c0.1,0.1,0.1,0.1,0.1,0.2V2c0,0.1,0,0.2-0.1,0.2c-0.1,0.1-0.1,0.1-0.2,0.1H0.3 c-0.1,0-0.1,0-0.2-0.1C0,2.1,0,2,0,2l0-1.7c0-0.1,0-0.1,0.1-0.2C0.1,0,0.2,0,0.3,0z"/></g><path d="M13.1,3.5L15.7,6c0.1,0.1,0.1,0.3,0,0.4l-2.5,2.5C13.1,9,13,9,12.9,9c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V3.7 c0-0.1,0-0.2,0.1-0.2c0.1-0.1,0.1-0.1,0.2-0.1C13,3.4,13.1,3.4,13.1,3.5z"/></g></svg>',outdent:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.7 12.4" xml:space="preserve"><g><g><path d="M15.5,10.1L15.5,10.1c0.1,0,0.3,0.1,0.3,0.3v1.7c0,0.1,0,0.1-0.1,0.2c-0.1,0.1-0.1,0.1-0.2,0.1l-15.2,0 c-0.1,0-0.1,0-0.2-0.1C0,12.2,0,12.2,0,12.1l0-1.7c0-0.1,0-0.1,0.1-0.2c0.1-0.1,0.1-0.1,0.2-0.1C0.3,10.1,15.5,10.1,15.5,10.1z M9.8,6.7c0.1,0,0.1,0,0.2,0.1C10.1,6.9,10.1,7,10.1,7v1.7c0,0.1,0,0.2-0.1,0.2C10,9,9.9,9,9.8,9L0.3,9C0.2,9,0.1,9,0.1,8.9 C0,8.9,0,8.8,0,8.7V7C0,7,0,6.9,0.1,6.8c0.1-0.1,0.1-0.1,0.2-0.1C0.3,6.7,9.8,6.7,9.8,6.7z M0.3,3.4h9.6h0c0.1,0,0.3,0.1,0.3,0.3 v1.7v0c0,0.1-0.1,0.3-0.3,0.3H0.3c-0.1,0-0.1,0-0.2-0.1C0,5.5,0,5.4,0,5.3V3.6c0-0.1,0-0.1,0.1-0.2C0.1,3.4,0.2,3.4,0.3,3.4 L0.3,3.4z M0.3,0l15.2,0c0.1,0,0.1,0,0.2,0.1c0.1,0.1,0.1,0.1,0.1,0.2V2c0,0.1,0,0.2-0.1,0.2c-0.1,0.1-0.1,0.1-0.2,0.1H0.3 c-0.1,0-0.1,0-0.2-0.1C0,2.1,0,2,0,2l0-1.7c0-0.1,0-0.1,0.1-0.2C0.1,0,0.2,0,0.3,0z"/></g><path d="M15.5,3.4c0.1,0,0.1,0,0.2,0.1c0.1,0.1,0.1,0.1,0.1,0.2v5.1c0,0.1,0,0.1-0.1,0.2C15.6,9,15.5,9,15.5,9 c-0.1,0-0.1,0-0.2-0.1l-2.5-2.5c-0.1-0.1-0.1-0.3,0-0.4l2.5-2.5C15.3,3.4,15.4,3.4,15.5,3.4z"/></g></svg>',list_bullets:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.7 12.4" xml:space="preserve"><g><path d="M12.4,10.7c0,0.9,0.8,1.7,1.7,1.7c0.9,0,1.7-0.8,1.7-1.7C15.7,9.8,15,9,14.1,9c-0.4,0-0.9,0.2-1.2,0.5 C12.5,9.8,12.4,10.2,12.4,10.7C12.4,10.7,12.4,10.7,12.4,10.7z M12.4,6.2c0,0.9,0.8,1.7,1.7,1.7c0.4,0,0.9-0.2,1.2-0.5 c0.3-0.3,0.4-0.7,0.4-1.1c0-0.9-0.7-1.7-1.6-1.7C13.1,4.6,12.4,5.3,12.4,6.2C12.4,6.2,12.4,6.2,12.4,6.2z M0,9.8v1.7 c0,0.1,0,0.1,0.1,0.2c0.
11,0.1,0.1,0.1,0.2,0.1l10.7,0c0,0,0,0,0,0c0.1,0,0.3-0.1,0.3-0.3V9.8c0-0.1,0-0.1-0.1-0.2 C11.1,9.6,11,9.6,11,9.6l-10.7,0c-0.1,0-0.1,0-0.2,0.1C0,9.7,0,9.8,0,9.8L0,9.8z M12.9,2.9c0.3,0.3,0.7,0.5,1.2,0.5 c0.4,0,0.9-0.2,1.2-0.5c0.7-0.7,0.7-1.7,0-2.4C14.9,0.2,14.5,0,14.1,0c-0.4,0-0.9,0.2-1.2,0.5c-0.3,0.3-0.5,0.7-0.5,1.2 C12.4,2.1,12.5,2.6,12.9,2.9z M0,5.3V7c0,0.1,0,0.1,0.1,0.2c0.1,0.1,0.1,0.1,0.2,0.1H11c0.1,0,0.1,0,0.2-0.1 c0.1-0.1,0.1-0.1,0.1-0.2V5.3c0,0,0,0,0,0c0-0.1-0.1-0.3-0.3-0.3H0.3c-0.1,0-0.1,0-0.2,0.1C0,5.2,0,5.3,0,5.3L0,5.3z M0,0.8v1.7 c0,0.1,0,0.1,0.1,0.2c0.1,0.1,0.1,0.1,0.2,0.1h10.7c0.1,0,0.1,0,0.2-0.1c0,0,0.1-0.1,0.1-0.2V0.8c0-0.1,0-0.1-0.1-0.2 c0-0.1-0.1-0.1-0.2-0.1H0.3c-0.1,0-0.1,0-0.2,0.1C0,0.7,0,0.8,0,0.8L0,0.8z"/></g></svg>',list_number:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.7 15.7" xml:space="preserve"><g><path d="M0,11.5l0,1.7c0,0.1,0,0.1,0.1,0.2c0.1,0.1,0.1,0.1,0.2,0.1H11c0.1,0,0.2,0,0.2-0.1c0.1-0.1,0.1-0.1,0.1-0.2v-1.7 c0-0.1,0-0.1-0.1-0.2c-0.1-0.1-0.1-0.1-0.2-0.1H0.3c-0.1,0-0.2,0-0.2,0.1C0,11.4,0,11.4,0,11.5L0,11.5z M0,8.7c0,0.1,0,0.1,0.1,0.2 C0.1,8.9,0.2,9,0.3,9H11c0.1,0,0.2,0,0.2-0.1c0.1-0.1,0.1-0.1,0.1-0.2V7c0-0.1,0-0.1-0.1-0.2c-0.1-0.1-0.1-0.1-0.2-0.1l-10.7,0 c-0.1,0-0.2,0-0.2,0.1C0,6.8,0,6.9,0,7C0,7,0,8.7,0,8.7z M0,2.5v1.7c0,0.1,0,0.1,0.1,0.2c0,0,0.1,0.1,0.2,0.1l10.7,0 c0.1,0,0.2,0,0.2-0.1c0.1-0.1,0.1-0.1,0.1-0.2V2.4c0-0.1,0-0.1-0.1-0.2c-0.1,0-0.1,0-0.2,0H0.3c-0.1,0-0.1,0-0.2,0 C0,2.3,0,2.4,0,2.5L0,2.5z"/></g><path d="M15.6,14.2c0-0.3-0.1-0.6-0.3-0.8c-0.2-0.2-0.4-0.4-0.7-0.4l0.9-1v-0.8h-2.9v1.3h0.9v-0.5h0.9l0,0c-0.1,0.1-0.2,0.2-0.3,0.3 s-0.2,0.3-0.4,0.5l-0.3,0.3l0.2,0.5c0.6,0,0.9,0.1,0.9,0.5c0,0.1-0.1,0.3-0.2,0.4c-0.1,0.1-0.3,0.1-0.4,0.1c-0.3,0-0.7-0.1-0.9-0.3 l-0.5,0.8c0.4,0.4,0.9,0.6,1.5,0.6c0.4,0,0.9-0.1,1.2-0.4C15.5,15.1,15.6,14.7,15.6,14.2z"/><path d="M15.6,8.7h-0.9v0.5h-1.1c0-0.2,0.2-0.4,0.4-0.5c0.2-0.2,0.4-0.3,0.7-0.4c0.3-0.2,0.5-0.3,0.7-0.6c0.2-0.2,0.3-0.5,0.3-0.8 c0-0.4-0.2-0.8-0.5-1c-0.6-0.4-1.4-0.5-2-0.1c-0.3,0.2-0.5,0.4-0.6,0.7L13.3,7c0.1-0.3,0.4-0.5,0.7-0.5c0.1,0,0.3,0,0.3,0.1 c0.1,0.1,0.1,0.2,0.1,0.3c0,0.2-0.1,0.3-0.2,0.4c-0.2,0.1-0.3,0.3-0.5,0.4c-0.2,0.1-0.4,0.3-0.6,0.4c-0.2,0.2-0.4,0.4-0.5,0.6 c-0.1,0.2-0.2,0.5-0.2,0.8c0,0.2,0,0.3,0,0.5h3.2L15.6,8.7L15.6,8.7z"/><path d="M15.6,3.6h-1V0h-0.9l-1.2,1.1l0.6,0.7c0.2-0.1,0.3-0.3,0.4-0.5l0,0v2.2h-0.9v0.9h3L15.6,3.6L15.6,3.6z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.7 15.7" xml:space="preserve"><g><path d="M7.4,9.9l3.1,3.1c0.3,0.3,0.8,0.5,1.3,0.5c0.5,0,0.9-0.2,1.3-0.5c0,0,0,0,0,0c0.7-0.7,0.7-1.9,0-2.6L9.9,7.3 c0-0.1,0-0.2,0-0.3C9.9,7,10,7,10.1,7l2.2-0.2c0.1,0,0.1,0,0.2,0.1l2.1,2.1c0.4,0.4,0.7,0.8,0.9,1.3c0.2,0.5,0.3,1,0.3,1.5 c0,0.5-0.1,1-0.3,1.5c-0.8,2-3.2,3-5.2,2.2c-0.5-0.2-0.9-0.5-1.3-0.9l-2.1-2.1c-0.1,0-0.1-0.1-0.1-0.2L7,10.1C7,10,7,9.9,7.1,9.9 C7.2,9.8,7.3,9.9,7.4,9.9z M1.2,1.1C1.6,0.7,2,0.4,2.5,0.3c1-0.4,2.1-0.4,3.1,0C6,0.4,6.5,0.7,6.8,1.1L9,3.2C9,3.3,9.1,3.3,9,3.4 L8.8,5.6c0,0.1-0.1,0.2-0.2,0.2c-0.1,0.1-0.2,0.1-0.3,0L5.3,2.7C5,2.3,4.5,2.1,4,2.1c-0.5,0-0.9,0.2-1.3,0.5c0,0,0,0,0,0 C2,3.4,2,4.5,2.7,5.2l3.1,3.2c0.1,0.1,0.1,0.2,0,0.3c0,0.1-0.1,0.1-0.2,0.1L3.5,9C3.4,9,3.4,9,3.3,8.9L1.2,6.8c0,0,0,0,0,0 C-0.4,5.2-0.4,2.7,1.2,1.1L1.2,1.1z M14.3,6h-2.6c0,0,0,0,0,0c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0-0.2,0.1-0.3l2.5-0.7 c0.1,0,0.1,0,0.2,0c0.1,0,0.1,0.1,0.1,0.2l0.1,0.8c0,0.1,0,0.1-0.1,0.2C14.5,6,14.4,6,14.3,6L14.3,6z M10.2,4.1 c0,0.1-0.1,0.2-0.2,0.2l0,0c0,0,0,0,0,0C9.8,4.2,9.7,4.1,9.8,4L9.7,1.4c0-0.1,0-0.1,0.1-0.2c0.1,0,0.1,0,0.2,0h0.8 c0.1,0,0.1,0,0.2,0.1c0,0.1,0,0.1,0,0.2L10.2,4.1L10.2,4.1z M1.5,9.7h1.3h1.3c0.1,0,0.2,0.1,0.2,0.2c0,0.1,0,0.2-0.1,0.3l-2.5,0.6 H1.6c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.1-0.2L1.2,9.9c0-0.1,0-0.1,0.1-0.2c0-0.1,0.1-0.1,0.2-0.1L1.5,9.7z M5.6,11.6 C5.6,11.6,5.6,11.6,5.6,11.6c0-0.1,0.1-0.2,0.3-0.1c0,0,0,0,0,0c0.1,0,0.2,0.1,0.2,0.2v2.6c0,0.1,0,0.1-0.1,0.2 c0,0-0.1,0.1-0.2,0.1L5,14.5c-0.1,0-0.1,0-0.2-0.1c0-0.1,0-0.1,0-0.2L5.6,11.6L5.6,11.6z"/></g></svg>',unlink:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.7 15.7" xml:space="preserve"><g><path d="M14.6,14.6c1.6-1.6,1.6-4.1,0-5.7l0,0l-3.1-3.1l-1.2,1.6l2.9,2.9c0.4,0.4,0.6,0.9,0.6,1.5c0,1.1-0.9,2.1-2.1,2.1l0,0 c-0.6,0-1.1-0.2-1.5-0.6l-0.4-0.4l-1.7,1l0.8,0.8C10.4,16.2,13,16.2,14.6,14.6L14.6,14.6L14.6,14.6z M3.6,6C3,5.9,2.6,5.5,2.3,5 S1.9,4,2.1,3.4C2.3,2.9,2.6,2.5,3,2.2C3.5,2,4.1,1.9,4.6,2l3.3,1.4l0.5-2L5.1,0.1C4-0.1,2.9,0,2,0.5C1.1,1.1,0.4,1.9,0.2,3 
1C-0.1,4,0,5.1,0.6,6C1.1,6.9,1.9,7.6,3,7.8l5.4,2l0.5-2L6.2,6.9L3.6,6z"/></g></svg>'},redo:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.59 14.18"><g><path d="M11.58,18.48a6.84,6.84,0,1,1,6.85-6.85s0,.26,0,.67a8,8,0,0,1-.22,1.44l.91-.55a.51.51,0,0,1,.36,0,.45.45,0,0,1,.29.22.47.47,0,0,1,.06.36.45.45,0,0,1-.22.29L17.42,15.3l-.12,0h-.25l-.12-.06-.09-.09-.06-.07,0-.06-.87-2.12a.43.43,0,0,1,0-.37.49.49,0,0,1,.27-.26.41.41,0,0,1,.36,0,.53.53,0,0,1,.27.26l.44,1.09a6.51,6.51,0,0,0,.24-1.36,4.58,4.58,0,0,0,0-.64,5.83,5.83,0,0,0-1.73-4.17,5.88,5.88,0,0,0-8.34,0,5.9,5.9,0,0,0,4.17,10.06.51.51,0,0,1,.33.15.48.48,0,0,1,0,.68.53.53,0,0,1-.33.12Z" transform="translate(-4.48 -4.54)"/></g></svg>',undo:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.59 14.18"><g><path d="M5,14a.43.43,0,0,1-.22-.29.46.46,0,0,1,.06-.36.43.43,0,0,1,.29-.22.56.56,0,0,1,.36,0l.91.55a8.27,8.27,0,0,1-.22-1.45,5.07,5.07,0,0,1,0-.67A6.85,6.85,0,1,1,13,18.47a.44.44,0,0,1-.33-.13.48.48,0,0,1,0-.68.51.51,0,0,1,.33-.15A5.89,5.89,0,0,0,17.15,7.45a5.88,5.88,0,0,0-8.33,0,5.84,5.84,0,0,0-1.73,4.17s0,.25,0,.65a6.49,6.49,0,0,0,.24,1.37l.44-1.09a.57.57,0,0,1,.27-.26.41.41,0,0,1,.36,0,.53.53,0,0,1,.27.26.43.43,0,0,1,0,.37L7.82,15l0,.09-.09.09-.1.07-.06,0H7.28l-.13,0-1.09-.63c-.65-.36-1-.57-1.1-.63Z" transform="translate(-4.49 -4.53)"/></g></svg>',bold:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.76 15.75"><g><path d="M6.4,3.76V19.5h6.76a5.55,5.55,0,0,0,2-.32,4.93,4.93,0,0,0,1.52-1,4.27,4.27,0,0,0,1.48-3.34,3.87,3.87,0,0,0-.69-2.37,5.74,5.74,0,0,0-.71-.83,3.44,3.44,0,0,0-1.1-.65,3.6,3.6,0,0,0,1.58-1.36,3.66,3.66,0,0,0,.53-1.93,3.7,3.7,0,0,0-1.21-2.87,4.65,4.65,0,0,0-3.25-1.1H6.4Zm2.46,6.65V5.57h3.52a4.91,4.91,0,0,1,1.36.15,2.3,2.3,0,0,1,.85.45,2.06,2.06,0,0,1,.74,1.71,2.3,2.3,0,0,1-.78,1.92,2.54,2.54,0,0,1-.86.46,4.7,4.7,0,0,1-1.32.15H8.86Zm0,7.27V12.15H12.7a4.56,4.56,0,0,1,1.38.17,3.43,3.43,0,0,1,.95.49,2.29,2.29,0,0,1,.92,2,2.73,2.73,0,0,1-.83,2.1,2.66,2.66,0,0,1-.83.58,3.25,3.25,0,0,1-1.26.2H8.86Z" transform="translate(-6.4 -3.75)"/></g></svg>',underline:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9.78 15.74"><g><path d="M14.64,3.76h2.52v7.72a4.51,4.51,0,0,1-.59,2.31,3.76,3.76,0,0,1-1.71,1.53,6.12,6.12,0,0,1-2.64.53,5,5,0,0,1-3.57-1.18,4.17,4.17,0,0,1-1.27-3.24V3.76H9.9v7.3a3,3,0,0,0,.55,2,2.3,2.3,0,0,0,1.83.65,2.26,2.26,0,0,0,1.8-.65,3.09,3.09,0,0,0,.55-2V3.76Zm2.52,13.31V19.5H7.39V17.08h9.77Z" transform="translate(-7.38 -3.76)"/></g></svg>',italic:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10.49 15.76"><g><path d="M17.16,3.79l.37,0-.06.38-.14.52A10,10,0,0,1,16.21,5a9.37,9.37,0,0,0-1,.32,6.68,6.68,0,0,0-.25.89c-.06.31-.11.59-.14.85-.3,1.36-.52,2.41-.68,3.14l-.61,3.18L13.1,15l-.43,2.4-.12.46a.62.62,0,0,0,0,.28c.44.1.85.17,1.23.22l.68.11a4.51,4.51,0,0,1-.08.6l-.09.42a.92.92,0,0,0-.23,0l-.43,0a1.37,1.37,0,0,1-.29,0c-.13,0-.63-.08-1.49-.16l-2,0c-.28,0-.87,0-1.78.12L7,19.5l.17-.88.8-.2A6.61,6.61,0,0,0,9.19,18,2.62,2.62,0,0,0,9.61,17l.28-1.41.58-2.75.12-.66c.05-.3.11-.58.17-.86s.12-.51.17-.69l.12-.48.12-.43.31-1.6.15-.65.31-1.91V5.14a3.86,3.86,0,0,0-1.48-.29l-.38,0,.2-1.06,3.24.14.75,0c.45,0,1.18,0,2.18-.09.23,0,.46,0,.71,0Z" transform="translate(-7.04 -3.76)"/></g></svg>',strike:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 14.9"><g><path d="M12.94,13a4.27,4.27,0,0,1,1.32.58,1.46,1.46,0,0,1,.55,1.2,1.87,1.87,0,0,1-.88,1.64,4.17,4.17,0,0,1-2.35.59,4.44,4.44,0,0,1-2.74-.71,2.72,2.72,0,0,1-1-2.17H5.57a4.56,4.56,0,0,0,1.55,3.7,7,7,0,0,0,4.47,1.23,6,6,0,0,0,4.07-1.3,4.24,4.24,0,0,0,1.52-3.37,4,4,0,0,0-.26-1.4h-4ZM6.37,10.24A3.27,3.27,0,0,1,6,8.68a4,4,0,0,1,1.48-3.3,5.92,5.92,0,0,1,3.88-1.21,5.58,5.58,0,0,1,3.91,1.24,4.36,4.36,0,0,1,1.45,3.17H14.44a2.12,2.12,0,0,0-.91-1.81,4.45,4.45,0,0,0-2.44-.55,3.69,3.69,0,0,0-2,.51A1.64,1.64,0,0,0,8.3,8.22a1.3,1.3,0,0,0,.48,1.11,7,7,0,0,0,2.1.78l.28.06.28.08H6.37Zm13.09.68a.73.73,0,0,1,.49.21.66.66,0,0,1,.2.48.64.64,0,0,1-.2.48.71.71,0,0,1-.49.19H5.1a.67.67,0,0,1-.49-.19.66.66,0,0,1-.2-.48.64.64,0,0,1,.2-.48.73.73,0,0,1,.49-.21H19.46Z" transform="translate(-4.41 -4.17)"/></g></svg>',subscript:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.75 14.61"><g><path d="M15.38,4.33H12.74L11.19,7c-.28.46-.51.87-.69,1.21L10.07,9h0l-.44-.8c-.22-.4-.45-.81-.71-1.23L7.34,4.33H4.68L8.26,10,4.4,16.08H7.1l1.69-2.83c.38-.63.72-1.22,1-1.78l.25-.46h0l.49.92c.24.45.48.89.74,1.32L13,16.08h2.61L11.84,10l1.77-2.84,1.77-2.85Zm4.77,13.75H17v-.15c0-.4.05-.64.16-.72a4.42,4.42,0,0,1,1.16-.31,3.3,3.3,0,0,0,1.54-.56A1.84,1.84,0,0,0,20.15,15a1.78,1.78,0,0,0-.44-1.41A2.8,2.8,0,0,0,18,13.25a2.71,2.71,0,0,0-1.69.37,1.83,1.83,0,0,0-.44,1.43v.23H17v
1-.23q0-.63.18-.78a1.62,1.62,0,0,1,.88-.15,1.59,1.59,0,0,1,.88.15q.18.15.18.75t-.18.75a3.58,3.58,0,0,1-1.18.33,3.33,3.33,0,0,0-1.52.51,1.57,1.57,0,0,0-.32,1.18v1.15h4.27v-.86Z" transform="translate(-4.4 -4.33)"/></g></svg>',superscript:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.75 15.42"><g><path d="M12,13.14l3.61-5.81H12.94L11.33,10c-.28.46-.51.88-.69,1.25l-.45.83h0l-.45-.85c-.22-.41-.45-.82-.71-1.24L7.4,7.33H4.68l3.66,5.81L4.4,19.33H7.14l1.74-2.87q.58-1,1-1.83l.25-.48h0l.51.94.75,1.37,1.72,2.87h2.67l-1.92-3.09c-1.12-1.8-1.76-2.83-1.92-3.1Zm4.84-4.41h0l0,.15h3.27v.86H15.77V8.58a1.66,1.66,0,0,1,.33-1.22,3.51,3.51,0,0,1,1.56-.51,3.68,3.68,0,0,0,1.21-.34c.13-.1.19-.36.19-.77S19,5.07,18.87,5A1.63,1.63,0,0,0,18,4.8a1.58,1.58,0,0,0-.91.17c-.13.11-.19.38-.19.8V6H15.78V5.76a1.87,1.87,0,0,1,.45-1.47A2.84,2.84,0,0,1,18,3.91a2.8,2.8,0,0,1,1.72.38,1.84,1.84,0,0,1,.45,1.44,1.91,1.91,0,0,1-.34,1.35,3.24,3.24,0,0,1-1.58.57A3.69,3.69,0,0,0,17,8c-.12.1-.17.35-.17.76Z" transform="translate(-4.4 -3.91)"/></g></svg>',erase:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 13.76"><g><path d="M13.69,17.2h6.46v1.31H8.56L4.41,14.37,14,4.75l6.06,6.06L16.89,14l-3.2,3.19Zm-4.61,0h2.77L14.09,15,9.88,10.75,6.25,14.38l1.41,1.41c.84.82,1.31,1.29,1.42,1.41Z" transform="translate(-4.41 -4.75)"/></g></svg>',indent:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 12.36"><g><path d="M4.68,14.45a.27.27,0,0,1-.19-.08.3.3,0,0,1-.08-.21V9.1a.27.27,0,0,1,.08-.19.28.28,0,0,1,.2-.08.25.25,0,0,1,.19.07l2.54,2.54a.29.29,0,0,1,0,.4L4.88,14.36a.24.24,0,0,1-.2.09Zm15.19,1.12a.27.27,0,0,1,.19.08.25.25,0,0,1,.08.19v1.69a.27.27,0,0,1-.08.19.25.25,0,0,1-.19.08H4.68a.27.27,0,0,1-.19-.08.25.25,0,0,1-.08-.19V15.84a.27.27,0,0,1,.27-.27H19.87Zm0-3.38a.27.27,0,0,1,.19.08.28.28,0,0,1,.08.21v1.68a.32.32,0,0,1-.08.21.25.25,0,0,1-.19.08H10.31a.27.27,0,0,1-.19-.08.3.3,0,0,1-.08-.21V12.48a.32.32,0,0,1,.08-.21.24.24,0,0,1,.19-.08h9.56Zm0-3.37a.27.27,0,0,1,.19.08.25.25,0,0,1,.08.19v1.69a.27.27,0,0,1-.08.19.25.25,0,0,1-.19.08H10.31a.27.27,0,0,1-.27-.27V9.1a.27.27,0,0,1,.27-.27h9.56Zm.2-3.29a.28.28,0,0,1,.08.2V7.41a.32.32,0,0,1-.08.21.25.25,0,0,1-.19.08H4.68a.27.27,0,0,1-.19-.08.3.3,0,0,1-.08-.21V5.73a.32.32,0,0,1,.08-.21.25.25,0,0,1,.19-.08H19.87a.28.28,0,0,1,.2.09Z" transform="translate(-4.41 -5.44)"/></g></svg>',outdent:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 12.36"><g><path d="M19.87,15.57a.27.27,0,0,1,.19.08.25.25,0,0,1,.08.19v1.69a.27.27,0,0,1-.08.19.25.25,0,0,1-.19.08H4.68a.27.27,0,0,1-.19-.08.25.25,0,0,1-.08-.19V15.84a.27.27,0,0,1,.27-.27H19.87ZM7.5,14.45a.25.25,0,0,1-.2-.09L4.76,11.84a.29.29,0,0,1,0-.4L7.3,8.9a.29.29,0,0,1,.4,0,.31.31,0,0,1,.07.2v5.06a.32.32,0,0,1-.08.21.26.26,0,0,1-.19.08ZM19.87,8.82a.27.27,0,0,1,.19.08.25.25,0,0,1,.08.19v1.69a.27.27,0,0,1-.08.19.25.25,0,0,1-.19.08H10.31a.27.27,0,0,1-.27-.27V9.1a.27.27,0,0,1,.27-.27h9.56Zm0,3.37a.27.27,0,0,1,.19.08.28.28,0,0,1,.08.21v1.68a.32.32,0,0,1-.08.21.25.25,0,0,1-.19.08H10.31a.27.27,0,0,1-.19-.08.3.3,0,0,1-.08-.21V12.48a.32.32,0,0,1,.08-.21.24.24,0,0,1,.19-.08h9.56Zm.2-6.66a.28.28,0,0,1,.08.2V7.41a.32.32,0,0,1-.08.21.25.25,0,0,1-.19.08H4.68a.27.27,0,0,1-.19-.08.3.3,0,0,1-.08-.21V5.73a.32.32,0,0,1,.08-.21.25.25,0,0,1,.19-.08H19.87a.28.28,0,0,1,.2.09Z" transform="translate(-4.41 -5.44)"/></g></svg>',expansion:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 15.74"><g><path d="M11.8,13.06l-5.1,5.1H9.51V19.5H4.41V14.4H5.75v2.81L8.3,14.66q2.25-2.23,2.55-2.55Zm8.35-9.3v5.1H18.81V6.05l-5.1,5.1-1-1,5.1-5.1H15.05V3.76Z" transform="translate(-4.41 -3.76)"/></g></svg>',reduction:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 15.74"><g><path d="M14.91,10h2.87v1.38H12.55V6.12h1.38V9l5.24-5.24.48.49.49.48ZM6.77,11.92H12v5.23H10.62V14.26L5.37,19.5l-1-1L9.63,13.3H6.77Z" transform="translate(-4.4 -3.76)"/></g></svg>',code_view:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.73 11.8"><g><path d="M8.09,7.94a.76.76,0,0,1,.53.22.72.72,0,0,1,.21.52.76.76,0,0,1-.22.54L6.18,11.63l2.43,2.44a.69.69,0,0,1,.2.51.66.66,0,0,1-.21.51.75.75,0,0,1-.51.22.63.63,0,0,1-.51-.21h0L4.63,12.15a.7.7,0,0,1-.22-.53.67.67,0,0,1,.25-.55L7.57,8.16a.82.82,0,0,1,.52-.22Zm12.05,3.69a.7.7,0,0,1-.23.52L17,15.1h0a.66.66,0,0,1-.51.21.73.73,0,0,1-.51-.22.75.75,0,0,1-.22-.51.63.63,0,0,1,.21-.51l2.43-2.44L15.92,9.22a.73.73,0,0,1-.22-.53A.74.74,0,0,1,17,8.18h0l2.91,2.91a.67.67,0,0,1,.27.54Zm-5.9-5.9a.73.73,0,0,1,.61.32.71.71,0,0,1,.07.68L11,17a1,1,0,0,1-.22.32.6.6,0,0,1-.35.16.75.75,0,0,1-.69-.26.69.69,0,0,1-.12-.72L13.56,6.23a.75.75,0,0,1,.26-.35.74.74,0,0,1,.42-.15Z" transform="translate(-4.41 -5.73)"/></g></svg>',preview:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.65 15.66"><g><path d="M16.19,14.43l2.49,2.49a.73.73,0,0,1,.21.52.67.67,0,0,1-.22.51.7.7,0,0,1-.52.22.69.69,0,0,1-.51-.21l-2.49-2.48a5.17,5.17,0,0,1-1.34.69,4.64,4.64,0,0,1-1.48.24,4.78,4.78,0,1,1,0-9.56,4.79,4.79,0,0,1,1.84.36,4.9,4.9,0,0,1,1.56,1,4.77,4.77,0,0,1,.46,6.18ZM10,14a3.3,3.3,0,0,0,2.34.93A3.37,3.37,0,0,0,14.7,14a3.3,3.3,0,0,0-1.08-5.41,3.47,3.47,0,0,0-2.56,0A3,3,0,0,0,10,9.28,3.31,3.31,0,0,0,10,14ZM16,4a3.86,3.86,0,0,1,2.77,1.14A3.9,3.9,0,0,1,20,7.85v4a.77.77,0,0,1-.22.53.7.7,0,0,1-.52.21.72.72,0,0,1-.74-.74v-4a2.46,2.46,0,0,0-.72-1.73A2.37,2.37,0,0,0,16,5.45H8.53A2.42,2.42,0,0,0,6.08,7.89v7.52a2.41,2.41,0,0,0,.71,1.73,2.46,2.46,0,0,0,1.74.72h4.08a.73.73,0,0,1,0,1.46H8.53a3.85,3.85,0,0,1-2.78-1.14A3.93,3.93,0,0,1,4.6,15.4V7.87A3.94,3.94,0,0,1,5.76,5.
109,3.88,3.88,0,0,1,8.54,4H16Z" transform="translate(-4.45 -3.8)"/></g></svg>',print:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16.05 16.04"><g><path d="M19.76,15.84a1.29,1.29,0,0,0,.39-.92V8.35A2.05,2.05,0,0,0,19.57,7a1.93,1.93,0,0,0-1.38-.57H6.37a1.95,1.95,0,0,0-2,2v6.56a1.23,1.23,0,0,0,.38.92,1.35,1.35,0,0,0,.93.38h2V14.9l-2,0V8.35a.67.67,0,0,1,.18-.47.62.62,0,0,1,.48-.19H18.18a.6.6,0,0,1,.46.19.66.66,0,0,1,.18.47V14.9h-2v1.32h2A1.35,1.35,0,0,0,19.76,15.84ZM17.52,7.69V5.06a1.31,1.31,0,0,0-.38-.92,1.34,1.34,0,0,0-.94-.38H8.34A1.3,1.3,0,0,0,7,5.06V7.69H8.34V5.06h7.87V7.69h1.31ZM8.34,12.93h7.87l0,5.26H8.34V12.93Zm7.87,5.26v0Zm.65,1.31a.6.6,0,0,0,.46-.19.72.72,0,0,0,.2-.47V12.29a.74.74,0,0,0-.2-.47.6.6,0,0,0-.46-.19H7.68a.6.6,0,0,0-.46.19.72.72,0,0,0-.2.47v6.55a.74.74,0,0,0,.2.47.6.6,0,0,0,.46.19h9.18ZM16.67,9.28a.7.7,0,0,0-.94,0,.63.63,0,0,0-.18.46.67.67,0,0,0,.18.47.68.68,0,0,0,.94,0,.66.66,0,0,0,.18-.47A.58.58,0,0,0,16.67,9.28Z" transform="translate(-4.25 -3.61)"/></g></svg>',template:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.27 15.64"><g><path d="M18.18,19.16a1,1,0,0,0,1-1V5.73a1,1,0,0,0-1-1h-2v1h2V18.19H6.37V5.73h2v-1h-2A.94.94,0,0,0,5.68,5a1,1,0,0,0-.29.7V18.18a.94.94,0,0,0,.29.69,1,1,0,0,0,.69.29H18.18ZM9.82,10.31h4.92a.49.49,0,0,0,.35-.15.47.47,0,0,0,.15-.35.49.49,0,0,0-.15-.35.47.47,0,0,0-.35-.15H9.82a.49.49,0,0,0-.35.15.47.47,0,0,0-.15.35.49.49,0,0,0,.15.35.47.47,0,0,0,.35.15Zm5.9,4.92H8.83a.49.49,0,0,0-.35.15.47.47,0,0,0-.15.35.49.49,0,0,0,.15.35.47.47,0,0,0,.35.15h6.89a.49.49,0,0,0,.35-.15.47.47,0,0,0,.15-.35.51.51,0,0,0-.5-.5ZM7.36,12.77a.49.49,0,0,0,.15.35.47.47,0,0,0,.35.15h8.85a.49.49,0,0,0,.35-.15.47.47,0,0,0,.15-.35.49.49,0,0,0-.15-.35.47.47,0,0,0-.35-.15H7.85a.49.49,0,0,0-.35.15.52.52,0,0,0-.14.35Z" transform="translate(-5.14 -3.77)"/><path d="M14.24,6.71a1,1,0,0,0,1-1,1,1,0,0,0-1-1,1,1,0,0,0-1-1h-2a.94.94,0,0,0-.69.28,1,1,0,0,0-.29.7A.94.94,0,0,0,9.62,5a.91.91,0,0,0-.29.69,1,1,0,0,0,.29.7,1,1,0,0,0,.69.29h3.93Z" transform="translate(-5.14 -3.77)"/></g></svg>',line_height:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.76 13.56"><g><path d="M4.4,4.88V8.26a2,2,0,0,0,.5.39s.1,0,.18-.12a.62.62,0,0,0,.17-.28c.06-.19.13-.44.21-.74s.14-.52.19-.66a.58.58,0,0,1,.21-.3,2.41,2.41,0,0,1,.63-.21,3.83,3.83,0,0,1,.88-.12,9.15,9.15,0,0,1,1.31.06.16.16,0,0,1,.11,0,.26.26,0,0,1,.06.14,4,4,0,0,1,0,.49v2l.05,3.77c0,1.41,0,2.68-.05,3.81a1.79,1.79,0,0,1-.11.49,10.68,10.68,0,0,1-1.4.45,1.12,1.12,0,0,0-.69.43v.31l0,.22.61,0c.85-.08,1.54-.12,2.06-.12a19.76,19.76,0,0,1,2.09.08,15.08,15.08,0,0,0,1.64.08,1.4,1.4,0,0,0,.29,0,1.58,1.58,0,0,0,0-.26l-.05-.43a2.26,2.26,0,0,0-.43-.17l-.77-.22-.15,0a2.55,2.55,0,0,1-.78-.28,2.56,2.56,0,0,1-.11-.75l0-1.29,0-3.15V7.53a10.51,10.51,0,0,1,.06-1.2,3.83,3.83,0,0,1,.6,0l1.88,0a2.18,2.18,0,0,1,.38,0,.45.45,0,0,1,.23.17.9.9,0,0,1,.05.25c0,.16.06.35.1.58a3.33,3.33,0,0,0,.14.55A6.39,6.39,0,0,0,15,9a2.91,2.91,0,0,0,.6-.15,2.77,2.77,0,0,0,0-.46l0-.51,0-2.95-.25,0-.38,0L15,4.94a.71.71,0,0,1-.18.15.45.45,0,0,1-.25.07l-.29,0H8.75l-.15,0H7.45a17,17,0,0,1-1.86,0L5.36,5l-.25-.13ZM19.75,16.14h-.69v-9h.69A.4.4,0,0,0,20.13,7c.06-.11,0-.24-.1-.39L18.92,5.15a.52.52,0,0,0-.86,0L17,6.58c-.12.15-.16.28-.1.39s.18.16.38.16h.69v9h-.69a.4.4,0,0,0-.38.16c-.06.11,0,.24.1.39l1.11,1.43a.52.52,0,0,0,.86,0L20,16.69c.12-.15.16-.28.1-.39a.4.4,0,0,0-.38-.16Z" transform="translate(-4.4 -4.86)"/></g></svg>',paragraph_style:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.81 15.74"><g><path d="M18.18,3.76v2h-2V19.5h-2V5.73h-2V19.5h-2V11.63a3.94,3.94,0,0,1,0-7.87h7.87Z" transform="translate(-6.37 -3.76)"/></g></svg>',text_style:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13.76 15.74"><g><path d="M17.68,6.71a2.22,2.22,0,0,0,1.06-.22.74.74,0,0,0,.42-.7.73.73,0,0,0-.08-.33.67.67,0,0,0-.17-.22,1,1,0,0,0-.31-.15L18.26,5l-.45-.09A15.27,15.27,0,0,0,13.26,5V4.74c0-.66-.63-1-1.92-1-.24,0-.43.15-.59.46a4,4,0,0,0-.36,1.14h0v0a26.45,26.45,0,0,1-3.5.35A2,2,0,0,0,5.77,6a.84.84,0,0,0-.37.79,2.14,2.14,0,0,0,.41,1.29,1.23,1.23,0,0,0,1.05.63,16.62,16.62,0,0,0,3.29-.45l-.34,3.35c-.16,1.61-.29,2.9-.37,3.86s-.12,1.66-.12,2.09l0,.65a5.15,5.15,0,0,0,.05.6,1.28,1.28,0,0,0,.16.54.34.34,0,0,0,.28.18,1.16,1.16,0,0,0,.79-.46,3.66,3.66,0,0,0,.68-1,22.08,22.08,0,0,0,1-4.33q.49-3.1.78-6.15a24.69,24.69,0,0,1,4.62-.84Z" transform="translate(-5.4 -3.76)"/></g></svg>',save:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 15.74"><g><path d="M18.53,19.5l.2-.05A1.78,1.78,0,0,0,20.13,18l0-.09V7.14a2,2,0,0,0-.28-.64A3.18,3.18,0,0,0,19.43,6c-.5-.52-1-1-1.55-1.54A2.59,2.59,0,0,0,17.37,4a1.83,1.83,0,0,0-.61-.25H6l-.21,0a1.78,1.78,0,0,0-1.4,1.49l0,.1V17.87a2.49,2.49,0,0,0,.09.37,1.79,1.79,0,0,0,1.44,1.23l.09,0Zm-6.25-.6H6.92a.61.61,0,0,1-.68-.48.78.78,0,0,1,0-.22V12.3a.62.62,0,0,1,.69-.68H17.64a.62.62,0,0,1,.69.69V18.2a.64.64,0,0,1-.71.69H12.28ZM12,9.81H8.15a.63.63,0,0,1-.72-.71v-4a.64.64,0,0,1,.72-.72h7.66a.64.64,0,0,1,.72.72v4a.65.65,0,0,1-.74.72ZM13.5,5V9.18h1.78V5Z" transform="translate(-4.41 -3.76)"/></g></svg>',blockquote:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 475.082 475.081"><g><path d="M164.45,219.27h-63.954c-7.614,0-14.087-2.664-19.417-7.994c-5.327-5.33-7.994-11.801-7.994-19.417v-9.132c0-20.177,7.139-37.401,21.416-51.678c14.276-14.272,31.503-21.411,51.678-21.411h18.271c4.948,0,9.229-1.809,12.847-5.424c3.616-3.617,5.424-7.898,5.424-12.847V54.819c0-4.948-1.809-9.233-5.424-12.85c-3.617-3.612-7.898-5.424-12.847-5.424h-18.271c-19.797,0-38.684,3.858-56.673,11.563c-17.987,7.71-33.545,18.132-46.68,31.267c-13.134,13.129-23.553,28.688-31.262,46.677C3.855,144.039,0,162.931,0,182.726v200.991c0,15.235,5.327,28.171,15.986,38.834c10.66,10.657,23.606,15.985,38.832,15.985h109.639c15.225,0,28.167-5.328,38.828-15.985c10.657-10.663,15.987-23.599,15.987-38.834V274.088c0-15.232-5.33-28.168-15.994-38.832C192.622,224.6,179.675,219.27,164.45,219.27z"/><path d="M459.103,235.256c-10.656-10.656-23.599-15.986-38.828-15.986h-63.953c-7.61,0-14.089-2.664-19.41-7.994c-5.332-5.33-7.994-11.801-7.994-19.417v-9.132c0-20.177,7.139-37.401,21.409-51.678c14.271-14.272,31.497-21.411,51.682-21.411h18.267c4.949,0,9.233-1.809,12.848-5.424c3.613-3.617,5.428-7.898,5.428-12.847V54.819c0-4.948-1.814-9.233-5.428-12.85c-3.614-3.612-7.898-5.424-12.848-5.424h-18.267c-19.808,0-38.691,3.858-56.685,11.563c-17.984,7.71-33.537,18.132-46.672,31.267c-13.135,13.129-23.559,28.688-31.265,46.677c-7.707,17.987-11.567,36.879-11.567,56.674v200.991c0,15.235,5.332,28.171,15.988,38.834c10.657,10.657,23.6,15.985,38.828,15.985h109.633c15.229,0,28.171-5.328,38.827-15.985c10.664-10.663,15.985-23.599,15.985-38.834V274.088C475.082,258.855,469.76,245.92,459.103,235.256z"/></g></svg>',arrow_down:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.73 8.67"><g><path d="M18.79,7.52a.8.8,0,0,1,.56-.23.82.82,0,0,1,.79.79.8.8,0,0,1-.23.56l-7.07,7.07a.79.79,0,0,1-.57.25.77.77,0,0,1-.57-.25h0L4.64,8.65a.8.8,0,0,1-.23-.57.82.82,0,0,1,.79-.79.8.8,0,0,1,.56.23L12.28,14l3.26-3.26,3.25-3.26Z" transform="translate(-4.41 -7.29)"/></g></svg>',align_justify:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 13.77"><g><path d="M4.41,4.74v2H20.15v-2H4.41Zm0,5.9H20.15v-2H4.41v2Zm0,3.94H20.15v-2H4.41v2Zm0,3.93h7.87v-2H4.41v2Z" transform="translate(-4.41 -4.74)"/></g></svg>',align_left:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 13.77"><g><path d="M4.41,4.74v2H20.15v-2H4.41Zm11.8,3.94H4.41v2H16.22v-2Zm-11.8,5.9H18.18v-2H4.41v2Zm0,3.93h9.84v-2H4.41v2Z" transform="translate(-4.41 -4.74)"/></g></svg>',align_right:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 13.77"><g><path d="M4.41,4.74v2H20.15v-2H4.41Zm3.93,5.9H20.15v-2H8.34v2Zm-2,3.94H20.14v-2H6.37v2Zm3.94,3.93h9.84v-2H10.31v2Z" transform="translate(-4.41 -4.74)"/></g></svg>',align_center:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 13.77"><g><path d="M4.41,4.74v2H20.15v-2H4.41Zm2,3.94v2H18.18v-2H6.37Zm-1,5.9H19.16v-2H5.39v2Zm2,3.93H17.2v-2H7.36v2Z" transform="translate(-4.41 -4.74)"/></g></svg>',font_color:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 14.61"><g><path d="M18.5,15.57,14.28,4.32h-3.4L6.65,15.57h3l.8-2.26h4.23l.8,2.26h3ZM14,11.07H11.14L12.54,7,13.25,9c.41,1.18.64,1.86.7,2ZM4.41,16.69v2.24H20.15V16.69H4.41Z" transform="translate(-4.41 -4.32)"/></g></svg>',highlight_color:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.66 15.74"><g><path d="M12.32,9.31,13.38,13H11.21l.52-1.83q.46-1.61.54-1.83ZM4.44,3.76H20.1V19.5H4.44V3.76ZM14.71,17.32h2.63L13.7,6H10.89L7.26,17.32H9.89l.63-2.24h3.55l.32,1.12c.18.65.29,1,.32,1.12Z" transform="translate(-4.44 -3.76)"/></g></svg>',list_bullets:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 12.37"><g><path d="M7.77,16.12a1.59,1.59,0,0,0-.49-1.18,1.62,1.62,0,0,0-1.19-.49,1.68,1.68,0,1,0,0,3.36,1.67,1.67,0,0,0,1.68-1.69Zm0-4.48A1.67,1.67,0,0,0,6.09,10,1.68,1.68,0,0,0,4.9,12.82a1.62,1.62,0,0,0,1.19.49,1.67,1.67,0,0,0,1.68-1.67Zm12.38,3.64a.27.27,0,0,0-.08-.19.28.28,0,0,0-.2-.09H9.19a.28.28,0,0,0-.2.08.29.29,0,0,0-.08.19V17a.27.27,0,0,0,.28.28H19.87a.27.27,0,0,0,.19-.08.24.24,0,0,0,.08-.2V15.28ZM7.77,7.13a1.63,1.63,0,0,0-.49-1.2,1.61,1.61,0,0,0-1.19-.49,1.61,1.61,0,0,0-1.19.49,1.71,1.71,0,0,0,0,2.4,1.62,1.62,0,0,0,1.19.49,1.61,1.61,0,0,0,1.19-.49,1.63,1.63,0,0,0,.49-1.2Zm12.38,3.66a.28.28,0,0,0-.08-.2.29.29,0,0,0-.19-.08H9.19a.27.27,0,0,0-.28.28v1.69a.27.27,0,0,0,.08.19.24.24,0,0,0,.2.08H19.87a.27.27,0,0,0,.19-.08.25.25,0,0,0,.08-.19V10.79Zm0-4.5a.27.27,0,0,0-.08-.19A.25.25,0,0,0,19.88,6H9.19A.28.28,0,0,0,9,6.1a.26.26,0,0,0-.08.19V8A.27.27,0,0,0,9,8.17a.24.24,0,0,0,.2.08H19.87a.27.27,0,0,0,.19-.08A.25.25,0,0,0,20.14,8V6.29Z" transform="translate(-4.41 -5.44)"/></g></svg>',list_number:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.69 15.74"><g><path d="M7.66,18a1.24,1.24,0,0,0-.26-.78,1.17,1.17,0,0,0-.72-.42l.85-1V15H4.58v1.34h.94v-.46l.85,0h0c-.11.11-.22.23-.32.35s-.23.27-.37.47L5.39,17l.23.51c.61-.05.92.11.92.49a.42.42,0,0,1-.18.37.79.79,0,0,1-.45.12A1.41,1.41,0,0,1,5,18.15l-.51.77A2.06,2.06,0,0,0,6,19.5a1.8,1.8,0,0,0,1.2-.41A1.38,1.38,0,0,0,7.66,18Zm0-5.54H6.75V13H5.63A.72.72,0,0,1,6,12.51a5.45,5.45,0,0,1,.66-.45,2.71,2.71,0,0,0,.67-.57,1.19,1.19,0,0,0,.31-.81,1.29,1.29,0,0,0-.45-1,1.86,1.86,0,0,0-2-.11,1.51,1.51,0,0,0-.62.7l.74.52A.87.87,0,0,1,6,10.28a.51.51,0,0,1,.35.12.42.42,0,0,1,.13.33.55.55,0,0,1-.21.4,3,3,0,0,1-.5.38c-.19.13-.39.27-.58.42a2,2,0,0,0-.5.6,1.63,1.63,0,0,0-.21.81,3.89,3.89,0,0,0,.05.48h3.2V12.44Zm12.45,2.82a.27.27,0,0,0-.08-.19.28.28,0,0,0-.21-.08H9.1a.32.32,0,0,0-.21.08.24.24,0,0,0-.08.2V17a.27.27,0,0,0,.08.19.3.3,0,0,0,.21.08H19.83a.32.32,0,0,0,.21-.08.25.25,0,0,0,.08-.19V15.26ZM7.69,7.32h-1V3.76H5.8L4.6,4.88l.63.68a1.85,1.85,0,0,0,.43-.48h0l0,2.24H4.74V8.2h3V7.32Zm12.43,3.42a.27.27,0,0,0-.08-.19.28.28,0,0,0-.21-.08H9.1a.32.32,0,0,0-.21.08.24.24,0,0,0-.08.2v1.71a.27.27,0,0,0,.08.19.3.3,0,0,0,.21.08H19.83a.32.32,0,0,0,.21-.08.25.25,0,0,0,.08-.19V10.74Zm0-4.52A.27.27,0,0,0,20,6,.28.28,0,0,0,19.83,6H9.1A.32.32,0,0,0,8.89,6a.24.24,0,0,0-.08.19V7.93a.27.27,0,0,0,.08.19.32.32,0,0,0,.21.08H19.83A.32.32,0,0,0,20,8.12a.26.26,0,0,0,.08-.2V6.22Z" transform="translate(-4.43 -3.76)"/></g></svg>',table:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 15.74"><g><path d="M4.41,8.05V3.76H8.7V8.05H4.41Zm5.71,0V3.76h4.3V8.05h-4.3Zm5.74-4.29h4.29V8.05H15.86V3.76Zm-11.45,10V9.48H8.7v4.3H4.41Zm5.71,0V9.48h4.3v4.3h-4.3Zm5.74,0V9.48h4.29v4.3H15.86ZM4.41,19.5V15.21H8.7V19.5H4.41Zm5.71,0V15.21h4.3V19.5h-4.3Zm5.74,0V15.21h4.29V19.5H15.86Z" transform="translate(-4.41 -3.76)"/></g></svg>',horizontal_rule:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 2.24"><g><path d="M20.15,12.75V10.51H4.41v2.24H20.15Z" transform="translate(-4.41 -10.51)"/></g></svg>',show_blocks:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.66 15.67"><g><path d="M19.72,5.58a1.64,1.64,0,0,0-1.64-1.64H6.23a1.62,1.62,0,0,0-1.16.48,1.63,1.63,0,0,0-.48,1.16V9.63a1.6,1.6,0,0,0,.48,1.16,1.62,1.62,0,0,0,1.16.47H18.09a1.67,1.67,0,0,0,1.16-.47,1.62,1.62,0,0,0,.48-1.16V5.58Zm-.94,4.05a.68.68,0,0,1-.7.7H6.23a.66.66,0,0,1-.48-.2.74.74,0,0,1-.21-.5V5.58a.66.66,0,0,1,.2-.48.71.71,0,0,1,.48-.21H18.08a.74.74,0,0,1,.5.21.66.66,0,0,1,.2.48ZM6.48,7.72a.21.21,0,0,0,.17-.07.22.22,0,0,0,.07-.17V7.06a1.27,1.27,0,0,1,.11-.52.37.37,0,0,1,.36-.23H8.77A.25.25,0,0,0,9,6.17a.19.19,0,0,0,0-.23.27.27,0,0,0-.2-.12H7.19a.88.88,0,0,0-.72.39,1.51,1.51,0,0,0-.23.85v.42a.24.24,0,0,0,.24.24Zm-.19.81a.21.21,0,0,0,.17-.07.26.26,0,0,0,.07-.17.24.24,0,0,0-.24-.24.2.2,0,0,0-.16.09.2.2,0,0,0-.07.16.22.22,0,0,0,.07.17.23.23,0,0,0,.16.06Zm8.46,5.1a1.63,1.63,0,0,0-.47-1.16A1.61,1.61,0,0,0,13.12,12H6.23a1.6,1.6,0,0,0-1.16.46,1.62,1.62,0,0,0-.48,1.16v4.05a1.64,1.64,0,0,0,1.64,1.64h6.89a1.6,1.6,0,0,0,1.16-.48,1.62,1.62,0,0,0,.47-1.16Zm-.94,4a.7.7,0,0,1-.2.49.65.65,0,0,1-.5.2H6.23a.66.66,0,0,1-.48-.2.75.75,0,0,1-.21-.49v-4a.74.74,0,0,1,.21-.5.66.66,0,0,1,.48-.2h6.89a.68.68,0,0,1,.7.7v4Zm6.15,0v-4a1.6,1.6,0,0,0-.48-1.16A1.67,1.67,0,0,0,18.32,12H17.1a1.63,1.63,0,0,0-1.16.47,1.61,1.61,0,0,0-.47,1.16v4a1.67,1.67,0,0,0,.47,1.16,1.62,1.62,0,0,0,1.16.48h1.22A1.64,1.64,0,0,0,20,17.68Zm-.94-4v4a.75.75,0,0,1-.21.49.62.62,0,0,1-.48.2H17.11a.69.69,0,0,1-.5-.2.7.7,0,0,1-.2-.49v-4a.68.68,0,0,1,.7-.7h1.22a.66.66,0,0,1,.48.2.72.72,0,0,1,.21.5Z" transform="translate(-4.44 -3.79)"/></g></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 15.74"><g>
1<path d="M14.15,11.63l5.61,5.61a1.29,1.29,0,0,1,.38.93,1.27,1.27,0,0,1-.4.93,1.25,1.25,0,0,1-.92.4,1.31,1.31,0,0,1-.94-.4l-5.61-5.61L6.67,19.1a1.31,1.31,0,0,1-.94.4,1.24,1.24,0,0,1-.92-.4,1.27,1.27,0,0,1-.4-.93,1.33,1.33,0,0,1,.38-.93l5.61-5.63L4.79,6a1.26,1.26,0,0,1-.38-.93,1.22,1.22,0,0,1,.4-.92,1.28,1.28,0,0,1,.92-.39,1.38,1.38,0,0,1,.94.38l5.61,5.61,5.61-5.61a1.33,1.33,0,0,1,.94-.38,1.26,1.26,0,0,1,.92.39,1.24,1.24,0,0,1,.4.92,1.29,1.29,0,0,1-.39.93L17,8.81l-2.8,2.82Z" transform="translate(-4.41 -3.76)"/></g></svg>',image:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.75 15.77"><g><path d="M8.77,8.72a.88.88,0,0,1-.61-.27.82.82,0,0,1-.25-.61.89.89,0,0,1,.25-.62A.82.82,0,0,1,8.77,7a.81.81,0,0,1,.61.25.83.83,0,0,1,.27.62.81.81,0,0,1-.25.61.91.91,0,0,1-.63.27Zm9.62-5a1.74,1.74,0,0,1,1.76,1.76V17.76a1.74,1.74,0,0,1-1.76,1.76H6.16A1.74,1.74,0,0,1,4.4,17.76V5.51A1.74,1.74,0,0,1,6.16,3.75H18.39Zm0,1.75H6.16v8L8.53,11.8a.94.94,0,0,1,.54-.17.86.86,0,0,1,.54.2L11.09,13l3.64-4.55a.78.78,0,0,1,.34-.25.85.85,0,0,1,.42-.07.89.89,0,0,1,.39.12.78.78,0,0,1,.28.29l2.24,3.67V5.51Zm0,12.24V15.6L15.3,10.53,11.89,14.8a.89.89,0,0,1-.59.32.82.82,0,0,1-.64-.18L9,13.62,6.16,15.74v2Z" transform="translate(-4.4 -3.75)"/></g></svg>',video:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 14.55"><g><path d="M20.15,10.26V18.9l-3.94-1.57v1.2H4.41V10.66H16.22v1.23l2-.81,2-.82ZM14.64,17h0V12.54h0v-.31H6V17h8.67Zm3.94-.37v-4l-2.37,1v2l1.18.48,1.19.48ZM7.94,9.86A2.77,2.77,0,0,1,5.19,7.11a2.76,2.76,0,0,1,5.51,0A2.78,2.78,0,0,1,7.94,9.86Zm0-3.93a1.21,1.21,0,0,0-.83.35,1.15,1.15,0,0,0-.34.84A1.09,1.09,0,0,0,7.11,8,1.15,1.15,0,0,0,8,8.28,1.13,1.13,0,0,0,9.11,7.12,1.16,1.16,0,0,0,7.94,5.93Zm5.9,3.93a2.34,2.34,0,0,1-1.67-.68,2.3,2.3,0,0,1-.68-1.67,2.35,2.35,0,0,1,4-1.67,2.37,2.37,0,0,1,0,3.34,2.33,2.33,0,0,1-1.68.68Zm0-3.14a.75.75,0,1,0,.55.22.73.73,0,0,0-.55-.22Z" transform="translate(-4.41 -4.35)"/></g></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 15.72"><g><path d="M13.05,13.63a.24.24,0,0,1,.15.22L13.42,16a.19.19,0,0,1-.08.18l-2.12,2.14a4.08,4.08,0,0,1-1.29.85A4,4,0,0,1,4.71,17a3.92,3.92,0,0,1-.3-1.52A4,4,0,0,1,4.71,14a3.91,3.91,0,0,1,.87-1.3L7.7,10.56a.25.25,0,0,1,.2-.06l2.17.22a.21.21,0,0,1,.19.15.24.24,0,0,1,0,.25L7.12,14.23a1.81,1.81,0,0,0,0,2.58,1.78,1.78,0,0,0,1.29.52,1.74,1.74,0,0,0,1.28-.52L12.8,13.7a.24.24,0,0,1,.25-.07ZM19,4.92a4,4,0,0,1,0,5.66L16.86,12.7a.25.25,0,0,1-.17.08l-2.2-.23a.21.21,0,0,1-.19-.15.22.22,0,0,1,0-.25L17.44,9a1.81,1.81,0,0,0,0-2.58,1.78,1.78,0,0,0-1.29-.52,1.74,1.74,0,0,0-1.28.52L11.76,9.57a.21.21,0,0,1-.25,0,.24.24,0,0,1-.16-.21l-.22-2.17a.19.19,0,0,1,.08-.18l2.12-2.14a4.08,4.08,0,0,1,1.29-.85,4.05,4.05,0,0,1,3.06,0,3.85,3.85,0,0,1,1.3.85ZM5.84,9.82a.25.25,0,0,1-.18-.08.19.19,0,0,1-.07-.19l.11-.77a.2.2,0,0,1,.11-.17.24.24,0,0,1,.2,0l2.5.72a.25.25,0,0,1,.15.27.22.22,0,0,1-.23.21l-2.59,0Zm4.12-2-.73-2.5a.27.27,0,0,1,0-.2A.21.21,0,0,1,9.41,5L10.19,5a.25.25,0,0,1,.19,0,.23.23,0,0,1,.08.18l-.05,2.61a.2.2,0,0,1-.19.23h0A.22.22,0,0,1,10,7.85Zm8.76,5.58a.25.25,0,0,1,.18.08.23.23,0,0,1,.06.2l-.11.77a.25.25,0,0,1-.11.17.21.21,0,0,1-.12,0l-.08,0L16,14a.25.25,0,0,1-.15-.27.22.22,0,0,1,.22-.21l1.29,0,1.33,0Zm-4.12,2,.74,2.51a.28.28,0,0,1,0,.2.23.23,0,0,1-.18.11l-.8.11a.23.23,0,0,1-.17-.07.25.25,0,0,1-.08-.18l0-2.61a.22.22,0,0,1,.22-.22.21.21,0,0,1,.26.15Z" transform="translate(-4.41 -3.77)"/></g></svg>',math:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.81 15.73"><g><path d="M17.19,5.73a1,1,0,0,0,.71-.29,1,1,0,0,0,.28-.7,1,1,0,0,0-1-1H7.35a1,1,0,0,0-1,1,.77.77,0,0,0,.13.47h0l4.58,6.43L6.68,17.81a1.25,1.25,0,0,0-.29.71.94.94,0,0,0,.28.7.92.92,0,0,0,.69.28H17.2a1,1,0,0,0,.71-.28,1,1,0,0,0,0-1.39.92.92,0,0,0-.71-.29H9.26l3.87-5.43a.86.86,0,0,0,0-.95L9.26,5.73h7.93Z" transform="translate(-6.38 -3.77)"/></g></svg>',unlink:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 15.72"><g><path d="M19,18.32a4,4,0,0,0,0-5.68L15.85,9.5l-1.17,1.55L17.57,14a2,2,0,0,1,.61,1.47,2.08,2.08,0,0,1-2.09,2.09,2,2,0,0,1-1.47-.61l-.38-.37-1.74,1,.8.78a4,4,0,0,0,5.68,0ZM8,9.77a2,2,0,0,1-1.27-1,1.89,1.89,0,0,1-.21-1.57A2.1,2.1,0,0,1,7.45,6,2,2,0,0,1,9,5.76L12.27,7.2l.49-2L9.48,3.9a4,4,0,0,0-3.06.41A3.82,3.82,0,0,0,4.56,6.73a3.8,3.8,0,0,0,.4,3A3.78,3.78,0,0,0,7.39,11.6l5.38,2,.49-2-2.64-.94L8,9.77Z" transform="translate(-4.41 -3.76)"/></g></svg>',table_header:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.75 15.74"><g><path d="M17,19.5v-.78H15.5v.78H17Zm-3,0v-.78H12.5v.78H14Zm-3,0v-.78H9.53v.78H11Zm-3,0v-.78H6.53v.78H8Zm10.55,0a1.73,1.73,0,0,0,.85-.35,1.67,1.67,0,0,0,.56-.76l-.71-.31a1.21,1.21,0,0,1-.35.4,1.34,1.34,0,0,1-.53.23l.08.38c.06.24.09.38.1.41Zm-13.7-.63.55-.55A.77.77,0,0,1,5.25,18a1.31,1.31,0,0,1-.06-.38v-.38H4.41v.38a2,2,0,0,0,.12.68,1.6,1.6,0,0,0,.35.57Zm15.27-2.12V15.26h-.78v1.49h.78Zm-15-1V14.23H4.41v1.49h.78Zm15-2V12.26h-.78v1.49h.78Zm-15-1V11.22H4.41v1.51h.78Zm15-2V9.26h-.78v1.51h.78Zm-15-1V8.17H4.41V9.74h.78Zm15-2V6.28h-.78V7.77h.78Zm-15-1.11V5.33L4.48,5.1a.77.7
17,0,0,0-.07.27,2.72,2.72,0,0,0,0,.28v1h.79ZM19.21,5l.63-.4A1.62,1.62,0,0,0,19.16,4a1.94,1.94,0,0,0-.91-.22v.78a1.31,1.31,0,0,1,.56.12.88.88,0,0,1,.4.36ZM6,4.54H7.78V3.76H6a.82.82,0,0,0-.28.06l.12.35c.07.21.1.33.11.36Zm10.8,0V3.76H15.28v.78h1.49Zm-3,0V3.76H12.28v.78h1.49Zm-3,0V3.76H9.28v.78h1.51ZM6,10.84h12.6V6.91H6Z" transform="translate(-4.4 -3.76)"/></g></svg>',merge_cell:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.76 15.74"><g><path d="M18.92,13.5h1.23v4.15A1.84,1.84,0,0,1,18.3,19.5H14V18.27H18.3a.6.6,0,0,0,.44-.18.59.59,0,0,0,.18-.44V13.5ZM18.3,3.76a1.84,1.84,0,0,1,1.85,1.85V9.82H18.92V5.6a.6.6,0,0,0-.18-.44A.59.59,0,0,0,18.3,5H14V3.76H18.3Zm1.85,8.51H15.6L17.26,14l-.86.86-3.14-3.17L16.4,8.51l.86.86L15.62,11h4.54v1.24Zm-13.9,6h4.27V19.5H6.25A1.84,1.84,0,0,1,4.4,17.65V13.5H5.63v4.15a.61.61,0,0,0,.62.62Zm0-14.51h4.27V5H6.25a.6.6,0,0,0-.44.18.57.57,0,0,0-.17.43V9.81H4.41V5.6A1.83,1.83,0,0,1,6.25,3.76Zm5,7.9L8.15,14.83,7.3,14,9,12.27H4.41V11H8.94L7.3,9.38,7.73,9l.43-.43Z" transform="translate(-4.4 -3.76)"/></g></svg>',split_cell:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.75 15.74"><g><path d="M10.37,12.25H6.74L8.4,13.94l-.87.86L4.41,11.63,7.53,8.5l.87.86L6.74,11h3.62v1.23Zm9.78-.61L17,14.81,16.13,14l1.66-1.69H14.16V11h3.63L16.13,9.37l.43-.43A5.24,5.24,0,0,1,17,8.51ZM18.9,8.22V5.61a.57.57,0,0,0-.18-.43A.65.65,0,0,0,18.29,5H12.88V18.28h5.41a.7.7,0,0,0,.44-.18.57.57,0,0,0,.18-.43V15h1.23v2.64a1.84,1.84,0,0,1-1.85,1.83h-12A1.84,1.84,0,0,1,4.94,19a1.81,1.81,0,0,1-.54-1.29V15H5.63v2.64a.57.57,0,0,0,.18.43.67.67,0,0,0,.44.18h5.41V5H6.25a.7.7,0,0,0-.44.18.56.56,0,0,0-.17.43V8.22H4.41V5.61A1.8,1.8,0,0,1,5,4.31a1.91,1.91,0,0,1,1.31-.55h12a1.89,1.89,0,0,1,1.31.55,1.8,1.8,0,0,1,.54,1.3V8.23H18.9Z" transform="translate(-4.4 -3.76)"/></g></svg>',caption:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 13.79"><g><path d="M4.41,18.52H20.15v-2H4.41ZM20,4.73H18.07V6h.65v.65H20V4.73ZM17,6V4.73H14.55V6H17ZM13.49,6V4.73H11V6h2.47ZM10,6V4.73H7.5V6H10ZM5.79,6h.65V4.73H4.5V6.67H5.8V6ZM4.5,11.34H5.79V8.48H4.5ZM6.44,13.8H5.79v-.65H4.5v1.94H6.44ZM17,15.09V13.8H14.55v1.29H17Zm-3.52,0V13.8H11v1.29h2.47Zm-3.53,0V13.8H7.5v1.29H10ZM20,13.16H18.72v.65h-.65V15.1H20Zm-1.29-1.82H20V8.48h-1.3v2.86Z" transform="translate(-4.41 -4.73)"/></g></svg>',edit:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 15.73"><g><path d="M7.51,5.68h6l1.52-1.57H6.94a2.4,2.4,0,0,0-1.79.82A2.8,2.8,0,0,0,4.41,6.8V17a2.55,2.55,0,0,0,.75,1.8A2.48,2.48,0,0,0,7,19.5H17.22a2.57,2.57,0,0,0,1.83-.74,2.52,2.52,0,0,0,.77-1.8V8.83l-1.58,1.54v6a1.54,1.54,0,0,1-1.53,1.53H7.51A1.54,1.54,0,0,1,6,16.41V7.21A1.52,1.52,0,0,1,7.51,5.68Zm5.63,7.47h0L10.7,10.74l-1,3.38,1.71-.48,1.7-.49Zm.34-.34h0l5.36-5.32L16.4,5.08,11,10.4l1.23,1.21,1.21,1.2ZM19.93,6.4a.82.82,0,0,0,.22-.48A.54.54,0,0,0,20,5.47L18.45,4A.67.67,0,0,0,18,3.77a.7.7,0,0,0-.48.21l-.74.72,2.44,2.43.37-.37.35-.36Z" transform="translate(-4.41 -3.77)"/></g></svg>',delete:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.73 15.74"><g><path d="M19.16,6.71a.94.94,0,0,0,.69-.28.91.91,0,0,0,.29-.68A1,1,0,0,0,19.85,5a.93.93,0,0,0-.69-.3H14.24A.94.94,0,0,0,14,4.06a.92.92,0,0,0-.7-.3h-2a1,1,0,0,0-.7.3.93.93,0,0,0-.28.68H5.39A.92.92,0,0,0,4.7,5a1,1,0,0,0-.29.71.91.91,0,0,0,.29.68,1,1,0,0,0,.69.28H19.16Zm-12.79,1a1,1,0,0,0-.7.3.94.94,0,0,0-.28.69v8.85A1.88,1.88,0,0,0,6,18.93a1.9,1.9,0,0,0,1.39.57H17.2a1.87,1.87,0,0,0,1.39-.58,1.91,1.91,0,0,0,.58-1.39V8.68A1,1,0,0,0,18.88,8a.89.89,0,0,0-.7-.29,1,1,0,0,0-.69.29.92.92,0,0,0-.29.68v7.87a1,1,0,0,1-1,1H8.34a.94.94,0,0,1-.69-.28,1,1,0,0,1-.29-.71V8.68a1,1,0,0,0-1-1Z" transform="translate(-4.41 -3.76)"/></g></svg>',modify:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.7 15.74"><g><path d="M19.79,15.23a.66.66,0,0,1,.3.38.59.59,0,0,1-.07.48l-.8,1.38a.66.66,0,0,1-.38.3.59.59,0,0,1-.48-.07l-.68-.38a4.55,4.55,0,0,1-1.34.77v.78a.64.64,0,0,1-.18.45.61.61,0,0,1-.45.18h-1.6a.6.6,0,0,1-.44-.18.66.66,0,0,1-.19-.45v-.78a4.36,4.36,0,0,1-1.32-.77l-.69.38a.58.58,0,0,1-.48.07.66.66,0,0,1-.38-.3l-.38-.66h.83a1.77,1.77,0,0,0,1.23-.52,1.72,1.72,0,0,0,.51-1.23v-.18a3,3,0,0,0,.49-.28l.15.09a1.83,1.83,0,0,0,.88.23A1.75,1.75,0,0,0,15.84,14l.88-1.52a1.7,1.7,0,0,0,.17-1.32,1.66,1.66,0,0,0-.3-.61,1.84,1.84,0,0,0-.51-.45l-.15-.09,0-.29,0-.28.15-.09a1,1,0,0,0,.26-.18l0,.06v.78a4.34,4.34,0,0,1,1.34.77l.68-.38a.68.68,0,0,1,.48-.06.64.64,0,0,1,.38.29l.8,1.38a.58.58,0,0,1,.07.48.63.63,0,0,1-.3.38l-.68.4a3.84,3.84,0,0,1,.08.76,4.13,4.13,0,0,1-.08.78l.34.18.32.2ZM10.17,7.86a1.9,1.9,0,0,1,1.35,3.23,1.85,1.85,0,0,1-1.35.55A1.9,1.9,0,0,1,8.83,8.41a1.92,1.92,0,0,1,1.34-.55Zm1.58,7.2a.73.73,0,0,1-.21.49.66.66,0,0,1-.48.2H9.29a.68.68,0,0,1-.69-.69V14.2a4.75,4.75,0,0,1-1.48-.86l-.75.45a.73.73,0,0,1-.7,0,.63.63,0,0,1-.25-.26L4.54,12a.67.67,0,0,1-.08-.53.71.71,0,0,1,.32-.42l.75-.43a4.8,4.8,0,0,1-.08-.85,4.71,4.71,0,0,1,.08-.85l-.74-.44a.71.71,0,0,1-.32-.42.65.65,0,0,1,.07-.54L5.42,6a.66.66,0,0,1,.42-.32l.18,0a.73.73,0,0,1,.35.09l.75.43A4.68,4.68,0,0,1,8.6,5.33V4.45a.68.68,0,0,1,.69-.69h1.77a.64.64,0,0,1,.48.2.73.73,0,0,1,.21.49v.88a4.75,4.75,0,0,1,1.48.85L14,5.75a.67.67,0,0,1,.34-.09l.18,0a.71.71,0,0,1,.42.32l.89,1.54a.67.67,0,0,1,.06.52.73.73,0,0,1-.32.43l-.75.42a4.8,4.8,0,0,1,.08.85,4.71,4.71,0,0,1-.08.85l.75.43a.66.66,0,0,1,.32.42.73.73,0,0,1-.06.54l-.89,1.52a.69.69,0,0,1-.25.26.7.7,0,0,1-.35.09.64.64,0,0,1-.34-.09l-.75-.45a4.87,4.87,0,0,1-1.48.86v.87ZM7.23,9.75a3,3,0,0,0,.86,2.08,2.94,2.94,0,1,0,4.16-4.16,3,3,0,0,0-2.08-.85A2.94,2.94,0,0,0,7.23,9.75Z" transform="translate(-4.44 -3.76)"/></g></svg>',revert:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.76 14.69"><g><path d="M18.26,15V12.3l1.89-2V15a2.58,2.58,0,0,1-.24,1c-.2.58-.75.92-1.65,1H7.56v2L4.41,15.63,7.56,13v2h10.7ZM6.3,8.28V11L4.41,13V8.28a2.58,2.58,0,0,1,.24-1c.2-.58.75-.92,1.65-1H17v-2l3.15,3.34L17,10.3v-2H6.3Z" transform="translate(-4.4 -4.28)"/></g></svg>',auto_size:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 15.74"><g><path d="M6.71,17.19,6.89,16l1.21-.15A6,6,0,0,1,6.81,13.9a5.78,5.78,0,0,1-.45-2.27A6,6,0,0,1,8.1,7.45a5.83,5.83,0,0,1,4.17-1.73l1-1-1-1A7.89,7.89,0,0,0,5,14.64a7.73,7.73,0,0,0,1.71,2.55Zm5.57,2.31h0A7.86,7.86,0,0,0,17.85,6.07L17.67,7.3l-1.21.15a5.9,5.9,0,0,1,1.29,1.92,5.81,5.81,0,0,1,.45,2.26,5.91,5.91,0,0,1-5.9,5.9l-1,1,.49.49.47.5Z" transform="translate(-4.41 -3.76)"/></g></svg>',insert_row_below:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.8 15.8"><g><path d="M15.7,1.3c-0.1-0.1-0.1-0.2-0.2-0.2L15.3,1H0.4L0.3,1.1c0,0-0.1,0.1-0.1,0.1c0,0-0.1,0.1-0.1,0.1L0,1.4v7.7l0.1,0.1c0,0.1,0.1,0.1,0.2,0.2l0.1,0.1h2.3V9.3l0.1-0.5L3,8.5l0.1-0.2c-0.1,0-0.2,0-0.3,0H1.2v-6h13.3v6h-1.6c-0.1,0-0.2,0-0.3,0l0.1,0.2l0.2,0.4C12.9,9,13,9.2,13,9.3v0.1h2.3l0.2-0.1c0.1,0,0.1-0.1,0.2-0.2l0.1-0.1V1.4L15.7,1.3z"/><path d="M10.5,7.5C9.9,7.1,9.3,6.8,8.6,6.7c-0.2,0-0.5-0.1-0.7,0c-0.2,0-0.5,0-0.7,0C6.6,6.7,6.1,6.9,5.6,7.3C5.2,7.6,4.7,8,4.4,8.4C4.3,8.6,4.2,8.8,4.2,8.9C4.1,9.1,4,9.3,3.9,9.4C3.9,9.6,3.8,9.7,3.8,9.9c0,0.2-0.1,0.3-0.
11,0.5v-0.1c-0.1,0.8,0.1,1.6,0.5,2.4c0.4,0.7,1,1.3,1.7,1.7c0.3,0.2,0.6,0.3,0.9,0.3c0.3,0.1,0.7,0.1,1,0.1c0.3,0,0.7,0,1-0.1c0.3-0.1,0.6-0.2,0.9-0.3c0.5-0.3,0.9-0.6,1.3-1c0.3-0.4,0.6-0.8,0.8-1.3c0.1-0.4,0.2-0.9,0.2-1.4c0-0.5-0.1-1-0.3-1.4C11.5,8.6,11.1,8,10.5,7.5z M10.1,11.3H8.5v1.6H8H7.9H7.3v0v-0.1v-1.4H5.7v-0.4v-0.2v-0.6h0h1.5V8.5h1.2v1.6h1.6V11.3z"/></g></svg>',insert_row_above:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.8 15.8"><g><path d="M0.1,14.5c0.1,0.1,0.1,0.2,0.2,0.2l0.1,0.1h14.9l0.1-0.1c0,0,0.1-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1l0.1-0.1V6.7l-0.1-0.1c0-0.1-0.1-0.1-0.2-0.2l-0.1-0.1h-2.3v0.1l-0.1,0.5l-0.2,0.4l-0.1,0.2c0.1,0,0.2,0,0.3,0h1.6v6H1.3v-6h1.6c0.1,0,0.2,0,0.3,0L3.1,7.3L2.9,6.9C2.8,6.8,2.8,6.6,2.7,6.5V6.3H0.4L0.3,6.4c-0.1,0-0.1,0.1-0.2,0.2L0,6.7v7.7L0.1,14.5z"/><path d="M5.3,8.3c0.6,0.5,1.2,0.8,1.9,0.9c0.2,0,0.5,0.1,0.7,0c0.2,0,0.5,0,0.7,0c0.6-0.1,1.1-0.3,1.6-0.6c0.5-0.3,0.9-0.7,1.2-1.2c0.1-0.2,0.2-0.3,0.3-0.5c0.1-0.2,0.2-0.4,0.2-0.5c0.1-0.1,0.1-0.3,0.1-0.4C12,5.8,12,5.6,12,5.4v0.1c0.1-0.8-0.1-1.6-0.5-2.4c-0.4-0.7-1-1.3-1.7-1.7C9.5,1.3,9.2,1.2,8.9,1.1C8.5,1,8.2,1,7.9,1c-0.3,0-0.7,0-1,0.1C6.6,1.2,6.3,1.3,6,1.4C5.5,1.7,5.1,2,4.7,2.4C4.4,2.8,4.1,3.3,3.9,3.8C3.8,4.2,3.7,4.7,3.7,5.2c0,0.5,0.1,1,0.3,1.4C4.3,7.2,4.7,7.8,5.3,8.3z M5.7,4.5h1.6V2.9h0.5h0.1h0.6v0v0.1v1.4H10v0.4v0.2v0.6h0H8.5v1.6H7.3V5.7H5.7V4.5z"/></g></svg>',insert_column_left:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.8 15.8"><g><path d="M14.5,15.7c0.1-0.1,0.2-0.1,0.2-0.2l0.1-0.1V0.4l-0.1-0.1c0,0-0.1-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1L14.4,0H6.7L6.6,0.1c-0.1,0-0.1,0.1-0.2,0.2L6.3,0.4v2.3h0.1l0.5,0.1L7.3,3l0.2,0.1c0-0.1,0-0.2,0-0.3V1.2h6v13.3h-6v-1.6c0-0.1,0-0.2,0-0.3l-0.2,0.1l-0.4,0.2C6.7,12.9,6.6,13,6.4,13H6.3v2.3l0.1,0.2c0,0.1,0.1,0.1,0.2,0.2l0.1,0.1h7.7L14.5,15.7z"/><path d="M8.3,10.5C8.7,10,9,9.3,9.1,8.6c0-0.2,0.1-0.5,0-0.7c0-0.2,0-0.5,0-0.7C9,6.7,8.8,6.1,8.5,5.7C8.2,5.2,7.8,4.8,7.3,4.5C7.2,4.4,7,4.3,6.9,4.2C6.7,4.1,6.5,4,6.4,4C6.2,3.9,6.1,3.9,5.9,3.8c-0.2,0-0.3-0.1-0.5-0.1h0.1C4.7,3.7,3.8,3.9,3.1,4.3C2.4,4.7,1.8,5.3,1.4,6C1.3,6.3,1.2,6.6,1.1,6.9C1,7.2,1,7.6,1,7.9c0,0.3,0,0.7,0.1,1c0.1,0.3,0.2,0.6,0.3,0.9c0.3,0.5,0.6,0.9,1,1.3c0.4,0.3,0.8,0.6,1.3,0.8C4.2,12,4.7,12.1,5.1,12c0.5,0,1-0.1,1.4-0.3C7.2,11.5,7.8,11.1,8.3,10.5zM4.5,10.1V8.5H2.9V8V7.9V7.3h0H3h1.4V5.7h0.4h0.2h0.6v0v1.5h1.6v1.2H5.7v1.6H4.5z"/></g></svg>',insert_column_right:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.8 15.8"><g><path d="M1.3,0.1C1.2,0.2,1.1,0.2,1.1,0.3L1,0.4v14.9l0.1,0.1c0,0,0.1,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1l0.1,0.1h7.7l0.1-0.1c0.1,0,0.1-0.1,0.2-0.2l0.1-0.1v-2.3H9.3l-0.5-0.1l-0.4-0.2l-0.2-0.1c0,0.1,0,0.2,0,0.3v1.6h-6V1.3h6v1.6c0,0.1,0,0.2,0,0.3l0.2-0.1l0.4-0.2C9,2.9,9.2,2.8,9.3,2.8h0.1V0.5L9.4,0.3c0-0.1-0.1-0.1-0.2-0.2L9.1,0H1.4L1.3,0.1z"/>
1<path d="M7.5,5.3C7,5.8,6.7,6.5,6.6,7.2c0,0.2-0.1,0.5,0,0.7c0,0.2,0,0.5,0,0.7c0.1,0.6,0.3,1.1,0.6,1.6c0.3,0.5,0.7,0.9,1.2,1.2c0.2,0.1,0.3,0.2,0.5,0.3c0.2,0.1,0.4,0.2,0.5,0.2c0.1,0.1,0.3,0.1,0.4,0.1c0.2,0,0.3,0.1,0.5,0.1h-0.1c0.8,0.1,1.6-0.1,2.4-0.5c0.7-0.4,1.3-1,1.7-1.7c0.2-0.3,0.3-0.6,0.3-0.9c0.1-0.3,0.1-0.7,0.1-1c0-0.3,0-0.7-0.1-1c-0.1-0.3-0.2-0.6-0.3-0.9c-0.3-0.5-0.6-0.9-1-1.3C13,4.4,12.5,4.2,12,4c-0.4-0.1-0.9-0.2-1.4-0.2c-0.5,0-1,0.1-1.4,0.2C8.5,4.3,7.9,4.7,7.5,5.3z M11.3,5.7v1.6h1.6v0.5v0.1v0.6h0h-0.1h-1.4v1.6h-0.4h-0.2h-0.6v0V8.5H8.5V7.3h1.6V5.7H11.3z"/></g></svg>',delete_row:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.75 13.83"><g><path d="M4.7,18.46l.12.08H19.73l.12-.08a.58.58,0,0,0,.22-.22l.08-.12,0-7.69-.08-.11a.77.77,0,0,0-.18-.18l-.11-.08-2.31,0-.08.28-.1.29a1.58,1.58,0,0,1-.12.29l-.14.34s0,0,.18,0H18.9v6H5.64v-6H7.35c.14,0,.2,0,.18,0l-.14-.34a2.85,2.85,0,0,1-.12-.29l-.1-.29-.07-.27-2.31,0-.11.08a.77.77,0,0,0-.18.18l-.08.11,0,7.69.08.12a.47.47,0,0,0,.09.12l.13.09ZM12.11,13a4,4,0,0,0,1.46-.21,4.51,4.51,0,0,0,1.31-.71A4,4,0,0,0,16.26,10a4.32,4.32,0,0,0-.08-2.54,4.34,4.34,0,0,0-1-1.52,4.15,4.15,0,0,0-1.54-1,4.34,4.34,0,0,0-1.35-.22A4.07,4.07,0,0,0,11,4.93,3.94,3.94,0,0,0,9.24,6.07,3.92,3.92,0,0,0,8.15,8.88a3.91,3.91,0,0,0,.12.95A4.16,4.16,0,0,0,12.11,13Zm2.35-4.14v.58H10.09V8.27h4.37v.58Z" transform="translate(-4.4 -4.71)"/></g></svg>',delete_column:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13.81 15.74"><g><path d="M5.66,19.42l.12.08,7.69,0,.11-.08a.77.77,0,0,0,.18-.18l.08-.11,0-2.32-.15,0-.45-.15-.42-.18-.17-.07a1,1,0,0,0,0,.27v1.63h-6V5h6V6.62a.9.9,0,0,0,0,.26l.17-.07.42-.17a3.91,3.91,0,0,1,.45-.15l.15,0,0-2.32L13.75,4a.77.77,0,0,0-.18-.18l-.11-.08H5.79l-.13.07a.63.63,0,0,0-.21.22l-.08.12V19.08l.08.12a.47.47,0,0,0,.09.12.35.35,0,0,0,.12.1Zm9-3.67a4.16,4.16,0,0,0,2.36-.51,4.08,4.08,0,0,0,1.67-1.72,4,4,0,0,0,.35-.91,3.79,3.79,0,0,0,.1-1,4.71,4.71,0,0,0-.11-1,5,5,0,0,0-.3-.87,4.25,4.25,0,0,0-1-1.25,4.49,4.49,0,0,0-1.34-.81A4.26,4.26,0,0,0,15,7.48a3.88,3.88,0,0,0-1.41.25A4.32,4.32,0,0,0,11.86,9,4,4,0,0,0,11,10.94a4.4,4.4,0,0,0-.05.68,4.5,4.5,0,0,0,.05.68,3.93,3.93,0,0,0,.61,1.57,4.22,4.22,0,0,0,1.18,1.2,4.59,4.59,0,0,0,.48.27c.2.1.37.17.5.22a2.44,2.44,0,0,0,.45.12,4.61,4.61,0,0,0,.5.07Zm2.54-4.12v.58H12.87V11h4.37v.59Z" transform="translate(-5.37 -3.76)"/></g></svg>',fixed_column_width:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6,5H18A1,1 0 0,1 19,6A1,1 0 0,1 18,7H6A1,1 0 0,1 5,6A1,1 0 0,1 6,5M21,2V4H3V2H21M15,8H17V22H15V8M7,8H9V22H7V8M11,8H13V22H11V8Z" /></svg>',rotate_left:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.8 15.8"><g><path d="M0.5,10.2c0,0.1,0,0.2,0,0.3v0.2l0,0c0.1,0.3,0.3,0.6,0.4,0.9l0,0C1,11.8,1.3,12,1.5,11.9h0.1h0.2h0.1c0.1-0.1,0.3-0.3,0.4-0.5v-0.2c0-0.1,0-0.2-0.1-0.3l0,0c-0.2-0.2-0.3-0.4-0.3-0.7l0,0C1.8,10,1.7,9.9,1.5,9.8c-0.1,0-0.2,0-0.3,0H0.9C0.7,9.9,0.6,10,0.5,10.2L0.5,10.2z"/><path d="M2.2,11.5L2.2,11.5L2.2,11.5z"/><path d="M5.9,3.6L5.9,3.6L5.9,3.6z"/><path d="M0.1,7.9c0,0.3,0,0.6,0,0.9l0,0l0,0l0,0l0,0c0,0.2,0.1,0.3,0.2,0.4l0,0c0.2,0.1,0.3,0.2,0.5,0.2l0,0l0,0c0.2,0,0.4-0.1,0.5-0.3l0,0c0-0.1,0.1-0.3,0.1-0.4V8.6l0,0c0-0.2,0-0.5,0-0.7l0,0c0-0.2-0.1-0.4-0.2-0.5C1.1,7.3,0.9,7.2,0.7,7.2S0.3,7.3,0.2,7.4C0.1,7.5,0,7.7,0.1,7.9z"/><path d="M1.9,12.7L1.9,12.7c0,0.2,0,0.4,0.2,0.5l0,0l0.2,0.3l0,0c0.2,0.1,0.3,0.2,0.5,0.4l0,0l0,0l0,0l0,0C2.9,14,3,14.1,3.2,14.1s0.4-0.1,0.5-0.2c0.1-0.2,0.2-0.3,0.2-0.5v-0.1c0-0.2-0.1-0.4-0.2-0.5l0,0l-0.4-0.4l-0.2-0.2l0,0C3,12.1,2.8,12,2.6,12l0,0c-0.2,0-0.4,0.1-0.5,0.2l0,0C2,12.3,1.9,12.5,1.9,12.7z"/><path d="M6.6,15c0,0.2,0.1,0.4,0.2,0.5c0.1,0.1,0.2,0.2,0.4,0.3l0,0c0.3,0,0.5,0,0.7,0h0.3l0,0c0.2,0,0.4-0.1,0.5-0.2c0.1-0.2,0.2-0.3,0.2-0.5l0,0l0,0c0-0.2-0.1-0.4-0.2-0.5l0,0c-0.1-0.1-0.3-0.2-0.5-0.2l0,0H7.9c-0.1,0-0.3,0-0.5,0l0,0H7.3c-0.2-0.1-0.3,0-0.5,0.1l0,0C6.7,14.6,6.6,14.8,6.6,15L6.6,15L6.6,15L6.6,15z"/><path d="M4.2,7.4C4,7.5,4,7.7,4,7.9c0,0.2,0,0.4,0.2,0.5l0,0l3.2,3.2l0,0c0.1,0.1,0.3,0.2,0.5,0.2s0.3-0.1,0.5-0.2l0,0l3.2-3.2l0,0c0.1-0.1,0.2-0.3,0.2-0.5c0-0.2-0.1-0.4-0.2-0.5l0,0C11.5,7.3,11,6.7,10,5.8l0,0L8.4,4.2l0,0C8.3,4.1,8.1,4,7.9,4S7.5,4.1,7.4,4.2L4.2,7.4L4.2,7.4z M6.8,9L5.7,7.9l2.2-2.2l2.3,2.2l-2.3,2.2C7.7,9.9,7.3,9.5,6.8,9L6.8,9z"/><path d="M4.1,14.1C4,14.2,4,14.3,4,14.4v0.2l0,0c0.1,0.1,0.2,0.3,0.4,0.4l0,0c0.3,0.1,0.6,0.2,0.9,0.4h0.1h0.1l0,0c0.2,0,0.3-0.
11,0.5-0.1l0,0c0.2-0.1,0.3-0.3,0.3-0.4l0,0l0,0l0,0l0,0v-0.2c0-0.1-0.1-0.2-0.1-0.3l0,0C6.1,14.2,6,14.1,5.8,14l0,0c-0.3-0.1-0.5-0.2-0.8-0.2l0,0c-0.1-0.1-0.2-0.1-0.3-0.1H4.5C4.3,13.7,4.2,13.9,4.1,14.1z"/><path d="M9.3,14.4c0,0.1-0.1,0.3,0,0.4V15l0,0c0,0.1,0.1,0.3,0.5,0.4c0.1,0.1,0.3,0.1,0.4,0.1l0,0h0.1l0,0c0.3-0.1,0.6-0.2,0.9-0.3l0,0c0.1-0.1,0.2-0.2,0.3-0.4l0.1-0.3c0-0.1-0.1-0.2-0.1-0.3l0,0c-0.1-0.2-0.2-0.3-0.4-0.4l0,0h-0.3c-0.1,0-0.2,0-0.3,0l0,0c-0.2,0.1-0.5,0.2-0.8,0.3l0,0C9.5,14.1,9.4,14.2,9.3,14.4L9.3,14.4z"/><path d="M11.4,14.7L11.4,14.7L11.4,14.7z"/><path d="M9.5,15.3L9.5,15.3L9.5,15.3z"/><path d="M15.9,7.9c0-1-0.2-2-0.6-3l0,0c-0.4-1-1-1.9-1.7-2.6C12.8,1.6,12,1,11,0.6l0,0C10.1,0.2,9,0,8,0C7.3,0,6.5,0.1,5.8,0.3l0,0C5.2,0.5,4.6,0.8,4,1.1L3.1,0.2l0,0C2.9,0.1,2.8,0,2.6,0H2.4l0,0C2.2,0,2,0.2,1.9,0.4l0,0L0.1,4.9l0,0C0,5,0,5.1,0,5.2c0,0.2,0.1,0.4,0.2,0.5l0,0c0.2,0.1,0.3,0.2,0.5,0.2h0.1H1l0,0l4.7-1.8l0,0C5.9,4,6.1,3.8,6.1,3.6V3.4C6.1,3.2,6,3,5.9,2.9l0,0L5.1,2.1c0.4-0.2,0.8-0.4,1.3-0.5c0.5-0.1,1.1-0.2,1.7-0.2c0.9,0,1.7,0.2,2.5,0.5l0,0c0.8,0.3,1.5,0.8,2.1,1.4c0.6,0.6,1.1,1.3,1.4,2.1l0,0c0.3,0.8,0.5,1.6,0.5,2.5s-0.2,1.7-0.5,2.5l0,0c-0.3,0.8-0.8,1.5-1.4,2.1c-0.2,0.2-0.4,0.3-0.6,0.5l0,0c-0.2,0.1-0.3,0.3-0.3,0.5v0.1c0,0.1,0,0.3,0.1,0.4l0,0c0.1,0.2,0.3,0.3,0.5,0.3l0,0c0.1,0,0.3-0.1,0.4-0.2l0,0l0,0l0,0l0,0c0.2-0.2,0.5-0.4,0.7-0.6l0,0l0,0l0,0l0,0c0.7-0.8,1.3-1.6,1.7-2.6C15.6,10,15.8,9,15.9,7.9z M1.9,4C2,3.8,2.1,3.5,2.3,3.1l0,0L2.7,2l1.2,1.2L1.9,4z"/><path d="M6.8,15.5L6.8,15.5L6.8,15.5z"/></g></svg>',rotate_right:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.8 15.8"><g><path d="M9.9,15.3L9.9,15.3L9.9,15.3z"/><path d="M6.9,15.1L6.9,15.1c0,0.1,0.1,0.3,0.2,0.4l0,0c0.1,0.2,0.3,0.3,0.5,0.3l0,0h0.3c0.2,0,0.4,0,0.7,0l0,0c0.2-0.1,0.3-0.2,0.4-0.3c0.1-0.1,0.2-0.2,0.2-0.4V15c0-0.2-0.1-0.4-0.2-0.4c-0.2-0.1-0.3-0.2-0.5-0.2H8.4l0,0c-0.1,0-0.3,0-0.5,0H7.6l0,0c-0.2,0-0.4,0.1-0.5,0.2C7,14.7,6.9,14.9,6.9,15.1z"/><path d="M6.5,14.4L6.5,14.4L6.5,14.4z"/><path d="M5.8,5.8L5.8,5.8c-1,0.9-1.5,1.5-1.7,1.6l0,0C4,7.5,4,7.7,4,7.9c0,0.2,0,0.4,0.2,0.5l0,0l3.2,3.2l0,0c0.2,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2l0,0l3.2-3.2l0,0c0.1-0.1,0.2-0.3,0.2-0.5c0-0.2-0.1-0.4-0.2-0.5l0,0L8.4,4.2C8.3,4.1,8.1,4,7.9,4C7.7,4,7.5,4.1,7.4,4.2l0,0L5.8,5.8z M5.6,7.9l2.3-2.2l2.2,2.2L9,9l0,0l0,0l0,0l0,0c-0.5,0.6-0.9,0.9-1.1,1.1L5.6,7.9z"/><path d="M9,15.5L9,15.5L9,15.5z"/><path d="M9.6,14.7v0.2l0,0l0,0l0,0l0,0c0.1,0.2,0.1,0.3,0.3,0.3c0.1,0.1,0.3,0.1,0.4,0.1l0,0h0.1h0.1c0.3-0.1,0.6-0.3,0.9-0.4l0,0c0.1-0.1,0.2-0.2,0.3-0.4l0,0v-0.2c0-0.1,0-0.2-0.1-0.3c-0.1-0.2-0.2-0.3-0.4-0.4H11c-0.1,0-0.2,0.1-0.3,0.1l0,0c-0.2,0.1-0.4,0.2-0.7,0.3l0,0l0,0c-0.1,0.1-0.3,0.2-0.4,0.4C9.6,14.5,9.6,14.6,9.6,14.7z"/><path d="M9,14.5L9,14.5L9,14.5z"/><path d="M9.6,14.4L9.6,14.4L9.6,14.4z"/><path d="M11.7,14L11.7,14L11.7,14z"/><path d="M15.6,7.4L15.6,7.4L15.6,7.4z"/><path d="M15,9.4c0.2,0,0.4,0,0.6-0.2l0,0c0.1-0.1,0.2-0.2,0.2-0.4l0,0l0,0l0,0l0,0c0-0.3,0-0.6,0-0.9c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2s-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5l0,0c0,0.2,0,0.4,0,0.7l0,0v0.1c0,0.1,0,0.3,0.1,0.4l0,0C14.6,9.3,14.8,9.4,15,9.4L15,9.4L15,9.4z"/><path d="M14,12h0.1h0.2h0.1c0.2,0,0.5-0.2,0.6-0.4l0,0c0.2-0.3,0.3-0.6,0.4-0.9l0,0v-0.2c0-0.1-0.1-0.2-0.1-0.3c-0.1-0.2-0.2-0.3-0.4-0.4h-0.3c-0.1,0-0.2,0-0.3,0C14.2,9.9,14,10,14,10.3l0,0c-0.1,0.2-0.2,0.5-0.3,0.7l0,0c-0.1,0.1-0.1,0.2-0.1,0.3v0.2l0,0l0,0C13.6,11.6,13.8,11.8,14,12z"/><path d="M14.6,7.4L14.6,7.4L14.6,7.4z"/><path d="M4.4,14.2c-0.1,0.1-0.1,0.2-0.1,0.3l0.1,0.2c0,0.2,0.2,0.3,0.3,0.4l0,0c0.3,0.1,0.6,0.3,1.1,0.4l0,0h0.1l0,0c0.1,0,0.2-0.1,0.4-0.2c0.1,0,0.2-0.2,0.3-0.3l0,0v-0.2c0-0.1-0.1-0.3-0.2-0.4c-0.1-0.1-0.2-0.2-0.4-0.3l0,0c-0.2-0.1-0.5-0.2-0.7-0.3l0,0c-0.1,0-0.2,0-0.3,0H4.7l0,0C4.6,13.9,4.4,14,4.4,14.2L4.4,14.2z"/><path d="M11.9,13.3c0,0.2,0.1,0.4,0.2,0.6c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2l0,0l0,0l0,0l0,0c0.1-0.1,0.3-0.3,0.4-0.4l0,0l0.2-0.3l0,0c0.1-0.2,0.2-0.3,0.2-0.5l0,0c0-0.2-0.1-0.4-0.2-0.5l0,0c-0.1-0.1-0.3-0.2-0.5-0.2l0,0c-0.2,0-0.4,0.1-0.5,0.2l0,0l-0.2,0.2l-0.4,0.4l0,0C12,13,11.9,13.1,11.9,13.3L11.9,13.3z"/><path d="M12.1,13.8L12.1,13.8L12.1,13.8z"/><path d="M11.9,13.3L11.9,13.3L11.9,13.3z"/><path d="M15.9,5.2c0-0.1-0.1-0.2-0.1-0.3l0,0L14,0.4l0,0C13.9,0.2,13.7,0,13.5,0l0,0l0,0h-0.2c-0.2,0-0.4,0.1-0.5,0.2l0,0l-0.9,0.9c-0.5-0.3-1.1-0.6-1.8-0.8l0,0C9.4,0.1,8.7,0,7.9,0c-1,0-2,0.2-3,0.6S3,1.6,2.3,2.3C1.6,3.1,1,3.9,0.6,4.9l0,0C0.2,5.8,0,6.8,0,7.9c0,1,0.2,2,0.6,3s0.9,1.8,1.7,2.6l0,0l0,0l0,0l0,0c0.2,0.2,0.5,0.4,0.7,0.6l0,0l0,0l0,0l0,0c0.2,0.1,0.3,0.2,0.5,0.2l0,0c0.2,0,0.4-0.1,0.6-0.3l0,0c0.1-0.1,0.1-0.3,0.1-0.4v-0.1l0,0C4.1,13.3,4,13.1,3.9,13l0,0c-0.2-0.1-0.4-0.3-0.6-0.5c-0.6-0.6-1.1-1.3-1.4-2.1l0,0C1.6,9.6,1.4,8.8,1.4,7.9s0.2-1.7,0.5-2.5l0,0c0.3-0.8,0.8-1.5,1.4-2.1c0.6-0.6,1.3-1.1,2.1-1.4l0,0C6.2,1.6,7,1.4,7.9,1.4c0.6,0,1.1,0.1,1.7,0.2c0.5,0.1,0.9,0.3,1.3,0.5l-0.8,0.8l0,0C10,3.1,9.9,3.2,9.9,3.4v0.2l0,0l0,0c0,0.2,0.2,0.4,0.4,0.5l0,0l4.5,1.8l0,0H15h0.1c0.2,0,0.4-0.1,0.5-0.2l0,0C15.7,5.6,15.8,5.4,15.9,5.2z M11.8,3.2L13,2l0.4,1.1l0,0c0.2,0.4,0.3,0.7,0.4,0.9L11.8,3.2z"/></g></svg>',mirror_horizontal:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.75 15.74"><g><path d="M13.75,3.76l5.9,15.74h-5.9V3.76ZM4.9,19.5,10.8,3.76V19.5H4.9Z" transform="translate(-4.9 -3.76)"/></g></svg>',mirror_vertical:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.74 14.75"><g><path d="M20.15,13.1,4.41,19V13.1H20.15ZM4.41,4.25l15.74,5.9H4.41V4.25Z" transform="translate(-4.41 -4.25)"/></g></svg>',checked:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.75 12.1"><g><path d="M4.59,12.23l.12.18L9.43,17.5a.58.58,0,0,0,.84,0L20,7.45h0a.58.58,0,0,0,0-.84l-.85-.85a.58.58,0,0,0-.84,0H18.2l-8.12,8.41a.29.29,0,0,1-.42,0l-3.4-3.63a.58.58,0,0,0-.84,0l-.85.85a.6.6,0,0,0-.14.21.51.51,0,0,0,0,.44c.05.06.1.13.16.19Z" transform="translate(-4.38 -5.58)"/></g></svg>',line_break:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1<path d="M19,6a1,1,0,0,0-1,1v4a1,1,0,0,1-1,1H7.41l1.3-1.29A1,1,0,0,0,7.29,9.29l-3,3a1,1,0,0,0-.21.33,1,1,0,0,0,0,.76,1,1,0,0,0,.21.33l3,3a1,1,0,0,0,1.42,0,1,1,0,0,0,0-1.42L7.41,14H17a3,3,0,0,0,3-3V7A1,1,0,0,0,19,6Z"/></svg>',audio:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z" /></svg>',image_gallery:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="30 30 150 150"><g><path d="M152.775,120.548V51.651c0-12.271-9.984-22.254-22.254-22.254H43.727c-12.271,0-22.254,9.983-22.254,22.254v68.896c0,12.27,9.983,22.254,22.254,22.254h86.795C142.791,142.802,152.775,132.817,152.775,120.548z M36.394,51.651c0-4.042,3.291-7.333,7.333-7.333h86.795c4.042,0,7.332,3.291,7.332,7.333v23.917l-14.938-17.767c-1.41-1.678-3.487-2.649-5.68-2.658h-0.029c-2.184,0-4.255,0.954-5.674,2.613L76.709,98.519l-9.096-9.398c-1.427-1.474-3.392-2.291-5.448-2.273c-2.052,0.025-4.004,0.893-5.396,2.4L36.394,111.32V51.651z M41.684,127.585l20.697-22.416l9.312,9.622c1.461,1.511,3.489,2.334,5.592,2.27c2.101-0.066,4.075-1.013,5.44-2.612l34.436-40.308l20.693,24.613v21.794c0,4.042-3.29,7.332-7.332,7.332H43.727C43.018,127.88,42.334,127.775,41.684,127.585z M182.616,152.5V75.657c0-4.12-3.34-7.46-7.461-7.46c-4.119,0-7.46,3.34-7.46,7.46V152.5c0,4.112-3.347,7.46-7.461,7.46h-94c-4.119,0-7.46,3.339-7.46,7.459c0,4.123,3.341,7.462,7.46,7.462h94C172.576,174.881,182.616,164.841,182.616,152.5z"/></g></svg>',bookmark:'<svg viewBox="0 0 24 24"><path d="M17,3H7A2,2 0 0,0 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z" /></svg>',download:'<svg viewBox="0 0 24 24"><path d="M2 12H4V17H20V12H22V17C22 18.11 21.11 19 20 19H4C2.9 19 2 18.11 2 17V12M12 15L17.55 9.54L16.13 8.13L13 11.25V2H11V11.25L7.88 8.13L6.46 9.55L12 15Z" /></svg>',dir_ltr:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 4v4c-1.1 0-2-.9-2-2s.9-2 2-2m8-2H9C6.79 2 5 3.79 5 6s1.79 4 4 4v5h2V4h2v11h2V4h2V2zm0 12v3H5v2h12v3l4-4-4-4z"/></svg>',dir_rtl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M10 4v4c-1.1 0-2-.9-2-2s.9-2 2-2m8-2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4v5h2V4h2v11h2V4h2V2zM8 14l-4 4 4 4v-3h12v-2H8v-3z"/></svg>',alert_outline:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z" /></svg>',more_text:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="10 10 180 180"><g><path d="M49.711,142.188h49.027c2.328,0.002,4.394,1.492,5.129,3.699l9.742,29.252c0.363,1.092,1.385,1.828,2.537,1.83l15.883,0.01c0.859,0,1.667-0.412,2.17-1.109s0.641-1.594,0.37-2.41l-16.625-50.045L86.503,28.953c-0.36-1.097-1.383-1.839-2.537-1.842H64.532c-1.153-0.001-2.178,0.736-2.542,1.831L13.847,173.457c-0.271,0.816-0.135,1.713,0.369,2.412c0.503,0.697,1.311,1.109,2.171,1.109h15.872c1.151,0,2.173-0.736,2.537-1.828l9.793-29.287C45.325,143.66,47.39,142.18,49.711,142.188L49.711,142.188z M53.493,119.098l15.607-46.9c0.744-2.196,2.806-3.674,5.125-3.674s4.381,1.478,5.125,3.674l15.607,46.904c0.537,1.621,0.263,3.402-0.736,4.789c-1.018,1.408-2.649,2.24-4.386,2.24H58.615c-1.736,0-3.368-0.832-4.386-2.24C53.23,122.504,52.956,120.721,53.493,119.098L53.493,119.098z M190.465,63.32c0-2.919-1.015-5.396-3.059-7.428c-2.029-2.031-4.496-3.047-7.383-3.047c-2.889,0-5.355,1.016-7.388,3.047c-2.029,2.032-3.056,4.498-3.056,7.386c0,2.889,1.026,5.354,3.056,7.385c2.032,2.032,4.499,3.059,7.388,3.059c2.887,0,5.354-1.026,7.383-3.059C189.45,68.633,190.465,66.178,190.465,63.32L190.465,63.32z M190.465,101.994c0-2.858-1.015-5.313-3.059-7.333c-2.029-2.042-4.496-3.047-7.383-3.047c-2.889,0-5.355,1.005-7.388,3.047c-2.029,2.021-3.056,4.486-3.056,7.376c0,2.887,1.026,5.352,3.056,7.395c2.032,2.021,4.499,3.047,7.388,3.047c2.887,0,5.354-1.025,7.383-3.047C189.45,107.389,190.465,104.914,190.465,101.994L190.465,101.994z M190.465,140.76c0-2.918-1.015-5.395-3.059-7.438c-2.029-2.041-4.496-3.047-7.383-3.047c-2.889,0-5.355,1.006-7.388,3.047c-2.029,2.043-3.056,4.52-3.056,7.438c0,2.922,1.026,5.398,3.056,7.439c2.032,2.021,4.499,3.047,7.388,3.047c2.887,0,5.354-1.025,7.383-3.047C189.45,146.158,190.465,143.682,190.465,140.76L190.465,140.76z"/></g></svg>',more_paragraph:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="10 10 180 180"><g><path d="M128.39,28.499H63.493c-25.558,0-46.354,20.796-46.354,46.354c0,25.559,20.796,46.353,46.354,46.353h9.271v55.625h18.542V47.04h9.271V176.83h18.543V47.04h9.271V28.499z M72.764,102.664h-9.271c-15.337,0-27.813
1-12.475-27.813-27.812c0-15.336,12.476-27.813,27.813-27.813h9.271V102.664z M190.465,63.32c0-2.919-1.015-5.396-3.059-7.428c-2.029-2.031-4.496-3.047-7.383-3.047c-2.889,0-5.355,1.016-7.388,3.047c-2.029,2.032-3.056,4.498-3.056,7.386c0,2.889,1.026,5.354,3.056,7.385c2.032,2.032,4.499,3.059,7.388,3.059c2.887,0,5.354-1.026,7.383-3.059C189.45,68.633,190.465,66.178,190.465,63.32L190.465,63.32z M190.465,101.994c0-2.858-1.015-5.313-3.059-7.333c-2.029-2.042-4.496-3.047-7.383-3.047c-2.889,0-5.355,1.005-7.388,3.047c-2.029,2.021-3.056,4.486-3.056,7.376c0,2.887,1.026,5.352,3.056,7.395c2.032,2.021,4.499,3.047,7.388,3.047c2.887,0,5.354-1.025,7.383-3.047C189.45,107.389,190.465,104.914,190.465,101.994L190.465,101.994z M190.465,140.76c0-2.918-1.015-5.395-3.059-7.438c-2.029-2.041-4.496-3.047-7.383-3.047c-2.889,0-5.355,1.006-7.388,3.047c-2.029,2.043-3.056,4.52-3.056,7.438c0,2.922,1.026,5.398,3.056,7.439c2.032,2.021,4.499,3.047,7.388,3.047c2.887,0,5.354-1.025,7.383-3.047C189.45,146.158,190.465,143.682,190.465,140.76L190.465,140.76z"/></g></svg>',more_plus:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="35 30 140 140"><g><path d="M137.215,102.045c0,3.498-2.835,6.332-6.333,6.332H24.549c-3.498,0-6.334-2.834-6.334-6.332l0,0c0-3.498,2.836-6.333,6.334-6.333h106.333C134.38,95.711,137.215,98.547,137.215,102.045L137.215,102.045z M77.715,161.545c-3.498,0-6.333-2.836-6.333-6.334V48.878c0-3.498,2.836-6.333,6.333-6.333l0,0c3.498,0,6.334,2.835,6.334,6.333v106.333C84.049,158.709,81.213,161.545,77.715,161.545L77.715,161.545z M190.465,63.32c0-2.919-1.015-5.396-3.059-7.428c-2.029-2.031-4.496-3.047-7.383-3.047c-2.889,0-5.355,1.016-7.388,3.047c-2.029,2.032-3.056,4.498-3.056,7.386c0,2.889,1.026,5.354,3.056,7.385c2.032,2.032,4.499,3.059,7.388,3.059c2.887,0,5.354-1.026,7.383-3.059C189.45,68.632,190.465,66.177,190.465,63.32L190.465,63.32z M190.465,101.993c0-2.858-1.015-5.313-3.059-7.333c-2.029-2.042-4.496-3.047-7.383-3.047c-2.889,0-5.355,1.005-7.388,3.047c-2.029,2.021-3.056,4.486-3.056,7.376c0,2.888,1.026,5.353,3.056,7.396c2.032,2.021,4.499,3.047,7.388,3.047c2.887,0,5.354-1.025,7.383-3.047C189.45,107.389,190.465,104.914,190.465,101.993L190.465,101.993z M190.465,140.76c0-2.918-1.015-5.395-3.059-7.438c-2.029-2.041-4.496-3.047-7.383-3.047c-2.889,0-5.355,1.006-7.388,3.047c-2.029,2.043-3.056,4.52-3.056,7.438c0,2.922,1.026,5.398,3.056,7.439c2.032,2.021,4.499,3.047,7.388,3.047c2.887,0,5.354-1.025,7.383-3.047C189.45,146.158,190.465,143.682,190.465,140.76L190.465,140.76z"/></g></svg>',more_horizontal:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.76 3.58"><g><path d="M4.64,10.73a1.84,1.84,0,0,1,.65-.65,1.76,1.76,0,0,1,1.79,0A1.79,1.79,0,0,1,8,11.63a1.84,1.84,0,0,1-.25.9,1.69,1.69,0,0,1-.65.65,1.8,1.8,0,0,1-2.69-1.55A2.08,2.08,0,0,1,4.64,10.73Zm6.09,0a1.84,1.84,0,0,1,.65-.65,1.78,1.78,0,0,1,2.67,1.55,1.73,1.73,0,0,1-.24.9,1.84,1.84,0,0,1-.65.65,1.76,1.76,0,0,1-1.79,0,1.79,1.79,0,0,1-.64-2.44Zm6.08,0a1.69,1.69,0,0,1,.65-.65,1.76,1.76,0,0,1,1.79,0,1.79,1.79,0,0,1,.9,1.54,1.73,1.73,0,0,1-.24.9,1.84,1.84,0,0,1-.65.65,1.8,1.8,0,0,1-2.69-1.55A2,2,0,0,1,16.81,10.73Z" transform="translate(-4.39 -9.84)"/></g></svg>',more_vertical:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3.94 15.75"><g><path d="M12.28,7.69a1.92,1.92,0,0,1-1.39-.58,2,2,0,0,1-.58-1.39,1.92,1.92,0,0,1,.58-1.39,2,2,0,0,1,1.39-.58,1.92,1.92,0,0,1,1.39.58,2,2,0,0,1,.58,1.39,1.92,1.92,0,0,1-.58,1.39,2,2,0,0,1-1.39.58Zm0,2a1.92,1.92,0,0,1,1.39.58,2,2,0,0,1,.58,1.39A1.92,1.92,0,0,1,13.67,13a2,2,0,0,1-1.39.58A1.92,1.92,0,0,1,10.89,13a2,2,0,0,1-.58-1.39,2,2,0,0,1,2-2Zm0,5.9a1.92,1.92,0,0,1,1.39.58,2,2,0,0,1,.58,1.39,1.92,1.92,0,0,1-.58,1.39,2,2,0,0,1-1.39.58,1.92,1.92,0,0,1-1.39-.58,2,2,0,0,1-.58-1.39,1.92,1.92,0,0,1,.58-1.39,1.94,1.94,0,0,1,1.39-.58Z" transform="translate(-10.31 -3.75)"/></g></svg>',attachment:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8.38 15.68"><g><path d="M15.23,6h1v9.78a3.88,3.88,0,0,1-1.31,2.45,4,4,0,0,1-6.57-2.45V7A3,3,0,0,1,9.2,4.89a3,3,0,0,1,5,2.09v8.31a1.92,1.92,0,0,1-.58,1.39,2,2,0,0,1-1.39.58,1.92,1.92,0,0,1-1.39-.58,2,2,0,0,1-.58-1.39V8h1v7.32a1,1,0,0,0,.29.69,1,1,0,0,0,.69.28A.9.9,0,0,0,13,16a1,1,0,0,0,.29-.69V7a1.92,1.92,0,0,0-.58-1.39A2,2,0,0,0,11.27,5a1.92,1.92,0,0,0-1.39.58A2,2,0,0,0,9.33,7v8.31a3,3,0,1,0,5.9,0V6Z" transform="translate(-8.08 -3.78)"/></g></svg>',map:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.7 15.62"><g><path d="M12.05,12.42a2.93,2.93,0,1,1,2.07-5A2.88,2.88,0,0,1,15,9.49a3,3,0,0,1-.86,2.07,2.89,2.89,0,0,1-2.07.86Zm0-5.36a2.43,2.43,0,0,0-1.72,4.16,2.48,2.48,0,0,0,1.72.72,2.44,2.44,0,0,0,0-4.88Zm0-3.3A5.84,5.84,0,0,1,17.9,9.62a9.94,9.94,0,0,1-1.73,5A33.59,33.59,0,0,1,12.84,19a1.52,1.52,0,0,1-.23.2,1,1,0,0,1-.55.2h0a1,1,0,0,1-.55-.2,1.52,1.52,0,0,1-.23-.2,33.59,33.59,0,0,1-3.33-4.32,9.93,9.93,0,0,1-1.72-5,5.84,5.84,0,0,1,5.85-5.86ZM12,18.34l.08.05.06-.06a35.58,35.58,0,0,0,3.06-3.93,9.35,9.35,0,0,0,1.74-4.77,4.88,4.88,0,0,0-4.88-4.88A4.79,4.79,0,0,0,8.6,6.17,4.84,4.84,0,0,0,7.17,9.62,9.29,9.29,0,0,0,8.91,14.4,36,36,0,0,0,12,18.34Z" transform="translate(-6.2 -3.76)"/></g></svg>',magic_stick:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.73 15.75"><g><path d="M19.86,19.21a1,1,0,0,0,.28-.68,1,1,0,0,0-.28-.7L13,10.93a1,1,0,0,0-.7-.28,1,1,0,0,0-.68,1.65l6.9,6.9a1,1,0,0,0,.69.29.93.93,0,0,0,.69-.28ZM9.19,8.55a3,3,0,0,0,1.68,0,14.12,14.12,0,0,0,1.41-.32A11.26,11.26,0,0,0,10.8,7.06c-.56-.36-.86-.56-.91-.58S10,5.91,10,5.11s0-1.26-.15-1.37a4.35,4.35,0,0,0-1.19.71c-.53.4-.81.62-.87.68a9,9,0,0,0-2-.6,6.84,6.84,0,0,0-.76-.09s0,.27.08.77a8.6,8.6,0,0,0,.61,2q-.09.09-.69.87a3.59,3.59,0,0,0-.68,1.17c.12.17.57.23,1.36.15S7,9.26,7.15,9.23s.21.36.57.91a10.49,10.49,0,0,0,1.14,1.48c0-.
11.14-.57.31-1.4a3,3,0,0,0,0-1.67Z" transform="translate(-4.41 -3.74)"/></g></svg>',empty_file:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12.78 15.75"><g><path d="M14.73,3.76,18.67,7.7v9.84a2,2,0,0,1-2,2H7.84a1.89,1.89,0,0,1-1.38-.58,2,2,0,0,1-.57-1.39V5.73a1.93,1.93,0,0,1,.57-1.38,2,2,0,0,1,1.38-.58h6.62l.26,0v0Zm2.95,4.92h-2a1.93,1.93,0,0,1-1.38-.57,2,2,0,0,1-.58-1.4V6.17c0-.36,0-.84,0-1.43H7.85a1,1,0,0,0-.7.29,1,1,0,0,0-.29.7V17.54a1,1,0,0,0,.29.69,1,1,0,0,0,.69.29h8.85a1,1,0,0,0,.71-.29.92.92,0,0,0,.28-.69Zm0-1L14.73,4.74v2A1,1,0,0,0,15,7.4a1,1,0,0,0,.69.29Z" transform="translate(-5.89 -3.76)"/></g></svg>'};var l=i(68381),o=i.n(l);const s={_d:null,_w:null,isIE:null,isIE_Edge:null,isOSX_IOS:null,isChromium:null,isMobile:null,isResizeObserverSupported:null,_propertiesInit:function(){this._d||(this._d=document,this._w=window,this.isIE=navigator.userAgent.indexOf("Trident")>-1,this.isIE_Edge=navigator.userAgent.indexOf("Trident")>-1||navigator.appVersion.indexOf("Edge")>-1,this.isOSX_IOS=/(Mac|iPhone|iPod|iPad)/.test(navigator.platform),this.isChromium=!!window.chrome,this.isResizeObserverSupported="function"===typeof ResizeObserver,this.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"ontouchstart"in window)},_allowedEmptyNodeList:".se-component, pre, blockquote, hr, li, table, img, iframe, video, audio, canvas",_HTMLConvertor:function(e){const t={"&":"&amp;","\xa0":"&nbsp;","'":"&apos;",'"':"&quot;","<":"&lt;",">":"&gt;"};return e.replace(/&|\u00A0|'|"|<|>/g,function(e){return"string"===typeof t[e]?t[e]:e})},zeroWidthSpace:String.fromCharCode(8203),zeroWidthRegExp:new RegExp(String.fromCharCode(8203),"g"),onlyZeroWidthRegExp:new RegExp("^"+String.fromCharCode(8203)+"+$"),fontValueMap:{"xx-small":1,"x-small":2,small:3,medium:4,large:5,"x-large":6,"xx-large":7},onlyZeroWidthSpace:function(e){return null!==e&&void 0!==e&&("string"!==typeof e&&(e=e.textContent),""===e||this.onlyZeroWidthRegExp.test(e))},getXMLHttpRequest:function(){if(!this._w.ActiveXObject)return this._w.XMLHttpRequest?new XMLHttpRequest:null;try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){return null}}},getValues:function(e){return e?this._w.Object.keys(e).map(function(t){return e[t]}):[]},camelToKebabCase:function(e){return"string"===typeof e?e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}):e.map(function(e){return s.camelToKebabCase(e)})},kebabToCamelCase:function(e){return"string"===typeof e?e.replace(/-[a-zA-Z]/g,function(e){return e.replace("-","").toUpperCase()}):e.map(function(e){return s.camelToKebabCase(e)})},createElement:function(e){return this._d.createElement(e)},createTextNode:function(e){return this._d.createTextNode(e||"")},HTMLEncoder:function(e){const t={"<":"$lt;",">":"$gt;"};return e.replace(/<|>/g,function(e){return"string"===typeof t[e]?t[e]:e})},HTMLDecoder:function(e){const t={"$lt;":"<","$gt;":">"};return e.replace(/\$lt;|\$gt;/g,function(e){return"string"===typeof t[e]?t[e]:e})},hasOwn:function(e,t){return this._hasOwn.call(e,t)},_hasOwn:Object.prototype.hasOwnProperty,getIncludePath:function(e,t){let i="";const n=[],l="js"===t?"script":"link",o="js"===t?"src":"href";let s="(?:";for(let c=0,d=e.length;c<d;c++)s+=e[c]+(c<d-1?"|":")");const a=new this._w.RegExp("(^|.*[\\/])"+s+"(\\.[^\\/]+)?."+t+"(?:\\?.*|;.*)?$","i"),r=new this._w.RegExp(".+\\."+t+"(?:\\?.*|;.*)?$","i");for(let c=this._d.getElementsByTagName(l),d=0;d<c.length;d++)r.test(c[d][o])&&n.push(c[d]);for(let c=0;c<n.length;c++){let e=n[c][o].match(a);if(e){i=e[0];break}}if(""===i&&(i=n.length>0?n[0][o]:""),-1===i.indexOf(":/")&&"//"!==i.slice(0,2)&&(i=0===i.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+i:location.href.match(/^[^\?]*\/(?:)/)[0]+i),!i)throw"[SUNEDITOR.util.getIncludePath.fail] The SUNEDITOR installation path could not be automatically detected. (name: +"+name+", extension: "+t+")";return i},getPageStyle:function(e){let t="";const i=(e||this._d).styleSheets;for(let l,o=0,s=i.length;o<s;o++){try{l=i[o].cssRules}catch(n){continue}if(l)for(let e=0,i=l.length;e<i;e++)t+=l[e].cssText}return t},getIframeDocument:function(e){let t=e.contentWindow||e.contentDocument;return t.document&&(t=t.document),t},getAttributesToString:function(e,t){if(!e.attributes)return"";const i=e.attributes;let n="";for(let l=0,o=i.length;l<o;l++)t&&t.indexOf(i[l].name)>-1||(n+=i[l].name+'="'+i[l].value+'" ');return n},getByteLength:function(e){if(!e||!e.toString)return 0;e=e.toString();const t=this._w.encodeURIComponent;let i,n;return this.isIE_Edge?(n=this._w.unescape(t(e)).length,i=0,null!==t(e).match(/(%0A|%0D)/gi)&&(i=t(e).match(/(%0A|%0D)/gi).length),n+i):(n=new this._w.TextEncoder("utf-8").encode(e).length,i=0,null!==t(e).match(/(%0A|%0D)/gi)&&(i=t(e).match(/(%0A|%0D)/gi).length),n+i)},isWysiwygDiv:function(e){return e&&1===e.nodeType&&(this.hasClass(e,"se-wrapper-wysiwyg")||/^BODY$/i.test(e.nodeName))},isNonEditable:function(e){return e&&1===e.nodeType&&"false"===e.getAttribute("contenteditable")},isTextStyleElement:function(e){return e&&3!==e.nodeType&&/^(strong|span|font|b|var|i|em|u|ins|s|strike|del|sub|sup|mark|a|label|code|summary)$/i.test(e.nodeName)},isInputElement:function(e){return e&&1===e.nodeType&&/^(INPUT|TEXTAREA)$/i.test(e.nodeName)},isFormatElement:function(e){return e&&1===e.nodeType&&(/^(P|DIV|H[1-6]|PRE|LI|TH|TD|DETAILS)$/i.test(e.nodeName)||this.hasClass(e,"(\\s|^)__se__format__replace_.+(\\s|$)|(\\s|^)__se__format__free_.+(\\s|$)"))&&!this.isComponent(e)&&!this.isWysiwygDiv(e)},isRangeFormatElement:function(e){return e&&1===e.nodeType&&(/^(BLOCKQUOTE|OL|UL|FIGCAPTION|TABLE|THEAD|TBODY|TR|TH|TD|DETAILS)$/i.test(e.nodeName)||this.hasClass(e,"(\\s|^)__se__format__range_.+(\\s|$)"))},isClosureRangeFormatElement:function(e){return e&&1===e.nodeType&&(/^(TH|TD)$/i.test(e.nodeName)||this.hasClass(e,"(\\s|^)__se__format__range__closure_.+(\\s|$)"))},isFreeFormatElement:function(e){return e&&1===e.nodeType&&(/^PRE$/i.test(e.nodeName)||this.hasClass(e,"(\\s|^)__se__format__free_.+(\\s|$)"))&&!this.isComponent(e)&&!this.isWysiwygDiv(e)},isClosureFreeFormatElement:function(e){return e&&1===e.nodeType&&this.hasClass(e,"(\\s|^)__se__format__free__closure_.+(\\s|$)")},isComponent:function(e){return e&&(/se-component/.test(e.className)||/^(TABLE|HR)$/.test(e.nodeName))},isUneditableComponent:function(e){return e&&this.hasClass(e,"__se__uneditable")},isMediaComponent:function(e){return e&&/se-component/.test(e.className)},isNotCheckingNode:function(e){return e&&/katex|__se__tag/.test(e.className)},getFormatElement:function(e,t){if(!e)return null;for(t||(t=function(){return!0});e;){if(this.isWysiwygDiv(e))return null;if(this.isRangeFormatElement(e)&&e.firstElementChild,this.isFormatElement(e)&&t(e))return e;e=e.parentNode}return null},getRangeFormatElement:function(e,t){if(!e)return null;for(t||(t=function(){return!0});e;){if(this.isWysiwygDiv(e))return null;if(this.isRangeFormatElement(e)&&!/^(THEAD|TBODY|TR)$/i.test(e.nodeName)&&t(e))return e;e=e.parentNode}return null},getFreeFormatElement:function(e,t){if(!e)return null;for(t||(t=function(){return!0});e;){if(this.isWysiwygDiv(e))return null;if(this.isFreeFormatElement(e)&&t(e))return e;e=e.parentNode}return null},getClosureFreeFormatElement:function(e,t){if(!e)return null;for(t||(t=function(){return!0});e;){if(this.isWysiwygDiv(e))return null;if(this.isClosureFreeFormatElement(e)&&t(e))return e;e=e.parentNode}return null},copyTagAttributes:function(e,t,i){if(t.style.cssText){const i=t.style;for(let t=0,n=i.length;t<n;t++)e.style[i[t]]=i[i[t]]}const n=t.attributes;for(let l,o=0,s=n.length;o<s;o++)l=n[o].name.toLowerCase(),i&&i.indexOf(l)>-1||!n[o].value?e.removeAttribute(l):"style"!==l&&e.setAttribute(n[o].name,n[o].value)},copyFormatAttributes:function(e,t){(t=t.cloneNode(!1)).className=t.className.replace(/(\s|^)__se__format__[^\s]+/g,""),this.copyTagAttributes(e,t)},getArrayItem:function(e,t,i){if(!e||0===e.length)return null;t=t||function(){return!0};const n=[];for(let l,o=0,s=e.length;o<s;o++)if(l=e[o],t(l)){if(!i)return l;n.push(l)}return i?n:null},arrayIncludes:function(e,t){for(let i=0;i<e.length;i++)if(e[i]===t)return!0;return!1},getArrayIndex:function(e,t){let i=-1;for(let n=0,l=e.length;n<l;n++)if(e[n]===t){i=n;break}return i},nextIdx:function(e,t){let i=this.getArrayIndex(e,t);return-1===i?-1:i+1},prevIdx:function(e,t){let i=this.getArrayIndex(e,t);return-1===i?-1:i-1},getPositionIndex:function(e){let t=0;for(;e=e.previousSibling;)t+=1;return t},getNodePath:function(e,t,i){const n=[];let l=!0;return this.getParentElement(e,function(e){if(e===t&&(l=!1),l&&!this.isWysiwygDiv(e)){if(i&&3===e.n
1odeType){let t=null,n=null;i.s=i.e=0;let l=e.previousSibling;for(;l&&3===l.nodeType;)n=l.textContent.replace(this.zeroWidthRegExp,""),i.s+=n.length,e.textContent=n+e.textContent,t=l,l=l.previousSibling,this.removeItem(t);let o=e.nextSibling;for(;o&&3===o.nodeType;)n=o.textContent.replace(this.zeroWidthRegExp,""),i.e+=n.length,e.textContent+=n,t=o,o=o.nextSibling,this.removeItem(t)}n.push(e)}return!1}.bind(this)),n.map(this.getPositionIndex).reverse()},getNodeFromPath:function(e,t){let i,n=t;for(let l=0,o=e.length;l<o&&(i=n.childNodes,0!==i.length);l++)n=i.length<=e[l]?i[i.length-1]:i[e[l]];return n},isSameAttributes:function(e,t){if(3===e.nodeType&&3===t.nodeType)return!0;if(3===e.nodeType||3===t.nodeType)return!1;const i=e.style,n=t.style;let l=0;for(let c=0,d=i.length;c<d;c++)i[i[c]]===n[i[c]]&&l++;const o=e.classList,s=t.classList,a=this._w.RegExp;let r=0;for(let c=0,d=o.length;c<d;c++)a("(s|^)"+o[c]+"(s|$)").test(s.value)&&r++;return l===n.length&&l===i.length&&r===s.length&&r===o.length},isEmptyLine:function(e){return!e||!e.parentNode||!e.querySelector("IMG, IFRAME, AUDIO, VIDEO, CANVAS, TABLE")&&0===e.children.length&&this.onlyZeroWidthSpace(e.textContent)},isSpanWithoutAttr:function(e){return!!e&&1===e.nodeType&&/^SPAN$/i.test(e.nodeName)&&!e.className&&!e.style.cssText},isList:function(e){return e&&/^(OL|UL)$/i.test("string"===typeof e?e:e.nodeName)},isListCell:function(e){return e&&/^LI$/i.test("string"===typeof e?e:e.nodeName)},isTable:function(e){return e&&/^(TABLE|THEAD|TBODY|TR|TH|TD)$/i.test("string"===typeof e?e:e.nodeName)},isCell:function(e){return e&&/^(TD|TH)$/i.test("string"===typeof e?e:e.nodeName)},isBreak:function(e){return e&&/^BR$/i.test("string"===typeof e?e:e.nodeName)},isAnchor:function(e){return e&&/^A$/i.test("string"===typeof e?e:e.nodeName)},isMedia:function(e){return e&&/^(IMG|IFRAME|AUDIO|VIDEO|CANVAS)$/i.test("string"===typeof e?e:e.nodeName)},isFigures:function(e){return e&&(this.isMedia(e)||/^(FIGURE)$/i.test("string"===typeof e?e:e.nodeName))},isNumber:function(e){return!!e&&/^-?\d+(\.\d+)?$/.test(e+"")},getNumber:function(e,t){if(!e)return 0;let i=(e+"").match(/-?\d+(\.\d+)?/);return i&&i[0]?(i=i[0],t<0?1*i:0===t?this._w.Math.round(1*i):1*(1*i).toFixed(t)):0},getListChildren:function(e,t){const i=[];return e&&e.children&&0!==e.children.length?(t=t||function(){return!0},function n(l){if(e!==l&&t(l)&&i.push(l),l.children)for(let e=0,t=l.children.length;e<t;e++)n(l.children[e])}(e),i):i},getListChildNodes:function(e,t){const i=[];return e&&0!==e.childNodes.length?(t=t||function(){return!0},function n(l){e!==l&&t(l)&&i.push(l);for(let e=0,t=l.childNodes.length;e<t;e++)n(l.childNodes[e])}(e),i):i},getElementDepth:function(e){if(!e||this.isWysiwygDiv(e))return-1;let t=0;for(e=e.parentNode;e&&!this.isWysiwygDiv(e);)t+=1,e=e.parentNode;return t},compareElements:function(e,t){let i=e,n=t;for(;i&&n&&i.parentNode!==n.parentNode;)i=i.parentNode,n=n.parentNode;if(!i||!n)return{ancestor:null,a:e,b:t,result:0};const l=i.parentNode.childNodes,o=this.getArrayIndex(l,i),s=this.getArrayIndex(l,n);return{ancestor:i.parentNode,a:i,b:n,result:o>s?1:o<s?-1:0}},getParentElement:function(e,t){let i;if("function"===typeof t)i=t;else{let e;/^\./.test(t)?(e="className",t=t.split(".")[1]):/^#/.test(t)?(e="id",t="^"+t.split("#")[1]+"$"):/^:/.test(t)?(e="name",t="^"+t.split(":")[1]+"$"):(e="nodeName",t="^"+t+"$");const n=new this._w.RegExp(t,"i");i=function(t){return n.test(t[e])}}for(;e&&!i(e);){if(this.isWysiwygDiv(e))return null;e=e.parentNode}return e},getPreviousDeepestNode:function(e,t){let i=e.previousSibling;if(!i){for(let n=e.parentNode;n;n=n.parentNode){if(n===t)return null;if(n.previousSibling){i=n.previousSibling;break}}if(!i)return null}for(;i.lastChild;)i=i.lastChild;return i},getNextDeepestNode:function(e,t){let i=e.nextSibling;if(!i){for(let n=e.parentNode;n;n=n.parentNode){if(n===t)return null;if(n.nextSibling){i=n.nextSibling;break}}if(!i)return null}for(;i.firstChild;)i=i.firstChild;return i},getChildElement:function(e,t,i){let n;if("function"===typeof t)n=t;else{let e;/^\./.test(t)?(e="className",t=t.split(".")[1]):/^#/.test(t)?(e="id",t="^"+t.split("#")[1]+"$"):/^:/.test(t)?(e="name",t="^"+t.split(":")[1]+"$"):(e="nodeName",t="^"+("text"===t?"#"+t:t)+"$");const i=new this._w.RegExp(t,"i");n=function(t){return i.test(t[e])}}const l=this.getListChildNodes(e,function(e){return n(e)});return l[i?l.length-1:0]},getEdgeChildNodes:function(e,t){if(e){for(t||(t=e);e&&1===e.nodeType&&e.childNodes.length>0&&!this.isBreak(e);)e=e.firstChild;for(;t&&1===t.nodeType&&t.childNodes.length>0&&!this.isBreak(t);)t=t.lastChild;return{sc:e,ec:t||e}}},getOffset:function(e,t){let i=0,n=0,l=3===e.nodeType?e.parentElement:e;const o=this.getParentElement(e,this.isWysiwygDiv.bind(this));for(;l&&!this.hasClass(l,"se-container")&&l!==o;)i+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;
1const s=t&&/iframe/i.test(t.nodeName);return{left:i+(s?t.parentElement.offsetLeft:0),top:n-(o?o.scrollTop:0)+(s?t.parentElement.offsetTop:0)}},getOverlapRangeAtIndex:function(e,t,i,n){if(e<=n?t<i:t>i)return 0;const l=(e>i?e:i)-(t<n?t:n);return(l<0?-1*l:l)+1},changeTxt:function(e,t){e&&t&&(e.textContent=t)},changeElement:function(e,t){if("string"===typeof t)if(e.outerHTML)e.outerHTML=t;else{const i=this.createElement("DIV");i.innerHTML=t,t=i.firstChild,e.parentNode.replaceChild(t,e)}else 1===t.nodeType&&e.parentNode.replaceChild(t,e)},setStyle:function(e,t,i){e.style[t]=i,i||e.style.cssText||e.removeAttribute("style")},hasClass:function(e,t){if(e)return new this._w.RegExp(t).test(e.className)},addClass:function(e,t){if(!e)return;new this._w.RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className)||(e.className+=(e.className.length>0?" ":"")+t)},removeClass:function(e,t){if(!e)return;const i=new this._w.RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(i," ").trim(),e.className.trim()||e.removeAttribute("class")},toggleClass:function(e,t){if(!e)return;let i=!1;const n=new this._w.RegExp("(\\s|^)"+t+"(\\s|$)");return n.test(e.className)?e.className=e.className.replace(n," ").trim():(e.className+=" "+t,i=!0),e.className.trim()||e.removeAttribute("class"),i},isImportantDisabled:function(e){return e.hasAttribute("data-important-disabled")},setDisabledButtons:function(e,t,i){for(let n=0,l=t.length;n<l;n++){let l=t[n];!i&&this.isImportantDisabled(l)||(l.disabled=e),i&&(e?l.setAttribute("data-important-disabled",""):l.removeAttribute("data-important-disabled"))}},removeItem:function(e){e&&("function"===typeof e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e))},removeItemAllParents:function(e,t,i){if(!e)return null;let n=null;return t||(t=function(e){if(e===i||this.isComponent(e))return!1;const t=e.textContent.trim();return 0===t.length||/^(\n|\u200B)+$/.test(t)}.bind(this)),function e(i){if(!s.isWysiwygDiv(i)){const l=i.parentNode;l&&t(i)&&(n={sc:i.previousElementSibling,ec:i.nextElementSibling},s.removeItem(i),e(l))}}(e),n},detachNestedList:function(e,t){const i=this._deleteNestedList(e);let n,l,o;if(i){n=i.cloneNode(!1),l=i.childNodes;const t=this.getPositionIndex(e);for(;l[t];)n.appendChild(l[t])}else n=e;if(t)o=this.getListChildren(n,function(e){return this.isListCell(e)&&!e.previousElementSibling}.bind(this));else{const t=this.getElementDepth(e)+2;o=this.getListChildren(e,function(e){return this.isListCell(e)&&!e.previousElementSibling&&this.getElementDepth(e)===t}.bind(this))}for(let s=0,a=o.length;s<a;s++)this._deleteNestedList(o[s]);return i&&(i.parentNode.insertBefore(n,i.nextSibling),l&&0===l.length&&this.removeItem(i)),n===e?n.parentNode:n},_deleteNestedList:function(e){const t=e.parentNode;let i,n,l,o,s,a=t,r=a.parentNode;for(;this.isListCell(r);){for(o=this.getPositionIndex(e),i=r.nextElementSibling,n=r.parentNode,l=a;l;){if(a=a.nextSibling,this.isList(l)){for(s=l.childNodes;s[o];)n.insertBefore(s[o],i);0===s.length&&this.removeItem(l)}else n.appendChild(l);l=a}a=n,r=n.parentNode}return 0===t.children.length&&this.removeItem(t),n},splitElement:function(e,t,i){if(this.isWysiwygDiv(e))return e;if(t&&!this.isNumber(t)){const i=e.childNodes;let n=this.getPositionIndex(t);const l=e.cloneNode(!1),o=e.cloneNode(!1);for(let e=0,t=i.length;e<t;e++){if(e<n)l.appendChild(i[e]);else{if(!(e>n))continue;o.appendChild(i[e])}e--,t--,n--}return l.childNodes.length>0&&e.parentNode.insertBefore(l,e),o.childNodes.length>0&&e.parentNode.insertBefore(o,e.nextElementSibling),e}const n=e.parentNode;let l,o,a,r=0,c=1,d=!0;if((!i||i<0)&&(i=0),3===e.nodeType){if(r=this.getPositionIndex(e),t>=0&&e.length!==t){e.splitText(t);const i=this.getNodeFromPath([r+1],n);this.onlyZeroWidthSpace(i)&&(i.data=this.zeroWidthSpace)}}else if(1===e.nodeType){if(0===t){for(;e.firstChild;)e=e.firstChild;if(3===e.nodeType){const t=this.createTextNode(this.zeroWidthSpace);e.parentNode.insertBefore(t,e),e=t}}e.previousSibling?e=e.previousSibling:this.getElementDepth(e)===i&&(d=!1)}1===e.nodeType&&(c=0);let u=e;for(;this.getElementDepth(u)>i;)for(r=this.getPositionIndex(u)+c,u=u.parentNode,a=l,l=u.cloneNode(!1),o=u.childNodes,a&&(this.isListCell(l)&&this.isList(a)&&a.firstElementChild?(l.innerHTML=a.firstElementChild.innerHTML,s.removeItem(a.firstElementChild),a.children.length>0&&l.appendChild(a)):l.appendChild(a));o[r];)l.appendChild(o[r]);
1u.childNodes.length<=1&&(!u.firstChild||0===u.firstChild.textContent.length)&&(u.innerHTML="<br>");const h=u.parentNode;return d&&(u=u.nextSibling),l?(this.mergeSameTags(l,null,!1),this.mergeNestedTags(l,function(e){return this.isList(e)}.bind(this)),l.childNodes.length>0?h.insertBefore(l,u):l=u,this.isListCell(l)&&l.children&&this.isList(l.children[0])&&l.insertBefore(this.createElement("BR"),l.children[0]),0===n.childNodes.length&&this.removeItem(n),l):u},mergeSameTags:function(e,t,i){const n=this,l=t?t.length:0;let o=null;return l&&(o=this._w.Array.apply(null,new this._w.Array(l)).map(this._w.Number.prototype.valueOf,0)),function e(s,a,r){const c=s.childNodes;for(let d,u,h=0,g=c.length;h<g&&(d=c[h],u=c[h+1],d);h++)if(!(n.isBreak(d)||n.isMedia(d)||n.isInputElement(d)))if(i&&n._isIgnoreNodeChange(d)||!i&&(n.isTable(d)||n.isListCell(d)||n.isFormatElement(d)&&!n.isFreeFormatElement(d)))(n.isTable(d)||n.isListCell(d))&&e(d,a+1,h);else{if(1===g&&s.nodeName===d.nodeName&&s.parentNode){if(l){let e,i,o,r,c;for(let u=0;
1u<l;u++)if(e=t[u],e&&e[a]===h){for(i=d,o=s,r=a,c=!0;r>=0;){if(n.getArrayIndex(o.childNodes,i)!==e[r]){c=!1;break}i=d.parentNode,o=i.parentNode,r--}c&&(e.splice(a,1),e[a]=h)}}n.copyTagAttributes(d,s),s.parentNode.insertBefore(d,s),n.removeItem(s)}if(!u){1===d.nodeType&&e(d,a+1,h);break}if(d.nodeName===u.nodeName&&n.isSameAttributes(d,u)&&d.href===u.href){const e=d.childNodes;let i=0;for(let t=0,n=e.length;t<n;t++)e[t].textContent.length>0&&i++;const s=d.lastChild,c=u.firstChild;let g=0;if(s&&c){const e=3===s.nodeType&&3===c.nodeType;g=s.textContent.length;let n=s.previousSibling;for(;n&&3===n.nodeType;)g+=n.textContent.length,n=n.previousSibling;if(i>0&&3===s.nodeType&&3===c.nodeType&&(s.textContent.length>0||c.textContent.length>0)&&i--,l){let n=null;for(let d=0;d<l;d++)if(n=t[d],n&&n[a]>h){if(a>0&&n[a-1]!==r)continue;n[a]-=1,n[a+1]>=0&&n[a]===h&&(n[a+1]+=i,e&&s&&3===s.nodeType&&c&&3===c.nodeType&&(o[d]+=g))}}}if(3===d.nodeType){if(g=d.textContent.length,d.textContent+=u.textContent,l){let e=null;for(let n=0;n<l;n++)if(e=t[n],e&&e[a]>h){if(a>0&&e[a-1]!==r)continue;e[a]-=1,e[a+1]>=0&&e[a]===h&&(e[a+1]+=i,o[n]+=g)}}}else d.innerHTML+=u.innerHTML;n.removeItem(u),h--}else 1===d.nodeType&&e(d,a+1,h)}}(e,0,0),o},mergeNestedTags:function(e,t){"string"===typeof t?t=function(e){return this.test(e.tagName)}.bind(new this._w.RegExp("^("+(t||".+")+")$","i")):"function"!==typeof t&&(t=function(){return!0}),function e(i){let n=i.children;if(1===n.length&&n[0].nodeName===i.nodeName&&t(i)){const e=n[0];for(n=e.children;n[0];)i.appendChild(n[0]);i.removeChild(e)}for(let t=0,l=i.children.length;t<l;t++)e(i.children[t])}(e)},removeEmptyNode:function(e,t,i){const n=this;t&&(t=n.getParentElement(t,function(t){return e===t.parentElement})),function i(l){if(n._notTextNode(l)||l===t||n.isNonEditable(l))return 0;if(l===e||!n.onlyZeroWidthSpace(l.textContent)||l.firstChild&&n.isBreak(l.firstChild)||l.querySelector(n._allowedEmptyNodeList)){const e=l.children;for(let t=0,l=e.length,o=0;t<l;t++)e[t+o]&&!n.isComponent(e[t+o])&&(o+=i(e[t+o]))}else if(l.parentNode)return l.parentNode.removeChild(l),-1;return 0}(e),0===e.childNodes.length&&(i?this.removeItem(e):e.innerHTML="<br>")},htmlRemoveWhiteSpace:function(e){return e?e.trim().replace(/<\/?(?!strong|span|font|b|var|i|em|u|ins|s|strike|del|sub|sup|mark|a|label|code|summary)[^>^<]+>\s+(?=<)/gi,function(e){return e.replace(/\n/g,"").replace(/\s+/," ")}):""},htmlCompress:function(e){return e.replace(/\n/g,"").replace(/>\s+</g,"> <")},sortByDepth:function(e,t){const i=t?1:-1,n=-1*i;e.sort(function(e,t){return this.isListCell(e)&&this.isListCell(t)?(e=this.getElementDepth(e))>(t=this.getElementDepth(t))?i:e<t?n:0:0}.bind(this))},escapeStringRegexp:function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},_isExcludeSelectionElement:function(e){return!/FIGCAPTION/i.test(e.nodeName)&&(this.isComponent(e)||/FIGURE/i.test(e.nodeName))},_isIgnoreNodeChange:function(e){return e&&3!==e.nodeType&&(this.isNonEditable(e)||!this.isTextStyleElement(e))},_isMaintainedNode:function(e){return e&&3!==e.nodeType&&/^(a|label|code|summary)$/i.test("string"===typeof e?e:e.nodeName)},_isSizeNode:function(e){return e&&3!==e.nodeType&&this.isTextStyleElement(e)&&!!e.style.fontSize},_notTextNode:function(e){return e&&3!==e.nodeType&&(this.isComponent(e)||/^(br|input|select|canvas|img|iframe|audio|video)$/i.test("string"===typeof e?e:e.nodeName))},_disallowedTags:function(e){return/^(meta|script|link|style|[a-z]+\:[a-z]+)$/i.test(e.nodeName)},createTagsWhitelist:function(e){return new RegExp("<\\/?\\b(?!\\b"+(e||"").replace(/\|/g,"\\b|\\b")+"\\b)[^>]*>","gi")},createTagsBlacklist:function(e){return new RegExp("<\\/?\\b(?:\\b"+(e||"^").replace(/\|/g,"\\b|\\b")+"\\b)[^>]*>","gi")},_consistencyCheckOfHTML:function(e,t,i,n,l){const o=[],s=[],a=[],r=[],c=this.getListChildNodes(e,function(c){if(1!==c.nodeType)return this.isList(c.parentElement)&&o.push(c),!1;if(i.test(c.nodeName)||!t.test(c.nodeName)&&0===c.childNodes.length&&this.isNotCheckingNode(c))return o.push(c),!1;const d=!this.getParentElement(c,this.isNotCheckingNode);
1if(!this.isTable(c)&&!this.isListCell(c)&&!this.isAnchor(c)&&(this.isFormatElement(c)||this.isRangeFormatElement(c)||this.isTextStyleElement(c))&&0===c.childNodes.length&&d)return s.push(c),!1;if(this.isList(c.parentNode)&&!this.isList(c)&&!this.isListCell(c))return a.push(c),!1;if(this.isCell(c)){const e=c.firstElementChild;if(!this.isFormatElement(e)&&!this.isRangeFormatElement(e)&&!this.isComponent(e))return r.push(c),!1}if(d&&c.className){const e=new this._w.Array(c.classList).map(n).join(" ").trim();e?c.className=e:c.removeAttribute("class")}return l&&c.parentNode!==e&&d&&(this.isListCell(c)&&!this.isList(c.parentNode)||(this.isFormatElement(c)||this.isComponent(c))&&!this.isRangeFormatElement(c.parentNode)&&!this.getParentElement(c,this.isComponent))}.bind(this));for(let u=0,h=o.length;u<h;u++)this.removeItem(o[u]);const d=[];for(let u,h,g=0,p=c.length;g<p;g++)if(u=c[g],h=u.parentNode,h&&h.parentNode)if(this.getParentElement(u,this.isListCell)){const e=u.childNodes;for(let t=e.length-1;p>=0;t--)h.insertBefore(u,e[t]);d.push(u)}else h.parentNode.insertBefore(u,h),d.push(h);for(let u,h=0,g=d.length;h<g;h++)u=d[h],this.onlyZeroWidthSpace(u.textContent.trim())&&this.removeItem(u);for(let u=0,h=s.length;u<h;u++)this.removeItem(s[u]);for(let u,h,g,p,m=0,f=a.length;m<f;m++)if(u=a[m],p=u.parentNode,p)if(h=this.createElement("LI"),this.isFormatElement(u)){for(g=u.childNodes;g[0];)h.appendChild(g[0]);p.insertBefore(h,u),this.removeItem(u)}else u=u.nextSibling,h.appendChild(a[m]),p.insertBefore(h,u);for(let u,h,g=0,p=r.length;g<p;g++)u=r[g],h=this.createElement("DIV"),h.innerHTML=0===u.textContent.trim().length&&0===u.children.length?"<br>":u.innerHTML,u.innerHTML=h.outerHTML},_setDefaultOptionStyle:function(e,t){let i="";e.height&&(i+="height:"+e.height+";"),e.minHeight&&(i+="min-height:"+e.minHeight+";"),e.maxHeight&&(i+="max-height:"+e.maxHeight+";"),e.position&&(i+="position:"+e.position+";"),e.width&&(i+="width:"+e.width+";"),e.minWidth&&(i+="min-width:"+e.minWidth+";"),e.maxWidth&&(i+="max-width:"+e.maxWidth+";");let n="",l="",o="";const s=(t=i+t).split(";");for(let a,r=0,c=s.length;r<c;r++)a=s[r].trim(),a&&(/^(min-|max-)?width\s*:/.test(a)||/^(z-index|position)\s*:/.test(a)?n+=a+";":/^(min-|max-)?height\s*:/.test(a)?(/^height/.test(a)&&"auto"===a.split(":")[1].trim()&&(e.height="auto"),l+=a+";"):o+=a+";");return{top:n,frame:l,editor:o}},_setIframeDocument:function(e,t){e.setAttribute("scrolling","auto"),e.contentDocument.head.innerHTML='<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">'+this._setIframeCssTags(t),e.contentDocument.body.className=t._editableClass,e.contentDocument.body.setAttribute("contenteditable",!0),e.contentDocument.body.setAttribute("autocorrect","off")},_setIframeCssTags:function(e){const t=e.iframeCSSFileName,i=this._w.RegExp;let n="";for(let l,o=0,s=t.length;o<s;o++){if(l=[],/(^https?:\/\/)|(^data:text\/css,)/.test(t[o]))l.push(t[o]);else{const e=new i("(^|.*[\\/])"+t[o]+"(\\..+)?\\.css(?:\\?.*|;.*)?$","i");for(let t,i=document.getElementsByTagName("link"),n=0,o=i.length;n<o;n++)t=i[n].href.match(e),t&&l.push(t[0])}if(!l||0===l.length)throw'[SUNEDITOR.constructor.iframe.fail] The suneditor CSS files installation path could not be automatically detected. Please set the option property "iframeCSSFileName" before creating editor instances.';for(let e=0,t=l.length;e<t;e++)n+='<link href="'+l[e]+'" rel="stylesheet">'}return n+("auto"===e.height?"<style>\n/** Iframe height auto */\nbody{height: min-content; overflow: hidden;}\n</style>":"")}},a=s,r={init:function(e,t){"object"!==typeof t&&(t={});const i=document;this._initOptions(e,t);const n=i.createElement("DIV");n.className="sun-editor"+(t.rtl?" se-rtl":""),e.id&&(n.id="suneditor_"+e.id);const l=i.createElement("DIV");l.className="se-container";const o=this._createToolBar(i,t.buttonList,t.plugins,t),s=o.element.cloneNode(!1);s.className+=" se-toolbar-shadow",o.element.style.visibility="hidden",o.pluginCallButtons.math&&this._checkKatexMath(t.katex);const a=i.createElement("DIV");a.className="se-arrow";const r=i.createElement("DIV");r.className="se-toolbar-sticky-dummy";const c=i.createElement("DIV");c.className="se-wrapper";const d=this._initElements(t,n,o.element,a),u=d.bottomBar,h=d.wysiwygFrame,g=d.placeholder;let p=d.codeView;
1const m=u.resizingBar,f=u.navigation,b=u.charWrapper,_=u.charCounter,v=i.createElement("DIV");v.className="se-loading-box sun-editor-common",v.innerHTML='<div class="se-loading-effect"></div>';const y=i.createElement("DIV");y.className="se-line-breaker",y.innerHTML='<button type="button" class="se-btn">'+t.icons.line_break+"</button>";const w=i.createElement("DIV");w.className+="se-line-breaker-component";const C=w.cloneNode(!0);w.innerHTML=C.innerHTML=t.icons.line_break;const x=i.createElement("DIV");x.className="se-resizing-back";const S=i.createElement("INPUT");S.tabIndex=-1,S.style.cssText="position: fixed !important; top: -10000px !important; display: block !important; width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important;";const k=t.toolbarContainer;k&&(k.appendChild(o.element),k.appendChild(s));const E=t.resizingBarContainer;return m&&E&&E.appendChild(m),c.appendChild(p),g&&c.appendChild(g),k||(l.appendChild(o.element),l.appendChild(s)),l.appendChild(r),l.appendChild(c),l.appendChild(x),l.appendChild(v),l.appendChild(y),l.appendChild(w),l.appendChild(C),l.appendChild(S),m&&!E&&l.appendChild(m),n.appendChild(l),p=this._checkCodeMirror(t,p),{constructed:{_top:n,_relative:l,_toolBar:o.element,_toolbarShadow:s,_menuTray:o._menuTray,_editorArea:c,_wysiwygArea:h,_codeArea:p,_placeholder:g,_resizingBar:m,_navigation:f,_charWrapper:b,_charCounter:_,_loading:v,_lineBreaker:y,_lineBreaker_t:w,_lineBreaker_b:C,_resizeBack:x,_stickyDummy:r,_arrow:a,_focusTemp:S},options:t,plugins:o.plugins,pluginCallButtons:o.pluginCallButtons,_responsiveButtons:o.responsiveButtons}},_checkCodeMirror:function(e,t){if(e.codeMirror){const i=[{mode:"htmlmixed",htmlMode:!0,lineNumbers:!0,lineWrapping:!0},e.codeMirror.options||{}].reduce(function(e,t){for(let i in t)a.hasOwn(t,i)&&(e[i]=t[i]);return e},{});"auto"===e.height&&(i.viewportMargin=1/0,i.height="auto");const n=e.codeMirror.src.fromTextArea(t,i);n.display.wrapper.style.cssText=t.style.cssText,e.codeMirrorEditor=n,(t=n.display.wrapper).className+=" se-wrapper-code-mirror"}return t},_checkKatexMath:function(e){if(!e)throw Error('[SUNEDITOR.create.fail] To use the math button you need to add a "katex" object to the options.');const t=[{throwOnError:!1},e.options||{}].reduce(function(e,t){for(let i in t)a.hasOwn(t,i)&&(e[i]=t[i]);return e},{});e.options=t},_setOptions:function(e,t,i){this._initOptions(t.element.originElement,e);const n=t.element,l=n.relative,o=n.editorArea,s=e.toolbarContainer&&e.toolbarContainer!==i.toolbarContainer,r=e.lang!==i.lang||e.buttonList!==i.buttonList||e.mode!==i.mode||s,c=this._createToolBar(document,r?e.buttonList:i.buttonList,e.plugins,e);c.pluginCallButtons.math&&this._checkKatexMath(e.katex);const d=document.createElement("DIV");d.className="se-arrow",r&&(c.element.style.visibility="hidden",s?(e.toolbarContainer.appendChild(c.element),n.toolbar.parentElement.removeChild(n.toolbar)):n.toolbar.parentElement.replaceChild(c.element,n.toolbar),n.toolbar=c.element,n._menuTray=c._menuTray,n._arrow=d);const u=this._initElements(e,n.topArea,r?c.element:n.toolbar,d),h=u.bottomBar,g=u.wysiwygFrame,p=u.placeholder;let m=u.codeView;return n.resizingBar&&a.removeItem(n.resizingBar),h.resizingBar&&(e.resizingBarContainer&&e.resizingBarContainer!==i.resizingBarContainer?e.resizingBarContainer.appendChild(h.resizingBar):l.appendChild(h.resizingBar)),o.innerHTML="",o.appendChild(m),p&&o.appendChild(p),m=this._checkCodeMirror(e,m),n.resizingBar=h.resizingBar,n.navigation=h.navigation,n.charWrapper=h.charWrapper,n.charCounter=h.charCounter,n.wysiwygFrame=g,n.code=m,n.placeholder=p,e.rtl?a.addClass(n.topArea,"se-rtl"):a.removeClass(n.topArea,"se-rtl"),{callButtons:c.pluginCallButtons,plugins:c.plugins,toolbar:c}},_initElements:function(e,t,i,n){t.style.cssText=e._editorStyles.top,/inline/i.test(e.mode)?(i.className+=" se-toolbar-inline",i.style.width=e.toolbarWidth):/balloon/i.test(e.mode)&&(i.className+=" se-toolbar-balloon",i.style.width=e.toolbarWidth,i.appendChild(n));const l=document.createElement(e.iframe?"IFRAME":"DIV");if(l.className="se-wrapper-inner se-wrapper-wysiwyg",e.iframe)l.allowFullscreen=!0,l.frameBorder=0,l.style.cssText=e._editorStyles.frame,l.className+=e.className;else{l.setAttribute("contenteditable",!0),l.setAttribute("autocorrect","off"),l.setAttribute("scrolling","auto");for(let t in e.iframeAttributes)l.setAttribute(t,e.iframeAttributes[t]);l.className+=" "+e._editableClass,l.style.cssText=e._editorStyles.frame+e._editorStyles.editor,l.className+=e.className}const o=document.createElement("TEXTAREA");o.className="se-wrapper-inner se-wrapper-code"+e.className,o.style.cssText=e._editorStyles.frame,o.style.display="none","auto"===e.height&&(o.style.overflow="hidden");let s=null,a=null,r=null,c=null;if(e.resizingBar&&(s=document.createElement("DIV"),s.className="se-resizing-bar sun-editor-common",a=document.createElement("DIV"),a.className="se-navigation sun-editor-common",s.appendChild(a),e.charCounter)){if(r=d
1ocument.createElement("DIV"),r.className="se-char-counter-wrapper",e.charCounterLabel){const t=document.createElement("SPAN");t.className="se-char-label",t.textContent=e.charCounterLabel,r.appendChild(t)}if(c=document.createElement("SPAN"),c.className="se-char-counter",c.textContent="0",r.appendChild(c),e.maxCharCount>0){const t=document.createElement("SPAN");t.textContent=" / "+e.maxCharCount,r.appendChild(t)}s.appendChild(r)}let d=null;return e.placeholder&&(d=document.createElement("SPAN"),d.className="se-placeholder",d.innerText=e.placeholder),{bottomBar:{resizingBar:s,navigation:a,charWrapper:r,charCounter:c},wysiwygFrame:l,codeView:o,placeholder:d}},_initOptions:function(e,t){const i={};if(t.plugins){const e=t.plugins,n=e.length?e:Object.keys(e).map(function(t){return e[t]});for(let t,l=0,o=n.length;l<o;l++)t=n[l].default||n[l],i[t.name]=t}t.plugins=i,t.strictMode=!1!==t.strictMode,t.strictHTMLValidation=!1!==t.strictHTMLValidation,t.lang=t.lang||o(),t.value="string"===typeof t.value?t.value:null,t.allowedClassNames=new a._w.RegExp((t.allowedClassNames&&"string"===typeof t.allowedClassNames?t.allowedClassNames+"|":"")+"^__se__|se-|katex"),t.historyStackDelayTime="number"===typeof t.historyStackDelayTime?t.historyStackDelayTime:400,t.frameAttrbutes=t.frameAttrbutes||{},t.defaultTag="string"===typeof t.defaultTag&&t.defaultTag.length>0?t.defaultTag:"p";const l=t.textTags=[{bold:"STRONG",underline:"U",italic:"EM",strike:"DEL",sub:"SUB",sup:"SUP"},t.textTags||{}].reduce(function(e,t){for(let i in t)e[i]=t[i];return e},{});t._textTagsMap={strong:l.bold.toLowerCase(),b:l.bold.toLowerCase(),u:l.underline.toLowerCase(),ins:l.underline.toLowerCase(),em:l.italic.toLowerCase(),i:l.italic.toLowerCase(),del:l.strike.toLowerCase(),strike:l.strike.toLowerCase(),s:l.strike.toLowerCase(),sub:l.sub.toLowerCase(),sup:l.sup.toLowerCase()},t._defaultCommand={bold:t.textTags.bold,underline:t.textTags.underline,italic:t.textTags.italic,strike:t.textTags.strike,subscript:t.textTags.sub,superscript:t.textTags.sup},t.__allowedScriptTag=!0===t.__allowedScriptTag;t.tagsBlacklist=t.tagsBlacklist||"",t._defaultTagsWhitelist=("string"===typeof t._defaultTagsWhitelist?t._defaultTagsWhitelist:"br|p|div|pre|blockquote|h1|h2|h3|h4|h5|h6|ol|ul|li|hr|figure|figcaption|img|iframe|audio|video|source|table|thead|tbody|tr|th|td|a|b|strong|var|i|em|u|ins|s|span|strike|del|sub|sup|code|svg|path|details|summary")+(t.__allowedScriptTag?"|script":""),t._editorTagsWhitelist="*"===t.addTagsWhitelist?"*":this._setWhitelist(t._defaultTagsWhitelist+("string"===typeof t.addTagsWhitelist&&t.addTagsWhitelist.length>0?"|"+t.addTagsWhitelist:""),t.tagsBlacklist),t.pasteTagsBlacklist=t.tagsBlacklist+(t.tagsBlacklist&&t.pasteTagsBlacklist?"|"+t.pasteTagsBlacklist:t.pasteTagsBlacklist||""),t.pasteTagsWhitelist="*"===t.pasteTagsWhitelist?"*":this._setWhitelist("string"===typeof t.pasteTagsWhitelist?t.pasteTagsWhitelist:t._editorTagsWhitelist,t.pasteTagsBlacklist),t.attributesWhitelist=t.attributesWhitelist&&"object"===typeof t.attributesWhitelist?t.attributesWhitelist:null,t.attributesBlacklist=t.attributesBlacklist&&"object"===typeof t.attributesBlacklist?t.attributesBlacklist:null,t.mode=t.mode||"classic",t.rtl=!!t.rtl,t.lineAttrReset=["id"].concat(t.lineAttrReset&&"string"===typeof t.lineAttrReset?t.lineAttrReset.toLowerCase().split("|"):[]),t._editableClass="sun-editor-editable"+(t.rtl?" se-rtl":""),t._printClass="string"===typeof t._printClass?t._printClass:null,t.toolbarWidth=t.toolbarWidth?a.isNumber(t.toolbarWidth)?t.toolbarWidth+"px":t.toolbarWidth:"auto",t.toolbarContainer="string"===typeof t.toolbarContainer?document.querySelector(t.toolbarContainer):t.toolbarContainer,t.stickyToolbar=/balloon/i.test(t.mode)||t.toolbarContainer?-1:void 0===t.stickyToolbar?0:/^\d+/.test(t.stickyToolbar)?a.getNumber(t.stickyToolbar,0):-1,t.hideToolbar=!!t.hideToolbar,t.fullScreenOffset=void 0===t.fullScreenOffset?0:/^\d+/.test(t.fullScreenOffset)?a.getNumber(t.fullScreenOffset,0):0,t.fullPage=!!t.fullPage,t.iframe=t.fullPage||!!t.iframe,t.iframeAttributes=t.iframeAttributes||{},t.iframeCSSFileName=t.iframe?"string"===typeof t.iframeCSSFileName?[t.iframeCSSFileName]:t.iframeCSSFileName||["suneditor"]:null,t.previewTemplate="string"===typeof t.previewTemplate?t.previewTemplate:null,t.printTemplate="string"===typeof t.printTemplate?t.printTemplate:null,t.codeMirror=t.codeMirror?t.codeMirror.src?t.codeMirror:{src:t.codeMirror}:null,t.katex=t.katex?t.katex.src?t.katex:{src:t.katex}:null,t.mathFontSize=t.mathFontSize?t.mathFontSize:[{text:"1",value:"1em"},{text:"1.5",value:"1.5em"},{text:"2",value:"2em"},{text:"2.5",value:"2.5em"}],t.position="string"===typeof t.position?t.position:null,t.display=t.display||("none"!==e.style.display&&e.style.display?e.style.display:"block"),t.popupDisplay=t.popupDisplay||"full",t.resizingBar=void 0===t.resizingBar?!/inline|balloon/i.test(t.mode):t.resizingBar,t.showPathLabel=!!t.resizingBar&&("boolean"!==typeof t.showPathLabel||t.showPathLabel),t.resizeEnable=void 0===t.resizeEnable||!!t.resizeEnable,t.resizingBarContainer="string"===typeof t.resizingBarContainer?document.querySelector(t.resizingBarContainer):t.resizingBarContainer,t.charCounter=t.maxCharCount>0||"boolean"===typeof t.charCounter&&t.charCounter,t.charCounterType="string"===typeof t.charCounterType?t.charCounterType:"char",t.charCounterLabel="string"===typeof t.charCounterLabel?t.charCounterLabel.trim():null,t.maxCharCount=a.isNumber(t.maxCharCount)&&t.maxCharCount>-1?1*t.maxCharCount:null,t.width=t.width?a.isNumber(t.width)?t.width+"px":t.width:e.clientWidth?e.clientWidth+"px":"100%",t.minWidth=(a.isNumber(t.minWidth)?t.minWidth+"px":t.minWidth)||"",t.maxWidth=(a.isNumber(t.maxWidth)?t.maxWidth+"px":t.maxWidth)||"",t.height=t.height?a.isNumber(t.height)?t.height+"px":t.height:e.clientHeight?e.clientHeight+"px":"auto",t.minHeight=(a.isNumber(t.minHeight)?t.minHeight+"px":t.minHeight)||"",t.maxHeight=(a.isNumber(t.maxHeight)?t.maxHeight+"px":t.maxHeight)||"",t.className="string"===typeof t.className&&t.className.length>0?" "+t.className:"",t.defaultStyle="string"===typeof t.defaultStyle?t.defaultStyle:"",t.font=t.font?t.font:["Arial","Comic Sans MS","Courier New","Impact","Georgia","tahoma","Trebuchet MS","Verdana"],t.fontSize=t.fontSize?t.fontSize:null,t.formats=t.formats?t.formats:null,t.colorList=t.colorList?t.colorList:null,t.lineHeights=t.lineHeights?t.lineHeights:null,t.paragraphStyles=t.paragraphStyles?t.paragraphStyles:null,t.textStyles=t.textStyles?t.textStyles:null,t.fontSizeUnit="string"===typeof t.fontSizeUnit&&t.fontSizeUnit.trim().toLowerCase()||"px",t.alignItems="object"===typeof t.alignItems?t.alignItems:t.rtl?["right","center","left","justify"]:["left","center","right","justify"],t.imageResizing=void 0===t.imageResizing||t.imageResizing,t.imageHeightShow=void 0===t.imageHeightShow||!!t.imageHeightShow,t.imageAlignShow=void 0===t.imageAlignShow||!!t.imageAlignShow,t.imageWidth=t.imageWidth?a.isNumber(t.imageWidth)?t.imageWidth+"px":t.imageWidth:"auto",t.imageHeight=t.imageHeight?a.isNumber(t.imageHeight)?t.imageHeight+"px":t.imageHeight:"auto",t.imageSizeOnlyPercentage=!!t.imageSizeOnlyPercentage,t._imageSizeUnit=t.imageSizeOnlyPercentage?"%":"px",t.imageRotation=void 0!==t.imageRotation?t.imageRotation:!(t.imageSizeOnlyPercentage||!t.imageHeightShow),t.imageFileInput=void 0===t.imageFileInput||t.imageFileInput,t.imageUrlInput=void 0===t.imageUrlInput||!t.imageFileInput||t.imageUrlInput,t.imageUploadHeader=t.imageUploadHeader||null,t.imageUploadUrl="string"===typeof t.imageUploadUrl?t.imageUploadUrl:null,t.imageUploadSizeLimit=/\d+/.test(t.imageUploadSizeLimit)?a.getNumber(t.imageUploadSizeLimit,0):null,t.imageMultipleFile=!!t.imageMultipleFile,t.imageAccept="string"!==typeof t.imageAccept||"*"===t.imageAccept.trim()?"image/*":t.imageAccept.trim()||"image/*",t.imageGalleryData=t.imageGalleryData||null,t.imageGalleryUrl="string"===typeof t.imageGalleryUrl?t.imageGalleryUrl:null,t.imageGalleryHeader=t.imageGalleryHeader||null,t.videoResizing=void 0===t.videoResizing||t.videoResizing,t.videoHeightShow=void 0===t.videoHeightShow||!!t.videoHeightShow,t.videoAlignShow=void 0===t.videoAlignShow||!!t.videoAlignShow,t.videoRatioSh
1ow=void 0===t.videoRatioShow||!!t.videoRatioShow,t.videoWidth=t.videoWidth&&a.getNumber(t.videoWidth,0)?a.isNumber(t.videoWidth)?t.videoWidth+"px":t.videoWidth:"",t.videoHeight=t.videoHeight&&a.getNumber(t.videoHeight,0)?a.isNumber(t.videoHeight)?t.videoHeight+"px":t.videoHeight:"",t.videoSizeOnlyPercentage=!!t.videoSizeOnlyPercentage,t._videoSizeUnit=t.videoSizeOnlyPercentage?"%":"px",t.videoRotation=void 0!==t.videoRotation?t.videoRotation:!(t.videoSizeOnlyPercentage||!t.videoHeightShow),t.videoRatio=a.getNumber(t.videoRatio,4)||.5625,t.videoRatioList=t.videoRatioList?t.videoRatioList:null,t.youtubeQuery=(t.youtubeQuery||"").replace("?",""),t.vimeoQuery=(t.vimeoQuery||"").replace("?",""),t.videoFileInput=!!t.videoFileInput,t.videoUrlInput=void 0===t.videoUrlInput||!t.videoFileInput||t.videoUrlInput,t.videoUploadHeader=t.videoUploadHeader||null,t.videoUploadUrl="string"===typeof t.videoUploadUrl?t.videoUploadUrl:null,t.videoUploadSizeLimit=/\d+/.test(t.videoUploadSizeLimit)?a.getNumber(t.videoUploadSizeLimit,0):null,t.videoMultipleFile=!!t.videoMultipleFile,t.videoTagAttrs=t.videoTagAttrs||null,t.videoIframeAttrs=t.videoIframeAttrs||null,t.videoAccept="string"!==typeof t.videoAccept||"*"===t.videoAccept.trim()?"video/*":t.videoAccept.trim()||"video/*",t.audioWidth=t.audioWidth?a.isNumber(t.audioWidth)?t.audioWidth+"px":t.audioWidth:"",t.audioHeight=t.audioHeight?a.isNumber(t.audioHeight)?t.audioHeight+"px":t.audioHeight:"",t.audioFileInput=!!t.audioFileInput,t.audioUrlInput=void 0===t.audioUrlInput||!t.audioFileInput||t.audioUrlInput,t.audioUploadHeader=t.audioUploadHeader||null,t.audioUploadUrl="string"===typeof t.audioUploadUrl?t.audioUploadUrl:null,t.audioUploadSizeLimit=/\d+/.test(t.audioUploadSizeLimit)?a.getNumber(t.audioUploadSizeLimit,0):null,t.audioMultipleFile=!!t.audioMultipleFile,t.audioTagAttrs=t.audioTagAttrs||null,t.audioAccept="string"!==typeof t.audioAccept||"*"===t.audioAccept.trim()?"audio/*":t.audioAccept.trim()||"audio/*",t.tableCellControllerPosition="string"===typeof t.tableCellControllerPosition?t.tableCellControllerPosition.toLowerCase():"cell",t.linkTargetNewWindow=!!t.linkTargetNewWindow,t.linkProtocol="string"===typeof t.linkProtocol?t.linkProtocol:null,t.linkRel=Array.isArray(t.linkRel)?t.linkRel:[],t.linkRelDefault=t.linkRelDefault||{},t.tabDisable=!!t.tabDisable,t.shortcutsDisable=Array.isArray(t.shortcutsDisable)?t.shortcutsDisable:[],t.shortcutsHint=void 0===t.shortcutsHint||!!t.shortcutsHint,t.callBackSave=t.callBackSave?t.callBackSave:null,t.templates=t.templates?t.templates:null,t.placeholder="string"===typeof t.placeholder?t.placeholder:null,t.mediaAutoSelect=void 0===t.mediaAutoSelect||!!t.mediaAutoSelect,t.buttonList=t.buttonList?t.buttonList:[["undo","redo"],["bold","underline","italic","strike","subscript","superscript"],["removeFormat"],["outdent","indent"],["fullScreen","showBlocks","codeView"],["preview","print"]],t.rtl&&(t.buttonList=t.buttonList.reverse()),t.icons=t.icons&&"object"===typeof t.icons?[n,t.icons].reduce(function(e,t){for(let i in t)a.hasOwn(t,i)&&(e[i]=t[i]);return e},{}):n,t.icons=t.rtl?[t.icons,t.icons.rtl].reduce(function(e,t){for(let i in t)a.hasOwn(t,i)&&(e[i]=t[i]);return e},{}):t.icons,t.__listCommonStyle=t.__listCommonStyle||["fontSize","color","fontFamily","fontWeight","fontStyle"],t._editorStyles=a._setDefaultOptionStyle(t,t.defaultStyle)},_setWhitelist:function(e,t){if("string"!==typeof t)return e;t=t.split("|"),e=e.split("|");for(let i,n=0,l=t.length;n<l;n++)i=e.indexOf(t[n]),i>-1&&e.splice(i,1);return e.join("|")},_defaultButtons:function(e){const t=e.icons,i=e.lang,n=a.isOSX_IOS?"\u2318":"CTRL",l=a.isOSX_IOS?"\u21e7":"+SHIFT",o=e.shortcutsHint?e.shortcutsDisable:["bold","strike","underline","italic","undo","indent","save"],s=e.rtl?["[","]"]:["]","["],r=e.rtl?[t.outdent,t.indent]:[t.indent,t.outdent];return{bold:["",i.toolbar.bold+'<span class="se-shortcut">'+(o.indexOf("bold")>-1?"":n+'+<span class="se-shortcut-key">B</span>')+"</span>","bold","",t.bold],underline:["",i.toolbar.underline+'<span class="se-shortcut">'+(o.indexOf("underline")>-1?"":n+'+<span class="se-shortcut-key">U</span>')+"</span>
1","underline","",t.underline],italic:["",i.toolbar.italic+'<span class="se-shortcut">'+(o.indexOf("italic")>-1?"":n+'+<span class="se-shortcut-key">I</span>')+"</span>","italic","",t.italic],strike:["",i.toolbar.strike+'<span class="se-shortcut">'+(o.indexOf("strike")>-1?"":n+l+'+<span class="se-shortcut-key">S</span>')+"</span>","strike","",t.strike],subscript:["",i.toolbar.subscript,"SUB","",t.subscript],superscript:["",i.toolbar.superscript,"SUP","",t.superscript],removeFormat:["",i.toolbar.removeFormat,"removeFormat","",t.erase],indent:["",i.toolbar.indent+'<span class="se-shortcut">'+(o.indexOf("indent")>-1?"":n+'+<span class="se-shortcut-key">'+s[0]+"</span>")+"</span>","indent","",r[0]],outdent:["",i.toolbar.outdent+'<span class="se-shortcut">'+(o.indexOf("indent")>-1?"":n+'+<span class="se-shortcut-key">'+s[1]+"</span>")+"</span>","outdent","",r[1]],fullScreen:["se-code-view-enabled se-resizing-enabled",i.toolbar.fullScreen,"fullScreen","",t.expansion],showBlocks:["",i.toolbar.showBlocks,"showBlocks","",t.show_blocks],codeView:["se-code-view-enabled se-resizing-enabled",i.toolbar.codeView,"codeView","",t.code_view],undo:["",i.toolbar.undo+'<span class="se-shortcut">'+(o.indexOf("undo")>-1?"":n+'+<span class="se-shortcut-key">Z</span>')+"</span>","undo","",t.undo],redo:["",i.toolbar.redo+'<span class="se-shortcut">'+(o.indexOf("undo")>-1?"":n+'+<span class="se-shortcut-key">Y</span> / '+n+l+'+<span class="se-shortcut-key">Z</span>')+"</span>","redo","",t.redo],preview:["se-resizing-enabled",i.toolbar.preview,"preview","",t.preview],print:["se-resizing-enabled",i.toolbar.print,"print","",t.print],dir:["",i.toolbar[e.rtl?"dir_ltr":"dir_rtl"],"dir","",t[e.rtl?"dir_ltr":"dir_rtl"]],dir_ltr:["",i.toolbar.dir_ltr,"dir_ltr","",t.dir_ltr],dir_rtl:["",i.toolbar.dir_rtl,"dir_rtl","",t.dir_rtl],save:["se-resizing-enabled",i.toolbar.save+'<span class="se-shortcut">'+(o.indexOf("save")>-1?"":n+'+<span class="se-shortcut-key">S</span>')+"</span>","save","",t.save],blockquote:["",i.toolbar.tag_blockquote,"blockquote","command",t.blockquote],font:["se-btn-select se-btn-tool-font",i.toolbar.font,"font","submenu",'<span class="txt">'+i.toolbar.font+"</span>"+t.arrow_down],formatBlock:["se-btn-select se-btn-tool-format",i.toolbar.formats,"formatBlock","submenu",'<span class="txt">'+i.toolbar.formats+"</span>"+t.arrow_down],fontSize:["se-btn-select se-btn-tool-size",i.toolbar.fontSize,"fontSize","submenu",'<span class="txt">'+i.toolbar.fontSize+"</span>"+t.arrow_down],fontColor:["",i.toolbar.fontColor,"fontColor","submenu",t.font_color],hiliteColor:["",i.toolbar.hiliteColor,"hiliteColor","submenu",t.highlight_color],align:["se-btn-align",i.toolbar.align,"align","submenu",e.rtl?t.align_right:t.align_left],list:["",i.toolbar.list,"list","submenu",t.list_number],horizontalRule:["btn_line",i.toolbar.horizontalRule,"horizontalRule","submenu",t.horizontal_rule],table:["",i.toolbar.table,"table","submenu",t.table],lineHeight:["",i.toolbar.lineHeight,"lineHeight","submenu",t.line_height],template:["",i.toolbar.template,"template","submenu",t.template],paragraphStyle:["",i.toolbar.paragraphStyle,"paragraphStyle","submenu",t.paragraph_style],textStyle:["",i.toolbar.textStyle,"textStyle","submenu",t.text_style],link:["",i.toolbar.link,"link","dialog",t.link],image:["",i.toolbar.image,"image","dialog",t.image],video:["",i.toolbar.video,"video","dialog",t.video],audio:["",i.toolbar.audio,"audio","dialog",t.audio],math:["",i.toolbar.math,"math","dialog",t.math],imageGallery:["",i.toolbar.imageGallery,"imageGallery","fileBrowser",t.image_gallery]}},_createModuleGroup:function(){const e=a.createElement("DIV");e.className="se-btn-module se-btn-module-border";const t=a.createElement("UL");return t.className="se-menu-list",e.appendChild(t),{div:e,ul:t}},_createButton:function(e,t,i,n,l,o,s){const r=a.createElement("LI"),c=a.createElement("BUTTON"),d=t||i;return c.setAttribute("type","button"),c.setAttribute("class","se-btn"+(e?" "+e:"")+" se-tooltip"),c.setAttribute("data-command",i),c.setAttribute("data-display",n),c.setAttribute("aria-label",d.replace(/<span .+<\/span>/,"")),c.setAttribute("tabindex","-1"),l||(l='<span class="se-icon-text">!</span>'),/^default\./i.test(l)&&(l=s[l.replace(/^default\./i,"")]),/^text\./i.test(l)&&(l=l.replace(/^text\./i,""),c.className+=" se-btn-more-text"),l+='<sp
1an class="se-tooltip-inner"><span class="se-tooltip-text">'+d+"</span></span>",o&&c.setAttribute("disabled",!0),c.innerHTML=l,r.appendChild(c),{li:r,button:c}},_createToolBar:function(e,t,i,n){const l=e.createElement("DIV");l.className="se-toolbar-separator-vertical";const o=e.createElement("DIV");o.className="se-toolbar sun-editor-common";const s=e.createElement("DIV");s.className="se-btn-tray",o.appendChild(s),t=JSON.parse(JSON.stringify(t));const r=n.icons,c=this._defaultButtons(n),d={},u=[];let h=null,g=null,p=null,m=null,f="",b=!1;const _=a.createElement("DIV");_.className="se-toolbar-more-layer";e:for(let w,C,x,S,k,E=0;E<t.length;E++)if(w=!1,k="",S=t[E],p=this._createModuleGroup(),"object"===typeof S){for(let e,n=0;n<S.length;n++){if(g=S[n],e=!1,/^\%\d+/.test(g)&&0===n){S[0]=g.replace(/[^\d]/g,""),u.push(S),t.splice(E--,1);continue e}if("object"===typeof g)"function"===typeof g.add?(f=g.name,h=c[f],i[f]=g):(f=g.name,h=[g.buttonClass,g.title,g.name,g.dataDisplay,g.innerHTML,g._disabled]);else{if(/^\-/.test(g)){k=g.substr(1),p.div.className+=" module-float-"+k;continue}if(/^\#/.test(g)){"fix"===g.substr(1)&&(p.ul.className+=" se-menu-dir-fix");continue}if(/^\:/.test(g)){e=!0;const t=g.match(/^\:([^\-]+)\-([^\-]+)\-([^\-]+)/);x="__se__"+t[1].trim();h=["se-btn-more",t[2].trim(),x,"MORE",t[3].trim()]}else h=c[g];if(f=g,!h){const e=i[f];if(!e)throw Error("[SUNEDITOR.create.toolbar.fail] The button name of a plugin that does not exist. ["+f+"]");h=[e.buttonClass,e.title,e.name,e.display,e.innerHTML,e._disabled]}}m=this._createButton(h[0],h[1],h[2],h[3],h[4],h[5],r),(w?C:p.ul).appendChild(m.li),i[f]&&(d[f]=m.button),e&&(w=!0,C=a.createElement("DIV"),C.className="se-more-layer "+x,C.innerHTML='<div class="se-more-form"><ul class="se-menu-list"'+(k?' style="float: '+k+';"':"")+"></ul></div>",_.appendChild(C),C=C.firstElementChild.firstElementChild)}if(b){const e=l.cloneNode(!1);s.appendChild(e)}s.appendChild(p.div),b=!0}else if(/^\/$/.test(S)){const t=e.createElement("DIV");t.className="se-btn-module-enter",s.appendChild(t),b=!1}switch(s.children.length){case 0:s.style.display="none";break;case 1:a.removeClass(s.firstElementChild,"se-btn-module-border");break;default:if(n.rtl){const e=l.cloneNode(!1);e.style.float=s.lastElementChild.style.float,s.appendChild(e)}}u.length>0&&u.unshift(t),_.children.length>0&&s.appendChild(_);const v=e.createElement("DIV");v.className="se-menu-tray",o.appendChild(v);const y=e.createElement("DIV");return y.className="se-toolbar-cover",o.appendChild(y),n.hideToolbar&&(o.style.display="none"),{element:o,plugins:i,pluginCallButtons:d,responsiveButtons:u,_menuTray:v,_buttonTray:s}}},c=function(e,t,i){return{element:{originElement:e,topArea:t._top,relative:t._relative,toolbar:t._toolBar,_toolbarShadow:t._toolbarShadow,_buttonTray:t._toolBar.querySelector(".se-btn-tray"),_menuTray:t._menuTray,resizingBar:t._resizingBar,navigation:t._navigation,charWrapper:t._charWrapper,charCounter:t._charCounter,editorArea:t._editorArea,wysiwygFrame:t._wysiwygArea,wysiwyg:t._wysiwygArea,code:t._codeArea,placeholder:t._placeholder,loading:t._loading,lineBreaker:t._lineBreaker,lineBreaker_t:t._lineBreaker_t,lineBreaker_b:t._lineBreaker_b,resizeBackground:t._resizeBack,_stickyDummy:t._stickyDummy,_arrow:t._arrow,_focusTemp:t._focusTemp},tool:{cover:t._toolBar.querySelector(".se-toolbar-cover"),bold:t._toolBar.querySelector('[data-command="bold"]'),underline:t._toolBar.querySelector('[data-command="underline"]'),italic:t._toolBar.querySelector('[data-command="italic"]'),strike:t._toolBar.querySelector('[data-command="strike"]'),sub:t._toolBar.querySelector('[data-command="SUB"]'),sup:t._toolBar.querySelector('[data-command="SUP"]'),undo:t._toolBar.querySelector('[data-command="undo"]'),redo:t._toolBar.querySelector('[data-command="redo"]'),save:t._toolBar.querySelector('[data-command="save"]'),outdent:t._toolBar.querySelector('[data-command="outdent"]'),indent:t._toolBar.querySelector('[data-command="indent"]'),fullScreen:t._toolBar.querySelector('[data-command="fullScreen"]'),showBlocks:t._toolBar.querySelector('[data-command="showBlocks"]'),
1codeView:t._toolBar.querySelector('[data-command="codeView"]'),dir:t._toolBar.querySelector('[data-command="dir"]'),dir_ltr:t._toolBar.querySelector('[data-command="dir_ltr"]'),dir_rtl:t._toolBar.querySelector('[data-command="dir_rtl"]')},options:i,option:i}};function d(e,t){const i=e._w,n=e.util,l=e.options.historyStackDelayTime;let o=e.context.element,s=e.context.tool.undo,a=e.context.tool.redo,r=null,c=0,d=[];function u(){const i=d[c];o.wysiwyg.innerHTML=i.contents,e.setRange(n.getNodeFromPath(i.s.path,o.wysiwyg),i.s.offset,n.getNodeFromPath(i.e.path,o.wysiwyg),i.e.offset),e.focus(),d.length<=1?(s&&s.setAttribute("disabled",!0),a&&a.setAttribute("disabled",!0)):0===c?(s&&s.setAttribute("disabled",!0),a&&a.removeAttribute("disabled")):c===d.length-1?(s&&s.removeAttribute("disabled"),a&&a.setAttribute("disabled",!0)):(s&&s.removeAttribute("disabled"),a&&a.removeAttribute("disabled")),e.controllersOff(),e._checkComponents(),e._setCharCount(),e._resourcesStateChange(),t()}function h(){e._checkComponents();const i=o.wysiwyg.innerHTML;if(!i||d[c]&&i===d[c].contents)return;c++;const l=e._variable._range;d.length>c&&(d=d.slice(0,c),a&&a.setAttribute("disabled",!0)),d[c]=l?{contents:i,s:{path:n.getNodePath(l.startContainer,null,null),offset:l.startOffset},e:{path:n.getNodePath(l.endContainer,null,null),offset:l.endOffset}}:{contents:i,s:{path:[0,0],offset:[0,0]},e:{path:0,offset:0}},1===c&&s&&s.removeAttribute("disabled"),e._setCharCount(),t()}return{stack:d,push:function(t){i.setTimeout(e._resourcesStateChange.bind(e));const n="number"===typeof t?t>0?t:0:t?l:0;n&&!r||(i.clearTimeout(r),n)?r=i.setTimeout(function(){i.clearTimeout(r),r=null,h()},n):h()},undo:function(){c>0&&(c--,u())},redo:function(){d.length-1>c&&(c++,u())},go:function(e){c=e<0?d.length-1:e,u()},getCurrentIndex:function(){return c},reset:function(i){s&&s.setAttribute("disabled",!0),a&&a.setAttribute("disabled",!0),e._variable.isChanged=!1,e.context.tool.save&&e.context.tool.save.setAttribute("disabled",!0),d.splice(0),c=0,d[c]={contents:e.getContents(!0),s:{path:[0,0],offset:0},e:{path:[0,0],offset:0}},i||t()},_resetCachingButton:function(){o=e.context.element,s=e.context.tool.undo,a=e.context.tool.redo,0===c?(s&&s.setAttribute("disabled",!0),a&&c===d.length-1&&a.setAttribute("disabled",!0),e._variable.isChanged=!1,e.context.tool.save&&e.context.tool.save.setAttribute("disabled",!0)):c===d.length-1&&a&&a.setAttribute("disabled",!0)},_destroy:function(){r&&i.clearTimeout(r),d=null}}}i.dn(d);const u={name:"notice",add:function(e){const t=e.context;t.notice={};let i=e.util.createElement("DIV"),n=e.util.createElement("SPAN"),l=e.util.createElement("BUTTON");i.className="se-notice",l.className="close",l.setAttribute("type","button"),l.setAttribute("aria-label","Close"),l.setAttribute("title",e.lang.dialogBox.close),l.innerHTML=e.icons.cancel,i.appendChild(n),i.appendChild(l),t.notice.modal=i,t.notice.message=n,l.addEventListener("click",this.onClick_cancel.bind(e)),t.element.editorArea.appendChild(i),i=null},onClick_cancel:function(e){e.preventDefault(),e.stopPropagation(),this.plugins.notice.close.call(this)},open:function(e){this.context.notice.message.textContent=e,this.context.notice.modal.style.display="block"},close:function(){this.context.notice.modal.style.display="none"}};function h(e,t,i,n,l,o){const s=e.element.originElement.ownerDocument||document,h=s.defaultView||window,g=a,p=l.icons,m={_d:s,_w:h,_parser:new h.DOMParser,_prevRtl:l.rtl,_editorHeight:0,_editorHeightPadding:0,_listCamel:l.__listCommonStyle,_listKebab:g.camelToKebabCase(l.__listCommonStyle),__focusTemp:e.element._focusTemp,_wd:null,_ww:null,_shadowRoot:null,_shadowRootControllerEventTarget:null,util:g,functions:null,options:null,wwComputedStyle:null,notice:u,icons:p,history:null,context:e,pluginCallButtons:t,plugins:i||{},initPlugins:{},_targetPlugins:{},_menuTray:{},lang:n,effectNode:null,submenu:null,container:null,_submenuName:"",_bindedSubmenuOff:null,_bindedContainerOff:null,submenuActiveButton:null,containerActiveButton:null,controllerArray:[],currentControllerName:"",currentControllerTarget:null,currentFileComponentInfo:null,codeViewDisabledButtons:[],resizingDisabledButtons:[],_moreLayerActiveButton:null,_htmlCheckWhitelistRegExp:null,_htmlCheckBlacklistRegExp:null,_disallowedTextTagsRegExp:null,editorTagsWhitelistRegExp:null,editorTagsBlacklistRegExp:null,pasteTagsWhitelistRegExp:null,pasteTagsBlacklistRegExp:null,hasFocus:!1,isDisabled:!1,isReadOnly:!1,_attributesWhitelistRegExp:null,_attributesWhitelistRegExp_all_data:null,_attributesBlacklistRegExp:null,_attributesTagsWhitelist:null,_attributesTagsBlacklist:null,_bindControllersOff:null,_isInline:null,_isBalloon:null,_isBalloonAlways:null,_inlineToolbarAttr:{top:"",width:"",isShow:!1},_notHideToolbar:!1,_sticky:!1,_antiBlur:!1,_lineBreaker:null,_lineBreakerButton:null,_componentsInfoInit:!0,_componentsInfoReset:!1,activePlugins:null,managedTagsInfo:null,_charTypeHTML:!1,_fileInfoPluginsCheck:null,_fileInfoPluginsReset:null,_fileManager:{tags:null,regExp:null,queryString:null,pluginRegExp:null,pluginMap:null},commandMap:{},_commandMapStyles:{STRONG:["font-weight"],U:["text-decoration"],EM:["font-style"],DEL:["text-decoration"]},_styleCommandMap:null,_cleanStyleRegExp:{div:new h.RegExp("\\s*[^-a-zA-Z](.+)\\s*:[^;]+(?!;)*","ig"),span:new h.RegExp("\\s*[^-a-zA-Z](font-family|font-size|color|background-color)\\s*:[^;]+(?!;)*","ig"),format:new h.RegExp("\\s*[^-a-zA-Z](text-align|margin-left|margin-right|width|height|line-height)\\s*:[^;]+(?!;)*","ig"),fontSizeUnit:new h.RegExp("\\d+"+l.fontSizeUnit+"$","i")},_variable:{isChanged:!1,isCodeView:!1,isFullScreen:!1,innerHeight_fullScreen:0,resizeClientY:0,tabSize:4,codeIndent:2,minResizingSize:g.getNumber(e.element.wysiwygFrame.style.minHeight||"65",0),currentNodes:[],currentNodesMap:[],_range:null,_selectionNode:null,_originCssText:e.element.topArea.style.cssText,_bodyOverflow:"",_editorAreaOriginCssText:"",_wysiwygOriginCssText:"",_co
1deOriginCssText:"",_fullScreenAttrs:{sticky:!1,balloon:!1,inline:!1},_lineBreakComp:null,_lineBreakDir:""},_formatAttrsTemp:null,_saveButtonStates:function(){this.allCommandButtons||(this.allCommandButtons={});const e=this.context.element._buttonTray.querySelectorAll(".se-menu-list button[data-display]");for(let t,i,n=0;n<e.length;n++)t=e[n],i=t.getAttribute("data-command"),this.allCommandButtons[i]=t},_recoverButtonStates:function(){if(this.allCommandButtons){const e=this.context.element._buttonTray.querySelectorAll(".se-menu-list button[data-display]");for(let t,i,n,l=0;l<e.length;l++)t=e[l],i=t.getAttribute("data-command"),n=this.allCommandButtons[i],n&&(t.parentElement.replaceChild(n,t),this.context.tool[i]&&(this.context.tool[i]=n))}},callPlugin:function(e,i,n){if(n=n||t[e],!this.plugins[e])throw Error('[SUNEDITOR.core.callPlugin.fail] The called plugin does not exist or is in an invalid format. (pluginName:"'+e+'")');this.initPlugins[e]?"object"===typeof this._targetPlugins[e]&&n&&this.initMenuTarget(e,n,this._targetPlugins[e]):(this.plugins[e].add(this,n),this.initPlugins[e]=!0),this.plugins[e].active&&!this.commandMap[e]&&n&&(this.commandMap[e]=n,this.activePlugins.push(e)),"function"===typeof i&&i()},addModule:function(e){for(let t,i=0,n=e.length;i<n;i++)t=e[i].name,this.plugins[t]||(this.plugins[t]=e[i]),this.initPlugins[t]||(this.initPlugins[t]=!0,"function"===typeof this.plugins[t].add&&this.plugins[t].add(this))},getGlobalScrollOffset:function(){let t=0,i=0,n=e.element.topArea;for(;n;)t+=n.scrollTop,i+=n.scrollLeft,n=n.parentElement;for(n=this._shadowRoot?this._shadowRoot.host:null;n;)t+=n.scrollTop,i+=n.scrollLeft,n=n.parentElement;return{top:t,left:i}},initMenuTarget:function(t,i,n){i?(e.element._menuTray.appendChild(n),this._targetPlugins[t]=!0,this._menuTray[i.getAttribute("data-command")]=n):this._targetPlugins[t]=n},submenuOn:function(e){this._bindedSubmenuOff&&this._bindedSubmenuOff(),this._bindControllersOff&&this.controllersOff();const t=this._submenuName=e.getAttribute("data-command"),i=this.submenu=this._menuTray[t];this.submenuActiveButton=e,this._setMenuPosition(e,i),this._bindedSubmenuOff=this.submenuOff.bind(this),this.addDocEvent("mousedown",this._bindedSubmenuOff,!1),this.plugins[t].on&&this.plugins[t].on.call(this),this._antiBlur=!0},submenuOff:function(){this.removeDocEvent("mousedown",this._bindedSubmenuOff),this._bindedSubmenuOff=null,this.submenu&&(this._submenuName="",this.submenu.style.display="none",this.submenu=null,g.removeClass(this.submenuActiveButton,"on"),this.submenuActiveButton=null,this._notHideToolbar=!1),this._antiBlur=!1},moreLayerOff:function(){if(this._moreLayerActiveButton){e.element.toolbar.querySelector("."+this._moreLayerActiveButton.getAttribute("data-command")).style.display="none",g.removeClass(this._moreLayerActiveButton,"on"),this._moreLayerActiveButton=null}},containerOn:function(e){this._bindedContainerOff&&this._bindedContainerOff();const t=this._containerName=e.getAttribute("data-command"),i=this.container=this._menuTray[t];this.containerActiveButton=e,this._setMenuPosition(e,i),this._bindedContainerOff=this.containerOff.bind(this),this.addDocEvent("mousedown",this._bindedContainerOff,!1),this.plugins[t].on&&this.plugins[t].on.call(this),this._antiBlur=!0},containerOff:function(){this.removeDocEvent("mousedown",this._bindedContainerOff),this._bindedContainerOff=null,this.container&&(this._containerName="",this.container.style.display="none",this.container=null,g.removeClass(this.containerActiveButton,"on"),this.containerActiveButton=null,this._notHideToolbar=!1),this._antiBlur=!1},_setMenuPosition:function(t,i){i.style.visibility="hidden",i.style.display="block",i.style.height="",g.addClass(t,"on");const n=this.context.element.toolbar,o=n.offsetWidth,s=f._getEditorOffsets(e.element.toolbar),a=i.offsetWidth,r=t.parentElement.offsetLeft+3;if(l.rtl){const e=t.offsetWidth,n=a>e?a-e:0,l=n>0?0:e-a;i.style.left=r-n+l+"px",s.left>f._getEditorOffsets(i).left&&(i.style.left="0px")}else{const e=o<=a?0:o-(r+a);i.style.left=e<0?r+e+"px":r+"px"}let c=0,d=t;for(;d&&d!==n;)c+=d.offsetTop,d=d.offsetParent;const u=c;this._isBalloon?c+=n.offsetTop+t.offsetHeight:c-=t.offsetHeight;const p=s.top,m=i.offsetHeight,b=this.getGlobalScrollOffset().top,_=h.innerHeight-(p-b+u+t.parentElement.offsetHeight);if(_<m){let e=-1*(m-u+3);const n=p-b+e,l=m+(n<0?n:0);l>_?(i.style.height=l+"px",e=-1*(l-u+3)):(i.style.height=_+"px",e=u+t.parentElement.offsetHeight),i.style.top=e+"px"}else i.style.top=u+t.parentElement.offsetHeight+"px";i.style.visibility=""},controllersOn:function(){this._bindControllersOff&&this._bindControllersOff(),this.controllerArray=[];for(let e,t=0;t<arguments.length;t++)e=arguments[t],e&&("string"!==typeof e?"function"!==typeof e?g.hasClass(e,"se-controller")?(e.style&&(e.style.display="block",this._shadowRoot&&-1===this._shadowRootControllerEventTarget.indexOf(e)&&(e.addEventListener("mousedown",function(e){e.preventDefault(),e.stopPropagation()}),this._shadowRootControllerEventTarget.push(e))),this.controllerArray.push(e)):(this.currentControllerTarget=e,this.currentFileComponentInfo=this.getFileComponent(e)):this.controllerArray.push(e):this.currentControllerName=e);this._bindControllersOff=this.controllersOff.bind(this),this.addDocEvent("mousedown",this._bindControllersOff,!1),this.addDocEvent("keydown",this._bindControllersOff,!1),this._antiBlur=!0,"function"===typeof b.showController&&b.showController(this.currentControllerName,this.controllerArray,this)},controllersOff:function(t){this._lineBreaker.style.display="none";const i=this.controllerArray.length;if(t&&t.target&&i>0)for(let e=0;e<i;e++)if("function"===typeof this.controllerArray[e].contains&&this.controllerArray[e].contains(t.target))return;if((!this._fileManager.pluginRegExp.test(this.currentControllerName)||!t||"keydown"!==t.type||27===t.keyCode)&&(e.element.lineBreaker_t.style.display=e.element.lineBreaker_b.style.display="none",this._variable._lineBreakComp=null,this.currentControllerName="",this.currentControllerTarget=null,this.currentFileComponentInfo=null,this.effectNode=null,this._bindControllersOff)){if(this.removeDocEvent("mousedown",this._bindControllersOff),this.removeDocEvent("keydown",this._bindControllersOff),this._bindControllersOff=null,i>0){for(let e=0;e<i;e++)"function"===typeof this.controllerArray[e]?this.controllerArray[e]():this.controllerArray[e].style.display="none";this.controllerArray=[]}this._antiBlur=!1}},setControllerPosition:function(t,i,n,o){l.rtl&&(o.left*=-1);const s=g.getOffset(i,e.element.wysiwygFrame);t.style.visibility="hidden",t.style.display="block";const a="top"===n?-(t.offsetHeight+2):i.offsetHeight+12;t.style.top=s.top+a+o.top+"px";const r=s.left-e.element.wysiwygFrame.scrollLeft+o.left,c=t.offsetWidth,d=i.offsetWidth,u=g.hasClass(t.firstElementChild,"se-arrow")?t.firstElementChild:null;if(l.rtl){const i=c>d?c-d:0,n=i>0?0:d-c;t.style.left=r-i+n+"px",i>0&&u&&(u.style.left=(c-14<10+i?c-14:10+i)+"px");const l=e.element.wysiwygFrame.offsetLeft-t.offsetLeft;l>0&&(t.style.left="0px",u&&(u.style.left=l+"px"))}else{t.style.left=r+"px";const i=e.element.wysiwygFrame.offsetWidth-(t.offsetLeft+c);i<0?(t.style.left=t.offsetLeft+i+"px",u&&(u.style.left=20-i+"px")):u&&(u.style.left="20px")}t.style.visibility=""},execCommand:function(e,t,i){this._wd.execCommand(e,t,"formatBlock"===e?"<"+i+">":i),this.history.push(!0)},nativeFocus:function(){this.__focus(),this._editorRange()},__focus:function(){const t=g.getParentElement(this.getSelectionNode(),"figcaption");
1t?t.focus():e.element.wysiwyg.focus()},focus:function(){if("none"!==e.element.wysiwygFrame.style.display){if(l.iframe)this.nativeFocus();else try{const t=this.getRange();if(t.startContainer===t.endContainer&&g.isWysiwygDiv(t.startContainer)){const i=t.commonAncestorContainer.children[t.startOffset];if(!g.isFormatElement(i)&&!g.isComponent(i)){const t=g.createElement(l.defaultTag),n=g.createElement("BR");return t.appendChild(n),e.element.wysiwyg.insertBefore(t,i),void this.setRange(n,0,n,0)}}this.setRange(t.startContainer,t.startOffset,t.endContainer,t.endOffset)}catch(t){this.nativeFocus()}f._applyTagEffects(),this._isBalloon&&f._toggleToolbarBalloon()}},focusEdge:function(t){t||(t=e.element.wysiwyg.lastElementChild);const i=this.getFileComponent(t);i?this.selectComponent(i.target,i.pluginName):t?(t=g.getChildElement(t,function(e){return 0===e.childNodes.length||3===e.nodeType},!0))?this.setRange(t,t.textContent.length,t,t.textContent.length):this.nativeFocus():this.focus()},blur:function(){l.iframe?e.element.wysiwygFrame.blur():e.element.wysiwyg.blur()},setRange:function(e,t,i,n){if(!e||!i)return;
1(g.isBreak(e)||3===e.nodeType)&&t>e.textContent.length&&(t=e.textContent.length),(g.isBreak(i)||3===i.nodeType)&&n>i.textContent.length&&(n=i.textContent.length),g.isFormatElement(e)&&(e=e.childNodes[t>0?e.childNodes.length-1:0]||e,t=t>0?1!==e.nodeType||g.isBreak(e)?e.textContent?e.textContent.length:0:1:0),g.isFormatElement(i)&&(i=i.childNodes[n>0?i.childNodes.length-1:0]||i,n=n>0?1!==i.nodeType||g.isBreak(i)?i.textContent?i.textContent.length:0:1:0);const o=this._wd.createRange();try{t>e.textContent.length&&(t=e.textContent.length),n>i.textContent.length&&(n=i.textContent.length),o.setStart(e,t),o.setEnd(i,n)}catch(a){return console.warn("[SUNEDITOR.core.focus.error] "+a),void this.nativeFocus()}const s=this.getSelection();return s.removeAllRanges&&s.removeAllRanges(),s.addRange(o),this._rangeInfo(o,this.getSelection()),l.iframe&&this.__focus(),o},removeRange:function(){this._variable._range=null,this._variable._selectionNode=null,this.hasFocus&&this.getSelection().removeAllRanges(),this._setKeyEffect([])},getRange:function(){const t=this._variable._range||this._createDefaultRange(),i=this.getSelection();if(t.collapsed===i.isCollapsed||!e.element.wysiwyg.contains(i.focusNode))return t;if(i.rangeCount>0)return this._variable._range=i.getRangeAt(0),this._variable._range;{const e=i.anchorNode,t=i.focusNode,n=i.anchorOffset,l=i.focusOffset,o=g.compareElements(e,t),s=o.ancestor&&(0===o.result?n<=l:o.result>1);return this.setRange(s?e:t,s?n:l,s?t:e,s?l:n)}},getRange_addLine:function(t,i){if(this._selectionVoid(t)){const n=e.element.wysiwyg,o=g.createElement(l.defaultTag);o.innerHTML="<br>",n.insertBefore(o,i&&i!==n?i.nextElementSibling:n.firstElementChild),this.setRange(o.firstElementChild,0,o.firstElementChild,1),t=this._variable._range}return t},getSelection:function(){const t=this._shadowRoot&&this._shadowRoot.getSelection?this._shadowRoot.getSelection():this._ww.getSelection();return this._variable._range||e.element.wysiwyg.contains(t.focusNode)||(t.removeAllRanges(),t.addRange(this._createDefaultRange())),t},getSelectionNode:function(){if(e.element.wysiwyg.contains(this._variable._selectionNode)||this._editorRange(),!this._variable._selectionNode){const t=g.getChildElement(e.element.wysiwyg.firstChild,function(e){return 0===e.childNodes.length||3===e.nodeType},!1);if(t)return this._variable._selectionNode=t,t;this._editorRange()}return this._variable._selectionNode},_editorRange:function(){const e=this._wd.activeElement;if(g.isInputElement(e))return this._variable._selectionNode=e,e;const t=this.getSelection();if(!t)return null;let i=null;i=t.rangeCount>0?t.getRangeAt(0):this._createDefaultRange(),this._rangeInfo(i,t)},_rangeInfo:function(e,t){let i=null;this._variable._range=e,i=e.collapsed?g.isWysiwygDiv(e.commonAncestorContainer)&&e.commonAncestorContainer.children[e.startOffset]||e.commonAncestorContainer:t.extentNode||t.anchorNode,this._variable._selectionNode=i},_createDefaultRange:function(){const t=e.element.wysiwyg,i=this._wd.createRange();let n=t.firstElementChild,o=null;return n?(o=n.firstChild,o||(o=g.createElement("BR"),n.appendChild(o))):(n=g.createElement(l.defaultTag),o=g.createElement("BR"),n.appendChild(o),t.appendChild(n)),i.setStart(o,0),i.setEnd(o,0),i},_selectionVoid:function(e){const t=e.commonAncestorContainer;return g.isWysiwygDiv(e.startContainer)&&g.isWysiwygDiv(e.endContainer)||/FIGURE/i.test(t.nodeName)||this._fileManager.regExp.test(t.nodeName)||g.isMediaComponent(t)},_resetRangeToTextNode:function(){const t=this.getRange();if(this._selectionVoid(t))return!1;const i=t.collapsed;let n,o,s,a=t.startContainer,r=t.startOffset,c=t.endContainer,d=t.endOffset;if(g.isFormatElement(a))for(a.childNodes[r]?(a=a.childNodes[r]||a,r=0):(a=a.lastChild||a,r=a.textContent.length);a&&1===a.nodeType&&a.firstChild;)a=a.firstChild||a,r=0;if(g.isFormatElement(c)){for(c=c.childNodes[d]||c.lastChild||c;c&&1===c.nodeType&&c.lastChild;)c=c.lastChild;d=i?0:c.textContent.length}if(n=g.isWysiwygDiv(a)?e.element.wysiwyg.firstChild:a,o=r,g.isBreak(n)||1===n.nodeType&&n.childNodes.length>0){const e=g.isBreak(n);if(!e){for(;n&&!g.isBreak(n)&&1===n.nodeType;)n=n.childNodes[o]||n.nextElementSibling||n.nextSibling,o=0;let e=g.getFormatElement(n,null);e===g.getRangeFormatElement(e,null)&&(e=g.createElement(g.getParentElement(n,g.isCell)?"DIV":l.defaultTag),n.parentNode.insertBefore(e,n),e.appendChild(n))}if(g.isBreak(n)){const t=g.createTextNode(g.zeroWidthSpace);n.parentNode.insertBefore(t,n),n=t,e&&a===c&&(c=n,d=1)}}if(a=n,r=o,n=g.isWysiwygDiv(c)?e.element.wysiwyg.lastChild:c,o=d,g.isBreak(n)||1===n.nodeType&&n.childNodes.length>0){const e=g.isBreak(n);if(!e){for(;n&&!g.isBreak(n)&&1===n.nodeType&&(s=n.childNodes,0!==s.length);)n=s[o>0?o-1:o]||!/FIGURE/i.test(s[0].nodeName)?s[0]:n.previousElementSibling||n.previousSibling||a,o=o>0?n.textContent.length:o;let e=g.getFormatElement(n,null);e===g.getRangeFormatElement(e,null)&&(e=g.createElement(g.isCell(e)?"DIV":l.defaultTag),n.parentNode.insertBefore(e,n),e.appendChild(n))}if(g.isBreak(n)){const t=g.createTextNode(g.zeroWidthSpace);n.parentNode.insertBefore(t,n),n=t,o=1,e&&!n.previousSibling&&g.removeItem(c)}}return c=n,d=o,this.setRange(a,r,c,d),!0},getSelectedElements:function(t){if(!this._resetRangeToTextNode())return[];let i=this.getRange();if(g.isWysiwygDiv(i.startContainer)){const t=e.element.wysiwyg.children;if(0===t.length)return[];this.setRange(t[0],0,t[t.length-1],t[t.length-1].textContent.trim().length),i=this.getRange()}const n=i.startContainer,l=i.endContainer,o=i.commonAncestorContainer,s=g.getListChildren(o,function(e){return t?t(e):g.isFormatElement(e)});if(g.isWysiwygDiv(o)||g.isRangeFormatElement(o)||s.unshift(g.getFormatElement(o,null)),n===l||1===s.length)return s;let a=g.getFormatElement(n,null),r=g.getFormatElement(l,null),c=null,d=null;const u=function(e){return!g.isTable(e)||/^TABLE$/i.test(e.nodeName)};let h=g.getRangeFormatElement(a,u),p=g.getRangeFormatElement(r,u);g.isTable(h)&&g.isListCell(h.parentNode)&&(h=h.parentNode),g.isTable(p)&&g.isListCell(p.parentNode)&&(p=p.parentNode);const m=h===p;for(let e,g=0,f=s.length;g<f;g++)if(e=s[g],a===e||!m&&e===h)c=g;else if(r===e||!m&&e===p){d=g;break}return null===c&&(c=0),null===d&&(d=s.length-1),s.slice(c,d+1)},getSelectedElementsAndComponents:function(e){const t=this.getRange().commonAncestorContainer,i=g.getParentElement(t,g.isComponent),n=g.isTable(t)?this.get
1SelectedElements(null):this.getSelectedElements(function(e){const t=this.getParentElement(e,this.isComponent);return this.isFormatElement(e)&&(!t||t===i)||this.isComponent(e)&&!this.getFormatElement(e)}.bind(g));if(e)for(let l=0,o=n.length;l<o;l++)for(let e=l-1;e>=0;e--)if(n[e].contains(n[l])){n.splice(l,1),l--,o--;break}return n},isEdgePoint:function(e,t,i){return 1===e.nodeType&&!e.textContent.length||("end"!==i&&0===t||(!i||"start"!==i)&&!e.nodeValue&&1===t||(!i||"end"===i)&&!!e.nodeValue&&t===e.nodeValue.length)},_isEdgeFormat:function(e,t,i){if(!this.isEdgePoint(e,t,i))return!1;const n=[];for(i="start"===i?"previousSibling":"nextSibling";e&&!g.isFormatElement(e)&&!g.isWysiwygDiv(e);){if(e[i]&&(!g.isBreak(e[i])||e[i][i]))return null;1===e.nodeType&&n.push(e.cloneNode(!1)),e=e.parentNode}return n},showLoading:function(){e.element.loading.style.display="block"},closeLoading:function(){e.element.loading.style.display="none"},appendFormatTag:function(e,t){if(!e||!e.parentNode)return null;const i=g.getFormatElement(this.getSelectionNode(),null);let n=null;if(!g.isFormatElement(e)&&g.isFreeFormatElement(i||e.parentNode))n=g.createElement("BR");else{const e=t?"string"===typeof t?t:t.nodeName:!g.isFormatElement(i)||g.isRangeFormatElement(i)||g.isFreeFormatElement(i)?l.defaultTag:i.nodeName;n=g.createElement(e),n.innerHTML="<br>",(t&&"string"!==typeof t||!t&&g.isFormatElement(i))&&g.copyTagAttributes(n,t||i,["id"])}return g.isCell(e)?e.insertBefore(n,e.nextElementSibling):e.parentNode.insertBefore(n,e.nextElementSibling),n},insertComponent:function(e,t,i,n){if(this.isReadOnly||i&&!this.checkCharCount(e,null))return null;const l=this.removeNode();this.getRange_addLine(this.getRange(),l.container);let o=null,s=this.getSelectionNode(),a=g.getFormatElement(s,null);if(g.isListCell(a))this.insertNode(e,s===a?null:(s||l.container).nextSibling,!1),e.nextSibling||e.parentNode.appendChild(g.createElement("BR"));else{if(this.getRange().collapsed&&(3===l.container.nodeType||g.isBreak(l.container))){const e=g.getParentElement(l.container,function(e){return this.isRangeFormatElement(e)}.bind(g));o=g.splitElement(l.container,l.offset,e?g.getElementDepth(e)+1:0),o&&(a=o.previousSibling)}this.insertNode(e,g.isRangeFormatElement(a)?null:a,!1),a&&g.onlyZeroWidthSpace(a)&&g.removeItem(a)}if(!n){const t=this.getFileComponent(e);t?this.selectComponent(t.target,t.pluginName):o&&(o=g.getEdgeChildNodes(o,null).sc||o,this.setRange(o,0,o,0))}return t||this.history.push(1),o||e},getFileComponent:function(e){if(!this._fileManager.queryString||!e)return null;let t,i;return(/^FIGURE$/i.test(e.nodeName)||/se-component/.test(e.className))&&(t=e.querySelector(this._fileManager.queryString)),!t&&e.nodeName&&this._fileManager.regExp.test(e.nodeName)&&(t=e),t&&(i=this._fileManager.pluginMap[t.nodeName.toLowerCase()],i)?{target:t,component:g.getParentElement(t,g.isComponent),pluginName:i}:null},selectComponent:function(e,t){if(g.isUneditableComponent(g.getParentElement(e,g.isComponent))||g.isUneditableComponent(e))return!1;this.hasFocus||this.focus();const i=this.plugins[t];i&&h.setTimeout(function(){"function"===typeof i.select&&this.callPlugin(t,i.select.bind(this,e),null),this._setComponentLineBreaker(e)}.bind(this))},_setComponentLineBreaker:function(t){this._lineBreaker.style.display="none";const i=g.getParentElement(t,g.isComponent);if(!i)return;const n=e.element.lineBreaker_t.style,l=e.element.lineBreaker_b.style,o="block"===this.context.resizing.resizeContainer.style.display?this.context.resizing.resizeContainer:t,s=g.isListCell(i.parentNode);let a,r,c;(s?i.previousSibling&&!g.isComponent(i.previousElementSibling):g.isFormatElement(i.previousElementSibling))?n.display="none":(this._variable._lineBreakComp=i,r=e.element.wysiwyg.scrollTop,a=g.getOffset(t,e.element.wysiwygFrame).top+r,c=o.offsetWidth/2/2,n.top=a-r-12+"px",n.left=g.getOffset(o).left+c+"px",n.display="block"),(s?i.nextSibling&&!g.isComponent(i.nextElementSibling):g.isFormatElement(i.nextElementSibling))?l.display="none":(a||(this._variable._lineBreakComp=i,r=e.element.wysiwyg.scrollTop,a=g.getOffset(t,e.element.wysiwygFrame).top+r,c=o.offsetWidth/2/2),l.top=a+o.offsetHeight-r-12+"px",l.left=g.getOffset(o).left+o.offsetWidth-c-24+"px",l.display="block")},_checkDuplicateNode:function(e,t){!function e(i){m._dupleCheck(i,t);
1const n=i.childNodes;for(let t=0,l=n.length;t<l;t++)e(n[t])}(e)},_dupleCheck:function(e,t){if(!g.isTextStyleElement(e))return;const i=(e.style.cssText.match(/[^;]+;/g)||[]).map(function(e){return e.trim()}),n=e.nodeName;if(/^span$/i.test(n)&&0===i.length)return e;let l=!1;return function t(o){if(!g.isWysiwygDiv(o)&&g.isTextStyleElement(o)){if(o.nodeName===n){l=!0;const t=o.style.cssText.match(/[^;]+;/g)||[];for(let e,n=0,l=t.length;n<l;n++)(e=i.indexOf(t[n].trim()))>-1&&i.splice(e,1);for(let i=0,n=o.classList.length;i<n;i++)e.classList.remove(o.classList[i])}t(o.parentElement)}}(t),l&&((e.style.cssText=i.join(" "))||(e.setAttribute("style",""),e.removeAttribute("style")),e.attributes.length||e.setAttribute("data-se-duple","true")),e},insertNode:function(t,i,n){if(this.isReadOnly||n&&!this.checkCharCount(t,null))return null;let o,s,a,r=null,c=this.getRange(),d=g.isListCell(c.commonAncestorContainer)?c.commonAncestorContainer:g.getFormatElement(this.getSelectionNode(),null),u=g.isListCell(d)&&(g.isListCell(t)||g.isList(t)),h=null;const p=g.isFreeFormatElement(d),m=!p&&(g.isFormatElement(t)||g.isRangeFormatElement(t))||g.isComponent(t);if(u&&(a=i||g.isList(t)?d.lastChild:d.nextElementSibling,h=g.isList(t)?d:(a||d).parentNode),!i&&(m||g.isComponent(t)||g.isMedia(t))){const e=this.isEdgePoint(c.endContainer,c.endOffset,"end"),t=this.removeNode(),n=t.container,l=n===t.prevContainer&&c.collapsed?null:t.prevContainer;if(u&&l)if(h=3===l.nodeType?l.parentNode:l,h.contains(n)){let e=!0;for(a=n;a.parentNode&&a.parentNode!==h;)a=a.parentNode,e=!1;e&&n===l&&(a=a.nextSibling)}else a=null;else if(u&&g.isListCell(n)&&!d.parentElement)d=g.createElement("LI"),h.appendChild(d),n.appendChild(h),a=null;else if(3===n.nodeType||g.isBreak(n)||u){const l=g.getParentElement(n,function(e){return this.isRangeFormatElement(e)||this.isListCell(e)}.bind(g));if(i=g.splitElement(n,t.offset,l?g.getElementDepth(l)+1:0))if(u){if(d.contains(n)){const t=g.isList(d.lastElementChild);let n=null;e||(n=d.cloneNode(!1),n.appendChild(i.textContent.trim()?i:g.createTextNode(g.zeroWidthSpace))),t&&(n||(n=d.cloneNode(!1),n.appendChild(g.createTextNode(g.zeroWidthSpace))),n.appendChild(d.lastElementChild)),n&&(d.parentNode.insertBefore(n,d.nextElementSibling),a=i=n)}}else i=i.previousSibling;else g.isListCell(d)||(a=i=d)}}c=i||m?this.getRange():this.getRange_addLine(this.getRange(),null);const f=c.commonAncestorContainer,b=c.startOffset,_=c.endOffset,v=c.startContainer===f&&g.isFormatElement(f),y=v&&(f.childNodes[b]||f.childNodes[0])||c.startContainer,w=v&&(f.childNodes[_]||f.childNodes[f.childNodes.length-1])||c.endContainer;if(!u)if(i)o=i.parentNode,i=i.nextSibling,s=!0;else if(o=y,3===y.nodeType&&(o=y.parentNode),c.collapsed)if(3===f.nodeType)i=f.textContent.length>_?f.splitText(_):f.nextSibling;else if(g.isBreak(o))i=o,o=o.parentNode;else{let e=o.childNodes[b];const n=e&&3===e.nodeType&&g.onlyZeroWidthSpace(e)&&g.isBreak(e.nextSibling)?e.nextSibling:e;n?!n.nextSibling&&g.isBreak(n)?(o.removeChild(n),i=null):i=g.isBreak(n)&&!g.isBreak(t)?n:n.nextSibling:i=null}else{if(y===w){i=this.isEdgePoint(w,_)?w.nextSibling:w.splitText(_);let e=y;this.isEdgePoint(y,b)||(e=y.splitText(b)),o.removeChild(e),0===o.childNodes.length&&m&&(o.innerHTML="<br>")}else{const e=this.removeNode(),n=e.container,s=e.prevContainer;if(n&&0===n.childNodes.length&&m&&(g.isFormatElement(n)?n.innerHTML="<br>":g.isRangeFormatElement(n)&&(n.innerHTML="<"+l.defaultTag+"><br></"+l.defaultTag+">")),g.isListCell(n)&&3===t.nodeType)o=n,i=null;else if(!m&&s)if(o=3===s.nodeType?s.parentNode:s,o.contains(n)){let e=!0;for(i=n;i.parentNode&&i.parentNode!==o;)i=i.parentNode,e=!1;e&&n===s&&(i=i.nextSibling)}else i=null;else g.isWysiwygDiv(n)&&!g.isFormatElement(t)?(o=n.appendChild(g.createElement(l.defaultTag)),i=null):o=(i=m?w:n===s?n.nextSibling:n)&&i.parentNode?i.parentNode:f;for(;i&&!g.isFormatElement(i)&&i.parentNode!==f;)i=i.parentNode}}try{if(!u){if((g.isWysiwygDiv(i)||o===e.element.wysiwyg.parentNode)&&(o=e.element.wysiwyg,i=null),g.isFormatElement(t)||g.isRangeFormatElement(t)||!g.isListCell(o)&&g.isComponent(t)){const e=o;if(g.isList(i))o=i,i=null;else if(g.isListCell(i))o=i.previousElementSibling||i;else if(!s&&!i){const e=this.removeNode(),t=3===e.container.nodeType?g.isListCell(g.getFormatElement(e.container,null))?e.container:g.getFormatElement(e.container,null)||e.container.parentNode:e.container,n=g.isWysiwygDiv(t)||g.isRangeFormatElement(t);o=n?t:t.parentNode,i=n?null:t.nextSibling}0===e.childNodes.length&&o!==e&&g.removeItem(e)}if(!m||p||g.isRangeFormatElement(o)||g.isListCell(o)||g.isWysiwygDiv(o)||(i=o.nextElementSibling,o=o.parentNode),g.isWysiwygDiv(o)&&(3===t.nodeType||g.isBreak(t))){const e=g.createElement(l.defaultTag);e.appendChild(t),r=t,t=e}}if(u?h.parentNode?(o=h,i=a):(o=e.element.wysiwyg,i=null):i=o===i?o.lastChild:i,g.isListCell(t)&&!g.isList(o)){if(g.isListCell(o))i=o.nextElementSibling,o=o.parentNode;else{const e=g.createElement("ol");o.insertBefore(e,i),o=e,i=null}u=!0}if(this._checkDuplicateNode(t,o),o.insertBefore(t,i),u)if(g.onlyZeroWidthSpace(d.textContent.trim()))g.removeItem(d),t=t.lastChild;else{const e=g.getArrayItem(d.children,g.isList);e&&(t!==e?(t.appendChild(e),t=e.previousSibling):(o.appendChild(t),t=
1o),g.onlyZeroWidthSpace(d.textContent.trim())&&g.removeItem(d))}}catch(C){o.appendChild(t),console.warn("[SUNEDITOR.insertNode.warn] "+C)}finally{r&&(t=r);const e=o.querySelectorAll("[data-se-duple]");if(e.length>0)for(let i,n,l,o,s=0,a=e.length;s<a;s++){for(i=e[s],l=i.childNodes,o=i.parentNode;l[0];)n=l[0],o.insertBefore(n,i);i===t&&(t=n),g.removeItem(i)}if((g.isFormatElement(t)||g.isComponent(t))&&y===w){const e=g.getFormatElement(f,null);e&&1===e.nodeType&&g.isEmptyLine(e)&&g.removeItem(e)}if(p&&(g.isFormatElement(t)||g.isRangeFormatElement(t))&&(t=this._setIntoFreeFormat(t)),!g.isComponent(t)){let e=1;if(3===t.nodeType)e=t.textContent.length,this.setRange(t,e,t,e);else if(!g.isBreak(t)&&!g.isListCell(t)&&g.isFormatElement(o)){let i=null;t.previousSibling&&!g.isBreak(t.previousSibling)||(i=g.createTextNode(g.zeroWidthSpace),t.parentNode.insertBefore(i,t)),t.nextSibling&&!g.isBreak(t.nextSibling)||(i=g.createTextNode(g.zeroWidthSpace),t.parentNode.insertBefore(i,t.nextSibling)),g._isIgnoreNodeChange(t)&&(t=t.nextSibling,e=0)}this.setRange(t,e,t,e)}return t}},_setIntoFreeFormat:function(e){const t=e.parentNode;let i,n;for(;g.isFormatElement(e)||g.isRangeFormatElement(e);){for(i=e.childNodes,n=null;i[0];)if(n=i[0],g.isFormatElement(n)||g.isRangeFormatElement(n)){if(this._setIntoFreeFormat(n),!e.parentNode)break;i=e.childNodes}else t.insertBefore(n,e);0===e.childNodes.length&&g.removeItem(e),e=g.createElement("BR"),t.insertBefore(e,n.nextSibling)}return e},removeNode:function(){this._resetRangeToTextNode();const t=this.getRange();if(t.startContainer===t.endContainer){const e=g.getParentElement(t.startContainer,g.isMediaComponent);if(e){const t=g.createElement("BR"),i=g.createElement(l.defaultTag);return i.appendChild(t),g.changeElement(e,i),m.setRange(i,0,i,0),this.history.push(!0),{container:i,offset:0,prevContainer:null}}}const i=0===t.startOffset,n=m.isEdgePoint(t.endContainer,t.endOffset,"end");let o=null,s=null,a=null;i&&(s=g.getFormatElement(t.startContainer),s&&(o=s.previousElementSibling,s=o)),n&&(a=g.getFormatElement(t.endContainer),a=a?a.nextElementSibling:a);let r,c=0,d=t.startContainer,u=t.endContainer,h=t.startOffset,p=t.endOffset;const f=3===t.commonAncestorContainer.nodeType&&t.commonAncestorContainer.parentNode===d.parentNode?d.parentNode:t.commonAncestorContainer;if(f===d&&f===u&&(d=f.children[h],u=f.children[p],h=p=0),!d||!u)return{container:f,offset:0};if(d===u&&t.collapsed&&d.textContent&&g.onlyZeroWidthSpace(d.textContent.substr(h)))return{container:d,offset:h,prevContainer:d&&d.parentNode?d:null};let b=null,_=null;const v=g.getListChildNodes(f,null);let y=g.getArrayIndex(v,d),w=g.getArrayIndex(v,u);if(v.length>0&&y>-1&&w>-1){for(let e=y+1,t=d;e>=0;e--)v[e]===t.parentNode&&v[e].firstChild===t&&0===h&&(y=e,t=t.parentNode);for(let e=w-1,t=u;e>y;e--)v[e]===t.parentNode&&1===v[e].nodeType&&(v.splice(e,1),t=t.parentNode,--w)}else{if(0===v.length){if(g.isFormatElement(f)||g.isRangeFormatElement(f)||g.isWysiwygDiv(f)||g.isBreak(f)||g.isMedia(f))return{container:f,offset:0};if(3===f.nodeType)return{container:f,offset:p};v.push(f),d=u=f}else if(d=u=v[0],g.isBreak(d)||g.onlyZeroWidthSpace(d))return{container:g.isMedia(f)?f:d,offset:0};y=w=0}for(let e=y;e<=w;e++){const t=v[e];if(0===t.length||3===t.nodeType&&void 0===t.data)this._nodeRemoveListItem(t);else if(t!==d)if(t!==u)this._nodeRemoveListItem(t);else{if(1===u.nodeType){if(g.isComponent(u))continue;_=g.createTextNode(u.textContent)}else _=g.createTextNode(u.substringData(p,u.length-p));_.length>0?u.data=_.data:this._nodeRemoveListItem(u)}else{if(1===d.nodeType){if(g.isComponent(d))continue;b=g.createTextNode(d.textContent)}else t===u?(b=g.createTextNode(d.substringData(0,h)+u.substringData(p,u.length-p)),c=h):b=g.createTextNode(d.substringData(0,h));if(b.length>0?d.data=b.data:this._nodeRemoveListItem(d),t===u)break}}const C=g.getParentElement(u,"ul"),x=g.getParentElement(d,"li");if(C&&x&&x.contains(C)?(r=C.previousSibling,c=r.textContent.length):(r=u&&u.parentNode?u:d&&d.parentNode?d:t.endContainer||t.startContainer,c=i||n?n?r.textContent.length:0:c),!g.isWysiwygDiv(r)&&0===r.childNodes.length){const t=g.removeItemAllParents(r,null,null);t&&(r=t.sc||t.ec||e.element.wysiwyg)}return g.getFormatElement(r)||d&&d.parentNode||(a?(r=a,c=0):s&&(r=s,c=1)),this.setRange(r,c,r,c),this.history.push(!0),{container:r,offset:c,prevContainer:o}},_nodeRemoveListItem:function(e){const t=g.getFormatElement(e,null);g.removeItem(e),g.isListCell(t)&&(g.removeItemAllParents(t,null,null),t&&g.isList(t.firstChild)&&t.insertBefore(g.createTextNode(g.zeroWidthSpace),t.firstChild))},applyRangeFormatElement:function(e){this.getRange_addLine(this.getRange(),null);const t=this.getSelectedElementsAndComponents(!1);if(!t||0===t.length)return;e:for(let u,h,p,m,f,b,_=0,v=t.length;_<v;_++)if(u=t[_],g.isListCell(u)&&(h=u.lastElementChild,h&&g.isListCell(u.nextElementSibling)&&t.indexOf(u.nextElementSibling)>-1&&(m=h.lastElementChild,t.indexOf(m)>-1))){let e=null;for(;e=m.lastElementChild;)if(g.isList(e)){if(!(t.indexOf(e.lastElementChild)>-1))continue e;m=e.lastElementChild}p=h.firstElementChild,f=t.indexOf(p),b=t.indexOf(m),t.splice(f,b-f+1),v=t.length;continue}let i,n,l,o=t[t.length-1];i=g.isRangeFormatElement(o)||g.isFormatElement(o)?o:g.getRangeFormatElement(o,null)||g.getFormatElement(o,null),g.isCell(i)?(n=null,l=i):(n=i.nextSibling,l=i.parentNode);let s=g.getElementDepth(i),a=null;const r=[],c=function(e,t,i){let n=null;if(e!==t&&!g.isTable(t)){if(t&&g.getElementDepth(e)===g.getElementDepth(t))return i;n=g.removeItemAllParents(t,null,e)}return n?n.ec:i};for(let u,h,p,m,f,b,_,v=0,y=t.length;v<y;v++)if(u=t[v],h=u.parentNode,h&&!e.contains(h))if(p=g.getElementDepth(u),g.isList(h)){if(null===a&&(b?(a=b,_=!0,b=null):a=h.cloneNode(!1)),r.push(u),f=t[v+1],v===y-1||f&&f.parentNode!==h){f&&u.contains(f.parentNode)&&(b=f.parentNode.cloneNode(!1));let t,i=h.parentNode;for(;g.isList(i);)t=g.createElement(i.nodeName),t.appendChild(a),a=t,i=i.parentNode;const o=this.detachRangeFormatElement(h,r,null,!0,!0);s>=p?(s=p,l=o.cc,n=c(l,h,o.ec),n&&(l=n.parentNode)):l===o.cc&&(n=o.ec),l!==o.cc&&(m=c(l,o.cc,m),n=void 0!==m?m:o.cc);for(let e=0,n=o.removeArray.length;e<n;e++)a.appendChild(o.removeArray[e]);_||e.appendChild(a),b&&o.removeArray[o.removeArray.length-1].appendChild(b),a=null,_=!1}}else s>=p&&(s=p,l=h,n=u.nextSibling),e.appendChild(u),l!==h&&(m=c(l,h),void 0!==m&&(n=m));if(this.effectNode=null,g.mergeSameTags(e,null,!1),g.mergeNestedTags(e,function(e){return this.isList(e)}.bind(g)),n&&g.getElementDepth(n)>0&&(g.isList(n.parentNode)||g.isList(n.parentNode.parentNode))){const t=g.getParentElement(n,function(e){return this.isRangeFormatElement(e)&&!this.isList(e)}.bind(g)),i=g.splitElement(n,null,t?g.getElementDepth(t)+1:0);i.parentNode.insertBefore(e,i)}else l.insertBefore(e,n),c(e,n);const d=g.getEdgeChildNodes(e.firstElementChild,e.lastElementChild);t.length>1?this.setRange(d.sc,0,d.ec,d.ec.textContent.length):this.setRange(d.ec,d.ec.textContent.length,d.ec,d.ec.textContent.length),this.history.push(!1)},detachRangeFormatElement:function(e,t,i,n,o){const s=this.getRange();let a=s.startOffset,r=s.endOffset,c=g.getListChildNodes(e,function(t){return t.parentNode===e}),d=e.parentNode,u=null,h=null,p=e.cloneNode(!1);const m=[],f=g.isList(i);let b=!1,_=!1,v=!1;function y(t,i,n,l){if(g.onlyZeroWidthSpace(i)&&(i.innerHTML=g.zeroWidthSpace,a=r=1),3===i.nodeType)return t.insertBefore(i,n),i;const o=(v?i:l).childNodes;let s=i.cloneNode(!1),c=null,d=null;for(;o[0];
1)d=o[0],!g._notTextNode(d)||g.isBreak(d)||g.isListCell(s)?s.appendChild(d):(s.childNodes.length>0&&(c||(c=s),t.insertBefore(s,n),s=i.cloneNode(!1)),t.insertBefore(d,n),c||(c=d));if(s.childNodes.length>0){if(g.isListCell(t)&&g.isListCell(s)&&g.isList(n))if(f){for(c=n;n;)s.appendChild(n),n=n.nextSibling;t.parentNode.insertBefore(s,t.nextElementSibling)}else{const t=l.nextElementSibling,i=g.detachNestedList(l,!1);if(e!==i||t!==l.nextElementSibling){const t=s.childNodes;for(;t[0];)l.appendChild(t[0]);e=i,_=!0}}else t.insertBefore(s,n);c||(c=s)}return c}for(let S,k,E,L=0,N=c.length;L<N;L++)if(S=c[L],3!==S.nodeType||!g.isList(p))if(v=!1,n&&0===L&&(u=t&&t.length!==N&&t[0]!==S?p:e.previousSibling),t&&(k=t.indexOf(S)),t&&-1===k)p||(p=e.cloneNode(!1)),p.appendChild(S);else{if(t&&(E=t[k+1]),p&&p.children.length>0&&(d.insertBefore(p,e),p=null),!f&&g.isListCell(S))if(E&&g.getElementDepth(S)!==g.getElementDepth(E)&&(g.isListCell(d)||g.getArrayItem(S.children,g.isList,!1))){const t=S.nextElementSibling,i=g.detachNestedList(S,!1);e===i&&t===S.nextElementSibling||(e=i,_=!0)}else{const t=S;S=g.createElement(n?t.nodeName:g.isList(e.parentNode)||g.isListCell(e.parentNode)?"LI":g.isCell(e.parentNode)?"DIV":l.defaultTag);const i=g.isListCell(S),o=t.childNodes;for(;o[0]&&(!g.isList(o[0])||i);)S.appendChild(o[0]);g.copyFormatAttributes(S,t),v=!0}else S=S.cloneNode(!1);if(!_&&(n?(m.push(S),g.removeItem(c[L])):(i?(b||(d.insertBefore(i,e),b=!0),S=y(i,S,null,c[L])):S=y(d,S,e,c[L]),_||(t?(h=S,u||(u=S)):u||(u=h=S))),_)){_=v=!1,c=g.getListChildNodes(e,function(t){return t.parentNode===e}),p=e.cloneNode(!1),d=e.parentNode,L=-1,N=c.length;continue}}const w=e.parentNode;let C=e.nextSibling;p&&p.children.length>0&&w.insertBefore(p,C),i?u=i.previousSibling:u||(u=e.previousSibling),C=e.nextSibling!==p?e.nextSibling:p?p.nextSibling:null,0===e.children.length||0===e.textContent.length?g.removeItem(e):g.removeEmptyNode(e,null,!1);let x=null;if(n)x={cc:w,sc:u,so:a,ec:C,eo:r,removeArray:m};else{u||(u=h),h||(h=u);const e=g.getEdgeChildNodes(u,h.parentNode?u:h);x={cc:(e.sc||e.ec).parentNode,sc:e.sc,so:a,ec:e.ec,eo:r,removeArray:null}}if(this.effectNode=null,o)return x;!n&&x&&(t?this.setRange(x.sc,a,x.ec,r):this.setRange(x.sc,0,x.sc,0)),this.history.push(!1)},detachList:function(e,t){let i={},n=!1,l=!1,o=null,s=null;const a=function(e){return!this.isComponent(e)}.bind(g);for(let r,c,d,u,h=0,p=e.length;h<p;h++){if(d=h===p-1,c=g.getRangeFormatElement(e[h],a),u=g.isList(c),!r&&u)r=c,i={r:r,f:[g.getParentElement(e[h],"LI")]},0===h&&(n=!0);else if(r&&u)if(r!==c){const a=this.detachRangeFormatElement(i.f[0].parentNode,i.f,null,t,!0);c=e[h].parentNode,n&&(o=a.sc,n=!1),d&&(s=a.ec),u?(r=c,i={r:r,f:[g.getParentElement(e[h],"LI")]},d&&(l=!0)):r=null}else i.f.push(g.getParentElement(e[h],"LI")),d&&(l=!0);if(d&&g.isList(r)){const e=this.detachRangeFormatElement(i.f[0].parentNode,i.f,null,t,!0);(l||1===p)&&(s=e.ec),n&&(o=e.sc||s)}}return{sc:o,ec:s}},nodeChange:function(e,t,i,n){this._resetRangeToTextNode();let l=this.getRange_addLine(this.getRange(),null);t=!!(t&&t.length>0)&&t,i=!!(i&&i.length>0)&&i;const o=!e,s=o&&!i&&!t;let a=l.startContainer,r=l.startOffset,c=l.endContainer,d=l.endOffset;if(s&&l.collapsed&&g.isFormatElement(a.parentNode)||a===c&&1===a.nodeType&&g.isNonEditable(a)){const e=a.parentNode;if(!g.isListCell(e)||!g.getValues(e.style).some(function(e){return this._listKebab.indexOf(e)>-1}.bind(this)))return}if(l.collapsed&&!s&&1===a.nodeType&&!g.isBreak(a)&&!g.isComponent(a)){let e=null;const t=a.childNodes[r];t&&(e=t.nextSibling?g.isBreak(t)?t:t.nextSibling:null);const i=g.createTextNode(g.zeroWidthSpace);a.insertBefore(i,e),this.setRange(i,1,i,1),l=this.getRange(),a=l.startContainer,r=l.startOffset,c=l.endContainer,d=l.endOffset}g.isFormatElement(a)&&(a=a.childNodes[r]||a.firstChild,r=0),g.isFormatElement(c)&&(c=c.childNodes[d]||c.lastChild,d=c.textContent.length),o&&(e=g.createElement("DIV"));const u=h.RegExp,p=e.nodeName;if(!s&&a===c&&!i&&e){let t=a,i=0;const n=[],l=e.style;for(let e=0,o=l.length;e<o;e++)n.push(l[e]);const s=e.classList;for(let e=0,o=s.length;e<o;e++)n.push("."+s[e]);if(n.length>0){for(;!g.isFormatElement(t)&&!g.isWysiwygDiv(t);){for(let l=0;l<n.length;l++)if(1===t.nodeType){const s=n[l],a=!!/^\./.test(s)&&new u("\\s*"+s.replace(/^\./,"")+"(\\
1s+|$)","ig"),r=o?!!t.style[s]:!!t.style[s]&&!!e.style[s]&&t.style[s]===e.style[s],c=!1!==a&&(o?!!t.className.match(a):!!t.className.match(a)&&!!e.className.match(a));(r||c)&&i++}t=t.parentNode}if(i>=n.length)return}}let m,f={},b={},_="",v="",y="";if(t){for(let e,i=0,n=t.length;i<n;i++)e=t[i],/^\./.test(e)?v+=(v?"|":"\\s*(?:")+e.replace(/^\./,""):_+=(_?"|":"(?:;|^|\\s)(?:")+e;_&&(_+=")\\s*:[^;]*\\s*(?:;|$)",_=new u(_,"ig")),v&&(v+=")(?=\\s+|$)",v=new u(v,"ig"))}if(i){y="^(?:"+i[0];for(let e=1;e<i.length;e++)y+="|"+i[e];y+=")$",y=new u(y,"i")}const w=h.Boolean,C={v:!1},x=function(e){const t=e.cloneNode(!1);if(3===t.nodeType||g.isBreak(t))return t;if(s)return null;const i=!y&&o||y&&y.test(t.nodeName);if(i&&!n)return C.v=!0,null;const l=t.style.cssText;let a="";_&&l.length>0&&(a=l.replace(_,"").trim(),a!==l&&(C.v=!0));const r=t.className;let c="";return v&&r.length>0&&(c=r.replace(v,"").trim(),c!==r&&(C.v=!0)),(!o||!v&&r||!_&&l||a||c||!i)&&(a||c||t.nodeName!==p||w(_)!==w(l)||w(v)!==w(r))?(_&&l.length>0&&(t.style.cssText=a),t.style.cssText||t.removeAttribute("style"),v&&r.length>0&&(t.className=c.trim()),t.className.trim()||t.removeAttribute("class"),t.style.cssText||t.className||t.nodeName!==p&&!i?t:(C.v=!0,null)):(C.v=!0,null)},S=this.getSelectedElements(null);l=this.getRange(),a=l.startContainer,r=l.startOffset,c=l.endContainer,d=l.endOffset,g.getFormatElement(a,null)||(a=g.getChildElement(S[0],function(e){return 3===e.nodeType},!1),r=0),g.getFormatElement(c,null)||(c=g.getChildElement(S[S.length-1],function(e){return 3===e.nodeType},!1),d=c.textContent.length);const k=g.getFormatElement(a,null)===g.getFormatElement(c,null),E=S.length-(k?0:1);m=e.cloneNode(!1);const L=s||o&&function(e){for(let t=0,i=e.length;t<i;t++)if(g._isMaintainedNode(e[t])||g._isSizeNode(e[t]))return!0;return!1}(i),N=o||g._isSizeNode(m),T=this._util_getMaintainedNode.bind(g,L,N),z=this._util_isMaintainedNode.bind(g,L,N);if(k){this._resetCommonListCell(S[0],t)&&(l=this.setRange(a,r,c,d));const e=this._nodeChange_oneLine(S[0],m,x,a,r,c,d,s,o,l.collapsed,C,T,z);f.container=e.startContainer,f.offset=e.startOffset,b.container=e.endContainer,b.offset=e.endOffset,f.container===b.container&&g.onlyZeroWidthSpace(f.container)&&(f.offset=b.offset=1),this._setCommonListStyle(e.ancestor,null)}else{let i=!1;E>0&&this._resetCommonListCell(S[E],t)&&(i=!0),this._resetCommonListCell(S[0],t)&&(i=!0),i&&this.setRange(a,r,c,d),E>0&&(m=e.cloneNode(!1),b=this._nodeChange_endLine(S[E],m,x,c,d,s,o,C,T,z));for(let n,l=E-1;l>0;l--)this._resetCommonListCell(S[l],t),m=e.cloneNode(!1),n=this._nodeChange_middleLine(S[l],m,x,s,o,C,b.container),n.endContainer&&n.ancestor.contains(n.endContainer)&&(b.ancestor=null,b.container=n.endContainer),this._setCommonListStyle(n.ancestor,null);m=e.cloneNode(!1),f=this._nodeChange_startLine(S[0],m,x,a,r,s,o,C,T,z,b.container),f.endContainer&&(b.ancestor=null,b.container=f.endContainer),E<=0?b=f:b.container||(b.ancestor=null,b.container=f.container,b.offset=f.container.textContent.length),this._setCommonListStyle(f.ancestor,null),this._setCommonListStyle(b.ancestor||g.getFormatElement(b.container),null)}this.controllersOff(),this.setRange(f.container,f.offset,b.container,b.offset),this.history.push(!1)},_resetCommonListCell:function(e,t){if(!g.isListCell(e))return;t||(t=this._listKebab);const i=g.getArrayItem(e.childNodes,function(e){return!g.isBreak(e)},!0),n=e.style,o=[],s=[],a=g.getValues(n);for(let l=0,h=this._listKebab.length;l<h;l++)a.indexOf(this._listKebab[l])>-1&&t.indexOf(this._listKebab[l])>-1&&(o.push(this._listCamel[l]),s.push(this._listKebab[l]));if(!o.length)return;const r=g.createElement("SPAN");for(let l=0,h=o.length;l<h;l++)r.style[o[l]]=n[s[l]],n.removeProperty(s[l]);let c=r.cloneNode(!1),d=null,u=!1;for(let h,p,m=0,f=i.length;m<f;m++)h=i[m],l._textTagsMap[h.nodeName.toLowerCase()]||(p=g.getValues(h.style),0===p.length||o.some(function(e){return-1===p.indexOf(e)})&&p.some(function(e){o.indexOf(e)})?(d=h.nextSibling,c.appendChild(h)):c.childNodes.length>0&&(e.insertBefore(c,d),c=r.cloneNode(!1),d=null,u=!0));return c.childNodes.length>0&&(e.insertBefore(c,d),u=!0),n.length||e.removeAttribute("style"),u},_setCommonListStyle:function(e,t){if(!g.isListCell(e))return;const i=g.getArrayItem((t||e).childNodes,function(e){return!g.isBreak(e)},!0);if(!(t=i[0])||i.length>1||1!==t.nodeType)return;const n=t.style,o=e.style,s=t.nodeName.toLowerCase();let a=!1;l._textTagsMap[s]===l._defaultCommand.bold.toLowerCase()&&(o.fontWeight="bold"),l._textTagsMap[s]===l._defaultCommand.italic.toLowerCase()&&(o.fontStyle="italic");const r=g.getValues(n);if(r.length>0)for(let l=0,c=this._listCamel.length;l<c;l++)r.indexOf(this._listKebab[l])>-1&&(o[this._listCamel[l]]=n[this._listCamel[l]],n.removeProperty(this._listKebab[l]),a=!0);if(this._setCommonListStyle(e,t),a&&!n.length){const e=t.childNodes,i=t.parentNode,n=t.nextSibling;for(;e.length>0;)i.insertBefore(e[0],n);g.removeItem(t)}}
1,_stripRemoveNode:function(e){const t=e.parentNode;if(!e||3===e.nodeType||!t)return;const i=e.childNodes;for(;i[0];)t.insertBefore(i[0],e);t.removeChild(e)},_util_getMaintainedNode:function(e,t,i){return!i||e?null:this.getParentElement(i,this._isMaintainedNode.bind(this))||(t?null:this.getParentElement(i,this._isSizeNode.bind(this)))},_util_isMaintainedNode:function(e,t,i){if(!i||e||1!==i.nodeType)return!1;const n=this._isMaintainedNode(i);return this.getParentElement(i,this._isMaintainedNode.bind(this))?n:n||!t&&this._isSizeNode(i)},_nodeChange_oneLine:function(e,t,i,n,l,o,s,a,r,c,d,u,p){let m=n.parentNode;for(;!m.nextSibling&&!m.previousSibling&&!g.isFormatElement(m.parentNode)&&!g.isWysiwygDiv(m.parentNode)&&m.nodeName!==t.nodeName;)m=m.parentNode;if(!r&&m===o.parentNode&&m.nodeName===t.nodeName&&g.onlyZeroWidthSpace(n.textContent.slice(0,l))&&g.onlyZeroWidthSpace(o.textContent.slice(s))){const i=m.childNodes;let a=!0;for(let e,t,l,s,r=0,c=i.length;r<c;r++)if(e=i[r],s=!g.onlyZeroWidthSpace(e),e!==n)if(e!==o){if(!t&&s||t&&l&&s){a=!1;break}}else l=!0;else t=!0;if(a)return g.copyTagAttributes(m,t),{ancestor:e,startContainer:n,startOffset:l,endContainer:o,endOffset:s}}d.v=!1;const f=e,b=[t],_=e.cloneNode(!1),v=n===o;let y,w,C,x,S,k=n,E=l,L=o,N=s,T=!1,z=!1;const B=h.RegExp;function A(e){const t=new B("(?:;|^|\\s)(?:"+x+"null)\\s*:[^;]*\\s*(?:;|$)","ig");let i="";return t&&e.style.cssText.length>0&&(i=t.test(e.style.cssText)),!i}if(function e(n,l){const o=n.childNodes;for(let s,r=0,d=o.length;r<d;r++){let n=o[r];if(!n)continue;let d,h=l;if(!T&&n===k){let e=_;S=u(n);const o=g.createTextNode(1===k.nodeType?"":k.substringData(0,E)),a=g.createTextNode(1===k.nodeType?"":k.substringData(E,v&&N>=E?N-E:k.data.length-E));if(S){const t=u(l);if(t&&t.parentNode!==e){let i=t,n=null;for(;i.parentNode!==e;){for(l=n=i.parentNode.cloneNode(!1);i.childNodes[0];)n.appendChild(i.childNodes[0]);i.appendChild(n),i=i.parentNode}i.parentNode.appendChild(t)}S=S.cloneNode(!1)}g.onlyZeroWidthSpace(o)||l.appendChild(o);const r=u(l);for(r&&(S=r),S&&(e=S),w=n,y=[],x="";w!==e&&w!==f&&null!==w;)s=p(w)?null:i(w),s&&1===w.nodeType&&A(w)&&(y.push(s),x+=w.style.cssText.substr(0,w.style.cssText.indexOf(":"))+"|"),w=w.parentNode;const c=y.pop()||a;for(C=w=c;y.length>0;)w=y.pop(),C.appendChild(w),C=w;if(t.appendChild(c),e.appendChild(t),S&&!u(L)&&(t=t.cloneNode(!1),_.appendChild(t),b.push(t)),k=a,E=0,T=!0,w!==a&&w.appendChild(k),!v)continue}if(!z&&n===L){S=u(n);const e=g.createTextNode(1===L.nodeType?"":L.substringData(N,L.length-N)),l=g.createTextNode(v||1===L.nodeType?"":L.substringData(0,N));if(S?S=S.cloneNode(!1):p(t.parentNode)&&!S&&(t=t.cloneNode(!1),_.appendChild(t),b.push(t)),!g.onlyZeroWidthSpace(e)){w=n,x="",y=[];const t=[];for(;w!==_&&w!==f&&null!==w;)1===w.nodeType&&A(w)&&(p(w)?t.push(w.cloneNode(!1)):y.push(w.cloneNode(!1)),x+=w.style.cssText.substr(0,w.style.cssText.indexOf(":"))+"|"),w=w.parentNode;for(y=y.concat(t),d=C=w=y.pop()||e;y.length>0;)w=y.pop(),C.appendChild(w),C=w;_.appendChild(d),w.textContent=e.data}if(S&&d){const e=u(d);e&&(S=e)}for(w=n,y=[],x="";w!==_&&w!==f&&null!==w;)s=p(w)?null:i(w),s&&1===w.nodeType&&A(w)&&(y.push(s),x+=w.style.cssText.substr(0,w.style.cssText.indexOf(":"))+"|"),w=w.parentNode;const o=y.pop()||l;for(C=w=o;y.length>0;)w=y.pop(),C.appendChild(w),C=w;S?((t=t.cloneNode(!1)).appendChild(o),S.insertBefore(t,S.firstChild),_.appendChild(S),b.push(t),S=null):t.appendChild(o),L=l,N=l.data.length,z=!0,!a&&c&&(t=l,l.textContent=g.zeroWidthSpace),w!==l&&w.appendChild(L);continue}if(T){if(1===n.nodeType&&!g.isBreak(n)){g._isIgnoreNodeChange(n)?(_.appendChild(n.cloneNode(!0)),c||(t=t.cloneNode(!1),_.appendChild(t),b.push(t))):e(n,n);continue}w=n,y=[],x="";const o=[];for(;null!==w.parentNode&&w!==f&&w!==t;)s=z?w.cloneNode(!1):i(w),1===w.nodeType&&!g.isBreak(n)&&s&&A(w)&&(p(w)?S||o.push(s):y.push(s),x+=w.style.cssText.substr(0,w.style.cssText.indexOf(":"))+"|"),w=w.parentNode;y=y.concat(o);const a=y.pop()||n;for(C=w=a;y.length>0;)w=y.pop(),C.appendChild(w),C=w;if(!p(t.parentNode)||p(a)||g.onlyZeroWidthSpace(t)||(t=t.cloneNode(!1),_.appendChild(t),b.push(t)),z||S||!p(a))a===n?l=z?_:t:z?(_.appendChild(a),l=w):(t.appendChild(a),l=w);else{t=t.cloneNode(!1);const e=a.childNodes;for(let i=0,n=e.length;i<n;i++)t.appendChild(e[i]);a.appendChild(t),_.appendChild(a),b.push(t),l=t.children.length>0?w:t}if(S&&3===n.nodeType)if(u(n)){const e=g.getParentElement(l,function(e){return this._isMaintainedNode(e.parentNode)||e.parentNode===_}.bind(g));S.appendChild(e),t=e.cloneNode(!1),b.push(t),_.appendChild(t)}else S=null}d=n.cloneNode(!1),l.appendChild(d),1!==n.nodeType||g.isBreak(n)||(h=d),e(n,h)}}(e,_),r&&!a&&!d.v)return{ancestor:e,startContainer:n,startOffset:l,endContainer:o,endOffset:s};if(a=a&&r)for(let h=0;h<b.length;h++){let e,t,i,n=b[h];if(c)e=g.createTextNode(g.zeroWidthSpace),_.replaceChild(e,n);else{const e=n.childNodes;for(t=e[0];e[0];)i=e[0],_.insertBefore(i,n);g.removeItem(n)}0===h&&(c?k=L=e:(k=t,L=i))}else{if(r)for(let e=0;e<b.length;e++)this._stripRemoveNode(b[e]);c&&(k=L=t)}g.removeEmptyNode(_,t,!1),c&&(E=k.textContent.length,N=L.textContent.length);const R=a||0===L.textContent.length;g.isBreak(L)||0!==L.textContent.length||(g.removeItem(L),L=k),N=R?L.textContent.length:N;const I={s:0,e:0},M=g.getNodePath(k,_,I),H=!L.parentNode;H&&(L=k);const O={s:0,e:0},D=g.getNodePath(L,_,H||R?null:O);E+=I.s,N=c?E:H?k.textContent.length:R?N+I.s:N+O.s;const F=g.mergeSameTags(_,[M,D],!0);return e.parentNode.replaceChild(_,e),k=g.getNodeFromPath(M,_),L=g.getNodeFromPath(D,_),{ancestor:_,startContainer:k,startOffset:E+F[0],endContainer:L,endOffset:N+F[1]}},_nodeChange_startLine:function(e,t,i,n,l,o,s,a,r,c,d){let u=n.parentNode;for(;!u.nextSibling&&!u.previousSibling&&!g.isFormatElement(u.parentNode)&&!g.isWysiwygDiv(u.parentNode)&&u.nodeName!==t.nodeName;)u=u.parentNode;if(!s&&u.nodeName===t.nodeName&&!g.isFormatElement(u)&&!u.nextSibling&&g.onlyZeroWidthSpace(n.textContent.slice(0,l))){let i=!0,o=n.previousSibling;for(;o;){if(!g.onlyZeroWidthSpace(o)){i=!1;break}o=o.previousSibling}if(i)return g.copyTagAttributes(u,t),{ancestor:e,container:n,offset:l}}a.v=!1;const h=e,p=[t],m=e.cloneNode(!1);let f,b,_,v,y=n,w=l,C=!1;if(function e(n,l){const o=n.childNodes;for(let s,a,u=0,x=o.length;u<x;u++){const n=o[u];if(!n)continue;let x=l;if(C&&!g.isBreak(n)){if(1===n.nodeType){if(g._isIgnoreNodeChange(n)){if
1(t=t.cloneNode(!1),a=n.cloneNode(!0),m.appendChild(a),m.appendChild(t),p.push(t),d&&n.contains(d)){const e=g.getNodePath(d,n);d=g.getNodeFromPath(e,a)}}else e(n,n);continue}b=n,f=[];const o=[];for(;null!==b.parentNode&&b!==h&&b!==t;)s=i(b),1===b.nodeType&&s&&(c(b)?v||o.push(s):f.push(s)),b=b.parentNode;f=f.concat(o);const u=f.length>0,y=f.pop()||n;for(_=b=y;f.length>0;)b=f.pop(),_.appendChild(b),_=b;if(c(t.parentNode)&&!c(y)&&(t=t.cloneNode(!1),m.appendChild(t),p.push(t)),!v&&c(y)){t=t.cloneNode(!1);const e=y.childNodes;for(let i=0,n=e.length;i<n;i++)t.appendChild(e[i]);y.appendChild(t),m.appendChild(y),l=c(b)?t:b,p.push(t)}else u?(t.appendChild(y),l=b):l=t;if(v&&3===n.nodeType)if(r(n)){const e=g.getParentElement(l,function(e){return this._isMaintainedNode(e.parentNode)||e.parentNode===m}.bind(g));v.appendChild(e),t=e.cloneNode(!1),p.push(t),m.appendChild(t)}else v=null}if(!C&&n===y){let e=m;v=r(n);const o=g.createTextNode(1===y.nodeType?"":y.substringData(0,w)),a=g.createTextNode(1===y.nodeType?"":y.substringData(w,y.length-w));if(v){const t=r(l);if(t&&t.parentNode!==e){let i=t,n=null;for(;i.parentNode!==e;){for(l=n=i.parentNode.cloneNode(!1);i.childNodes[0];)n.appendChild(i.childNodes[0]);i.appendChild(n),i=i.parentNode}i.parentNode.appendChild(t)}v=v.cloneNode(!1)}g.onlyZeroWidthSpace(o)||l.appendChild(o);const c=r(l);for(c&&(v=c),v&&(e=v),b=l,f=[];b!==e&&null!==b;)s=i(b),1===b.nodeType&&s&&f.push(s),b=b.parentNode;const d=f.pop()||l;for(_=b=d;f.length>0;)b=f.pop(),_.appendChild(b),_=b;d!==l?(t.appendChild(d),l=b):l=t,g.isBreak(n)&&t.appendChild(n.cloneNode(!1)),e.appendChild(t),y=a,w=0,C=!0,l.appendChild(y);continue}s=C?i(n):n.cloneNode(!1),s&&(l.appendChild(s),1!==n.nodeType||g.isBreak(n)||(x=s)),e(n,x)}}(e,m),s&&!o&&!a.v)return{ancestor:e,container:n,offset:l,endContainer:d};if(o=o&&s)for(let x=0;x<p.length;x++){let e=p[x];const t=e.childNodes,i=t[0];for(;t[0];)m.insertBefore(t[0],e);g.removeItem(e),0===x&&(y=i)}else if(s){t=t.firstChild;for(let e=0;e<p.length;e++)this._stripRemoveNode(p[e])}if(o||0!==m.childNodes.length){g.removeEmptyNode(m,t,!1),g.onlyZeroWidthSpace(m.textContent)&&(y=m.firstChild,w=0);const i={s:0,e:0},n=g.getNodePath(y,m,i);w+=i.s;const l=g.mergeSameTags(m,[n],!0);e.parentNode.replaceChild(m,e),y=g.getNodeFromPath(n,m),w+=l[0]}else e.childNodes?y=e.childNodes[0]:(y=g.createTextNode(g.zeroWidthSpace),e.appendChild(y));return{ancestor:m,container:y,offset:w,endContainer:d}},_nodeChange_middleLine:function(e,t,i,n,l,o,s){if(!l){let i=null;s&&e.contains(s)&&(i=g.getNodePath(s,e));const n=e.cloneNode(!0),l=t.nodeName,o=t.style.cssText,a=t.className;let r=n.childNodes,c=0,d=r.length;for(let e;c<d&&(e=r[c],3!==e.nodeType);c++){if(e.nodeName!==l){if(!g.isBreak(e)&&g._isIgnoreNodeChange(e))continue;if(1===d){r=e.childNodes,d=r.length,c=-1;continue}break}e.style.cssText+=o,g.addClass(e,a)}if(d>0&&c===d)return e.innerHTML=n.innerHTML,{ancestor:e,endContainer:i?g.getNodeFromPath(i,e):null}}o.v=!1;const a=e.cloneNode(!1),r=[t];let c=!0;if(function e(n,l){const o=n.childNodes;for(let d,u,h=0,p=o.length;h<p;h++){let n=o[h];if(!n)continue;let p=l;if(g.isBreak(n)||!g._isIgnoreNodeChange(n))d=i(n),d&&(c=!1,l.appendChild(d),1===n.nodeType&&(p=d)),g.isBreak(n)||e(n,p);else if(t.childNodes.length>0&&(a.appendChild(t),t=t.cloneNode(!1)),u=n.cloneNode(!0),a.appendChild(u),a.appendChild(t),r.push(t),l=t,s&&n.contains(s)){const e=g.getNodePath(s,n);s=g.getNodeFromPath(e,u)}}}(e,t),c||l&&!n&&!o.v)return{ancestor:e,endContainer:s};if(a.appendChild(t),n&&l)for(let d=0;d<r.length;d++){let e=r[d];const t=e.childNodes;for(;t[0];)a.insertBefore(t[0],e);g.removeItem(e)}else if(l){t=t.firstChild;for(let e=0;e<r.length;e++)this._stripRemoveNode(r[e])}return g.removeEmptyNode(a,t,!1),g.mergeSameTags(a,null,!0),e.parentNode.replaceChild(a,e),{ancestor:a,endContainer:s}},_nodeChange_endLine:function(e,t,i,n,l,o,s,a,r,c){let d=n.parentNode;for(;!d.nextSibling&&!d.previousSibling&&!g.isFormatElement(d.parentNode)&&!g.isWysiwygDiv(d.parentNode)&&d.nodeName!==t.nodeName;)d=d.parentNode;if(!s&&d.nodeName===t.nodeName&&!g.isFormatElement(d)&&!d.previousSibling&&g.onlyZeroWidthSpace(n.textContent.slice(l))){let i=!0,o=n.nextSibling;for(;o;){if(!g.onlyZeroWidthSpace(o)){i=!1;break}o=o.nextSibling}if(i)return g.copyTagAttributes(d,t),{ancestor:e,container:n,offset:l}}a.v=!1;const u=e,h=[t],p=e.cloneNode(!1);let m,f,b,_,v=n,y=l,w=!1;if(function e(n,l){const o=n.childNodes;for(let s,a=o.length-1;0<=a;a--){const n=o[a];if(!n)continue;let d=l;if(w&&!g.isBreak(n)){if(1===n.nodeType){if(g._isIgnoreNodeChange(n)){t=t.cloneNode(!1);const e=n.cloneNode(!0);p.insertBefore(e,l),p.insertBefore(t,e),h.push(t)}else e(n,n);continue}f=n,m=[];const o=[];for(;null!==f.parentNode&&f!==u&&f!==t;)s=i(f),s&&1===f.nodeType&&(c(f)?_||o.push(s):m.push(s)),f=f.parentNode;m=m.concat(o);const a=m.length>0,d=m.pop()||n;for(b=f=d;m.length>0;)f=m.pop(),b.appendChild(f),b=f;if(c(t.parentNode)&&!c(d)&&(t=t.cloneNode(!1),p.insertBefore(t,p.firstChild),h.push(t)),!_&&c(d)){t=t.cloneNode(!1);const e=d.childNodes;for(let i=0,n=e.length;i<n;i++)t.appendChild(e[i]);d.appendChild(t),p.insertBefore(d,p.firstChild),h.push(t),l=t.children.length>0?f:t}else a?(t.insertBefore(d,t.firstChild),l=f):l=t;if(_&&3===n.nodeType)if(r(n)){const e=g.getParentElement(l,function(e){return this._isMaintainedNode(e.parentNode)||e.parentNode===p}.bind(g));_.appendChild(e),t=e.cloneNode(!1),h.push(t),p.insertBefore(t,p.firstChild)}else _=null}if(!w&&n===v){_=r(n);const e=g.createTextNode(1===v.nodeType?"":v.substringData(y,v.length-y)),o=g.createTextNode(1===v.nodeType?"":v.substringData(0,y));if(_){_=_.cloneNode(!1);const e=r(l);if(e&&e.parentNode!==p){let t=e,i=null;for(;t.parentNode!==p;){for(l=i=t.parentNode.cloneNode(!1);t.childNodes[0];)i.appendChild(t.childNodes[0]);t.appendChild(i),t=t.parentNode}t.parentNode.insertBefore(e,t.parentNode.firstChild)}_=_.cloneNode(!1)}else c(t.parentNode)&&!_&&(t=t.cloneNode(!1),p.appendChild(t),h.push(t));for(g.onlyZeroWidthSpace(e)||l.insertBefore(e,l.firstChild),f=l,m=[];f!==p&&null!==f;)s=c(f)?null:i(f),s&&1===f.nodeType&&m.push(s),f=f.parentNode;const a=m.pop()||l;for(b=f=a;m.length>0;)f=m.pop(),b.appendChild(f),b=f;a!==l?(t.insertBefore(a,t.firstChild),l=f):l=t,g.isBreak(n)&&t.appendChild(n.cloneNode(!1)),_?(_.insertBefore(t,_.firstChild),p.insertBefore(_,p.firstChild),_=null):p.insertBefore(t,p.firstChild),v=o,y=o.data.length,w=!0,l.insertBefore(v,l.firstChild);continue}s=w?i(n):n.cloneNode(!1),s&&(l.insertBefore(s,l.firstChild),1!==n.nodeType||g.isBreak(n)||(d=s)),e(n,d)}}(e,p),s&&!o&&!a.v)return{ancestor:e,container:n,offset:l};if(o=o&&s)for(let C=0;C<h.length;C++){let e=h[C];const t=e.childNodes;let i=null;for(;t[0];)i=t[0],p.insertBefore(i,e);g.removeItem(e),C===h.length-1&&(v=i,y=i.textContent.length)}else if(s){t=t.firstChild;for(let e=0;e<h.length;e++)this._stripRemoveNode(h[e])}if(o||0!==p.childNodes.length){if(!s&&0===t.textContent.length)return g.removeEmptyNode(p,null,!1),{ancestor:null,container:null,offset:0};g.removeEmptyNode(p,t,!1),g.onlyZeroWidthSpace(p.textContent)?(v=p.firstChild,y=v.textContent.length):g.onlyZeroWidthSpace(v)&&(v=t,y=1);const i={s:0,e:0},n=g.getNodePath(v,p,i);y+=i.s;const l=g.mergeSameTags(p,[n],!0);e.parentNode.replaceChild(p,e),v=g.getNodeFromPath(n,p),y+=l[0]}else e.childNodes?v=e.childNodes[0]:(v=g.createTextNode(g.zeroWidthSpace),e.appendChild(v));return{ancestor:p,container:v,offset:1===v.nodeType&&1===y?v.childNodes.length:y}}
1,actionCall:function(t,i,n){if(i){if(/more/i.test(i)){if(n!==this._moreLayerActiveButton){const i=e.element.toolbar.querySelector("."+t);i&&(this._moreLayerActiveButton&&this.moreLayerOff(),this._moreLayerActiveButton=n,i.style.display="block",f._showToolbarBalloon(),f._showToolbarInline()),g.addClass(n,"on")}else{e.element.toolbar.querySelector("."+this._moreLayerActiveButton.getAttribute("data-command"))&&(this.moreLayerOff(),f._showToolbarBalloon(),f._showToolbarInline())}return}if(/container/.test(i)&&(null===this._menuTray[t]||n!==this.containerActiveButton))return void this.callPlugin(t,this.containerOn.bind(this,n),n);if(this.isReadOnly&&g.arrayIncludes(this.resizingDisabledButtons,n))return;if(/submenu/.test(i)&&(null===this._menuTray[t]||n!==this.submenuActiveButton))return void this.callPlugin(t,this.submenuOn.bind(this,n),n);if(/dialog/.test(i))return void this.callPlugin(t,this.plugins[t].open.bind(this),n);/command/.test(i)?this.callPlugin(t,this.plugins[t].action.bind(this),n):/fileBrowser/.test(i)&&this.callPlugin(t,this.plugins[t].open.bind(this,null),n)}else t&&this.commandHandler(n,t);/submenu/.test(i)?this.submenuOff():/command/.test(i)||(this.submenuOff(),this.containerOff())},commandHandler:function(t,i){if(!m.isReadOnly||/copy|cut|selectAll|codeView|fullScreen|print|preview|showBlocks/.test(i))switch(i){case"copy":case"cut":this.execCommand(i);break;case"paste":break;case"selectAll":this.containerOff();const n=e.element.wysiwyg;let o=g.getChildElement(n.firstChild,function(e){return 0===e.childNodes.length||3===e.nodeType},!1)||n.firstChild,s=g.getChildElement(n.lastChild,function(e){return 0===e.childNodes.length||3===e.nodeType},!0)||n.lastChild;if(!o||!s)return;if(g.isMedia(o)){const e=this.getFileComponent(o),t=g.createElement("BR"),i=g.createElement(l.defaultTag);i.appendChild(t),o=e?e.component:o,o.parentNode.insertBefore(i,o),o=t}if(g.isMedia(s)){const e=g.createElement("BR"),t=g.createElement(l.defaultTag);t.appendChild(e),n.appendChild(t),s=e}f._showToolbarBalloon(this.setRange(o,0,s,s.textContent.length));break;case"codeView":this.toggleCodeView();break;case"fullScreen":this.toggleFullScreen(t);break;case"indent":case"outdent":this.indent(i);break;case"undo":this.history.undo();break;case"redo":this.history.redo();break;case"removeFormat":this.removeFormat(),this.focus();break;case"print":this.print();break;case"preview":this.preview();break;case"showBlocks":this.toggleDisplayBlocks();break;case"dir":this.setDir(l.rtl?"ltr":"rtl");break;case"dir_ltr":this.setDir("ltr");break;case"dir_rtl":this.setDir("rtl");break;case"save":if("function"===typeof l.callBackSave)l.callBackSave(this.getContents(!1),this._variable.isChanged);else{if(!this._variable.isChanged||"function"!==typeof b.save)throw Error("[SUNEDITOR.core.commandHandler.fail] Please register call back function in creation option. (callBackSave : Function)");b.save()}this._variable.isChanged=!1,e.tool.save&&e.tool.save.setAttribute("disabled",!0);break;default:i=l._defaultCommand[i.toLowerCase()]||i,this.commandMap[i]||(this.commandMap[i]=t);const a=this._variable.currentNodesMap,r=a.indexOf(i)>-1?null:g.createElement(i);let c=i;/^SUB$/i.test(i)&&a.indexOf("SUP")>-1?c="SUP":/^SUP$/i.test(i)&&a.indexOf("SUB")>-1&&(c="SUB"),this.nodeChange(r,this._commandMapStyles[i]||null,[c],!1),this.focus()}},removeFormat:function(){this.nodeChange(null,null,null,null)},indent:function(e){const t=this.getRange(),i=this.getSelectedElements(null),n=[],o="indent"!==e,s=l.rtl?"marginRight":"marginLeft";let a=t.startContainer,r=t.endContainer,c=t.startOffset,d=t.endOffset;for(let l,u,h=0,p=i.length;h<p;h++)l=i[h],g.isListCell(l)&&this.plugins.list?(o||l.previousElementSibling)&&n.push(l):(u=/\d+/.test(l.style[s])?g.getNumber(l.style[s],0):0,o?u-=25:u+=25,g.setStyle(l,s,u<=0?"":u+"px"));n.length>0&&this.plugins.list.editInsideList.call(this,o,n),this.effectNode=null,this.setRange(a,c,r,d),this.history.push(!1)},toggleDisplayBlocks:function(){const t=e.element.wysiwyg;g.toggleClass(t,"se-show-block"),g.hasClass(t,"se-show-block")?g.addClass(this._styleCommandMap.showBlocks,"active"):g.removeClass(this._styleCommandMap.showBlocks,"active"),this._resourcesStateChange()}
1,toggleCodeView:function(){const t=this._variable.isCodeView;this.controllersOff(),g.setDisabledButtons(!t,this.codeViewDisabledButtons),t?(g.isNonEditable(e.element.wysiwygFrame)||this._setCodeDataToEditor(),e.element.wysiwygFrame.scrollTop=0,e.element.code.style.display="none",e.element.wysiwygFrame.style.display="block",this._variable._codeOriginCssText=this._variable._codeOriginCssText.replace(/(\s?display(\s+)?:(\s+)?)[a-zA-Z]+(?=;)/,"display: none"),this._variable._wysiwygOriginCssText=this._variable._wysiwygOriginCssText.replace(/(\s?display(\s+)?:(\s+)?)[a-zA-Z]+(?=;)/,"display: block"),"auto"!==l.height||l.codeMirrorEditor||(e.element.code.style.height="0px"),this._variable.isCodeView=!1,this._variable.isFullScreen||(this._notHideToolbar=!1,/balloon|balloon-always/i.test(l.mode)&&(e.element._arrow.style.display="",this._isInline=!1,this._isBalloon=!0,f._hideToolbar())),this.nativeFocus(),g.removeClass(this._styleCommandMap.codeView,"active"),g.isNonEditable(e.element.wysiwygFrame)||(this.history.push(!1),this.history._resetCachingButton())):(this._setEditorDataToCodeView(),this._variable._codeOriginCssText=this._variable._codeOriginCssText.replace(/(\s?display(\s+)?:(\s+)?)[a-zA-Z]+(?=;)/,"display: block"),this._variable._wysiwygOriginCssText=this._variable._wysiwygOriginCssText.replace(/(\s?display(\s+)?:(\s+)?)[a-zA-Z]+(?=;)/,"display: none"),this._variable.isFullScreen?e.element.code.style.height="100%":"auto"!==l.height||l.codeMirrorEditor||(e.element.code.style.height=e.element.code.scrollHeight>0?e.element.code.scrollHeight+"px":"auto"),l.codeMirrorEditor&&l.codeMirrorEditor.refresh(),this._variable.isCodeView=!0,this._variable.isFullScreen||(this._notHideToolbar=!0,this._isBalloon&&(e.element._arrow.style.display="none",e.element.toolbar.style.left="",this._isInline=!0,this._isBalloon=!1,f._showToolbarInline())),this._variable._range=null,e.element.code.focus(),g.addClass(this._styleCommandMap.codeView,"active")),this._checkPlaceholder(),this.isReadOnly&&g.setDisabledButtons(!0,this.resizingDisabledButtons),"function"===typeof b.toggleCodeView&&b.toggleCodeView(this._variable.isCodeView,this)},_setCodeDataToEditor:function(){const t=this._deleteDisallowedTags(this._getCodeView());if(l.fullPage){const e=this._parser.parseFromString(t,"text/html");if(!this.options.__allowedScriptTag){const t=e.head.children;for(let i=0,n=t.length;i<n;i++)/^script$/i.test(t[i].tagName)&&(e.head.removeChild(t[i]),i--,n--)}let i=e.head.innerHTML;e.head.querySelector('link[rel="stylesheet"]')&&("auto"!==this.options.height||e.head.querySelector("style"))||(i+=g._setIframeCssTags(this.options)),this._wd.head.innerHTML=i,this._wd.body.innerHTML=this.convertContentsForEditor(e.body.innerHTML);const n=e.body.attributes;for(let t=0,l=n.length;t<l;t++)"contenteditable"!==n[t].name&&this._wd.body.setAttribute(n[t].name,n[t].value);if(!g.hasClass(this._wd.body,"sun-editor-editable")){const e=l._editableClass.split(" ");for(let t=0;t<e.length;t++)g.addClass(this._wd.body,l._editableClass[t])}}else e.element.wysiwyg.innerHTML=t.length>0?this.convertContentsForEditor(t):"<"+l.defaultTag+"><br></"+l.defaultTag+">"},_setEditorDataToCodeView:function(){const t=this.convertHTMLForCodeView(e.element.wysiwyg,!1);let i="";if(l.fullPage){const e=g.getAttributesToString(this._wd.body,null);i="<!DOCTYPE html>\n<html>\n"+this._wd.head.outerHTML.replace(/>(?!\n)/g,">\n")+"<body "+e+">\n"+t+"</body>\n</html>"}else i=t;e.element.code.style.display="block",e.element.wysiwygFrame.style.display="none",this._setCodeView(i)},toggleFullScreen:function(t){const i=e.element.topArea,n=e.element.toolbar,o=e.element.editorArea,a=e.element.wysiwygFrame,r=e.element.code,c=this._variable;this.controllersOff();const d="none"===n.style.display||this._isInline&&!this._inlineToolbarAttr.isShow;c.isFullScreen?(c.isFullScreen=!1,a.style.cssText=c._wysiwygOriginCssText,r.style.cssText=c._codeOriginCssText,n.style.cssText="",o.style.cssText=c._editorAreaOriginCssText,i.style.cssText=c._originCssText,s.body.style.overflow=c._bodyOverflow,"auto"!==l.height||l.codeMirrorEditor||f._codeViewAutoHeight(),l.toolbarContainer&&l.toolbarContainer.appendChild(n),l.stickyToolbar>-1&&g.removeClass(n,"se-toolbar-sticky"),c._fullScreenAttrs.sticky&&!l.toolbarContainer&&(c._fullScreenAttrs.sticky=!1,e.element._stickyDummy.style.display="block",g.addClass(n,"se-toolbar-sticky")),this._isInline=c._fullScreenAttrs.inline,this._isBalloon=c._fullScreenAttrs.balloon,this._isInline&&f._showToolbarInline(),l.toolbarContainer&&g.removeClass(n,"se-toolbar-balloon"),f.onScroll_window(),t&&g.changeElement(t.firstElementChild,p.expansion),e.element.topArea.style.marginTop="",g.removeClass(this._styleCommandMap.fullScreen,"active")):(c.isFullScreen=!0,c._fullScreenAttrs.inline=this._isInline,c._fullScreenAttrs.balloon=this._isBalloon,(this._isInline||this._isBalloon)&&(this._isInline=!1,this._isBalloon=!1),l.toolbarContainer&&e.element.relative.insertBefore(n,o),i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.maxWidth="100%",i.style.height="100%",i.style.zIndex="2147483647",""!==e.element._stickyDummy.style.display&&(c._fullScreenAttrs.sticky=!0,e.element._stickyDummy.style.display="none",g.removeClass(n,"se-toolbar-sticky")),c._bodyOverflow=s.body.style.overflow,s.body.style.overflow="hidden",c._editorAreaOriginCssText=o.style.cssText,c._wysiwygOriginCssText=a.style.cssText,c._codeOriginCssText=r.style.cssText,o.style.cssText=n.style.cssText="",a.style.cssText=(a.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+l._editorStyles.editor,r.style.cssText=(r.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0],n.style.width=a.style.height=r.style.height="100%",
1n.style.position="relative",n.style.display="block",c.innerHeight_fullScreen=h.innerHeight-n.offsetHeight,o.style.height=c.innerHeight_fullScreen-l.fullScreenOffset+"px",t&&g.changeElement(t.firstElementChild,p.reduction),l.iframe&&"auto"===l.height&&(o.style.overflow="auto",this._iframeAutoHeight()),e.element.topArea.style.marginTop=l.fullScreenOffset+"px",g.addClass(this._styleCommandMap.fullScreen,"active")),d&&b.toolbar.hide(),"function"===typeof b.toggleFullScreen&&b.toggleFullScreen(this._variable.isFullScreen,this)},print:function(){const e=g.createElement("IFRAME");e.style.display="none",s.body.appendChild(e);const t=l.printTemplate?l.printTemplate.replace(/\{\{\s*contents\s*\}\}/i,this.getContents(!0)):this.getContents(!0),i=g.getIframeDocument(e),n=this._wd;if(l.iframe){const e=null!==l._printClass?'class="'+l._printClass+'"':l.fullPage?g.getAttributesToString(n.body,["contenteditable"]):'class="'+l._editableClass+'"';i.write("<!DOCTYPE html><html><head>"+n.head.innerHTML+"</head><body "+e+">"+t+"</body></html>")}else{const e=s.head.getElementsByTagName("link"),n=s.head.getElementsByTagName("style");let o="";for(let t=0,i=e.length;t<i;t++)o+=e[t].outerHTML;for(let t=0,i=n.length;t<i;t++)o+=n[t].outerHTML;i.write("<!DOCTYPE html><html><head>"+o+'</head><body class="'+(null!==l._printClass?l._printClass:l._editableClass)+'">'+t+"</body></html>")}this.showLoading(),h.setTimeout(function(){try{if(e.focus(),g.isIE_Edge||g.isChromium||s.documentMode||h.StyleMedia)try{e.contentWindow.document.execCommand("print",!1,null)}catch(t){e.contentWindow.print()}else e.contentWindow.print()}catch(i){throw Error("[SUNEDITOR.core.print.fail] error: "+i)}finally{m.closeLoading(),g.removeItem(e)}},1e3)},preview:function(){m.submenuOff(),m.containerOff(),m.controllersOff();const e=l.previewTemplate?l.previewTemplate.replace(/\{\{\s*contents\s*\}\}/i,this.getContents(!0)):this.getContents(!0),t=h.open("","_blank");t.mimeType="text/html";const i=this._wd;if(l.iframe){const n=null!==l._printClass?'class="'+l._printClass+'"':l.fullPage?g.getAttributesToString(i.body,["contenteditable"]):'class="'+l._editableClass+'"';t.document.write("<!DOCTYPE html><html><head>"+i.head.innerHTML+"<style>body {overflow:auto !important; margin: 10px auto !important; height:auto !important; outline:1px dashed #ccc;}</style></head><body "+n+">"+e+"</body></html>")}else{const i=s.head.getElementsByTagName("link"),o=s.head.getElementsByTagName("style");let a="";for(let e=0,t=i.length;e<t;e++)a+=i[e].outerHTML;for(let e=0,t=o.length;e<t;e++)a+=o[e].outerHTML;
1t.document.write('<!DOCTYPE html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><title>'+n.toolbar.preview+"</title>"+a+'</head><body class="'+(null!==l._printClass?l._printClass:l._editableClass)+'" style="margin:10px auto !important; height:auto !important; outline:1px dashed #ccc;">'+e+"</body></html>")}},setDir:function(t){const i="rtl"===t,o=this._prevRtl!==i;this._prevRtl=l.rtl=i,o&&(this.plugins.align&&this.plugins.align.exchangeDir.call(this),e.tool.indent&&g.changeElement(e.tool.indent.firstElementChild,p.indent),e.tool.outdent&&g.changeElement(e.tool.outdent.firstElementChild,p.outdent));const s=e.element;i?(g.addClass(s.topArea,"se-rtl"),g.addClass(s.wysiwygFrame,"se-rtl")):(g.removeClass(s.topArea,"se-rtl"),g.removeClass(s.wysiwygFrame,"se-rtl"));const a=g.getListChildren(s.wysiwyg,function(e){return g.isFormatElement(e)&&(e.style.marginRight||e.style.marginLeft||e.style.textAlign)});for(let e,n,l,c=0,d=a.length;c<d;c++)e=a[c],l=e.style.marginRight,n=e.style.marginLeft,(l||n)&&(e.style.marginRight=n,e.style.marginLeft=l),l=e.style.textAlign,"left"===l?e.style.textAlign="right":"right"===l&&(e.style.textAlign="left");const r=e.tool;r.dir&&(g.changeTxt(r.dir.querySelector(".se-tooltip-text"),n.toolbar[l.rtl?"dir_ltr":"dir_rtl"]),g.changeElement(r.dir.firstElementChild,p[l.rtl?"dir_ltr":"dir_rtl"])),r.dir_ltr&&(i?g.removeClass(r.dir_ltr,"active"):g.addClass(r.dir_ltr,"active")),r.dir_rtl&&(i?g.addClass(r.dir_rtl,"active"):g.removeClass(r.dir_rtl,"active"))},setContents:function(t){this.removeRange();const i=null===t||void 0===t?"":this.convertContentsForEditor(t,null,null);if(this._variable.isCodeView){const e=this.convertHTMLForCodeView(i,!1);this._setCodeView(e)}else e.element.wysiwyg.innerHTML=i,this._resetComponents(),this.history.push(!1)},setIframeContents:function(e){if(!l.iframe)return!1;e.head&&(this._wd.head.innerHTML=this.options.__allowedScriptTag?e.head:e.head.replace(this.__scriptTagRegExp,"")),e.body&&(this._wd.body.innerHTML=this.convertContentsForEditor(e.body)),this._resetComponents()},getContents:function(t){const i=this.cleanHTML(e.element.wysiwyg.innerHTML,null,null),n=g.createElement("DIV");n.innerHTML=i;const o=g.getListChildren(n,function(e){return e.hasAttribute("contenteditable")});for(let e=0,l=o.length;e<l;e++)o[e].removeAttribute("contenteditable");if(l.fullPage&&!t){const e=g.getAttributesToString(this._wd.body,["contenteditable"]);return"<!DOCTYPE html><html>"+this._wd.head.outerHTML+"<body "+e+">"+n.innerHTML+"</body></html>"}return n.innerHTML},getFullContents:function(e){return'<div class="sun-editor-editable'+(l.rtl?" se-rtl":"")+'">'+this.getContents(e)+"</div>"},_makeLine:function(e,t){const i=l.defaultTag;if(1===e.nodeType){if(this.__disallowedTagNameRegExp.test(e.nodeName))return"";if(/__se__tag/.test(e.className))return e.outerHTML;const n=g.getListChildNodes(e,function(e){return g.isSpanWithoutAttr(e)&&!g.getParentElement(e,g.isNotCheckingNode)})||[];for(let e=n.length-1;e>=0;e--)n[e].outerHTML=n[e].innerHTML;return!t||g.isFormatElement(e)||g.isRangeFormatElement(e)||g.isComponent(e)||g.isFigures(e)||g.isAnchor(e)&&g.isMedia(e.firstElementChild)?g.isSpanWithoutAttr(e)?e.innerHTML:e.outerHTML:"<"+i+">"+(g.isSpanWithoutAttr(e)?e.innerHTML:e.outerHTML)+"</"+i+">"}if(3===e.nodeType){if(!t)return g._HTMLConvertor(e.textContent);const n=e.textContent.split(/\n/g);let l="";for(let e,t=0,o=n.length;t<o;t++)e=n[t].trim(),e.length>0&&(l+="<"+i+">"+g._HTMLConvertor(e)+"</"+i+">");return l}return 8===e.nodeType&&this._allowHTMLComments?"\x3c!--"+e.textContent.trim()+"--\x3e":""},_tagConvertor:function(e){if(!this._disallowedTextTagsRegExp)return e;const t=l._textTagsMap;return e.replace(this._disallowedTextTagsRegExp,function(e,i,n,l){return i+("string"===typeof t[n]?t[n]:n)+(l?" "+l:"")})},_deleteDisallowedTags:function(e){return e=e.replace(this.__disallowedTagsRegExp,"").replace(/<[a-z0-9]+\:[a-z0-9]+[^>^\/]*>[^>]*<\/[a-z0-9]+\:[a-z0-9]+>/gi,""),/\bfont\b/i.test(this.options._editorTagsWhitelist)||(e=e.replace(/(<\/?)font(\s?)/gi,"$1span$2")),e.replace(this.editorTagsWhitelistRegExp,"").replace(this.editorTagsBlacklistRegExp,"")},_convertFontSize:function(e,t){const i=this._w.Math,n=t.match(/(\d+(?:\.\d+)?)(.+)/),l=n?1*n[1]:g.fontValueMap[t],o=n?n[2]:"rem";let s=l;switch(/em/.test(o)?s=i.round(l/.0625):"pt"===o?s=i.round(1.333*l):"%"===o&&(s=l/100),e){case"em":case"rem":case"%":return(.0625*s).toFixed(2)+e;case"pt":return i.round(s/1.333)+e;default:return s+e}},_cleanStyle:function(e,t,i){let n=(e.match(/style\s*=\s*(?:"|')[^"']*(?:"|')/)||[])[0];if(/span/i.test(i)&&!n&&(e.match(/<[^\s]+\s(.+)/)||[])[1]){const t=(e.match(/\ssize="([^"]+)"/i)||[])[1],i=(e.match(/\sface="([^"]+)"/i)||[])[1],l=(e.match(/\scolor="([^"]+)"/i)||[])[1];(t||i||l)&&(n='style="'+(t?"font-size:"+this.util.getNumber(t/3.333,1)+"rem;":"")+(i?"font-family:"+i+";":"")+(l?"color:"+l+";":"")+'"')}if(n){t||(t=[]);const e=n.replace(/&quot;/g,"").match(this._cleanStyleRegExp[i]);if(e){const i=[];for(let t,n=0,o=e.length;n<o;n++)if(t=e[n].match(/([a-zA-Z0-9-]+)(:)([^"']+)/),t&&!/inherit|initial|revert|unset/i.test(t[3])){const e=g.kebabToCamelCase(t[1].trim()),n=this.wwComputedStyle[e]?this.wwComputedStyle[e].replace(/"/g,""):"",o=t[3].trim();switch(e){case"fontFamily":if(!l.plugins.font||-1===l.font.indexOf(o))continue;break;case"fontSize":if(!l.plugins.fontSize)continue;this._cleanStyleRegExp.fontSizeUnit.test(t[0])||(t[0]=t[0].replace((t[0].match(/:\s*([^;
1]+)/)||[])[1],this._convertFontSize.bind(this,l.fontSizeUnit)));break;case"color":if(!l.plugins.fontColor||/rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i.test(o))continue;break;case"backgroundColor":if(!l.plugins.hiliteColor||/rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i.test(o))continue}n!==o&&i.push(t[0])}i.length>0&&t.push('style="'+i.join(";")+'"')}}return t},_cleanTags:function(e,t,i){if(/^<[a-z0-9]+\:[a-z0-9]+/i.test(t))return t;let n=null;const l=i.match(/(?!<)[a-zA-Z0-9\-]+/)[0].toLowerCase(),o=this._attributesTagsBlacklist[l];t=t.replace(/\s(?:on[a-z]+)\s*=\s*(?:(["'])[^"']*\1|\S+)/gi,""),t=o?t.replace(o,""):t.replace(this._attributesBlacklistRegExp,"");const s=this._attributesTagsWhitelist[l];if(n=s?t.match(s):t.match(e?this._attributesWhitelistRegExp:this._attributesWhitelistRegExp_all_data),e||"span"===l||"li"===l||this._cleanStyleRegExp[l])if("a"===l){const e=t.match(/(?:(?:id|name)\s*=\s*(?:"|')[^"']*(?:"|'))/g);e&&(n||(n=[]),n.push(e[0]))}else n&&/style=/i.test(n.toString())||("span"!==l&&"li"!==l||(n=this._cleanStyle(t,n,"span")),this._cleanStyleRegExp[l]?n=this._cleanStyle(t,n,l):/^(P|DIV|H[1-6]|PRE)$/i.test(l)&&(n=this._cleanStyle(t,n,"format")));else{const e=t.match(/style\s*=\s*(?:"|')[^"']*(?:"|')/);e&&!n?n=[e[0]]:e&&!n.some(function(e){return/^style/.test(e.trim())})&&n.push(e[0])}if(g.isFigures(l)){const e=t.match(/style\s*=\s*(?:"|')[^"']*(?:"|')/);n||(n=[]),e&&n.push(e[0])}if(n)for(let a,r=0,c=n.length;r<c;r++)a=_(n[r].trim())?n[r]:"",i+=(/^\s/.test(a)?"":" ")+a;return i},_editFormat:function(e){let t,i="";const n=e.childNodes;for(let o,s=0,a=n.length;s<a;s++)o=n[s],8===o.nodeType?i+="\x3c!-- "+o.textContent+" --\x3e":g.isFormatElement(o)||g.isRangeFormatElement(o)||g.isComponent(o)||/meta/i.test(o.nodeName)?(t&&(i+=t.outerHTML,t=null),i+=o.outerHTML):(t||(t=g.createElement(l.defaultTag)),g.isTextStyleElement(o)&&o.removeAttribute("style"),t.appendChild(o),s--,a--);return t&&(i+=t.outerHTML),s.createRange().createContextualFragment(i)},_convertListCell:function(e){let t="";for(let i,n=0,l=e.length;n<l;n++)i=e[n],1===i.nodeType?g.isList(i)?t+=i.innerHTML:g.isListCell(i)?t+=i.outerHTML:g.isFormatElement(i)?t+="<li>"+(i.innerHTML.trim()||"<br>")+"</li>":g.isRangeFormatElement(i)&&!g.isTable(i)?t+=this._convertListCell(i):t+="<li>"+i.outerHTML+"</li>":t+="<li>"+(i.textContent||"<br>")+"</li>";return t},_isFormatData:function(e){let t=!1;for(let i,n=0,l=e.length;n<l;n++)if(i=e[n],1===i.nodeType&&!g.isTextStyleElement(i)&&!g.isBreak(i)&&!this.__disallowedTagNameRegExp.test(i.nodeName)){t=!0;break}return t},cleanHTML:function(e,t,i){if(!l.strictMode)return g.htmlCompress(e);e=this._deleteDisallowedTags(this._parser.parseFromString(g.htmlCompress(e),"text/html").body.innerHTML).replace(/(<[a-zA-Z0-9\-]+)[^>]*(?=>)/g,this._cleanTags.bind(this,!0)).replace(/<br\/?>$/i,"");const n=s.createRange().createContextualFragment(e);try{g._consistencyCheckOfHTML(n,this._htmlCheckWhitelistRegExp,this._htmlCheckBlacklistRegExp,this._classNameFilter,l.strictHTMLValidation)}catch(c){console.warn("[SUNEDITOR.cleanHTML.consistencyCheck.fail] "+c)}if(this.managedTagsInfo&&this.managedTagsInfo.query){const e=n.querySelectorAll(this.managedTagsInfo.query);for(let t,i,n=0,l=e.length;n<l;n++){i=[].slice.call(e[n].classList);for(let l=0,o=i.length;l<o;l++)if(t=this.managedTagsInfo.map[i[l]],t){t(e[n]);break}}}let o=n.childNodes,a="";const r=this._isFormatData(o);r&&(o=this._editFormat(n).childNodes);for(let l,s=0,d=o.length;s<d;s++)l=o[s],this.__allowedScriptRegExp.test(l.nodeName)?a+=l.outerHTML:a+=this._makeLine(l,r);return a=g.htmlRemoveWhiteSpace(a),a?(t&&(a=a.replace("string"===typeof t?g.createTagsWhitelist(t):t,"")),i&&(a=a.replace("string"===typeof i?g.createTagsBlacklist(i):i,""))):a=e,this._tagConvertor(a)},convertContentsForEditor:function(e){if(!l.strictMode)return g.htmlCompress(e);e=this._deleteDisallowedTags(this._parser.parseFromString(g.htmlCompress(e),"text/html").body.innerHTML).replace(/(<[a-zA-Z0-9\-]+)[^>]*(?=>)/g,this._cleanTags.bind(this,!0));const t=s.createRange().createContextualFragment(e);try{g._consistencyCheckOfHTML(t,this._htmlCheckWhitelistRegExp,this._htmlCheckBlacklistRegExp,this._classNameFilter,l.strictHTMLValidation)}catch(a){console.warn("[SUNEDITOR.convertContentsForEditor.consistencyCheck.fail] "+a)}if(this.managedTagsInfo&&this.managedTagsInfo.query){const e=t.querySelectorAll(this.managedTagsInfo.query);for(let t,i,n=0,l=e.length;n<l;n++){i=[].slice.call(e[n].classList);for(let l=0,o=i.length;l<o;l++)if(t=this.managedTagsInfo.map[i[l]],t){t(e[n]);break}}}const i=t.childNodes;let n="",o=null;for(let s,r=0;r<i.length;r++)if(s=i[r],this.__allowedScriptRegExp.test(s.nodeName))n+=s.outerHTML;else{if(!g.isFormatElement(s)&&!g.isRangeFormatElement(s)&&!g.isComponent(s)&&
1!g.isFigures(s)&&8!==s.nodeType&&!/__se__tag/.test(s.className)){if(o||(o=g.createElement(l.defaultTag)),o.appendChild(s),r--,i[r+1]&&!g.isFormatElement(i[r+1]))continue;s=o,o=null}o&&(n+=this._makeLine(o,!0),o=null),n+=this._makeLine(s,!0)}return o&&(n+=this._makeLine(o,!0)),0===n.length?"<"+l.defaultTag+"><br></"+l.defaultTag+">":(n=g.htmlRemoveWhiteSpace(n),this._tagConvertor(n))},convertHTMLForCodeView:function(e,t){let i="";const n=h.RegExp,l=new n("^(BLOCKQUOTE|PRE|TABLE|THEAD|TBODY|TR|TH|TD|OL|UL|IMG|IFRAME|VIDEO|AUDIO|FIGURE|FIGCAPTION|HR|BR|CANVAS|SELECT)$","i"),o="string"===typeof e?s.createRange().createContextualFragment(e):e,a=function(e){return this.isFormatElement(e)||this.isComponent(e)}.bind(g),r=t?"":"\n";let c=t?0:1*this._variable.codeIndent;return c=c>0?new h.Array(c+1).join(" "):"",function e(t,o){const s=t.childNodes,d=l.test(t.nodeName),u=d?o:"";for(let p,m,f,b,_,v,y=0,w=s.length;y<w;y++)p=s[y],b=l.test(p.nodeName),m=b?r:"",f=!a(p)||d||/^(TH|TD)$/i.test(t.nodeName)?"":r,8!==p.nodeType?3!==p.nodeType?0!==p.childNodes.length?p.outerHTML?(_=p.nodeName.toLowerCase(),v=u||b?o:"",i+=(f||(d?"":m))+v+p.outerHTML.match(n("<"+_+"[^>]*>","i"))[0]+m,e(p,o+c),i+=(/\n$/.test(i)?v:"")+"</"+_+">"+(f||m||d||/^(TH|TD)$/i.test(p.nodeName)?r:"")):i+=(new h.XMLSerializer).serializeToString(p):i+=(/^HR$/i.test(p.nodeName)?r:"")+(/^PRE$/i.test(p.parentElement.nodeName)&&/^BR$/i.test(p.nodeName)?"":u)+p.outerHTML+m:g.isList(p.parentElement)||(i+=g._HTMLConvertor(/^\n+$/.test(p.data)?"":p.data)):i+="\n\x3c!-- "+p.textContent.trim()+" --\x3e"+m}(o,""),i.trim()+r},addDocEvent:function(e,t,i){s.addEventListener(e,t,i),l.iframe&&this._wd.addEventListener(e,t)},removeDocEvent:function(e,t){s.removeEventListener(e,t),l.iframe&&this._wd.removeEventListener(e,t)},_charCount:function(e){const t=l.maxCharCount,i=l.charCounterType;let n=0;if(e&&(n=this.getCharLength(e,i)),this._setCharCount(),t>0){let e=!1;const l=b.getCharCount(i);if(l>t){if(e=!0,n>0){this._editorRange();const e=this.getRange(),i=e.endOffset-1,n=this.getSelectionNode().textContent,o=e.endOffset-(l-t);this.getSelectionNode().textContent=n.slice(0,o<0?0:o)+n.slice(e.endOffset,n.length),this.setRange(e.endContainer,i,e.endContainer,i)}}else l+n>t&&(e=!0);if(e&&(this._callCounterBlink(),n>0))return!1}return!0},checkCharCount:function(e,t){if(l.maxCharCount){const i=t||l.charCounterType,n=this.getCharLength("string"===typeof e?e:this._charTypeHTML&&1===e.nodeType?e.outerHTML:e.textContent,i);if(n>0&&n+b.getCharCount(i)>l.maxCharCount)return this._callCounterBlink(),!1}return!0},getCharLength:function(e,t){return/byte/.test(t)?g.getByteLength(e):e.length},resetResponsiveToolbar:function(){m.controllersOff();const t=f._responsiveButtonSize;if(t){let i=0;i=(m._isBalloon||m._isInline)&&"auto"===l.toolbarWidth?e.element.topArea.offsetWidth:e.element.toolbar.offsetWidth;let n="default";for(let e=1,l=t.length;e<l;e++)if(i<t[e]){n=t[e]+"";break}f._responsiveCurrentSize!==n&&(f._responsiveCurrentSize=n,b.setToolbarButtons(f._responsiveButtons[n]))}},_setCharCount:function(){e.element.charCounter&&h.setTimeout(function(e,t){this.textContent&&e&&(this.textContent=e.getCharCount(t.charCounterType))}.bind(e.element.charCounter,b,l),0)},_callCounterBlink:function(){const t=e.element.charWrapper;t&&!g.hasClass(t,"se-blink")&&(g.addClass(t,"se-blink"),h.setTimeout(function(){g.removeClass(t,"se-blink")},600))},_checkComponents:function(){for(let e=0,t=this._fileInfoPluginsCheck.length;e<t;e++)this._fileInfoPluginsCheck[e]()},_resetComponents:function(){for(let e=0,t=this._fileInfoPluginsReset.length;e<t;e++)this._fileInfoPluginsReset[e]()},_setCodeView:function(t){l.codeMirrorEditor?l.codeMirrorEditor.getDoc().setValue(t):e.element.code.value=t},_getCodeView:function(){return l.codeMirrorEditor?l.codeMirrorEditor.getDoc().getValue():e.element.code.value},_setKeyEffect:function(e){const t=this.commandMap,n=this.activePlugins;for(let l in t)e.indexOf(l)>-1||!g.hasOwn(t,l)||(n.indexOf(l)>-1?i[l].active.call(this,null):t.OUTDENT&&/^OUTDENT$/i.test(l)?g.isImportantDisabled(t.OUTDENT)||t.OUTDENT.setAttribute("disabled",!0):t.INDENT&&/^INDENT$/i.test(l)?g.isImportantDisabled(t.INDENT)||t.INDENT.removeAttribute("disabled"):g.removeClass(t[l],"active"))},_init:function(n,o){const a=h.RegExp;this._ww=l.iframe?e.element.wysiwygFrame.contentWindow:h,this._wd=s,this._charTypeHTML="byte-html"===l.charCounterType,this.wwComputedStyle=h.getComputedStyle(e.element.wysiwyg),this._editorHeight=e.element.wysiwygFrame.offsetHeight,this._editorHeightPadding=g.getNumber(this.wwComputedStyle.getPropertyValue("padding-top"))+g.getNumber(this.wwComputedStyle.getPropertyValue("padding-bottom")),this._classNameFilter=function(e){return this.test(e)?e:""}.bind(l.allowedClassNames);const r=(l.__allowedScriptTag?"":"script|")+"style|meta|link|[a-z]+:[a-z]+";if(this.__scriptTagRegExp=new a("<(script)[^>]*>([\\s\\S]*?)<\\/\\1>|<script[^>]*\\/?>","gi"),this.__disallowedTagsRegExp=new a("<("+r+")[^>]*>([\\s\\S]*?)<\\/\\1>|<("+r+")[^>]*\\/?>","gi"),this.__disallowedTagNameRegExp=new a("^("+r+"meta|link|style|[a-z]+:[a-z]+)$","i"),this.__allowedScriptRegExp=new a("^"+(l.__allowedScriptTag?"script":"")+"$","i"),!l.iframe&&"function"===typeof h.ShadowRoot){let t=e.element.wysiwygFrame;for(;t;){if(t.shadowRoot){this._shadowRoot=t.shadowRoot;break}if(t instanceof h.ShadowRoot){this._shadowRoot=t;break}t=t.parentNode}this._shadowRoot&&(this._shadowRootControllerEventTarget=[])}const c=h.Object.keys(l._textTagsMap),p=l.addTagsWhitelist?l.addTagsWhitelist.split("|").filter(function(e){return/b|i|ins|s|strike/i.test(e)}):[];for(let e=0;e<p.length;e++)c.splice(c.indexOf(p[e].toLowerCase()),1);this._disallowedTextTagsRegExp=0===c.length?null:new a("(<\\/?)("+c.join("|")+")\\b\\s*([^>^<]+)?\\s*(?=>)","gi");const m=function(e,t){return e?"*"===e?"[a-z-]+":t?e+"|"+t:e:"^"},f="contenteditable|colspan|rowspan|target|href|download|rel|src|alt|class|type|origin-size|c
1ontrols|autoplay|loop|muted|poster|preload|playsinline|allowfullscreen|sandbox|loading|allow|referrerpolicy|frameborder|scrolling";this._allowHTMLComments=l._editorTagsWhitelist.indexOf("//")>-1||"*"===l._editorTagsWhitelist,this._htmlCheckWhitelistRegExp=new a("^("+m(l._editorTagsWhitelist.replace("|//",""),"")+")$","i"),this._htmlCheckBlacklistRegExp=new a("^("+(l.tagsBlacklist||"^")+")$","i"),this.editorTagsWhitelistRegExp=g.createTagsWhitelist(m(l._editorTagsWhitelist.replace("|//","|\x3c!--|--\x3e"),"")),this.editorTagsBlacklistRegExp=g.createTagsBlacklist(l.tagsBlacklist.replace("|//","|\x3c!--|--\x3e")),this.pasteTagsWhitelistRegExp=g.createTagsWhitelist(m(l.pasteTagsWhitelist,"")),this.pasteTagsBlacklistRegExp=g.createTagsBlacklist(l.pasteTagsBlacklist);const b='\\s*=\\s*(")[^"]*\\1',_=l.attributesWhitelist;let v={},y="";if(_)for(let e in _)g.hasOwn(_,e)&&!/^on[a-z]+$/i.test(_[e])&&("all"===e?y=m(_[e],f):v[e]=new a("\\s(?:"+m(_[e],f)+")"+b,"ig"));this._attributesWhitelistRegExp=new a("\\s(?:"+(y||f+"|data-format|data-size|data-file-size|data-file-name|data-origin|data-align|data-image-link|data-rotate|data-proportion|data-percentage|data-exp|data-font-size")+")"+b,"ig"),this._attributesWhitelistRegExp_all_data=new a("\\s(?:"+(y||f)+"|data-[a-z0-9\\-]+)"+b,"ig"),this._attributesTagsWhitelist=v;const w=l.attributesBlacklist;if(v={},y="",w)for(let e in w)g.hasOwn(w,e)&&("all"===e?y=m(w[e],""):v[e]=new a("\\s(?:"+m(w[e],"")+")"+b,"ig"));this._attributesBlacklistRegExp=new a("\\s(?:"+(y||"^")+")"+b,"ig"),this._attributesTagsBlacklist=v,this._isInline=/inline/i.test(l.mode),this._isBalloon=/balloon|balloon-always/i.test(l.mode),this._isBalloonAlways=/balloon-always/i.test(l.mode),this._cachingButtons(),this._fileInfoPluginsCheck=[],this._fileInfoPluginsReset=[],this.managedTagsInfo={query:"",map:{}};const C=[];this.activePlugins=[],this._fileManager.tags=[],this._fileManager.pluginMap={};let x,S,k=[];for(let e in i)if(g.hasOwn(i,e)){if(x=i[e],S=t[e],(x.active||x.action)&&S&&this.callPlugin(e,null,S),"function"===typeof x.checkFileInfo&&"function"===typeof x.resetFileInfo&&(this.callPlugin(e,null,S),this._fileInfoPluginsCheck.push(x.checkFileInfo.bind(this)),this._fileInfoPluginsReset.push(x.resetFileInfo.bind(this))),h.Array.isArray(x.fileTags)){const t=x.fileTags;this.callPlugin(e,null,S),this._fileManager.tags=this._fileManager.tags.concat(t),k.push(e);for(let i=0,n=t.length;i<n;i++)this._fileManager.pluginMap[t[i].toLowerCase()]=e}if(x.managedTags){const e=x.managedTags();C.push("."+e.className),this.managedTagsInfo.map[e.className]=e.method.bind(this)}}this.managedTagsInfo.query=C.toString(),this._fileManager.queryString=this._fileManager.tags.join(","),this._fileManager.regExp=new a("^("+(this._fileManager.tags.join("|")||"^")+")$","i"),this._fileManager.pluginRegExp=new a("^("+(0===k.length?"^":k.join("|"))+")$","i"),this._variable._originCssText=e.element.topArea.style.cssText,this._placeholder=e.element.placeholder,this._lineBreaker=e.element.lineBreaker,this._lineBreakerButton=this._lineBreaker.querySelector("button"),this.history=d(this,this._onChange_historyStack.bind(this)),this.addModule([u]),l.iframe&&(this._wd=e.element.wysiwygFrame.contentDocument,e.element.wysiwyg=this._wd.body,l._editorStyles.editor&&(e.element.wysiwyg.style.cssText=l._editorStyles.editor),"auto"===l.height&&(this._iframeAuto=this._wd.body)),this._initWysiwygArea(n,o)},_cachingButtons:function(){this.codeViewDisabledButtons=e.element._buttonTray.querySelectorAll('.se-menu-list button[data-display]:not([class~="se-code-view-enabled"]):not([data-display="MORE"])'),this.resizingDisabledButtons=e.element._buttonTray.querySelectorAll('.se-menu-list button[data-display]:not([class~="se-resizing-enabled"]):not([data-display="MORE"])');const t=e.tool,i=this.commandMap;i.INDENT=t.indent,i.OUTDENT=t.outdent,i[l.textTags.bold.toUpperCase()]=t.bold,i[l.textTags.underline.toUpperCase()]=t.underline,i[l.textTags.italic.toUpperCase()]=t.italic,i[l.textTags.strike.toUpperCase()]=t.strike,i[l.textTags.sub.toUpperCase()]=t.subscript,i[l.textTags.sup.toUpperCase()]=t.superscript,this._styleCommandMap={fullScreen:t.fullScreen,showBlocks:t.showBlocks,codeView:t.codeView},this._saveButtonStates()},_initWysiwygArea:function(t,i){e.element.wysiwyg.innerHTML=t?i:this.convertContentsForEditor(("string"===typeof i?i:/^TEXTAREA$/i.test(e.element.originElement.nodeName)?e.element.originElement.value:e.element.originElement.innerHTML)||"")},_resourcesStateChange:function(){this._iframeAutoHeight(),this._checkPlaceholder()},_onChange_historyStack:function(){this.hasFocus&&f._applyTagEffects(),this._variable.
1isChanged=!0,e.tool.save&&e.tool.save.removeAttribute("disabled"),b.onChange&&b.onChange(this.getContents(!0),this),"block"===e.element.toolbar.style.display&&f._showToolbarBalloon()},_iframeAutoHeight:function(){this._iframeAuto?h.setTimeout(function(){const t=m._iframeAuto.offsetHeight;e.element.wysiwygFrame.style.height=t+"px",g.isResizeObserverSupported||m.__callResizeFunction(t,null)}):g.isResizeObserverSupported||m.__callResizeFunction(e.element.wysiwygFrame.offsetHeight,null)},__callResizeFunction:function(e,t){e=-1===e?t.borderBoxSize&&t.borderBoxSize[0]?t.borderBoxSize[0].blockSize:t.contentRect.height+this._editorHeightPadding:e,this._editorHeight!==e&&("function"===typeof b.onResizeEditor&&b.onResizeEditor(e,this._editorHeight,m,t),this._editorHeight=e)},_checkPlaceholder:function(){if(this._placeholder){if(this._variable.isCodeView)return void(this._placeholder.style.display="none");const t=e.element.wysiwyg;!g.onlyZeroWidthSpace(t.textContent)||t.querySelector(g._allowedEmptyNodeList)||(t.innerText.match(/\n/g)||"").length>1?this._placeholder.style.display="none":this._placeholder.style.display="block"}},_setDefaultFormat:function(e){if(this._fileManager.pluginRegExp.test(this.currentControllerName))return;const t=this.getRange(),i=t.commonAncestorContainer,n=t.startContainer,o=g.getRangeFormatElement(i,null);let s,a,r;const c=g.getParentElement(i,g.isComponent);if(!c||g.isTable(c)){if(1===i.nodeType&&"true"===i.getAttribute("data-se-embed")){let e=i.nextElementSibling;return g.isFormatElement(e)||(e=this.appendFormatTag(i,l.defaultTag)),void this.setRange(e.firstChild,0,e.firstChild,0)}if(!g.isRangeFormatElement(n)&&!g.isWysiwygDiv(n)||!g.isComponent(n.children[t.startOffset])&&!g.isComponent(n.children[t.startOffset-1])){if(g.getParentElement(i,g.isNotCheckingNode))return null;if(o)return r=g.createElement(e||l.defaultTag),r.innerHTML=o.innerHTML,0===r.childNodes.length&&(r.innerHTML=g.zeroWidthSpace),o.innerHTML=r.outerHTML,r=o.firstChild,s=g.getEdgeChildNodes(r,null).sc,s||(s=g.createTextNode(g.zeroWidthSpace),r.insertBefore(s,r.firstChild)),a=s.textContent.length,void this.setRange(s,a,s,a);if(g.isRangeFormatElement(i)&&i.childNodes.length<=1){let e=null;return 1===i.childNodes.length&&g.isBreak(i.firstChild)?e=i.firstChild:(e=g.createTextNode(g.zeroWidthSpace),i.appendChild(e)),void this.setRange(e,1,e,1)}try{if(3===i.nodeType&&(r=g.createElement(e||l.defaultTag),i.parentNode.insertBefore(r,i),r.appendChild(i)),g.isWysiwygDiv(i))return r=g.createElement(e||l.defaultTag),r.innerHTML=i.innerHTML,i.innerHTML="",i.appendChild(r),this.effectNode=null,void this.setRange(r,1,r,1);if(r&&(g.isBreak(r.nextSibling)&&g.removeItem(r.nextSibling),g.isBreak(r.previousSibling)&&g.removeItem(r.previousSibling)),g.isBreak(s)){const e=g.createTextNode(g.zeroWidthSpace);s.parentNode.insertBefore(e,s),s=e}}catch(d){return this.execCommand("formatBlock",!1,e||l.defaultTag),this.removeRange(),this._editorRange(),void(this.effectNode=null)}if(r&&(g.isBreak(r.nextSibling)&&g.removeItem(r.nextSibling),g.isBreak(r.previousSibling)&&g.removeItem(r.previousSibling),g.isBreak(s))){const e=g.createTextNode(g.zeroWidthSpace);s.parentNode.insertBefore(e,s),s=e}this.effectNode=null,n?this.setRange(n,1,n,1):this.nativeFocus()}}},_setOptionsInit:function(t,i){this.context=e=c(t.originElement,this._getConstructed(t),l),this._componentsInfoReset=!0,this._editorInit(!0,i)},_editorInit:function(t,i){this._init(t,i),f._addEvent(),this._setCharCount(),f._offStickyToolbar(),f.onResize_window(),e.element.toolbar.style.visibility="";const n=l.frameAttrbutes;for(let l in n)e.element.wysiwyg.setAttribute(l,n[l]);this._checkComponents(),this._componentsInfoInit=!1,this._componentsInfoReset=!1,this.history.reset(!0),h.setTimeout(function(){"function"===typeof m._resourcesStateChange&&(f._resizeObserver&&f._resizeObserver.observe(e.element.wysiwygFrame),f._toolbarObserver&&f._toolbarObserver.observe(e.element._toolbarShadow),m._resourcesStateChange(),"function"===typeof b.onload&&b.onload(m,t))})},_getConstructed:function(e){return{_top:e.topArea,_relative:e.relative,_toolBar:e.toolbar,_toolbarShadow:e._toolbarShadow,_menuTray:e._menuTray,_editorArea:e.editorArea,_wysiwygArea:e.wysiwygFrame,_codeArea:e.code,_placeholder:e.placeholder,_resizingBar:e.resizingBar,_navigation:e.navigation,_charCounter:e.charCounter,_charWrapper:e.charWrapper,_loading:e.loading,_lineBreaker:e.lineBreaker,_lineBreaker_t:e.lineBreaker_t,_lineBreaker_b:e.lineBreaker_b,_resizeBack:e.resizeBackgroun
1d,_stickyDummy:e._stickyDummy,_arrow:e._arrow}}},f={_IEisComposing:!1,_lineBreakerBind:null,_responsiveCurrentSize:"default",_responsiveButtonSize:null,_responsiveButtons:null,_deleteKeyCode:new h.RegExp("^(8|46)$"),_cursorMoveKeyCode:new h.RegExp("^(8|3[2-9]|40|46)$"),_directionKeyCode:new h.RegExp("^(8|13|3[2-9]|40|46)$"),_nonTextKeyCode:new h.RegExp("^(8|13|1[6-9]|20|27|3[3-9]|40|45|46|11[2-9]|12[0-3]|144|145)$"),_historyIgnoreKeyCode:new h.RegExp("^(1[6-9]|20|27|3[3-9]|40|45|11[2-9]|12[0-3]|144|145)$"),_onButtonsCheck:new h.RegExp("^("+h.Object.keys(l._textTagsMap).join("|")+")$","i"),_frontZeroWidthReg:new h.RegExp(g.zeroWidthSpace+"+",""),_keyCodeShortcut:{65:"A",66:"B",83:"S",85:"U",73:"I",89:"Y",90:"Z",219:"[",221:"]"},_shortcutCommand:function(e,t){let i=null;const n=f._keyCodeShortcut[e];switch(n){case"A":i="selectAll";break;case"B":-1===l.shortcutsDisable.indexOf("bold")&&(i="bold");break;case"S":t&&-1===l.shortcutsDisable.indexOf("strike")?i="strike":t||-1!==l.shortcutsDisable.indexOf("save")||(i="save");break;case"U":-1===l.shortcutsDisable.indexOf("underline")&&(i="underline");break;case"I":-1===l.shortcutsDisable.indexOf("italic")&&(i="italic");break;case"Z":-1===l.shortcutsDisable.indexOf("undo")&&(i=t?"redo":"undo");break;case"Y":-1===l.shortcutsDisable.indexOf("undo")&&(i="redo");break;case"[":-1===l.shortcutsDisable.indexOf("indent")&&(i=l.rtl?"indent":"outdent");break;case"]":-1===l.shortcutsDisable.indexOf("indent")&&(i=l.rtl?"outdent":"indent")}return i?(m.commandHandler(m.commandMap[i],i),!0):!!n},_applyTagEffects:function(){if(g.hasClass(e.element.wysiwyg,"se-read-only"))return!1;let t=m.getSelectionNode();if(t===m.effectNode)return;m.effectNode=t;const n=l.rtl?"marginRight":"marginLeft",o=m.commandMap,s=f._onButtonsCheck,a=[],r=[],c=m.activePlugins,d=c.length;let u="";for(;t.firstChild;)t=t.firstChild;for(let e=t;!g.isWysiwygDiv(e)&&e;e=e.parentNode)if(1===e.nodeType&&!g.isBreak(e)){if(u=e.nodeName.toUpperCase(),r.push(u),!m.isReadOnly)for(let t,n=0;n<d;n++)t=c[n],-1===a.indexOf(t)&&i[t].active.call(m,e)&&a.push(t);g.isFormatElement(e)?(-1===a.indexOf("OUTDENT")&&o.OUTDENT&&!g.isImportantDisabled(o.OUTDENT)&&(g.isListCell(e)||e.style[n]&&g.getNumber(e.style[n],0)>0)&&(a.push("OUTDENT"),o.OUTDENT.removeAttribute("disabled")),-1===a.indexOf("INDENT")&&o.INDENT&&!g.isImportantDisabled(o.INDENT)&&(a.push("INDENT"),g.isListCell(e)&&!e.previousElementSibling?o.INDENT.setAttribute("disabled",!0):o.INDENT.removeAttribute("disabled"))):s&&s.test(u)&&(a.push(u),g.addClass(o[u],"active"))}m._setKeyEffect(a),m._variable.currentNodes=r.reverse(),m._variable.currentNodesMap=a,l.showPathLabel&&(e.element.navigation.textContent=m._variable.currentNodes.join(" > "))},_buttonsEventHandler:function(e){let t=e.target;if(m._bindControllersOff&&e.stopPropagation(),/^(input|textarea|select|option)$/i.test(t.nodeName)?m._antiBlur=!1:e.preventDefault(),g.getParentElement(t,".se-submenu"))e.stopPropagation(),m._notHideToolbar=!0;else{let i=t.getAttribute("data-command"),n=t.className;for(;!i&&!/se-menu-list/.test(n)&&!/sun-editor-common/.test(n);)t=t.parentNode,i=t.getAttribute("data-command"),n=t.className;i!==m._submenuName&&i!==m._containerName||e.stopPropagation()}},addGlobalEvent:function(e,t,i){return l.iframe&&m._ww.addEventListener(e,t,i),m._w.addEventListener(e,t,i),{type:e,listener:t,useCapture:i}},removeGlobalEvent:function(e,t,i){e&&("object"===typeof e&&(t=e.listener,i=e.useCapture,e=e.type),l.iframe&&m._ww.removeEventListener(e,t,i),m._w.removeEventListener(e,t,i))},onClick_toolbar:function(e){let t=e.target,i=t.getAttribute("data-display"),n=t.getAttribute("data-command"),l=t.className;for(m.controllersOff();t.parentNode&&!n&&!/se-menu-list/.test(l)&&!/se-toolbar/.test(l);)t=t.parentNode,n=t.getAttribute("data-command"),i=t.getAttribute("data-display"),l=t.className;(n||i)&&(t.disabled||m.actionCall(n,i,t))},__selectionSyncEvent:null,onMouseDown_wysiwyg:function(t){if(m.isReadOnly||g.isNonEditable(e.element.wysiwyg))return;if(g._isExcludeSelectionElement(t.target))return void t.preventDefault();if(f.removeGlobalEvent(f.__selectionSyncEvent),f.__selectionSyncEvent=f.addGlobalEvent("mouseup",function(){m&&m._editorRange(),f.removeGlobalEvent(f.__selectionSyncEvent)}),"function"===typeof b.onMouseDown&&!1===b.onMouseDown(t,m))return;const i=g.getParentElement(t.target,g.isCell);if(i){const e=m.plugins.table;e&&i!==e._fixedCell&&!e._shift&&m.callPlugin("table",function(){e.onTableCellMultiSelect.call(m,i,!1)},null)}m._isBalloon&&f._hideToolbar()},onClick_wysiwyg:function(t){const i=t.target;if(m.isReadOnly)return t.preventDefault(),g.isAnchor(i)&&h.open(i.href,i.target),!1;if(g.isNonEditable(e.element.wysiwyg))return;if("function"===typeof b.onClick&&!1===b.onClick(t,m))return;const n=m.getFileComponent(i);if(n)return t.preventDefault(),void m.selectComponent(n.target,n.pluginName);const o=g.getParentElement(i,"FIGCAPTION");
1if(o&&g.isNonEditable(o)&&(t.preventDefault(),o.focus(),m._isInline&&!m._inlineToolbarAttr.isShow)){f._showToolbarInline();const e=function(){f._hideToolbar(),o.removeEventListener("blur",e)};o.addEventListener("blur",e)}if(m._editorRange(),3===t.detail){let e=m.getRange();g.isFormatElement(e.endContainer)&&0===e.endOffset&&(e=m.setRange(e.startContainer,e.startOffset,e.startContainer,e.startContainer.length),m._rangeInfo(e,m.getSelection()))}const s=m.getSelectionNode(),a=g.getFormatElement(s,null),r=g.getRangeFormatElement(s,null);let c=s;for(;c&&c.firstChild;)c=c.firstChild;const d=m.getFileComponent(c);if(d){const e=m.getRange();r||e.startContainer!==e.endContainer||m.selectComponent(d.target,d.pluginName)}else m.currentFileComponentInfo&&m.controllersOff();if(a||g.isNonEditable(i)||g.isList(r))f._applyTagEffects();else{const e=m.getRange();if(g.getFormatElement(e.startContainer)===g.getFormatElement(e.endContainer))if(g.isList(r)){t.preventDefault();const e=g.createElement("LI"),i=s.nextElementSibling;e.appendChild(s),r.insertBefore(e,i),m.focus()}else g.isWysiwygDiv(s)||g.isComponent(s)||g.isTable(s)&&!g.isCell(s)||null===m._setDefaultFormat(g.isRangeFormatElement(r)?"DIV":l.defaultTag)?f._applyTagEffects():(t.preventDefault(),m.focus())}m._isBalloon&&h.setTimeout(f._toggleToolbarBalloon)},_balloonDelay:null,_showToolbarBalloonDelay:function(){f._balloonDelay&&h.clearTimeout(f._balloonDelay),f._balloonDelay=h.setTimeout(function(){h.clearTimeout(this._balloonDelay),this._balloonDelay=null,this._showToolbarBalloon()}.bind(f),350)},_toggleToolbarBalloon:function(){if(m){m._editorRange();const e=m.getRange();m._bindControllersOff||!m._isBalloonAlways&&e.collapsed?f._hideToolbar():f._showToolbarBalloon(e)}},_showToolbarBalloon:function(t){if(!m._isBalloon)return;const i=t||m.getRange(),n=e.element.toolbar,o=e.element.topArea,s=m.getSelection();let a;if(m._isBalloonAlways&&i.collapsed)a=!0;else if(s.focusNode===s.anchorNode)a=s.focusOffset<s.anchorOffset;else{const e=g.getListChildNodes(i.commonAncestorContainer,null);a=g.getArrayIndex(e,s.focusNode)<g.getArrayIndex(e,s.anchorNode)}let r=i.getClientRects();r=r[a?0:r.length-1];const c=m.getGlobalScrollOffset();let d=c.left,u=c.top;const p=o.offsetWidth,b=f._getEditorOffsets(null),_=b.top,v=b.left;if(n.style.top="-10000px",n.style.visibility="hidden",n.style.display="block",!r){const t=m.getSelectionNode();if(g.isFormatElement(t)){const e=g.createTextNode(g.zeroWidthSpace);m.insertNode(e,null,!1),m.setRange(e,1,e,1),m._editorRange(),r=m.getRange().getClientRects(),r=r[a?0:r.length-1]}if(!r){const i=g.getOffset(t,e.element.wysiwygFrame);r={left:i.left,top:i.top,right:i.left,bottom:i.top+t.offsetHeight,noText:!0},d=0,u=0}a=!0}const y=h.Math.round(e.element._arrow.offsetWidth/2),w=n.offsetWidth,C=n.offsetHeight,x=/iframe/i.test(e.element.wysiwygFrame.nodeName)?e.element.wysiwygFrame.getClientRects()[0]:null;if(x&&(r={left:r.left+x.left,top:r.top+x.top,right:r.right+x.right-x.width,bottom:r.bottom+x.bottom-x.height}),f._setToolbarOffset(a,r,n,v,p,d,u,_,y),w===n.offsetWidth&&C===n.offsetHeight||f._setToolbarOffset(a,r,n,v,p,d,u,_,y),l.toolbarContainer){const e=o.parentElement;let t=l.toolbarContainer,i=t.offsetLeft,s=t.offsetTop;for(;!t.parentElement.contains(e)||!/^(BODY|HTML)$/i.test(t.parentElement.nodeName);)t=t.offsetParent,i+=t.offsetLeft,s+=t.offsetTop;n.style.left=n.offsetLeft-i+o.offsetLeft+"px",n.style.top=n.offsetTop-s+o.offsetTop+"px"}n.style.visibility=""},_setToolbarOffset:function(t,i,n,l,o,a,r,c,d){const u=n.offsetWidth,p=i.noText&&!t?0:n.offsetHeight,m=(t?i.left:i.right)-l-u/2+a,b=m+u-o;let _=(t?i.top-p-d:i.bottom+d)-(i.noText?0:c)+r,v=m<0?1:b<0?m:m-b-1-1,y=!1;const w=_+(t?f._getEditorOffsets(null).top:n.offsetHeight-e.element.wysiwyg.offsetHeight);!t&&w>0&&f._getPageBottomSpace()<w?(t=!0,y=!0):t&&s.documentElement.offsetTop>w&&(t=!1,y=!0),y&&(_=(t?i.top-p-d:i.bottom+d)-(i.noText?0:c)+r),n.style.left=h.Math.floor(v)+"px",n.style.top=h.Math.floor(_)+"px",t?(g.removeClass(e.element._arrow,"se-arrow-up"),g.addClass(e.element._arrow,"se-arrow-down"),e.element._arrow.style.top=p+"px"):(g.removeClass(e.element._arrow,"se-arrow-down"),g.addClass(e.element._arrow,"se-arrow-up"),e.element._arrow.style.top=-d+"px");const C=h.Math.floor(u/2+(m-v));e.element._arrow.style.left=(C+d>n.offsetWidth?n.offsetWidth-d:C<d?d:C)+"px"},_showToolbarInline:function(){if(!m._isInline)return;const t=e.element.toolbar;l.toolbarContainer?t.style.position="relative":t.style.position="absolute",t.style.visibility="hidden",t.style.display="block",m._inlineToolbarAttr.width=t.style.width=l.toolbarWidth,m._inlineToolbarAttr.top=t.style.top=(l.toolbarContainer?0:-1-t.offsetHeight)+"px","function"===typeof b.showInline&&b.showInline(t,e,m),f.onScroll_window(),m._inlineToolbarAttr.isShow=!0,t.style.visibility=""}
1,_hideToolbar:function(){m._notHideToolbar||m._variable.isFullScreen||(e.element.toolbar.style.display="none",m._inlineToolbarAttr.isShow=!1)},onInput_wysiwyg:function(e){if(/AUDIO/.test(e.target.nodeName))return!1;if(m.isReadOnly||m.isDisabled)return e.preventDefault(),e.stopPropagation(),m.history.go(m.history.getCurrentIndex()),!1;const t=m.getRange(),i=m.getSelectionNode(),n=g.getFormatElement(i,null);if(!n&&t.collapsed&&!g.isComponent(i)&&!g.isList(i)){const e=g.getRangeFormatElement(n,null);m._setDefaultFormat(g.isRangeFormatElement(e)?"DIV":l.defaultTag)}m._editorRange();const o=(null===e.data?"":void 0===e.data?" ":e.data)||"";if(!m._charCount(o))return e.preventDefault(),e.stopPropagation(),!1;"function"===typeof b.onInput&&!1===b.onInput(e,m)||m.history.push(!0)},_isUneditableNode:function(e,t){const i=t?e.startContainer:e.endContainer,n=t?e.startOffset:e.endOffset,l=t?"previousSibling":"nextSibling";let o;return 1===i.nodeType?(o=f._isUneditableNode_getSibling(i.childNodes[n],l,i),o&&1===o.nodeType&&"false"===o.getAttribute("contenteditable")):(o=f._isUneditableNode_getSibling(i,l,i),m.isEdgePoint(i,n,t?"start":"end")&&o&&1===o.nodeType&&"false"===o.getAttribute("contenteditable"))},_isUneditableNode_getSibling:function(e,t,i){if(!e)return null;let n=e[t];if(!n){if(n=g.getFormatElement(i),n=n?n[t]:null,!n||g.isComponent(n))return null;n="previousSibling"===t?n.firstChild:n.lastChild}return n},_onShortcutKey:!1,onKeyDown_wysiwyg:function(t){let i=m.getSelectionNode();if(g.isInputElement(i))return;const n=t.keyCode,o=t.shiftKey,s=t.ctrlKey||t.metaKey||91===n||92===n||224===n,a=t.altKey;if(f._IEisComposing=229===n,!s&&m.isReadOnly&&!f._cursorMoveKeyCode.test(n))return t.preventDefault(),!1;if(m.submenuOff(),m._isBalloon&&f._hideToolbar(),"function"===typeof b.onKeyDown&&!1===b.onKeyDown(t,m))return;if(s&&f._shortcutCommand(n,o))return f._onShortcutKey=!0,t.preventDefault(),t.stopPropagation(),!1;f._onShortcutKey&&(f._onShortcutKey=!1),13===n&&g.isFormatElement(m.getRange().startContainer)&&(m._resetRangeToTextNode(),i=m.getSelectionNode());const r=m.getRange(),c=!r.collapsed||r.startContainer!==r.endContainer,d=m._fileManager.pluginRegExp.test(m.currentControllerName)?m.currentControllerName:"";let u=g.getFormatElement(i,null)||i,p=g.getRangeFormatElement(u,null);if(!/37|38|39|40/.test(t.keyCode)||!1!==f._onKeyDown_wysiwyg_arrowKey(t)){switch(n){case 8:if(!c&&d){t.preventDefault(),t.stopPropagation(),m.plugins[d].destroy.call(m);break}if(c&&f._hardDelete()){t.preventDefault(),t.stopPropagation();break}if(!g.isFormatElement(u)&&!e.element.wysiwyg.firstElementChild&&!g.isComponent(i)&&null!==m._setDefaultFormat(l.defaultTag))return t.preventDefault(),t.stopPropagation(),!1;if(!c&&!u.previousElementSibling&&0===r.startOffset&&!i.previousSibling&&!g.isListCell(u)&&g.isFormatElement(u)&&(!g.isFreeFormatElement(u)||g.isClosureFreeFormatElement(u))){if(g.isClosureRangeFormatElement(u.parentNode))return t.preventDefault(),t.stopPropagation(),!1;if(g.isWysiwygDiv(u.parentNode)&&u.childNodes.length<=1&&(!u.firstChild||g.onlyZeroWidthSpace(u.textContent))){if(t.preventDefault(),t.stopPropagation(),u.nodeName.toUpperCase()===l.defaultTag.toUpperCase()){u.innerHTML="<br>";const e=u.attributes;for(;e[0];)u.removeAttribute(e[0].name)}else{const e=g.createElement(l.defaultTag);e.innerHTML="<br>",u.parentElement.replaceChild(e,u)}return m.nativeFocus(),!1}}const n=r.startContainer;if(u&&!u.previousElementSibling&&0===r.startOffset&&3===n.nodeType&&!g.isFormatElement(n.parentNode)){let e=n.parentNode.previousSibling;const t=n.parentNode.nextSibling;e||(t?e=t:(e=g.createElement("BR"),u.appendChild(e)));let i=n;for(;u.contains(i)&&!i.previousSibling;)i=i.parentNode;if(!u.contains(i)){n.textContent="",g.removeItemAllParents(n,null,u);break}}if(f._isUneditableNode(r,!0)){t.preventDefault(),t.stopPropagation();break}!c&&m._isEdgeFormat(r.startContainer,r.startOffset,"start")&&g.isFormatElement(u.previousElementSibling)&&(m._formatAttrsTemp=u.previousElementSibling.attributes);const _=r.commonAncestorContainer;if(u=g.getFormatElement(r.startContainer,null),p=g.getRangeFormatElement(u,null),p&&u&&!g.isCell(p)&&!/^FIGCAPTION$/i.test(p.nodeName)){if(g.isListCell(u)&&g.isList(p)&&(g.isListCell(p.parentNode)||u.previousElementSibling)&&(i===u||3===i.nodeType&&(!i.previousSibling||g.isList(i.previousSibling)))&&(g.getFormatElement(r.startContainer,null)!==g.getFormatElement(r.endContainer,null)?p.contains(r.startContainer):0===r.startOffset&&r.collapsed)){if(r.startContainer!==r.endContainer)t.preventDefault(),m.removeNode(),3===r.startContainer.nodeType&&m.setRange(r.startContainer,r.startContainer.textContent.length,r.startContainer,r.startContainer.textContent.length),m.history.push(!0);else{let e=u.previousElementSibling||p.parentNode;if(g.isListCell(e)){t.preventDefault();let i=e;if(!e.contains(u)&&g.isListCell(i)&&g.isList(i.lastElementChild)){for(i=i.lastElementChild.lastElementChild;g.isListCell(i)&&g.isList(i.lastElementChild);)i=i.lastElementChild&&i.lastElementChild.lastElementChild;e=i}let n=e===p.parentNode?p.previousSibling:e.lastChild;n||(n=g.createTextNode(g.zeroWidthSpace),p.parentNode.insertBefore(n,p.parentNode.firstChild));const l=3===n.nodeType?n.textContent.length:1,o=u.childNodes;let s=n,a=o[0];for(;a=o[0];)e.insertBefore(a,s.nextSibling),s=a;g.removeItem(u),0===p.children.length&&g.removeItem(p),m.setRange(n,l,n,l),m.history.push(!0)}}break}if(!c&&0===r.startOffset){let e=!0,i=_;for(;i&&i!==p&&!g.isWysiwygDiv(i);){if(i.previousSibling&&(1===i.previousSibling.nodeType||!g.onlyZeroWidthSpace(i.previousSibling.textContent.trim()))){e=!1;break}i=i.parentNode}if(e&&p.parentNode){t.preventDefault(),m.detachRangeFormatElement(p,g.isListCell(u)?[u]:null,null,!1,!1),m.history.push(!0);break}}}
1if(!c&&u&&(0===r.startOffset||i===u&&u.childNodes[r.startOffset])){const e=g.isListCell(u),n=i===u?u.childNodes[r.startOffset]:i,l=e?n.previousSibling:u.previousSibling,o=e||(3===_.nodeType||g.isBreak(_))&&!_.previousSibling&&0===r.startOffset;if(n&&(e||!n.previousSibling)&&(_&&g.isComponent(_.previousSibling)||o&&g.isComponent(l))){const i=m.getFileComponent(l);i?(t.preventDefault(),t.stopPropagation(),e?g.removeItem(n):0===u.textContent.length&&g.removeItem(u),!1===m.selectComponent(i.target,i.pluginName)&&m.blur()):g.isComponent(l)&&(t.preventDefault(),t.stopPropagation(),g.removeItem(l));break}if(n&&g.isNonEditable(n.previousSibling)){t.preventDefault(),t.stopPropagation(),g.removeItem(n.previousSibling);break}}break;case 46:if(d){t.preventDefault(),t.stopPropagation(),m.plugins[d].destroy.call(m);break}if(c&&f._hardDelete()){t.preventDefault(),t.stopPropagation();break}if(!c&&m._isEdgeFormat(r.endContainer,r.endOffset,"end")&&!u.nextSibling)return t.preventDefault(),void t.stopPropagation();if(f._isUneditableNode(r,!1)){t.preventDefault(),t.stopPropagation();break}if((g.isFormatElement(i)||null===i.nextSibling||g.onlyZeroWidthSpace(i.nextSibling)&&null===i.nextSibling.nextSibling)&&r.startOffset===i.textContent.length){const e=u.nextElementSibling;if(!e)break;if(g.isComponent(e)){if(t.preventDefault(),g.onlyZeroWidthSpace(u)&&(g.removeItem(u),g.isTable(e))){let t=g.getChildElement(e,g.isCell,!1);t=t.firstElementChild||t,m.setRange(t,0,t,0);break}const i=m.getFileComponent(e);i?(t.stopPropagation(),!1===m.selectComponent(i.target,i.pluginName)&&m.blur()):g.isComponent(e)&&(t.stopPropagation(),g.removeItem(e));break}}if(!c&&(m.isEdgePoint(r.endContainer,r.endOffset)||i===u&&u.childNodes[r.startOffset])){const e=i===u&&u.childNodes[r.startOffset]||i;if(e&&g.isNonEditable(e.nextSibling)){t.preventDefault(),t.stopPropagation(),g.removeItem(e.nextSibling);break}if(g.isComponent(e)){t.preventDefault(),t.stopPropagation(),g.removeItem(e);break}}if(!c&&m._isEdgeFormat(r.endContainer,r.endOffset,"end")&&g.isFormatElement(u.nextElementSibling)&&(m._formatAttrsTemp=u.attributes),u=g.getFormatElement(r.startContainer,null),p=g.getRangeFormatElement(u,null),g.isListCell(u)&&g.isList(p)&&(i===u||3===i.nodeType&&(!i.nextSibling||g.isList(i.nextSibling))&&(g.getFormatElement(r.startContainer,null)!==g.getFormatElement(r.endContainer,null)?p.contains(r.endContainer):r.endOffset===i.textContent.length&&r.collapsed))){r.startContainer!==r.endContainer&&m.removeNode();let e=g.getArrayItem(u.children,g.isList,!1);if(e=e||u.nextElementSibling||(p.parentNode?p.parentNode.nextElementSibling:null),e&&(g.isList(e)||g.getArrayItem(e.children,g.isList,!1))){let i,n;if(t.preventDefault(),g.isList(e)){const t=e.firstElementChild;for(n=t.childNodes,i=n[0];n[0];)u.insertBefore(n[0],e);g.removeItem(t)}else{for(i=e.firstChild,n=e.childNodes;n[0];)u.appendChild(n[0]);g.removeItem(e)}m.setRange(i,0,i,0),m.history.push(!0)}break}break;case 9:if(d||l.tabDisable)break;if(t.preventDefault(),s||a||g.isWysiwygDiv(i))break;const v=!r.collapsed||m.isEdgePoint(r.startContainer,r.startOffset),y=m.getSelectedElements(null);i=m.getSelectionNode();const w=[];let C=[],x=g.isListCell(y[0]),S=g.isListCell(y[y.length-1]),k={sc:r.startContainer,so:r.startOffset,ec:r.endContainer,eo:r.endOffset};for(let e,t=0,i=y.length;t<i;t++)if(e=y[t],g.isListCell(e)){if(!e.previousElementSibling&&!o)continue;w.push(e)}else C.push(e);if(w.length>0&&v&&m.plugins.list)k=m.plugins.list.editInsideList.call(m,o,w);else{const e=g.getParentElement(i,g.isCell);if(e&&v){const t=g.getParentElement(e,"table"),i=g.getListChildren(t,g.isCell);let n=o?g.prevIdx(i,e):g.nextIdx(i,e);n!==i.length||o||(n=0),-1===n&&o&&(n=i.length-1);let l=i[n];if(!l)break;l=l.firstElementChild||l,m.setRange(l,0,l,0);break}C=C.concat(w),x=S=null}if(C.length>0)if(o){const e=C.length-1;for(let n,l=0;l<=e;l++){n=C[l].childNodes;for(let e,t=0,i=n.length;t<i&&(e=n[t],e);t++)if(!g.onlyZeroWidthSpace(e)){/^\s{1,4}$/.test(e.textContent)?g.removeItem(e):/^\s{1,4}/.test(e.textContent)&&(e.textContent=e.textContent.replace(/^\s{1,4}/,""));break}}const t=g.getChildElement(C[0],"text",!1),i=g.getChildElement(C[e],"text",!0);!x&&t&&(k.sc=t,k.so=0),!S&&i&&(k.ec=i,k.eo=i.textContent.length)}else{const e=g.createTextNode(new h.Array(m._variable.tabSize+1).join("\xa0"));
1if(1===C.length){if(!m.insertNode(e,null,!0))return!1;x||(k.sc=e,k.so=e.length),S||(k.ec=e,k.eo=e.length)}else{const t=C.length-1;for(let l,o=0;o<=t;o++)l=C[o].firstChild,l&&(g.isBreak(l)?C[o].insertBefore(e.cloneNode(!1),l):l.textContent=e.textContent+l.textContent);const i=g.getChildElement(C[0],"text",!1),n=g.getChildElement(C[t],"text",!0);!x&&i&&(k.sc=i,k.so=0),!S&&n&&(k.ec=n,k.eo=n.textContent.length)}}m.setRange(k.sc,k.so,k.ec,k.eo),m.history.push(!1);break;case 13:const E=g.getFreeFormatElement(i,null);if(m._charTypeHTML){let e="";if(e=!o&&E||o?"<br>":"<"+u.nodeName+"><br></"+u.nodeName+">",!m.checkCharCount(e,"byte-html"))return t.preventDefault(),!1}if(!o&&!d){const n=m._isEdgeFormat(r.endContainer,r.endOffset,"end"),o=m._isEdgeFormat(r.startContainer,r.startOffset,"start");if(n&&(/^H[1-6]$/i.test(u.nodeName)||/^HR$/i.test(u.nodeName))){f._enterPrevent(t);let e=null;const i=m.appendFormatTag(u,l.defaultTag);if(n&&n.length>0){e=n.pop();const t=e;for(;n.length>0;)e=e.appendChild(n.pop());i.appendChild(t)}if(e=e?e.appendChild(i.firstChild):i.firstChild,g.isBreak(e)){const t=g.createTextNode(g.zeroWidthSpace);e.parentNode.insertBefore(t,e),m.setRange(t,1,t,1)}else m.setRange(e,0,e,0);break}if(p&&u&&!g.isCell(p)&&!/^FIGCAPTION$/i.test(p.nodeName)){const e=m.getRange();if(m.isEdgePoint(e.endContainer,e.endOffset)&&g.isList(i.nextSibling)){f._enterPrevent(t);const e=g.createElement("LI"),n=g.createElement("BR");e.appendChild(n),u.parentNode.insertBefore(e,u.nextElementSibling),e.appendChild(i.nextSibling),m.setRange(n,1,n,1);break}if((3!==e.commonAncestorContainer.nodeType||!e.commonAncestorContainer.nextElementSibling)&&g.onlyZeroWidthSpace(u.innerText.trim())&&!g.isListCell(u.nextElementSibling)){f._enterPrevent(t);let e=null;if(g.isListCell(p.parentNode)){const t=u.parentNode.parentNode;p=t.parentNode;const i=g.createElement("LI");i.innerHTML="<br>",g.copyTagAttributes(i,u,l.lineAttrReset),e=i,p.insertBefore(e,t.nextElementSibling)}else{const t=g.isCell(p.parentNode)?"DIV":g.isList(p.parentNode)?"LI":g.isFormatElement(p.nextElementSibling)&&!g.isRangeFormatElement(p.nextElementSibling)?p.nextElementSibling.nodeName:g.isFormatElement(p.previousElementSibling)&&!g.isRangeFormatElement(p.previousElementSibling)?p.previousElementSibling.nodeName:l.defaultTag;e=g.createElement(t),g.copyTagAttributes(e,u,l.lineAttrReset);const i=m.detachRangeFormatElement(p,[u],null,!0,!0);i.cc.insertBefore(e,i.ec)}e.innerHTML="<br>",g.removeItemAllParents(u,null,null),m.setRange(e,1,e,1);break}}if(E){f._enterPrevent(t);const e=i===E,n=m.getSelection(),l=i.childNodes,o=n.focusOffset,s=i.previousElementSibling,a=i.nextSibling;if(!g.isClosureFreeFormatElement(E)&&l&&(e&&r.collapsed&&l.length-1<=o+1&&g.isBreak(l[o])&&(!l[o+1]||(!l[o+2]||g.onlyZeroWidthSpace(l[o+2].textContent))&&3===l[o+1].nodeType&&g.onlyZeroWidthSpace(l[o+1].textContent))&&o>0&&g.isBreak(l[o-1])||!e&&g.onlyZeroWidthSpace(i.textContent)&&g.isBreak(s)&&(g.isBreak(s.previousSibling)||!g.onlyZeroWidthSpace(s.previousSibling.textContent))&&(!a||!g.isBreak(a)&&g.onlyZeroWidthSpace(a.textContent)))){e?g.removeItem(l[o-1]):g.removeItem(i);const t=m.appendFormatTag(E,g.isFormatElement(E.nextElementSibling)&&!g.isRangeFormatElement(E.nextElementSibling)?E.nextElementSibling:null);g.copyFormatAttributes(t,E),m.setRange(t,1,t,1);break}if(e){b.insertHTML(r.collapsed&&g.isBreak(r.startContainer.childNodes[r.startOffset-1])?"<br>":"<br><br>",!0,!1);let e=n.focusNode;const t=n.focusOffset;E===e&&(e=e.childNodes[t-o>1?t-1:t]),m.setRange(e,1,e,1)}else{const e=n.focusNode.nextSibling,t=g.createElement("BR");m.insertNode(t,null,!1);const i=t.previousSibling,l=t.nextSibling;g.isBreak(e)||g.isBreak(i)||l&&!g.onlyZeroWidthSpace(l)?m.setRange(l,0,l,0):(t.parentNode.insertBefore(t.cloneNode(!1),t),m.setRange(t,1,t,1))}f._onShortcutKey=!0;break}if(r.collapsed&&(o||n)){f._enterPrevent(t);const e=g.createElement("BR"),s=g.createElement(u.nodeName);g.copyTagAttributes(s,u,l.lineAttrReset);let a=e;do{if(!g.isBreak(i)&&1===i.nodeType){const e=i.cloneNode(!1);e.appendChild(a),a=e}i=i.parentNode}while(u!==i&&u.contains(i));s.appendChild(a),u.parentNode.insertBefore(s,o&&!n?u:u.nextElementSibling),n&&m.setRange(e,1,e,1);break}if(u){let i;t.stopPropagation();let s=0;if(r.collapsed)i=g.onlyZeroWidthSpace(u)?m.appendFormatTag(u,u.cloneNode(!1)):g.splitElement(r.endContainer,r.endOffset,g.getElementDepth(u));else{const a=g.getFormatElement(r.startContainer,null)!==g.getFormatElement(r.endContainer,null),c=u.cloneNode(!1);c.innerHTML="<br>";const d=r.commonAncestorContainer,h=d===r.startContainer&&d===r.endContainer&&g.onlyZeroWidthSpace(d)?r:m.removeNode();if(i=g.getFormatElement(h.container,null),!i){g.isWysiwygDiv(h.container)&&(f._enterPrevent(t),e.element.wysiwyg.appendChild(c),i=c,g.copyTagAttributes(i,u,l.lineAttrReset),m.setRange(i,s,i,s));break}const p=g.getRangeFormatElement(h.container);if(i=i.contains(p)?g.getChildElement(p,g.getFormatElement.bind(g)):i,a){if(n&&!o)i.parentNode.insertBefore(c,h.prevContainer&&h.container!==h.prevContainer?i:i.nextElementSibling),i=c,s=0;else if(s=h.offset,o){const e=i.parentNode.insertBefore(c,i);n&&(i=e,s=0)}}else n&&o?(i.parentNode.insertBefore(c,h.prevContainer&&h.container===h.prevContainer?i.nextElementSibling:i),i=c,s=0):i=g.splitElement(h.container,h.offset,g.getElementDepth(u))}f._enterPrevent(t),g.copyTagAttributes(i,u,l.lineAttrReset),m.setRange(i,s,i,s);break}}if(c)break;if(p&&g.getParentElement(p,"FIGCAPTION")&&g.getParentElement(p,g.isList)&&(f._enterPrevent(t),u=m.appendFormatTag(u,null),m.setRange(u,0,u,0)),d){t.preventDefault(),t.stopPropagation(),m.containerOff(),m.controllersOff();const i=e[d],n=i._container,s=n.previousElementSibling||n.nextElementSibling;let a=null;g.isListCell(n.parentNode)?a=g.createElement("BR"):(a=g.createElement(g.is
1FormatElement(s)&&!g.isRangeFormatElement(s)?s.nodeName:l.defaultTag),a.innerHTML="<br>"),o?n.parentNode.insertBefore(a,n):n.parentNode.insertBefore(a,n.nextElementSibling),m.callPlugin(d,function(){!1===m.selectComponent(i._element,d)&&m.blur()},null)}break;case 27:if(d)return t.preventDefault(),t.stopPropagation(),m.controllersOff(),!1}if(m.currentFileComponentInfo&&m.controllersOff(),o&&16===n){t.preventDefault(),t.stopPropagation();const e=m.plugins.table;if(e&&!e._shift&&!e._ref){const t=g.getParentElement(u,g.isCell);if(t)return void e.onTableCellMultiSelect.call(m,t,!0)}}else if(o&&(g.isOSX_IOS?a:s)&&32===n){t.preventDefault(),t.stopPropagation();const e=m.insertNode(g.createTextNode("\xa0"));if(e)return void m.setRange(e,e.length,e,e.length)}if(g.isIE&&!s&&!a&&!c&&!f._nonTextKeyCode.test(n)&&g.isBreak(r.commonAncestorContainer)){const e=g.createTextNode(g.zeroWidthSpace);m.insertNode(e,null,!1),m.setRange(e,1,e,1)}f._directionKeyCode.test(n)&&(h.setTimeout(m._editorRange.bind(m),0),f._applyTagEffects())}},_onKeyDown_wysiwyg_arrowKey:function(e){if(e.shiftKey)return;let t=m.getSelectionNode();const i=function(t,i){if(i||(i=0),e.preventDefault(),e.stopPropagation(),!t)return;let n=m.getFileComponent(t);n?m.selectComponent(n.target,n.pluginName):(m.setRange(t,i,t,i),m.controllersOff())},n=g.getParentElement(t,"table");if(n){const l=g.getParentElement(t,"tr"),o=g.getParentElement(t,"td");let s=o,a=o;if(o){for(;s&&s.firstChild;)s=s.firstChild;for(;a&&a.lastChild;)a=a.lastChild}let r=t;for(;r&&r.firstChild;)r=r.firstChild;const c=r===s,d=r===a;let u=null,h=0;if(38===e.keyCode&&c){const e=l&&l.previousElementSibling;for(u=e?e.children[o.cellIndex]:g.getPreviousDeepestNode(n,m.context.element.wysiwyg);u&&u.lastChild;)u=u.lastChild;u&&(h=u.textContent.length)}else if(40===e.keyCode&&d){const e=l&&l.nextElementSibling;for(u=e?e.children[o.cellIndex]:g.getNextDeepestNode(n,m.context.element.wysiwyg);u&&u.firstChild;)u=u.firstChild}if(u)return i(u,h),!1}const l=m.getFileComponent(t);if(l){const t=/37|38/.test(e.keyCode),n=/39|40/.test(e.keyCode);if(t){const e=g.getPreviousDeepestNode(l.target,m.context.element.wysiwyg);i(e,e&&e.textContent.length)}else if(n){i(g.getNextDeepestNode(l.target,m.context.element.wysiwyg))}}},onKeyUp_wysiwyg:function(e){if(f._onShortcutKey)return;m._editorRange();const t=e.keyCode,i=e.ctrlKey||e.metaKey||91===t||92===t||224===t,n=e.altKey;if(m.isReadOnly)return void(!i&&f._cursorMoveKeyCode.test(t)&&f._applyTagEffects());const o=m.getRange();let s=m.getSelectionNode();if(m._isBalloon&&(m._isBalloonAlways&&27!==t||!o.collapsed)){if(!m._isBalloonAlways)return void f._showToolbarBalloon();27!==t&&f._showToolbarBalloonDelay()}let a=s;for(;a&&a.firstChild;)a=a.firstChild;const r=m.getFileComponent(a);if(16!==e.keyCode&&!e.shiftKey&&r&&m.selectComponent(r.target,r.pluginName),8===t&&g.isWysiwygDiv(s)&&""===s.textContent&&0===s.children.length){e.preventDefault(),e.stopPropagation(),s.innerHTML="";const t=g.createElement(g.isFormatElement(m._variable.currentNodes[0])?m._variable.currentNodes[0]:l.defaultTag);return t.innerHTML="<br>",s.appendChild(t),m.setRange(t,0,t,0),f._applyTagEffects(),void m.history.push(!1)}const c=g.getFormatElement(s,null),d=g.getRangeFormatElement(s,null),u=m._formatAttrsTemp;if(u){for(let e=0,i=u.length;e<i;e++)13===t&&/^id$/i.test(u[e].name)?c.removeAttribute("id"):c.setAttribute(u[e].name,u[e].value);m._formatAttrsTemp=null}c||!o.collapsed||g.isComponent(s)||g.isList(s)||null===m._setDefaultFormat(g.isRangeFormatElement(d)?"DIV":l.defaultTag)||(s=m.getSelectionNode());if(!i&&!n&&!f._nonTextKeyCode.test(t)&&3===s.nodeType&&g.zeroWidthRegExp.test(s.textContent)&&!(void 0!==e.isComposing?e.isComposing:f._IEisComposing)){let e=o.startOffset,t=o.endOffset;const i=(s.textContent.substring(0,t).match(f._frontZeroWidthReg)||"").length;e=o.startOffset-i,t=o.endOffset-i,s.textContent=s.textContent.replace(g.zeroWidthRegExp,""),m.setRange(s,e<0?0:e,s,t<0?0:t)}f._deleteKeyCode.test(t)&&c&&g.onlyZeroWidthSpace(c.textContent)&&!c.previousElementSibling&&(c.innerHTML="<br>",m.setRange(c,0,c,0)),m._charCount(""),"function"===typeof b.onKeyUp&&!1===b.onKeyUp(e,m)||i||n||f._historyIgnoreKeyCode.test(t)||m.history.push(!0)},onScroll_wysiwyg:function(e){m.controllersOff(),m._isBalloon&&f._hideToolbar(),"function"===typeof b.onScroll&&b.onScroll(e,m)},onFocus_wysiwyg:function(e){m._antiBlur||(m.hasFocus=!0,h.setTimeout(f._applyTagEffects),m._isInline&&f._showToolbarInline(),"function"===typeof b.onFocus&&b.onFocus(e,m))}
1,onBlur_wysiwyg:function(t){m._antiBlur||m._variable.isCodeView||(m.hasFocus=!1,m.effectNode=null,m.controllersOff(),(m._isInline||m._isBalloon)&&f._hideToolbar(),m._setKeyEffect([]),m._variable.currentNodes=[],m._variable.currentNodesMap=[],l.showPathLabel&&(e.element.navigation.textContent=""),"function"===typeof b.onBlur&&b.onBlur(t,m,this))},onMouseDown_resizingBar:function(t){t.stopPropagation(),m.submenuOff(),m.controllersOff(),m._variable.resizeClientY=t.clientY,e.element.resizeBackground.style.display="block",s.addEventListener("mousemove",f._resize_editor),s.addEventListener("mouseup",function t(){e.element.resizeBackground.style.display="none",s.removeEventListener("mousemove",f._resize_editor),s.removeEventListener("mouseup",t)})},_resize_editor:function(t){const i=e.element.editorArea.offsetHeight+(t.clientY-m._variable.resizeClientY),n=i<m._variable.minResizingSize?m._variable.minResizingSize:i;e.element.wysiwygFrame.style.height=e.element.code.style.height=n+"px",m._variable.resizeClientY=t.clientY,g.isResizeObserverSupported||m.__callResizeFunction(n,null)},onResize_window:function(){g.isResizeObserverSupported||m.resetResponsiveToolbar();const t=e.element.toolbar,i="none"===t.style.display||m._isInline&&!m._inlineToolbarAttr.isShow;if(0!==t.offsetWidth||i){if(e.fileBrowser&&"block"===e.fileBrowser.area.style.display&&(e.fileBrowser.body.style.maxHeight=h.innerHeight-e.fileBrowser.header.offsetHeight-50+"px"),m.submenuActiveButton&&m.submenu&&m._setMenuPosition(m.submenuActiveButton,m.submenu),m._variable.isFullScreen)return m._variable.innerHeight_fullScreen+=h.innerHeight-t.offsetHeight-m._variable.innerHeight_fullScreen,void(e.element.editorArea.style.height=m._variable.innerHeight_fullScreen+"px");m._variable.isCodeView&&m._isInline?f._showToolbarInline():(m._iframeAutoHeight(),m._sticky&&(t.style.width=e.element.topArea.offsetWidth-2+"px",f.onScroll_window()))}},onScroll_window:function(){if(m._variable.isFullScreen||0===e.element.toolbar.offsetWidth||l.stickyToolbar<0)return;const t=e.element,i=t.editorArea.offsetHeight,n=(this.scrollY||s.documentElement.scrollTop)+l.stickyToolbar,o=f._getEditorOffsets(l.toolbarContainer).top-(m._isInline?t.toolbar.offsetHeight:0),a=m._isInline&&n-o>0?n-o-e.element.toolbar.offsetHeight:0;n<o?f._offStickyToolbar():n+m._variable.minResizingSize>=i+o?(m._sticky||f._onStickyToolbar(a),t.toolbar.style.top=a+i+o+l.stickyToolbar-n-m._variable.minResizingSize+"px"):n>=o&&f._onStickyToolbar(a)},_getEditorOffsets:function(t){let i=t||e.element.topArea,n=0,l=0,o=0;for(;i;)n+=i.offsetTop,l+=i.offsetLeft,o+=i.scrollTop,i=i.offsetParent;return{top:n,left:l,scroll:o}},_getPageBottomSpace:function(){return s.documentElement.scrollHeight-(f._getEditorOffsets(null).top+e.element.topArea.offsetHeight)},_onStickyToolbar:function(t){const i=e.element;m._isInline||l.toolbarContainer||(i._stickyDummy.style.height=i.toolbar.offsetHeight+"px",i._stickyDummy.style.display="block"),i.toolbar.style.top=l.stickyToolbar+t+"px",i.toolbar.style.width=m._isInline?m._inlineToolbarAttr.width:i.toolbar.offsetWidth+"px",g.addClass(i.toolbar,"se-toolbar-sticky"),m._sticky=!0},_offStickyToolbar:function(){const t=e.element;t._stickyDummy.style.display="none",t.toolbar.style.top=m._isInline?m._inlineToolbarAttr.top:"",t.toolbar.style.width=m._isInline?m._inlineToolbarAttr.width:"",t.editorArea.style.marginTop="",g.removeClass(t.toolbar,"se-toolbar-sticky"),m._sticky=!1},_codeViewAutoHeight:function(){m._variable.isFullScreen||(e.element.code.style.height=e.element.code.scrollHeight+"px")},_hardDelete:function(){const e=m.getRange(),t=e.startContainer,i=e.endContainer,n=g.getRangeFormatElement(t),l=g.getRangeFormatElement(i),o=g.isCell(n),s=g.isCell(l),a=e.commonAncestorContainer;if((o&&!n.previousElementSibling&&!n.parentElement.previousElementSibling||s&&!l.nextElementSibling&&!l.parentElement.nextElementSibling)&&n!==l)if(o){if(s)return g.removeItem(g.getParentElement(n,function(e){return a===e.parentNode})),m.nativeFocus(),!0;g.removeItem(g.getParentElement(n,function(e){return a===e.parentNode}))}else g.removeItem(g.getParentElement(l,function(e){return a===e.parentNode}));const r=1===t.nodeType?g.getParentElement(t,".se-component"):null,c=1===i.nodeType?g.getParentElement(i,".se
1-component"):null;return r&&g.removeItem(r),c&&g.removeItem(c),!1},onPaste_wysiwyg:function(e){const t=g.isIE?h.clipboardData:e.clipboardData;return!t||f._dataTransferAction("paste",e,t)},_setClipboardComponent:function(e,t,i){e.preventDefault(),e.stopPropagation(),i.setData("text/html",t.component.outerHTML)},onCopy_wysiwyg:function(e){const t=g.isIE?h.clipboardData:e.clipboardData;if("function"===typeof b.onCopy&&!1===b.onCopy(e,t,m))return e.preventDefault(),e.stopPropagation(),!1;const i=m.currentFileComponentInfo;i&&!g.isIE&&(f._setClipboardComponent(e,i,t),g.addClass(i.component,"se-component-copy"),h.setTimeout(function(){g.removeClass(i.component,"se-component-copy")},150))},onSave_wysiwyg:function(e){"function"!==typeof b.onSave||b.onSave(e,m)},onCut_wysiwyg:function(e){const t=g.isIE?h.clipboardData:e.clipboardData;if("function"===typeof b.onCut&&!1===b.onCut(e,t,m))return e.preventDefault(),e.stopPropagation(),!1;const i=m.currentFileComponentInfo;i&&!g.isIE&&(f._setClipboardComponent(e,i,t),g.removeItem(i.component),m.controllersOff()),h.setTimeout(function(){m.history.push(!1)})},onDrop_wysiwyg:function(e){if(m.isReadOnly||g.isIE)return e.preventDefault(),e.stopPropagation(),!1;const t=e.dataTransfer;return!t||(f._setDropLocationSelection(e),m.removeNode(),document.body.contains(m.currentControllerTarget)||m.controllersOff(),f._dataTransferAction("drop",e,t))},_setDropLocationSelection:function(e){const t={startContainer:null,startOffset:null,endContainer:null,endOffset:null};let i=null;if(e.rangeParent?(t.startContainer=e.rangeParent,t.startOffset=e.rangeOffset,t.endContainer=e.rangeParent,t.endOffset=e.rangeOffset):i=m._wd.caretRangeFromPoint?m._wd.caretRangeFromPoint(e.clientX,e.clientY):m.getRange(),i&&(t.startContainer=i.startContainer,t.startOffset=i.startOffset,t.endContainer=i.endContainer,t.endOffset=i.endOffset),t.startContainer===t.endContainer){const e=g.getParentElement(t.startContainer,g.isComponent);e&&(t.startContainer=e,t.startOffset=0,t.endContainer=e,t.endOffset=0)}m.setRange(t.startContainer,t.startOffset,t.endContainer,t.endOffset)},_dataTransferAction:function(t,i,n){let l,o;if(g.isIE){l=n.getData("Text");const s=m.getRange(),a=g.createElement("DIV"),r={sc:s.startContainer,so:s.startOffset,ec:s.endContainer,eo:s.endOffset};return a.setAttribute("contenteditable",!0),a.style.cssText="position:absolute; top:0; left:0; width:1px; height:1px; overflow:hidden;",e.element.relative.appendChild(a),a.focus(),h.setTimeout(function(){o=a.innerHTML,g.removeItem(a),m.setRange(r.sc,r.so,r.ec,r.eo),f._setClipboardData(t,i,l,o,n)}),!0}if(l=n.getData("text/plain"),o=n.getData("text/html"),!1===f._setClipboardData(t,i,l,o,n))return i.preventDefault(),i.stopPropagation(),!1},_setClipboardData:function(e,t,i,n,l){const o=/class=["']*Mso(Normal|List)/i.test(n)||/content=["']*Word.Document/i.test(n)||/content=["']*OneNote.File/i.test(n)||/content=["']*Excel.Sheet/i.test(n);!n?n=g._HTMLConvertor(i).replace(/\n/g,"<br>"):(n=n.replace(/^<html>\r?\n?<body>\r?\n?\x3C!--StartFragment--\>|\x3C!--EndFragment-->\r?\n?<\/body\>\r?\n?<\/html>$/g,""),o&&(n=n.replace(/\n/g," "),i=i.replace(/\n/g," ")),n=m.cleanHTML(n,m.pasteTagsWhitelistRegExp,m.pasteTagsBlacklistRegExp));const s=m._charCount(m._charTypeHTML?n:i);if("paste"===e&&"function"===typeof b.onPaste){const e=b.onPaste(t,n,s,m);if(!1===e)return!1;if("string"===typeof e){if(!e)return!1;n=e}}if("drop"===e&&"function"===typeof b.onDrop){const e=b.onDrop(t,n,s,m);if(!1===e)return!1;if("string"===typeof e){if(!e)return!1;n=e}}const a=l.files;return a.length>0&&!o?(/^image/.test(a[0].type)&&m.plugins.image&&b.insertImage(a),!1):!!s&&(n?(b.insertHTML(n,!0,!1),!1):void 0)},onMouseMove_wysiwyg:function(t){if(m.isDisabled||m.isReadOnly)return!1;const i=g.getParentElement(t.target,g.isComponent),n=m._lineBreaker.style;if(i&&!m.currentControllerName){const o=e.element;let s=0,a=o.wysiwyg;do{s+=a.scrollTop,a=a.parentElement}while(a&&!/^(BODY|HTML)$/i.test(a.nodeName));const r=o.wysiwyg.scrollTop,c=f._getEditorOffsets(null),d=g.getOffset(i,o.wysiwygFrame).top+r,u=t.pageY+s+(l.iframe&&!l.toolbarContainer?o.toolbar.offsetHeight:0),h=d+(l.iframe?s:c.top),p=g.isListCell(i.parentNode);let b="",_="";if((p?!i.previousSibling:!g.isFormatElement(i.previousElementSibling))&&u<h+20)_=d,b="t";else{if((p?i.nextSibling:g.isFormatElement(i.nextElementSibling))||!(u>h+i.offsetHeight-20))return void(n.display="none");_=d+i.offsetHeight,b="b"}m._variable._lineBreakComp=i,m._variable._lineBreakDir=b,n.top=_-r+"px",m._lineBreakerButton.style.left=g.getOffset(i).left+i.offsetWidth/2-15+"px",n.display="block"}else"none"!==n.display&&(n.display="none")},_enterPrevent:function(e){e.preventDefault(),g.isMobile&&m.__focusTemp.focus()},_onMouseDown_lineBreak:function(e){e.preventDefault()},_onLineBreak:function(e){e.preventDefault();const t=m._variable._lineBreakComp,i=this?this:m._variable._lineBreakDir,n=g.isListCell(t.parentNode),o=g.createElement(n?"BR":g.isCell(t.parentNode)?"DIV":l.defaultTag);if(n||(o.innerHTML="<br>"),m._charTypeHTML&&!m.checkCharCount(o.outerHTML,"byte-html"))return;t.parentNode.insertBefore(o,"t"===i?t:t.nextSibling),m._lineBreaker.style.display="none",m._variable._lineBreakComp=null;const s=n?o:o.firstChild;m.setRange(s,1,s,1),m.history.push(!1)},_resizeObserver:null,_toolbarObserver:null,_addEvent:function(){const t=l.iframe?m._ww:e.element.wysiwyg;g.isResizeObserverSupported&&(this._resizeObserver=new h.ResizeObserver(function(e){m.__callResizeFunction(-1,e[0])})),e.element.toolbar.addEventListener("mousedown",f._buttonsEventHandler,!1),e.element._menuTray.addEventListener("mousedown",f._buttonsEventHandler,!1),e.element.toolbar.addEventListener("click",f.onClick_toolbar,!1),t.addEventListener("mousedown",f.onMouseDown_wysiwyg,!1),t.addEventListener("click",f.onClick_wysiwyg,!1),t.addEventListener(g.isIE?"textinput":"input",f.onInput_wysiwyg,!1),t.addEventListener("keydown",f.onKeyDown_wysiwyg,!1),t.addEventListener("keyup",f.onKeyUp_wysiwyg,!1),t.addEventListener("paste",f.onPaste_wysiwyg,!1),t.addEventListener("copy",f.onCopy_wysiwyg,!1),t.addEventListener("cut",f.onCut_wysiwyg,!1),t.addEventListener("drop",f.onDrop_wysiwyg,!1),t.addEventListener("scroll",f.onScroll_wysiwyg,!1),t.addEventListener("focus",f.onFocus_wysiwyg,!1),t.addEventListener("blur",f.onBlur_wysiwyg,!1),f._lineBreakerBind={a:f._onLineBreak.bind(""),t:f._onLineBreak.bind("t"),b:f._onLineBreak.bind("b")},t.addEventListener("mousemove",f.onMouseMove_wysiwyg,!1),m._lineBreakerButton.addEventListener("mousedown",f._onMouseDown_lineBreak,!1),m._lineBreakerButton.addEventListener("click",f._lineBreakerBind.a,!1),e.element.lineBreaker_t.addEventListener("mousedown",f._lineBreakerBind.t,!1),e.element.lineBreaker_b.addEventListener("mousedown",f._lineBreakerBind.b,!1),t.addEventListener("touchstart",f.onMouseDown_wysiwyg,{passive:!0,useCapture:!1}),t.addEventListener("touchend",f.onClick_wysiwyg,{passive:!0,useCapture:!1}),"auto"!==l.height||l.codeMirrorEditor||(e.element.code.addEventListener("keydown",f._co
1deViewAutoHeight,!1),e.element.code.addEventListener("keyup",f._codeViewAutoHeight,!1),e.element.code.addEventListener("paste",f._codeViewAutoHeight,!1)),e.element.resizingBar&&(/\d+/.test(l.height)&&l.resizeEnable?e.element.resizingBar.addEventListener("mousedown",f.onMouseDown_resizingBar,!1):g.addClass(e.element.resizingBar,"se-resizing-none")),f._setResponsiveToolbar(),g.isResizeObserverSupported&&(this._toolbarObserver=new h.ResizeObserver(m.resetResponsiveToolbar)),h.addEventListener("resize",f.onResize_window,!1),l.stickyToolbar>-1&&h.addEventListener("scroll",f.onScroll_window,!1)},_removeEvent:function(){const t=l.iframe?m._ww:e.element.wysiwyg;e.element.toolbar.removeEventListener("mousedown",f._buttonsEventHandler),e.element._menuTray.removeEventListener("mousedown",f._buttonsEventHandler),e.element.toolbar.removeEventListener("click",f.onClick_toolbar),t.removeEventListener("mousedown",f.onMouseDown_wysiwyg),t.removeEventListener("click",f.onClick_wysiwyg),t.removeEventListener(g.isIE?"textinput":"input",f.onInput_wysiwyg),t.removeEventListener("keydown",f.onKeyDown_wysiwyg),t.removeEventListener("keyup",f.onKeyUp_wysiwyg),t.removeEventListener("paste",f.onPaste_wysiwyg),t.removeEventListener("copy",f.onCopy_wysiwyg),t.removeEventListener("cut",f.onCut_wysiwyg),t.removeEventListener("drop",f.onDrop_wysiwyg),t.removeEventListener("scroll",f.onScroll_wysiwyg),t.removeEventListener("mousemove",f.onMouseMove_wysiwyg),m._lineBreakerButton.removeEventListener("mousedown",f._onMouseDown_lineBreak),m._lineBreakerButton.removeEventListener("click",f._lineBreakerBind.a),e.element.lineBreaker_t.removeEventListener("mousedown",f._lineBreakerBind.t),e.element.lineBreaker_b.removeEventListener("mousedown",f._lineBreakerBind.b),f._lineBreakerBind=null,t.removeEventListener("touchstart",f.onMouseDown_wysiwyg,{passive:!0,useCapture:!1}),t.removeEventListener("touchend",f.onClick_wysiwyg,{passive:!0,useCapture:!1}),t.removeEventListener("focus",f.onFocus_wysiwyg),t.removeEventListener("blur",f.onBlur_wysiwyg),e.element.code.removeEventListener("keydown",f._codeViewAutoHeight),e.element.code.removeEventListener("keyup",f._codeViewAutoHeight),e.element.code.removeEventListener("paste",f._codeViewAutoHeight),e.element.resizingBar&&e.element.resizingBar.removeEventListener("mousedown",f.onMouseDown_resizingBar),f._resizeObserver&&(f._resizeObserver.unobserve(e.element.wysiwygFrame),f._resizeObserver=null),f._toolbarObserver&&(f._toolbarObserver.unobserve(e.element._toolbarShadow),f._toolbarObserver=null),h.removeEventListener("resize",f.onResize_window),h.removeEventListener("scroll",f.onScroll_window)},_setResponsiveToolbar:function(){if(0===o.length)return void(o=null);f._responsiveCurrentSize="default";const e=f._responsiveButtonSize=[],t=f._responsiveButtons={default:o[0]};for(let i,n,l=1,s=o.length;l<s;l++)n=o[l],i=1*n[0],e.push(i),t[i]=n[1];e.sort(function(e,t){return e-t}).unshift("default")}},b={core:m,util:g,onload:null,onScroll:null,onMouseDown:null,onClick:null,onInput:null,onKeyDown:null,onKeyUp:null,onCopy:null,onCut:null,onFocus:null,onBlur:null,onChange:null,onSave:null,onDrop:null,onPaste:null,showInline:null,showController:null,toggleCodeView:null,toggleFullScreen:null,imageUploadHandler:null,videoUploadHandler:null,audioUploadHandler:null,onImageUploadBefore:null,onVideoUploadBefore:null,onAudioUploadBefore:null,onImageUpload:null,onVideoUpload:null,onAudioUpload:null,onImageUploadError:null,onVideoUploadError:null,onAudioUploadError:null,onResizeEditor:null,onSetToolbarButtons:null,setToolbarButtons:function(t){m.submenuOff(),m.containerOff(),m.moreLayerOff();const i=r._createToolBar(s,t,m.plugins,l);o=i.responsiveButtons,f._setResponsiveToolbar(),e.element.toolbar.replaceChild(i._buttonTray,e.element._buttonTray);const n=c(e.element.originElement,m._getConstructed(e.element),l);e.element=n.element,e.tool=n.tool,l.iframe&&(e.element.wysiwyg=m._wd.body),m._recoverButtonStates(),m._cachingButtons(),m.history._resetCachingButton(),m.effectNode=null,m.hasFocus&&f._applyTagEffects(),m.isReadOnly&&g.setDisabledButtons(!0,m.resizingDisabledButtons),"function"===typeof b.onSetToolbarButtons&&b.onSetToolbarButtons(i._buttonTray.querySelectorAll("button"),m)},setOptions:function(s){f._removeEvent(),m._resetComponents(),g.removeClass(m._styleCommandMap.showBlocks,"active"),g.removeClass(m._styleCommandMap.codeView,"active"),m._variable.
1isCodeView=!1,m._iframeAuto=null,m.plugins=s.plugins||m.plugins;const a=[l,s].reduce(function(e,t){for(let i in t)if(g.hasOwn(t,i))if("plugins"===i&&t[i]&&e[i]){let n=e[i],l=t[i];n=n.length?n:h.Object.keys(n).map(function(e){return n[e]}),l=l.length?l:h.Object.keys(l).map(function(e){return l[e]}),e[i]=l.filter(function(e){return-1===n.indexOf(e)}).concat(n)}else e[i]=t[i];return e},{}),c=e.element,d=c.wysiwyg.innerHTML,u=r._setOptions(a,e,l);u.callButtons&&(t=u.callButtons,m.initPlugins={}),u.plugins&&(m.plugins=i=u.plugins),0===c._menuTray.children.length&&(this._menuTray={}),o=u.toolbar.responsiveButtons,m.options=l=a,m.lang=n=l.lang,l.iframe&&c.wysiwygFrame.addEventListener("load",function(){g._setIframeDocument(this,l),m._setOptionsInit(c,d)}),c.editorArea.appendChild(c.wysiwygFrame),l.iframe||m._setOptionsInit(c,d)},setDefaultStyle:function(t){const i=l._editorStyles=g._setDefaultOptionStyle(l,t),n=e.element;n.topArea.style.cssText=i.top,n.code.style.cssText=l._editorStyles.frame,n.code.style.display="none","auto"===l.height?n.code.style.overflow="hidden":n.code.style.overflow="",l.iframe?(n.wysiwygFrame.style.cssText=i.frame,n.wysiwyg.style.cssText=i.editor):n.wysiwygFrame.style.cssText=i.frame+i.editor},noticeOpen:function(e){m.notice.open.call(m,e)},noticeClose:function(){m.notice.close.call(m)},save:function(){const t=m.getContents(!1);e.element.originElement.value=t,f.onSave_wysiwyg(t,m)},getContext:function(){return e},getContents:function(e){return m.getContents(e)},getText:function(){return e.element.wysiwyg.textContent},getCharCount:function(t){return t="string"===typeof t?t:l.charCounterType,m.getCharLength(m._charTypeHTML?e.element.wysiwyg.innerHTML:e.element.wysiwyg.textContent,t)},getImagesInfo:function(){return e.image?e.image._infoList:[]},getFilesInfo:function(t){return e[t]?e[t]._infoList:[]},insertImage:function(e){m.plugins.image&&e&&(m.initPlugins.image?m.plugins.image.submitAction.call(m,e):m.callPlugin("image",m.plugins.image.submitAction.bind(m,e),null),m.focus())},insertHTML:function(t,i,n,l){if(e.element.wysiwygFrame.contains(m.getSelection().focusNode)||m.focus(),"string"===typeof t){i||(t=m.cleanHTML(t,null,null));try{if(g.isListCell(g.getFormatElement(m.getSelectionNode(),null))){const e=s.createRange().createContextualFragment(t).childNodes;m._isFormatData(e)&&(t=m._convertListCell(e))}const e=s.createRange().createContextualFragment(t).childNodes;if(n){const t=m._charTypeHTML?"outerHTML":"textContent";let i="";for(let n=0,l=e.length;n<l;n++)i+=e[n][t];if(!m.checkCharCount(i,null))return}let i,o,a,r,c;for(;i=e[0];)r&&3===r.nodeType&&o&&1===o.nodeType&&g.isBreak(i)?(r=i,g.removeItem(i)):(a=m.insertNode(i,o,!1),o=a.container||a,c||(c=a),r=i);3===r.nodeType&&1===o.nodeType&&(o=r);const d=3===o.nodeType?a.endOffset||o.textContent.length:o.childNodes.length;l?m.setRange(c.container||c,c.startOffset||0,o,d):m.setRange(o,d,o,d)}catch(o){if(m.isDisabled||m.isReadOnly)return;console.warn("[SUNEDITOR.insertHTML.fail] "+o),m.execCommand("insertHTML",!1,t)}}else if(g.isComponent(t))m.insertComponent(t,!1,n,!1);else{let e=null;(g.isFormatElement(t)||g.isMedia(t))&&(e=g.getFormatElement(m.getSelectionNode(),null)),m.insertNode(t,e,n)}m.effectNode=null,m.focus(),m.history.push(!1)},setContents:function(e){m.setContents(e)},appendContents:function(t){const i=m.convertContentsForEditor(t);if(m._variable.isCodeView)m._setCodeView(m._getCodeView()+"\n"+m.convertHTMLForCodeView(i,!1));else{const t=g.createElement("DIV");t.innerHTML=i;const n=e.element.wysiwyg,l=t.children;for(let e=0,i=l.length;e<i;e++)l[e]&&n.appendChild(l[e])}m.history.push(!1)},readOnly:function(t){m.isReadOnly=t,g.setDisabledButtons(!!t,m.resizingDisabledButtons),t?(m.controllersOff(),m.submenuActiveButton&&m.submenuActiveButton.disabled&&m.submenuOff(),m._moreLayerActiveButton&&m._moreLayerActiveButton.disabled&&m.moreLayerOff(),m.containerActiveButton&&m.containerActiveButton.disabled&&m.containerOff(),m.modalForm&&m.plugins.dialog.close.call(m),e.element.code.setAttribute("readOnly","true"),g.addClass(e.element.wysiwygFrame,"se-read-only")):(e.element.code.removeAttribute("readOnly"),g.removeClass(e.element.wysiwygFrame,"se-read-only")),l.codeMirrorEditor&&l.codeMirrorEditor.setOption("readOnly",!!t)},disable:function(){this.toolbar.disable(),this.wysiwyg.disable()},disabled:function(){this.disable()},enable:function(){this.toolbar.enable(),this.wysiwyg.enable()},enabled:function(){this.enable()},show:function(){const t=e.element.topArea.style;"none"===t.display&&(t.display=l.display)},hide:function(){e.element.topArea.style.display="none"},destroy:function(){m.submenuOff(),m.containerOff(),m.controllersOff(),m.notice&&m.notice.close.call(m),m.modalForm&&m.plugins.dialog.close.call(m),m.history._destroy(),f._removeEvent(),g.removeItem(e.element.toolbar),g.removeItem(e.element.topArea);for(let e in m.functions)g.hasOwn(m,e)&&delete m.functions[e];for(let e in m)g.hasOwn(m,e)&&delete m[e];for(let e in f)g.hasOwn(f,e)&&delete f[e];for(let t in e)g.hasOwn(e,t)&&delete e[t];for(let e in t)g.hasOwn(t,e)&&delete t[e];for(let e in this)g.hasOwn(this,e)&&delete this[e]},toolbar:{disable:function(){m.submenuOff(),m.moreLayerOff(),m.containerOff(),e.tool.cover.style.display="block"},disabled:function(){this.disable()},enable:function(){e.tool.cover.style.display="none"},enabled:function(){this.enable()},show:function(){m._isInline?f._showToolbarInline():(e.element.toolbar.style.display="",e.element._stickyDummy.style.display=""),f.onResize_window()},hide:function(){m._isInline?f._hideToolbar():(e.element.toolbar.style.display="none",e.element._stickyDummy.style.display="none"),f.onResize_window()}},wysiwyg:{disable:function(){m.controllersOff(),m.modalForm&&m.plugins.dialog.close.call(m),e.element.wysiwyg.setAttribute("contenteditable",!1),m.isDisabled=!0,l.codeMirrorEditor?l.codeMirrorEditor.setOption("readOnly",!0):e.element.code.setAttribute("disabled","disabled")},enable:function(){e.element.wysiwyg.setAttribute("contenteditable",!0),m.isDisabled=!1,l.codeMirrorEditor?l.codeMirrorEditor.setOption("readOnly",!1):e.element.code.removeAttribute("disabled")}}};m.functions=b,m.options=l;let v=e.element,y=v.originElement,w=v.topArea;return y.style.display="none",w.style.display="block",l.iframe&&v.wysiwygFrame.addEventListener("load",function(){g._setIframeDocument(this,l),m._editorInit(!1,l.value),l.value=null}),"object"===typeof y.nextElementSibling?y.parentNode.insertBefore(w,y.nextElementSibling):y.parentNode.appendChild(w),v.editorArea.appendChild(v.wysiwygFrame),v=y=w=null,l.iframe||(m._editorInit(!1,l.value),l.value=null),b}i.dn(h);const g=/^(?:https?|ftps?|mailto|tel|blob|sms|geo|webcal|callto):|^[#/]|^data:image\//i,p=/^(?:href|src)\s*=/i,m=/=\s*(?:"([^"]*)"|'([^']*)'|(\S+))/,f=/:/i;function b(e){var t=function(e){let t,i=5;do{t=e,e=e.replace(/&(#x([0-9a-f]+)|#([0-9]+)|([a-z]+));/gi,function(e,t,i,n){return i?String.fromCharCode(parseInt(i,16)):n?String.fromCharCode(parseInt(n,10)):""})}while(e!==t&&--i);try{e=decodeURIComponent(e)}catch(n){}return e.replace(/[\u0000-\u0020]+/g,"")}(e);return g.test(t)||!f.test(t)}function _(e){if(!p.test(e))return!0;var t=e.match(m);return!t||b(t[1]||t[2]||t[3]||"")}const v={init:function(e){return{create:function(t,i){return this.create(t,i,e)}.bind(this)}},create:function(e,t,i){a._propertiesInit(),"object"!==typeof t&&(t={}),i&&(t=[i,t].reduce(function(e,t){for(let i in t)if(a.hasOwn(t,i))if("plugins"===i&&t[i]&&e[i]){let n=e[i],l=t[i];n=n.length?n:Object.keys(n).map(function(e){return n[e]}),l=l.length?l:Object.keys(l).map(function(e){return l[e]}),e[i]=l.filter(function(e){return-1===n.indexOf(e)}).concat(n)}else e[i]=t[i];return e},{}));const n="string"===typeof e?document.getElementById(e):e;if(!n){if("string"===typeof e)throw Error('[SUNEDITOR.create.fail] The element for that id was not found (ID:"'+e+'")');throw Error("[SUNEDITOR.create.fail] suneditor requires textarea's element or id value")}const l=r.init(n,t);if(l.constructed._top.id&&document.getElementById(l.constructed._top.id))throw Error('[SUNEDITOR.create.fail] The ID of the suneditor you are trying to create already exists (ID:"'+l.constructed._top.id+'")');return h(c(n,l.constructed,l.options),l.pluginCallButtons,l.plugins,l.options.lang,t,l._responsiveButtons)}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.