(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0062":function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var i=n("a242"),r=n("5595"),o=n("02d4"),s=n("4fdd"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class a extends i["a"]{refresh(){const e=this.editor.model,t=e.schema,n=e.document.selection,i=u(n);this.isEnabled=c(n,t,e),this.value=i?i.getAttribute("value")||"":null}execute(e){const t=this.editor.model,n=t.document.selection;t.change(i=>{let r;null!==this.value?r=u(n):(r=i.createElement("rawHtml"),t.insertContent(r),i.setSelection(r,"on")),i.setAttribute("value",e,r)})}}function c(e,t,n){const i=l(e,n);return t.checkChild(i,"rawHtml")}function l(e,t){const n=Object(r["d"])(e,t),i=n.start.parent;return i.isEmpty&&!i.is("element","$root")?i.parent:i}function u(e){const t=e.getSelectedElement();return t&&t.is("element","rawHtml")?t:null}n("34ce"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class d extends i["i"]{static get pluginName(){return"HtmlEmbedEditing"}constructor(e){super(e),e.config.define("htmlEmbed",{showPreviews:!1,sanitizeHtml:e=>{return Object(s["r"])("html-embed-provide-sanitize-function"),{html:e,hasChanged:!1}}}),this._widgetButtonViewReferences=new Set}init(){const e=this.editor,t=e.model.schema;t.register("rawHtml",{isObject:!0,allowWhere:"$block",allowAttributes:["value"]}),e.commands.add("htmlEmbed",new a(e)),this._setupConversion()}_setupConversion(){const e=this.editor,t=e.t,n=e.editing.view,i=this._widgetButtonViewReferences,o=e.config.get("htmlEmbed");function a({domElement:e,editor:t,state:n,props:i}){e.textContent="";const r=e.ownerDocument;let o;if(n.isEditable){const t={isDisabled:!1,placeholder:i.textareaPlaceholder};o=l({domDocument:r,state:n,props:t}),e.append(o)}else if(n.showPreviews){const o={sanitizeHtml:i.sanitizeHtml};e.append(u({domDocument:r,state:n,props:o,editor:t}))}else{const t={isDisabled:!0,placeholder:i.textareaPlaceholder};e.append(l({domDocument:r,state:n,props:t}))}const s={onEditClick:i.onEditClick,onSaveClick:()=>{i.onSaveClick(o.value)},onCancelClick:i.onCancelClick};e.prepend(c({editor:t,domDocument:r,state:n,props:s}))}function c({editor:e,domDocument:t,state:n,props:r}){const o=Object(s["i"])(t,"div",{class:"raw-html-embed__buttons-wrapper"});if(n.isEditable){const t=h(e,"save",r.onSaveClick),n=h(e,"cancel",r.onCancelClick);o.append(t.element,n.element),i.add(t).add(n)}else{const t=h(e,"edit",r.onEditClick);o.append(t.element),i.add(t)}return o}function l({domDocument:e,state:t,props:n}){const i=Object(s["i"])(e,"textarea",{placeholder:n.placeholder,class:"ck ck-reset ck-input ck-input-text raw-html-embed__source"});return i.disabled=n.isDisabled,i.value=t.getRawHtmlValue(),i}function u({domDocument:e,state:n,props:i,editor:r}){const o=i.sanitizeHtml(n.getRawHtmlValue()),a=n.getRawHtmlValue().length>0?t("No preview available"):t("Empty snippet content"),c=Object(s["i"])(e,"div",{class:"ck ck-reset_all raw-html-embed__preview-placeholder"},a),l=Object(s["i"])(e,"div",{class:"raw-html-embed__preview-content",dir:r.locale.contentLanguageDirection}),u=e.createRange(),d=u.createContextualFragment(o.html);l.appendChild(d);const h=Object(s["i"])(e,"div",{class:"raw-html-embed__preview"},[c,l]);return h}this.editor.editing.view.on("render",()=>{for(const e of i){if(e.element.isConnected)return;e.destroy(),i.delete(e)}},{priority:"lowest"}),e.data.registerRawContentMatcher({name:"div",classes:"raw-html-embed"}),e.conversion.for("upcast").elementToElement({view:{name:"div",classes:"raw-html-embed"},model:(e,{writer:t})=>{return t.createElement("rawHtml",{value:e.getCustomProperty("$rawContent")})}}),e.conversion.for("dataDowncast").elementToElement({model:"rawHtml",view:(e,{writer:t})=>{return t.createRawElement("div",{class:"raw-html-embed"},(function(t){t.innerHTML=e.getAttribute("value")||""}))}}),e.conversion.for("editingDowncast").elementToElement({triggerBy:{attributes:["value"]},model:"rawHtml",view:(i,{writer:s})=>{let c,l,u;const d=s.createContainerElement("div",{class:"raw-html-embed","data-html-embed-label":t("HTML snippet"),dir:e.locale.uiLanguageDirection}),h=s.createRawElement("div",{class:"raw-html-embed__content-wrapper"},(function(t){c=t,a({domElement:t,editor:e,state:l,props:u}),c.addEventListener("mousedown",()=>{if(l.isEditable){const t=e.model,n=t.document.selection.getSelectedElement();n!==i&&t.change(e=>e.setSelection(i,"on"))}},!0)})),f={makeEditable(){l=Object.assign({},l,{isEditable:!0}),a({domElement:c,editor:e,state:l,props:u}),n.change(e=>{e.setAttribute("data-cke-ignore-events","true",h)}),c.querySelector("textarea").focus()},save(t){t!==l.getRawHtmlValue()?(e.execute("htmlEmbed",t),e.editing.view.focus()):this.cancel()},cancel(){l=Object.assign({},l,{isEditable:!1}),a({domElement:c,editor:e,state:l,props:u}),e.editing.view.focus(),n.change(e=>{e.removeAttribute("data-cke-ignore-events",h)})}};return l={showPreviews:o.showPreviews,isEditable:!1,getRawHtmlValue:()=>i.getAttribute("value")||""},u={sanitizeHtml:o.sanitizeHtml,textareaPlaceholder:t("Paste raw HTML here..."),onEditClick(){f.makeEditable()},onSaveClick(e){f.save(e)},onCancelClick(){f.cancel()}},s.insert(s.createPositionAt(d,0),h),s.setCustomProperty("rawHtmlApi",f,d),s.setCustomProperty("rawHtml",!0,d),Object(r["f"])(d,s,{widgetLabel:t("HTML snippet"),hasSelectionHandle:!0})}})}}function h(e,t,n){const r=e.locale.t,s=new o["c"](e.locale),a=e.commands.get("htmlEmbed");return s.set({class:`raw-html-embed__${t}-button`,icon:i["k"].pencil,tooltip:!0,tooltipPosition:"rtl"===e.locale.uiLanguageDirection?"e":"w"}),s.render(),"edit"===t?(s.set({icon:i["k"].pencil,label:r("Edit source")}),s.bind("isEnabled").to(a)):"save"===t?(s.set({icon:i["k"].check,label:r("Save changes")}),s.bind("isEnabled").to(a)):s.set({icon:i["k"].cancel,label:r("Cancel")}),s.on("execute",n),s}var f=n("ce26"),p=n.n(f); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class m extends i["i"]{static get pluginName(){return"HtmlEmbedUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("htmlEmbed",n=>{const i=e.commands.get("htmlEmbed"),r=new o["c"](n);return r.set({label:t("Insert HTML"),icon:p.a,tooltip:!0}),r.bind("isEnabled").to(i,"isEnabled"),this.listenTo(r,"execute",()=>{e.execute("htmlEmbed"),e.editing.view.focus();const t=e.editing.view.document.selection.getSelectedElement();t.getCustomProperty("rawHtmlApi").makeEditable()}),r})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class g extends i["i"]{static get requires(){return[d,m,r["a"]]}static get pluginName(){return"HtmlEmbed"}}},"0066":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("6c92"),r=n("98ea"),o=n("9cf5"),s=n("ad6b"),a=n("dfe0"),c=n("f2ea"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class l extends i["a"]{constructor(e,t,n,i,r){super(r),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=n,this.graveyardPosition=i?i.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const e=this.insertionPosition.path.slice();return e.push(0),new o["a"](this.insertionPosition.root,e)}get movedRange(){const e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new s["a"](this.splitPosition,e)}clone(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.splitPosition.root.document.graveyard,t=new o["a"](e,[0]);return new r["a"](this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}_validate(){const e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset{this._config.onUpdate(t)}),Object(a["a"])(this._config.container)&&this._config.container.appendChild(this.wordCountContainer)}destroy(){this._outputView&&(this._outputView.element.remove(),this._outputView.destroy()),super.destroy()}get wordCountContainer(){const e=this.editor,t=e.t,n=e.config.get("wordCount.displayWords"),i=e.config.get("wordCount.displayCharacters"),o=r["v"].bind(this,this),s=[];return this._outputView||(this._outputView=new r["z"],(n||void 0===n)&&(this.bind("_wordsLabel").to(this,"words",e=>{return t("Words: %0",e)}),s.push({tag:"div",children:[{text:[o.to("_wordsLabel")]}],attributes:{class:"ck-word-count__words"}})),(i||void 0===i)&&(this.bind("_charactersLabel").to(this,"characters",e=>{return t("Characters: %0",e)}),s.push({tag:"div",children:[{text:[o.to("_charactersLabel")]}],attributes:{class:"ck-word-count__characters"}})),this._outputView.setTemplate({tag:"div",attributes:{class:["ck","ck-word-count"]},children:s}),this._outputView.render()),this._outputView.element}_getCharacters(){const e=c(this.editor.model.document.getRoot());return e.replace(/\n/g,"").length}_getWords(){const e=c(this.editor.model.document.getRoot()),t=e.match(this._wordsMatchRegExp)||[];return t.length}_refreshStats(){const e=this.words=this._getWords(),t=this.characters=this._getCharacters();this.fire("update",{words:e,characters:t})}}},"014b":function(e,t,n){"use strict";var i=n("e53d"),r=n("07e3"),o=n("8e60"),s=n("63b6"),a=n("9138"),c=n("ebfd").KEY,l=n("294c"),u=n("dbdb"),d=n("45f2"),h=n("62a0"),f=n("5168"),p=n("ccb9"),m=n("6718"),g=n("47ee"),b=n("9003"),v=n("e4ae"),w=n("f772"),y=n("241e"),_=n("36c3"),E=n("1bc3"),x=n("aebd"),k=n("a159"),A=n("0395"),O=n("bf0b"),C=n("9aa9"),T=n("d9f6"),S=n("c3a1"),P=O.f,I=T.f,R=A.f,M=i.Symbol,j=i.JSON,N=j&&j.stringify,D="prototype",L=f("_hidden"),V=f("toPrimitive"),B={}.propertyIsEnumerable,F=u("symbol-registry"),z=u("symbols"),$=u("op-symbols"),U=Object[D],H="function"==typeof M&&!!C.f,q=i.QObject,W=!q||!q[D]||!q[D].findChild,G=o&&l((function(){return 7!=k(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=P(U,t);i&&delete U[t],I(e,t,n),i&&e!==U&&I(U,t,i)}:I,Y=function(e){var t=z[e]=k(M[D]);return t._k=e,t},K=H&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},X=function(e,t,n){return e===U&&X($,t,n),v(e),t=E(t,!0),v(n),r(z,t)?(n.enumerable?(r(e,L)&&e[L][t]&&(e[L][t]=!1),n=k(n,{enumerable:x(0,!1)})):(r(e,L)||I(e,L,x(1,{})),e[L][t]=!0),G(e,t,n)):I(e,t,n)},J=function(e,t){v(e);var n,i=g(t=_(t)),r=0,o=i.length;while(o>r)X(e,n=i[r++],t[n]);return e},Q=function(e,t){return void 0===t?k(e):J(k(e),t)},Z=function(e){var t=B.call(this,e=E(e,!0));return!(this===U&&r(z,e)&&!r($,e))&&(!(t||!r(this,e)||!r(z,e)||r(this,L)&&this[L][e])||t)},ee=function(e,t){if(e=_(e),t=E(t,!0),e!==U||!r(z,t)||r($,t)){var n=P(e,t);return!n||!r(z,t)||r(e,L)&&e[L][t]||(n.enumerable=!0),n}},te=function(e){var t,n=R(_(e)),i=[],o=0;while(n.length>o)r(z,t=n[o++])||t==L||t==c||i.push(t);return i},ne=function(e){var t,n=e===U,i=R(n?$:_(e)),o=[],s=0;while(i.length>s)!r(z,t=i[s++])||n&&!r(U,t)||o.push(z[t]);return o};H||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call($,n),r(this,L)&&r(this[L],e)&&(this[L][e]=!1),G(this,e,x(1,n))};return o&&W&&G(U,e,{configurable:!0,set:t}),Y(e)},a(M[D],"toString",(function(){return this._k})),O.f=ee,T.f=X,n("6abf").f=A.f=te,n("355d").f=Z,C.f=ne,o&&!n("b8e3")&&a(U,"propertyIsEnumerable",Z,!0),p.f=function(e){return Y(f(e))}),s(s.G+s.W+s.F*!H,{Symbol:M});for(var ie="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ie.length>re;)f(ie[re++]);for(var oe=S(f.store),se=0;oe.length>se;)m(oe[se++]);s(s.S+s.F*!H,"Symbol",{for:function(e){return r(F,e+="")?F[e]:F[e]=M(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!H,"Object",{create:Q,defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var ae=l((function(){C.f(1)}));s(s.S+s.F*ae,"Object",{getOwnPropertySymbols:function(e){return C.f(y(e))}}),j&&s(s.S+s.F*(!H||l((function(){var e=M();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))}))),"JSON",{stringify:function(e){var t,n,i=[e],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=t=i[1],(w(t)||void 0!==e)&&!K(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),i[1]=t,N.apply(j,i)}}),M[D][V]||n("35e8")(M[D],V,M[D].valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"025b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=u(i),o=n("9b57"),s=u(o),a=n("41b2"),c=u(a),l=n("c295");function u(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiRating",mixins:[l.SemanticUIVueMixin],binding:{prop:"rating",event:"changed"},props:{icon:String,maxRating:Number,rating:Number},events:{rate:{custom:!0}},data:function(){return{selected:0}},methods:{getCurrentValue:function(e){return Number(e.target.getAttribute("aria-posinset"))},onRate:function(e){var t=this.getCurrentValue(e);this.$emit("rate",e,(0,c.default)({},this.$props,{rating:t}))},onMouseleave:function(){this.selected=0},onMouseover:function(e){this.selected=this.getCurrentValue(e)}},render:function(){var e=this,t=arguments[0],n=this.getElementType();return t(n,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("ui",this.icon,"rating"),attrs:{role:"radiogroup"}}]),[[].concat((0,s.default)(new Array(this.maxRating))).map((function(n,i){var r=i+1,o=e.rating>i,s=e.selected>i;return t("i",{attrs:{"aria-checked":o.toString(),"aria-posinset":r,"aria-setsize":e.maxRating,tabindex:"0",role:"radio"},class:e.classes(o&&"active",s&&"selected","icon"),on:{click:e.onRate,mouseover:e.onMouseover,mouseleave:e.onMouseleave}},[])}))])}}},"02d4":function(e,t,n){"use strict";n.d(t,"D",(function(){return i["a"]})),n.d(t,"J",(function(){return r})),n.d(t,"M",(function(){return o})),n.d(t,"c",(function(){return u["a"]})),n.d(t,"u",(function(){return d["a"]})),n.d(t,"I",(function(){return h})),n.d(t,"K",(function(){return f})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return v})),n.d(t,"g",(function(){return x["a"]})),n.d(t,"s",(function(){return O})),n.d(t,"E",(function(){return C["c"]})),n.d(t,"C",(function(){return C["b"]})),n.d(t,"B",(function(){return C["a"]})),n.d(t,"b",(function(){return I})),n.d(t,"k",(function(){return M})),n.d(t,"i",(function(){return j})),n.d(t,"h",(function(){return y["a"]})),n.d(t,"j",(function(){return N["a"]})),n.d(t,"l",(function(){return D})),n.d(t,"m",(function(){return P})),n.d(t,"n",(function(){return V})),n.d(t,"G",(function(){return B})),n.d(t,"F",(function(){return F})),n.d(t,"o",(function(){return z["a"]})),n.d(t,"p",(function(){return $["a"]})),n.d(t,"r",(function(){return H})),n.d(t,"q",(function(){return Y})),n.d(t,"a",(function(){return K["a"]})),n.d(t,"f",(function(){return X["a"]})),n.d(t,"t",(function(){return ee})),n.d(t,"y",(function(){return te["a"]})),n.d(t,"v",(function(){return s["a"]})),n.d(t,"x",(function(){return ne["a"]})),n.d(t,"w",(function(){return ie["a"]})),n.d(t,"H",(function(){return re})),n.d(t,"L",(function(){return oe["a"]})),n.d(t,"z",(function(){return m["a"]})),n.d(t,"A",(function(){return a["a"]}));var i=n("901d"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function r(e){e.set("_isCssTransitionsDisabled",!1),e.disableCssTransitions=()=>{e._isCssTransitionsDisabled=!0},e.enableCssTransitions=()=>{e._isCssTransitionsDisabled=!1},e.extendTemplate({attributes:{class:[e.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function o({view:e}){e.listenTo(e.element,"submit",(t,n)=>{n.preventDefault(),e.fire("submit")},{useCapture:!0})}var s=n("e805"),a=n("3493"),c=n("4dda"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class l extends a["a"]{constructor(e,t=[]){super(t),this.locale=e}attachToDom(){this._bodyCollectionContainer=new s["a"]({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let e=document.querySelector(".ck-body-wrapper");e||(e=Object(c["a"])(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}var u=n("3707"),d=n("9a87"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ function h(e,t){const n=e.t,i={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return t.map(e=>{const t=i[e.label];return t&&t!=e.label&&(e.label=t),e})}function f(e){return e.map(p).filter(e=>!!e)}function p(e){return"string"===typeof e?{model:e,label:e,hasBorder:!1,view:{name:"span",styles:{color:e}}}:{model:e.color,label:e.label||e.color,hasBorder:void 0!==e.hasBorder&&e.hasBorder,view:{name:"span",styles:{color:`${e.color}`}}}}var m=n("940e"),g=n("8de7"),b=n.n(g); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class v extends u["a"]{constructor(e){super(e);const t=this.bindTemplate;this.set("color"),this.set("hasBorder"),this.icon=b.a,this.extendTemplate({attributes:{style:{backgroundColor:t.to("color")},class:["ck","ck-color-grid__tile",t.if("hasBorder","ck-color-table__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}var w=n("768b"),y=n("0d02"),_=n("91db");n("6cdf"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class E extends m["a"]{constructor(e,t){super(e);const n=t&&t.colorDefinitions||[],i={};t&&t.columns&&(i.gridTemplateColumns=`repeat( ${t.columns}, 1fr)`),this.set("selectedColor"),this.items=this.createCollection(),this.focusTracker=new w["a"],this.keystrokes=new _["a"],this._focusCycler=new y["a"]({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowleft",focusNext:"arrowright"}}),this.items.on("add",(e,t)=>{t.isOn=t.color===this.selectedColor}),n.forEach(e=>{const t=new v;t.set({color:e.color,label:e.label,tooltip:!0,hasBorder:e.options.hasBorder}),t.on("execute",()=>{this.fire("execute",{value:e.color,hasBorder:e.options.hasBorder,label:e.label})}),this.items.add(t)}),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:i}}),this.on("change:selectedColor",(e,t,n)=>{for(const i of this.items)i.isOn=i.color===n})}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",(e,t)=>{this.focusTracker.add(t.element)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var x=n("eebb"),k=n("4ca4"),A=n.n(k);n("74fe"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class O extends m["a"]{constructor(e){super(e);const t=this.bindTemplate;this.set("class"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new _["a"],this.focusTracker=new w["a"],this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",t.to("class"),t.if("isVisible","ck-hidden",e=>!e),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())}),this.keystrokes.set("arrowleft",(e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const e=new u["a"];return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){const e=new u["a"],t=e.bindTemplate;return e.icon=A.a,e.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":t.to("isOn",e=>String(e))}}),e.bind("isEnabled").to(this),e.delegate("execute").to(this,"open"),e}}var C=n("ceea");n("cf28"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class T extends m["a"]{constructor(e){super(e),this.body=new l(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var S=n("ed4a");n("e8dd"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class P extends m["a"]{constructor(e){super(e),this.set("text"),this.set("for"),this.id=`ck-editor__label_${Object(S["a"])()}`;const t=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:t.to("for")},children:[{text:t.to("text")}]})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class I extends T{constructor(e){super(e),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const e=this.t,t=new P;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class R extends m["a"]{constructor(e,t,n){super(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=t}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const e=this._editingView;function t(t){e.change(n=>{const i=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",i),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",i)})}function n(i){e.once("change:isRenderingInProgress",(e,r,o)=>{o?n(i):t(i)})}e.isRenderingInProgress?n(this):t(this)}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class M extends R{constructor(e,t,n){super(e,t,n),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const e=this._editingView,t=this.t;e.change(n=>{const i=e.document.getRoot(this.name);n.setAttribute("aria-label",t("Rich Text Editor, %0",this.name),i)})}}n("508f"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class j extends m["a"]{constructor(e,t={}){super(e);const n=this.bindTemplate;this.set("label",t.label||""),this.set("class",t.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",n.to("class")]},children:this.children});const i=new m["a"](e);i.setTemplate({tag:"span",attributes:{class:["ck","ck-form__header__label"]},children:[{text:n.to("label")}]}),this.children.add(i)}}var N=n("631f");n("3d1d"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class D extends m["a"]{constructor(e){super(e),this.set("value"),this.set("id"),this.set("placeholder"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById"),this.focusTracker=new w["a"],this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",t.if("isFocused","ck-input_focused"),t.if("isEmpty","ck-input-text_empty"),t.if("hasError","ck-error")],id:t.to("id"),placeholder:t.to("placeholder"),readonly:t.to("isReadOnly"),"aria-invalid":t.if("hasError",!0),"aria-describedby":t.to("ariaDescribedById")},on:{input:t.to((...e)=>{this.fire("input",...e),this._updateIsEmpty()}),change:t.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(e,t,n)=>{this._setDomElementValue(n),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}_updateIsEmpty(){this.isEmpty=L(this.element)}_setDomElementValue(e){this.element.value=e||0===e?e:""}}function L(e){return!e.value} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */m["a"];n("d2df"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class V extends m["a"]{constructor(e,t){super(e);const n=`ck-labeled-field-view-${Object(S["a"])()}`,i=`ck-labeled-field-view-status-${Object(S["a"])()}`;this.fieldView=t(this,n,i),this.set("label"),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.set("placeholder"),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(i),this.bind("_statusText").to(this,"errorText",this,"infoText",(e,t)=>e||t);const r=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",r.to("class"),r.if("isEnabled","ck-disabled",e=>!e),r.if("isEmpty","ck-labeled-field-view_empty"),r.if("isFocused","ck-labeled-field-view_focused"),r.if("placeholder","ck-labeled-field-view_placeholder"),r.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:[this.fieldView,this.labelView]},this.statusView]})}_createLabelView(e){const t=new P(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){const t=new m["a"](this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",e=>!e)],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}focus(){this.fieldView.focus()}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function B(e,t,n){const i=new D(e.locale);return i.set({id:t,ariaDescribedById:n}),i.bind("isReadOnly").to(e,"isEnabled",e=>!e),i.bind("hasError").to(e,"errorText",e=>!!e),i.on("input",()=>{e.errorText=null}),e.bind("isEmpty","isFocused","placeholder").to(i),i}function F(e,t,n){const i=Object(C["c"])(e.locale);return i.set({id:t,ariaDescribedById:n}),i.bind("isEnabled").to(e),i}var z=n("0ef9"),$=n("189a"),U=n("c204"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class H extends U["a"]{static get pluginName(){return"Notification"}init(){this.on("show:warning",(e,t)=>{window.alert(t.message)},{priority:"lowest"})}showSuccess(e,t={}){this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}showInfo(e,t={}){this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}showWarning(e,t={}){this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}_showNotification(e){const t=`show:${e.type}`+(e.namespace?`:${e.namespace}`:"");this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}var q=n("644e"),W=n("d4e1"),G=n("61f1"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class Y{constructor(e,t){t&&Object(G["a"])(this,t),e&&this.set(e)}}Object(q["a"])(Y,W["a"]);var K=n("ec02"),X=n("164f"),J=n("a07d"),Q=n("8073");n("da97"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const Z=Object(Q["a"])("px");class ee extends m["a"]{constructor(e){super(e);const t=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new s["a"]({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:t.to("isSticky",e=>e?"block":"none"),height:t.to("isSticky",e=>{return e?Z(this._panelRect.height):null})}}}).render(),this._contentPanel=new s["a"]({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",t.if("isSticky","ck-sticky-panel__content_sticky"),t.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:t.to("isSticky",e=>{return e?Z(this._contentPanelPlaceholder.getBoundingClientRect().width):null}),top:t.to("_hasViewportTopOffset",e=>{return e?Z(this.viewportTopOffset):null}),bottom:t.to("_isStickyToTheLimiter",e=>{return e?Z(this.limiterBottomOffset):null}),marginLeft:t.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(J["a"].window,"scroll",()=>{this._checkIfShouldBeSticky()}),this.listenTo(this,"change:isActive",()=>{this._checkIfShouldBeSticky()})}_checkIfShouldBeSticky(){const e=this._panelRect=this._contentPanel.getBoundingClientRect();let t;this.limiterElement?(t=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&t.top{n.isFocused&&!i.focusTracker.isFocused&&(r&&r(),i.focus(),t())}),i.keystrokes.set("Esc",(t,n)=>{i.focusTracker.isFocused&&(e.focus(),o&&o(),n())})}var oe=n("6502"),se=n("109b");n("c78f"),n("85b1"),n("ecc3"),n("c993"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ Object(Q["a"])("px");se["a"];n("5b1f"),n("33c0"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ Object(Q["a"])("px");u["a"];n("9aba"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */Object(Q["a"])("px");se["a"]; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */},"0305":function(e,t,n){"use strict";var i=n("63bc"),r=function(){try{var e=Object(i["a"])(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t["a"]=r},"031c":function(e,t,n){"use strict"; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ function i(e){return"[object Text]"==Object.prototype.toString.call(e)}n.d(t,"a",(function(){return i}))},"031f":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("a242"),r=n("cb3e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const o="subscript";class s extends i["i"]{static get pluginName(){return"SubscriptEditing"}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:o}),e.model.schema.setAttributeProperties(o,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:o,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),e.commands.add(o,new r["a"](e,o))}}var a=n("02d4"),c=n("fb73"),l=n.n(c); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const u="subscript";class d extends i["i"]{static get pluginName(){return"SubscriptUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add(u,n=>{const i=e.commands.get(u),r=new a["c"](n);return r.set({label:t("Subscript"),icon:l.a,tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{e.execute(u),e.editing.view.focus()}),r})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class h extends i["i"]{static get requires(){return[s,d]}static get pluginName(){return"Subscript"}}},"031f4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiDimmerDimmable",mixins:[o.SemanticUIVueMixin],props:{},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("dimmable")}]),[this.$slots.default])},meta:{parent:"SuiDimmer"}}},"0325":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("c295"),s=n("b9e9");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiTableCell",mixins:[o.SemanticUIVueMixin],props:{negative:Boolean,positive:Boolean,selected:Boolean,textAlign:(0,s.Enum)(["left","right","center"]),warning:Boolean,singleLine:Boolean,collapsing:Boolean,disabled:Boolean,selectable:Boolean,width:s.Enum.Number(),state:s.Enum.State(),verticalAlign:s.Enum.VerticalAlign()},render:function(){var e=arguments[0],t=this.getElementType("td");return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes(this.textAlign&&this.textAlign+" aligned",this.verticalAlign&&this.verticalAlign+" aligned",this.negative&&"negative",this.positive&&"positive",this.warning&&"warning",this.singleLine&&"single line",this.collapsing&&"collapsing",this.disabled&&"disabled",this.selectable&&"selectable",this.width&&this.num(this.width)+" wide",this.state)}]),[this.$slots.default])},meta:{parent:"SuiTable"}}},"0349":function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var i=n("a242"),r=n("cea4"),o=n("553a"),s=n("4fdd"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ function a(e){const t=e.t,n=e.config.get("codeBlock.languages");for(const i of n)"Plain text"===i.label&&(i.label=t("Plain text")),void 0===i.class&&(i.class=`language-${i.language}`);return n}function c(e,t,n){const i={};for(const r of e)"class"===t?i[r[t].split(" ").shift()]=r[n]:i[r[t]]=r[n];return i}function l(e){return e.data.match(/^(\s*)/)[0]}function u(e,t){const n=e.createDocumentFragment(),i=t.split("\n"),r=i.reduce((t,n,r)=>{return t.push(n),r{c?this._applyCodeBlock(e,s,l):this._removeCodeBlock(e,s)})}_getValue(){const e=this.editor.model.document.selection,t=Object(s["k"])(e.getSelectedBlocks()),n=!(!t||!t.is("element","codeBlock"));return!!n&&t.getAttribute("language")}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,n=Object(s["k"])(e.getSelectedBlocks());return!!n&&p(t,n)}_applyCodeBlock(e,t,n){this._lastLanguage=n;const i=this.editor.model.schema,r=t.filter(e=>p(i,e));for(const o of r)e.rename(o,"codeBlock"),e.setAttribute("language",n,o),i.removeDisallowedAttributes([o],e),Array.from(o.getChildren()).filter(e=>!i.checkChild(o,e)).forEach(t=>e.remove(t));r.reverse().forEach((t,n)=>{const i=r[n+1];t.previousSibling===i&&(e.appendElement("softBreak",i),e.merge(e.createPositionBefore(t)))})}_removeCodeBlock(e,t){const n=t.filter(e=>e.is("element","codeBlock"));for(const i of n){const t=e.createRangeOn(i);for(const n of Array.from(t.getItems()).reverse())if(n.is("element","softBreak")&&n.parent.is("element","codeBlock")){const{position:t}=e.split(e.createPositionBefore(n));e.rename(t.nodeAfter,"paragraph"),e.removeAttribute("language",t.nodeAfter),e.remove(n)}e.rename(i,"paragraph"),e.removeAttribute("language",i)}}}function p(e,t){return!t.is("rootElement")&&!e.isLimit(t)&&e.checkChild(t.parent,"codeBlock")}function m(e,t,n){return e.language?e.language:e.usePreviousLanguageChoice&&t?t:n} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class g extends i["a"]{constructor(e){super(e),this._indentSequence=e.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const e=this.editor,t=e.model;t.change(e=>{const n=d(t);for(const t of n)e.insertText(this._indentSequence,t)})}_checkEnabled(){return!!this._indentSequence&&h(this.editor.model.document.selection)}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class b extends i["a"]{constructor(e){super(e),this._indentSequence=e.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const e=this.editor,t=e.model;t.change(e=>{const n=d(t);for(const t of n){const n=v(this.editor.model,t,this._indentSequence);n&&e.remove(n)}})}_checkEnabled(){if(!this._indentSequence)return!1;const e=this.editor.model;return!!h(e.document.selection)&&d(e).some(t=>{return v(e,t,this._indentSequence)})}}function v(e,t,n){const i=w(t);if(!i)return null;const r=l(i),o=r.lastIndexOf(n);if(o+n.length!==r.length)return null;if(-1===o)return null;const{parent:s,startOffset:a}=i;return e.createRange(e.createPositionAt(s,a+o),e.createPositionAt(s,a+o+n.length))}function w(e){let t=e.parent.getChild(e.index);return t&&!t.is("element","softBreak")||(t=e.nodeBefore),!t||t.is("element","softBreak")?null:t} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function y(e,t,n=!1){const i=c(t,"language","class"),r=c(t,"language","label");return(t,o,s)=>{const{writer:a,mapper:c,consumable:l}=s;if(!l.consume(o.item,"insert"))return;const u=o.item.getAttribute("language"),d=c.toViewPosition(e.createPositionBefore(o.item)),h={};n&&(h["data-language"]=r[u],h.spellcheck="false");const f=a.createContainerElement("pre",h),p=a.createContainerElement("code",{class:i[u]||null});a.insert(a.createPositionAt(f,0),p),a.insert(d,f),c.bindElements(o.item,p)}}function _(e){return(t,n,i)=>{if("codeBlock"!==n.item.parent.name)return;const{writer:r,mapper:o,consumable:s}=i;if(!s.consume(n.item,"insert"))return;const a=o.toViewPosition(e.createPositionBefore(n.item));r.insert(a,r.createText("\n"))}}function E(e,t){const n=c(t,"class","language"),i=t[0].language;return(e,t,r)=>{const o=t.viewItem,s=o.parent;if(!s||!s.is("element","pre"))return;if(t.modelCursor.findAncestor("codeBlock"))return;const{consumable:a,writer:c}=r;if(!a.test(o,{name:!0}))return;const l=c.createElement("codeBlock"),u=[...o.getClassNames()];u.length||u.push("");for(const i of u){const e=n[i];if(e){c.setAttribute("language",e,l);break}}l.hasAttribute("language")||c.setAttribute("language",i,l),r.convertChildren(o,l),r.safeInsert(l,t.modelCursor)&&(a.consume(o,{name:!0}),r.updateConversionResult(l,t))}}function x(){return(e,t,{consumable:n,writer:i})=>{let r=t.modelCursor;if(!n.test(t.viewItem))return;if(!r.findAncestor("codeBlock"))return;n.consume(t.viewItem);const o=t.viewItem.data,s=o.split("\n").map(e=>i.createText(e)),a=s[s.length-1];for(const c of s)if(i.insert(c,r),r=r.getShiftedBy(c.offsetSize),c!==a){const e=i.createElement("softBreak");i.insert(e,r),r=i.createPositionAfter(e)}t.modelRange=i.createRange(t.modelCursor,r),t.modelCursor=r}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */const k="paragraph";class A extends i["i"]{static get pluginName(){return"CodeBlockEditing"}static get requires(){return[r["b"]]}constructor(e){super(e),e.config.define("codeBlock",{languages:[{language:"plaintext",label:"Plain text"},{language:"c",label:"C"},{language:"cs",label:"C#"},{language:"cpp",label:"C++"},{language:"css",label:"CSS"},{language:"diff",label:"Diff"},{language:"html",label:"HTML"},{language:"java",label:"Java"},{language:"javascript",label:"JavaScript"},{language:"php",label:"PHP"},{language:"python",label:"Python"},{language:"ruby",label:"Ruby"},{language:"typescript",label:"TypeScript"},{language:"xml",label:"XML"}],indentSequence:"\t"})}init(){const e=this.editor,t=e.model.schema,n=e.model,i=e.editing.view,r=a(e);e.commands.add("codeBlock",new f(e)),e.commands.add("indentCodeBlock",new g(e)),e.commands.add("outdentCodeBlock",new b(e));const s=e=>{return(t,n)=>{const i=this.editor.commands.get(e);i.isEnabled&&(this.editor.execute(e),n())}};e.keystrokes.set("Tab",s("indentCodeBlock")),e.keystrokes.set("Shift+Tab",s("outdentCodeBlock")),t.register("codeBlock",{allowWhere:"$block",allowChildren:"$text",isBlock:!0,allowAttributes:["language"]}),t.addAttributeCheck(e=>{if(e.endsWith("codeBlock $text"))return!1}),e.model.schema.addChildCheck((e,t)=>{if(e.endsWith("codeBlock")&&t.isObject)return!1}),e.editing.downcastDispatcher.on("insert:codeBlock",y(n,r,!0)),e.data.downcastDispatcher.on("insert:codeBlock",y(n,r)),e.data.downcastDispatcher.on("insert:softBreak",_(n),{priority:"high"}),e.data.upcastDispatcher.on("element:code",E(i,r)),e.data.upcastDispatcher.on("text",x()),this.listenTo(e.editing.view.document,"clipboardInput",(t,i)=>{let r=n.createRange(n.document.selection.anchor);if(i.targetRanges&&(r=e.editing.mapper.toModelRange(i.targetRanges[0])),!r.start.parent.is("element","codeBlock"))return;const s=i.dataTransfer.getData("text/plain"),a=new o["k"](e.editing.view.document);i.content=u(a,s)}),this.listenTo(n,"getSelectedContent",(e,[i])=>{const r=i.anchor;!i.isCollapsed&&r.parent.is("element","codeBlock")&&r.hasSameParentAs(i.focus)&&n.change(n=>{const o=e.return;if(o.childCount>1||i.containsEntireContent(r.parent)){const t=n.createElement("codeBlock",r.parent.getAttributes());n.append(o,t);const i=n.createDocumentFragment();n.append(t,i),e.return=i}else{const e=o.getChild(0);t.checkAttribute(e,"code")&&n.setAttribute("code",!0,e)}})})}afterInit(){const e=this.editor,t=e.commands,n=t.get("indent"),i=t.get("outdent");n&&n.registerChildCommand(t.get("indentCodeBlock")),i&&i.registerChildCommand(t.get("outdentCodeBlock")),this.listenTo(e.editing.view.document,"enter",(t,n)=>{const i=e.model.document.selection.getLastPosition().parent;i.is("element","codeBlock")&&(C(e,n.isSoft)||T(e,n.isSoft)||O(e),n.preventDefault(),t.stop())},{context:"pre"})}}function O(e){const t=e.model,n=t.document,i=n.selection.getLastPosition(),r=i.nodeBefore||i.textNode;let o;r&&r.is("$text")&&(o=l(r)),e.model.change(t=>{e.execute("shiftEnter"),o&&t.insertText(o,n.selection.anchor)})}function C(e,t){const n=e.model,i=n.document,r=e.editing.view,o=i.selection.getLastPosition(),s=o.nodeAfter;return!(t||!i.selection.isCollapsed||!o.isAtStart)&&(!!P(s)&&(e.model.change(t=>{e.execute("enter");const n=i.selection.anchor.parent.previousSibling;t.rename(n,k),t.setSelection(n,"in"),e.model.schema.removeDisallowedAttributes([n],t),t.remove(s)}),r.scrollToTheSelection(),!0))}function T(e,t){const n=e.model,i=n.document,r=e.editing.view,o=i.selection.getLastPosition(),s=o.nodeBefore;let a;if(t||!i.selection.isCollapsed||!o.isAtEnd||!s||!s.previousSibling)return!1;if(P(s)&&P(s.previousSibling))a=n.createRange(n.createPositionBefore(s.previousSibling),n.createPositionAfter(s));else if(S(s)&&P(s.previousSibling)&&P(s.previousSibling.previousSibling))a=n.createRange(n.createPositionBefore(s.previousSibling.previousSibling),n.createPositionAfter(s));else{if(!(S(s)&&P(s.previousSibling)&&S(s.previousSibling.previousSibling)&&P(s.previousSibling.previousSibling.previousSibling)))return!1;a=n.createRange(n.createPositionBefore(s.previousSibling.previousSibling.previousSibling),n.createPositionAfter(s))}return e.model.change(t=>{t.remove(a),e.execute("enter");const n=i.selection.anchor.parent;t.rename(n,k),e.model.schema.removeDisallowedAttributes([n],t)}),r.scrollToTheSelection(),!0}function S(e){return e&&e.is("$text")&&!e.data.match(/\S/)}function P(e){return e&&e.is("element","softBreak")}var I=n("02d4"),R=n("30f8"),M=n.n(R);n("5c08"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class j extends i["i"]{static get pluginName(){return"CodeBlockUI"}init(){const e=this.editor,t=e.t,n=e.ui.componentFactory,i=a(e);n.add("codeBlock",n=>{const r=e.commands.get("codeBlock"),o=Object(I["E"])(n,I["s"]),s=o.buttonView;return s.set({label:t("Insert code block"),tooltip:!0,icon:M.a,isToggleable:!0}),s.bind("isOn").to(r,"value",e=>!!e),s.on("execute",()=>{e.execute("codeBlock",{usePreviousLanguageChoice:!0}),e.editing.view.focus()}),o.on("execute",t=>{e.execute("codeBlock",{language:t.source._codeBlockLanguage,forceValue:!0}),e.editing.view.focus()}),o.class="ck-code-block-dropdown",o.bind("isEnabled").to(r),Object(I["B"])(o,this._getLanguageListItemDefinitions(i)),o})}_getLanguageListItemDefinitions(e){const t=this.editor,n=t.commands.get("codeBlock"),i=new s["b"];for(const r of e){const e={type:"button",model:new I["q"]({_codeBlockLanguage:r.language,label:r.label,withText:!0})};e.model.bind("isOn").to(n,"value",t=>{return t===e.model._codeBlockLanguage}),i.add(e)}return i}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class N extends i["i"]{static get requires(){return[A,j]}static get pluginName(){return"CodeBlock"}}},"0383":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("c295"),s=n("b9e9");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiTableRow",mixins:[o.SemanticUIVueMixin],props:{active:{description:"A row can be active or selected by a user.",type:Boolean},disabled:{description:"A row can be disabled.",type:Boolean},error:{description:"A row may call attention to an error or a negative value.",type:Boolean},negative:{description:"A row may let a user know whether a value is bad.",type:Boolean},positive:{description:"A row may let a user know whether a value is good.",type:Boolean},selected:{description:"DEPRECATED A row can be active or selected by a user.",type:Boolean},state:s.Enum.State({description:"DEPRECATED"}),textAlign:(0,s.Enum)(["left","right","center"],{description:"A table row can adjust its text alignment."}),verticalAlign:s.Enum.VerticalAlign({description:"A row may warn a user."}),warning:{description:"A row may warn a user.",type:Boolean}},render:function(){var e=arguments[0],t=this.getElementType("tr");return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes(this.textAlign&&this.textAlign+" aligned",this.verticalAlign&&this.verticalAlign+" aligned",this.disabled&&"disabled",this.error&&"error",this.negative&&"negative",this.positive&&"positive",(this.selected||this.active)&&"active",this.warning&&"warning",this.state)}]),[this.$slots.default])},meta:{parent:"SuiTable"}}},"0395":function(e,t,n){var i=n("36c3"),r=n("6abf").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return r(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):r(i(e))}},"03dd":function(e,t,n){var i=n("eac5"),r=n("57a5"),o=Object.prototype,s=o.hasOwnProperty;function a(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=a},"042a":function(e,t,n){},"0469":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("a242"),r=n("4fdd"),o=n("9a76"),s=n("02d4"),a=n("553a"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class c extends i["e"]{constructor(e,t){super(e),this.view=t,this._toolbarConfig=Object(s["L"])(e.config.get("toolbar")),this._elementReplacer=new r["c"]}get element(){return this.view.element}init(e){const t=this.editor,n=this.view,i=t.editing.view,r=n.editable,o=i.document.getRoot();r.name=o.rootName,n.render();const s=r.element;this.setEditableElement(r.name,s),this.focusTracker.add(s),n.editable.bind("isFocused").to(this.focusTracker),i.attachDomRoot(s),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy(),super.destroy()}_initToolbar(){const e=this.editor,t=this.view,n=e.editing.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:e})=>e),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),Object(s["H"])({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:t.toolbar})}_initPlaceholder(){const e=this.editor,t=e.editing.view,n=t.document.getRoot(),i=e.sourceElement,r=e.config.get("placeholder")||i&&"textarea"===i.tagName.toLowerCase()&&i.getAttribute("placeholder");r&&Object(a["q"])({view:t,element:n,text:r,isDirectHost:!1,keepOnFocus:!0})}}n("6134"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class l extends s["b"]{constructor(e,t,n={}){super(e),this.stickyPanel=new s["t"](e),this.toolbar=new s["x"](e,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new s["k"](e,t)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class u extends i["d"]{constructor(e,t){super(t),Object(o["a"])(e)&&(this.sourceElement=e),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),r=new l(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new c(this,r),Object(i["j"])(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(e,t={}){return new Promise(n=>{const i=new this(e,t);n(i.initPlugins().then(()=>i.ui.init(Object(o["a"])(e)?e:null)).then(()=>{if(!Object(o["a"])(e)&&t.initialData)throw new r["a"]("editor-create-initial-data",null);const n=void 0!==t.initialData?t.initialData:d(e);return i.data.init(n)}).then(()=>i.fire("ready")).then(()=>i))})}}function d(e){return Object(o["a"])(e)?Object(r["m"])(e):e}Object(r["s"])(u,i["c"]),Object(r["s"])(u,i["f"])},"0490":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiCommentActions",mixins:[o.SemanticUIVueMixin],render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("actions")}]),[this.$slots.default])},meta:{parent:"SuiComment"}}},"04c6":function(e,t){(function(){e.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.item=function(e){return this.nodes[e]||null},e}()}).call(this)},"04e1":function(e,t,n){"use strict";var i=n("7afa");function r(e){this.message=e}r.prototype=new Error,r.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!==typeof e)throw new r("Invalid token specified");t=t||{};var n=!0===t.header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(o){throw new r("Invalid token specified: "+o.message)}},e.exports.InvalidTokenError=r},"0520":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("a242"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r extends i["i"]{static get pluginName(){return"SpecialCharactersCurrency"}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Currency",[{character:"$",title:t("Dollar sign")},{character:"€",title:t("Euro sign")},{character:"¥",title:t("Yen sign")},{character:"£",title:t("Pound sign")},{character:"¢",title:t("Cent sign")},{character:"₠",title:t("Euro-currency sign")},{character:"₡",title:t("Colon sign")},{character:"₢",title:t("Cruzeiro sign")},{character:"₣",title:t("French franc sign")},{character:"₤",title:t("Lira sign")},{character:"¤",title:t("Currency sign")},{character:"₿",title:t("Bitcoin sign")},{character:"₥",title:t("Mill sign")},{character:"₦",title:t("Naira sign")},{character:"₧",title:t("Peseta sign")},{character:"₨",title:t("Rupee sign")},{character:"₩",title:t("Won sign")},{character:"₪",title:t("New sheqel sign")},{character:"₫",title:t("Dong sign")},{character:"₭",title:t("Kip sign")},{character:"₮",title:t("Tugrik sign")},{character:"₯",title:t("Drachma sign")},{character:"₰",title:t("German penny sign")},{character:"₱",title:t("Peso sign")},{character:"₲",title:t("Guarani sign")},{character:"₳",title:t("Austral sign")},{character:"₴",title:t("Hryvnia sign")},{character:"₵",title:t("Cedi sign")},{character:"₶",title:t("Livre tournois sign")},{character:"₷",title:t("Spesmilo sign")},{character:"₸",title:t("Tenge sign")},{character:"₹",title:t("Indian rupee sign")},{character:"₺",title:t("Turkish lira sign")},{character:"₻",title:t("Nordic mark sign")},{character:"₼",title:t("Manat sign")},{character:"₽",title:t("Ruble sign")}])}}},"0524":function(e,t){e.exports=''},"05aa":function(e,t){e.exports=''},"05e6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("c295"),s=n("b9e9");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiStatisticsGroup",mixins:[o.SemanticUIVueMixin],props:{horizontal:Boolean,columns:s.Enum.Number()},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes(this.num(this.columns),"ui","statistics",this.horizontal&&"horizontal")}]),[this.$slots.default])},meta:{parent:"SuiStatistic"}}},"065e":function(e,t){(function(){e.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},"0743":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c295");t.default={name:"SuiItemMeta",mixins:[i.SemanticUIVueMixin],description:"An item can contain content metadata",props:{},render:function(){var e=arguments[0],t=this.getElementType();return e(t,{class:this.classes("meta")},[this.$slots.default])},meta:{parent:"SuiItem"}}},"0798":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("a242"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r extends i["i"]{static get pluginName(){return"SpecialCharactersMathematical"}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Mathematical",[{character:"<",title:t("Less-than sign")},{character:">",title:t("Greater-than sign")},{character:"≤",title:t("Less-than or equal to")},{character:"≥",title:t("Greater-than or equal to")},{character:"–",title:t("En dash")},{character:"—",title:t("Em dash")},{character:"¯",title:t("Macron")},{character:"‾",title:t("Overline")},{character:"°",title:t("Degree sign")},{character:"−",title:t("Minus sign")},{character:"±",title:t("Plus-minus sign")},{character:"÷",title:t("Division sign")},{character:"⁄",title:t("Fraction slash")},{character:"×",title:t("Multiplication sign")},{character:"ƒ",title:t("Latin small letter f with hook")},{character:"∫",title:t("Integral")},{character:"∑",title:t("N-ary summation")},{character:"∞",title:t("Infinity")},{character:"√",title:t("Square root")},{character:"∼",title:t("Tilde operator")},{character:"≅",title:t("Approximately equal to")},{character:"≈",title:t("Almost equal to")},{character:"≠",title:t("Not equal to")},{character:"≡",title:t("Identical to")},{character:"∈",title:t("Element of")},{character:"∉",title:t("Not an element of")},{character:"∋",title:t("Contains as member")},{character:"∏",title:t("N-ary product")},{character:"∧",title:t("Logical and")},{character:"∨",title:t("Logical or")},{character:"¬",title:t("Not sign")},{character:"∩",title:t("Intersection")},{character:"∪",title:t("Union")},{character:"∂",title:t("Partial differential")},{character:"∀",title:t("For all")},{character:"∃",title:t("There exists")},{character:"∅",title:t("Empty set")},{character:"∇",title:t("Nabla")},{character:"∗",title:t("Asterisk operator")},{character:"∝",title:t("Proportional to")},{character:"∠",title:t("Angle")},{character:"¼",title:t("Vulgar fraction one quarter")},{character:"½",title:t("Vulgar fraction one half")},{character:"¾",title:t("Vulgar fraction three quarters")}])}}},"07a0":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("9cf5"),r=n("ad6b"),o=n("d65e"),s=n("3b42"),a=n("b199"),c=n("da0d"),l=n("644e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class u{constructor(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(e,t)=>{if(t.viewPosition)return;const n=this._modelToViewMapping.get(t.modelPosition.parent);t.viewPosition=this.findPositionIn(n,t.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(e,t)=>{if(t.modelPosition)return;const n=this.findMappedViewAncestor(t.viewPosition),r=this._viewToModelMapping.get(n),o=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,n);t.modelPosition=i["a"]._createAt(r,o)},{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e){const t=this.toModelElement(e);if(this._viewToModelMapping.delete(e),this._elementToMarkerNames.has(e))for(const n of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(n);this._modelToViewMapping.get(t)==e&&this._modelToViewMapping.delete(t)}unbindModelElement(e){const t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}bindElementToMarker(e,t){const n=this._markerNameToElements.get(t)||new Set;n.add(e);const i=this._elementToMarkerNames.get(e)||new Set;i.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,i)}unbindElementFromMarkerName(e,t){const n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));const i=this._elementToMarkerNames.get(e);i&&(i.delete(t),0==i.size&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){const e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}toModelElement(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new r["a"](this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new s["a"](this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){const t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}toViewPosition(e,t={isPhantom:!1}){const n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(e){const t=this._markerNameToElements.get(e);if(!t)return null;const n=new Set;for(const i of t)if(i.is("attributeElement"))for(const e of i.getElementsWithSameId())n.add(e);else n.add(i);return n}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;while(!this._viewToModelMapping.has(t))t=t.parent;return t}_toModelOffset(e,t,n){if(n!=e){const i=this._toModelOffset(e.parent,e.index,n),r=this._toModelOffset(e,t,e);return i+r}if(e.is("$text"))return t;let i=0;for(let r=0;r{if(e.isDefault)for(const t of e.modelElements)this._defaultStyles[t]=e.name;return[e.name,e]}))}refresh(){const e=this.editor,t=e.plugins.get("ImageUtils"),n=t.getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!n,this.isEnabled?n.hasAttribute("imageStyle")?this.value=n.getAttribute("imageStyle"):this.value=this._defaultStyles[n.name]:this.value=!1}execute(e={}){const t=this.editor,n=t.model,i=t.plugins.get("ImageUtils");n.change(t=>{const r=e.value;let o=i.getClosestSelectedImageElement(n.document.selection);r&&this.shouldConvertImageType(r,o)&&(this.editor.execute(i.isBlockImage(o)?"imageTypeInline":"imageTypeBlock"),o=i.getClosestSelectedImageElement(n.document.selection)),!r||this._styles.get(r).isDefault?t.removeAttribute("imageStyle",o):t.setAttribute("imageStyle",r,o)})}shouldConvertImageType(e,t){const n=this._styles.get(e).modelElements;return!n.includes(t.name)}}var o=n("6e4c"),s=n("4fdd"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const{objectFullWidth:a,objectInline:c,objectLeft:l,objectRight:u,objectCenter:d,objectBlockLeft:h,objectBlockRight:f}=i["k"],p={inline:{name:"inline",title:"In line",icon:c,modelElements:["imageInline"],isDefault:!0},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:l,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"},alignBlockLeft:{name:"alignBlockLeft",title:"Left aligned image",icon:h,modelElements:["imageBlock"],className:"image-style-block-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:d,modelElements:["imageBlock"],className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:u,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"},alignBlockRight:{name:"alignBlockRight",title:"Right aligned image",icon:f,modelElements:["imageBlock"],className:"image-style-block-align-right"},block:{name:"block",title:"Centered image",icon:d,modelElements:["imageBlock"],isDefault:!0},side:{name:"side",title:"Side image",icon:u,modelElements:["imageBlock"],className:"image-style-side"}},m={full:a,left:h,right:f,center:d,inlineLeft:l,inlineRight:u,inline:c},g=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function b(e){const t=e.configuredStyles.options||[],n=t.map(e=>y(e)).filter(t=>_(t,e));return n}function v(e,t){return e&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:e?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}}function w(e){return e.has("ImageBlockEditing")&&e.has("ImageInlineEditing")?[...g]:[]}function y(e){return e="string"===typeof e?p[e]?{...p[e]}:{name:e}:E(p[e.name],e),"string"===typeof e.icon&&(e.icon=m[e.icon]||e.icon),e}function _(e,{isBlockPluginLoaded:t,isInlinePluginLoaded:n}){const{modelElements:i,name:r}=e;if(!(i&&i.length&&r))return x({style:e}),!1;{const r=[t?"imageBlock":null,n?"imageInline":null];if(!i.some(e=>r.includes(e)))return Object(s["r"])("image-style-missing-dependency",{style:e,missingPlugins:i.map(e=>"imageBlock"===e?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}function E(e,t){const n={...t};for(const i in e)Object.prototype.hasOwnProperty.call(t,i)||(n[i]=e[i]);return n}function x(e){Object(s["r"])("image-style-configuration-definition-invalid",e)}var k={normalizeStyles:b,getDefaultStylesConfiguration:v,getDefaultDropdownDefinitions:w,warnInvalidStyle:x,DEFAULT_OPTIONS:p,DEFAULT_ICONS:m,DEFAULT_DROPDOWN_DEFINITIONS:g}; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function A(e){return(t,n,i)=>{if(!i.consumable.consume(n.item,t.name))return;const r=C(n.attributeNewValue,e),o=C(n.attributeOldValue,e),s=i.mapper.toViewElement(n.item),a=i.writer;o&&a.removeClass(o.className,s),r&&a.addClass(r.className,s)}}function O(e){const t={imageInline:e.filter(e=>!e.isDefault&&e.modelElements.includes("imageInline")),imageBlock:e.filter(e=>!e.isDefault&&e.modelElements.includes("imageBlock"))};return(e,n,i)=>{if(!n.modelRange)return;const r=n.viewItem,o=Object(s["k"])(n.modelRange.getItems());if(o&&i.schema.checkAttribute(o,"imageStyle"))for(const s of t[o.name])i.consumable.consume(r,{classes:s.className})&&i.writer.setAttribute("imageStyle",s.name,o)}}function C(e,t){for(const n of t)if(n.name===e)return n} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class T extends i["i"]{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[o["a"]]}init(){const{normalizeStyles:e,getDefaultStylesConfiguration:t}=k,n=this.editor,i=n.plugins.has("ImageBlockEditing"),o=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",t(i,o)),this.normalizedStyles=e({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:i,isInlinePluginLoaded:o}),this._setupConversion(i,o),this._setupPostFixer(),n.commands.add("imageStyle",new r(n,this.normalizedStyles))}_setupConversion(e,t){const n=this.editor,i=n.model.schema,r=A(this.normalizedStyles),o=O(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",r),n.data.downcastDispatcher.on("attribute:imageStyle",r),e&&(i.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",o,{priority:"low"})),t&&(i.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",o,{priority:"low"}))}_setupPostFixer(){const e=this.editor,t=e.model.document,n=e.plugins.get(o["a"]),i=new Map(this.normalizedStyles.map(e=>[e.name,e]));t.registerPostFixer(e=>{let r=!1;for(const o of t.differ.getChanges())if("insert"==o.type||"attribute"==o.type&&"imageStyle"==o.attributeKey){let t="insert"==o.type?o.position.nodeAfter:o.range.start.nodeAfter;if(t&&t.is("element","paragraph")&&t.childCount>0&&(t=t.getChild(0)),!n.isImage(t))continue;const s=t.getAttribute("imageStyle");if(!s)continue;const a=i.get(s);a&&a.modelElements.includes(t.name)||(e.removeAttribute("imageStyle",t),r=!0)}return r})}}var S=n("02d4"),P=n("2332"),I=n("f976");n("7201"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class R extends i["i"]{static get requires(){return[T]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const e=this.editor.t;return{"Wrap text":e("Wrap text"),"Break text":e("Break text"),"In line":e("In line"),"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}init(){const e=this.editor.plugins,t=this.editor.config.get("image.toolbar")||[],n=M(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const r of n)this._createButton(r);const i=M([...t.filter(P["a"]),...k.getDefaultDropdownDefinitions(e)],this.localizedDefaultStylesTitles);for(const r of i)this._createDropdown(r,n)}_createDropdown(e,t){const n=this.editor.ui.componentFactory;n.add(e.name,i=>{let r;const{defaultItem:o,items:s,title:a}=e,c=s.filter(e=>t.find(({name:t})=>j(t)===e)).map(e=>{const t=n.create(e);return e===o&&(r=t),t});s.length!==c.length&&k.warnInvalidStyle({dropdown:e});const l=Object(S["E"])(i,S["s"]),u=l.buttonView;return Object(S["C"])(l,c),u.set({label:N(a,r.label),class:null,tooltip:!0}),u.bind("icon").toMany(c,"isOn",(...e)=>{const t=e.findIndex(I["a"]);return t<0?r.icon:c[t].icon}),u.bind("label").toMany(c,"isOn",(...e)=>{const t=e.findIndex(I["a"]);return N(a,t<0?r.label:c[t].label)}),u.bind("isOn").toMany(c,"isOn",(...e)=>e.some(I["a"])),u.bind("class").toMany(c,"isOn",(...e)=>e.some(I["a"])?"ck-splitbutton_flatten":null),u.on("execute",()=>{c.some(({isOn:e})=>e)?l.isOpen=!l.isOpen:r.fire("execute")}),l.bind("isEnabled").toMany(c,"isEnabled",(...e)=>e.some(I["a"])),l})}_createButton(e){const t=e.name;this.editor.ui.componentFactory.add(j(t),n=>{const i=this.editor.commands.get("imageStyle"),r=new S["c"](n);return r.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value",e=>e===t),r.on("execute",this._executeCommand.bind(this,t)),r})}_executeCommand(e){this.editor.execute("imageStyle",{value:e}),this.editor.editing.view.focus()}}function M(e,t){for(const n of e)t[n.title]&&(n.title=t[n.title]);return e}function j(e){return`imageStyle:${e}`}function N(e,t){return(e?e+": ":"")+t} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class D extends i["i"]{static get requires(){return[T,R]}static get pluginName(){return"ImageStyle"}}},"0c6f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiRevealContent",mixins:[o.SemanticUIVueMixin],props:{visible:Boolean,hidden:Boolean},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("ui",this.hidden&&"hidden",this.visible&&"visible","content")}]),[this.$slots.default])},meta:{parent:"SuiReveal"}}},"0ce1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c295");t.default={name:"SuiItemExtra",mixins:[i.SemanticUIVueMixin],description:"An item can contain extra content meant to be formatted separately from the main content",props:{},render:function(){var e=arguments[0],t=this.getElementType();return e(t,{class:this.classes("extra")},[this.$slots.default])},meta:{parent:"SuiItem"}}},"0d02":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("a07d"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r{constructor(e){if(Object.assign(this,e),e.actions&&e.keystrokeHandler)for(const t in e.actions){let n=e.actions[t];"string"==typeof n&&(n=[n]);for(const i of n)e.keystrokeHandler.set(i,(e,n)=>{this[t](),n()})}}get first(){return this.focusables.find(o)||null}get last(){return this.focusables.filter(o).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((t,n)=>{const i=t.element===this.focusTracker.focusedElement;return i&&(e=n),i}),e)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(e){e&&e.focus()}_getFocusableItem(e){const t=this.current,n=this.focusables.length;if(!n)return null;if(null===t)return this[1===e?"first":"last"];let i=(t+n+e)%n;do{const t=this.focusables.get(i);if(o(t))return t;i=(i+n+e)%n}while(i!==t);return null}}function o(e){return!(!e.focus||"none"==i["a"].window.getComputedStyle(e.element).display)}},"0d24":function(e,t,n){(function(e){var i=n("2b3e"),r=n("07c7"),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===o,c=a?i.Buffer:void 0,l=c?c.isBuffer:void 0,u=l||r;e.exports=u}).call(this,n("62e4")(e))},"0db1":function(e,t){e.exports=''},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e17":function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var i=n("a242"),r=n("5595"),o=n("4fdd"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ function s(e,t){return e=>{e.on("attribute:url:media",n)};function n(n,i,r){if(!r.consumable.consume(i.item,n.name))return;const o=i.attributeNewValue,s=r.writer,a=r.mapper.toViewElement(i.item),c=[...a.getChildren()].find(e=>e.getCustomProperty("media-content"));s.remove(c);const l=e.getMediaViewElement(s,o,t);s.insert(s.createPositionAt(a,0),l)}}var a=n("7fe8"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class c extends i["a"]{refresh(){const e=this.editor.model,t=e.document.selection,n=Object(a["b"])(t);this.value=n?n.getAttribute("url"):null,this.isEnabled=u(t)||l(t,e)}execute(e){const t=this.editor.model,n=t.document.selection,i=Object(a["b"])(n);i?t.change(t=>{t.setAttribute("url",e,i)}):Object(a["d"])(t,e,Object(r["d"])(n,t))}}function l(e,t){const n=Object(r["d"])(e,t);let i=n.start.parent;return i.isEmpty&&!t.schema.isLimit(i)&&(i=i.parent),t.schema.checkChild(i,"media")}function u(e){const t=e.getSelectedElement();return!!t&&"media"===t.name}var d=n("02d4"),h=n("1bd3"),f=n.n(h); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const p="0 0 64 42";class m{constructor(e,t){const n=t.providers,i=t.extraProviders||[],r=new Set(t.removeProviders),s=n.concat(i).filter(e=>{const t=e.name;return t?!r.has(t):(Object(o["r"])("media-embed-no-provider-name",{provider:e}),!1)});this.locale=e,this.providerDefinitions=s}hasMedia(e){return!!this._getMedia(e)}getMediaViewElement(e,t,n){return this._getMedia(t).getViewElement(e,n)}_getMedia(e){if(!e)return new g(this.locale);e=e.trim();for(const t of this.providerDefinitions){const n=t.html,i=Object(o["v"])(t.url);for(const t of i){const i=this._getUrlMatches(e,t);if(i)return new g(this.locale,e,i,n)}}return null}_getUrlMatches(e,t){let n=e.match(t);if(n)return n;let i=e.replace(/^https?:\/\//,"");return n=i.match(t),n||(i=i.replace(/^www\./,""),n=i.match(t),n||null)}}class g{constructor(e,t,n,i){this.url=this._getValidUrl(t),this._t=e.t,this._match=n,this._previewRenderer=i}getViewElement(e,t){const n={};let i;if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),t.renderForEditingView&&(n.class="ck-media__wrapper");const r=this._getPreviewHtml(t);i=e.createRawElement("div",n,(e,t)=>{t.setContentOf(e,r)})}else this.url&&(n.url=this.url),i=e.createEmptyElement(t.elementName,n);return e.setCustomProperty("media-content",!0,i),i}_getPreviewHtml(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const e=new d["y"],t=new d["j"];e.text=this._t("Open media in new tab"),t.content=f.a,t.viewBox=p;const n=new d["v"]({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},e]}]}).render();return n.outerHTML}_getValidUrl(e){return e?e.match(/^https?/)?e:"https://"+e:null}}n("d1c4"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class b extends i["i"]{static get pluginName(){return"MediaEmbedEditing"}constructor(e){super(e),e.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:e=>{const t=e[1];return'
'+`
'}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>{const t=e[1];return'
'+`
'}},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:e=>{const t=e[1];return'
'+`
'}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>{const t=e[1];return'
'+`
'}},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new m(e.locale,e.config.get("mediaEmbed"))}init(){const e=this.editor,t=e.model.schema,n=e.t,i=e.conversion,r=e.config.get("mediaEmbed.previewsInData"),l=e.config.get("mediaEmbed.elementName"),u=this.registry;e.commands.add("mediaEmbed",new c(e)),t.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),i.for("dataDowncast").elementToElement({model:"media",view:(e,{writer:t})=>{const n=e.getAttribute("url");return Object(a["a"])(t,u,n,{elementName:l,renderMediaPreview:n&&r})}}),i.for("dataDowncast").add(s(u,{elementName:l,renderMediaPreview:r})),i.for("editingDowncast").elementToElement({model:"media",view:(e,{writer:t})=>{const i=e.getAttribute("url"),r=Object(a["a"])(t,u,i,{elementName:l,renderForEditingView:!0});return Object(a["e"])(r,t,n("media widget"))}}),i.for("editingDowncast").add(s(u,{elementName:l,renderForEditingView:!0})),i.for("upcast").elementToElement({view:e=>["oembed",l].includes(e.name)&&e.getAttribute("url")?{name:!0}:null,model:(e,{writer:t})=>{const n=e.getAttribute("url");if(u.hasMedia(n))return t.createElement("media",{url:n})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(e,{writer:t})=>{const n=e.getAttribute("data-oembed-url");if(u.hasMedia(n))return t.createElement("media",{url:n})}}).add(e=>{function t(e,t,n){if(!n.consumable.consume(t.viewItem,{name:!0,classes:"media"}))return;const{modelRange:i,modelCursor:r}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=i,t.modelCursor=r;const s=Object(o["k"])(i.getItems());s||n.consumable.revert(t.viewItem,{name:!0,classes:"media"})}e.on("element:figure",t)})}}var v=n("553a"),w=n("489d"),y=n("850e"),_=n("1788"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const E=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class x extends i["i"]{static get requires(){return[w["a"],y["a"],_["a"]]}static get pluginName(){return"AutoMediaEmbed"}constructor(e){super(e),this._timeoutId=null,this._positionToInsert=null}init(){const e=this.editor,t=e.model.document;this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",()=>{const e=t.selection.getFirstRange(),n=v["e"].fromPosition(e.start);n.stickiness="toPrevious";const i=v["e"].fromPosition(e.end);i.stickiness="toNext",t.once("change:data",()=>{this._embedMediaBetweenPositions(n,i),n.detach(),i.detach()},{priority:"high"})}),e.commands.get("undo").on("execute",()=>{this._timeoutId&&(o["p"].window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(e,t){const n=this.editor,i=n.plugins.get(b).registry,r=new v["f"](e,t),s=r.getWalker({ignoreElementEnd:!0});let c="";for(const o of s)o.item.is("$textProxy")&&(c+=o.item.data);if(c=c.trim(),!c.match(E))return void r.detach();if(!i.hasMedia(c))return void r.detach();const l=n.commands.get("mediaEmbed");l.isEnabled?(this._positionToInsert=v["e"].fromPosition(e),this._timeoutId=o["p"].window.setTimeout(()=>{n.model.change(e=>{let t;this._timeoutId=null,e.remove(r),r.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(t=this._positionToInsert),Object(a["d"])(n.model,c,t),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get("Delete").requestUndoOnBackspace()},100)):r.detach()}}n("7946"),n("19d2"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class k extends d["z"]{constructor(e,t){super(t);const n=t.t;this.focusTracker=new o["e"],this.keystrokes=new o["f"],this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),i["k"].check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",e=>!!e),this.cancelButtonView=this._createButton(n("Cancel"),i["k"].cancel,"ck-button-cancel","cancel"),this._focusables=new d["A"],this._focusCycler=new d["h"]({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=e,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]}),Object(d["J"])(this)}render(){super.render(),Object(d["M"])({view:this});const e=[this.urlInputView,this.saveButtonView,this.cancelButtonView];e.forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t),this.listenTo(this.urlInputView.element,"selectstart",(e,t)=>{t.stopPropagation()},{priority:"high"})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(e){this.urlInputView.fieldView.element.value=e.trim()}isValid(){this.resetFormStatus();for(const e of this._validators){const t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const e=this.locale.t,t=new d["n"](this.locale,d["G"]),n=t.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),t.label=e("Media URL"),t.infoText=this._urlInputViewInfoDefault,n.on("input",()=>{t.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()}),t}_createButton(e,t,n,i){const r=new d["c"](this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}}var A=n("2d3a"),O=n.n(A); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class C extends i["i"]{static get requires(){return[b]}static get pluginName(){return"MediaEmbedUI"}init(){const e=this.editor,t=e.commands.get("mediaEmbed"),n=e.plugins.get(b).registry;e.ui.componentFactory.add("mediaEmbed",i=>{const r=Object(d["E"])(i),o=new k(T(e.t,n),e.locale);return this._setUpDropdown(r,o,t,e),this._setUpForm(r,o,t),r})}_setUpDropdown(e,t,n){const i=this.editor,r=i.t,o=e.buttonView;function s(){i.editing.view.focus(),e.isOpen=!1}e.bind("isEnabled").to(n),e.panelView.children.add(t),o.set({label:r("Insert media"),icon:O.a,tooltip:!0}),o.on("open",()=>{t.disableCssTransitions(),t.url=n.value||"",t.urlInputView.fieldView.select(),t.focus(),t.enableCssTransitions()},{priority:"low"}),e.on("submit",()=>{t.isValid()&&(i.execute("mediaEmbed",t.url),s())}),e.on("change:isOpen",()=>t.resetFormStatus()),e.on("cancel",()=>s())}_setUpForm(e,t,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",e=>!e)}}function T(e,t){return[t=>{if(!t.url.length)return e("The URL must not be empty.")},n=>{if(!t.hasMedia(n.url))return e("This media URL is not supported.")}]}n("f9d3"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class S extends i["i"]{static get requires(){return[b,C,x,r["a"]]}static get pluginName(){return"MediaEmbed"}}},"0e1e":function(e,t,n){(function(){var t,i,r=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=n("92e7"),t=n("065e"),e.exports=function(e){function n(e){n.__super__.constructor.call(this,e),this.type=t.Dummy}return r(n,e),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return""},n}(i)}).call(this)},"0e59":function(e,t,n){"use strict";var i=n("63bc"),r=Object(i["a"])(Object,"create"),o=r;function s(){this.__data__=o?o(null):{},this.size=0}var a=s;function c(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var l=c,u="__lodash_hash_undefined__",d=Object.prototype,h=d.hasOwnProperty;function f(e){var t=this.__data__;if(o){var n=t[e];return n===u?void 0:n}return h.call(t,e)?t[e]:void 0}var p=f,m=Object.prototype,g=m.hasOwnProperty;function b(e){var t=this.__data__;return o?void 0!==t[e]:g.call(t,e)}var v=b,w="__lodash_hash_undefined__";function y(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?w:t,this}var _=y;function E(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t{const n=t[0];n.isDocumentOperation&&c.call(this,n)},{priority:"low"})}function c(e){const t=this.getTransformedByOperation(e),n=i["a"]._createFromRanges(t),r=!n.isEqual(this),o=l(this,e);let s=null;if(r){"$graveyard"==n.root.rootName&&(s="remove"==e.type?e.sourcePosition:e.deletionPosition);const t=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",t,{deletionPosition:s})}else o&&this.fire("change:content",this.toRange(),{deletionPosition:s})}function l(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}Object(o["a"])(s,r["c"])},"0fc9":function(e,t,n){var i=n("3a38"),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},1e3:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("940e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r extends i["a"]{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}},"100e":function(e,t,n){var i=n("cd9d"),r=n("2286"),o=n("c1c9");function s(e,t){return o(r(e,t,i),e+"")}e.exports=s},1033:function(e,t){e.exports=''},1098:function(e,t,n){"use strict";t.__esModule=!0;var i=n("17ed"),r=c(i),o=n("f893"),s=c(o),a="function"===typeof s.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};function c(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof s.default&&"symbol"===a(r.default)?function(e){return"undefined"===typeof e?"undefined":a(e)}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"===typeof e?"undefined":a(e)}},"109b":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("d4e1"),r=n("644e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class o{constructor(e){this.editor=e,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",s,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",s),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function s(e){e.return=!1,e.stop()}Object(r["a"])(o,i["a"])},"110c":function(e,t){e.exports=''},1147:function(e,t,n){"use strict";function i(e){return null!=e&&"object"==typeof e}t["a"]=i},1159:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("a4b7"),r=n("644e"),o=n("d4e1"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class s extends i["a"]{constructor(e,t,n,i){super(e,t,n,i),this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(e),this.bind("isFocused").to(e,"isFocused",t=>t&&e.selection.editableElement==this),this.listenTo(e.selection,"change",()=>{this.isFocused=e.isFocused&&e.selection.editableElement==this})}is(e,t=null){return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}destroy(){this.stopListening()}}Object(r["a"])(s,o["a"])},"11a5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiStepTitle",mixins:[o.SemanticUIVueMixin],render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:"title"}]),[this.$slots.default])},meta:{parent:"SuiStep"}}},"11d2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("c295"),s=n("b9e9");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiSidebar",mixins:[o.SemanticUIVueMixin],props:{animation:(0,s.Enum)(["overlay","push","scale down","uncover","slide out","slide along"]),direction:(0,s.Enum)(["top","right","bottom","left"],{default:"left"}),visible:Boolean,width:(0,s.Enum)(["very thin","thin","wide","very wide"])},data:function(){return{animating:!1}},watch:{visible:function(){var e=this;this.animating=!0,setTimeout((function(){e.animating=!1}),500)}},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:"ui sidebar vertical menu "+this.direction+" "+(this.animation||"")+(this.visible?" visible":"")+(this.animating?" animating":"")}]),[this.$slots.default])}}},"126d":function(e,t,n){var i=n("6da8"),r=n("aaec"),o=n("d094");function s(e){return r(e)?o(e):i(e)}e.exports=s},1290:function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},"12a1":function(e,t,n){"use strict";var i=n("a12c"),r=n("0e59"),o="__lodash_hash_undefined__";function s(e){return this.__data__.set(e,o),this}var a=s;function c(e){return this.__data__.has(e)}var l=c;function u(e){var t=-1,n=null==e?0:e.length;this.__data__=new r["a"];while(++ta))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var h=-1,p=!0,v=n&b?new d:void 0;o.set(e,t),o.set(t,e);while(++h0)n.appendChild(r[0]);return n}}},1368:function(e,t,n){var i=n("da03"),r=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!r&&r in e}e.exports=o},"136c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c295");t.default={name:"SuiItem",mixins:[i.SemanticUIVueMixin],description:"An item view presents large collections of site content for display",props:{href:{type:String,description:'Specifies a linked document, resource, or location. Only useful if the ItemGroup contains the "link" class.'}},render:function(){var e=arguments[0],t=this.href?"a":this.getElementType();return e(t,{attrs:{href:this.href},class:this.classes("item")},[this.$slots.default])}}},1414:function(e,t){e.exports=''},"146c":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("2363"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(e,t){t=o(t),e instanceof i["a"]&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}consume(e,t){return t=o(t),e instanceof i["a"]&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}test(e,t){t=o(t),e instanceof i["a"]&&(e=this._getSymbolForTextProxy(e));const n=this._consumable.get(e);if(void 0===n)return null;const r=n.get(t);return void 0===r?null:r}revert(e,t){t=o(t),e instanceof i["a"]&&(e=this._getSymbolForTextProxy(e));const n=this.test(e,t);return!1===n?(this._consumable.get(e).set(t,!0),!0):!0!==n&&null}_getSymbolForTextProxy(e){let t=null;const n=this._textProxyRegistry.get(e.startOffset);if(n){const i=n.get(e.endOffset);i&&(t=i.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e.startOffset,e.endOffset,e.parent)),t}_addSymbolForTextProxy(e,t,n){const i=Symbol("textProxySymbol");let r,o;return r=this._textProxyRegistry.get(e),r||(r=new Map,this._textProxyRegistry.set(e,r)),o=r.get(t),o||(o=new Map,r.set(t,o)),o.set(n,i),i}}function o(e){const t=e.split(":");return"addMarker"==t[0]||"removeMarker"==t[0]?e:t.length>1?t[0]+":"+t[1]:t[0]}var s=n("ad6b"),a=n("9cf5"),c=n("da0d"),l=n("644e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class u{constructor(e){this.conversionApi=Object.assign({dispatcher:this},e),this._reconversionEventsMapping=new Map}convertChanges(e,t,n){for(const r of e.getMarkersToRemove())this.convertMarkerRemove(r.name,r.range,n);const i=this._mapChangesWithAutomaticReconversion(e);for(const r of i)"insert"===r.type?this.convertInsert(s["a"]._createFromPositionAndShift(r.position,r.length),n):"remove"===r.type?this.convertRemove(r.position,r.length,r.name,n):"reconvert"===r.type?this.reconvertElement(r.element,n):this.convertAttribute(r.range,r.attributeKey,r.attributeOldValue,r.attributeNewValue,n);for(const r of this.conversionApi.mapper.flushUnboundMarkerNames()){const e=t.get(r).getRange();this.convertMarkerRemove(r,e,n),this.convertMarkerAdd(r,e,n)}for(const r of e.getMarkersToAdd())this.convertMarkerAdd(r.name,r.range,n)}convertInsert(e,t){this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(e);for(const n of Array.from(e).map(f))this._convertInsertWithAttributes(n);this._clearConversionApi()}convertRemove(e,t,n,i){this.conversionApi.writer=i,this.fire("remove:"+n,{position:e,length:t},this.conversionApi),this._clearConversionApi()}convertAttribute(e,t,n,i,r){this.conversionApi.writer=r,this.conversionApi.consumable=this._createConsumableForRange(e,`attribute:${t}`);for(const o of e){const e=o.item,r=s["a"]._createFromPositionAndShift(o.previousPosition,o.length),a={item:e,range:r,attributeKey:t,attributeOldValue:n,attributeNewValue:i};this._testAndFire(`attribute:${t}`,a)}this._clearConversionApi()}reconvertElement(e,t){const n=s["a"]._createOn(e);this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(n);const i=this.conversionApi.mapper,r=i.toViewElement(e);t.remove(r),this._convertInsertWithAttributes({item:e,range:n});const o=i.toViewElement(e);for(const c of s["a"]._createIn(e)){const{item:e}=c,n=p(e,i);n?n.root!==o.root&&t.move(t.createRangeOn(n),i.toViewPosition(a["a"]._createBefore(e))):this._convertInsertWithAttributes(f(c))}i.unbindViewElement(r),this._clearConversionApi()}convertSelection(e,t,n){const i=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(e,i),this.fire("selection",{selection:e},this.conversionApi),e.isCollapsed){for(const t of i){const n=t.getRange();if(!d(e.getFirstPosition(),t,this.conversionApi.mapper))continue;const i={item:e,markerName:t.name,markerRange:n};this.conversionApi.consumable.test(e,"addMarker:"+t.name)&&this.fire("addMarker:"+t.name,i,this.conversionApi)}for(const t of e.getAttributeKeys()){const n={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};this.conversionApi.consumable.test(e,"attribute:"+n.attributeKey)&&this.fire("attribute:"+n.attributeKey+":$text",n,this.conversionApi)}this._clearConversionApi()}else this._clearConversionApi()}convertMarkerAdd(e,t,n){if("$graveyard"==t.root.rootName)return;this.conversionApi.writer=n;const i="addMarker:"+e,o=new r;if(o.add(t,i),this.conversionApi.consumable=o,this.fire(i,{markerName:e,markerRange:t},this.conversionApi),o.test(t,i)){this.conversionApi.consumable=this._createConsumableForRange(t,i);for(const n of t.getItems()){if(!this.conversionApi.consumable.test(n,i))continue;const r={item:n,range:s["a"]._createOn(n),markerName:e,markerRange:t};this.fire(i,r,this.conversionApi)}this._clearConversionApi()}else this._clearConversionApi()}convertMarkerRemove(e,t,n){"$graveyard"!=t.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+e,{markerName:e,markerRange:t},this.conversionApi),this._clearConversionApi())}_mapReconversionTriggerEvent(e,t){this._reconversionEventsMapping.set(t,e)}_createInsertConsumable(e){const t=new r;for(const n of e){const e=n.item;t.add(e,"insert");for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n)}return t}_createConsumableForRange(e,t){const n=new r;for(const i of e.getItems())n.add(i,t);return n}_createSelectionConsumable(e,t){const n=new r;n.add(e,"selection");for(const i of t)n.add(e,"addMarker:"+i.name);for(const i of e.getAttributeKeys())n.add(e,"attribute:"+i);return n}_testAndFire(e,t){this.conversionApi.consumable.test(t.item,e)&&this.fire(h(e,t),t,this.conversionApi)}_clearConversionApi(){delete this.conversionApi.writer,delete this.conversionApi.consumable}_convertInsertWithAttributes(e){this._testAndFire("insert",e);for(const t of e.item.getAttributeKeys())e.attributeKey=t,e.attributeOldValue=null,e.attributeNewValue=e.item.getAttribute(t),this._testAndFire(`attribute:${t}`,e)}_mapChangesWithAutomaticReconversion(e){const t=new Set,n=[];for(const i of e.getChanges()){const e=i.position||i.range.start,r=e.parent,o=Object(a["d"])(e,r);if(o){n.push(i);continue}const s="attribute"===i.type?Object(a["b"])(e,r,null):r;if(s.is("$text")){n.push(i);continue}let c;if(c="attribute"===i.type?`attribute:${i.attributeKey}:${s.name}`:`${i.type}:${i.name}`,this._isReconvertTriggerEvent(c,s.name)){if(t.has(s))continue;t.add(s),n.push({type:"reconvert",element:s})}else n.push(i)}return n}_isReconvertTriggerEvent(e,t){return this._reconversionEventsMapping.get(e)===t}}function d(e,t,n){const i=t.getRange(),r=Array.from(e.getAncestors());r.shift(),r.reverse();const o=r.some(e=>{if(i.containsItem(e)){const t=n.toViewElement(e);return!!t.getCustomProperty("addHighlight")}});return!o}function h(e,t){const n=t.item.name||"$text";return`${e}:${n}`}function f(e){const t=e.item,n=s["a"]._createFromPositionAndShift(e.previousPosition,e.length);return{item:t,range:n}}function p(e,t){if(e.is("textProxy")){const n=t.toViewPosition(a["a"]._createBefore(e)),i=n.parent;return i.is("$text")?i:null}return t.toViewElement(e)}Object(l["a"])(u,c["c"])},"14ba":function(e,t,n){"use strict";var i=n("a12c"),r=n("b84d"),o=n("6071");function s(e,t,n){(void 0===n||Object(o["a"])(e[t],n))&&(void 0!==n||t in e)||Object(r["a"])(e,t,n)}var a=s;function c(e){return function(t,n,i){var r=-1,o=Object(t),s=i(t),a=s.length;while(a--){var c=s[e?a:++r];if(!1===n(o[c],c,o))break}return t}}var l=c,u=l(),d=u,h=n("dff1"),f=n("1b89"),p=n("7804"),m=n("8583"),g=n("f5fe"),b=n("ff51"),v=n("e56b"),w=n("1147");function y(e){return Object(w["a"])(e)&&Object(v["a"])(e)}var _=y,E=n("58e0"),x=n("bc9b"),k=n("2332"),A=n("e8b2"),O=n("a187");function C(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var T=C,S=n("f842"),P=n("e3fa");function I(e){return Object(S["a"])(e,Object(P["a"])(e))}var R=I;function M(e,t,n,i,r,o,s){var c=T(e,n),l=T(t,n),u=s.get(l);if(u)a(e,n,u);else{var d=o?o(c,l,n+"",e,t,s):void 0,v=void 0===d;if(v){var w=Object(b["a"])(l),y=!w&&Object(E["a"])(l),C=!w&&!y&&Object(O["a"])(l);d=l,w||y||C?Object(b["a"])(c)?d=c:_(c)?d=Object(p["a"])(c):y?(v=!1,d=Object(h["a"])(l,!0)):C?(v=!1,d=Object(f["a"])(l,!0)):d=[]:Object(A["a"])(l)||Object(g["a"])(l)?(d=c,Object(g["a"])(c)?d=R(c):Object(k["a"])(c)&&!Object(x["a"])(c)||(d=Object(m["a"])(l))):v=!1}v&&(s.set(l,d),r(d,l,i,o,s),s["delete"](l)),a(e,n,d)}}var j=M;function N(e,t,n,r,o){e!==t&&d(t,(function(s,c){if(o||(o=new i["a"]),Object(k["a"])(s))j(e,t,c,n,N,r,o);else{var l=r?r(T(e,c),s,c+"",e,t,o):void 0;void 0===l&&(l=s),a(e,c,l)}}),P["a"])}t["a"]=N},1530:function(e,t){e.exports=''},1585:function(e,t,n){(function(){var t,i,r,o=function(e,t){for(var n in t)s.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=n("45f3").isObject,i=n("92e7"),t=n("065e"),e.exports=function(e){function n(e,i,o,s){if(n.__super__.constructor.call(this,e),null==o)throw new Error("Missing DTD entity name. "+this.debugInfo(o));if(null==s)throw new Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!i,this.name=this.stringify.name(o),this.type=t.EntityDeclaration,r(s)){if(!s.pubID&&!s.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(o));if(s.pubID&&!s.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(o));if(this.internal=!1,null!=s.pubID&&(this.pubID=this.stringify.dtdPubID(s.pubID)),null!=s.sysID&&(this.sysID=this.stringify.dtdSysID(s.sysID)),null!=s.nData&&(this.nData=this.stringify.dtdNData(s.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(o))}else this.value=this.stringify.dtdEntityValue(s),this.internal=!0}return o(n,e),Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(n.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return null}}),n.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},n}(i)}).call(this)},"15d7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("3a9e");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var r=n("b46c");Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}))},"163e":function(e,t,n){},"164f":function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var i=n("109b"),r=n("ec02"),o=n("940e"),s=n("3707"),a=n("f2ea"),c=n("768b"),l=n("8073"),u=n("c78f"),d=n("74c7"),h=n.n(d),f=n("f422"),p=n.n(f);n("e348"),n("51a6"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const m=Object(l["a"])("px");class g extends i["a"]{static get pluginName(){return"ContextualBalloon"}constructor(e){super(e),this.positionLimiter=()=>{const e=this.editor.editing.view,t=e.document,n=t.selection.editableElement;return n?e.domConverter.mapViewToDom(n.root):null},this.set("visibleView",null),this.view=new r["a"](e.locale),e.ui.view.body.add(this.view),e.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}destroy(){super.destroy(),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}hasView(e){return Array.from(this._viewToStack.keys()).includes(e)}add(e){if(this.hasView(e.view))throw new a["a"]("contextualballoon-add-view-exist",[this,e]);const t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));const n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new a["a"]("contextualballoon-remove-view-not-exist",[this,e]);const t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}updatePosition(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(e){this.visibleStack=e;const t=this._idToStack.get(e);if(!t)throw new a["a"]("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(e){const t=Array.from(this._idToStack.entries()).find(t=>t[1]===e);return t[0]}_showNextStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}_showPrevStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}_createRotatorView(){const e=new b(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>{return!t&&e>1}),e.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(e,n)=>{if(n<2)return"";const i=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return t("%0 of %1",[i,n])}),e.buttonNextView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),e.buttonPrevView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),e}_createFakePanelsView(){const e=new v(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>{const n=!t&&e>=2;return n?Math.min(e-1,2):0}),e.listenTo(this.view,"change:top",()=>e.updatePosition()),e.listenTo(this.view,"change:left",()=>e.updatePosition()),this.editor.ui.view.body.add(e),e}_showView({view:e,balloonClassName:t="",withArrow:n=!0,singleViewMode:i=!1}){this.view.class=t,this.view.withArrow=n,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),i&&(this._singleViewMode=!0)}_getBalloonPosition(){let e=Array.from(this._visibleStack.values()).pop().position;return e&&(e.limiter||(e=Object.assign({},e,{limiter:this.positionLimiter})),e=Object.assign({},e,{viewportOffsetConfig:this.editor.ui.viewportOffset})),e}}class b extends o["a"]{constructor(e){super(e);const t=e.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new c["a"],this.buttonPrevView=this._createButtonView(t("Previous"),h.a),this.buttonNextView=this._createButtonView(t("Next"),p.a),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",e=>e?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){const n=new s["a"](this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}class v extends o["a"]{constructor(e,t){super(e);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=t,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",e=>e?"":"ck-hidden")],style:{top:n.to("top",m),left:n.to("left",m),width:n.to("width",m),height:n.to("height",m)}},children:this.content}),this.on("change:numberOfPanels",(e,t,n,i)=>{n>i?this._addPanels(n-i):this._removePanels(i-n),this.updatePosition()})}_addPanels(e){while(e--){const e=new o["a"];e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(e){while(e--){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:e,left:t}=this._balloonPanelView,{width:n,height:i}=new u["a"](this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:n,height:i})}}}},1654:function(e,t,n){"use strict";var i=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1727:function(e,t,n){e.exports={default:n("469f"),__esModule:!0}},"174a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("c295"),s=n("b9e9");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiRail",mixins:[o.SemanticUIVueMixin],props:{attached:Boolean,dividing:Boolean,internal:Boolean,position:(0,s.Enum)(["left","right"])},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("ui",this.dividing&&"dividing",this.attached&&"attached",this.internal&&"internal",this.position,"rail")}]),[this.$slots.default])}}},1788:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var i=n("109b"),r=n("652f"),o=n("8ab1"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class s extends r["a"]{constructor(e){super(e),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(e.data,"set",(e,t)=>{t[1]={...t[1]};const n=t[1];n.batchType||(n.batchType="transparent")},{priority:"high"}),this.listenTo(e.data,"set",(e,t)=>{const n=t[1];"transparent"===n.batchType&&this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}addBatch(e){const t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,n){const i=this.editor.model,r=i.document,o=[],s=e.map(e=>e.getTransformedByOperations(n)),l=s.flat();for(const u of s){const e=u.filter(e=>e.root!=r.graveyard).filter(e=>!c(e,l));e.length&&(a(e),o.push(e[0]))}o.length&&i.change(e=>{e.setSelection(o,{backward:t})})}_undo(e,t){const n=this.editor.model,i=n.document;this._createdBatches.add(t);const r=e.operations.slice().filter(e=>e.isDocumentOperation);r.reverse();for(const s of r){const e=s.baseVersion+1,r=Array.from(i.history.getOperations(e)),a=Object(o["a"])([s.getReversed()],r,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}),c=a.operationsA;for(const o of c)t.addOperation(o),n.applyOperation(o),i.history.setOperationAsUndone(s,o)}}}function a(e){e.sort((e,t)=>e.start.isBefore(t.start)?-1:1);for(let t=1;tt!==e&&t.containsRange(e,!0))} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class l extends s{execute(e=null){const t=e?this._stack.findIndex(t=>t.batch==e):this._stack.length-1,n=this._stack.splice(t,1)[0],i=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(i,()=>{this._undo(n.batch,i);const e=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,e),this.fire("revert",n.batch,i)}),this.refresh()}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class u extends s{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(t,()=>{const n=e.batch.operations[e.batch.operations.length-1],i=n.baseVersion+1,r=this.editor.model.document.history.getOperations(i);this._restoreSelection(e.selection.ranges,e.selection.isBackward,r),this._undo(e.batch,t)}),this.refresh()}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class d extends i["a"]{static get pluginName(){return"UndoEditing"}constructor(e){super(e),this._batchRegistry=new WeakSet}init(){const e=this.editor;this._undoCommand=new l(e),this._redoCommand=new u(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",(e,t)=>{const n=t[0];if(!n.isDocumentOperation)return;const i=n.batch,r=this._redoCommand._createdBatches.has(i),o=this._undoCommand._createdBatches.has(i),s=this._batchRegistry.has(i);s||"transparent"==i.type&&!r&&!o||(r?this._undoCommand.addBatch(i):o||(this._undoCommand.addBatch(i),this._redoCommand.clearStack()),this._batchRegistry.add(i))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(e,t,n)=>{this._redoCommand.addBatch(n)}),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo")}}var h=n("3707"),f=n("f945"),p=n.n(f),m=n("332d"),g=n.n(m); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class b extends i["a"]{static get pluginName(){return"UndoUI"}init(){const e=this.editor,t=e.locale,n=e.t,i="ltr"==t.uiLanguageDirection?p.a:g.a,r="ltr"==t.uiLanguageDirection?g.a:p.a;this._addButton("undo",n("Undo"),"CTRL+Z",i),this._addButton("redo",n("Redo"),"CTRL+Y",r)}_addButton(e,t,n,i){const r=this.editor;r.ui.componentFactory.add(e,o=>{const s=r.commands.get(e),a=new h["a"](o);return a.set({label:t,icon:i,keystroke:n,tooltip:!0}),a.bind("isEnabled").to(s,"isEnabled"),this.listenTo(a,"execute",()=>{r.execute(e),r.editing.view.focus()}),a})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class v extends i["a"]{static get requires(){return[d,b]}static get pluginName(){return"Undo"}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */},"17b4":function(e,t,n){},"17e1":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n("6c92"),r=n("9cf5"),o=n("a52e"),s=n("63d0"),a=n("dfe0"),c=n("5122"),l=n("a641"),u=n("f2ea"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class d extends i["a"]{constructor(e,t,n){super(n),this.position=e.clone(),this.position.stickiness="toNone",this.nodes=new o["a"](Object(a["c"])(t)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const e=new o["a"]([...this.nodes].map(e=>e._clone(!0))),t=new d(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){const e=this.position.root.document.graveyard,t=new r["a"](e,[0]);return new s["a"](this.position,this.nodes.maxOffset,t,this.baseVersion+1)}_validate(){const e=this.position.parent;if(!e||e.maxOffsete._clone(!0))),Object(a["a"])(this.position,e)}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return"InsertOperation"}static fromJSON(e,t){const n=[];for(const r of e.nodes)r.name?n.push(l["a"].fromJSON(r)):n.push(c["a"].fromJSON(r));const i=new d(r["a"].fromJSON(e.position,t),n,e.baseVersion);return i.shouldReceiveAttributes=e.shouldReceiveAttributes,i}}},"17ed":function(e,t,n){e.exports={default:n("d8d6"),__esModule:!0}},1805:function(e,t){e.exports=''},1838:function(e,t,n){var i=n("c05f"),r=n("9b02"),o=n("8604"),s=n("f608"),a=n("08cc"),c=n("20ec"),l=n("f4d6"),u=1,d=2;function h(e,t){return s(e)&&a(t)?c(l(e),t):function(n){var s=r(n,e);return void 0===s&&s===t?o(n,e):i(t,s,u|d)}}e.exports=h},"188f":function(e,t,n){(function(){var t,i,r=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=n("92e7"),t=n("065e"),e.exports=function(e){function n(e,i,r,o,s,a){if(n.__super__.constructor.call(this,e),null==i)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==r)throw new Error("Missing DTD attribute name. "+this.debugInfo(i));if(!o)throw new Error("Missing DTD attribute type. "+this.debugInfo(i));if(!s)throw new Error("Missing DTD attribute default. "+this.debugInfo(i));if(0!==s.indexOf("#")&&(s="#"+s),!s.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(i));if(a&&!s.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(i));this.elementName=this.stringify.name(i),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(o),a&&(this.defaultValue=this.stringify.dtdAttDefault(a)),this.defaultValueType=s}return r(n,e),n.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},n}(i)}).call(this)},"189a":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("940e"),r=n("768b"),o=n("0d02"),s=n("91db");n("3a7f"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class a extends i["a"]{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new r["a"],this.keystrokes=new s["a"],this._focusCycler=new o["a"]({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",(e,t)=>{this.focusTracker.add(t.element)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}},"18ce":function(e,t){e.exports=''},"18d8":function(e,t,n){var i=n("234d"),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=i((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,i,r){t.push(i?r.replace(o,"$1"):n||e)})),t}));e.exports=s},"18ea":function(e,t,n){},"191f":function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var i=n("a242"),r=n("31af"),o=n("ad0b"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class s extends r["a"]{constructor(e){super(e,o["c"])}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function a(e){return e.map(c).filter(e=>!!e)}function c(e){return"object"===typeof e?e:"default"===e?{title:"Default",model:void 0}:"string"===typeof e?l(e):void 0}function l(e){const t=e.replace(/"|'/g,"").split(","),n=t[0],i=t.map(u).join(", ");return{title:n,model:i,view:{name:"span",styles:{"font-family":i},priority:7}}}function u(e){return e=e.trim(),e.indexOf(" ")>0&&(e=`'${e}'`),e} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class d extends i["i"]{static get pluginName(){return"FontFamilyEditing"}constructor(e){super(e),e.config.define(o["c"],{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!1})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:o["c"]}),e.model.schema.setAttributeProperties(o["c"],{isFormatting:!0,copyOnEnter:!0});const t=a(e.config.get("fontFamily.options")).filter(e=>e.model),n=Object(o["f"])(o["c"],t);e.config.get("fontFamily.supportAllValues")?(this._prepareAnyValueConverters(),this._prepareCompatibilityConverter()):e.conversion.attributeToElement(n),e.commands.add(o["c"],new s(e))}_prepareAnyValueConverters(){const e=this.editor;e.conversion.for("downcast").attributeToElement({model:o["c"],view:(e,{writer:t})=>{return t.createAttributeElement("span",{style:"font-family:"+e},{priority:7})}}),e.conversion.for("upcast").elementToAttribute({model:{key:o["c"],value:e=>e.getStyle("font-family")},view:{name:"span",styles:{"font-family":/.*/}}})}_prepareCompatibilityConverter(){const e=this.editor;e.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{face:/.*/}},model:{key:o["c"],value:e=>e.getAttribute("face")}})}}var h=n("4fdd"),f=n("02d4"),p=n("c7ef"),m=n.n(p); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class g extends i["i"]{static get pluginName(){return"FontFamilyUI"}init(){const e=this.editor,t=e.t,n=this._getLocalizedOptions(),i=e.commands.get(o["c"]);e.ui.componentFactory.add(o["c"],r=>{const o=Object(f["E"])(r);return Object(f["B"])(o,b(n,i)),o.buttonView.set({label:t("Font Family"),icon:m.a,tooltip:!0}),o.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),o.bind("isEnabled").to(i),this.listenTo(o,"execute",t=>{e.execute(t.source.commandName,{value:t.source.commandParam}),e.editing.view.focus()}),o})}_getLocalizedOptions(){const e=this.editor,t=e.t,n=a(e.config.get(o["c"]).options);return n.map(e=>{return"Default"===e.title&&(e.title=t("Default")),e})}}function b(e,t){const n=new h["b"];for(const i of e){const e={type:"button",model:new f["q"]({commandName:o["c"],commandParam:i.model,label:i.title,withText:!0})};e.model.bind("isOn").to(t,"value",e=>{return e===i.model||!(!e||!i.model)&&e.split(",")[0].replace(/'/g,"").toLowerCase()===i.model.toLowerCase()}),i.view&&i.view.styles&&e.model.set("labelStyle",`font-family: ${i.view.styles["font-family"]}`),n.add(e)}return n} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class v extends i["i"]{static get requires(){return[d,g]}static get pluginName(){return"FontFamily"}}},1964:function(e,t,n){"use strict";var i=n("09f4"),r=1,o=4;function s(e,t){return t="function"==typeof t?t:void 0,Object(i["a"])(e,r|o,t)}t["a"]=s},"198e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("ce2b");Object.defineProperty(t,"TabPane",{enumerable:!0,get:function(){return o(i).default}});var r=n("2450");function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Tab",{enumerable:!0,get:function(){return o(r).default}})},"19d2":function(e,t,n){},"19de":function(e,t){e.exports=function(e,t,n,i){var r="undefined"!==typeof i?[i,e]:[e],o=new Blob(r,{type:n||"application/octet-stream"});if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(o,t);else{var s=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(o):window.webkitURL.createObjectURL(o),a=document.createElement("a");a.style.display="none",a.href=s,a.setAttribute("download",t),"undefined"===typeof a.download&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),setTimeout((function(){document.body.removeChild(a),window.URL.revokeObjectURL(s)}),200)}}},"1a1b":function(e,t){e.exports=''},"1a77":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("c295"),s=n("b9e9");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiStatistic",mixins:[o.classMixin,o.SemanticUIVueMixin],props:{horizontal:{type:Boolean,description:"Present measurement horizontally"},color:s.Enum.Color(),size:s.Enum.Size(),floated:(0,s.Enum)(["left","right"]),inverted:{type:Boolean,description:"Should the colors be inverted"}},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes(this.getUIClass(),"statistic",this.color,this.size,this.floated&&this.floated+" floated",this.inverted&&"inverted",this.horizontal&&"horizontal")}]),[this.$slots.default])}}},"1a7c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c295"),r=n("b9e9");t.default={name:"SuiImage",mixins:[i.SemanticUIVueMixin],props:{avatar:{type:Boolean,description:"An image may be formatted to appear inline with text as an avatar."},bordered:{type:Boolean,description:"An image may include a border to emphasize the edges of white or transparent content."},circular:{type:Boolean,description:"An image may appear circular."},rounded:{type:Boolean,description:"An image may appear rounded."},disabled:Boolean,hidden:Boolean,size:r.Enum.Size(),spaced:(0,r.Enum)(["left","right"],{type:Boolean}),shape:(0,r.Enum)(["rounded","circular"]),src:{type:String,required:!0},floated:(0,r.Enum)(["left","right"]),centered:Boolean,verticalAlign:r.Enum.VerticalAlign({description:"An image can specify its vertical alignment."}),wrapped:Boolean},render:function(){var e=arguments[0],t=this.getElementType("div"),n=this.classes("ui",this.avatar&&"avatar",this.size,this.shape,this.verticalAlign&&this.verticalAlign+" aligned",this.floated&&this.floated+" floated",this.centered&&"centered",this.bordered&&"bordered",this.rounded&&"rounded",this.circular&&"circular",this.spaced,this.spaced&&"spaced",this.hidden&&"hidden",this.disabled&&"disabled","image");return this.wrapped||this.$slots.corner||this.$slots.label?e(t,{class:n},[this.$slots.corner,e("img",{attrs:{src:this.src}},[]),this.$slots.label]):e("img",{class:n,attrs:{src:this.src}},[])}}},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1aad":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiListDescription",mixins:[o.SemanticUIVueMixin],render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:"description"}]),[this.$slots.default])},meta:{parent:"SuiList"}}},"1af3":function(e,t,n){},"1b12":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("c295"),s=n("b9e9");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiSegment",mixins:[o.SemanticUIVueMixin],props:{attached:s.Enum.Attached({type:Boolean,description:"Attach segment to other content, like a header."}),basic:Boolean,clearing:{type:Boolean,description:"A segment can clear floated content."},inverted:Boolean,padded:s.Enum.Padded({type:Boolean,description:"A segment can increase its padding"}),piled:Boolean,raised:Boolean,stacked:(0,s.Enum)(["tall"],{type:Boolean}),vertical:Boolean,disabled:Boolean,loading:Boolean,compact:Boolean,color:s.Enum.Color({type:String}),emphasis:s.Enum.Emphasis({type:String}),circular:Boolean,floated:s.Enum.Floated({type:String}),aligned:s.Enum.TextAlign({type:String})},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("ui",this.attached,this.attached&&"attached",this.basic&&"basic",this.clearing&&"clearing",this.padded,this.padded&&"padded",this.inverted&&"inverted",this.stacked,this.stacked&&"stacked",this.piled&&"piled",this.raised&&"raised",this.vertical&&"vertical",this.disabled&&"disabled",this.loading&&"loading",this.compact&&"compact",this.color,this.emphasis,this.circular&&"circular",this.floated,this.floated&&"floated",this.aligned,this.aligned&&"aligned","segment")}]),[this.$slots.default])}}},"1b4b":function(e,t,n){"use strict";n.d(t,"a",(function(){return W}));var i=n("a242"),r=n("f286"),o=n("ff1a"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class s extends i["a"]{constructor(e,t){super(e),this._defaultType=t}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,n=t.document;let i=[...n.selection.getSelectedBlocks()].filter(e=>e.is("element","listItem")).map(e=>{const n=t.change(t=>t.createPositionAt(e,0));return[...Object(o["e"])(n,"backward"),...Object(o["e"])(n,"forward")]}).flat();i=[...new Set(i)],i.length&&t.change(t=>{for(const n of i)t.setAttribute("listStyle",e.type||this._defaultType,n)})}_getValue(){const e=this.editor.model.document.selection.getFirstPosition().parent;return e&&e.is("element","listItem")?e.getAttribute("listStyle"):null}_checkEnabled(){const e=this.editor,t=e.commands.get("numberedList"),n=e.commands.get("bulletedList");return t.isEnabled||n.isEnabled}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */const a="default";class c extends i["i"]{static get requires(){return[r["a"]]}static get pluginName(){return"ListStyleEditing"}init(){const e=this.editor,t=e.model;t.schema.extend("listItem",{allowAttributes:["listStyle"]}),e.commands.add("listStyle",new s(e,a)),this.listenTo(e.commands.get("indentList"),"_executeCleanup",d(e)),this.listenTo(e.commands.get("outdentList"),"_executeCleanup",h(e)),this.listenTo(e.commands.get("bulletedList"),"_executeCleanup",b(e)),this.listenTo(e.commands.get("numberedList"),"_executeCleanup",b(e)),t.document.registerPostFixer(f(e)),e.conversion.for("upcast").add(l()),e.conversion.for("downcast").add(u()),this._mergeListStyleAttributeWhileMergingLists()}afterInit(){const e=this.editor;e.commands.get("todoList")&&e.model.document.registerPostFixer(g(e))}_mergeListStyleAttributeWhileMergingLists(){const e=this.editor,t=e.model;let n;this.listenTo(t,"deleteContent",(e,[t])=>{const i=t.getFirstPosition(),r=t.getLastPosition();if(i.parent===r.parent)return;if(!i.parent.is("element","listItem"))return;const s=r.parent.nextSibling;if(!s||!s.is("element","listItem"))return;const a=Object(o["d"])(i.parent,{sameIndent:!0,listIndent:s.getAttribute("listIndent")});a&&a.getAttribute("listType")===s.getAttribute("listType")&&(n=a)},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{n&&(t.change(e=>{const t=Object(o["d"])(n.nextSibling,{sameIndent:!0,listIndent:n.getAttribute("listIndent"),direction:"forward"}),i=[t,...Object(o["e"])(e.createPositionAt(t,0),"forward")];for(const r of i)e.setAttribute("listStyle",n.getAttribute("listStyle"),r)}),n=null)},{priority:"low"})}}function l(){return e=>{e.on("element:li",(e,t,n)=>{const i=t.viewItem.parent;if(!i)return;const r=i.getStyle("list-style-type")||a,o=t.modelRange.start.nodeAfter||t.modelRange.end.nodeBefore;n.writer.setAttribute("listStyle",r,o)},{priority:"low"})}}function u(){return n=>{n.on("attribute:listStyle:listItem",(n,i,r)=>{const s=r.writer,a=i.item,c=Object(o["d"])(a.previousSibling,{sameIndent:!0,listIndent:a.getAttribute("listIndent"),direction:"backward"}),l=r.mapper.toViewElement(a);e(a,c)||s.breakContainer(s.createPositionBefore(l)),t(s,i.attributeNewValue,l.parent)},{priority:"low"})};function e(e,t){return t&&e.getAttribute("listType")===t.getAttribute("listType")&&e.getAttribute("listIndent")===t.getAttribute("listIndent")&&e.getAttribute("listStyle")===t.getAttribute("listStyle")}function t(e,t,n){t&&t!==a?e.setStyle("list-style-type",t,n):e.removeStyle("list-style-type",n)}}function d(e){return(t,n)=>{let i;const r=n[0],s=r.getAttribute("listIndent"),c=n.filter(e=>e.getAttribute("listIndent")===s);if(r.previousSibling.getAttribute("listIndent")+1===s)i=a;else{const e=Object(o["d"])(r.previousSibling,{sameIndent:!0,direction:"backward",listIndent:s});i=e.getAttribute("listStyle")}e.model.change(e=>{for(const t of c)e.setAttribute("listStyle",i,t)})}}function h(e){return(t,n)=>{if(n=n.reverse().filter(e=>e.is("element","listItem")),!n.length)return;const i=n[0].getAttribute("listIndent"),r=n[0].getAttribute("listType");let o=n[0].previousSibling;if(o.is("element","listItem"))while(o.getAttribute("listIndent")!==i)o=o.previousSibling;else o=null;o||(o=n[n.length-1].nextSibling),o&&o.is("element","listItem")&&o.getAttribute("listType")===r&&e.model.change(e=>{const t=n.filter(e=>e.getAttribute("listIndent")===i);for(const n of t)e.setAttribute("listStyle",o.getAttribute("listStyle"),n)})}}function f(e){return t=>{let n=!1;const i=v(e.model.document.differ.getChanges()).filter(e=>{return"todo"!==e.getAttribute("listType")});if(!i.length)return n;let r=i[i.length-1].nextSibling;if((!r||!r.is("element","listItem"))&&(r=i[i.length-1].previousSibling,r)){const e=i[0].getAttribute("listIndent");while(r.is("element","listItem")&&r.getAttribute("listIndent")!==e)if(r=r.previousSibling,!r)break}for(const e of i)if(e.hasAttribute("listStyle")){const i=e.previousSibling;m(i,e)&&(t.setAttribute("listStyle",i.getAttribute("listStyle"),e),n=!0)}else p(r,e)?t.setAttribute("listStyle",r.getAttribute("listStyle"),e):t.setAttribute("listStyle",a,e),n=!0;return n}}function p(e,t){if(!e)return!1;const n=e.getAttribute("listStyle");return!!n&&(n!==a&&e.getAttribute("listType")===t.getAttribute("listType"))}function m(e,t){if(!e||!e.is("element","listItem"))return!1;if(t.getAttribute("listType")!==e.getAttribute("listType"))return!1;const n=e.getAttribute("listIndent");if(n<1||n!==t.getAttribute("listIndent"))return!1;const i=e.getAttribute("listStyle");return!(!i||i===t.getAttribute("listStyle"))}function g(e){return t=>{const n=v(e.model.document.differ.getChanges()).filter(e=>{return"todo"===e.getAttribute("listType")&&e.hasAttribute("listStyle")});if(!n.length)return!1;for(const e of n)t.removeAttribute("listStyle",e);return!0}}function b(e){return(t,n)=>{n=n.filter(e=>e.is("element","listItem")),e.model.change(e=>{for(const t of n)e.removeAttribute("listStyle",t)})}}function v(e){const t=[];for(const n of e){const e=w(n);e&&e.is("element","listItem")&&t.push(e)}return t}function w(e){return"attribute"===e.type?e.range.start.nodeAfter:"insert"===e.type?e.position.nodeAfter:null}var y=n("02d4"),_=n("7eec"),E=n.n(_),x=n("dde1"),k=n.n(x),A=n("537f"),O=n.n(A),C=n("9b11"),T=n.n(C),S=n("5a7b"),P=n.n(S),I=n("05aa"),R=n.n(I),M=n("5cba"),j=n.n(M),N=n("dbe0"),D=n.n(N),L=n("b4ef"),V=n.n(L),B=n("7e3d"),F=n.n(B),z=n("9184"),$=n.n(z);n("938c"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class U extends i["i"]{static get pluginName(){return"ListStyleUI"}init(){const e=this.editor,t=e.locale.t;e.ui.componentFactory.add("bulletedList",H({editor:e,parentCommandName:"bulletedList",buttonLabel:t("Bulleted List"),buttonIcon:E.a,toolbarAriaLabel:t("Bulleted list styles toolbar"),styleDefinitions:[{label:t("Toggle the disc list style"),tooltip:t("Disc"),type:"disc",icon:O.a},{label:t("Toggle the circle list style"),tooltip:t("Circle"),type:"circle",icon:T.a},{label:t("Toggle the square list style"),tooltip:t("Square"),type:"square",icon:P.a}]})),e.ui.componentFactory.add("numberedList",H({editor:e,parentCommandName:"numberedList",buttonLabel:t("Numbered List"),buttonIcon:k.a,toolbarAriaLabel:t("Numbered list styles toolbar"),styleDefinitions:[{label:t("Toggle the decimal list style"),tooltip:t("Decimal"),type:"decimal",icon:R.a},{label:t("Toggle the decimal with leading zero list style"),tooltip:t("Decimal with leading zero"),type:"decimal-leading-zero",icon:j.a},{label:t("Toggle the lower–roman list style"),tooltip:t("Lower–roman"),type:"lower-roman",icon:D.a},{label:t("Toggle the upper–roman list style"),tooltip:t("Upper-roman"),type:"upper-roman",icon:V.a},{label:t("Toggle the lower–latin list style"),tooltip:t("Lower-latin"),type:"lower-latin",icon:F.a},{label:t("Toggle the upper–latin list style"),tooltip:t("Upper-latin"),type:"upper-latin",icon:$.a}]}))}}function H({editor:e,parentCommandName:t,buttonLabel:n,buttonIcon:i,toolbarAriaLabel:r,styleDefinitions:o}){const s=e.commands.get(t),a=e.commands.get("listStyle");return c=>{const l=Object(y["E"])(c,y["s"]),u=l.buttonView,d=q({editor:e,parentCommandName:t,listStyleCommand:a});return Object(y["C"])(l,o.map(d)),l.bind("isEnabled").to(s),l.toolbarView.ariaLabel=r,l.class="ck-list-styles-dropdown",u.on("execute",()=>{e.execute(t),e.editing.view.focus()}),u.set({label:n,icon:i,tooltip:!0,isToggleable:!0}),u.bind("isOn").to(s,"value",e=>!!e),l}}function q({editor:e,listStyleCommand:t,parentCommandName:n}){const i=e.locale,r=e.commands.get(n);return({label:o,type:s,icon:a,tooltip:c})=>{const l=new y["c"](i);return l.set({label:o,icon:a,tooltip:c}),t.on("change:value",()=>{l.isOn=t.value===s}),l.on("execute",()=>{r.value?t.value!==s?e.execute("listStyle",{type:s}):e.execute("listStyle",{type:t._defaultType}):e.model.change(()=>{e.execute(n),e.execute("listStyle",{type:s})}),e.editing.view.focus()}),l}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class W extends i["i"]{static get requires(){return[c,U]}static get pluginName(){return"ListStyle"}}},"1b89":function(e,t,n){"use strict";var i=n("964c");function r(e,t){var n=t?Object(i["a"])(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}t["a"]=r},"1bc3":function(e,t,n){var i=n("f772");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},"1bc6":function(e,t,n){"use strict";var i=n("f0ce"),r=n("1147"),o="[object Symbol]";function s(e){return"symbol"==typeof e||Object(r["a"])(e)&&Object(i["a"])(e)==o}t["a"]=s},"1bd3":function(e,t){e.exports=''},"1bef":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c95c");Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return l(i).default}});var r=n("2d55");Object.defineProperty(t,"CardContent",{enumerable:!0,get:function(){return l(r).default}});var o=n("b47b");Object.defineProperty(t,"CardDescription",{enumerable:!0,get:function(){return l(o).default}});var s=n("e456");Object.defineProperty(t,"CardGroup",{enumerable:!0,get:function(){return l(s).default}});var a=n("5f7b");Object.defineProperty(t,"CardHeader",{enumerable:!0,get:function(){return l(a).default}});var c=n("8402");function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"CardMeta",{enumerable:!0,get:function(){return l(c).default}})},"1bf9":function(e,t){(function(){e.exports=function(){function e(e){this.arr=e||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return-1!==this.arr.indexOf(e)},e}()}).call(this)},"1c3c":function(e,t,n){var i=n("9e69"),r=n("2474"),o=n("9638"),s=n("a2be"),a=n("edfa"),c=n("ac41"),l=1,u=2,d="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Map]",m="[object Number]",g="[object RegExp]",b="[object Set]",v="[object String]",w="[object Symbol]",y="[object ArrayBuffer]",_="[object DataView]",E=i?i.prototype:void 0,x=E?E.valueOf:void 0;function k(e,t,n,i,E,k,A){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!k(new r(e),new r(t)));case d:case h:case m:return o(+e,+t);case f:return e.name==t.name&&e.message==t.message;case g:case v:return e==t+"";case p:var O=a;case b:var C=i&l;if(O||(O=c),e.size!=t.size&&!C)return!1;var T=A.get(e);if(T)return T==t;i|=u,A.set(e,t);var S=s(O(e),O(t),i,E,k,A);return A["delete"](e),S;case w:if(x)return x.call(e)==x.call(t)}return!1}e.exports=k},"1c78":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("1a7c");Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return o(i).default}});var r=n("a58f");function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ImageGroup",{enumerable:!0,get:function(){return o(r).default}})},"1c782":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("c295"),s=n("2097");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiFeedMeta",mixins:[o.SemanticUIVueMixin],description:"A feed can contain a meta",props:{content:{type:String,description:"Shorthand for primary content"},like:{type:String,description:"Shorthand for SuiFeedLike"}},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("meta")}]),[this.$slots.default||[this.like&&e(s.FeedLike,{attrs:{content:this.like}},[]),this.content]])},meta:{parent:"SuiFeed"}}},"1c79":function(e,t,n){},"1cb8":function(e,t){e.exports=''},"1cdd":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var i=n("a242"),r=n("553a"),o=n("5595"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ function s(e){e.document.registerPostFixer(t=>a(t,e))}function a(e,t){const n=t.document.differ.getChanges();let i=!1;for(const r of n){if("insert"!=r.type)continue;const t=r.position.parent;if(t.is("element","table")||"table"==r.name){const t="table"==r.name?r.position.nodeAfter:r.position.parent,n=Array.from(t.getChildren()).filter(e=>e.is("element","caption")),o=n.shift();if(!o)continue;for(const i of n)e.move(e.createRangeIn(i),o,"end"),e.remove(i);o.nextSibling&&(e.move(e.createRangeOn(o),t,"end"),i=!0),i=!!n.length||i}}return i} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function c(e){return!!e&&e.is("element","table")}function l(e){for(const t of e.getChildren())if(t.is("element","caption"))return t;return null}function u(e){const t=h(e);return t?l(t):null}function d(e){const t=e.parent;return"figcaption"==e.name&&t&&"figure"==t.name&&t.hasClass("table")?{name:!0}:"caption"==e.name&&t&&"table"==t.name?{name:!0}:null}function h(e){const t=e.getSelectedElement();return t&&t.is("element","table")?t:e.getFirstPosition().findAncestor("table")} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class f extends i["a"]{refresh(){const e=this.editor,t=h(e.model.document.selection);this.isEnabled=!!t,this.isEnabled?this.value=!!l(t):this.value=!1}execute(e={}){const{focusCaptionOnShow:t}=e;this.editor.model.change(e=>{this.value?this._hideTableCaption(e):this._showTableCaption(e,t)})}_showTableCaption(e,t){const n=this.editor.model,i=h(n.document.selection),r=this.editor.plugins.get("TableCaptionEditing"),o=r._getSavedCaption(i),s=o||e.createElement("caption");e.append(s,i),t&&e.setSelection(s,"in")}_hideTableCaption(e){const t=this.editor.model,n=h(t.document.selection),i=this.editor.plugins.get("TableCaptionEditing"),r=l(n);i._saveCaption(n,r),e.setSelection(e.createRangeIn(n.getChild(0).getChild(0))),e.remove(r)}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class p extends i["i"]{static get pluginName(){return"TableCaptionEditing"}constructor(e){super(e),this._savedCaptionsMap=new WeakMap}init(){const e=this.editor,t=e.model.schema,n=e.editing.view,i=e.t;t.isRegistered("caption")?t.extend("caption",{allowIn:"table"}):t.register("caption",{allowIn:"table",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleTableCaption",new f(this.editor)),e.conversion.for("upcast").elementToElement({view:d,model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>{return c(e.parent)?t.createContainerElement("figcaption"):null}}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>{if(!c(e.parent))return null;const s=t.createEditableElement("figcaption");return t.setCustomProperty("tableCaption",!0,s),Object(r["q"])({view:n,element:s,text:i("Enter table caption"),keepOnFocus:!0}),Object(o["g"])(s,t)}}),s(e.model)}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?r["d"].fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}}var m=n("02d4"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class g extends i["i"]{static get pluginName(){return"TableCaptionUI"}init(){const e=this.editor,t=e.editing.view,n=e.t;e.ui.componentFactory.add("toggleTableCaption",r=>{const o=e.commands.get("toggleTableCaption"),s=new m["c"](r);return s.set({icon:i["k"].caption,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(o,"value","isEnabled"),s.bind("label").to(o,"value",e=>n(e?"Toggle caption off":"Toggle caption on")),this.listenTo(s,"execute",()=>{if(e.execute("toggleTableCaption",{focusCaptionOnShow:!0}),o.value){const n=u(e.model.document.selection),i=e.editing.mapper.toViewElement(n);if(!i)return;t.scrollToTheSelection(),t.change(e=>{e.addClass("table__caption_highlighted",i)})}}),s})}}n("cdba"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class b extends i["i"]{static get pluginName(){return"TableCaption"}static get requires(){return[p,g]}}},"1cec":function(e,t,n){var i=n("0b07"),r=n("2b3e"),o=i(r,"Promise");e.exports=o},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i{t.target===e.element&&t.preventDefault()})}var d=n("c78f"),h=n("a07d"),f=n("ceea"),p=n("f2ea"),m=n("6502"),g=n("1cb8"),b=n.n(g);n("7def"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class v extends i["a"]{constructor(e,t){super(e);const n=this.bindTemplate,i=this.t;this.options=t||{},this.set("ariaLabel",i("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new r["a"],this.keystrokes=new s["a"],this.set("class"),this.set("isCompact",!1),this.itemsView=new w(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const a="rtl"===e.uiLanguageDirection;this._focusCycler=new o["a"]({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[a?"arrowright":"arrowleft","arrowup"],focusNext:[a?"arrowleft":"arrowright","arrowdown"]}});const c=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];this.options.shouldGroupWhenFull&&this.options.isFloating&&c.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:c,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")}},children:this.children,on:{mousedown:u(this)}}),this._behavior=this.options.shouldGroupWhenFull?new _(this):new y(this)}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",(e,t)=>{this.focusTracker.add(t.element)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(e,t){const n=Object(m["a"])(e),i=n.items.filter((e,i,r)=>{return"|"===e||-1===n.removeItems.indexOf(e)&&("-"===e?!this.options.shouldGroupWhenFull||(Object(p["b"])("toolbarview-line-break-ignored-when-grouping-items",r),!1):!!t.has(e)||(Object(p["b"])("toolbarview-item-unavailable",{name:e}),!1))}),r=this._cleanSeparators(i).map(e=>{return"|"===e?new a["a"]:"-"===e?new c:t.create(e)});this.items.addMany(r)}_cleanSeparators(e){const t=e=>"-"!==e&&"|"!==e,n=e.length,i=e.findIndex(t),r=n-e.slice().reverse().findIndex(t);return e.slice(i,r).filter((e,n,i)=>{if(t(e))return!0;const r=n>0&&i[n-1]===e;return!r})}}class w extends i["a"]{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class y{constructor(e){const t=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using(e=>e),e.focusables.bindTo(e.items).using(e=>e),e.extendTemplate({attributes:{class:[t.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class _{constructor(e){this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,e.itemsView.children.bindTo(this.ungroupedItems).using(e=>e),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),e.children.on("add",this._updateFocusCycleableItems.bind(this)),e.children.on("remove",this._updateFocusCycleableItems.bind(this)),e.items.on("change",(e,t)=>{const n=t.index;for(const i of t.removed)n>=this.ungroupedItems.length?this.groupedItems.remove(i):this.ungroupedItems.remove(i);for(let i=n;ithis.ungroupedItems.length?this.groupedItems.add(e,i-this.ungroupedItems.length):this.ungroupedItems.add(e,i)}this._updateGrouping()}),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!this.viewElement.offsetParent)return void(this.shouldUpdateGroupingOnNextResize=!0);const e=this.groupedItems.length;let t;while(this._areItemsOverflowing)this._groupLastItem(),t=!0;if(!t&&this.groupedItems.length){while(this.groupedItems.length&&!this._areItemsOverflowing)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==e&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new d["a"](e.lastChild),i=new d["a"](e);if(!this.cachedPadding){const n=h["a"].window.getComputedStyle(e),i="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(n[i])}return"ltr"===t?n.right>i.right-this.cachedPadding:n.left{e&&e===t.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),e=t.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(e){e.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new a["a"]),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const e=this.viewLocale,t=e.t,n=Object(f["c"])(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",Object(f["b"])(n,[]),n.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:"rtl"===e.uiLanguageDirection?"se":"sw",icon:b.a}),n.toolbarView.items.bindTo(this.groupedItems).using(e=>e),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(e=>{this.viewFocusables.add(e)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}},"1e77":function(e,t,n){"use strict"; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ function i(e){return Array.isArray(e)?e:[e]}n.d(t,"a",(function(){return i}))},"1ec9":function(e,t,n){var i=n("f772"),r=n("e53d").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"1eca":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiCommentText",mixins:[o.SemanticUIVueMixin],render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("text")}]),[this.$slots.default])},meta:{parent:"SuiComment"}}},"1efc":function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},"1efe":function(e,t){e.exports=''},"1f08":function(e,t,n){(function(){var t,i=function(e,t){for(var n in t)r.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r={}.hasOwnProperty;t=n("a4b6"),e.exports=function(e){function t(e){t.__super__.constructor.call(this,e)}return i(t,e),t.prototype.document=function(e,t){var n,i,r,o,s;for(t=this.filterOptions(t),o="",s=e.children,i=0,r=s.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function u(e){var t=l(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function d(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,i=l(e),s=i[0],a=i[1],c=new o(d(e,s,a)),u=0,h=a>0?s-4:s;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c}function f(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function p(e,t,n){for(var i,r=[],o=t;oc?c:a+s));return 1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"1fc8":function(e,t,n){var i=n("4245");function r(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}e.exports=r},2096:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("0ad2");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var r=n("da26");Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var o=n("396b");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var s=n("b854");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var a=n("e65e");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var c=n("510d");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}))},2097:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("71e2");Object.defineProperty(t,"Feed",{enumerable:!0,get:function(){return f(i).default}});var r=n("c264");Object.defineProperty(t,"FeedContent",{enumerable:!0,get:function(){return f(r).default}});var o=n("bec4");Object.defineProperty(t,"FeedDate",{enumerable:!0,get:function(){return f(o).default}});var s=n("62f3");Object.defineProperty(t,"FeedEvent",{enumerable:!0,get:function(){return f(s).default}});var a=n("ccb8");Object.defineProperty(t,"FeedExtra",{enumerable:!0,get:function(){return f(a).default}});var c=n("8c69");Object.defineProperty(t,"FeedLabel",{enumerable:!0,get:function(){return f(c).default}});var l=n("704b");Object.defineProperty(t,"FeedLike",{enumerable:!0,get:function(){return f(l).default}});var u=n("1c782");Object.defineProperty(t,"FeedMeta",{enumerable:!0,get:function(){return f(u).default}});var d=n("fe12");Object.defineProperty(t,"FeedSummary",{enumerable:!0,get:function(){return f(d).default}});var h=n("4d6f");function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"FeedUser",{enumerable:!0,get:function(){return f(h).default}})},"20ec":function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},"20fd":function(e,t,n){"use strict";var i=n("d9f6"),r=n("aebd");e.exports=function(e,t,n){t in e?i.f(e,t,r(0,n)):e[t]=n}},2106:function(e,t,n){"use strict";(function(n){var i,r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function g(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return b(e,null==t?n.path:t)}},n.exports),n.exports}function b(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var v="2.0.0",w=256,y=Number.MAX_SAFE_INTEGER||9007199254740991,_=16,E={SEMVER_SPEC_VERSION:v,MAX_LENGTH:w,MAX_SAFE_INTEGER:y,MAX_SAFE_COMPONENT_LENGTH:_},x="object"===("undefined"==typeof n?"undefined":o(n))&&Object({NODE_ENV:"production",VUE_APP_NEXT_SERVICES_URL:"https://next-services.emg-digital.com",VUE_APP_REDIRECT_AUTH:"https://next-console.emg-digital.com/callback",VUE_APP_REDIRECT_LOGOUT:"https://next-console.emg-digital.com/",BASE_URL:"/"})&&Object({NODE_ENV:"production",VUE_APP_NEXT_SERVICES_URL:"https://next-services.emg-digital.com",VUE_APP_REDIRECT_AUTH:"https://next-console.emg-digital.com/callback",VUE_APP_REDIRECT_LOGOUT:"https://next-console.emg-digital.com/",BASE_URL:"/"}).NODE_DEBUG&&/\bsemver\b/i.test(Object({NODE_ENV:"production",VUE_APP_NEXT_SERVICES_URL:"https://next-services.emg-digital.com",VUE_APP_REDIRECT_AUTH:"https://next-console.emg-digital.com/callback",VUE_APP_REDIRECT_LOGOUT:"https://next-console.emg-digital.com/",BASE_URL:"/"}).NODE_DEBUG)?function(){for(var e,t=arguments.length,n=new Array(t),i=0;i)?=?)"),e("XRANGEIDENTIFIERLOOSE","".concat(r[o.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),e("XRANGEIDENTIFIER","".concat(r[o.NUMERICIDENTIFIER],"|x|X|\\*")),e("XRANGEPLAIN","[v=\\s]*(".concat(r[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(r[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(r[o.XRANGEIDENTIFIER],")")+"(?:".concat(r[o.PRERELEASE],")?").concat(r[o.BUILD],"?")+")?)?"),e("XRANGEPLAINLOOSE","[v=\\s]*(".concat(r[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(r[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(r[o.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(r[o.PRERELEASELOOSE],")?").concat(r[o.BUILD],"?")+")?)?"),e("XRANGE","^".concat(r[o.GTLT],"\\s*").concat(r[o.XRANGEPLAIN],"$")),e("XRANGELOOSE","^".concat(r[o.GTLT],"\\s*").concat(r[o.XRANGEPLAINLOOSE],"$")),e("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),e("COERCERTL",r[o.COERCE],!0),e("LONETILDE","(?:~>?)"),e("TILDETRIM","(\\s*)".concat(r[o.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",e("TILDE","^".concat(r[o.LONETILDE]).concat(r[o.XRANGEPLAIN],"$")),e("TILDELOOSE","^".concat(r[o.LONETILDE]).concat(r[o.XRANGEPLAINLOOSE],"$")),e("LONECARET","(?:\\^)"),e("CARETTRIM","(\\s*)".concat(r[o.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",e("CARET","^".concat(r[o.LONECARET]).concat(r[o.XRANGEPLAIN],"$")),e("CARETLOOSE","^".concat(r[o.LONECARET]).concat(r[o.XRANGEPLAINLOOSE],"$")),e("COMPARATORLOOSE","^".concat(r[o.GTLT],"\\s*(").concat(r[o.LOOSEPLAIN],")$|^$")),e("COMPARATOR","^".concat(r[o.GTLT],"\\s*(").concat(r[o.FULLPLAIN],")$|^$")),e("COMPARATORTRIM","(\\s*)".concat(r[o.GTLT],"\\s*(").concat(r[o.LOOSEPLAIN],"|").concat(r[o.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",e("HYPHENRANGE","^\\s*(".concat(r[o.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(r[o.XRANGEPLAIN],")")+"\\s*$"),e("HYPHENRANGELOOSE","^\\s*(".concat(r[o.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(r[o.XRANGEPLAINLOOSE],")")+"\\s*$"),e("STAR","(<|>)?=?\\s*\\*"),e("GTE0","^\\s*>=\\s*0.0.0\\s*$"),e("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})),O=/^[0-9]+$/,C=function(e,t){var n=O.test(e),i=O.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i||(!i||n)&&eP)throw new TypeError("version is longer than ".concat(P," characters"));if(k("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,!(n=t.trim().match(n.loose?R[M.LOOSE]:R[M.FULL])))throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>I||this.major<0)throw new TypeError("Invalid major version");if(this.minor>I||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>I||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(0<=t&&tL)return null;if(!(t.loose?V[B.LOOSE]:V[B.FULL]).test(e))return null;try{return new D(e,t)}catch(e){return null}},z=F,$=function(e,t){return(t=z(e,t))?t.version:null},U=$,H=function(e,t){return(t=z(e.trim().replace(/^[=v]+/,""),t))?t.version:null},q=H,W=function(e,t,n,i){"string"==typeof n&&(i=n,n=void 0);try{return new D(e,n).inc(t,i).version}catch(e){return null}},G=W,Y=function(e,t,n){return new D(e,n).compare(new D(t,n))},K=Y,X=function(e,t,n){return 0===K(e,t,n)},J=X,Q=function(e,t){if(J(e,t))return null;var n,i=z(e),r=z(t),o=(t=i.prerelease.length||r.prerelease.length)?"pre":"";t=t?"prerelease":"";for(n in i)if(("major"===n||"minor"===n||"patch"===n)&&i[n]!==r[n])return o+n;return t},Z=Q,ee=function(e,t){return new D(e,t).major},te=ee,ne=function(e,t){return new D(e,t).minor},ie=ne,re=function(e,t){return new D(e,t).patch},oe=re,se=function(e,t){return(t=z(e,t))&&t.prerelease.length?t.prerelease:null},ae=se,ce=function(e,t,n){return K(t,e,n)},le=ce,ue=function(e,t){return K(e,t,!0)},de=ue,he=function(e,t,n){return e=new D(e,n),n=new D(t,n),e.compare(n)||e.compareBuild(n)},fe=he,pe=function(e,t){return e.sort((function(e,n){return fe(e,n,t)}))},me=pe,ge=function(e,t){return e.sort((function(e,n){return fe(n,e,t)}))},be=ge,ve=function(e,t,n){return 0":return we(e,n,i);case">=":return Ae(e,n,i);case"<":return _e(e,n,i);case"<=":return Ce(e,n,i);default:throw new TypeError("Invalid operator: ".concat(t))}},Se=Te,Pe=A.re,Ie=A.t,Re=function(e,t){if(e instanceof D)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var n,i=null;if((t=t||{}).rtl){for(;(n=Pe[Ie.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&n.index+n[0].length===i.index+i[0].length||(i=n),Pe[Ie.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Pe[Ie.COERCERTL].lastIndex=-1}else i=e.match(Pe[Ie.COERCE]);return null===i?null:z("".concat(i[2],".").concat(i[3]||"0",".").concat(i[4]||"0"),t)},Me=Re,je=function(){function e(t,n){var i=this;if(s(this,e),n&&"object"===o(n)||(n={loose:!!n,includePrerelease:!1}),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof nt)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((function(e){return i.parseRange(e.trim())})).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(t));this.format()}return c(e,[{key:"format",value:function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(e){var t=this,n=this.options.loose;e=e.trim();var i=n?De[Le.HYPHENRANGELOOSE]:De[Le.HYPHENRANGE];e=e.replace(i,Qe(this.options.includePrerelease)),k("hyphen replace",e),e=e.replace(De[Le.COMPARATORTRIM],Ve),k("comparator trim",e,De[Le.COMPARATORTRIM]),e=(e=(e=e.replace(De[Le.TILDETRIM],Be)).replace(De[Le.CARETTRIM],Fe)).split(/\s+/).join(" ");var r=n?De[Le.COMPARATORLOOSE]:De[Le.COMPARATOR];return e.split(" ").map((function(e){return $e(e,t.options)})).join(" ").split(/\s+/).map((function(e){return Je(e,t.options)})).filter(this.options.loose?function(e){return!!e.match(r)}:function(){return!0}).map((function(e){return new nt(e,t.options)}))}},{key:"intersects",value:function(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((function(e){return ze(e,n)&&t.set.some((function(t){return ze(t,n)&&e.every((function(e){return t.every((function(t){return e.intersects(t,n)}))}))}))}))}},{key:"test",value:function(e){if(!e)return!1;if("string"==typeof e)try{e=new D(e,this.options)}catch(e){return!1}for(var t=0;t=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):Ue(r)?">=".concat(n,".").concat(i,".0 <").concat(n,".").concat(+i+1,".0-0"):o?(k("replaceTilde pr",o),">=".concat(n,".").concat(i,".").concat(r,"-").concat(o," <").concat(n,".").concat(+i+1,".0-0")):">=".concat(n,".").concat(i,".").concat(r," <").concat(n,".").concat(+i+1,".0-0"),k("tilde return",i),i}))},We=function(e,t){return e.trim().split(/\s+/).map((function(e){return Ge(e,t)})).join(" ")},Ge=function(e,t){k("caret",e,t);var n=t.loose?De[Le.CARETLOOSE]:De[Le.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,(function(t,n,r,o,s){return k("caret",e,t,n,r,o,s),n=Ue(n)?"":Ue(r)?">=".concat(n,".0.0").concat(i," <").concat(+n+1,".0.0-0"):Ue(o)?"0"===n?">=".concat(n,".").concat(r,".0").concat(i," <").concat(n,".").concat(+r+1,".0-0"):">=".concat(n,".").concat(r,".0").concat(i," <").concat(+n+1,".0.0-0"):s?(k("replaceCaret pr",s),"0"===n?"0"===r?">=".concat(n,".").concat(r,".").concat(o,"-").concat(s," <").concat(n,".").concat(r,".").concat(+o+1,"-0"):">=".concat(n,".").concat(r,".").concat(o,"-").concat(s," <").concat(n,".").concat(+r+1,".0-0"):">=".concat(n,".").concat(r,".").concat(o,"-").concat(s," <").concat(+n+1,".0.0-0")):(k("no pr"),"0"===n?"0"===r?">=".concat(n,".").concat(r,".").concat(o).concat(i," <").concat(n,".").concat(r,".").concat(+o+1,"-0"):">=".concat(n,".").concat(r,".").concat(o).concat(i," <").concat(n,".").concat(+r+1,".0-0"):">=".concat(n,".").concat(r,".").concat(o," <").concat(+n+1,".0.0-0")),k("caret return",n),n}))},Ye=function(e,t){return k("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return Ke(e,t)})).join(" ")},Ke=function(e,t){e=e.trim();var n=t.loose?De[Le.XRANGELOOSE]:De[Le.XRANGE];return e.replace(n,(function(n,i,r,o,s,a){k("xRange",e,n,i,r,o,s,a);var c=Ue(r),l=c||Ue(o),u=l||Ue(s);return"="===i&&u&&(i=""),a=t.includePrerelease?"-0":"",c?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&u?(l&&(o=0),s=0,">"===i?(i=">=",s=l?(r=+r+1,o=0):(o=+o+1,0)):"<="===i&&(i="<",l?r=+r+1:o=+o+1),"<"===i&&(a="-0"),n="".concat(i+r,".").concat(o,".").concat(s).concat(a)):l?n=">=".concat(r,".0.0").concat(a," <").concat(+r+1,".0.0-0"):u&&(n=">=".concat(r,".").concat(o,".0").concat(a," <").concat(r,".").concat(+o+1,".0-0")),k("xRange return",n),n}))},Xe=function(e,t){return k("replaceStars",e,t),e.trim().replace(De[Le.STAR],"")},Je=function(e,t){return k("replaceGTE0",e,t),e.trim().replace(De[t.includePrerelease?Le.GTE0PRE:Le.GTE0],"")},Qe=function(e){return function(t,n,i,r,o,s,a,c,l,u,d,h,f){return n=Ue(i)?"":Ue(r)?">=".concat(i,".0.0").concat(e?"-0":""):Ue(o)?">=".concat(i,".").concat(r,".0").concat(e?"-0":""):s?">=".concat(n):">=".concat(n).concat(e?"-0":""),c=Ue(l)?"":Ue(u)?"<".concat(+l+1,".0.0-0"):Ue(d)?"<".concat(l,".").concat(+u+1,".0-0"):h?"<=".concat(l,".").concat(u,".").concat(d,"-").concat(h):e?"<".concat(l,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(c),"".concat(n," ").concat(c).trim()}},Ze=function(e,t,n){for(var i=0;i="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),s=this.semver.version===t.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),c=Se(this.semver,"<",t.semver,n)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator);t=Se(this.semver,">",t.semver,n)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return i||r||s&&a||c||t}}]),e}(),nt=tt,it=A.re,rt=A.t,ot=function(e,t,n){try{t=new Ne(t,n)}catch(e){return!1}return t.test(e)},st=ot,at=function(e,t){return new Ne(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ct=function(e,t,n){var i=null,r=null,o=null;try{o=new Ne(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(i&&-1!==r.compare(e)||(r=new D(i=e,n)))})),i},lt=function(e,t,n){var i=null,r=null,o=null;try{o=new Ne(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(i&&1!==r.compare(e)||(r=new D(i=e,n)))})),i},ut=function(e,t){e=new Ne(e,t);var n=new D("0.0.0");if(e.test(n))return n;if(n=new D("0.0.0-0"),e.test(n))return n;n=null;for(var i=0;i":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!we(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: ".concat(e.operator))}}));return n&&e.test(n)?n:null},dt=function(e,t){try{return new Ne(e,t).range||"*"}catch(e){return null}},ht=nt.ANY,ft=function(e,t,n,i){var r,s,a,c,l;switch(e=new D(e,i),t=new Ne(t,i),n){case">":r=we,s=Ce,a=_e,c=">",l=">=";break;case"<":r=_e,s=Ae,a=we,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(st(e,t,i))return!1;for(var u=0;u=0.0.0")),o=o||e,u=u||e,r(e.semver,o.semver,i)?o=e:a(e.semver,u.semver,i)&&(u=e)})),o.operator===c||o.operator===l||(!u.operator||u.operator===c)&&s(e,u.semver)||u.operator===l&&a(e,u.semver)?{v:!1}:void 0}(u);if("object"===o(d))return d.v}return!0},pt=ft,mt=function(e,t,n){return pt(e,t,">",n)},gt=function(e,t,n){return pt(e,t,"<",n)},bt=function(e,t,n){return e=new Ne(e,n),t=new Ne(t,n),e.intersects(t)},vt=function(e,t,n){var i=[],r=null,o=null,s=e.sort((function(e,t){return K(e,t,n)})),a=m(s);try{for(a.s();!(c=a.n()).done;){var c=c.value;r=st(c,t,n)?(o=c,r||c):(o&&i.push([r,o]),o=null)}}catch(e){a.e(e)}finally{a.f()}r&&i.push([r,null]);for(var u=[],d=0,h=i;d=".concat(p)):u.push("*")}var g=u.join(" || ");e="string"==typeof t.raw?t.raw:String(t);return g.length"===c.operator||">="===c.operator?i=Et(i,c,n):"<"===c.operator||"<="===c.operator?r=xt(r,c,n):s.add(c.semver)}}catch(e){a.e(e)}finally{a.f()}if(1="!==i.operator||"<="!==r.operator))return null}var l,u=m(s);try{for(u.s();!(l=u.n()).done;){var d=l.value;if(i&&!st(d,String(i),n))return null;if(r&&!st(d,String(r),n))return null;var h=m(t);try{for(h.s();!(f=h.n()).done;){var f=f.value;if(!st(d,String(f),n))return!1}}catch(e){h.e(e)}finally{h.f()}return!0}}catch(e){u.e(e)}finally{u.f()}var p=m(t);try{for(p.s();!(g=p.n()).done;){var g=g.value,b=b||">"===g.operator||">="===g.operator,v=v||"<"===g.operator||"<="===g.operator;if(i)if(">"===g.operator||">="===g.operator){if(Et(i,g,n)===g)return!1}else if(">="===i.operator&&!st(i.semver,String(g),n))return!1;if(r)if("<"===g.operator||"<="===g.operator){if(xt(r,g,n)===g)return!1}else if("<="===r.operator&&!st(r.semver,String(g),n))return!1;if(!g.operator&&(r||i)&&0!==o)return!1}}catch(e){p.e(e)}finally{p.f()}return!(i&&v&&!r&&0!==o||r&&b&&!i&&0!==o)},Et=function(e,t,n){return e&&(0<(n=K(e.semver,t.semver,n))||!(n<0||">"===t.operator&&">="===e.operator))?e:t},xt=function(e,t,n){return e&&((n=K(e.semver,t.semver,n))<0||!(0>>2]>>>24-o%4*8&255;t[i+o>>>2]|=s<<24-(i+o)%4*8}else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,i=[],r=function(t){t=t;var n=987654321,i=4294967295;return function(){n=36969*(65535&n)+(n>>16)&i,t=18e3*(65535&t)+(t>>16)&i;var r=(n<<16)+t&i;return r/=4294967296,r+=.5,r*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new s.init(n,t/2)}},l=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new s.init(n,t)}},u=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,r=n.sigBytes,o=this.blockSize,a=4*o,c=r/a;c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0);var l=c*o,u=e.min(4*l,r);if(l){for(var d=0;d{"transparent"!=t.type&&t!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch()),this._batch}input(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(e){this.isLocked&&!e||(this._batch=null,this.size=0)}}},"21e3":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("a242"),r=n("0520"),o=n("0798"),s=n("7f09"),a=n("5ab6"),c=n("5230"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class l extends i["i"]{static get requires(){return[r["a"],c["a"],o["a"],s["a"],a["a"]]}}},2260:function(e,t,n){},2280:function(e,t,n){(function(){var t;t=n("065e"),n("92e7"),e.exports=function(){function e(e,n,i){if(this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==n)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(i),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(e.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(e.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(e.prototype,"specified",{get:function(){return!0}}),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))},e.prototype.debugInfo=function(e){return e=e||this.name,null==e?"parent: <"+this.parent.name+">":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&(e.prefix===this.prefix&&(e.localName===this.localName&&e.value===this.value))},e}()}).call(this)},2286:function(e,t,n){var i=n("85e3"),r=Math.max;function o(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){var o=arguments,s=-1,a=r(o.length-t,0),c=Array(a);while(++s0?n("div",{staticClass:"root_elem"},[1===e.elem.nodeType&&e.isText?n("div",[n("span",{staticClass:"xml-tree-tag"},[e._v("<"+e._s(e.elem.nodeName))]),e.elem.hasAttributes()?n("span",e._l(e.elem.attributes,(function(t,i){return n("span",{key:i},[n("span",{staticClass:"xml-tree-attr"},[e._v(" "+e._s(t.name))]),n("span",[e._v("=")]),n("span",{staticClass:"xml-tree-attr"},[e._v('"'+e._s(t.value)+'"')])])})),0):e._e(),n("span",{staticClass:"xml-tree-tag"},[e._v(">")]),n("span",[e._v(e._s(this.children[0].data.trim()))]),n("span",{staticClass:"xml-tree-tag"},[e._v("")])]):n("div",[1===e.elem.nodeType?n("span",[n("span",{staticClass:"xml-tree-tag"},[e._v("<"+e._s(e.elem.nodeName))]),e.elem.hasAttributes()?n("span",e._l(e.elem.attributes,(function(t,i){return n("span",{key:i},[n("span",{staticClass:"xml-tree-attr"},[e._v(" "+e._s(t.name))]),n("span",[e._v("=")]),n("span",{staticClass:"xml-tree-attr"},[e._v('"'+e._s(t.value)+'"')])])})),0):e._e(),n("span",{staticClass:"xml-tree-tag"},[e._v(">")]),e.show?n("span",{staticStyle:{cursor:"pointer"},on:{click:function(t){e.show=!1}}},[e._t("hide",[e._v("-")])],2):n("span",{staticStyle:{cursor:"pointer"},on:{click:function(t){e.show=!0}}},[e._t("expand",[e._v("+")])],2)]):e._e(),e.show?n("div",[3===e.elem.nodeType?n("span",[e._v("\n "+e._s(e.elem.data.trim())+"\n ")]):e._e(),e._l(e.children,(function(t,i){return n("div",{key:i},[n("v-xml-tree",{attrs:{element:t},scopedSlots:e._u([{key:"expand",fn:function(){return[e._t("expand")]},proxy:!0},{key:"hide",fn:function(){return[e._t("hide")]},proxy:!0},{key:"more",fn:function(){return[e._t("more")]},proxy:!0}],null,!0)})],1)}))],2):e._t("more",[e._v("...")]),1===e.elem.nodeType?n("span",[n("span",{staticClass:"xml-tree-tag"},[e._v("")])]):e._e()],2)]):e._e()])},o=[],s={name:"vXmlTree",props:{xmlData:String,element:{type:[Element,Text],default:void 0}},computed:{elem:function(){if(this.element)return this.element;var e=new DOMParser,t=e.parseFromString(this.xmlData,"text/xml");return t.documentElement},children:function(){var e=[],t=this.elem.firstChild;while(t)e.push(t),t=t.nextSibling;return e},isText:function(){return 1==this.children.length&&3==this.children[0].nodeType}},data:function(){return{show:!0}}},a=s;function c(e,t,n,i,r,o,s,a){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),s?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}var l=c(a,r,o,!1,null,null,null),u=l.exports;t["default"]=u}})["default"]},"22ec":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("4fdd"),r=n("a242"),o=n("3f61"),s=n("56ea"),a=n("3f9f"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class c extends r["i"]{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(e){const t=e.parent,n=t.parent,i=n.getChildIndex(t),r=new o["a"](n,{row:i});for(const{cell:o,row:s,column:a}of r)if(o===e)return{row:s,column:a}}createTable(e,t){const n=e.createElement("table"),i=parseInt(t.rows)||2,r=parseInt(t.columns)||2;return l(e,n,0,i,r),t.headingRows&&Object(s["c"])("headingRows",Math.min(t.headingRows,i),n,e,0),t.headingColumns&&Object(s["c"])("headingColumns",Math.min(t.headingColumns,r),n,e,0),n}insertRows(e,t={}){const n=this.editor.model,r=t.at||0,a=t.rows||1,c=void 0!==t.copyStructureFromAbove,u=t.copyStructureFromAbove?r-1:r,d=this.getRows(e),h=this.getColumns(e);if(r>d)throw new i["a"]("tableutils-insertrows-insert-out-of-range",this,{options:t});n.change(t=>{const n=e.getAttribute("headingRows")||0;if(n>r&&Object(s["c"])("headingRows",n+a,e,t,0),!c&&(0===r||r===d))return void l(t,e,r,a,h);const i=c?Math.max(r,u):r,f=new o["a"](e,{endRow:i}),p=new Array(h).fill(1);for(const{row:e,column:o,cellHeight:s,cellWidth:l,cell:d}of f){const n=e+s-1,i=e0&&Object(s["a"])(t,r,i>1?{colspan:i}:null),e+=Math.abs(i)-1}}})}insertColumns(e,t={}){const n=this.editor.model,i=t.at||0,r=t.columns||1;n.change(t=>{const n=e.getAttribute("headingColumns");io-1)throw new i["a"]("tableutils-removerows-row-index-out-of-range",this,{table:e,options:t});n.change(t=>{const{cellsToMove:n,cellsToTrim:i}=p(e,c,l);if(n.size){const i=l+1;m(e,i,n,t)}for(let r=l;r>=c;r--)t.remove(e.getChild(r));for(const{rowspan:e,cell:r}of i)Object(s["c"])("rowspan",e,r,t);f(e,c,l,t),Object(a["f"])(e,this)||Object(a["g"])(e,this)})}removeColumns(e,t){const n=this.editor.model,i=t.at,r=t.columns||1,c=t.at+r-1;n.change(t=>{h(e,{first:i,last:c},t);for(let n=c;n>=i;n--)for(const{cell:i,column:r,cellWidth:a}of[...new o["a"](e)])r<=n&&a>1&&r+a>n?Object(s["c"])("colspan",a-1,i,t):r===n&&t.remove(i);Object(a["g"])(e,this)||Object(a["f"])(e,this)})}splitCellVertically(e,t=2){const n=this.editor.model,i=e.parent,r=i.parent,a=parseInt(e.getAttribute("rowspan")||1),c=parseInt(e.getAttribute("colspan")||1);n.change(n=>{if(c>1){const{newCellsSpan:i,updatedSpan:r}=d(c,t);Object(s["c"])("colspan",r,e,n);const o={};i>1&&(o.colspan=i),a>1&&(o.rowspan=a);const l=c>t?t-1:c-1;u(l,n,n.createPositionAfter(e),o)}if(ct===e),h=l.filter(({cell:t,cellWidth:n,column:i})=>{const r=t!==e&&i===d,o=id;return r||o});for(const{cell:e,cellWidth:t}of h)n.setAttribute("colspan",t+i,e);const f={};a>1&&(f.rowspan=a),u(i,n,n.createPositionAfter(e),f);const p=r.getAttribute("headingColumns")||0;p>d&&Object(s["c"])("headingColumns",p+i,r,n)}})}splitCellHorizontally(e,t=2){const n=this.editor.model,i=e.parent,r=i.parent,a=r.getChildIndex(i),c=parseInt(e.getAttribute("rowspan")||1),h=parseInt(e.getAttribute("colspan")||1);n.change(n=>{if(c>1){const i=[...new o["a"](r,{startRow:a,endRow:a+c-1,includeAllSlots:!0})],{newCellsSpan:l,updatedSpan:f}=d(c,t);Object(s["c"])("rowspan",f,e,n);const{column:p}=i.find(({cell:t})=>t===e),m={};l>1&&(m.rowspan=l),h>1&&(m.colspan=h);for(const e of i){const{column:t,row:i}=e,r=i>=a+f,o=t===p,s=(i+a+f)%l===0;r&&o&&s&&u(1,n,e.getPositionBefore(),m)}}if(ca){const e=r+i;n.setAttribute("rowspan",e,t)}const d={};h>1&&(d.colspan=h),l(n,r,a+1,i,1,d);const f=r.getAttribute("headingRows")||0;f>a&&Object(s["c"])("headingRows",f+i,r,n)}})}getColumns(e){const t=e.getChild(0);return[...t.getChildren()].reduce((e,t)=>{const n=parseInt(t.getAttribute("colspan")||1);return e+n},0)}getRows(e){return Array.from(e.getChildren()).reduce((e,t)=>t.is("element","tableRow")?e+1:e,0)}}function l(e,t,n,i,r,o={}){for(let s=0;s=t&&s<=n&&e>n;if(o){const e=n-s+1,t=c-e;i.set(a,{cell:l,rowspan:t})}const u=s=t;if(u){let i;i=e>=n?n-t+1:e-t+1,r.push({cell:l,rowspan:c-i})}}return{cellsToMove:i,cellsToTrim:r}}function m(e,t,n,i){const r=new o["a"](e,{includeAllSlots:!0,row:t}),a=[...r],c=e.getChild(t);let l;for(const{column:o,cell:u,isAnchor:d}of a)if(n.has(o)){const{cell:e,rowspan:t}=n.get(o),r=l?i.createPositionAfter(l):i.createPositionAt(c,0);i.move(i.createRangeOn(e),r),Object(s["c"])("rowspan",t,e,i),l=e}else d&&(l=u)}},2332:function(e,t,n){"use strict";function i(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t["a"]=i},"233a":function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var i=n("a242"),r=n("553a"),o=n("5595"),s=n("f6a7"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ function a(e){for(const t of e.getChildren())if(t&&t.is("element","caption"))return t;return null}function c(e,t){const n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}function l(e,t){return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class u extends i["a"]{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils");if(!e.plugins.has(s["a"]))return this.isEnabled=!1,void(this.value=!1);const n=e.model.document.selection,i=n.getSelectedElement();if(!i){const e=c(t,n);return this.isEnabled=!!e,void(this.value=!!e)}this.isEnabled=this.editor.plugins.get("ImageUtils").isImage(i),this.isEnabled?this.value=!!a(i):this.value=!1}execute(e={}){const{focusCaptionOnShow:t}=e;this.editor.model.change(e=>{this.value?this._hideImageCaption(e):this._showImageCaption(e,t)})}_showImageCaption(e,t){const n=this.editor.model,i=n.document.selection,r=this.editor.plugins.get("ImageCaptionEditing");let o=i.getSelectedElement();const s=r._getSavedCaption(o);this.editor.plugins.get("ImageUtils").isInlineImage(o)&&(this.editor.execute("imageTypeBlock"),o=i.getSelectedElement());const a=s||e.createElement("caption");e.append(a,o),t&&e.setSelection(a,"in")}_hideImageCaption(e){const t=this.editor,n=t.model.document.selection,i=t.plugins.get("ImageCaptionEditing"),r=t.plugins.get("ImageUtils");let o,s=n.getSelectedElement();s?o=a(s):(o=c(r,n),s=o.parent),i._saveCaption(s,o),e.setSelection(s,"on"),e.remove(o)}}var d=n("6e4c"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class h extends i["i"]{static get requires(){return[d["a"]]}static get pluginName(){return"ImageCaptionEditing"}constructor(e){super(e),this._savedCaptionsMap=new WeakMap}init(){const e=this.editor,t=e.model.schema;t.isRegistered("caption")?t.extend("caption",{allowIn:"imageBlock"}):t.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleImageCaption",new u(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration()}_setupConversion(){const e=this.editor,t=e.editing.view,n=e.plugins.get("ImageUtils"),i=e.t;e.conversion.for("upcast").elementToElement({view:e=>l(n,e),model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>{return n.isBlockImage(e.parent)?t.createContainerElement("figcaption"):null}}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(e,{writer:s})=>{if(!n.isBlockImage(e.parent))return null;const a=s.createEditableElement("figcaption");return s.setCustomProperty("imageCaption",!0,a),Object(r["q"])({view:t,element:a,text:i("Enter image caption"),keepOnFocus:!0}),Object(o["g"])(a,s)}}),e.editing.mapper.on("modelToViewPosition",f(t)),e.data.mapper.on("modelToViewPosition",f(t))}_setupImageTypeCommandsIntegration(){const e=this.editor,t=e.plugins.get("ImageUtils"),n=e.commands.get("imageTypeInline"),i=e.commands.get("imageTypeBlock"),r=e=>{if(!e.return)return;const{oldElement:n,newElement:i}=e.return;if(!n)return;if(t.isBlockImage(n)){const e=a(n);if(e)return void this._saveCaption(i,e)}const r=this._getSavedCaption(n);r&&this._saveCaption(i,r)};n&&this.listenTo(n,"execute",r,{priority:"low"}),i&&this.listenTo(i,"execute",r,{priority:"low"})}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?r["d"].fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}}function f(e){return(t,n)=>{const i=n.modelPosition,r=i.parent;if(!r.is("element","imageBlock"))return;const o=n.mapper.toViewElement(r);n.viewPosition=e.createPositionAt(o,i.offset+1)}}var p=n("02d4"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class m extends i["i"]{static get requires(){return[d["a"]]}static get pluginName(){return"ImageCaptionUI"}init(){const e=this.editor,t=e.editing.view,n=e.plugins.get("ImageUtils"),r=e.t;e.ui.componentFactory.add("toggleImageCaption",o=>{const s=e.commands.get("toggleImageCaption"),a=new p["c"](o);return a.set({icon:i["k"].caption,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(s,"value","isEnabled"),a.bind("label").to(s,"value",e=>r(e?"Toggle caption off":"Toggle caption on")),this.listenTo(a,"execute",()=>{e.execute("toggleImageCaption",{focusCaptionOnShow:!0});const i=c(n,e.model.document.selection);if(i){const n=e.editing.mapper.toViewElement(i);t.scrollToTheSelection(),t.change(e=>{e.addClass("image__caption_highlighted",n)})}}),a})}}n("c44c"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class g extends i["i"]{static get requires(){return[h,m]}static get pluginName(){return"ImageCaption"}}},"234d":function(e,t,n){var i=n("e380"),r=500;function o(e){var t=i(e,(function(e){return n.size===r&&n.clear(),e})),n=t.cache;return t}e.exports=o},2363:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("f2ea"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r{constructor(e,t,n){if(this.textNode=e,t<0||t>e.offsetSize)throw new i["a"]("model-textproxy-wrong-offsetintext",this);if(n<0||t+n>e.offsetSize)throw new i["a"]("model-textproxy-wrong-length",this);this.data=e.data.substring(t,t+n),this.offsetInText=t}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e}getPath(){const e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(e={includeSelf:!1,parentFirst:!1}){const t=[];let n=e.includeSelf?this:this.parent;while(n)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}},"241e":function(e,t,n){var i=n("25eb");e.exports=function(e){return Object(i(e))}},"242e":function(e,t,n){var i=n("72af"),r=n("ec69");function o(e,t){return e&&i(e,t,r)}e.exports=o},2430:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var i=n("a242"),r=n("ac6b"),o=n("5171"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class s extends i["i"]{static get requires(){return[r["a"]]}init(){if(!this.editor.plugins.has("CodeBlockEditing"))return;const e=this.editor.plugins.get(r["a"]);e.on("register:pre",(t,n)=>{if("codeBlock"!==n.model)return;const i=this.editor,r=i.model.schema,o=i.conversion;r.extend("codeBlock",{allowAttributes:["htmlAttributes","htmlContentAttributes"]}),o.for("upcast").add(a(e)),o.for("downcast").add(c()),t.stop()})}}function a(e){return t=>{t.on("element:code",(t,n,i)=>{const r=n.viewItem,o=r.parent;function s(t,r){const o=e._consumeAllowedAttributes(t,i);o&&i.writer.setAttribute(r,o,n.modelRange)}o&&o.is("element","pre")&&(s(o,"htmlAttributes"),s(r,"htmlContentAttributes"))},{priority:"low"})}}function c(){return e=>{e.on("attribute:htmlAttributes:codeBlock",(e,t,n)=>{if(!n.consumable.consume(t.item,e.name))return;const i=n.mapper.toViewElement(t.item),r=i.parent;Object(o["b"])(n.writer,t.attributeNewValue,r)}),e.on("attribute:htmlContentAttributes:codeBlock",(e,t,n)=>{if(!n.consumable.consume(t.item,e.name))return;const i=n.mapper.toViewElement(t.item);Object(o["b"])(n.writer,t.attributeNewValue,i)})}}var l=n("4fdd"),u=n("4503"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class d extends i["i"]{static get requires(){return[r["a"]]}init(){const e=this.editor.plugins.get(r["a"]);e.on("register",(e,t)=>{const n=this.editor,i=n.model.schema,r=n.conversion;if(!t.paragraphLikeModel)return;if(i.isRegistered(t.model)||i.isRegistered(t.paragraphLikeModel))return;const o={model:t.paragraphLikeModel,view:t.view};i.register(t.model,t.modelSchema),i.register(o.model,{inheritAllFrom:"$block"}),r.for("upcast").elementToElement({view:t.view,model:(e,{writer:n})=>{return this._hasBlockContent(e)?n.createElement(t.model):n.createElement(o.model)},converterPriority:l["u"].get("low")+1}),r.for("downcast").elementToElement({view:t.view,model:t.model}),this._addAttributeConversion(t),r.for("downcast").elementToElement({view:o.view,model:o.model}),this._addAttributeConversion(o),e.stop()})}_hasBlockContent(e){const t=this.editor.editing.view.domConverter.blockElements;return Array.from(e.getChildren()).some(e=>t.includes(e.name))}_addAttributeConversion(e){const t=this.editor,n=t.conversion,i=t.plugins.get(r["a"]);t.model.schema.extend(e.model,{allowAttributes:"htmlAttributes"}),n.for("upcast").add(Object(u["f"])(e,i)),n.for("downcast").add(Object(u["c"])(e))}}var h=n("8499"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class f extends i["i"]{static get requires(){return[h["a"]]}init(){const e=this.editor;if(!e.plugins.has("HeadingEditing"))return;const t=e.plugins.get(h["a"]),n=e.config.get("heading.options"),i=[];for(const r of n)"model"in r&&"view"in r&&(t.registerBlockElement({view:r.view,model:r.model}),i.push(r.model));t.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:i}})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class p extends i["i"]{static get requires(){return[r["a"]]}init(){const e=this.editor;if(!e.plugins.has("ImageInlineEditing")&&!e.plugins.has("ImageBlockEditing"))return;const t=e.model.schema,n=e.conversion,i=e.plugins.get(r["a"]);i.on("register:img",(e,r)=>{"imageBlock"!==r.model&&"imageInline"!==r.model||(t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["htmlAttributes","htmlFigureAttributes","htmlLinkAttributes"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["htmlA","htmlAttributes"]}),n.for("upcast").add(m(i)),n.for("downcast").add(g()),e.stop())})}}function m(e){return t=>{t.on("element:img",(t,n,i)=>{const r=n.viewItem,o=r.parent;function s(t,r){const o=e._consumeAllowedAttributes(t,i);o&&i.writer.setAttribute(r,o,n.modelRange)}function a(e){n.modelRange&&n.modelRange.getContainedElement().is("element","imageBlock")&&s(e,"htmlLinkAttributes"),e.parent.is("element","figure")&&s(e.parent,"htmlFigureAttributes")}s(r,"htmlAttributes"),o.is("element","figure")?s(o,"htmlFigureAttributes"):o.is("element","a")&&a(o)},{priority:"low"})}}function g(){return e=>{function t(t){e.on(`attribute:${t}:imageInline`,(e,t,n)=>{if(!n.consumable.consume(t.item,e.name))return;const i=n.mapper.toViewElement(t.item);Object(o["b"])(n.writer,t.attributeNewValue,i)},{priority:"low"})}function n(t,n){e.on(`attribute:${n}:imageBlock`,(e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const r=i.mapper.toViewElement(n.item),s=b(i.writer,r,t);Object(o["b"])(i.writer,n.attributeNewValue,s)},{priority:"low"})}function i(){e.on("attribute:linkHref:imageBlock",(e,t,n)=>{if(!n.consumable.consume(t.item,"attribute:htmlLinkAttributes:imageBlock"))return;const i=n.mapper.toViewElement(t.item),r=b(n.writer,i,"a");Object(o["b"])(n.writer,t.item.getAttribute("htmlLinkAttributes"),r)},{priority:"low"})}t("htmlAttributes"),n("img","htmlAttributes"),n("figure","htmlFigureAttributes"),i()}}function b(e,t,n){const i=e.createRangeOn(t);for(const{item:r}of i.getWalker())if(r.is("element",n))return r} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class v extends i["i"]{static get requires(){return[r["a"]]}init(){const e=this.editor;if(!e.plugins.has("MediaEmbed")||e.config.get("mediaEmbed.previewsInData"))return;const t=e.model.schema,n=e.conversion,i=this.editor.plugins.get(r["a"]),o=this.editor.plugins.get(h["a"]),s=e.config.get("mediaEmbed.elementName");o.registerBlockElement({model:"media",view:s}),i.on(`register:${s}`,(e,r)=>{"media"===r.model&&(t.extend("media",{allowAttributes:["htmlAttributes","htmlFigureAttributes"]}),n.for("upcast").add(w(i,s)),n.for("dataDowncast").add(y(s)),e.stop())})}}function w(e,t){return e=>{e.on(`element:${t}`,n)};function n(t,n,i){const r=n.viewItem,o=r.parent;function s(t,r){const o=e._consumeAllowedAttributes(t,i);o&&i.writer.setAttribute(r,o,n.modelRange)}s(r,"htmlAttributes"),o.is("element","figure")&&o.hasClass("media")&&s(o,"htmlFigureAttributes")}}function y(e){return t=>{function n(e,n){t.on(`attribute:${n}:media`,(t,n,i)=>{if(!i.consumable.consume(n.item,t.name))return;const r=i.mapper.toViewElement(n.item),s=_(i.writer,r,e);Object(o["b"])(i.writer,n.attributeNewValue,s)})}n(e,"htmlAttributes"),n("figure","htmlFigureAttributes")}}function _(e,t,n){const i=e.createRangeOn(t);for(const{item:r}of i.getWalker())if(r.is("element",n))return r} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class E extends i["i"]{static get requires(){return[r["a"]]}init(){const e=this.editor;if(!e.plugins.has("TableEditing"))return;const t=e.model.schema,n=e.conversion,i=e.plugins.get(r["a"]);i.on("register:table",(e,r)=>{"table"===r.model&&(t.extend("table",{allowAttributes:["htmlAttributes","htmlFigureAttributes","htmlTheadAttributes","htmlTbodyAttributes"]}),n.for("upcast").add(x(i)),n.for("downcast").add(k()),e.stop())})}}function x(e){return t=>{t.on("element:table",(t,n,i)=>{const r=n.viewItem;s(r,"htmlAttributes");const o=r.parent;o.is("element","figure")&&s(o,"htmlFigureAttributes");for(const e of r.getChildren())e.is("element","thead")&&s(e,"htmlTheadAttributes"),e.is("element","tbody")&&s(e,"htmlTbodyAttributes");function s(t,r){const o=e._consumeAllowedAttributes(t,i);o&&i.writer.setAttribute(r,o,n.modelRange)}},{priority:"low"})}}function k(){return e=>{function t(t,n){e.on(`attribute:${n}:table`,(e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const r=i.mapper.toViewElement(n.item),s=A(i.writer,r,t);Object(o["b"])(i.writer,n.attributeNewValue,s)})}t("table","htmlAttributes"),t("figure","htmlFigureAttributes"),t("thead","htmlTheadAttributes"),t("tbody","htmlTbodyAttributes")}}function A(e,t,n){const i=e.createRangeOn(t);for(const{item:r}of i.getWalker())if(r.is("element",n))return r} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class O extends i["i"]{static get pluginName(){return"GeneralHtmlSupport"}static get requires(){return[r["a"],s,d,f,p,v,E]}init(){const e=this.editor,t=e.plugins.get(r["a"]);t.loadAllowedConfig(e.config.get("htmlSupport.allow")||[]),t.loadDisallowedConfig(e.config.get("htmlSupport.disallow")||[])}}},2444:function(e,t,n){"use strict";(function(t){var i=n("c532"),r=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function a(){var e;return"undefined"!==typeof XMLHttpRequest?e=n("b50d"):"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t)&&(e=n("b50d")),e}var c={adapter:a(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){c.headers[e]=i.merge(o)})),e.exports=c}).call(this,n("f28c"))},2450:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("9b57"),r=s(i),o=n("b9e9");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiTab",props:{menu:{type:Object,default:function(){return{attached:!0,tabular:!0}}},menuPosition:(0,o.Enum)(["left","right"],{description:"Menu Position"}),activeIndex:{type:[String,Number],default:0}},data:function(){return{tabs:[],activeTab:null}},computed:{tabMenu:function(){var e=this,t=this.$createElement;return t("sui-menu",{props:this.menu},[this.tabs.map((function(n){return t("a",{class:["item",{active:n.active,disabled:n.disabled}],on:{click:function(t){return e.openTab(t,n)}}},[n.icon&&t("sui-icon",{attrs:{name:n.icon}},[]),t("span",null,[n.title]),n.label&&t("sui-label",null,[n.label])])}))])}},watch:{activeIndex:function(e){this.openTab(null,this.tabs[+e])}},mounted:function(){if(!this.tabs.length)throw new Error("tab used without tab-pane");var e=this.tabs[this.activeIndex]||this.tabs[0];e.open(),this.activeTab=e},methods:{addTab:function(e){this.tabs.push(e)},openTab:function(e,t){if(!t.disabled){this.activeTab.close(),t.open();var n=this.tabs.indexOf(t);this.$emit("change",e,t,n),this.$emit("update:activeIndex",n),this.activeTab=t}}},render:function(){var e=arguments[0],t=this.$slots.default,n=[this.tabMenu,t];return"bottom"===this.menu.attached&&n.reverse(),this.menu.vertical&&(n=[e("sui-grid-column",{attrs:{width:4}},[this.tabMenu]),e("sui-grid-column",{attrs:{width:12},class:"stretched"},[t])],"right"!==this.menu.tabular&&"right"!==this.menuPosition||n.reverse(),n=e("sui-grid",null,[e("sui-grid-row",null,[n])])),e("div",null,[Array.isArray(n)?[].concat((0,r.default)(n)):n])}}},2474:function(e,t,n){var i=n("2b3e"),r=i.Uint8Array;e.exports=r},2478:function(e,t,n){var i=n("4245");function r(e){return i(this,e).get(e)}e.exports=r},2524:function(e,t,n){var i=n("6044"),r="__lodash_hash_undefined__";function o(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?r:t,this}e.exports=o},"253c":function(e,t,n){var i=n("3729"),r=n("1310"),o="[object Arguments]";function s(e){return r(e)&&i(e)==o}e.exports=s},2566:function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var i=n("a242"),r=n("4fdd"),o=n("553a"),s=n("31af"),a=n("ad0b"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class c extends s["a"]{constructor(e){super(e,a["d"])}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function l(e){return e.map(e=>d(e)).filter(e=>!!e)}const u={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function d(e){if(m(e))return f(e);const t=p(e);return t?f(t):"default"===e?{model:void 0,title:"Default"}:g(e)?void 0:h(e)}function h(e){return"number"!==typeof e&&"string"!==typeof e||(e={title:String(e),model:`${parseFloat(e)}px`}),e.view={name:"span",styles:{"font-size":e.model}},f(e)}function f(e){return e.view.priority||(e.view.priority=7),e}function p(e){return u[e]||u[e.model]}function m(e){return"object"===typeof e&&e.title&&e.model&&e.view}function g(e){let t;if("object"===typeof e){if(!e.model)throw new r["a"]("font-size-invalid-definition",null,e);t=parseFloat(e.model)}else t=parseFloat(e);return isNaN(t)} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */const b=["x-small","x-small","small","medium","large","x-large","xx-large","xxx-large"];class v extends i["i"]{static get pluginName(){return"FontSizeEditing"}constructor(e){super(e),e.config.define(a["d"],{options:["tiny","small","default","big","huge"],supportAllValues:!1})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:a["d"]}),e.model.schema.setAttributeProperties(a["d"],{isFormatting:!0,copyOnEnter:!0});const t=e.config.get("fontSize.supportAllValues"),n=l(this.editor.config.get("fontSize.options")).filter(e=>e.model),i=Object(a["f"])(a["d"],n);t?(this._prepareAnyValueConverters(i),this._prepareCompatibilityConverter()):e.conversion.attributeToElement(i),e.commands.add(a["d"],new c(e))}_prepareAnyValueConverters(e){const t=this.editor,n=e.model.values.filter(e=>{return!Object(o["t"])(String(e))&&!Object(o["u"])(String(e))});if(n.length)throw new r["a"]("font-size-invalid-use-of-named-presets",null,{presets:n});t.conversion.for("downcast").attributeToElement({model:a["d"],view:(e,{writer:t})=>{if(e)return t.createAttributeElement("span",{style:"font-size:"+e},{priority:7})}}),t.conversion.for("upcast").elementToAttribute({model:{key:a["d"],value:e=>e.getStyle("font-size")},view:{name:"span",styles:{"font-size":/.*/}}})}_prepareCompatibilityConverter(){const e=this.editor;e.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{size:/^[+-]?\d{1,3}$/}},model:{key:a["d"],value:e=>{const t=e.getAttribute("size"),n="-"===t[0]||"+"===t[0];let i=parseInt(t,10);n&&(i=3+i);const r=b.length-1,o=Math.min(Math.max(i,0),r);return b[o]}}})}}var w=n("02d4"),y=n("7de4"),_=n.n(y);n("da88"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class E extends i["i"]{static get pluginName(){return"FontSizeUI"}init(){const e=this.editor,t=e.t,n=this._getLocalizedOptions(),i=e.commands.get(a["d"]);e.ui.componentFactory.add(a["d"],r=>{const o=Object(w["E"])(r);return Object(w["B"])(o,x(n,i)),o.buttonView.set({label:t("Font Size"),icon:_.a,tooltip:!0}),o.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),o.bind("isEnabled").to(i),this.listenTo(o,"execute",t=>{e.execute(t.source.commandName,{value:t.source.commandParam}),e.editing.view.focus()}),o})}_getLocalizedOptions(){const e=this.editor,t=e.t,n={Default:t("Default"),Tiny:t("Tiny"),Small:t("Small"),Big:t("Big"),Huge:t("Huge")},i=l(e.config.get(a["d"]).options);return i.map(e=>{const t=n[e.title];return t&&t!=e.title&&(e=Object.assign({},e,{title:t})),e})}}function x(e,t){const n=new r["b"];for(const i of e){const e={type:"button",model:new w["q"]({commandName:a["d"],commandParam:i.model,label:i.title,class:"ck-fontsize-option",withText:!0})};i.view&&i.view.styles&&e.model.set("labelStyle",`font-size:${i.view.styles["font-size"]}`),i.view&&i.view.classes&&e.model.set("class",`${e.model.class} ${i.view.classes}`),e.model.bind("isOn").to(t,"value",e=>e===i.model),n.add(e)}return n} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class k extends i["i"]{static get requires(){return[v,E]}static get pluginName(){return"FontSize"}}},"258b":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("d21d"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r extends i["a"]{constructor(e,t,n){super(e,t),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}},"25aa":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("3b6f");function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return r(i).default}})},"25ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("a242"),r=n("5595"),o=n("7fe8"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class s extends i["i"]{static get requires(){return[r["c"]]}static get pluginName(){return"MediaEmbedToolbar"}afterInit(){const e=this.editor,t=e.t,n=e.plugins.get(r["c"]);n.register("mediaEmbed",{ariaLabel:t("Media toolbar"),items:e.config.get("mediaEmbed.toolbar")||[],getRelatedElement:o["c"]})}}},"25cc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiCommentAuthor",mixins:[o.SemanticUIVueMixin],render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("author")}]),[this.$slots.default])},meta:{parent:"SuiComment"}}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},2609:function(e,t){e.exports=''},"26ce":function(e,t,n){"use strict";var i=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}t["a"]=r},"26e8":function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},"26ee":function(e,t,n){"use strict";var i=n("5ea3"),r="object"==typeof self&&self&&self.Object===Object&&self,o=i["a"]||r||Function("return this")();t["a"]=o},2712:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiDimmer",mixins:[o.SemanticUIVueMixin],props:{active:Boolean,inverted:Boolean},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("ui",this.active&&"active",this.inverted&&"inverted","dimmer")}]),[e("div",{class:"content"},[e("div",{class:"center"},[this.$slots.default])])])}}},"271b":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var i=n("a242"),r=n("850e"),o=n("cb3e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const s="code",a="ck-code_selected";class c extends i["i"]{static get pluginName(){return"CodeEditing"}static get requires(){return[r["d"]]}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:s}),e.model.schema.setAttributeProperties(s,{isFormatting:!0,copyOnEnter:!1}),e.conversion.attributeToElement({model:s,view:"code",upcastAlso:{styles:{"word-wrap":"break-word"}}}),e.commands.add(s,new o["a"](e,s)),e.plugins.get(r["d"]).registerAttribute(s),Object(r["h"])(e,s,"code",a)}}var l=n("02d4"),u=n("cfc3"),d=n.n(u);n("cb74"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const h="code";class f extends i["i"]{static get pluginName(){return"CodeUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add(h,n=>{const i=e.commands.get(h),r=new l["c"](n);return r.set({label:t("Code"),icon:d.a,tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{e.execute(h),e.editing.view.focus()}),r})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class p extends i["i"]{static get requires(){return[c,f]}static get pluginName(){return"Code"}}},2787:function(e,t){e.exports=''},2789:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("c295");t.default={name:"SuiItemHeader",mixins:[i.SemanticUIVueMixin],description:"An item can contain a header",props:{href:{type:String,description:"Specifies a linked document, resource, or location"}},render:function(){var e=arguments[0],t=this.href?"a":this.getElementType();return e(t,{attrs:{href:this.href},class:this.classes("header")},[this.$slots.default])},meta:{parent:"SuiItem"}}},"27bf":function(e,t,n){"use strict";e.exports=s;var i=n("b19a"),r=n("3a7c");function o(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length{e.setSelection(n,"in")})}}function u(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */const d=Object(a["g"])("Ctrl+A");class h extends s["a"]{static get pluginName(){return"SelectAllEditing"}init(){const e=this.editor,t=e.editing.view,n=t.document;e.commands.add("selectAll",new l(e)),this.listenTo(n,"keydown",(t,n)=>{Object(a["a"])(n)===d&&(e.execute("selectAll"),n.preventDefault())})}}var f=n("3707"),p=n("fa71"),m=n.n(p); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class g extends s["a"]{static get pluginName(){return"SelectAllUI"}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",t=>{const n=e.commands.get("selectAll"),i=new f["a"](t),r=t.t;return i.set({label:r("Select all"),icon:m.a,keystroke:"Ctrl+A",tooltip:!0}),i.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(i,"execute",()=>{e.execute("selectAll"),e.editing.view.focus()}),i})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class b extends s["a"]{static get requires(){return[h,g]}static get pluginName(){return"SelectAll"}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */var v=n("850e"),w=n("1788"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class y extends i["i"]{static get requires(){return[r["a"],o["a"],b,o["b"],v["e"],w["a"]]}static get pluginName(){return"Essentials"}}},2914:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n("a242"),r=n("553a"),o=n("4fdd"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class s extends i["a"]{constructor(e,t){super(e),this._indentBehavior=t}refresh(){const e=this.editor,t=e.model,n=Object(o["k"])(t.document.selection.getSelectedBlocks());n&&t.schema.checkAttribute(n,"blockIndent")?this.isEnabled=this._indentBehavior.checkEnabled(n.getAttribute("blockIndent")):this.isEnabled=!1}execute(){const e=this.editor.model,t=a(e);e.change(e=>{for(const n of t){const t=n.getAttribute("blockIndent"),i=this._indentBehavior.getNextIndent(t);i?e.setAttribute("blockIndent",i,n):e.removeAttribute("blockIndent",n)}})}}function a(e){const t=e.document.selection,n=e.schema,i=Array.from(t.getSelectedBlocks());return i.filter(e=>n.checkAttribute(e,"blockIndent"))} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class c{constructor(e){this.isForward="forward"===e.direction,this.offset=e.offset,this.unit=e.unit}checkEnabled(e){const t=parseFloat(e||0);return this.isForward||t>0}getNextIndent(e){const t=parseFloat(e||0),n=!e||e.endsWith(this.unit);if(!n)return this.isForward?this.offset+this.unit:void 0;const i=this.isForward?this.offset:-this.offset,r=t+i;return r>0?r+this.unit:void 0}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class l{constructor(e){this.isForward="forward"===e.direction,this.classes=e.classes}checkEnabled(e){const t=this.classes.indexOf(e);return this.isForward?t=0}getNextIndent(e){const t=this.classes.indexOf(e),n=this.isForward?1:-1;return this.classes[t+n]}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */const u=["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"];class d extends i["i"]{constructor(e){super(e),e.config.define("indentBlock",{offset:40,unit:"px"})}static get pluginName(){return"IndentBlock"}init(){const e=this.editor,t=e.config.get("indentBlock"),n=!t.classes||!t.classes.length,i=Object.assign({direction:"forward"},t),o=Object.assign({direction:"backward"},t);n?(e.data.addStyleProcessorRules(r["o"]),this._setupConversionUsingOffset(e.conversion),e.commands.add("indentBlock",new s(e,new c(i))),e.commands.add("outdentBlock",new s(e,new c(o)))):(this._setupConversionUsingClasses(t.classes),e.commands.add("indentBlock",new s(e,new l(i))),e.commands.add("outdentBlock",new s(e,new l(o))))}afterInit(){const e=this.editor,t=e.model.schema,n=e.commands.get("indent"),i=e.commands.get("outdent"),r=e.config.get("heading.options"),o=r&&r.map(e=>e.model),s=o||u;s.forEach(e=>{t.isRegistered(e)&&t.extend(e,{allowAttributes:"blockIndent"})}),t.setAttributeProperties("blockIndent",{isFormatting:!0}),n.registerChildCommand(e.commands.get("indentBlock")),i.registerChildCommand(e.commands.get("outdentBlock"))}_setupConversionUsingOffset(){const e=this.editor.conversion,t=this.editor.locale,n="rtl"===t.contentLanguageDirection?"margin-right":"margin-left";e.for("upcast").attributeToAttribute({view:{styles:{[n]:/[\s\S]+/}},model:{key:"blockIndent",value:e=>e.getStyle(n)}}),e.for("downcast").attributeToAttribute({model:"blockIndent",view:e=>{return{key:"style",value:{[n]:e}}}})}_setupConversionUsingClasses(e){const t={model:{key:"blockIndent",values:[]},view:{}};for(const n of e)t.model.values.push(n),t.view[n]={key:"class",value:[n]};this.editor.conversion.attributeToAttribute(t)}}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"29f3":function(e,t){var n=Object.prototype,i=n.toString;function r(e){return i.call(e)}e.exports=r},"2a21":function(e,t,n){},"2b03":function(e,t){function n(e,t,n,i){var r=e.length,o=n+(i?1:-1);while(i?o--:++o=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return r(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r-1)return e.splice(n,1)}}var w=Object.prototype.hasOwnProperty;function y(e,t){return w.call(e,t)}function _(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var E=/-(\w)/g,x=_((function(e){return e.replace(E,(function(e,t){return t?t.toUpperCase():""}))})),k=_((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),A=/\B([A-Z])/g,O=_((function(e){return e.replace(A,"-$1").toLowerCase()}));function C(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function T(e,t){return e.bind(t)}var S=Function.prototype.bind?T:C;function P(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function I(e,t){for(var n in t)e[n]=t[n];return e}function R(e){for(var t={},n=0;n0,ne=Z&&Z.indexOf("edge/")>0,ie=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===Q),re=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),oe={}.watch,se=!1;if(X)try{var ae={};Object.defineProperty(ae,"passive",{get:function(){se=!0}}),window.addEventListener("test-passive",null,ae)}catch(xs){}var ce=function(){return void 0===Y&&(Y=!X&&!J&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Y},le=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ue(e){return"function"===typeof e&&/native code/.test(e.toString())}var de,he="undefined"!==typeof Symbol&&ue(Symbol)&&"undefined"!==typeof Reflect&&ue(Reflect.ownKeys);de="undefined"!==typeof Set&&ue(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var fe=M,pe=0,me=function(){this.id=pe++,this.subs=[]};me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){v(this.subs,e)},me.prototype.depend=function(){me.target&&me.target.addDep(this)},me.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(o&&!y(r,"default"))s=!1;else if(""===s||s===O(e)){var c=et(String,r.type);(c<0||a0&&(s=Ct(s,(t||"")+"_"+n),Ot(s[0])&&Ot(l)&&(u[c]=Ee(l.text+s[0].text),s.shift()),u.push.apply(u,s)):a(s)?Ot(l)?u[c]=Ee(l.text+s):""!==s&&u.push(Ee(s)):Ot(s)&&Ot(l)?u[c]=Ee(l.text+s.text):(o(e._isVList)&&r(s.tag)&&i(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+n+"__"),u.push(s)));return u}function Tt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function St(e){var t=Pt(e.$options.inject,e);t&&(Se(!1),Object.keys(t).forEach((function(n){je(e,n,t[n])})),Se(!0))}function Pt(e,t){if(e){for(var n=Object.create(null),i=he?Reflect.ownKeys(e):Object.keys(e),r=0;r0,s=e?!!e.$stable:!o,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&i&&i!==n&&a===i.$key&&!o&&!i.$hasNormal)return i;for(var c in r={},e)e[c]&&"$"!==c[0]&&(r[c]=jt(t,c,e[c]))}else r={};for(var l in t)l in r||(r[l]=Nt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=r),q(r,"$stable",s),q(r,"$key",a),q(r,"$hasNormal",o),r}function jt(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:At(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function Nt(e,t){return function(){return e[t]}}function Dt(e,t){var n,i,o,s,a;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),i=0,o=e.length;i1?P(n):n;for(var i=P(arguments,1),r='event handler for "'+e+'"',o=0,s=n.length;odocument.createEvent("Event").timeStamp&&(Yn=function(){return Kn.now()})}function Xn(){var e,t;for(Gn=Yn(),Hn=!0,Fn.sort((function(e,t){return e.id-t.id})),qn=0;qnqn&&Fn[n].id>e.id)n--;Fn.splice(n+1,0,e)}else Fn.push(e);Un||(Un=!0,pt(Xn))}}var ti=0,ni=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ti,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new de,this.newDepIds=new de,this.expression="","function"===typeof t?this.getter=t:(this.getter=G(t),this.getter||(this.getter=M)),this.value=this.lazy?void 0:this.get()};ni.prototype.get=function(){var e;be(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(xs){if(!this.user)throw xs;tt(xs,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&>(e),ve(),this.cleanupDeps()}return e},ni.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ni.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ni.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ei(this)},ni.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(xs){tt(xs,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ni.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ni.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},ni.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var ii={enumerable:!0,configurable:!0,get:M,set:M};function ri(e,t,n){ii.get=function(){return this[t][n]},ii.set=function(e){this[t][n]=e},Object.defineProperty(e,n,ii)}function oi(e){e._watchers=[];var t=e.$options;t.props&&si(e,t.props),t.methods&&pi(e,t.methods),t.data?ai(e):Me(e._data={},!0),t.computed&&ui(e,t.computed),t.watch&&t.watch!==oe&&mi(e,t.watch)}function si(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],o=!e.$parent;o||Se(!1);var s=function(o){r.push(o);var s=Xe(o,t,n,e);je(i,o,s),o in e||ri(e,"_props",o)};for(var a in t)s(a);Se(!0)}function ai(e){var t=e.$options.data;t=e._data="function"===typeof t?ci(t,e):t||{},u(t)||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);while(r--){var o=n[r];0,i&&y(i,o)||H(o)||ri(e,"_data",o)}Me(t,!0)}function ci(e,t){be();try{return e.call(t,t)}catch(xs){return tt(xs,t,"data()"),{}}finally{ve()}}var li={lazy:!0};function ui(e,t){var n=e._computedWatchers=Object.create(null),i=ce();for(var r in t){var o=t[r],s="function"===typeof o?o:o.get;0,i||(n[r]=new ni(e,s||M,M,li)),r in e||di(e,r,o)}}function di(e,t,n){var i=!ce();"function"===typeof n?(ii.get=i?hi(t):fi(n),ii.set=M):(ii.get=n.get?i&&!1!==n.cache?hi(t):fi(n.get):M,ii.set=n.set||M),Object.defineProperty(e,t,ii)}function hi(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),me.target&&t.depend(),t.value}}function fi(e){return function(){return e.call(this,this)}}function pi(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?M:S(t[n],e)}function mi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r-1)return this;var n=P(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Ai(e){e.mixin=function(e){return this.options=Ye(this.options,e),this}}function Oi(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var o=e.name||n.options.name;var s=function(e){this._init(e)};return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=t++,s.options=Ye(n.options,e),s["super"]=n,s.options.props&&Ci(s),s.options.computed&&Ti(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,F.forEach((function(e){s[e]=n[e]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=e,s.sealedOptions=I({},s.options),r[i]=s,s}}function Ci(e){var t=e.options.props;for(var n in t)ri(e.prototype,"_props",n)}function Ti(e){var t=e.options.computed;for(var n in t)di(e.prototype,n,t[n])}function Si(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Pi(e){return e&&(e.Ctor.options.name||e.tag)}function Ii(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Ri(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var o in n){var s=n[o];if(s){var a=Pi(s.componentOptions);a&&!t(a)&&Mi(n,o,i,r)}}}function Mi(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,v(n,t)}wi(xi),bi(xi),Sn(xi),Mn(xi),vn(xi);var ji=[String,RegExp,Array],Ni={name:"keep-alive",abstract:!0,props:{include:ji,exclude:ji,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Mi(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Ri(e,(function(e){return Ii(t,e)}))})),this.$watch("exclude",(function(t){Ri(e,(function(e){return!Ii(t,e)}))}))},render:function(){var e=this.$slots.default,t=xn(e),n=t&&t.componentOptions;if(n){var i=Pi(n),r=this,o=r.include,s=r.exclude;if(o&&(!i||!Ii(o,i))||s&&i&&Ii(s,i))return t;var a=this,c=a.cache,l=a.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[u]?(t.componentInstance=c[u].componentInstance,v(l,u),l.push(u)):(c[u]=t,l.push(u),this.max&&l.length>parseInt(this.max)&&Mi(c,l[0],l,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Di={KeepAlive:Ni};function Li(e){var t={get:function(){return $}};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:I,mergeOptions:Ye,defineReactive:je},e.set=Ne,e.delete=De,e.nextTick=pt,e.observable=function(e){return Me(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,I(e.options.components,Di),ki(e),Ai(e),Oi(e),Si(e)}Li(xi),Object.defineProperty(xi.prototype,"$isServer",{get:ce}),Object.defineProperty(xi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xi,"FunctionalRenderContext",{value:Jt}),xi.version="2.6.10";var Vi=g("style,class"),Bi=g("input,textarea,option,select,progress"),Fi=function(e,t,n){return"value"===n&&Bi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},zi=g("contenteditable,draggable,spellcheck"),$i=g("events,caret,typing,plaintext-only"),Ui=function(e,t){return Yi(t)||"false"===t?"false":"contenteditable"===e&&$i(t)?t:"true"},Hi=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qi="http://www.w3.org/1999/xlink",Wi=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Gi=function(e){return Wi(e)?e.slice(6,e.length):""},Yi=function(e){return null==e||!1===e};function Ki(e){var t=e.data,n=e,i=e;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Xi(i.data,t));while(r(n=n.parent))n&&n.data&&(t=Xi(t,n.data));return Ji(t.staticClass,t.class)}function Xi(e,t){return{staticClass:Qi(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Ji(e,t){return r(e)||r(t)?Qi(e,Zi(t)):""}function Qi(e,t){return e?t?e+" "+t:e:t||""}function Zi(e){return Array.isArray(e)?er(e):c(e)?tr(e):"string"===typeof e?e:""}function er(e){for(var t,n="",i=0,o=e.length;i-1?ar[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ar[e]=/HTMLUnknownElement/.test(t.toString())}var lr=g("text,number,password,search,email,tel,url");function ur(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function dr(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function hr(e,t){return document.createElementNS(nr[e],t)}function fr(e){return document.createTextNode(e)}function pr(e){return document.createComment(e)}function mr(e,t,n){e.insertBefore(t,n)}function gr(e,t){e.removeChild(t)}function br(e,t){e.appendChild(t)}function vr(e){return e.parentNode}function wr(e){return e.nextSibling}function yr(e){return e.tagName}function _r(e,t){e.textContent=t}function Er(e,t){e.setAttribute(t,"")}var xr=Object.freeze({createElement:dr,createElementNS:hr,createTextNode:fr,createComment:pr,insertBefore:mr,removeChild:gr,appendChild:br,parentNode:vr,nextSibling:wr,tagName:yr,setTextContent:_r,setStyleScope:Er}),kr={create:function(e,t){Ar(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ar(e,!0),Ar(t))},destroy:function(e){Ar(e,!0)}};function Ar(e,t){var n=e.data.ref;if(r(n)){var i=e.context,o=e.componentInstance||e.elm,s=i.$refs;t?Array.isArray(s[n])?v(s[n],o):s[n]===o&&(s[n]=void 0):e.data.refInFor?Array.isArray(s[n])?s[n].indexOf(o)<0&&s[n].push(o):s[n]=[o]:s[n]=o}}var Or=new we("",{},[]),Cr=["create","activate","update","remove","destroy"];function Tr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Sr(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function Sr(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,o=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===o||lr(i)&&lr(o)}function Pr(e,t,n){var i,o,s={};for(i=t;i<=n;++i)o=e[i].key,r(o)&&(s[o]=i);return s}function Ir(e){var t,n,s={},c=e.modules,l=e.nodeOps;for(t=0;tm?(d=i(n[v+1])?null:n[v+1].elm,x(e,d,n,p,v,o)):p>v&&A(e,t,h,m)}function T(e,t,n,i){for(var o=n;o-1?$r(e,t,n):Hi(t)?Yi(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):zi(t)?e.setAttribute(t,Ui(t,n)):Wi(t)?Yi(n)?e.removeAttributeNS(qi,Gi(t)):e.setAttributeNS(qi,t,n):$r(e,t,n)}function $r(e,t,n){if(Yi(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var Ur={create:Fr,update:Fr};function Hr(e,t){var n=t.elm,o=t.data,s=e.data;if(!(i(o.staticClass)&&i(o.class)&&(i(s)||i(s.staticClass)&&i(s.class)))){var a=Ki(t),c=n._transitionClasses;r(c)&&(a=Qi(a,Zi(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var qr,Wr={create:Hr,update:Hr},Gr="__r",Yr="__c";function Kr(e){if(r(e[Gr])){var t=ee?"change":"input";e[t]=[].concat(e[Gr],e[t]||[]),delete e[Gr]}r(e[Yr])&&(e.change=[].concat(e[Yr],e.change||[]),delete e[Yr])}function Xr(e,t,n){var i=qr;return function r(){var o=t.apply(null,arguments);null!==o&&Zr(e,r,n,i)}}var Jr=st&&!(re&&Number(re[1])<=53);function Qr(e,t,n,i){if(Jr){var r=Gn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}qr.addEventListener(e,t,se?{capture:n,passive:i}:n)}function Zr(e,t,n,i){(i||qr).removeEventListener(e,t._wrapper||t,n)}function eo(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};qr=t.elm,Kr(n),yt(n,r,Qr,Zr,Xr,t.context),qr=void 0}}var to,no={create:eo,update:eo};function io(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,o,s=t.elm,a=e.data.domProps||{},c=t.data.domProps||{};for(n in r(c.__ob__)&&(c=t.data.domProps=I({},c)),a)n in c||(s[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=o;var l=i(o)?"":String(o);ro(s,l)&&(s.value=l)}else if("innerHTML"===n&&rr(s.tagName)&&i(s.innerHTML)){to=to||document.createElement("div"),to.innerHTML=""+o+"";var u=to.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(u.firstChild)s.appendChild(u.firstChild)}else if(o!==a[n])try{s[n]=o}catch(xs){}}}}function ro(e,t){return!e.composing&&("OPTION"===e.tagName||oo(e,t)||so(e,t))}function oo(e,t){var n=!0;try{n=document.activeElement!==e}catch(xs){}return n&&e.value!==t}function so(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return m(n)!==m(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var ao={create:io,update:io},co=_((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function lo(e){var t=uo(e.style);return e.staticStyle?I(e.staticStyle,t):t}function uo(e){return Array.isArray(e)?R(e):"string"===typeof e?co(e):e}function ho(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=lo(r.data))&&I(i,n)}(n=lo(e.data))&&I(i,n);var o=e;while(o=o.parent)o.data&&(n=lo(o.data))&&I(i,n);return i}var fo,po=/^--/,mo=/\s*!important$/,go=function(e,t,n){if(po.test(t))e.style.setProperty(t,n);else if(mo.test(n))e.style.setProperty(O(t),n.replace(mo,""),"important");else{var i=vo(t);if(Array.isArray(n))for(var r=0,o=n.length;r-1?t.split(_o).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function xo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(_o).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function ko(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&I(t,Ao(e.name||"v")),I(t,e),t}return"string"===typeof e?Ao(e):void 0}}var Ao=_((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Oo=X&&!te,Co="transition",To="animation",So="transition",Po="transitionend",Io="animation",Ro="animationend";Oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(So="WebkitTransition",Po="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Io="WebkitAnimation",Ro="webkitAnimationEnd"));var Mo=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function jo(e){Mo((function(){Mo(e)}))}function No(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Eo(e,t))}function Do(e,t){e._transitionClasses&&v(e._transitionClasses,t),xo(e,t)}function Lo(e,t,n){var i=Bo(e,t),r=i.type,o=i.timeout,s=i.propCount;if(!r)return n();var a=r===Co?Po:Ro,c=0,l=function(){e.removeEventListener(a,u),n()},u=function(t){t.target===e&&++c>=s&&l()};setTimeout((function(){c0&&(n=Co,u=s,d=o.length):t===To?l>0&&(n=To,u=l,d=c.length):(u=Math.max(s,l),n=u>0?s>l?Co:To:null,d=n?n===Co?o.length:c.length:0);var h=n===Co&&Vo.test(i[So+"Property"]);return{type:n,timeout:u,propCount:d,hasTransform:h}}function Fo(e,t){while(e.length1}function Wo(e,t){!0!==t.data.show&&$o(t)}var Go=X?{create:Wo,activate:Wo,remove:function(e,t){!0!==e.data.show?Uo(e,t):t()}}:{},Yo=[Ur,Wr,no,ao,yo,Go],Ko=Yo.concat(Br),Xo=Ir({nodeOps:xr,modules:Ko});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&rs(e,"input")}));var Jo={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?_t(n,"postpatch",(function(){Jo.componentUpdated(e,t,n)})):Qo(e,t,n.context),e._vOptions=[].map.call(e.options,ts)):("textarea"===n.tag||lr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ns),e.addEventListener("compositionend",is),e.addEventListener("change",is),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Qo(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,ts);if(r.some((function(e,t){return!D(e,i[t])}))){var o=e.multiple?t.value.some((function(e){return es(e,r)})):t.value!==t.oldValue&&es(t.value,r);o&&rs(e,"change")}}}};function Qo(e,t,n){Zo(e,t,n),(ee||ne)&&setTimeout((function(){Zo(e,t,n)}),0)}function Zo(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var o,s,a=0,c=e.options.length;a-1,s.selected!==o&&(s.selected=o);else if(D(ts(s),i))return void(e.selectedIndex!==a&&(e.selectedIndex=a));r||(e.selectedIndex=-1)}}function es(e,t){return t.every((function(t){return!D(t,e)}))}function ts(e){return"_value"in e?e._value:e.value}function ns(e){e.target.composing=!0}function is(e){e.target.composing&&(e.target.composing=!1,rs(e.target,"input"))}function rs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function os(e){return!e.componentInstance||e.data&&e.data.transition?e:os(e.componentInstance._vnode)}var ss={bind:function(e,t,n){var i=t.value;n=os(n);var r=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,$o(n,(function(){e.style.display=o}))):e.style.display=i?o:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=os(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,i?$o(n,(function(){e.style.display=e.__vOriginalDisplay})):Uo(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},as={model:Jo,show:ss},cs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ls(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ls(xn(t.children)):e}function us(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var o in r)t[x(o)]=r[o];return t}function ds(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function hs(e){while(e=e.parent)if(e.data.transition)return!0}function fs(e,t){return t.key===e.key&&t.tag===e.tag}var ps=function(e){return e.tag||En(e)},ms=function(e){return"show"===e.name},gs={name:"transition",props:cs,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(ps),n.length)){0;var i=this.mode;0;var r=n[0];if(hs(this.$vnode))return r;var o=ls(r);if(!o)return r;if(this._leaving)return ds(e,r);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=us(this),l=this._vnode,u=ls(l);if(o.data.directives&&o.data.directives.some(ms)&&(o.data.show=!0),u&&u.data&&!fs(o,u)&&!En(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=I({},c);if("out-in"===i)return this._leaving=!0,_t(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ds(e,r);if("in-out"===i){if(En(o))return l;var h,f=function(){h()};_t(c,"afterEnter",f),_t(c,"enterCancelled",f),_t(d,"delayLeave",(function(e){h=e}))}}return r}}},bs=I({tag:String,moveClass:String},cs);delete bs.mode;var vs={props:bs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=In(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],s=us(this),a=0;a{const a=v(i[o-1],e),c=a?null:i[o-1],l=y(c,e);if(a&&(r=null,s=1),!r||0!==l){const i=u(e,t);if(r){if(e.indent>s){const e=r.getChild(r.childCount-1),t=e.getChild(e.childCount-1);r=p(i,t,n),s+=1}else if(e.indent{return String.fromCharCode(parseInt(e,16))}).join(""))}function O(e,t){const n=t.createRangeIn(e),i=new o["g"]({name:/v:(.+)/}),r=[];for(const o of n){if("elementStart"!=o.type)continue;const e=o.item,t=e.previousSibling&&e.previousSibling.name||null;i.match(e)&&e.getAttribute("o:gfxdata")&&"v:shapetype"!==t&&r.push(o.item.getAttribute("id"))}return r}function C(e,t,n){const i=n.createRangeIn(t),r=new o["g"]({name:"img"}),s=[];for(const o of i)if(r.match(o.item)){const t=o.item,n=t.getAttribute("v:shapes")?t.getAttribute("v:shapes").split(" "):[];n.length&&n.every(t=>e.indexOf(t)>-1)?s.push(t):t.getAttribute("src")||s.push(t)}for(const o of s)n.remove(o)}function T(e,t){const n=t.createRangeIn(e),i=new o["g"]({name:/v:(.+)/}),r=[];for(const o of n)"elementStart"==o.type&&i.match(o.item)&&r.push(o.item);for(const o of r)t.remove(o)}function S(e,t){const n=t.createRangeIn(e),i=new o["g"]({name:"img"}),r=[];for(const o of n)i.match(o.item)&&o.item.getAttribute("src").startsWith("file://")&&r.push(o.item);return r}function P(e){if(!e)return[];const t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),i=e.match(n),r=[];if(i)for(const o of i){let e=!1;o.includes("\\pngblip")?e="image/png":o.includes("\\jpegblip")&&(e="image/jpeg"),e&&r.push({hex:o.replace(t,"").replace(/[^\da-fA-F]/g,""),type:e})}return r}function I(e,t,n){if(e.length===t.length)for(let i=0;i/i,M=/xmlns:o="urn:schemas-microsoft-com/i;class j{constructor(e){this.document=e}isActive(e){return R.test(e)||M.test(e)}execute(e){const{body:t,stylesString:n}=e._parsedData;a(t,n),k(t,e.dataTransfer.getData("text/rtf")),e.content=t}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function N(e){return L(L(e)).replace(/([^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<\/span>/g,"").replace(/ <\//g," <\/o:p>/g," ").replace(/( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)<")}function D(e){e.querySelectorAll("span[style*=spacerun]").forEach(e=>{const t=e.innerText.length||0;e.innerHTML=Array(t+1).join("  ").substr(0,t)})}function L(e){return e.replace(/(\s+)<\/span>/g,(e,t)=>{return 1===t.length?" ":Array(t.length+1).join("  ").substr(0,t.length)})} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function V(e,t){const n=new DOMParser;e=e.replace(//g,"")} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */const h=["figcaption","li"];function f(e){let t="";if(e.is("$text")||e.is("$textProxy"))t=e.data;else if(e.is("element","img")&&e.hasAttribute("alt"))t=e.getAttribute("alt");else if(e.is("element","br"))t="\n";else{let n=null;for(const i of e.getChildren()){const e=f(i);n&&(n.is("containerElement")||i.is("containerElement"))&&(h.includes(n.name)||h.includes(i.name)?t+="\n":t+="\n\n"),t+=e,n=i}}return t} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class p extends i["a"]{static get pluginName(){return"ClipboardPipeline"}init(){const e=this.editor,t=e.editing.view;t.addObserver(c),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const e=this.editor,t=e.model,n=e.editing.view,i=n.document;this.listenTo(i,"clipboardInput",t=>{e.isReadOnly&&t.stop()},{priority:"highest"}),this.listenTo(i,"clipboardInput",(e,t)=>{const i=t.dataTransfer;let o=t.content||"";o||(i.getData("text/html")?o=d(i.getData("text/html")):i.getData("text/plain")&&(o=u(i.getData("text/plain"))),o=this.editor.data.htmlProcessor.toView(o));const s=new r["a"](this,"inputTransformation");this.fire(s,{content:o,dataTransfer:i,targetRanges:t.targetRanges,method:t.method}),s.stop.called&&e.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(e,n)=>{if(n.content.isEmpty)return;const i=this.editor.data,r=i.toModel(n.content,"$clipboardHolder");0!=r.childCount&&(e.stop(),t.change(()=>{this.fire("contentInsertion",{content:r,method:n.method,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(e,n)=>{n.resultRange=t.insertContent(n.content)},{priority:"low"})}_setupCopyCut(){const e=this.editor,t=e.model.document,n=e.editing.view,i=n.document;function r(n,r){const o=r.dataTransfer;r.preventDefault();const s=e.data.toView(e.model.getSelectedContent(t.selection));i.fire("clipboardOutput",{dataTransfer:o,content:s,method:n.name})}this.listenTo(i,"copy",r,{priority:"low"}),this.listenTo(i,"cut",(t,n)=>{e.isReadOnly?n.preventDefault():r(t,n)},{priority:"low"}),this.listenTo(i,"clipboardOutput",(n,i)=>{i.content.isEmpty||(i.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(i.content)),i.dataTransfer.setData("text/plain",f(i.content))),"cut"==i.method&&e.model.deleteContent(t.selection)},{priority:"low"})}}var m=n("0f93"),g=n("4df9"),b=n("bf50"),v=n("ed4a"),w=n("59a6"),y=n("2beb"),_=n("517b");n("35cc"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class E extends i["a"]{static get pluginName(){return"DragDrop"}static get requires(){return[p,b["a"]]}init(){const e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=Object(_["a"])(e=>this._updateDropMarker(e),40),this._removeDropMarkerDelayed=P(()=>this._removeDropMarker(),40),this._clearDraggableAttributesDelayed=P(()=>this._clearDraggableAttributes(),40),t.addObserver(c),t.addObserver(g["a"]),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",(e,t,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(e,t,n)=>{n||this._finalizeDragging(!1)}),w["a"].isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const e=this.editor,t=e.model,n=t.document,i=e.editing.view,r=i.document;this.listenTo(r,"dragstart",(i,o)=>{const s=n.selection;if(o.target&&o.target.is("editableElement"))return void o.preventDefault();const a=o.target?I(o.target):null;if(a){const n=e.editing.mapper.toModelElement(a);this._draggedRange=m["a"].fromRange(t.createRangeOn(n)),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!r.selection.isCollapsed){const e=r.selection.getSelectedElement();e&&Object(y["d"])(e)||(this._draggedRange=m["a"].fromRange(s.getFirstRange()))}if(!this._draggedRange)return void o.preventDefault();this._draggingUid=Object(v["a"])(),o.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",o.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const c=t.createSelection(this._draggedRange.toRange()),l=e.data.toView(t.getSelectedContent(c));r.fire("clipboardOutput",{dataTransfer:o.dataTransfer,content:l,method:i.name}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(r,"dragend",(e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&"move"==t.dataTransfer.dropEffect)},{priority:"low"}),this.listenTo(r,"dragenter",()=>{this.isEnabled&&i.focus()}),this.listenTo(r,"dragleave",()=>{this._removeDropMarkerDelayed()}),this.listenTo(r,"dragging",(t,n)=>{if(!this.isEnabled)return void(n.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const i=x(e,n.targetRanges,n.target);this._draggedRange||(n.dataTransfer.dropEffect="copy"),w["a"].isGecko||("copy"==n.dataTransfer.effectAllowed?n.dataTransfer.dropEffect="copy":["all","copyMove"].includes(n.dataTransfer.effectAllowed)&&(n.dataTransfer.dropEffect="move")),i&&this._updateDropMarkerThrottled(i)},{priority:"low"})}_setupClipboardInputIntegration(){const e=this.editor,t=e.editing.view,n=t.document;this.listenTo(n,"clipboardInput",(t,n)=>{if("drop"!=n.method)return;const i=x(e,n.targetRanges,n.target);if(this._removeDropMarker(),!i)return this._finalizeDragging(!1),void t.stop();this._draggedRange&&this._draggingUid!=n.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");const r="move"==S(n.dataTransfer);if(r&&this._draggedRange&&this._draggedRange.containsRange(i,!0))return this._finalizeDragging(!1),void t.stop();n.targetRanges=[e.editing.mapper.toViewRange(i)]},{priority:"high"})}_setupContentInsertionIntegration(){const e=this.editor.plugins.get(p);e.on("contentInsertion",(e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const n=t.targetRanges.map(e=>this.editor.editing.mapper.toModelRange(e));this.editor.model.change(e=>e.setSelection(n))},{priority:"high"}),e.on("contentInsertion",(e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const n="move"==S(t.dataTransfer),i=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(i&&n)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const e=this.editor,t=e.editing.view,n=t.document;this.listenTo(n,"mousedown",(i,r)=>{if(w["a"].isAndroid||!r)return;this._clearDraggableAttributesDelayed.cancel();let o=I(r.target);if(w["a"].isBlink&&!e.isReadOnly&&!o&&!n.selection.isCollapsed){const e=n.selection.getSelectedElement();e&&Object(y["d"])(e)||(o=n.selection.editableElement)}o&&(t.change(e=>{e.setAttribute("draggable","true",o)}),this._draggableElement=e.editing.mapper.toModelElement(o))}),this.listenTo(n,"mouseup",()=>{w["a"].isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const e=this.editor.editing;e.view.change(t=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&t.removeAttribute("draggable",e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_setupDropMarker(){const e=this.editor;e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(t,{writer:n})=>{const i=e.model.schema.checkChild(t.markerRange.start,"$text");if(i)return n.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(e){const t=this.toDomElement(e);return t.innerHTML="⁠⁠",t}))}})}_updateDropMarker(e){const t=this.editor,n=t.model.markers;t.model.change(t=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})})}_removeDropMarker(){const e=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),e.markers.has("drop-target")&&e.change(e=>{e.removeMarker("drop-target")})}_finalizeDragging(e){const t=this.editor,n=t.model;this._removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(e&&this.isEnabled&&n.deleteContent(n.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function x(e,t,n){const i=e.model,r=e.editing.mapper;let o=null;const s=t?t[0].start:null;if(n.is("uiElement")&&(n=n.parent),o=k(e,n),o)return o;const a=T(e,n),c=s?r.toModelPosition(s):null;return c?(o=O(e,c,a),o||(o=i.schema.getNearestSelectionRange(c,w["a"].isGecko?"forward":"backward"),o||C(e,c.parent))):A(e,a)}function k(e,t){const n=e.model,i=e.editing.mapper;if(Object(y["d"])(t))return n.createRangeOn(i.toModelElement(t));if(!t.is("editableElement")){const e=t.findAncestor(e=>Object(y["d"])(e)||e.is("editableElement"));if(Object(y["d"])(e))return n.createRangeOn(i.toModelElement(e))}return null}function A(e,t){const n=e.model,i=n.schema,r=n.createPositionAt(t,0);return i.getNearestSelectionRange(r,"forward")}function O(e,t,n){const i=e.model;if(!i.schema.checkChild(n,"$block"))return null;const r=i.createPositionAt(n,0),o=t.path.slice(0,r.path.length),s=i.createPositionFromPath(t.root,o),a=s.nodeAfter;return a&&i.schema.isObject(a)?i.createRangeOn(a):null}function C(e,t){const n=e.model;while(t){if(n.schema.isObject(t))return n.createRangeOn(t);t=t.parent}}function T(e,t){const n=e.editing.mapper,i=e.editing.view,r=n.toModelElement(t);if(r)return r;const o=i.createPositionBefore(t),s=n.findMappedViewAncestor(o);return n.toModelElement(s)}function S(e){return w["a"].isGecko?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function P(e,t){let n;function i(...r){i.cancel(),n=setTimeout(()=>e(...r),t)}return i.cancel=()=>{clearTimeout(n)},i}function I(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(y["d"]);if(Object(y["d"])(e))return e;const t=e.findAncestor(e=>Object(y["d"])(e)||e.is("editableElement"));return Object(y["d"])(t)?t:null} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class R extends i["a"]{static get pluginName(){return"PastePlainText"}static get requires(){return[p]}init(){const e=this.editor,t=e.model,n=e.editing.view,i=n.document,r=t.document.selection;let o=!1;n.addObserver(c),this.listenTo(i,"keydown",(e,t)=>{o=t.shiftKey}),e.plugins.get(p).on("contentInsertion",(e,n)=>{(o||M(n.content,t.schema))&&t.change(e=>{const i=Array.from(r.getAttributes()).filter(([e])=>t.schema.getAttributeProperties(e).isFormatting);r.isCollapsed||t.deleteContent(r,{doNotAutoparagraph:!0}),i.push(...r.getAttributes());const o=e.createRangeIn(n.content);for(const t of o.getItems())t.is("$textProxy")&&e.setAttributes(i,t)})})}}function M(e,t){if(e.childCount>1)return!1;const n=e.getChild(0);return!t.isObject(n)&&0==[...n.getAttributeKeys()].length} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class j extends i["a"]{static get pluginName(){return"Clipboard"}static get requires(){return[p,E,R]}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */},4928:function(e,t){e.exports=''},"49f4":function(e,t,n){var i=n("6044");function r(){this.__data__=i?i(null):{},this.size=0}e.exports=r},"4a7b":function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function l(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(e[r],t[r])}i.forEach(r,(function(e){i.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),i.forEach(o,l),i.forEach(s,(function(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=c(void 0,e[r])):n[r]=c(void 0,t[r])})),i.forEach(a,(function(i){i in t?n[i]=c(e[i],t[i]):i in e&&(n[i]=c(void 0,e[i]))}));var u=r.concat(o).concat(s).concat(a),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return i.forEach(d,l),n}},"4bdf":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("8d9d");function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Flag",{enumerable:!0,get:function(){return r(i).default}})},"4be6":function(e,t,n){},"4c1e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiStatisticLabel",mixins:[o.SemanticUIVueMixin],render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("label")}]),[this.$slots.default])},meta:{parent:"SuiStatistic"}}},"4c5c":function(e,t,n){"use strict";var i=n("db97"),r=n("8cdf"),o=n("9a4b");function s(e){return Object(i["a"])(e,o["a"],r["a"])}t["a"]=s},"4ca4":function(e,t){e.exports=''},"4caa":function(e,t,n){var i=n("a919"),r=n("76dd"),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",c="\\u20d0-\\u20ff",l=s+a+c,u="["+l+"]",d=RegExp(u,"g");function h(e){return e=r(e),e&&e.replace(o,i).replace(d,"")}e.exports=h},"4d6f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiFeedUser",mixins:[o.SemanticUIVueMixin],description:"A feed can contain a user element",props:{content:{type:String,description:"Shorthand for primary content"}},render:function(){var e=arguments[0],t=this.getElementType("a");return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("user")}]),[this.$slots.default||this.content])},meta:{parent:"SuiFeed"}}},"4dda":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("e907"),r=n("f0ce"),o=n("ff51"),s=n("1147"),a="[object String]";function c(e){return"string"==typeof e||!Object(o["a"])(e)&&Object(s["a"])(e)&&Object(r["a"])(e)==a}var l=c; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function u(e,t,n={},r=[]){const o=n&&n.xmlns,s=o?e.createElementNS(o,t):e.createElement(t);for(const i in n)s.setAttribute(i,n[i]);!l(r)&&Object(i["a"])(r)||(r=[r]);for(let i of r)l(i)&&(i=e.createTextNode(i)),s.appendChild(i);return s}},"4df9":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("51d0"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r extends i["a"]{constructor(e){super(e),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(e){this.fire(e.type,e)}}},"4ee1":function(e,t,n){var i=n("5168")("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},e(o)}catch(s){}return n}},"4fdd":function(e,t,n){"use strict";var i=n("c993");n.d(t,"a",(function(){return i["a"]})),n.d(t,"b",(function(){return i["b"]})),n.d(t,"c",(function(){return i["c"]})),n.d(t,"d",(function(){return i["d"]})),n.d(t,"e",(function(){return i["e"]})),n.d(t,"f",(function(){return i["f"]})),n.d(t,"g",(function(){return i["g"]})),n.d(t,"h",(function(){return i["h"]})),n.d(t,"i",(function(){return i["i"]})),n.d(t,"j",(function(){return i["j"]})),n.d(t,"k",(function(){return i["k"]})),n.d(t,"l",(function(){return i["l"]})),n.d(t,"m",(function(){return i["m"]})),n.d(t,"n",(function(){return i["n"]})),n.d(t,"o",(function(){return i["o"]})),n.d(t,"p",(function(){return i["p"]})),n.d(t,"q",(function(){return i["r"]})),n.d(t,"r",(function(){return i["s"]})),n.d(t,"s",(function(){return i["t"]})),n.d(t,"t",(function(){return i["u"]})),n.d(t,"u",(function(){return i["v"]})),n.d(t,"v",(function(){return i["w"]})),n.d(t,"w",(function(){return i["x"]})),n.d(t,"x",(function(){return i["y"]}))},"507e":function(e,t,n){},"508f":function(e,t,n){},"50bd":function(e,t){e.exports=''},"50d7":function(e,t,n){(function(){var t,i,r=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},o={}.hasOwnProperty;t=n("065e"),i=n("92e7"),e.exports=function(e){function n(e,i){if(n.__super__.constructor.call(this,e),null==i)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(i)}return r(n,e),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))},n}(i)}).call(this)},"50d8":function(e,t){function n(e,t){var n=-1,i=Array(e);while(++n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("6017"),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("c8ba"))},5122:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("34b2"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r extends i["a"]{constructor(e,t){super(t),this._data=e||""}get offsetSize(){return this.data.length}get data(){return this._data}is(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e}toJSON(){const e=super.toJSON();return e.data=this.data,e}_clone(){return new r(this.data,this.getAttributes())}static fromJSON(e){return new r(e.data,e.attributes)}}},5168:function(e,t,n){var i=n("dbdb")("wks"),r=n("62a0"),o=n("e53d").Symbol,s="function"==typeof o,a=e.exports=function(e){return i[e]||(i[e]=s&&o[e]||(s?o:r)("Symbol."+e))};a.store=i},5171:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n("5c8a"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function r(e,t,n){if(t.attributes)for(const[i,r]of Object.entries(t.attributes))e.setAttribute(i,r,n);t.styles&&e.setStyle(t.styles,n),t.classes&&e.addClass(t.classes,n)}function o(e,t){const n=Object(i["a"])(e);for(const i in t)Array.isArray(t[i])?n[i]=Array.from(new Set([...e[i],...t[i]])):n[i]={...e[i],...t[i]};return n}},"517b":function(e,t,n){"use strict";var i=n("85b1"),r=n("2332"),o="Expected a function";function s(e,t,n){var s=!0,a=!0;if("function"!=typeof e)throw new TypeError(o);return Object(r["a"])(n)&&(s="leading"in n?!!n.leading:s,a="trailing"in n?!!n.trailing:a),Object(i["a"])(e,t,{leading:s,maxWait:t,trailing:a})}t["a"]=s},"51a6":function(e,t,n){},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"51d0":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("edea"),r=n("6896"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class o extends i["a"]{constructor(e){super(e),this.useCapture=!1}observe(e){const t="string"==typeof this.domEventType?[this.domEventType]:this.domEventType;t.forEach(t=>{this.listenTo(e,t,(e,t)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(t.target)&&this.onDomEvent(t)},{useCapture:this.useCapture})})}fire(e,t,n){this.isEnabled&&this.document.fire(e,new r["a"](this.view,t,n))}}},"51f5":function(e,t,n){"use strict"; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ function i(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}n.d(t,"a",(function(){return i}))},5230:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("a242"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r extends i["i"]{static get pluginName(){return"SpecialCharactersText"}init(){const e=this.editor,t=e.t;e.plugins.get("SpecialCharacters").addItems("Text",[{character:"‹",title:t("Single left-pointing angle quotation mark")},{character:"›",title:t("Single right-pointing angle quotation mark")},{character:"«",title:t("Left-pointing double angle quotation mark")},{character:"»",title:t("Right-pointing double angle quotation mark")},{character:"‘",title:t("Left single quotation mark")},{character:"’",title:t("Right single quotation mark")},{character:"“",title:t("Left double quotation mark")},{character:"”",title:t("Right double quotation mark")},{character:"‚",title:t("Single low-9 quotation mark")},{character:"„",title:t("Double low-9 quotation mark")},{character:"¡",title:t("Inverted exclamation mark")},{character:"¿",title:t("Inverted question mark")},{character:"‥",title:t("Two dot leader")},{character:"…",title:t("Horizontal ellipsis")},{character:"‡",title:t("Double dagger")},{character:"‰",title:t("Per mille sign")},{character:"‱",title:t("Per ten thousand sign")},{character:"‼",title:t("Double exclamation mark")},{character:"⁈",title:t("Question exclamation mark")},{character:"⁉",title:t("Exclamation question mark")},{character:"⁇",title:t("Double question mark")},{character:"©",title:t("Copyright sign")},{character:"®",title:t("Registered sign")},{character:"™",title:t("Trade mark sign")},{character:"§",title:t("Section sign")},{character:"¶",title:t("Paragraph sign")},{character:"⁋",title:t("Reversed paragraph sign")}])}}},5270:function(e,t,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),s=n("2444");function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){a(e),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return a(e),t.data=r(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(a(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"528d":function(e,t,n){(function(){var t,i,r,o=function(e,t){for(var n in t)s.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=n("45f3").isObject,i=n("92e7"),t=n("065e"),e.exports=function(e){function n(e,i,o,s){var a;n.__super__.constructor.call(this,e),r(i)&&(a=i,i=a.version,o=a.encoding,s=a.standalone),i||(i="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(i),null!=o&&(this.encoding=this.stringify.xmlEncoding(o)),null!=s&&(this.standalone=this.stringify.xmlStandalone(s))}return o(n,e),n.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},n}(i)}).call(this)},"52e7":function(e,t,n){"use strict";var i=n("53a2"),r=Object(i["a"])(Object.getPrototypeOf,Object);t["a"]=r},"533c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiMenuHeader",mixins:[o.SemanticUIVueMixin],props:{content:{type:String,description:"Shorthand for primary content."}},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:"header"}]),[this.$slots.default||this.content])},meta:{parent:"SuiMenu"}}},"536c":function(e,t){e.exports=''},"536e":function(e,t,n){(function(){var t,i,r=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},o={}.hasOwnProperty;t=n("065e"),i=n("578f"),e.exports=function(e){function n(e,i){if(n.__super__.constructor.call(this,e),null==i)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(i)}return r(n,e),n.prototype.clone=function(){return Object.create(this)},n.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},n}(i)}).call(this)},"537f":function(e,t){e.exports=''},"53a2":function(e,t,n){"use strict";function i(e,t){return function(n){return e(t(n))}}t["a"]=i},"53e2":function(e,t,n){var i=n("07e3"),r=n("241e"),o=n("5559")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"546e":function(e,t){e.exports=''},"549b":function(e,t,n){"use strict";var i=n("d864"),r=n("63b6"),o=n("241e"),s=n("b0dc"),a=n("3702"),c=n("b447"),l=n("20fd"),u=n("7cd6");r(r.S+r.F*!n("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,r,d,h=o(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,b=0,v=u(h);if(g&&(m=i(m,p>2?arguments[2]:void 0,2)),void 0==v||f==Array&&a(v))for(t=c(h.length),n=new f(t);t>b;b++)l(n,b,g?m(h[b],b):h[b]);else for(d=v.call(h),n=new f;!(r=d.next()).done;b++)l(n,b,g?s(d,m,[r.value,b],!0):r.value);return n.length=b,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},"54dd":function(e,t,n){(function(){var t,i,r,o,s,a,c,l,u,d,h,f,p,m,g,b,v,w,y,_,E,x,k,A={}.hasOwnProperty;k=n("45f3"),E=k.isObject,_=k.isFunction,x=k.isPlainObject,y=k.getValue,t=n("065e"),f=n("ae0a"),p=n("b8ee"),o=n("536e"),s=n("8930"),g=n("50d7"),w=n("9d2f"),m=n("f016"),d=n("528d"),h=n("d7e3"),a=n("188f"),l=n("1585"),c=n("3b32"),u=n("b6e1"),r=n("2280"),v=n("5a61"),b=n("1f08"),i=n("0985"),e.exports=function(){function e(e,n,i){var r;this.name="?xml",this.type=t.Document,e||(e={}),r={},e.writer?x(e.writer)&&(r=e.writer,e.writer=new b):e.writer=new b,this.options=e,this.writer=e.writer,this.writerOptions=this.writer.filterOptions(r),this.stringify=new v(e),this.onDataCallback=n||function(){},this.onEndCallback=i||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return e.prototype.createChildNode=function(e){var n,i,r,o,s,a,c,l;switch(e.type){case t.CData:this.cdata(e.value);break;case t.Comment:this.comment(e.value);break;case t.Element:for(i in r={},c=e.attribs,c)A.call(c,i)&&(n=c[i],r[i]=n.value);this.node(e.name,r);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(e.value);break;case t.Text:this.text(e.value);break;case t.ProcessingInstruction:this.instruction(e.target,e.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+e.constructor.name)}for(l=e.children,s=0,a=l.length;s=0)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){var n,r,o,s;if(!e.isOpen){if(this.root||0!==this.currentLevel||e.type!==t.Element||(this.root=e),r="",e.type===t.Element){for(o in this.writerOptions.state=i.OpenTag,r=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name,s=e.attribs,s)A.call(s,o)&&(n=s[o],r+=this.writer.attribute(n,this.writerOptions,this.currentLevel));r+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=i.InsideTag}else this.writerOptions.state=i.OpenTag,r=this.writer.indent(e,this.writerOptions,this.currentLevel)+""),r+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(r,this.currentLevel),e.isOpen=!0}},e.prototype.closeNode=function(e){var n;if(!e.isClosed)return n="",this.writerOptions.state=i.CloseTag,n=e.type===t.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+""+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=i.None,this.onData(n,this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,n){return this.node(e,t,n)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,n){return this.declaration(e,t,n)},e.prototype.dtd=function(e,t,n){return this.doctype(e,t,n)},e.prototype.e=function(e,t,n){return this.element(e,t,n)},e.prototype.n=function(e,t,n){return this.node(e,t,n)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(this)},"553a":function(e,t,n){"use strict";n.d(t,"q",(function(){return r})),n.d(t,"f",(function(){return d["a"]})),n.d(t,"e",(function(){return h["a"]})),n.d(t,"j",(function(){return f["a"]})),n.d(t,"d",(function(){return p["a"]})),n.d(t,"b",(function(){return m["a"]})),n.d(t,"l",(function(){return g["a"]})),n.d(t,"r",(function(){return b["b"]})),n.d(t,"i",(function(){return v["a"]})),n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return w["a"]})),n.d(t,"h",(function(){return _["a"]})),n.d(t,"k",(function(){return S})),n.d(t,"g",(function(){return P["a"]})),n.d(t,"m",(function(){return ie})),n.d(t,"n",(function(){return oe})),n.d(t,"o",(function(){return be})),n.d(t,"p",(function(){return ve})),n.d(t,"s",(function(){return L})),n.d(t,"t",(function(){return z})),n.d(t,"u",(function(){return U}));n("507e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */const i=new WeakMap;function r(e){const{view:t,element:n,text:r,isDirectHost:o=!0,keepOnFocus:s=!1}=e,a=t.document;i.has(a)||(i.set(a,new Map),a.registerPostFixer(e=>c(a,e))),i.get(a).set(n,{text:r,isDirectHost:o,keepOnFocus:s,hostElement:o?n:null}),t.change(e=>c(a,e))}function o(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}function s(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}function a(e,t){if(!e.isAttached())return!1;const n=Array.from(e.getChildren()).some(e=>!e.is("uiElement"));if(n)return!1;if(t)return!0;const i=e.document;if(!i.isFocused)return!0;const r=i.selection,o=r.anchor;return o&&o.parent!==e}function c(e,t){const n=i.get(e),r=[];let o=!1;for(const[i,s]of n)s.isDirectHost&&(r.push(i),l(t,i,s)&&(o=!0));for(const[i,s]of n){if(s.isDirectHost)continue;const e=u(i);e&&(r.includes(e)||(s.hostElement=e,l(t,i,s)&&(o=!0)))}return o}function l(e,t,n){const{text:i,isDirectHost:r,hostElement:c}=n;let l=!1;c.getAttribute("data-placeholder")!==i&&(e.setAttribute("data-placeholder",i,c),l=!0);const u=r||1==t.childCount;return u&&a(c,n.keepOnFocus)?o(e,c)&&(l=!0):s(e,c)&&(l=!0),l}function u(e){if(e.childCount){const t=e.getChild(0);if(t.is("element")&&!t.is("uiElement"))return t}return null}n("d38d"),n("fc1c"),n("aabd"),n("1339"),n("17e1"),n("f4bc"),n("3f95"),n("8ab1"),n("c494"),n("ad6b");var d=n("0f93"),h=n("96f5"),f=(n("e329"),n("82af")),p=n("a641"),m=n("c3df"),g=(n("fb19"),n("c69c")),b=n("a4b7"),v=n("edea"),w=n("51d0"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class y extends w["a"]{constructor(e){super(e),this.domEventType="click"}onDomEvent(e){this.fire(e.type,e)}}var _=n("4df9"),E=(n("bfec"),n("fcd8")),x=n("2c4d"),k=n("b199"),A=n("e8b2"),O=n("d65e"),C=n("3b42"),T=n("7d4a"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class S{constructor(e){this.document=e}createDocumentFragment(e){return new E["a"](this.document,e)}createElement(e,t,n){return new x["a"](this.document,e,t,n)}createText(e){return new k["a"](this.document,e)}clone(e,t=!1){return e._clone(t)}appendChild(e,t){return t._appendChild(e)}insertChild(e,t,n){return n._insertChild(e,t)}removeChildren(e,t,n){return n._removeChildren(e,t)}remove(e){const t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}replace(e,t){const n=e.parent;if(n){const i=n.getChildIndex(e);return this.removeChildren(i,1,n),this.insertChild(i,t,n),!0}return!1}unwrapElement(e){const t=e.parent;if(t){const n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}rename(e,t){const n=new x["a"](this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){Object(A["a"])(e)&&void 0===n&&(n=t),n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}createPositionAt(e,t){return O["a"]._createAt(e,t)}createPositionAfter(e){return O["a"]._createAfter(e)}createPositionBefore(e){return O["a"]._createBefore(e)}createRange(e,t){return new C["a"](e,t)}createRangeOn(e){return C["a"]._createOn(e)}createRangeIn(e){return C["a"]._createIn(e)}createSelection(e,t,n){return new T["a"](e,t,n)}}var P=n("e755");n("6896"),n("f617"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const I=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,R=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,M=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,j=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,N=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,D=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);function L(e){return e.startsWith("#")?I.test(e):e.startsWith("rgb")?R.test(e)||M.test(e):e.startsWith("hsl")?j.test(e)||N.test(e):D.has(e.toLowerCase())}const V=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function B(e){return V.includes(e)}const F=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function z(e){return F.test(e)}const $=/^[+-]?[0-9]*([.][0-9]+)?%$/;function U(e){return $.test(e)}const H=["repeat-x","repeat-y","repeat","space","round","no-repeat"];function q(e){return H.includes(e)}const W=["center","top","bottom","left","right"];function G(e){return W.includes(e)}const Y=["fixed","scroll","local"];function K(e){return Y.includes(e)}const X=/^url\(/;function J(e){return X.test(e)}function Q(e=""){if(""===e)return{top:void 0,right:void 0,bottom:void 0,left:void 0};const t=ne(e),n=t[0],i=t[2]||n,r=t[1]||n,o=t[3]||r;return{top:n,bottom:i,right:r,left:o}}function Z(e){return t=>{const{top:n,right:i,bottom:r,left:o}=t,s=[];return[n,i,o,r].every(e=>!!e)?s.push([e,ee(t)]):(n&&s.push([e+"-top",n]),i&&s.push([e+"-right",i]),r&&s.push([e+"-bottom",r]),o&&s.push([e+"-left",o])),s}}function ee({top:e,right:t,bottom:n,left:i}){const r=[];return i!==t?r.push(e,t,n,i):n!==e?r.push(e,t,n):t!==e?r.push(e,t):r.push(e),r.join(" ")}function te(e){return t=>{return{path:e,value:Q(t)}}}function ne(e){return e.replace(/, /g,",").split(" ").map(e=>e.replace(/,/g,", "))} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function ie(e){e.setNormalizer("background",re),e.setNormalizer("background-color",e=>({path:"background.color",value:e})),e.setReducer("background",e=>{const t=[];return t.push(["background-color",e.color]),t}),e.setStyleRelation("background",["background-color"])}function re(e){const t={},n=ne(e);for(const i of n)q(i)?(t.repeat=t.repeat||[],t.repeat.push(i)):G(i)?(t.position=t.position||[],t.position.push(i)):K(i)?t.attachment=i:L(i)?t.color=i:J(i)&&(t.image=i);return{path:"background",value:t}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function oe(e){e.setNormalizer("border",se),e.setNormalizer("border-top",ae("top")),e.setNormalizer("border-right",ae("right")),e.setNormalizer("border-bottom",ae("bottom")),e.setNormalizer("border-left",ae("left")),e.setNormalizer("border-color",ce("color")),e.setNormalizer("border-width",ce("width")),e.setNormalizer("border-style",ce("style")),e.setNormalizer("border-top-color",ue("color","top")),e.setNormalizer("border-top-style",ue("style","top")),e.setNormalizer("border-top-width",ue("width","top")),e.setNormalizer("border-right-color",ue("color","right")),e.setNormalizer("border-right-style",ue("style","right")),e.setNormalizer("border-right-width",ue("width","right")),e.setNormalizer("border-bottom-color",ue("color","bottom")),e.setNormalizer("border-bottom-style",ue("style","bottom")),e.setNormalizer("border-bottom-width",ue("width","bottom")),e.setNormalizer("border-left-color",ue("color","left")),e.setNormalizer("border-left-style",ue("style","left")),e.setNormalizer("border-left-width",ue("width","left")),e.setExtractor("border-top",de("top")),e.setExtractor("border-right",de("right")),e.setExtractor("border-bottom",de("bottom")),e.setExtractor("border-left",de("left")),e.setExtractor("border-top-color","border.color.top"),e.setExtractor("border-right-color","border.color.right"),e.setExtractor("border-bottom-color","border.color.bottom"),e.setExtractor("border-left-color","border.color.left"),e.setExtractor("border-top-width","border.width.top"),e.setExtractor("border-right-width","border.width.right"),e.setExtractor("border-bottom-width","border.width.bottom"),e.setExtractor("border-left-width","border.width.left"),e.setExtractor("border-top-style","border.style.top"),e.setExtractor("border-right-style","border.style.right"),e.setExtractor("border-bottom-style","border.style.bottom"),e.setExtractor("border-left-style","border.style.left"),e.setReducer("border-color",Z("border-color")),e.setReducer("border-style",Z("border-style")),e.setReducer("border-width",Z("border-width")),e.setReducer("border-top",me("top")),e.setReducer("border-right",me("right")),e.setReducer("border-bottom",me("bottom")),e.setReducer("border-left",me("left")),e.setReducer("border",pe()),e.setStyleRelation("border",["border-color","border-style","border-width","border-top","border-right","border-bottom","border-left","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width"]),e.setStyleRelation("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"]),e.setStyleRelation("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"]),e.setStyleRelation("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"]),e.setStyleRelation("border-top",["border-top-color","border-top-style","border-top-width"]),e.setStyleRelation("border-right",["border-right-color","border-right-style","border-right-width"]),e.setStyleRelation("border-bottom",["border-bottom-color","border-bottom-style","border-bottom-width"]),e.setStyleRelation("border-left",["border-left-color","border-left-style","border-left-width"])}function se(e){const{color:t,style:n,width:i}=fe(e);return{path:"border",value:{color:Q(t),style:Q(n),width:Q(i)}}}function ae(e){return t=>{const{color:n,style:i,width:r}=fe(t),o={};return void 0!==n&&(o.color={[e]:n}),void 0!==i&&(o.style={[e]:i}),void 0!==r&&(o.width={[e]:r}),{path:"border",value:o}}}function ce(e){return t=>{return{path:"border",value:le(t,e)}}}function le(e,t){return{[t]:Q(e)}}function ue(e,t){return n=>{return{path:"border",value:{[e]:{[t]:n}}}}}function de(e){return(t,n)=>{if(n.border)return he(n.border,e)}}function he(e,t){const n={};return e.width&&e.width[t]&&(n.width=e.width[t]),e.style&&e.style[t]&&(n.style=e.style[t]),e.color&&e.color[t]&&(n.color=e.color[t]),n}function fe(e){const t={},n=ne(e);for(const i of n)z(i)||/thin|medium|thick/.test(i)?t.width=i:B(i)?t.style=i:t.color=i;return t}function pe(){return t=>{const n=he(t,"top"),i=he(t,"right"),r=he(t,"bottom"),o=he(t,"left"),s=[n,i,r,o],a={width:e(s,"width"),style:e(s,"style"),color:e(s,"color")},c=ge(a,"all");if(c.length)return c;const l=Object.entries(a).reduce((e,[t,n])=>{return n&&(e.push([`border-${t}`,n]),s.forEach(e=>e[t]=null)),e},[]);return[...l,...ge(n,"top"),...ge(i,"right"),...ge(r,"bottom"),...ge(o,"left")]};function e(e,t){return e.map(e=>e[t]).reduce((e,t)=>e==t?e:null)}}function me(e){return t=>ge(t,e)}function ge(e,t){const n=[];if(e&&e.width&&n.push("width"),e&&e.style&&n.push("style"),e&&e.color&&n.push("color"),3==n.length){const i=n.map(t=>e[t]).join(" ");return["all"==t?["border",i]:[`border-${t}`,i]]}return"all"==t?[]:n.map(n=>{return[`border-${t}-${n}`,e[n]]})} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function be(e){e.setNormalizer("margin",te("margin")),e.setNormalizer("margin-top",e=>({path:"margin.top",value:e})),e.setNormalizer("margin-right",e=>({path:"margin.right",value:e})),e.setNormalizer("margin-bottom",e=>({path:"margin.bottom",value:e})),e.setNormalizer("margin-left",e=>({path:"margin.left",value:e})),e.setReducer("margin",Z("margin")),e.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */function ve(e){e.setNormalizer("padding",te("padding")),e.setNormalizer("padding-top",e=>({path:"padding.top",value:e})),e.setNormalizer("padding-right",e=>({path:"padding.right",value:e})),e.setNormalizer("padding-bottom",e=>({path:"padding.bottom",value:e})),e.setNormalizer("padding-left",e=>({path:"padding.left",value:e})),e.setReducer("padding",Z("padding")),e.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */},5559:function(e,t,n){var i=n("dbdb")("keys"),r=n("62a0");e.exports=function(e){return i[e]||(i[e]=r(e))}},5595:function(e,t,n){"use strict";n.d(t,"a",(function(){return i["a"]})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return N})),n.d(t,"e",(function(){return c["d"]})),n.d(t,"f",(function(){return c["e"]})),n.d(t,"g",(function(){return c["f"]})),n.d(t,"d",(function(){return c["b"]}));var i=n("bf50"),r=n("109b"),o=n("164f"),s=n("1e6e"),a=n("ec02"),c=n("2beb"),l=n("f2ea"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class u extends r["a"]{static get requires(){return[o["a"]]}static get pluginName(){return"WidgetToolbarRepository"}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",t=>{f(e.editing.view.document.selection)&&t.stop()},{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:n,getRelatedElement:i,balloonClassName:r="ck-toolbar-container"}){if(!n.length)return void Object(l["b"])("widget-toolbar-no-items",{toolbarId:e});const o=this.editor,a=o.t,c=new s["a"](o.locale);if(c.ariaLabel=t||a("Widget toolbar"),this._toolbarDefinitions.has(e))throw new l["a"]("widget-toolbar-duplicated",this,{toolbarId:e});c.fillFromConfig(n,o.ui.componentFactory),this._toolbarDefinitions.set(e,{view:c,getRelatedElement:i,balloonClassName:r})}_updateToolbarsVisibility(){let e=0,t=null,n=null;for(const i of this._toolbarDefinitions.values()){const r=i.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&r)if(this.editor.ui.focusTracker.isFocused){const o=r.getAncestors().length;o>e&&(e=o,t=r,n=i)}else this._isToolbarVisible(i)&&this._hideToolbar(i);else this._isToolbarInBalloon(i)&&this._hideToolbar(i)}n&&this._showToolbar(n,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?d(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:h(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const e of this._toolbarDefinitions.values())if(this._isToolbarVisible(e)){const t=e.getRelatedElement(this.editor.editing.view.document.selection);d(this.editor,t)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function d(e,t){const n=e.plugins.get("ContextualBalloon"),i=h(e,t);n.updatePosition(i)}function h(e,t){const n=e.editing.view,i=a["a"].defaultPositions;return{target:n.domConverter.mapViewToDom(t),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}function f(e){const t=e.getSelectedElement();return!(!t||!Object(c["d"])(t))}var p=n("e805"),m=n("c78f"),g=n("e47a"),b=n("d4e1"),v=n("644e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class w{constructor(e){this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}begin(e,t,n){const i=new m["a"](t);this.activeHandlePosition=x(e),this._referenceCoordinates=_(t,k(this.activeHandlePosition)),this.originalWidth=i.width,this.originalHeight=i.height,this.aspectRatio=i.width/i.height;const r=n.style.width;r&&r.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(r):this.originalWidthPercents=y(n,i)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}function y(e,t){const n=e.parentElement,i=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return t.width/i*100}function _(e,t){const n=new m["a"](e),i=t.split("-"),r={x:"right"==i[1]?n.right:n.left,y:"bottom"==i[0]?n.bottom:n.top};return r.x+=e.ownerDocument.defaultView.scrollX,r.y+=e.ownerDocument.defaultView.scrollY,r}function E(e){return`ck-widget__resizer__handle-${e}`}function x(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const n of t)if(e.classList.contains(E(n)))return n}function k(e){const t=e.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return`${n[t[0]]}-${n[t[1]]}`}Object(v["a"])(w,b["a"]);var A=n("940e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class O extends A["a"]{constructor(){super();const e=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",e.to("_viewPosition",e=>e?`ck-orientation-${e}`:"")],style:{display:e.if("_isVisible","none",e=>!e)}},children:[{text:e.to("_label")}]})}_bindToState(e,t){this.bind("_isVisible").to(t,"proposedWidth",t,"proposedHeight",(e,t)=>null!==e&&null!==t),this.bind("_label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(t,n,i)=>{return"px"===e.unit?`${t}×${n}`:`${i}%`}),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",(e,t,n)=>t<50||n<50?"above-center":e)}_dismiss(){this.unbind(),this._isVisible=!1}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class C{constructor(e){this._options=e,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",e=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),e.stop())},{priority:"high"}),this.on("change:isEnabled",()=>{this.isEnabled&&this.redraw()})}attach(){const e=this,t=this._options.viewElement,n=this._options.editor.editing.view;n.change(n=>{const i=n.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(t){const n=this.toDomElement(t);return e._appendHandles(n),e._appendSizeUI(n),e.on("change:isEnabled",(e,t,i)=>{n.style.display=i?"":"none"}),n.style.display=e.isEnabled?"":"none",n}));n.insert(n.createPositionAt(t,"end"),i),n.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=i})}begin(e){this.state=new w(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}updateSize(e){const t=this._proposeNewSize(e),n=this._options.editor.editing.view;n.change(e=>{const n=this._options.unit||"%",i=("%"===n?t.widthPercents:t.width)+n;e.setStyle("width",i,this._options.viewElement)});const i=this._getHandleHost(),r=new m["a"](i);t.handleHostWidth=Math.round(r.width),t.handleHostHeight=Math.round(r.height);const o=new m["a"](i);t.width=Math.round(o.width),t.height=Math.round(o.height),this.redraw(r),this.state.update(t)}commit(){const e=this._options.unit||"%",t=("%"===e?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change(()=>{this._cleanup(),this._options.onCommit(t)})}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(e){const t=this._domResizerWrapper;if(!P(t))return;const n=t.parentElement,i=this._getHandleHost(),r=this._viewResizerWrapper,o=[r.getStyle("width"),r.getStyle("height"),r.getStyle("left"),r.getStyle("top")];let s;if(n.isSameNode(i)){const t=e||new m["a"](i);s=[t.width+"px",t.height+"px",void 0,void 0]}else s=[i.offsetWidth+"px",i.offsetHeight+"px",i.offsetLeft+"px",i.offsetTop+"px"];"same"!==Object(g["a"])(o,s)&&this._options.editor.editing.view.change(e=>{e.setStyle({width:s[0],height:s[1],left:s[2],top:s[3]},r)})}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss();const e=this._options.editor.editing.view;e.change(e=>{e.setStyle("width",this._initialViewWidth,this._options.viewElement)})}_proposeNewSize(e){const t=this.state,n=S(e),i=!this._options.isCentered||this._options.isCentered(this),r={x:t._referenceCoordinates.x-(n.x+t.originalWidth),y:n.y-t.originalHeight-t._referenceCoordinates.y};i&&t.activeHandlePosition.endsWith("-right")&&(r.x=n.x-(t._referenceCoordinates.x+t.originalWidth)),i&&(r.x*=2);const o={width:Math.abs(t.originalWidth+r.x),height:Math.abs(t.originalHeight+r.y)};o.dominant=o.width/t.aspectRatio>o.height?"width":"height",o.max=o[o.dominant];const s={width:o.width,height:o.height};return"width"==o.dominant?s.height=s.width/t.aspectRatio:s.width=s.height*t.aspectRatio,{width:Math.round(s.width),height:Math.round(s.height),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*s.width*100)/100,100)}}_getResizeHost(){const e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}_getHandleHost(){const e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const n of t)e.appendChild(new p["a"]({tag:"div",attributes:{class:`ck-widget__resizer__handle ${T(n)}`}}).render())}_appendSizeUI(e){this._sizeView=new O,this._sizeView.render(),e.appendChild(this._sizeView.element)}}function T(e){return`ck-widget__resizer__handle-${e}`}function S(e){return{x:e.pageX,y:e.pageY}}function P(e){return e&&e.ownerDocument&&e.ownerDocument.contains(e)}Object(v["a"])(C,b["a"]);var I=n("f264"),R=n("a07d"),M=n("4df9"),j=n("517b");n("fc4c"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class N extends r["a"]{static get pluginName(){return"WidgetResize"}init(){const e=this.editor.editing,t=R["a"].window.document;this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map,e.view.addObserver(M["a"]),this._observer=Object.create(I["a"]),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this));const n=()=>{this.visibleResizer&&this.visibleResizer.redraw()};this._redrawFocusedResizerThrottled=Object(j["a"])(n,200),this.on("change:visibleResizer",n),this.editor.ui.on("update",this._redrawFocusedResizerThrottled),this.editor.model.document.on("change",()=>{for(const[e,t]of this._resizers)e.isAttached()||(this._resizers.delete(e),t.destroy())},{priority:"lowest"}),this._observer.listenTo(R["a"].window,"resize",this._redrawFocusedResizerThrottled);const i=this.editor.editing.view.document.selection;i.on("change",()=>{const e=i.getSelectedElement();this.visibleResizer=this.getResizerByViewElement(e)||null})}destroy(){this._observer.stopListening();for(const e of this._resizers.values())e.destroy();this._redrawFocusedResizerThrottled.cancel()}attachTo(e){const t=new C(e),n=this.editor.plugins;if(t.attach(),n.has("WidgetToolbarRepository")){const e=n.get("WidgetToolbarRepository");t.on("begin",()=>{e.forceDisabled("resize")},{priority:"lowest"}),t.on("cancel",()=>{e.clearForceDisabled("resize")},{priority:"highest"}),t.on("commit",()=>{e.clearForceDisabled("resize")},{priority:"highest"})}this._resizers.set(e.viewElement,t);const i=this.editor.editing.view.document.selection,r=i.getSelectedElement();return this.getResizerByViewElement(r)==t&&(this.visibleResizer=t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(const t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){const n=t.domTarget;C.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}Object(v["a"])(N,b["a"]);n("8021"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */},"55a3":function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},"564c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiLabelDetail",mixins:[o.SemanticUIVueMixin],render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:"detail"}]),[this.$slots.default])},meta:{parent:"SuiLabel"}}},5674:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("716a");Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return a(i).default}});var r=n("f122");Object.defineProperty(t,"ButtonContent",{enumerable:!0,get:function(){return a(r).default}});var o=n("b914");Object.defineProperty(t,"ButtonGroup",{enumerable:!0,get:function(){return a(o).default}});var s=n("b7eb");function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ButtonOr",{enumerable:!0,get:function(){return a(s).default}})},"56b3":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("a242"),r=n("5595"),o=n("6e4c"),s=n("2332"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class a extends i["i"]{static get requires(){return[r["c"],o["a"]]}static get pluginName(){return"ImageToolbar"}afterInit(){const e=this.editor,t=e.t,n=e.plugins.get(r["c"]),i=e.plugins.get("ImageUtils");n.register("image",{ariaLabel:t("Image toolbar"),items:c(e.config.get("image.toolbar")||[]),getRelatedElement:e=>i.getClosestSelectedImageWidget(e)})}}function c(e){return e.map(e=>Object(s["a"])(e)?e.name:e)}},"56ea":function(e,t,n){"use strict"; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ function i(e,t,n,i,r=1){t>r?i.setAttribute(e,t,n):i.removeAttribute(e,n)}function r(e,t,n={}){const i=e.createElement("tableCell",n);return e.insertElement("paragraph",i),e.insert(i,t),i}function o(e,t){const n=t.parent.parent,i=parseInt(n.getAttribute("headingColumns")||0),{column:r}=e.getCellLocation(t);return!!i&&r'},"57f2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=p(i),o=n("c295"),s=n("8d9d"),a=p(s),c=n("1a7c"),l=p(c),u=n("3b6f"),d=p(u),h=n("9078"),f=p(h);function p(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiDropdownItem",mixins:[o.SemanticUIVueMixin],props:{flag:{type:String,description:"Shorthand for sui-flag."},image:{type:Object,description:"Shorthand for sui-image."},icon:{type:String,description:"Shorthand for sui-icon."},label:{type:Object,description:"Shorthand for sui-label"},text:{type:String,description:"Display text."},value:{type:null,description:"Stored value."},active:{type:Boolean,default:!1,description:"Style as the currently chosen item."},selected:{type:Boolean,default:!1,description:"Is item selected"},disabled:{type:Boolean,default:!1,description:"A dropdown item can be disabled."}},events:{select:{custom:!0}},methods:{select:function(){this.$emit("select",this.value)}},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{attrs:{role:"option"},class:this.classes(this.disabled&&"disabled",this.active&&"active",this.selected&&"selected","item"),on:{click:this.select}}]),[this.icon&&e(d.default,{attrs:{name:this.icon}},[]),this.image&&e(l.default,{props:this.image},[]),this.flag&&e(a.default,{attrs:{name:this.flag}},[]),this.label&&e(f.default,{props:this.label},[]),this.text||this.$slots.default])},meta:{parent:"SuiDropdown"}}},"584a":function(e,t){var n=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},"589e":function(e,t,n){"use strict";function i(){return[]}t["a"]=i},"58e0":function(e,t,n){"use strict";(function(e){var i=n("26ee"),r=n("2f74"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===o,c=a?i["a"].Buffer:void 0,l=c?c.isBuffer:void 0,u=l||r["a"];t["a"]=u}).call(this,n("dd40")(e))},"590f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("b9e9"),s=n("c295");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiProgress",mixins:[s.SemanticUIVueMixin],props:{label:String,content:String,top:Boolean,bottom:Boolean,attached:Boolean,inverted:Boolean,progress:Boolean,indicating:Boolean,indeterminate:Boolean,size:o.Enum.Size(),color:o.Enum.Color(),state:o.Enum.State(),percent:{type:[Number,String],default:50,validator:function(e){return e>=0&&e<=100}}},computed:{percentString:function(){return this.percent+"%"}},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("ui","progress",this.state,this.color,this.size,this.top&&"top",this.bottom&&"bottom",this.inverted&&"inverted",this.attached&&"attached",this.indicating&&"indicating",this.indeterminate&&"indeterminate"),attrs:{"data-percent":this.percent}}]),[e("div",{class:"bar",style:{width:this.percentString,"transition-duration":"300ms"}},[this.progress&&e("div",{class:"progress"},[" ",this.percentString," "])]),this.label&&e("div",{class:"label"},[this.label])])}}},5995:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var i=n("2c4d"),r=n("f2ea"),o=n("ff8c"),s=n("84c3"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class a extends i["a"]{constructor(e,t,n,i){super(e,t,n,i),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=l}is(e,t=null){return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}_insertChild(e,t){if(t&&(t instanceof o["a"]||Array.from(t).length>0))throw new r["a"]("view-uielement-cannot-add",this)}render(e){return this.toDomElement(e)}toDomElement(e){const t=e.createElement(this.name);for(const n of this.getAttributeKeys())t.setAttribute(n,this.getAttribute(n));return t}}function c(e){e.document.on("arrowKey",(t,n)=>u(t,n,e.domConverter),{priority:"low"})}function l(){return null}function u(e,t,n){if(t.keyCode==s["f"].arrowright){const e=t.domTarget.ownerDocument.defaultView.getSelection(),i=1==e.rangeCount&&e.getRangeAt(0).collapsed;if(i||t.shiftKey){const t=e.focusNode,r=e.focusOffset,o=n.domPositionToView(t,r);if(null===o)return;let s=!1;const a=o.getLastMatchingPosition(e=>{return e.item.is("uiElement")&&(s=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))});if(s){const t=n.viewPositionToDom(a);i?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}}},"59a6":function(e,t,n){"use strict"; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */const i=navigator.userAgent.toLowerCase(),r={isMac:o(i),isWindows:s(i),isGecko:a(i),isSafari:c(i),isiOS:l(i),isAndroid:u(i),isBlink:d(i),features:{isRegExpUnicodePropertySupported:h()}};function o(e){return e.indexOf("macintosh")>-1}function s(e){return e.indexOf("windows")>-1}function a(e){return!!e.match(/gecko\/\d+/)}function c(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}function l(e){return!!e.match(/iphone|ipad/i)||o(e)&&navigator.maxTouchPoints>0}function u(e){return e.indexOf("android")>-1}function d(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}function h(){let e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}return e}t["a"]=r},"5a0f":function(e,t){e.exports=''},"5a61":function(e,t){(function(){var t=function(e,t){return function(){return e.apply(t,arguments)}},n={}.hasOwnProperty;e.exports=function(){function e(e){var i,r,o;for(i in this.assertLegalName=t(this.assertLegalName,this),this.assertLegalChar=t(this.assertLegalChar,this),e||(e={}),this.options=e,this.options.version||(this.options.version="1.0"),r=e.stringify||{},r)n.call(r,i)&&(o=r[i],this[i]=o)}return e.prototype.name=function(e){return this.options.noValidation?e:this.assertLegalName(""+e||"")},e.prototype.text=function(e){return this.options.noValidation?e:this.assertLegalChar(this.textEscape(""+e||""))},e.prototype.cdata=function(e){return this.options.noValidation?e:(e=""+e||"",e=e.replace("]]>","]]]]>"),this.assertLegalChar(e))},e.prototype.comment=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},e.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},e.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},e.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.insValue=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},e.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},e.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return this.assertLegalChar(e)},e.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},e.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(e){var t,n;if(this.options.noValidation)return e;if(t="","1.0"===this.options.version){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=e.match(t))throw new Error("Invalid character in string: "+e+" at index "+n.index)}else if("1.1"===this.options.version&&(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n=e.match(t)))throw new Error("Invalid character in string: "+e+" at index "+n.index);return e},e.prototype.assertLegalName=function(e){var t;if(this.options.noValidation)return e;if(this.assertLegalChar(e),t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!e.match(t))throw new Error("Invalid character in name");return e},e.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(//g,">").replace(/\r/g," "))},e.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/e.createTextNode(" "),s=e=>{const t=e.createElement("span");return t.dataset.ckeFiller=!0,t.innerHTML=" ",t},a=e=>{const t=e.createElement("br");return t.dataset.ckeFiller=!0,t},c=7,l="⁠".repeat(c);function u(e){return Object(r["a"])(e)&&e.data.substr(0,c)===l}function d(e){return e.data.length==c&&u(e)}function h(e){return u(e)?e.data.slice(c):e.data}function f(e){e.document.on("arrowKey",p,{priority:"low"})}function p(e,t){if(t.keyCode==i["f"].arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const t=e.getRangeAt(0).startContainer,n=e.getRangeAt(0).startOffset;u(t)&&n<=c&&e.collapse(t,0)}}}},"5b1f":function(e,t){e.exports=''},"5b4e":function(e,t,n){var i=n("36c3"),r=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,s){var a,c=i(t),l=r(c.length),u=o(s,l);if(e&&n!=n){while(l>u)if(a=c[u++],a!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},"5bfb":function(e,t,n){"use strict"; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */const i={get(e){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};t["a"]=i},"5c08":function(e,t,n){},"5c2a":function(e,t){(function(){e.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(e){return this.nodes[e]},e.prototype.setNamedItem=function(e){var t;return t=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,t||null},e.prototype.removeNamedItem=function(e){var t;return t=this.nodes[e],delete this.nodes[e],t||null},e.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},e.prototype.getNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.removeNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(this)},"5c69":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("025b");function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Rating",{enumerable:!0,get:function(){return r(i).default}})},"5c8a":function(e,t,n){"use strict";var i=n("09f4"),r=1,o=4;function s(e){return Object(i["a"])(e,r|o)}t["a"]=s},"5cba":function(e,t){e.exports=''},"5dbf":function(e,t){e.exports=''},"5e1a":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n("8707").Buffer,o=n(2);function s(e,t,n){e.copy(t,n)}e.exports=function(){function e(){i(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;var t=r.allocUnsafe(e>>>0),n=this.head,i=0;while(n)s(n.data,t,i),i+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},"5e2e":function(e,t,n){var i=n("28c9"),r=n("69d5"),o=n("b4c0"),s=n("fba5"),a=n("67ca");function c(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t{const i=e.commands.get(a),o=new r["c"](n);return o.set({label:t("Remove Format"),icon:s.a,tooltip:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(o,"execute",()=>{e.execute(a),e.editing.view.focus()}),o})}}var l=n("4fdd"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class u extends i["a"]{refresh(){const e=this.editor.model;this.isEnabled=!!Object(l["k"])(this._getFormattingItems(e.document.selection,e.schema))}execute(){const e=this.editor.model,t=e.schema;e.change(n=>{for(const i of this._getFormattingItems(e.document.selection,t))if(i.is("selection"))for(const e of this._getFormattingAttributes(i,t))n.removeSelectionAttribute(e);else{const e=n.createRangeOn(i);for(const r of this._getFormattingAttributes(i,t))n.removeAttribute(r,e)}})}*_getFormattingItems(e,t){const n=e=>{return!!Object(l["k"])(this._getFormattingAttributes(e,t))};for(const i of e.getRanges())for(const e of i.getItems())!t.isBlock(e)&&n(e)&&(yield e);for(const i of e.getSelectedBlocks())n(i)&&(yield i);n(e)&&(yield e)}*_getFormattingAttributes(e,t){for(const[n]of e.getAttributes()){const e=t.getAttributeProperties(n);e&&e.isFormatting&&(yield n)}}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class d extends i["i"]{static get pluginName(){return"RemoveFormatEditing"}init(){const e=this.editor;e.commands.add("removeFormat",new u(e))}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class h extends i["i"]{static get requires(){return[d,c]}static get pluginName(){return"RemoveFormat"}}},"5ea3":function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t["a"]=n}).call(this,n("c8ba"))},"5edf":function(e,t){function n(e,t,n){var i=-1,r=null==e?0:e.length;while(++i{const i=e.commands.get(u),r=new a["c"](n);return r.set({label:t("Strikethrough"),icon:l.a,keystroke:"CTRL+SHIFT+X",tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{e.execute(u),e.editing.view.focus()}),r})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class h extends i["i"]{static get requires(){return[s,d]}static get pluginName(){return"Strikethrough"}}},"61f1":function(e,t,n){"use strict";var i=n("f842"),r=n("92dd"),o=n("e3fa"),s=Object(r["a"])((function(e,t){Object(i["a"])(t,Object(o["a"])(t),e)}));t["a"]=s},6217:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("6042"),r=m(i),o=n("41b2"),s=m(o),a=n("b24f"),c=m(a),l=n("1098"),u=m(l);t.default=g;var d=n("bba4"),h=m(d),f=n("8103"),p=m(f);function m(e){return e&&e.__esModule?e:{default:e}}function g(){if(!this.$vnode||!this.$vnode.data.attrs)return{};var e=this.getElementType(),t=void 0;if("string"===typeof e){var n=this.$options.components,i=void 0,o=n[e]||n[i=(0,h.default)(e)]||n[(0,p.default)(i)];if(!o)return{};t=o.options.props}else{if("object"!==("undefined"===typeof e?"undefined":(0,u.default)(e)))return{};t=e.props}var a=Object.entries(this.$vnode.data.attrs).filter((function(e){var n=(0,c.default)(e,1),i=n[0];return(0,h.default)(i)in t})).map((function(e){var n=(0,c.default)(e,2),i=n[0],r=n[1],o=(0,h.default)(i);return t[o].type===Boolean?!1===r?[o,!1]:[o,!0]:[o,r]})).reduce((function(e,t){var n=(0,c.default)(t,2),i=n[0],o=n[1];return(0,s.default)({},e,(0,r.default)({},i,o))}),{});return a}},"62a0":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},"62c0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiCommentAvatar",mixins:[o.SemanticUIVueMixin],props:{src:String},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("avatar")}]),[e("img",{attrs:{src:this.src}},[])])},meta:{parent:"SuiComment"}}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"62f3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("c295"),s=n("2097");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiFeedEvent",mixins:[o.SemanticUIVueMixin],description:"A feed contains an event",props:{content:{type:String,description:"Shorthand for SuiFeedContent"},image:{type:String,description:"An event can contain image label"},icon:{type:String,description:"An event can contain icon label"},date:{type:String,description:"Shorthand for SuiFeedDate"},summary:{type:String,description:"Shorthand for SuiFeedSummary"},extraImages:{type:Array,description:"Shorthand for SuiFeedExtra with images"},extraText:{type:String,description:"Shorthand for SuiFeedExtra with text"},meta:{type:String,description:"Shorthand for SuiFeedMeta"}},render:function(){var e=arguments[0],t=this.getElementType(),n=this.content||this.date||this.summary||this.extraImages||this.extraText||this.meta;return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("event")}]),[this.image&&e(s.FeedLabel,{attrs:{image:this.image}},[]),this.icon&&e(s.FeedLabel,{attrs:{icon:this.icon}},[]),n&&e(s.FeedContent,{attrs:{content:this.content,date:this.date,summary:this.summary,extraImages:this.extraImages,extraText:this.extraText,meta:this.meta}},[]),this.$slots.default])},meta:{parent:"SuiFeed"}}},"631e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiDropdownDivider",mixins:[o.SemanticUIVueMixin],render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{attrs:{role:"option"},class:this.classes("divider")}]),[])},meta:{parent:"SuiDropdown"}}},"631f":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("940e");n("ffa0"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class r extends i["a"]{constructor(){super();const e=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:e.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml"),t=e.querySelector("svg"),n=t.getAttribute("viewBox");n&&(this.viewBox=n),this.element.innerHTML="";while(t.childNodes.length>0)this.element.appendChild(t.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(e=>{e.style.fill=this.fillColor})}}},"632c":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("edea"),r=n("6896"),o=n("258b"),s=n("84c3"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class a extends i["a"]{constructor(e){super(e);const t=this.document;t.on("keydown",(e,n)=>{if(this.isEnabled&&n.keyCode==s["f"].enter){const i=new o["a"](t,"enter",t.selection.getFirstRange());t.fire(i,new r["a"](t,n.domEvent,{isSoft:n.shiftKey})),i.stop.called&&e.stop()}})}observe(){}}},"633f":function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return m}));var i=n("109b"),r=n("d82e"),o=n("f2ea"),s=n("d4e1"),a=n("67b9"),c=n("644e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class l{constructor(){const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise((n,i)=>{t.onload=()=>{const e=t.result;this._data=e,n(e)},t.onerror=()=>{i("error")},t.onabort=()=>{i("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}Object(c["a"])(l,s["a"]);var u=n("ed4a"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class d extends i["a"]{static get pluginName(){return"FileRepository"}static get requires(){return[r["a"]]}init(){this.loaders=new a["a"],this.loaders.on("add",()=>this._updatePendingAction()),this.loaders.on("remove",()=>this._updatePendingAction()),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>{return t?e/t*100:0})}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return Object(o["b"])("filerepository-no-upload-adapter"),null;const t=new h(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(e=>{this._loadersMap.set(e,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let e=0;for(const t of this.loaders)e+=t.uploaded;this.uploaded=e}),t.on("change:uploadTotal",()=>{let e=0;for(const t of this.loaders)t.uploadTotal&&(e+=t.uploadTotal);this.uploadTotal=e}),t}destroyLoader(e){const t=e instanceof h?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((e,n)=>{e===t&&this._loadersMap.delete(n)})}_updatePendingAction(){const e=this.editor.plugins.get(r["a"]);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,n=e=>`${t("Upload in progress")} ${parseInt(e)}%.`;this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}Object(c["a"])(d,s["a"]);class h{constructor(e,t){this.id=Object(u["a"])(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new l,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>{return t?e/t*100:0}),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new o["a"]("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if("reading"!==this.status)throw this.status;return this.status="idle",e}).catch(e=>{if("aborted"===e)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:e})}upload(){if("idle"!=this.status)throw new o["a"]("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>{return this.uploadResponse=e,this.status="idle",e}).catch(e=>{if("aborted"===this.status)throw"aborted";throw this.status="error",e})}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise((n,i)=>{t.rejecter=i,t.isFulfilled=!1,e.then(e=>{t.isFulfilled=!0,n(e)}).catch(e=>{t.isFulfilled=!0,i(e)})}),t}}Object(c["a"])(h,s["a"]);var f=n("3707"),p=n("940e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class m extends p["a"]{constructor(e){super(e),this.buttonView=new f["a"](e),this._fileInputView=new g(e),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class g extends p["a"]{constructor(e){super(e),this.set("acceptedType"),this.set("allowMultipleFiles",!1);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:t.to("acceptedType"),multiple:t.to("allowMultipleFiles")},on:{change:t.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */i["a"]; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ i["a"]},6378:function(e,t){e.exports=''},"63b6":function(e,t,n){var i=n("e53d"),r=n("584a"),o=n("d864"),s=n("35e8"),a=n("07e3"),c="prototype",l=function(e,t,n){var u,d,h,f=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,b=e&l.B,v=e&l.W,w=p?r:r[t]||(r[t]={}),y=w[c],_=p?i:m?i[t]:(i[t]||{})[c];for(u in p&&(n=t),n)d=!f&&_&&void 0!==_[u],d&&a(w,u)||(h=d?_[u]:n[u],w[u]=p&&"function"!=typeof _[u]?n[u]:b&&d?o(h,i):v&&_[u]==h?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[c]=e[c],t}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((w.virtual||(w.virtual={}))[u]=h,e&l.R&&y&&!y[u]&&s(y,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"63bc":function(e,t,n){"use strict";var i=n("bc9b"),r=n("26ee"),o=r["a"]["__core-js_shared__"],s=o,a=function(){var e=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function c(e){return!!a&&a in e}var l=c,u=n("2332"),d=n("74b5"),h=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,p=Function.prototype,m=Object.prototype,g=p.toString,b=m.hasOwnProperty,v=RegExp("^"+g.call(b).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w(e){if(!Object(u["a"])(e)||l(e))return!1;var t=Object(i["a"])(e)?v:f;return t.test(Object(d["a"])(e))}var y=w;function _(e,t){return null==e?void 0:e[t]}var E=_;function x(e,t){var n=E(e,t);return y(n)?n:void 0}t["a"]=x},"63d0":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("6c92"),r=n("9cf5"),o=n("ad6b"),s=n("f2ea"),a=n("e47a"),c=n("dfe0"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class l extends i["a"]{constructor(e,t,n,i){super(i),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toNext",this.howMany=t,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new s["a"]("move-operation-nodes-do-not-exist",this);if(e===t&&n=n&&this.targetPosition.path[e]{e.on("element:a",(e,i,r)=>{const o=i.viewItem,s=n.findViewImgElement(o);if(!s)return;const a=s.findAncestor(e=>n.isBlockImageView(e));if(t&&!a)return;const c={attributes:["href"]};if(!r.consumable.consume(o,c))return;const l=o.getAttribute("href");if(!l)return;let u=i.modelCursor.parent;if(!u.is("element","imageBlock")){const e=r.convertItem(s,i.modelCursor);i.modelRange=e.modelRange,i.modelCursor=e.modelCursor,u=i.modelCursor.nodeBefore}u&&u.is("element","imageBlock")&&r.writer.setAttribute("linkHref",l,u)},{priority:"high"})}}function l(e){const t=e.plugins.get("ImageUtils");return e=>{e.on("attribute:linkHref:imageBlock",(e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const r=i.mapper.toViewElement(n.item),o=i.writer,s=Array.from(r.getChildren()).find(e=>"a"===e.name),a=t.findViewImgElement(r),c=a.parent.is("element","picture")?a.parent:a;if(s)n.attributeNewValue?o.setAttribute("href",n.attributeNewValue,s):(o.move(o.createRangeOn(c),o.createPositionAt(r,0)),o.remove(s));else{const e=o.createContainerElement("a",{href:n.attributeNewValue});o.insert(o.createPositionAt(r,0),e),o.move(o.createRangeOn(c),o.createPositionAt(e,0))}},{priority:"high"})}}function u(e){return t=>{t.on(`attribute:${e.id}:imageBlock`,(t,n,i)=>{const r=i.mapper.toViewElement(n.item),s=Array.from(r.getChildren()).find(e=>"a"===e.name);if(s){for(const[t,n]of Object(o["w"])(e.attributes))i.writer.setAttribute(t,n,s);e.classes&&i.writer.addClass(e.classes,s);for(const t in e.styles)i.writer.setStyle(t,e.styles[t],s)}})}}function d(e,t){const n=e.plugins.has("ImageInlineEditing"),i=e.plugins.get("ImageUtils");return e=>{e.on("element:a",(e,o,s)=>{const a=o.viewItem,c=i.findViewImgElement(a);if(!c)return;const l=c.findAncestor(e=>i.isBlockImageView(e));if(n&&!l)return;const u=new r["g"](t._createPattern()),d=u.match(a);if(!d)return;if(!s.consumable.consume(a,d.match))return;const h=o.modelCursor.nodeBefore||o.modelCursor.parent;s.writer.setAttribute(t.id,!0,h)},{priority:"high"})}}var h=n("02d4"),f=n("874f"),p=n("4476"),m=n("77bd"),g=n.n(m); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class b extends i["i"]{static get requires(){return[s["a"],f["a"],"ImageBlockEditing"]}static get pluginName(){return"LinkImageUI"}init(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",(t,n)=>{this._isSelectedLinkedImage(e.model.document.selection)&&(n.preventDefault(),t.stop())},{priority:"high"}),this._createToolbarLinkImageButton()}_createToolbarLinkImageButton(){const e=this.editor,t=e.t;e.ui.componentFactory.add("linkImage",n=>{const i=new h["c"](n),r=e.plugins.get("LinkUI"),o=e.commands.get("link");return i.set({isEnabled:!0,label:t("Link image"),icon:g.a,keystroke:p["a"],tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(o,"isEnabled"),i.bind("isOn").to(o,"value",e=>!!e),this.listenTo(i,"execute",()=>{this._isSelectedLinkedImage(e.model.document.selection)?r._addActionsView():r._showUI(!0)}),i})}_isSelectedLinkedImage(e){const t=e.getSelectedElement(),n=this.editor.plugins.get("ImageUtils");return n.isImage(t)&&t.hasAttribute("linkHref")}}n("d22b"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class v extends i["i"]{static get requires(){return[a,b]}static get pluginName(){return"LinkImage"}}},"642a":function(e,t,n){var i=n("966f"),r=n("3bb4"),o=n("20ec");function s(e){var t=r(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}e.exports=s},"643c":function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var i=n("a242"),r=n("5595"),o=n("4264"),s=n("02d4"),a=n("4fdd");n("aeed"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class c extends s["z"]{constructor(e){super(e);const t=this.bindTemplate;this.items=this._createGridCollection(),this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(e,t)=>`${t} × ${e}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":t.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:t.to("label")}]}],on:{mousedown:t.to(e=>{e.preventDefault()}),click:t.to(()=>{this.fire("execute")})}}),this.on("boxover",(e,t)=>{const{row:n,column:i}=t.target.dataset;this.set({rows:parseInt(n),columns:parseInt(i)})}),this.on("change:columns",()=>{this._highlightGridBoxes()}),this.on("change:rows",()=>{this._highlightGridBoxes()})}focus(){}focusLast(){}_highlightGridBoxes(){const e=this.rows,t=this.columns;this.items.map((n,i)=>{const r=Math.floor(i/10),o=i%10,s=r{const i=e.commands.get("insertTable"),r=Object(s["E"])(n);let o;return r.bind("isEnabled").to(i),r.buttonView.set({icon:d.a,label:t("Insert table"),tooltip:!0}),r.on("change:isOpen",()=>{o||(o=new c(n),r.panelView.children.add(o),o.delegate("execute").to(r),r.buttonView.on("open",()=>{o.rows=0,o.columns=0}),r.on("execute",()=>{e.execute("insertTable",{rows:o.rows,columns:o.columns}),e.editing.view.focus()}))}),r}),e.ui.componentFactory.add("tableColumn",e=>{const n=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:t("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:i?"insertTableColumnLeft":"insertTableColumnRight",label:t("Insert column left")}},{type:"button",model:{commandName:i?"insertTableColumnRight":"insertTableColumnLeft",label:t("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:t("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:t("Select column")}}];return this._prepareDropdown(t("Column"),f.a,n,e)}),e.ui.componentFactory.add("tableRow",e=>{const n=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:t("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:t("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:t("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:t("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:t("Select row")}}];return this._prepareDropdown(t("Row"),m.a,n,e)}),e.ui.componentFactory.add("mergeTableCells",e=>{const n=[{type:"button",model:{commandName:"mergeTableCellUp",label:t("Merge cell up")}},{type:"button",model:{commandName:i?"mergeTableCellRight":"mergeTableCellLeft",label:t("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:t("Merge cell down")}},{type:"button",model:{commandName:i?"mergeTableCellLeft":"mergeTableCellRight",label:t("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:t("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:t("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(t("Merge cells"),b.a,n,e)})}_prepareDropdown(e,t,n,i){const r=this.editor,o=Object(s["E"])(i),a=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:e,icon:t,tooltip:!0}),o.bind("isEnabled").toMany(a,"isEnabled",(...e)=>{return e.some(e=>e)}),this.listenTo(o,"execute",e=>{r.execute(e.source.commandName),r.editing.view.focus()}),o}_prepareMergeSplitButtonDropdown(e,t,n,i){const r=this.editor,o=Object(s["E"])(i,s["s"]),a="mergeTableCells",c=r.commands.get(a),l=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),o.bind("isEnabled").toMany([c,...l],"isEnabled",(...e)=>{return e.some(e=>e)}),this.listenTo(o.buttonView,"execute",()=>{r.execute(a),r.editing.view.focus()}),this.listenTo(o,"execute",e=>{r.execute(e.source.commandName),r.editing.view.focus()}),o}_fillDropdownWithListOptions(e,t){const n=this.editor,i=[],r=new a["b"];for(const o of t)w(o,n,i,r);return Object(s["B"])(e,r,n.ui.componentFactory),i}}function w(e,t,n,i){const r=e.model=new s["q"](e.model),{commandName:o,bindIsOn:a}=e.model;if("button"===e.type||"switchbutton"===e.type){const e=t.commands.get(o);n.push(e),r.set({commandName:o}),r.bind("isEnabled").to(e),a&&r.bind("isOn").to(e,"value")}r.set({withText:!0}),i.add(e)}var y=n("3f61"),_=n("22ec"),E=n("3f9f"),x=n("3e36");n("2c4a"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class k extends i["i"]{static get pluginName(){return"TableSelection"}static get requires(){return[_["a"]]}init(){const e=this.editor,t=e.model;this.listenTo(t,"deleteContent",(e,t)=>this._handleDeleteContent(e,t),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const e=this.editor.model.document.selection,t=Object(x["c"])(e);return 0==t.length?null:t}getSelectionAsFragment(){const e=this.getSelectedTableCells();return e?this.editor.model.change(t=>{const n=t.createDocumentFragment(),i=this.editor.plugins.get("TableUtils"),{first:r,last:o}=Object(x["a"])(e),{first:s,last:a}=Object(x["b"])(e),c=e[0].findAncestor("table");let l=a,u=o;if(Object(x["f"])(e,i)){const e={firstColumn:r,lastColumn:o,firstRow:s,lastRow:a};l=Object(E["b"])(c,e),u=Object(E["a"])(c,e)}const d={startRow:s,startColumn:r,endRow:l,endColumn:u},h=Object(E["c"])(c,d,t);return t.insert(h,n,0),n}):null}setCellSelection(e,t){const n=this._getCellsToSelect(e,t);this.editor.model.change(e=>{e.setSelection(n.cells.map(t=>e.createRangeOn(t)),{backward:n.backward})})}getFocusCell(){const e=this.editor.model.document.selection,t=[...e.getRanges()].pop(),n=t.getContainedElement();return n&&n.is("element","tableCell")?n:null}getAnchorCell(){const e=this.editor.model.document.selection,t=Object(a["k"])(e.getRanges()),n=t.getContainedElement();return n&&n.is("element","tableCell")?n:null}_defineSelectionConverter(){const e=this.editor,t=new Set;function n(e){for(const n of t)e.removeClass("ck-editor__editable_selected",n);t.clear()}e.conversion.for("editingDowncast").add(e=>e.on("selection",(e,i,r)=>{const o=r.writer;n(o);const s=this.getSelectedTableCells();if(!s)return;for(const n of s){const e=r.mapper.toViewElement(n);o.addClass("ck-editor__editable_selected",e),t.add(e)}const a=r.mapper.toViewElement(s[s.length-1]);o.setSelection(a,0)},{priority:"lowest"}))}_enablePluginDisabling(){const e=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const t=this.getSelectedTableCells();if(!t)return;e.model.change(n=>{const i=n.createPositionAt(t[0],0),r=e.model.schema.getNearestSelectionRange(i);n.setSelection(r)})}})}_handleDeleteContent(e,t){const[n,i]=t,r=this.editor.model,o=!i||"backward"==i.direction,s=Object(x["c"])(n);s.length&&(e.stop(),r.change(e=>{const t=s[o?s.length-1:0];r.change(e=>{for(const t of s)r.deleteContent(e.createSelection(t,"in"))});const i=r.schema.getNearestSelectionRange(e.createPositionAt(t,0));n.is("documentSelection")?e.setSelection(i):n.setTo(i)}))}_getCellsToSelect(e,t){const n=this.editor.plugins.get("TableUtils"),i=n.getCellLocation(e),r=n.getCellLocation(t),o=Math.min(i.row,r.row),s=Math.max(i.row,r.row),a=Math.min(i.column,r.column),c=Math.max(i.column,r.column),l=new Array(s-o+1).fill(null).map(()=>[]),u={startRow:o,endRow:s,startColumn:a,endColumn:c};for(const{row:f,cell:p}of new y["a"](e.findAncestor("table"),u))l[f-o].push(p);const d=r.rowe.reverse()),{cells:l.flat(),backward:d||h}}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class A extends i["i"]{static get pluginName(){return"TableClipboard"}static get requires(){return[k,_["a"]]}init(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"copy",(e,t)=>this._onCopyCut(e,t)),this.listenTo(t,"cut",(e,t)=>this._onCopyCut(e,t)),this.listenTo(e.model,"insertContent",(e,t)=>this._onInsertContent(e,...t),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(e,t){const n=this.editor.plugins.get(k);if(!n.getSelectedTableCells())return;if("cut"==e.name&&this.editor.isReadOnly)return;t.preventDefault(),e.stop();const i=this.editor.data,r=this.editor.editing.view.document,o=i.toView(n.getSelectionAsFragment());r.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:o,method:e.name})}_onInsertContent(e,t,n){if(n&&!n.is("documentSelection"))return;const i=this.editor.model,r=this.editor.plugins.get(_["a"]);let o=O(t,i);if(!o)return;const s=Object(x["d"])(i.document.selection);s.length?(e.stop(),i.change(e=>{const t={width:r.getColumns(o),height:r.getRows(o)},n=C(s,t,e,r),i=n.lastRow-n.firstRow+1,a=n.lastColumn-n.firstColumn+1,c={startRow:0,startColumn:0,endRow:Math.min(i,t.height)-1,endColumn:Math.min(a,t.width)-1};o=Object(E["c"])(o,c,e);const l=s[0].findAncestor("table"),u=this._replaceSelectedCellsWithPasted(o,t,l,n,e);if(this.editor.plugins.get("TableSelection").isEnabled){const t=Object(x["g"])(u.map(t=>e.createRangeOn(t)));e.setSelection(t)}else e.setSelection(u[0],0)})):Object(E["h"])(o,r)}_replaceSelectedCellsWithPasted(e,t,n,i,r){const{width:o,height:s}=t,a=S(e,o,s),c=[...new y["a"](n,{startRow:i.firstRow,endRow:i.lastRow,startColumn:i.firstColumn,endColumn:i.lastColumn,includeAllSlots:!0})],l=[];let u;for(const m of c){const{row:e,column:t}=m;t===i.firstColumn&&(u=m.getPositionBefore());const n=e-i.firstRow,c=t-i.firstColumn,d=a[n%s][c%o],h=d?r.cloneElement(d):null,f=this._replaceTableSlotCell(m,h,u,r);f&&(Object(E["k"])(f,e,t,i.lastRow,i.lastColumn,r),l.push(f),u=r.createPositionAfter(f))}const d=parseInt(n.getAttribute("headingRows")||0),h=parseInt(n.getAttribute("headingColumns")||0),f=i.firstRowr&&i.insertColumns(e,{at:r,columns:n-r}),t>o&&i.insertRows(e,{at:o,rows:t-o})}function S(e,t,n){const i=new Array(n).fill(null).map(()=>new Array(t).fill(null));for(const{column:r,row:o,cell:s}of new y["a"](e))i[o][r]=s;return i}function P(e,t,n){const{firstRow:i,lastRow:r,firstColumn:o,lastColumn:s}=t,a={first:i,last:r},c={first:o,last:s};R(e,o,a,n),R(e,s+1,a,n),I(e,i,c,n),I(e,r+1,c,n,i)}function I(e,t,n,i,r=0){if(t<1)return;const o=Object(E["e"])(e,t,r),s=o.filter(({column:e,cellWidth:t})=>M(e,t,n));return s.map(({cell:e})=>Object(E["i"])(e,t,i))}function R(e,t,n,i){if(t<1)return;const r=Object(E["d"])(e,t),o=r.filter(({row:e,cellHeight:t})=>M(e,t,n));return o.map(({cell:e,column:n})=>Object(E["j"])(e,n,t,i))}function M(e,t,n){const i=e+t-1,{first:r,last:o}=n,s=e>=r&&e<=o,a=e=r;return s||a} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class j extends i["i"]{static get pluginName(){return"TableKeyboard"}static get requires(){return[k]}init(){const e=this.editor.editing.view,t=e.document;this.editor.keystrokes.set("Tab",(...e)=>this._handleTabOnSelectedTable(...e),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(t,"arrowKey",(...e)=>this._onArrowKey(...e),{context:"table"})}_handleTabOnSelectedTable(e,t){const n=this.editor,i=n.model.document.selection,r=i.getSelectedElement();r&&r.is("element","table")&&(t(),n.model.change(e=>{e.setSelection(e.createRangeIn(r.getChild(0).getChild(0)))}))}_getTabHandler(e){const t=this.editor;return(n,i)=>{const r=t.model.document.selection;let o=Object(x["e"])(r)[0];if(o||(o=this.editor.plugins.get("TableSelection").getFocusCell()),!o)return;i();const s=o.parent,a=s.parent,c=a.getChildIndex(s),l=s.getChildIndex(o),u=0===l;if(!e&&u&&0===c)return void t.model.change(e=>{e.setSelection(e.createRangeOn(a))});const d=this.editor.plugins.get("TableUtils"),h=l===s.childCount-1,f=c===d.getRows(a)-1;if(e&&f&&h&&(t.execute("insertTableRowBelow"),c===d.getRows(a)-1))return void t.model.change(e=>{e.setSelection(e.createRangeOn(a))});let p;if(e&&h){const e=a.getChild(c+1);p=e.getChild(0)}else if(!e&&u){const e=a.getChild(c-1);p=e.getChild(e.childCount-1)}else p=s.getChild(l+(e?1:-1));t.model.change(e=>{e.setSelection(e.createRangeIn(p))})}}_onArrowKey(e,t){const n=this.editor,i=t.keyCode,r=Object(a["o"])(i,n.locale.contentLanguageDirection),o=this._handleArrowKeys(r,t.shiftKey);o&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){const n=this.editor.model,i=n.document.selection,r=["right","down"].includes(e),o=Object(x["c"])(i);if(o.length){let n;return n=t?this.editor.plugins.get("TableSelection").getFocusCell():r?o[o.length-1]:o[0],this._navigateFromCellInDirection(n,e,t),!0}const s=i.focus.findAncestor("tableCell");if(!s)return!1;if(!i.isCollapsed)if(t){if(i.isBackward==r&&!i.containsEntireContent(s))return!1}else{const e=i.getSelectedElement();if(!e||!n.schema.isObject(e))return!1}return!!this._isSelectionAtCellEdge(i,s,r)&&(this._navigateFromCellInDirection(s,e,t),!0)}_isSelectionAtCellEdge(e,t,n){const i=this.editor.model,r=this.editor.model.schema,o=n?e.getLastPosition():e.getFirstPosition();if(!r.getLimitElement(o).is("element","tableCell")){const e=i.createPositionAt(t,n?"end":0);return e.isTouching(o)}const s=i.createSelection(o);return i.modifySelection(s,{direction:n?"forward":"backward"}),o.isEqual(s.focus)}_navigateFromCellInDirection(e,t,n=!1){const i=this.editor.model,r=e.findAncestor("table"),o=[...new y["a"](r,{includeAllSlots:!0})],{row:s,column:a}=o[o.length-1],c=o.find(({cell:t})=>t==e);let{row:l,column:u}=c;switch(t){case"left":u--;break;case"up":l--;break;case"right":u+=c.cellWidth;break;case"down":l+=c.cellHeight;break}const d=l<0||l>s,h=u<0&&l<=0,f=u>a&&l>=s;if(d||h||f)return void i.change(e=>{e.setSelection(e.createRangeOn(r))});u<0?(u=n?0:a,l--):u>a&&(u=n?a:0,l++);const p=o.find(e=>e.row==l&&e.column==u).cell,m=["right","down"].includes(t),g=this.editor.plugins.get("TableSelection");if(n&&g.isEnabled){const t=g.getAnchorCell()||e;g.setCellSelection(t,p)}else{const e=i.createPositionAt(p,m?0:"end");i.change(t=>{t.setSelection(e)})}}}var N=n("553a"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class D extends N["c"]{constructor(e){super(e),this.domEventType=["mousemove","mouseleave"]}onDomEvent(e){this.fire(e.type,e)}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class L extends i["i"]{static get pluginName(){return"TableMouse"}static get requires(){return[k]}init(){const e=this.editor;e.editing.view.addObserver(D),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const e=this.editor;let t=!1;const n=e.plugins.get(k);this.listenTo(e.editing.view.document,"mousedown",(i,r)=>{if(!this.isEnabled||!n.isEnabled)return;if(!r.domEvent.shiftKey)return;const o=n.getAnchorCell()||Object(x["e"])(e.model.document.selection)[0];if(!o)return;const s=this._getModelTableCellFromDomEvent(r);s&&V(o,s)&&(t=!0,n.setCellSelection(o,s),r.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{t=!1}),this.listenTo(e.editing.view.document,"selectionChange",e=>{t&&e.stop()},{priority:"highest"})}_enableMouseDragSelection(){const e=this.editor;let t,n,i=!1,r=!1;const o=e.plugins.get(k);this.listenTo(e.editing.view.document,"mousedown",(e,n)=>{this.isEnabled&&o.isEnabled&&(n.domEvent.shiftKey||n.domEvent.ctrlKey||n.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(n)))}),this.listenTo(e.editing.view.document,"mousemove",(e,s)=>{if(!s.domEvent.buttons)return;if(!t)return;const a=this._getModelTableCellFromDomEvent(s);a&&V(t,a)&&(n=a,i||n==t||(i=!0)),i&&(r=!0,o.setCellSelection(t,n),s.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{i=!1,r=!1,t=null,n=null}),this.listenTo(e.editing.view.document,"selectionChange",e=>{r&&e.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(e){const t=e.target,n=this.editor.editing.view.createPositionAt(t,0),i=this.editor.editing.mapper.toModelPosition(n),r=i.parent;return r.findAncestor("tableCell",{includeSelf:!0})}}function V(e,t){return e.parent.parent==t.parent.parent}n("6aed"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class B extends i["i"]{static get requires(){return[o["a"],v,k,L,j,A,r["a"]]}static get pluginName(){return"Table"}}},"644e":function(e,t,n){"use strict"; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ function i(e,...t){t.forEach(t=>{Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach(n=>{if(n in e.prototype)return;const i=Object.getOwnPropertyDescriptor(t,n);i.enumerable=!1,Object.defineProperty(e.prototype,n,i)})})}n.d(t,"a",(function(){return i}))},6472:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("6c92"),r=n("f2ea"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class o extends i["a"]{constructor(e,t,n,i,r){super(r),this.root=e,this.key=t,this.oldValue=n,this.newValue=i}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new o(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new o(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new r["a"]("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new r["a"]("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new r["a"]("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const e=super.toJSON();return e.root=this.root.toJSON(),e}static get className(){return"RootAttributeOperation"}static fromJSON(e,t){if(!t.getRoot(e.root))throw new r["a"]("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new o(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}},"64c8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("c295"),s=n("b9e9");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiTableHeaderCell",mixins:[o.SemanticUIVueMixin],props:{negative:Boolean,positive:Boolean,selected:Boolean,textAlign:(0,s.Enum)(["left","right","center"]),warning:Boolean,singleLine:Boolean,collapsing:Boolean,disabled:Boolean,selectable:Boolean,width:s.Enum.Number(),verticalAlign:s.Enum.VerticalAlign()},render:function(){var e=arguments[0],t=this.getElementType("th");return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes(this.textAlign&&this.textAlign+" aligned",this.verticalAlign&&this.verticalAlign+" aligned",this.negative&&"negative",this.positive&&"positive",this.warning&&"warning",this.singleLine&&"single line",this.collapsing&&"collapsing",this.disabled&&"disabled",this.selectable&&"selectable",this.width&&this.num(this.width)+" wide")}]),[this.$slots.default])},meta:{parent:"SuiTable"}}},"64de":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("9078");Object.defineProperty(t,"Label",{enumerable:!0,get:function(){return o(i).default}});var r=n("564c");function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"LabelDetail",{enumerable:!0,get:function(){return o(r).default}})},"64f1":function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var i=n("a242"),r=n("02d4"),o=n("4fdd"),s=n("6e4c"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class a extends i["a"]{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils"),n=t.getClosestSelectedImageElement(e.model.document.selection);this.isEnabled=!!n,n&&n.hasAttribute("width")?this.value={width:n.getAttribute("width"),height:null}:this.value=null}execute(e){const t=this.editor,n=t.model,i=t.plugins.get("ImageUtils"),r=i.getClosestSelectedImageElement(n.document.selection);this.value={width:e.width,height:null},r&&n.change(t=>{t.setAttribute("width",e.width,r)})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class c extends i["i"]{static get requires(){return[s["a"]]}static get pluginName(){return"ImageResizeEditing"}constructor(e){super(e),e.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]})}init(){const e=this.editor,t=new a(e);this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline"),e.commands.add("resizeImage",t),e.commands.add("imageResize",t)}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:"width"}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:"width"})}_registerConverters(e){const t=this.editor;t.conversion.for("downcast").add(t=>t.on(`attribute:width:${e}`,(e,t,n)=>{if(!n.consumable.consume(t.item,e.name))return;const i=n.writer,r=n.mapper.toViewElement(t.item);null!==t.attributeNewValue?(i.setStyle("width",t.attributeNewValue,r),i.addClass("image_resized",r)):(i.removeStyle("width",r),i.removeClass("image_resized",r))})),t.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===e?"figure":"img",styles:{width:/.+/}},model:{key:"width",value:e=>e.getStyle("width")}})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */const l={small:i["k"].objectSizeSmall,medium:i["k"].objectSizeMedium,large:i["k"].objectSizeLarge,original:i["k"].objectSizeFull};class u extends i["i"]{static get requires(){return[c]}static get pluginName(){return"ImageResizeButtons"}constructor(e){super(e),this._resizeUnit=e.config.get("image.resizeUnit")}init(){const e=this.editor,t=e.config.get("image.resizeOptions"),n=e.commands.get("resizeImage");this.bind("isEnabled").to(n);for(const i of t)this._registerImageResizeButton(i);this._registerImageResizeDropdown(t)}_registerImageResizeButton(e){const t=this.editor,{name:n,value:i,icon:s}=e,a=i?i+this._resizeUnit:null;t.ui.componentFactory.add(n,n=>{const i=new r["c"](n),c=t.commands.get("resizeImage"),u=this._getOptionLabelValue(e,!0);if(!l[s])throw new o["a"]("imageresizebuttons-missing-icon",t,e);return i.set({label:u,icon:l[s],tooltip:u,isToggleable:!0}),i.bind("isEnabled").to(this),i.bind("isOn").to(c,"value",d(a)),this.listenTo(i,"execute",()=>{t.execute("resizeImage",{width:a})}),i})}_registerImageResizeDropdown(e){const t=this.editor,n=t.t,i=e.find(e=>!e.value),o=o=>{const s=t.commands.get("resizeImage"),a=Object(r["E"])(o,r["g"]),c=a.buttonView;return c.set({tooltip:n("Resize image"),commandValue:i.value,icon:l.medium,isToggleable:!0,label:this._getOptionLabelValue(i),withText:!0,class:"ck-resize-image-button"}),c.bind("label").to(s,"value",e=>{return e&&e.width?e.width:this._getOptionLabelValue(i)}),a.bind("isOn").to(s),a.bind("isEnabled").to(this),Object(r["B"])(a,this._getResizeDropdownListItemDefinitions(e,s)),a.listView.ariaLabel=n("Image resize list"),this.listenTo(a,"execute",e=>{t.execute(e.source.commandName,{width:e.source.commandValue}),t.editing.view.focus()}),a};t.ui.componentFactory.add("resizeImage",o),t.ui.componentFactory.add("imageResize",o)}_getOptionLabelValue(e,t){const n=this.editor.t;return e.label?e.label:t?e.value?n("Resize image to %0",e.value+this._resizeUnit):n("Resize image to the original size"):e.value?e.value+this._resizeUnit:n("Original")}_getResizeDropdownListItemDefinitions(e,t){const n=new o["b"];return e.map(e=>{const i=e.value?e.value+this._resizeUnit:null,o={type:"button",model:new r["q"]({commandName:"resizeImage",commandValue:i,label:this._getOptionLabelValue(e),withText:!0,icon:null})};o.model.bind("isOn").to(t,"value",d(i)),n.add(o)}),n}}function d(e){return t=>{return null===e&&t===e||t&&t.width===e}}var h=n("5595"),f=n("ab38"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const p="figure.image.ck-widget > img,figure.image.ck-widget > picture > img,figure.image.ck-widget > a > img,figure.image.ck-widget > a > picture > img,span.image-inline.ck-widget > img,span.image-inline.ck-widget > picture > img",m=/(image|image-inline)/,g="image_resized";class b extends i["i"]{static get requires(){return[h["b"]]}static get pluginName(){return"ImageResizeHandles"}init(){const e=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(e),this._setupResizerCreator()}_setupResizerCreator(){const e=this.editor,t=e.editing.view;t.addObserver(f["a"]),this.listenTo(t.document,"imageLoaded",(n,i)=>{if(!i.target.matches(p))return;const r=e.editing.view.domConverter,o=r.domToView(i.target),s=o.findAncestor({classes:m});let a=this.editor.plugins.get(h["b"]).getResizerByViewElement(s);if(a)return void a.redraw();const c=e.editing.mapper,l=c.toModelElement(s);a=e.plugins.get(h["b"]).attachTo({unit:e.config.get("image.resizeUnit"),modelElement:l,viewElement:s,editor:e,getHandleHost(e){return e.querySelector("img")},getResizeHost(){return r.viewToDom(c.toViewElement(l.parent))},isCentered(){const e=l.getAttribute("imageStyle");return!e||"block"==e||"alignCenter"==e},onCommit(n){t.change(e=>{e.removeClass(g,s)}),e.execute("resizeImage",{width:n})}}),a.on("updateSize",()=>{s.hasClass(g)||t.change(e=>{e.addClass(g,s)})}),a.bind("isEnabled").to(this)})}}n("d043"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class v extends i["i"]{static get requires(){return[c,b,u]}static get pluginName(){return"ImageResize"}}},6502:function(e,t,n){"use strict"; /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ function i(e){return Array.isArray(e)?{items:e,removeItems:[]}:e?Object.assign({items:[],removeItems:[]},e):{items:[],removeItems:[]}}n.d(t,"a",(function(){return i}))},"652f":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("d4e1"),r=n("644e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class o{constructor(e){this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this.affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.on("execute",e=>{this.isEnabled||e.stop()},{priority:"high"}),this.listenTo(e,"change:isReadOnly",(e,t,n)=>{n&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",s,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",s),this.refresh())}execute(){}destroy(){this.stopListening()}}function s(e){e.return=!1,e.stop()}Object(r["a"])(o,i["a"])},"656b":function(e,t,n){var i=n("e2e4"),r=n("f4d6");function o(e,t){t=i(t,e);var n=0,o=t.length;while(null!=e&&n'},"661d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=s(i),o=n("c295");function s(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiModalHeader",mixins:[o.SemanticUIVueMixin],props:{},render:function(){var e=arguments[0],t=this.getElementType();return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("header")}]),[this.$slots.default])},meta:{parent:"SuiModal"}}},6649:function(e,t,n){},6718:function(e,t,n){var i=n("e53d"),r=n("584a"),o=n("b8e3"),s=n("ccb9"),a=n("d9f6").f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},6747:function(e,t){var n=Array.isArray;e.exports=n},"67b9":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("da0d"),r=n("f2ea"),o=n("ed4a"),s=n("e907"),a=n("644e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class c{constructor(e={},t={}){const n=Object(s["a"])(e);if(n||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const i of e)this._items.push(i),this._itemMap.set(this._getItemIdBeforeAdding(i),i)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,t){return this.addMany([e],t)}addMany(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new r["a"]("collection-add-item-invalid-index",this);for(let n=0;n{this._setUpBindToBinding(t=>new e(t))},using:e=>{"function"==typeof e?this._setUpBindToBinding(t=>e(t)):this._setUpBindToBinding(t=>t[e])}}}_setUpBindToBinding(e){const t=this._bindToCollection,n=(n,i,r)=>{const o=t._bindToCollection==this,s=t._bindToInternalToExternalMap.get(i);if(o&&s)this._bindToExternalToInternalMap.set(i,s),this._bindToInternalToExternalMap.set(s,i);else{const n=e(i);if(!n)return void this._skippedIndexesFromExternal.push(r);let o=r;for(const e of this._skippedIndexesFromExternal)r>e&&o--;for(const e of t._skippedIndexesFromExternal)o>=e&&o++;this._bindToExternalToInternalMap.set(i,n),this._bindToInternalToExternalMap.set(n,i),this.add(n,o);for(let e=0;e{const i=this._bindToExternalToInternalMap.get(t);i&&this.remove(i),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((e,t)=>{return nt&&e.push(t),e},[])})}_getItemIdBeforeAdding(e){const t=this._idProperty;let n;if(t in e){if(n=e[t],"string"!=typeof n)throw new r["a"]("collection-add-invalid-id",this);if(this.get(n))throw new r["a"]("collection-add-item-already-exists",this)}else e[t]=n=Object(o["a"])();return n}_remove(e){let t,n,i,o=!1;const s=this._idProperty;if("string"==typeof e?(n=e,i=this._itemMap.get(n),o=!i,i&&(t=this._items.indexOf(i))):"number"==typeof e?(t=e,i=this._items[t],o=!i,i&&(n=i[s])):(i=e,n=i[s],t=this._items.indexOf(i),o=-1==t||!this._itemMap.get(n)),o)throw new r["a"]("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(n);const a=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(a),this.fire("remove",i,t),[i,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Object(a["a"])(c,i["c"])},"67ca":function(e,t,n){var i=n("cb5a");function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}e.exports=r},"684f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=l(i),o=n("c295"),s=n("b9e9"),a=n("83df"),c=l(a);function l(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiList",mixins:[o.SemanticUIVueMixin],props:{bulleted:{type:Boolean,description:"A list can mark items with a bullet."},divided:Boolean,horizontal:Boolean,items:Array,link:Boolean,relaxed:Boolean,inverted:{type:Boolean,description:"A list can be inverted to appear on a dark background."},ordered:{type:Boolean,description:"A list can be ordered numerically."},size:s.Enum.Size()},render:function(){var e=arguments[0],t=this.getElementType(),n=void 0;return n=this.items?this.items.map((function(t){return e(c.default,null,[t])})):this.$slots.default,e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("ui",this.size,this.bulleted&&"bulleted",this.divided&&"divided",this.ordered&&"ordered",this.horizontal&&"horizontal",this.link&&"link",this.relaxed&&"relaxed",this.inverted&&"inverted","list"),attrs:{role:"list"}}]),[n])}}},6896:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("61f1"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r{constructor(e,t,n){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,Object(i["a"])(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}},6930:function(e,t,n){ /*! * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ !function(t,i){e.exports=i(n("2b0e"))}(window,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(t,n){t.exports=e},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(2))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n.n(i),o=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},s=n(1),a="object"==typeof self&&self&&self.Object===Object&&self,c=s.a||a||Function("return this")(),l=function(){return c.Date.now()},u=c.Symbol,d=Object.prototype,h=d.hasOwnProperty,f=d.toString,p=u?u.toStringTag:void 0,m=function(e){var t=h.call(e,p),n=e[p];try{e[p]=void 0;var i=!0}catch(e){}var r=f.call(e);return i&&(t?e[p]=n:delete e[p]),r},g=Object.prototype.toString,b=function(e){return g.call(e)},v=u?u.toStringTag:void 0,w=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?m(e):b(e)},y=function(e){return null!=e&&"object"==typeof e},_=function(e){return"symbol"==typeof e||y(e)&&"[object Symbol]"==w(e)},E=/^\s+|\s+$/g,x=/^[-+]0x[0-9a-f]+$/i,k=/^0b[01]+$/i,A=/^0o[0-7]+$/i,O=parseInt,C=function(e){if("number"==typeof e)return e;if(_(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(E,"");var n=k.test(e);return n||A.test(e)?O(e.slice(2),n?2:8):x.test(e)?NaN:+e},T=Math.max,S=Math.min,P=function(e,t,n){var i,r,s,a,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=i,o=r;return i=r=void 0,d=t,a=e.apply(o,n)}function g(e){return d=e,c=setTimeout(v,t),h?m(e):a}function b(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-d>=s}function v(){var e=l();if(b(e))return w(e);c=setTimeout(v,function(e){var n=t-(e-u);return f?S(n,s-(e-d)):n}(e))}function w(e){return c=void 0,p&&i?m(e):(i=r=void 0,a)}function y(){var e=l(),n=b(e);if(i=arguments,r=this,u=e,n){if(void 0===c)return g(u);if(f)return clearTimeout(c),c=setTimeout(v,t),m(u)}return void 0===c&&(c=setTimeout(v,t)),a}return t=C(t)||0,o(n)&&(h=!!n.leading,s=(f="maxWait"in n)?T(C(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==c&&clearTimeout(c),d=0,i=u=r=c=void 0},y.flush=function(){return void 0===c?a:w(l())},y},I={name:"ckeditor",render(e){return e(this.tagName)},props:{editor:{type:Function,default:null},value:{type:String,default:""},config:{type:Object,default:()=>({})},tagName:{type:String,default:"div"},disabled:{type:Boolean,default:!1}},data:()=>({$_instance:null,$_lastEditorData:{type:String,default:""}}),mounted(){const e=Object.assign({},this.config);this.value&&(e.initialData=this.value),this.editor.create(this.$el,e).then(e=>{this.$_instance=e,e.isReadOnly=this.disabled,this.$_setUpEditorEvents(),this.$emit("ready",e)}).catch(e=>{console.error(e)})},beforeDestroy(){this.$_instance&&(this.$_instance.destroy(),this.$_instance=null),this.$emit("destroy",this.$_instance)},watch:{value(e,t){e!==t&&e!==this.$_lastEditorData&&this.$_instance.setData(e)},disabled(e){this.$_instance.isReadOnly=e}},methods:{$_setUpEditorEvents(){const e=this.$_instance,t=P(t=>{const n=this.$_lastEditorData=e.getData();this.$emit("input",n,t,e)},300,{leading:!0});e.model.document.on("change:data",t),e.editing.view.document.on("focus",t=>{this.$emit("focus",t,e)}),e.editing.view.document.on("blur",t=>{this.$emit("blur",t,e)})}}};const R=r.a?r.a.version:i.version,[M]=R.split(".").map(e=>parseInt(e,10));if(2!==M)throw new Error("The CKEditor plugin works only with Vue 2.x. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v2.html");const j={install(e){e.component("ckeditor",I)},component:I};t.default=j}]).default}))},"69d3":function(e,t,n){n("6718")("asyncIterator")},"69d5":function(e,t,n){var i=n("cb5a"),r=Array.prototype,o=r.splice;function s(e){var t=this.__data__,n=i(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():o.call(t,n,1),--this.size,!0}e.exports=s},"6abf":function(e,t,n){var i=n("e6f3"),r=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},"6ac0":function(e,t){function n(e,t,n,i){var r=-1,o=null==e?0:e.length;i&&o&&(n=e[++r]);while(++r'},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6c1c":function(e,t,n){n("c367");for(var i=n("e53d"),r=n("35e8"),o=n("481b"),s=n("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c{const a=i.createElement(n,e);return t||"imageInline"==n||(t=Object(r["d"])(s,o)),o.insertContent(a,t),a.parent?(i.setSelection(a,"on"),a):null})}getClosestSelectedImageWidget(e){const t=e.getSelectedElement();if(t&&this.isImageWidget(t))return t;let n=e.getFirstPosition().parent;while(n){if(n.is("element")&&this.isImageWidget(n))return n;n=n.parent}return null}getClosestSelectedImageElement(e){const t=e.getSelectedElement();return this.isImage(t)?t:e.getFirstPosition().findAncestor("imageBlock")}isImageAllowed(){const e=this.editor.model,t=e.document.selection;return a(this.editor,t)&&c(t)}toImageWidget(e,t,n){t.setCustomProperty("image",!0,e);const i=()=>{const t=this.findViewImgElement(e),i=t.getAttribute("alt");return i?`${i} ${n}`:n};return Object(r["f"])(e,t,{label:i})}isImageWidget(e){return!!e.getCustomProperty("image")&&Object(r["e"])(e)}isBlockImage(e){return!!e&&e.is("element","imageBlock")}isInlineImage(e){return!!e&&e.is("element","imageInline")}findViewImgElement(e){if(this.isInlineImageView(e))return e;const t=this.editor.editing.view;for(const{item:n}of t.createRangeIn(e))if(this.isInlineImageView(n))return n}}function a(e,t){const n=u(e,t);if("imageBlock"==n){const n=l(t,e.model);if(e.model.schema.checkChild(n,"imageBlock"))return!0}else if(e.model.schema.checkChild(t.focus,"imageInline"))return!0;return!1}function c(e){return[...e.focus.getAncestors()].every(e=>!e.is("element","imageBlock"))}function l(e,t){const n=Object(r["d"])(e,t),i=n.start.parent;return i.isEmpty&&!i.is("element","$root")?i.parent:i}function u(e,t,n){const i=e.model.schema,r=e.config.get("image.insert.type");return e.plugins.has("ImageBlockEditing")?e.plugins.has("ImageInlineEditing")?n||("inline"===r?"imageInline":"block"===r?"imageBlock":t.is("selection")?Object(o["b"])(i,t):i.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}},"6e57":function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v}));var i=n("ad6b"),r=n("bdc5"),o=n("a641"),s=n("4679"),a=n("c494"),c=n("f9f1"),l=n("5c8a"),u=n("f2ea"),d=n("1e77"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class h extends c["a"]{elementToElement(e){return this.add(R(e))}attributeToElement(e){return this.add(M(e))}attributeToAttribute(e){return this.add(j(e))}markerToElement(e){return this.add(N(e))}markerToHighlight(e){return this.add(L(e))}markerToData(e){return this.add(D(e))}}function f(){return(e,t,n)=>{if(!n.consumable.consume(t.item,"insert"))return;const i=n.writer,r=n.mapper.toViewPosition(t.range.start),o=i.createText(t.item.data);i.insert(r,o)}}function p(){return(e,t,n)=>{const i=n.mapper.toViewPosition(t.position),r=t.position.getShiftedBy(t.length),o=n.mapper.toViewPosition(r,{isPhantom:!0}),s=n.writer.createRange(i,o),a=n.writer.remove(s.getTrimmed());for(const c of n.writer.createRangeIn(a).getItems())n.mapper.unbindViewElement(c)}}function m(e,t){const n=e.createAttributeElement("span",t.attributes);return t.classes&&n._addClass(t.classes),"number"===typeof t.priority&&(n._priority=t.priority),n._id=t.id,n}function g(){return(e,t,n)=>{const i=t.selection;if(i.isCollapsed)return;if(!n.consumable.consume(i,"selection"))return;const r=[];for(const o of i.getRanges()){const e=n.mapper.toViewRange(o);r.push(e)}n.writer.setSelection(r,{backward:i.isBackward})}}function b(){return(e,t,n)=>{const i=t.selection;if(!i.isCollapsed)return;if(!n.consumable.consume(i,"selection"))return;const r=n.writer,o=i.getFirstPosition(),s=n.mapper.toViewPosition(o),a=r.breakAttributes(s);r.setSelection(a)}}function v(){return(e,t,n)=>{const i=n.writer,r=i.document.selection;for(const o of r.getRanges())o.isCollapsed&&o.end.parent.isAttached()&&n.writer.mergeAttributes(o.start);i.setSelection(null)}}function w(e){return(t,n,i)=>{const o=e(n.attributeOldValue,i),s=e(n.attributeNewValue,i);if(!o&&!s)return;if(!i.consumable.consume(n.item,t.name))return;const c=i.writer,l=c.document.selection;if(n.item instanceof r["a"]||n.item instanceof a["a"])c.wrap(l.getFirstRange(),s);else{let e=i.mapper.toViewRange(n.range);null!==n.attributeOldValue&&o&&(e=c.unwrap(e,o)),null!==n.attributeNewValue&&s&&c.wrap(e,s)}}}function y(e){return(t,n,i)=>{const r=e(n.item,i);if(!r)return;if(!i.consumable.consume(n.item,"insert"))return;const o=i.mapper.toViewPosition(n.range.start);i.mapper.bindElements(n.item,r),i.writer.insert(o,r)}}function _(e){return(t,n,i)=>{n.isOpening=!0;const r=e(n,i);n.isOpening=!1;const o=e(n,i);if(!r||!o)return;const s=n.markerRange;if(s.isCollapsed&&!i.consumable.consume(s,t.name))return;for(const e of s)if(!i.consumable.consume(e.item,t.name))return;const a=i.mapper,c=i.writer;c.insert(a.toViewPosition(s.start),r),i.mapper.bindElementToMarker(r,n.markerName),s.isCollapsed||(c.insert(a.toViewPosition(s.end),o),i.mapper.bindElementToMarker(o,n.markerName)),t.stop()}}function E(){return(e,t,n)=>{const i=n.mapper.markerNameToElements(t.markerName);if(i){for(const e of i)n.mapper.unbindElementFromMarkerName(e,t.markerName),n.writer.clear(n.writer.createRangeOn(e),e);n.writer.clearClonedElementsGroup(t.markerName),e.stop()}}}function x(e){return(t,n,i)=>{const r=e(n.markerName,i);if(!r)return;const o=n.markerRange;i.consumable.consume(o,t.name)&&(k(o,!1,i,n,r),k(o,!0,i,n,r),t.stop())}}function k(e,t,n,i,r){const o=t?e.start:e.end,s=o.nodeAfter&&o.nodeAfter.is("element")?o.nodeAfter:null,a=o.nodeBefore&&o.nodeBefore.is("element")?o.nodeBefore:null;if(s||a){let e,o;t&&s||!t&&!a?(e=s,o=!0):(e=a,o=!1);const c=n.mapper.toViewElement(e);if(c)return void A(c,t,o,n,i,r)}const c=n.mapper.toViewPosition(o);O(c,t,n,i,r)}function A(e,t,n,i,r,o){const s=`data-${o.group}-${t?"start":"end"}-${n?"before":"after"}`,a=e.hasAttribute(s)?e.getAttribute(s).split(","):[];a.unshift(o.name),i.writer.setAttribute(s,a.join(","),e),i.mapper.bindElementToMarker(e,r.markerName)}function O(e,t,n,i,r){const o=`${r.group}-${t?"start":"end"}`,s=r.name?{name:r.name}:null,a=n.writer.createUIElement(o,s);n.writer.insert(e,a),n.mapper.bindElementToMarker(a,i.markerName)}function C(e){return(t,n,i)=>{const r=e(n.markerName,i);if(!r)return;const o=i.mapper.markerNameToElements(n.markerName);if(o){for(const e of o)i.mapper.unbindElementFromMarkerName(e,n.markerName),e.is("containerElement")?(s(`data-${r.group}-start-before`,e),s(`data-${r.group}-start-after`,e),s(`data-${r.group}-end-before`,e),s(`data-${r.group}-end-after`,e)):i.writer.clear(i.writer.createRangeOn(e),e);i.writer.clearClonedElementsGroup(n.markerName),t.stop()}function s(e,t){if(t.hasAttribute(e)){const n=new Set(t.getAttribute(e).split(","));n.delete(r.name),0==n.size?i.writer.removeAttribute(e,t):i.writer.setAttribute(e,Array.from(n).join(","),t)}}}}function T(e){return(t,n,i)=>{const r=e(n.attributeOldValue,i),o=e(n.attributeNewValue,i);if(!r&&!o)return;if(!i.consumable.consume(n.item,t.name))return;const s=i.mapper.toViewElement(n.item),a=i.writer;if(!s)throw new u["a"]("conversion-attribute-to-attribute-on-text",[n,i]);if(null!==n.attributeOldValue&&r)if("class"==r.key){const e=Object(d["a"])(r.value);for(const t of e)a.removeClass(t,s)}else if("style"==r.key){const e=Object.keys(r.value);for(const t of e)a.removeStyle(t,s)}else a.removeAttribute(r.key,s);if(null!==n.attributeNewValue&&o)if("class"==o.key){const e=Object(d["a"])(o.value);for(const t of e)a.addClass(t,s)}else if("style"==o.key){const e=Object.keys(o.value);for(const t of e)a.setStyle(t,o.value[t],s)}else a.setAttribute(o.key,o.value,s)}}function S(e){return(t,n,i)=>{if(!n.item)return;if(!(n.item instanceof r["a"]||n.item instanceof a["a"])&&!n.item.is("$textProxy"))return;const o=$(e,n,i);if(!o)return;if(!i.consumable.consume(n.item,t.name))return;const s=i.writer,c=m(s,o),l=s.document.selection;if(n.item instanceof r["a"]||n.item instanceof a["a"])s.wrap(l.getFirstRange(),c,l);else{const e=i.mapper.toViewRange(n.range),t=s.wrap(e,c);for(const r of t.getItems())if(r.is("attributeElement")&&r.isSimilar(c)){i.mapper.bindElementToMarker(r,n.markerName);break}}}}function P(e){return(t,n,r)=>{if(!n.item)return;if(!(n.item instanceof o["a"]))return;const s=$(e,n,r);if(!s)return;if(!r.consumable.test(n.item,t.name))return;const a=r.mapper.toViewElement(n.item);if(a&&a.getCustomProperty("addHighlight")){r.consumable.consume(n.item,t.name);for(const e of i["a"]._createIn(n.item))r.consumable.consume(e.item,t.name);a.getCustomProperty("addHighlight")(a,s,r.writer),r.mapper.bindElementToMarker(a,n.markerName)}}}function I(e){return(t,n,i)=>{if(n.markerRange.isCollapsed)return;const r=$(e,n,i);if(!r)return;const o=m(i.writer,r),s=i.mapper.markerNameToElements(n.markerName);if(s){for(const e of s)i.mapper.unbindElementFromMarkerName(e,n.markerName),e.is("attributeElement")?i.writer.unwrap(i.writer.createRangeOn(e),o):e.getCustomProperty("removeHighlight")(e,r.id,i.writer);i.writer.clearClonedElementsGroup(n.markerName),t.stop()}}}function R(e){return e=Object(l["a"])(e),e.view=V(e.view,"container"),t=>{if(t.on("insert:"+e.model,y(e.view),{priority:e.converterPriority||"normal"}),e.triggerBy){if(e.triggerBy.attributes)for(const n of e.triggerBy.attributes)t._mapReconversionTriggerEvent(e.model,`attribute:${n}:${e.model}`);if(e.triggerBy.children)for(const n of e.triggerBy.children)t._mapReconversionTriggerEvent(e.model,`insert:${n}`),t._mapReconversionTriggerEvent(e.model,`remove:${n}`)}}}function M(e){e=Object(l["a"])(e);const t=e.model.key?e.model.key:e.model;let n="attribute:"+t;if(e.model.name&&(n+=":"+e.model.name),e.model.values)for(const r of e.model.values)e.view[r]=V(e.view[r],"attribute");else e.view=V(e.view,"attribute");const i=F(e);return t=>{t.on(n,w(i),{priority:e.converterPriority||"normal"})}}function j(e){e=Object(l["a"])(e);const t=e.model.key?e.model.key:e.model;let n="attribute:"+t;if(e.model.name&&(n+=":"+e.model.name),e.model.values)for(const r of e.model.values)e.view[r]=z(e.view[r]);else e.view=z(e.view);const i=F(e);return t=>{t.on(n,T(i),{priority:e.converterPriority||"normal"})}}function N(e){return e=Object(l["a"])(e),e.view=V(e.view,"ui"),t=>{t.on("addMarker:"+e.model,_(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,E(e.view),{priority:e.converterPriority||"normal"})}}function D(e){e=Object(l["a"])(e);const t=e.model;return e.view||(e.view=n=>({group:t,name:n.substr(e.model.length+1)})),n=>{n.on("addMarker:"+t,x(e.view),{priority:e.converterPriority||"normal"}),n.on("removeMarker:"+t,C(e.view),{priority:e.converterPriority||"normal"})}}function L(e){return t=>{t.on("addMarker:"+e.model,S(e.view),{priority:e.converterPriority||"normal"}),t.on("addMarker:"+e.model,P(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,I(e.view),{priority:e.converterPriority||"normal"})}}function V(e,t){return"function"==typeof e?e:(n,i)=>B(e,i,t)}function B(e,t,n){let i;"string"==typeof e&&(e={name:e});const r=t.writer,o=Object.assign({},e.attributes);if("container"==n)i=r.createContainerElement(e.name,o);else if("attribute"==n){const t={priority:e.priority||s["a"].DEFAULT_PRIORITY};i=r.createAttributeElement(e.name,o,t)}else i=r.createUIElement(e.name,o);if(e.styles){const t=Object.keys(e.styles);for(const n of t)r.setStyle(n,e.styles[n],i)}if(e.classes){const t=e.classes;if("string"==typeof t)r.addClass(t,i);else for(const e of t)r.addClass(e,i)}return i}function F(e){return e.model.values?(t,n)=>{const i=e.view[t];return i?i(t,n):null}:e.view}function z(e){return"string"==typeof e?t=>({key:e,value:t}):"object"==typeof e?e.value?()=>e:t=>({key:e.key,value:t}):e}function $(e,t,n){const i="function"==typeof e?e(t,n):e;return i?(i.priority||(i.priority=10),i.id||(i.id=t.markerName),i):null}},"6f6d":function(e,t){e.exports=''},"6f97":function(e,t){(function(){"use strict";t.stripBOM=function(e){return"\ufeff"===e[0]?e.substring(1):e}}).call(this)},"6fa7":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n("a242"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class r extends i["i"]{static get pluginName(){return"IndentEditing"}init(){const e=this.editor;e.commands.add("indent",new i["g"](e)),e.commands.add("outdent",new i["g"](e))}}var o=n("02d4"),s=n("7e51"),a=n.n(s),c=n("cbe6"),l=n.n(c); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ class u extends i["i"]{static get pluginName(){return"IndentUI"}init(){const e=this.editor,t=e.locale,n=e.t,i="ltr"==t.uiLanguageDirection?a.a:l.a,r="ltr"==t.uiLanguageDirection?l.a:a.a;this._defineButton("indent",n("Increase indent"),i),this._defineButton("outdent",n("Decrease indent"),r)}_defineButton(e,t,n){const i=this.editor;i.ui.componentFactory.add(e,r=>{const s=i.commands.get(e),a=new o["c"](r);return a.set({label:t,icon:n,tooltip:!0}),a.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(a,"execute",()=>{i.execute(e),i.editing.view.focus()}),a})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class d extends i["i"]{static get pluginName(){return"Indent"}static get requires(){return[r,u]}}},"6fcd":function(e,t,n){var i=n("50d8"),r=n("d370"),o=n("6747"),s=n("0d24"),a=n("c098"),c=n("73ac"),l=Object.prototype,u=l.hasOwnProperty;function d(e,t){var n=o(e),l=!n&&r(e),d=!n&&!l&&s(e),h=!n&&!l&&!d&&c(e),f=n||l||d||h,p=f?i(e.length,String):[],m=p.length;for(var g in e)!t&&!u.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||p.push(g);return p}e.exports=d},7e3:function(e,t){e.exports=''},7041:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("a242"),r=n("cb3e"); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const o="underline";class s extends i["i"]{static get pluginName(){return"UnderlineEditing"}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:o}),e.model.schema.setAttributeProperties(o,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:o,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),e.commands.add(o,new r["a"](e,o)),e.keystrokes.set("CTRL+U","underline")}}var a=n("02d4"),c=n("9f5d"),l=n.n(c); /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ const u="underline";class d extends i["i"]{static get pluginName(){return"UnderlineUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add(u,n=>{const i=e.commands.get(u),r=new a["c"](n);return r.set({label:t("Underline"),icon:l.a,keystroke:"CTRL+U",tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{e.execute(u),e.editing.view.focus()}),r})}} /** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */class h extends i["i"]{static get requires(){return[s,d]}static get pluginName(){return"Underline"}}},"704b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("92fa"),r=a(i),o=n("c295"),s=n("1d54");function a(e){return e&&e.__esModule?e:{default:e}}t.default={name:"SuiFeedLike",mixins:[o.SemanticUIVueMixin],description:"A feed can contain a like element",props:{content:{type:String,description:"Shorthand for primary content"},icon:{type:String,description:"Shorthand for icon. Mutually exclusive with children"}},render:function(){var e=arguments[0],t=this.getElementType("a");return e(t,(0,r.default)([this.getChildPropsAndListeners(),{class:this.classes("like")}]),[this.$slots.default||[this.icon&&e(s.Icon,{attrs:{name:this.icon}},[]),this.content]])},meta:{parent:"SuiFeed"}}},7066:function(e,t,n){},7129:function(e,t,n){"use strict";var i=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function o(e,t){var n=typeof e;return t=null==t?i:t,!!t&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e