@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230815.0 → 0.0.0-nightly-20230816.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>za});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_enabledCommands","value","clearForceDisabled","_disableUnsupportedCommands","has","editor","refresh","commands","TrackChangesCommand","affectsData","_isEnabledBasedOnSelection","forceDisabled","execute","_enableCommands"];var c,l;c=a,l=405,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x1")]=e,this[d("0x2")]=!1,this.refresh(),this[d("0xb")]=!1}[d("0x7")](){this.isEnabled=!0}[d("0xd")](){this[d("0x2")]=!this[d("0x2")],this[d("0x2")]?this[d("0x4")]():this[d("0x0")]()}[d("0x4")](){for(const t of this.editor.commands.commands())t.affectsData&&!this[d("0x1")][d("0x5")](t)&&t[d("0xc")](d("0x9"))}[d("0x0")](){for(const t of this[d("0x6")][d("0x8")][d("0x8")]())t[d("0xa")]&&!this[d("0x1")].has(t)&&t[d("0x3")](d("0x9"))}}const g=["get","plugins","model","TrackChangesEditing","_isEnabledBasedOnSelection","refresh","canEditAt","track-changes-accept-suggestion-not-found","execute","editor","getRanges","acceptSuggestion"];var m,f;m=g,f=106,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this[h("0x6")]=!1}[h("0x7")](){this.isEnabled=!0}[h("0xa")](t){const n=this._suggestions[h("0x2")](t);if(!n)throw new e.CKEditorError(h("0x9"),this);const o=n[h("0x0")]();this[h("0xb")][h("0x4")][h("0x8")](o)&&this.editor[h("0x3")][h("0x2")](h("0x5"))[h("0x1")](n)}}const b=["getRanges","track-changes-discard-suggestion-not-found","_suggestions","execute","discardSuggestion","get","TrackChangesEditing","plugins","editor","_isEnabledBasedOnSelection","canEditAt","isEnabled"];var E,_;E=b,_=365,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this[T("0x4")]=!1}refresh(){this[T("0x6")]=!0}[T("0xa")](t){const n=this[T("0x9")].get(t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n[T("0x7")]();this[T("0x3")].model[T("0x5")](o)&&this[T("0x3")][T("0x2")][T("0x0")](T("0x1"))[T("0xb")](n)}}const y=["execute","createPositionBefore","length","change","push","replace","getMarkers","isIntersecting","content","sort","add","deletion","isObject","type","start","schema","getRanges","color","createPositionAfter","map","createRange","value","isArray","isTouching","isCollapsed"];var k,A;k=y,A=314,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x14")](((t,e)=>"deletion"==t[v("0x18")]&&v("0x16")!=e[v("0x18")]?-1:v("0x16")!=t.type&&v("0x16")==e[v("0x18")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x1")];for(;o<t[v("0xd")];){const i=t[o],x=t[o+1];n||(n=e[v("0xc")](i)),I(e,i,x)||(s[v("0xf")](e[v("0x6")](n,r[v("0x17")](i)?e[v("0x4")](i):e.createPositionAt(i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x4")](e),s=t[v("0xc")](n);return o[v("0x9")](s)}function L(t,e,n){for(;n[v("0xd")];){const o=n.splice(0,100);t[v("0xe")]((()=>{for(const t of o)t.isInContent&&e[v("0xb")](t.id)}))}}const N=["_suggestions","execute","refresh","_isEnabledBasedOnSelection","isInContent","editor","model","_command","values","getRanges","from","isEnabled"];var M,w;M=N,w=471,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this[O("0xb")](),this[O("0x0")]=!1}[O("0xb")](){const t=Array[O("0x7")](this._suggestions.values()).some((t=>t[O("0x1")]));this[O("0x8")]=this[O("0x4")].isEnabled&&t}[O("0xa")](){const t=R(Array.from(this[O("0x9")][O("0x5")]()));for(const e of t){const t=e[O("0x6")]();if(!this[O("0x2")].model.canEditAt(t))return}L(this[O("0x2")][O("0x3")],this[O("0x4")],t)}}const D=["model","getRanges","refresh","execute","from","selection","_isEnabledBasedOnSelection","size","isEnabled","editor","canEditAt","_selectedSuggestions","_command","values"];var P,B;P=D,B=249,function(t){for(;--t;)P.push(P.shift())}(++B);const j=function(t,e){return D[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this._selectedSuggestions=new Set,this[j("0x5")](),this[j("0x9")]=!1}[j("0x5")](){const t=this[j("0xc")].model.document[j("0x8")],e=Array[j("0x7")](this._suggestions[j("0x2")]());this[j("0x0")]=function(t,e){const n=Array.from(t[v("0x2")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x11")]()){const r=n.getRange();(e[v("0x12")](r)||t[v("0xa")]&&!s.isMultiRange&&s.next&&r.end[v("0x9")](e[v("0x0")]))&&o[v("0x15")](s)}return o}(t,e),this[j("0xb")]=this[j("0x1")][j("0xb")]&&!!this[j("0x0")][j("0xa")]}[j("0x6")](){const t=R(Array[j("0x7")](this[j("0x0")]));for(const e of t){const t=e[j("0x4")]();if(!this[j("0xc")][j("0x3")][j("0xd")](t))return}L(this.editor[j("0x3")],this[j("0x1")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const q=function(t){return W(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=W(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Dt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=st?st.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Po:a)==Po,d=(c=c==Fo?Po:c)==Po,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Wo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:Wo(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getMarkerNames","accept","push","next","createdAt","hasComments","_model","change","markers","removeMarkers","removeAttribute","@external","toJSON","subType","map","add","end","getAllAdjacentSuggestions","commentThread","nodeAfter","_onDiscard","removeMarker","type","getRange","getMultiRangeId","nodeBefore","author","previous","discard","onDiscard","_saved","authoredAt","getItems","onAttributesChange","suggestion:","addMarkerName","isMultiRange","data","attributes","length","isInContent","getFirstMarker","_markerNames","head","getFirstRange","addMarker","delete","split","_onAccept","isIntersectingWithRange","creator","decorate","from","_onAttributesChange","set","getContainedElement","setAttribute","getMarkers","onAccept","reduce","getRanges"];var $o,Jo;$o=Xo,Jo=137,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this.type=e[Qo("0x7")],this[Qo("0x3b")]=e[Qo("0x3b")]||null,this[Qo("0xb")]=e[Qo("0xb")],this.creator=e.creator||e[Qo("0xb")],this.isExternal=Boolean(e.attributes&&e[Qo("0x17")][Qo("0x39")]),this.data=null,this[Qo("0x34")]=t,this[Qo("0x21")]=e[Qo("0x2b")],this[Qo("0x5")]=e[Qo("0xe")],this[Qo("0x26")]=e[Qo("0x12")],this._markerNames=new Set,this[Qo("0x32")]=null,this[Qo("0x27")](Qo("0x10"),null),this[Qo("0x27")]("attributes",e[Qo("0x17")]||{}),this[Qo("0x27")](Qo("0xc"),null),this.set(Qo("0x31"),null),this.set(Qo("0x3"),null),this[Qo("0x27")](Qo("0xf"),!1),this[Qo("0x24")](Qo("0x2f")),this[Qo("0x24")](Qo("0xd"))}get[Qo("0x1c")](){let t=this;for(;t.previous;)t=t[Qo("0xc")];return t}get[Qo("0x33")](){return!!this.commentThread&&this[Qo("0x3")][Qo("0x18")]>0}get[Qo("0x15")](){return 0!=this[Qo("0x1b")].size&&6==Array[Qo("0x25")](this[Qo("0x1b")])[0][Qo("0x20")](":").length}get[Qo("0x19")](){return null!==this[Qo("0x1a")]()}[Qo("0x14")](t){this[Qo("0x1b")][Qo("0x0")](t)}getMarkerNames(){return Array[Qo("0x25")](this[Qo("0x1b")])}[Qo("0x2a")](){return this[Qo("0x2e")]()[Qo("0x3c")]((t=>this[Qo("0x34")][Qo("0x36")].get(t))).filter((t=>t))}[Qo("0x1a")](){return this.getMarkers()[0]||null}[Qo("0x37")](){this._model.change((t=>{for(const e of this.getMarkers())t[Qo("0x6")](e)})),this[Qo("0x1b")].clear()}[Qo("0x6")](t){this[Qo("0x34")].change((e=>{e[Qo("0x6")](t)})),this._markerNames[Qo("0x1f")](t)}addRange(t){const e=Qo("0x13")+this.type+":"+this[Qo("0x3b")]+":"+this.id+":"+this[Qo("0x23")].id+":"+Zo[Qo("0x9")]();this[Qo("0x14")](e),this[Qo("0x34")][Qo("0x35")]((n=>{n[Qo("0x1e")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x22")](t){for(const e of this[Qo("0x2d")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x2d")](){return this[Qo("0x2a")]()[Qo("0x3c")]((t=>t[Qo("0x8")]()))}[Qo("0x11")](){return this[Qo("0x2d")]()[Qo("0x2c")](((t,e)=>[...t,...e[Qo("0x11")]()]),[])}[Qo("0x1d")](){var t;return(null===(t=this[Qo("0x1a")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x28")](){const t=this[Qo("0x2d")]();if(1!=t[Qo("0x18")])return null;const e=t[0],n=e.start[Qo("0x4")],o=e[Qo("0x1")][Qo("0xa")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2f")](){this._onAccept(this[Qo("0x2d")](),this.data,this[Qo("0x17")]),this.removeMarkers()}[Qo("0xd")](){this[Qo("0x5")](this[Qo("0x2d")](),this.data,this[Qo("0x17")]),this[Qo("0x37")]()}[Qo("0x2")](){const t=[];let e=this[Qo("0x1c")];for(;e;)t[Qo("0x30")](e),e=e[Qo("0x31")];return t}[Qo("0x29")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Qo("0x17")])||(this[Qo("0x17")]=n,this[Qo("0x26")](n))}[Qo("0x38")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x17")])||(this.attributes=e,this[Qo("0x26")](this[Qo("0x17")]))}[Qo("0x3a")](){return{id:this.id,type:this.subType?this[Qo("0x7")]+":"+this[Qo("0x3b")]:this[Qo("0x7")],authorId:this[Qo("0x23")].id,createdAt:this[Qo("0x32")],hasComments:this[Qo("0x33")],data:this[Qo("0x16")],attributes:this[Qo("0x17")]}}static[Qo("0x9")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["length","nextSibling","EmptyContainer","quantity","REPLACE_TEXT","normal","name","_itemLabelsCallbacks","pop","skip","add","indexOf","removeEmptyContainer","checkChild","Object","addEmptyContainer","_customCallbacks","text","*Remove:* %0","getItemLabel","remove","_schema","isEqual","Container","elementEnd","match","*Split:* %0","push","item","ELEMENT_SPACE","type","matchingCallback","elementStart","element","_itemLabels","end","insertion","isEmpty","getDescriptions","softBreak","addObject","isObject","*Insert:* %0","$1 $2","get","$textProxy","removeObject","previousSibling","getFirstRange","addContainer","_resolveDescriptionItems","_addDescriptionItems","start","_locale","set","replace","registerElementLabel","function","data","registerDescriptionCallback","label"];var es,ns;es=ts,ns=232,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x1c")]=[],this._itemLabels=new Map,this[os("0x13")]=[],this[os("0x21")]=t,this[os("0x4")]=e}[os("0x32")](t){const e=[];for(let n=0;n<t[os("0xc")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x2a")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x2")](e,o);const s=t[n+1];if(s&&!o[os("0x3c")]()[os("0x2f")][os("0x22")](s.getFirstRange()[os("0x3")])){const t=e[e.length-1],n=os("0x30")==o[os("0x2a")]?"add":os("0x20");t&&"text"==t[os("0x2a")]&&(t[n]+="\n")}}}return this[os("0x1")](e)}[os("0xa")](t){this._customCallbacks.push(t)}[os("0x7")](t,n,o=e.priorities[os("0x11")]){os("0x8")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x5")](t,n)}getItemLabel(t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x2b")](t)){n=e[os("0xb")];break}return n||(n=this[os("0x2e")][os("0x38")](t[os("0x12")])),n?n(e):1!==e?e+" "+t[os("0x12")]+"s":""+t[os("0x12")]}[os("0x2")](t,e){const n=e[os("0x3c")]().getWalker(),o="insertion"==e.type?os("0x16"):os("0x20");for(const e of n){const s=e[os("0x28")],r=t[t[os("0xc")]-1];if(s.is(os("0x39")))r&&r[os("0x2a")][os("0x17")](os("0x23"))>-1&&t[os("0x14")](),r&&os("0x1d")==r[os("0x2a")]?r[o]+=s[os("0x9")]:t[os("0x27")]({type:os("0x1d"),add:os("0x16")==o?s[os("0x9")]:"",remove:os("0x20")==o?s.data:""});else if(this[os("0x21")].isObject(s)){const i=s;if(r&&r[os("0x2a")][os("0x17")](os("0x23"))>-1&&t[os("0x14")](),os("0x24")==e[os("0x2a")])continue;r&&r[os("0x2a")]==o+os("0x1a")&&r[os("0x2d")].name==i.name?r[os("0xf")]++:t[os("0x27")]({type:o+os("0x1a"),element:i,quantity:1}),n[os("0x15")]((t=>!(os("0x24")==t[os("0x2a")]&&t[os("0x28")]==s)))}else if(this[os("0x21")][os("0x19")](s,"$text")||s.is(os("0x2d"),os("0x33"))){const n=s;if(os("0x16")==o&&os("0x2c")==e[os("0x2a")]||os("0x20")==o&&"elementEnd"==e[os("0x2a")])continue;if(r&&-1==r.type[os("0x17")](os("0x23"))){"text"==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x16")==o?n[os("0xd")]&&!this[os("0x21")][os("0x35")](n[os("0xd")])?n[os("0xd")]:null:n.previousSibling&&!this[os("0x21")][os("0x35")](n[os("0x3b")])?n[os("0x3b")]:null,n[os("0x31")]||i&&i[os("0x31")]){const e=i&&i[os("0x31")]?i:n;r&&r[os("0x2a")]==o+os("0xe")&&r[os("0x2d")].name==e[os("0x12")]?r.quantity++:t.push({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x27")]({type:o+os("0x23"),element:n})}}}_resolveDescriptionItems(t){const e=this[os("0x4")],n=[];for(const o of t){switch(o[os("0x2a")]){case os("0x1d"):if(o.add=o[os("0x16")][os("0x6")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x6")](/\u000A/g,""),o[os("0x20")]=o.remove[os("0x6")](/(\S)\u000A+(\S)/g,os("0x37"))[os("0x6")](/\u000A/g,""),""!=o[os("0x16")]&&""!=o[os("0x20")]){n[os("0x27")]({type:os("0x6"),content:Yo(e,os("0x10"),['"'+o[os("0x20")]+'"','"'+o[os("0x16")]+'"'])});continue}if(null!=o.add[os("0x25")](/^ +$/)){n[os("0x27")]({type:os("0x30"),content:Yo(e,"*Insert:* %0",Yo(e,os("0x29"),o[os("0x16")][os("0xc")]))});continue}if(null!=o.remove[os("0x25")](/^ +$/)){n[os("0x27")]({type:"deletion",content:Yo(e,"*Remove:* %0",Yo(e,os("0x29"),o[os("0x20")][os("0xc")]))});continue}if(""!=o[os("0x16")]){n.push({type:os("0x30"),content:Yo(e,os("0x36"),'"'+o[os("0x16")]+'"')});continue}n.push({type:"deletion",content:Yo(e,os("0x1e"),'"'+o.remove+'"')});continue;case os("0x1b"):case os("0x34"):n.push({type:os("0x30"),content:Yo(e,"*Insert:* %0",this[os("0x1f")](o[os("0x2d")],o.quantity))});continue;case os("0x18"):case os("0x3a"):n.push({type:"deletion",content:Yo(e,os("0x1e"),this[os("0x1f")](o[os("0x2d")],o[os("0xf")]))});continue;case os("0x0"):n.push({type:os("0x30"),content:Yo(e,os("0x26"),this.getItemLabel(o.element,o[os("0xf")]))});continue;case"removeContainer":n[os("0x27")]({type:"deletion",content:Yo(e,"*Merge:* %0",this[os("0x1f")](o[os("0x2d")],o.quantity))});continue}n[os("0x27")](o)}return n}}const rs=["commandName","getSelectedBlocks","FORMAT_ALIGN_TO_RIGHT","filter","get","AlignmentEditing","TrackChangesEditing","plugins","afterInit","value","right","model","alignment","from","left","enableCommand","locale","getAttribute","FORMAT_JUSTIFY_TEXT","selection","_descriptionFactory","*Format:* %0","editor","center","FORMAT_ALIGN_TO_LEFT","change","justify","ltr","markBlockFormat","registerDescriptionCallback","has","checkAttribute"];var is,xs;is=rs,xs=468,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x14")](){const t=this.editor,e=t[as("0x1c")];if(!t[as("0x13")][as("0xa")](as("0x11")))return;const n=t[as("0x13")][as("0x10")](as("0x12"));n[as("0x1b")](as("0x18"),((e,o={})=>{let s=o[as("0x15")];o[as("0x15")]||(s=as("0x7")===t[as("0x1c")].contentLanguageDirection?as("0x1a"):as("0x16"));const r=Array[as("0x19")](this[as("0x2")][as("0x17")].document[as("0x1f")][as("0xd")]())[as("0xf")]((t=>function(t,e,n){const o=t[as("0x1d")](as("0x18"))||null;return e[as("0xb")](t,"alignment")&&n!=o}(t,this[as("0x2")][as("0x17")].schema,s)));t[as("0x17")][as("0x5")]((()=>{for(const t of r)n[as("0x8")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x0")][as("0x9")]((t=>{const{data:n}=t;if(n&&as("0x18")==n[as("0xc")]){const t=n.commandParams[0][as("0x15")];return{type:"format",content:Yo(e,as("0x1"),function(t){switch(t){case as("0x1a"):return Yo(e,as("0x4"));case as("0x16"):return Yo(e,as("0xe"));case as("0x3"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case as("0x6"):return Yo(e,as("0x1e"))}}(t))}}}))}}const ls=["mapper","toViewElement","isAtEnd","writer","previousPosition","includes","elementEnd","getItems","nextSibling","addClass","start","hasAttribute","consumable","insert","model","push","get","activeMarkers","ck-suggestion-marker-","TrackChangesEditing","listItem","listIndent","element","markerRange","name","isContent","test","type","plugins","span","parent","bindElementToMarker","schema","getWalker"];var ds,us;ds=ls,us=406,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x9")]())s[gs("0xd")](t)&&o[gs("0x11")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x18"),gs("0x16"))){let n=t[gs("0xa")];for(;n&&n.is(gs("0x18"),gs("0x16"))&&n.getAttribute(gs("0x17"))>0;)e.push(n),n=n[gs("0xa")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x1e")][gs("0x12")](gs("0x15"));return(s,r,i)=>{if(!i[gs("0xe")][gs("0x1c")](r.markerRange,s[gs("0x1a")]))return;const x=r.markerRange[gs("0x1")](),a=r[gs("0x19")][gs("0xc")],c=t[gs("0x10")][gs("0x0")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c[gs("0x1b")](e);const n=i[gs("0x2")][gs("0x3")](e);if(n&&n.getCustomProperty("addHighlight"))return;gs("0x8")==t[gs("0x1d")]&&c.isBlock(e)&&!c.isLimit(e)&&(e[gs("0xa")]||a[gs("0x4")]?l&&l[gs("0x20")]==e||(l=e,m(t[gs("0x6")]),g=!0):d=d||t.previousPosition)}function m(t){const s=i.writer.createUIElement(gs("0x1f"),{class:gs("0x14")+e}),x=i[gs("0x2")].toViewPosition(t);n&&o[gs("0x13")][gs("0x7")](r.markerName)&&i[gs("0x5")][gs("0xb")]("ck-suggestion-marker--active",s),i[gs("0x5")][gs("0xf")](x,s),i[gs("0x2")][gs("0x21")](s,r.markerName)}u||g||!d||m(d)}}const ps=["get","editor","italic","plugins","format","FORMAT_STRIKETHROUGH","toLowerCase","CodeEditing","afterInit","_descriptionFactory","superscript","UnderlineEditing","change","registerDescriptionCallback","document","bold","enableCommand","commands","FORMAT_CODE","commandName","subscript","from","SuperscriptEditing","strikethrough","FORMAT_SUBSCRIPT","FORMAT_SUPERSCRIPT","FORMAT_UNDERLINE","code","TrackChangesEditing","markInlineFormat","StrikethroughEditing","BoldEditing","forceValue","FORMAT_ITALIC","commandParams","model","value","ItalicEditing"];var bs,Es;bs=ps,Es=435,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xe"),_s("0x14"),_s("0x20"),_s("0x1c"),_s("0xd"),"SubscriptEditing",_s("0x5")];class Cs extends t.Plugin{[_s("0x1d")](){const t=this[_s("0x16")],e=t[_s("0x12")],n=t[_s("0x18")].get(_s("0xb")),o=t.locale;for(const o of Ts){if(!t[_s("0x18")].has(o))continue;const s=o.slice(0,-7)[_s("0x1b")](),r=t[_s("0x0")][_s("0x15")](s);n[_s("0x25")](s,((t,o={})=>{const i=e[_s("0x23")].selection;if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0xf")]?o[_s("0xf")]:!r[_s("0x13")];e[_s("0x21")]((()=>{const t=Array[_s("0x4")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x1e")][_s("0x22")]((n=>{const{data:s}=n;if(s&&s[_s("0x2")]===t)return s[_s("0x11")][0][_s("0xf")]?{type:_s("0x19"),content:Yo(o,"*Format:* %0",e)}:{type:"format",content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x24"),Yo(o,"FORMAT_BOLD")),s(_s("0x17"),Yo(o,_s("0x10"))),s("underline",Yo(o,_s("0x9"))),s(_s("0xa"),Yo(o,_s("0x1"))),s(_s("0x6"),Yo(o,_s("0x1a"))),s(_s("0x3"),Yo(o,_s("0x7"))),s(_s("0x1f"),Yo(o,_s("0x8")))}}const ys=["getSelectedBlocks","model","$root","value","markBlockFormat","locale","commandName","registerDescriptionCallback","plugins","filter","parent","change","get","enableCommand","BlockQuoteEditing","from","forceValue","afterInit","blockQuote","editor","document","*Remove format:* %0","schema","commands","name","TrackChangesEditing","ELEMENT_BLOCK_QUOTE","checkChild"];var ks,As;ks=ys,As=113,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x10")](){const t=this.editor,e=t[vs("0x4")];if(!t.plugins.has(vs("0xd")))return;const n=t[vs("0x7")][vs("0xb")](vs("0x18")),o=this.editor[vs("0x16")].get(vs("0x11"));n[vs("0xc")](vs("0x11"),((e,s={})=>{const r=this[vs("0x12")][vs("0x0")][vs("0x13")].selection,i=s&&void 0!==s[vs("0xf")]?s[vs("0xf")]:!o[vs("0x2")];let x=[];if(i){const e=Array[vs("0xe")](r[vs("0x1b")]())[vs("0x8")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t.parent,vs("0x11")),o=e[vs("0x1a")]([vs("0x1"),"blockQuote"],t);return n&&o}(t,this.editor[vs("0x0")][vs("0x15")])));x=S(e,t.model)}else{const e=Array[vs("0xe")](r.getSelectedBlocks()).filter((t=>Ss(t)));x=S(e,t[vs("0x0")])}t[vs("0x0")][vs("0xa")]((()=>{for(const t of x)n[vs("0x3")](t,{commandName:vs("0x11"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x6")]((t=>{const{data:n}=t;if(n&&vs("0x11")==n[vs("0x5")]){const t=Yo(e,vs("0x19"));return n.commandParams[0][vs("0xf")]?{type:"format",content:Yo(e,"*Format:* %0",t)}:{type:"format",content:Yo(e,vs("0x14"),t)}}}))}}function Ss(t){return vs("0x11")==t[vs("0x9")][vs("0x17")]}const Is=["ckbox","plugins","commands","get","enableCommand"];var Ls,Ns;Ls=Is,Ns=226,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t[Ms("0x1")][Ms("0x2")](Ms("0x4"))&&t[Ms("0x0")].get("TrackChangesEditing")[Ms("0x3")]("ckbox")}}const Os=["checkChild","value","change","TrackChangesEditing","document","from","language","schema","forceValue","_descriptionFactory","get","indentCodeBlock","find","selection","enableCommand","markBlockFormat","model","format","registerElementLabel","ELEMENT_CODE_BLOCK","formatBlock","blockName","*Format:* %0","isLimit","getSelectedBlocks","locale","codeBlock","label","filter","commandParams","commandName","rootElement","commands","*Remove format:* %0","afterInit"];var Fs,Ds;Fs=Os,Ds=431,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ds);const Ps=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ps("0x17")](){const t=this.editor;if(!t.plugins.has("CodeBlock"))return;const e=t.plugins[Ps("0x22")](Ps("0x1b")),n=t[Ps("0xe")],o=t.config.get(Ps("0xf")).languages,s=t[Ps("0x15")][Ps("0x22")]("codeBlock");e.enableCommand(Ps("0x0")),e[Ps("0x3")]("outdentCodeBlock"),e[Ps("0x3")](Ps("0xf"),((n,r={})=>{const i=t[Ps("0x5")],x=t[Ps("0x5")][Ps("0x1c")][Ps("0x2")],a=r&&void 0!==r[Ps("0x20")]?r[Ps("0x20")]:!s[Ps("0x19")];let c;r[Ps("0x1e")]||(r[Ps("0x1e")]=o[0].language),c=a?Array[Ps("0x1d")](x[Ps("0xd")]())[Ps("0x11")]((t=>{return js(t)||(e=t,n=i[Ps("0x1f")],!e.is(Ps("0x14"))&&!n[Ps("0xc")](e)&&n[Ps("0x18")](e.parent,Ps("0xf")));var e,n})):Array[Ps("0x1d")](x.getSelectedBlocks()).filter((t=>js(t)));const l=S(c,i);i[Ps("0x1a")]((()=>{for(const t of l)e[Ps("0x4")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ps("0xa")})}))})),e._descriptionFactory[Ps("0x7")]("codeBlock",(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e[Ps("0x21")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ps("0x9")==s&&r&&Ps("0xf")==r[Ps("0x13")]){const t=r[Ps("0x12")][0][Ps("0x1e")],s=e(o[Ps("0x1")]((e=>e[Ps("0x1e")]===t))[Ps("0x10")]);return r[Ps("0x12")][0][Ps("0x20")]?{type:Ps("0x6"),content:Yo(n,Ps("0xb"),Yo(n,Ps("0x8"),1)+" ("+s+")")}:{type:Ps("0x6"),content:Yo(n,Ps("0x16"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return"codeBlock"==t.name}const Us=["has","plugins","get","addCommentThread","enableCommand","CommentsEditing"];var Gs,Hs;Gs=Us,Hs=157,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class zs extends t.Plugin{afterInit(){const t=this.editor;t[Ws("0x0")][Ws("0x5")](Ws("0x4"))&&t[Ws("0x0")][Ws("0x1")]("TrackChangesEditing")[Ws("0x3")](Ws("0x2"))}}var Vs=n(181);const Ks=["data","enableCommand","unit","options","root","unlock","createRange","get","document","addMarker:suggestion:deletion","uiElement","unbindElementFromMarkerName","enqueueChange","merge","commands","forward","fromRange","delete","createSelection","showSuggestionHighlights","editor","rootName","end","writer","detach","lock","mapper","getFirstRange","buffer","isCollapsed","model","batch","high","remove","markerNameToElements","removeMarker:suggestion:deletion","setSelection","downcastDispatcher","start","bind","init"];var qs,Xs;qs=Ks,Xs=373,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get requires(){return[Vs.Delete]}[$s("0x24")](){const t=this[$s("0x10")],e=t.plugins[$s("0x3")]("TrackChangesEditing");e[$s("0x26")]($s("0xd"));const n=t[$s("0xa")][$s("0x3")]("deleteForward");e[$s("0x26")]("deleteForward",((e,o={})=>{const s=t[$s("0x1a")][$s("0xe")](t[$s("0x1a")][$s("0x4")].selection);s[$s("0x19")]&&t[$s("0x1a")].modifySelection(s,{direction:$s("0xb"),unit:o[$s("0x27")]});const r=s[$s("0x17")](),x=i.LiveRange[$s("0xc")](r);let a;e(o),a="$graveyard"==x[$s("0x0")][$s("0x11")]?t[$s("0x1a")][$s("0x2")](r.start):t[$s("0x1a")][$s("0x2")](x[$s("0x22")],x[$s("0x12")]),x[$s("0x14")](),t.model[$s("0x8")](n.buffer[$s("0x1b")],(t=>{n[$s("0x18")][$s("0x15")](),t[$s("0x20")](t[$s("0x2")](a[$s("0x12")])),n[$s("0x18")][$s("0x1")]()}))})),t.editing.downcastDispatcher.on($s("0x5"),hs(t,"merge"),{priority:$s("0x1c")}),t[$s("0x25")].downcastDispatcher.on($s("0x5"),((e,n,o)=>{o[$s("0x28")][$s("0xf")]&&hs(t,$s("0x9"),{showActiveMarker:!1})[$s("0x23")](this)(e,n,o)}),{priority:$s("0x1c")}),t.editing[$s("0x21")].on($s("0x1f"),((t,e,n)=>{const o=n[$s("0x16")][$s("0x1e")](e.markerName);if(o)for(const t of o)t.is($s("0x6"))&&(n[$s("0x16")][$s("0x7")](t,e.markerName),n[$s("0x13")][$s("0x1d")](t))}),{priority:$s("0x1c")})}}const Qs=["toUpperCase","parent","getRanges","fromRange","isObject","DocumentListEditing","*Outdent:* %0","ELEMENT_","markBlockFormat","commandParams","mergeListItemBackward","_LIST","registerDescriptionCallback","previousSibling","createRange","*Change to:* %0","format","registerElementLabel","selection","enableCommand","*Format:* insert into %0","DocumentListUtils","push","hasAttribute","value","end","before","nodeAfter","map","splitListItemAfter","forceValue","deletion","numberedList","commands","listItemId","getSelectedBlocks","slice","ELEMENT_BULLETED_LIST","TrackChangesEditing","nextSibling","schema","ELEMENT_NUMBERED_LIST","markMultiRangeBlockFormat","next","findIndex","afterInit","ELEMENT_LIST_ITEM","*Format:* remove from %0","accept","commandName","listIndent","_descriptionFactory","refresh","setSelection","listType","indentList","getFirstRange","from","_suggestionFactory","has","createPositionAt","change","documentList","start","formatBlock","add","outdentList","plugins","get","document","getAttribute","registerCustomCallback","multipleBlocks","bulletedList","model","locale"];var Zs,Ys;Zs=Qs,Ys=384,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x29")](){const t=this.editor;if(!t[tr("0x3f")][tr("0x37")](tr("0x1")))return;const e=t[tr("0x47")],n=t.plugins[tr("0x40")](tr("0x22")),o=t.plugins[tr("0x40")](tr("0x11"));function s(e){return()=>{const s=t[tr("0x1d")][tr("0x40")](e);let r=Array[tr("0x35")](t[tr("0x46")][tr("0x41")][tr("0xe")].getSelectedBlocks());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t.model[tr("0x39")]((()=>{n[tr("0x26")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x14")]}],formatGroupId:tr("0x32")},[],tr("0x3a"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x35")](t);const n=e[tr("0x28")]((t=>!t[tr("0x13")](tr("0x1e"))));return n>-1&&(e=e[tr("0x20")](0,n)),e}(t.model[tr("0x41")].selection.getSelectedBlocks()),s=o[o.length-1],r=t[tr("0x46")][tr("0x24")][tr("0x0")](s)?"after":"end",i=t[tr("0x46")][tr("0xa")](t[tr("0x46")].createPositionAt(o[0],tr("0x16")),t[tr("0x46")][tr("0x38")](s,r));t[tr("0x46")][tr("0x39")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x32")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x23")];for(;t&&t[tr("0x42")](tr("0x2e"))>n.getAttribute(tr("0x2e"));)e[tr("0x3d")](t),t=t[tr("0x23")]}return Array[tr("0x35")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x46")][tr("0x41")][tr("0xe")][tr("0x1f")]()[tr("0x27")]()[tr("0x14")],s=t[tr("0x46")][tr("0x38")](o,"before"),r=t[tr("0x46")].createPositionAt(o,0),i=t[tr("0x46")][tr("0xa")](s,r);t.model.change((()=>{n[tr("0x4")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x32")})}))}}function a(e){const n=t[tr("0x1d")][tr("0x40")]("bulletedList")[tr("0x14")],o=t[tr("0x1d")][tr("0x40")]("numberedList")[tr("0x14")];return tr("0x1c")===e?n:o}n[tr("0xf")](tr("0x1c"),s(tr("0x1c"))),n[tr("0xf")]("bulletedList",s(tr("0x45"))),n[tr("0xf")](tr("0x33"),r("indentList")),n[tr("0xf")]("outdentList",r(tr("0x3e"))),n.enableCommand(tr("0x19"),x("splitListItemAfter")),n[tr("0xf")]("splitListItemBefore",x("splitListItemBefore")),n[tr("0x2f")][tr("0xd")]((function(e){const n=!t[tr("0x46")][tr("0x24")][tr("0x0")](e),o=e[tr("0x9")],s=e[tr("0x23")],r=e.getAttribute(tr("0x1e")),i=!o||o.getAttribute(tr("0x1e"))!==r,x=!s||s.getAttribute(tr("0x1e"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x2a"),t))),n._descriptionFactory[tr("0x8")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x2d")]){case tr("0x45"):r=n[tr("0x5")][0][tr("0x1a")],i=a(n[tr("0x2d")]),o=r?"*Format:* insert into %0":tr("0x2b"),i&&(o=tr("0xb")),s={type:tr("0xc"),content:Yo(e,o,Yo(e,tr("0x21")))};break;case tr("0x1c"):r=n[tr("0x5")][0][tr("0x1a")],i=a(n[tr("0x2d")]),o=tr(r?"0x10":"0x2b"),i&&(o="*Change to:* %0"),s={type:tr("0xc"),content:Yo(e,o,Yo(e,tr("0x25")))};break;case tr("0x33"):o="*Indent:* %0",s={type:tr("0xc"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case tr("0x3e"):o=function(t){const e=t.getFirstRange();let n=e.start[tr("0x17")];for(;n&&e.containsItem(n);){if(n[tr("0x42")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x34")]()[tr("0x3b")][tr("0x17")];return tr("0x3")+e[tr("0x42")](tr("0x32"))[tr("0x48")]()+tr("0x7")}(t))):Yo(e,tr("0x2"),Yo(e,tr("0x2a"))),s={type:"format",content:o};break;case tr("0x6"):case"mergeListItemForward":!1===n[tr("0x44")]&&(o="*Merge:* %0",s={type:tr("0x1b"),content:Yo(e,o,Yo(e,tr("0x2a")))})}return s})),n[tr("0x36")][tr("0x43")](tr("0x3c"),tr("0x3a"),tr("0x2c"),(function(e,n){const o=[];for(let n of e)n[tr("0x3b")][tr("0x17")]===n[tr("0x15")][tr("0x49")]&&(n=t.model[tr("0xa")](t[tr("0x46")].createPositionAt(n[tr("0x3b")].nodeAfter,0))),o[tr("0x12")](n);t[tr("0x46")][tr("0x39")]((e=>{const s=t[tr("0x46")][tr("0x41")].selection,r=Array.from(s[tr("0x4a")]())[tr("0x18")]((t=>i.LiveRange[tr("0x4b")](t)));e[tr("0x31")](o),t[tr("0x1d")][tr("0x40")](n.commandName)[tr("0x30")](),n[tr("0x5")].push({forceDefaultExecution:!0}),t.execute(n[tr("0x2d")],...n[tr("0x5")]),e[tr("0x31")](r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["plugins","editing","enter","addMarker:suggestion:insertion","createPositionAt","downcastDispatcher","fire","afterExecute","end","setSelection","high","enableCommand","requires","markerNameToElements","mapper","remove","fromRange","detach","hasClass","nextSibling","selection","enterBlock","getFirstPosition","model","createRange","parent","split","showSuggestionHighlights","markInsertion","markerName","get","TrackChangesEditing","options","change"];var sr,rr;sr=or,rr=400,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x14")](){return[nr.Enter]}init(){const t=this.editor,e=t[ir("0x8")][ir("0x4")](ir("0x5")),n=t.commands[ir("0x4")]("enter");e[ir("0x13")](ir("0xa"),(()=>{t[ir("0x1f")][ir("0x7")]((o=>{const s=t[ir("0x1f")].document[ir("0x1c")],r=s[ir("0x1e")](),x=i.LiveRange[ir("0x18")](s.getFirstRange());if(n[ir("0x1d")](o)){const n=t[ir("0x1f")][ir("0xc")](r[ir("0x21")][ir("0x1b")],0),s=o[ir("0x20")](r,n);e[ir("0x2")](s)}else o[ir("0x11")](o[ir("0x20")](x[ir("0x10")]));x[ir("0x19")](),n[ir("0xe")](ir("0xf"),{writer:o})}))})),t.editing[ir("0xd")].on("addMarker:suggestion:insertion",hs(t,ir("0x0")),{priority:ir("0x12")}),t[ir("0x9")][ir("0xd")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n.mapper[ir("0x15")](e[ir("0x3")]);if(o)for(const t of o)t[ir("0x1a")]("ck-suggestion-marker-split")&&(n[ir("0x16")].unbindElementFromMarkerName(t,e[ir("0x3")]),n.writer[ir("0x17")](t))}),{priority:ir("0x12")}),t.data[ir("0xd")].on(ir("0xb"),((e,n,o)=>{o[ir("0x6")][ir("0x1")]&&hs(t,ir("0x0"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"})}}const ar=["model","createRange","createPositionAt","end","get","getIntersection","afterInit","findByTextCallback","has","item","handleFindCommand","string","findPrevious","bind","editor","markers","replaceAll","enableCommand","suggestion:deletion","TrackChangesEditing","getMarkersGroup","_isInDeletionRange"];var cr,lr;cr=ar,lr=224,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x2")](){if(!this[dr("0xa")].plugins[dr("0x4")]("FindAndReplaceEditing"))return;const t=this[dr("0xa")].plugins[dr("0x0")](dr("0xf"));t[dr("0xd")]("find",this[dr("0x6")][dr("0x9")](this)),t[dr("0xd")]("findNext"),t[dr("0xd")](dr("0x8")),t[dr("0xd")]("replace"),t[dr("0xd")](dr("0xc"))}[dr("0x6")](t,e,n={}){const o=this.editor.plugins.get("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x7")==typeof e?o[dr("0x3")](e,n):e)(t).filter((e=>!1===this[dr("0x11")](e,t[dr("0x5")])))),n)}_isInDeletionRange(t,e){const n=this.editor[dr("0x12")][dr("0x13")](this[dr("0xa")][dr("0x12")].createPositionAt(e,t.start),this[dr("0xa")][dr("0x12")][dr("0x14")](e,t[dr("0x15")]));for(const t of this[dr("0xa")].model[dr("0xb")][dr("0x10")](dr("0xe")))if(null!==n[dr("0x1")](t.getRange()))return!0;return!1}}const gr=["value","commandParams","fontColor","*Set font background color:* %0","markInlineFormat","plugins","model","*Reset font family*","toLowerCase","get","title","commandName","FontBackgroundColorEditing","editor","config","enableCommand","*Set font color:* %0","*Set font size:* %0","normalizeSizeOptions","FontSizeEditing","fontBackgroundColor","*Reset font background color*","FontFamilyEditing","fontSize.options","*Reset font size*","trim","TrackChangesEditing","from","fontFamily","*Set font family:* %0","has","fontSize","afterInit","*Reset font color*","_enableCommand","format","FontSize","find"];var mr,fr;mr=gr,fr=434,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x3"),commandName:hr("0xf")},{pluginName:hr("0x6"),commandName:hr("0xc")},{pluginName:"FontColorEditing",commandName:hr("0x18")},{pluginName:hr("0x22"),commandName:hr("0x4")}];class br extends t.Plugin{[hr("0x10")](){const t=this[hr("0x23")].locale;for(const{pluginName:t,commandName:e}of pr)this.editor[hr("0x1b")][hr("0xe")](t)&&this[hr("0x12")](e);this[hr("0x23")][hr("0x1b")][hr("0x1f")](hr("0xa"))._descriptionFactory.registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xf")==o[hr("0x21")]){const e=o.commandParams[0].value;if(e){const o=n(this[hr("0x23")][hr("0x1b")][hr("0x1f")](hr("0x14"))[hr("0x2")](this[hr("0x23")].config[hr("0x1f")](hr("0x7"))).find((t=>t[hr("0x1c")]==e))[hr("0x20")])[hr("0x1e")]();return{type:hr("0x13"),content:Yo(t,hr("0x1"),o)}}return{type:hr("0x13"),content:Yo(t,hr("0x8"))}}if(hr("0xc")==o[hr("0x21")]){const e=o[hr("0x17")][0][hr("0x16")];return e?{type:hr("0x13"),content:Yo(t,hr("0xd"),e)}:{type:hr("0x13"),content:Yo(t,hr("0x1d"))}}if(hr("0x18")==o.commandName){const e=o[hr("0x17")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x23")][hr("0x24")][hr("0x1f")]("fontColor.colors"))[hr("0x15")]((t=>t[hr("0x1c")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x1e")]()),{type:hr("0x13"),content:Yo(t,hr("0x0"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x13"),content:Yo(t,hr("0x11"))}}if("fontBackgroundColor"==o[hr("0x21")]){const e=o[hr("0x17")][0][hr("0x16")];if(e){const o=(0,s.normalizeColorOptions)(this.editor.config[hr("0x1f")]("fontBackgroundColor.colors"))[hr("0x15")]((t=>t[hr("0x1c")]==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:hr("0x13"),content:Yo(t,hr("0x19"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0x13"),content:Yo(t,hr("0x5"))}}}}))}[hr("0x12")](t){const e=this[hr("0x23")];e[hr("0x1b")][hr("0x1f")](hr("0xa"))[hr("0x25")](t,((n,o={})=>{const s=e[hr("0x1c")].document.selection,r=o.value;s.isCollapsed?n(o):e[hr("0x1c")].change((()=>{const n=Array[hr("0xb")](s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x1c")]);for(const o of n)e[hr("0x1b")][hr("0x1f")](hr("0xa"))[hr("0x1a")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["selection","word","markInlineFormat","getAttributeProperties","normalizeSizeOptions","fontColor.colors","getAttributes","copyFormat","toLowerCase","_descriptionFactory","forward","plugins","getLastPosition","label","commands","commandParams","locale","TrackChangesEditing","from","format","modifySelection","enableCommand","split","afterInit","title","getFirstPosition","find","fontSize.options","fontBackgroundColor","schema","fontSize","getSelectedBlocks","slice","getItems","pasteFormat","get","isBlock","document","boolean","createRange","model","getRanges","editor","push","backward","registerDescriptionCallback","createSelection","charAt","length"];var _r,Tr;_r=Er,Tr=353,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0xd")](){const t=this[Cr("0x20")],n=t[Cr("0x1e")],o=n[Cr("0x1b")][Cr("0x27")],s=t[Cr("0x1")][Cr("0x19")](Cr("0x7")),r=t.locale,i=t.commands[Cr("0x19")](Cr("0x2e")),x=t[Cr("0x4")][Cr("0x19")](Cr("0x18"));i&&x&&(s[Cr("0xb")](Cr("0x18"),((t,r={})=>{const i=r;n.change((()=>{const t=Array[Cr("0x8")](o[Cr("0x1f")]()),r=o.isCollapsed?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x2d")]()){const t=e[Cr("0x2a")](n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Cr("0x1f")]())for(const t of e[Cr("0x17")]())!n[Cr("0x1a")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x15")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x13")]))||0!==Object.keys(i)[Cr("0x26")])for(const t of r)s[Cr("0x29")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x30")][Cr("0x23")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Cr("0x5")][0];for(const[n,s]of Object.entries(o))e[Cr("0x21")](Ar(t,n,s));return e[Cr("0x26")]?{type:"format",content:Yo(r,"*Set format to:* %0",e.join(", "))}:{type:Cr("0x9"),content:Yo(r,"*Remove all formatting*")}}})),t[Cr("0x1")][Cr("0x19")](Cr("0x7"))[Cr("0xb")](Cr("0x2e")))}}function kr(t,e){const n=t[Cr("0x24")](e);t[Cr("0xa")](n,{unit:Cr("0x28"),direction:Cr("0x22")});const o=n[Cr("0xf")]();t.modifySelection(n,{unit:Cr("0x28"),direction:Cr("0x0")});const s=n[Cr("0x2")]();return t[Cr("0x1d")](o,s)}function Ar(t,e,n){const o=t[Cr("0x6")].t,r=e[Cr("0xc")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0x25")](0).toUpperCase()+r[Cr("0x16")](1))[Cr("0x2f")]();if(Cr("0x1c")==typeof n)return i;if("fontColor"===e||Cr("0x12")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x19")](Cr("0x2c")))[Cr("0x10")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x3")])[Cr("0x2f")]():n)+")"}if(Cr("0x14")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x1")].get("FontSize")[Cr("0x2b")](t.config.get(Cr("0x11")))[Cr("0x10")]((t=>t[Cr("0x1e")]==n));return i+" ("+(e?o(e[Cr("0xe")])[Cr("0x2f")]():n)+")"}return i+" ("+n+")"}const vr=["config","markBlockFormat","isObject","formatBlock","editor","TrackChangesEditing","value","checkChild","name","title","parent","find","filter","change","commandName","_descriptionFactory","format","schema","has","model","heading.options","from","plugins","blockName","enableCommand","*Change to:* %0","locale","match","ELEMENT_HEADING_CUSTOM","document","HeadingEditing","getSelectedBlocks","heading","get","registerDescriptionCallback","afterInit","paragraph","selection"];var Rr,Sr;Rr=vr,Sr=460,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x1f")](){const t=this[Ir("0x0")],e=t[Ir("0x16")],n=t[Ir("0x22")][Ir("0x1d")](Ir("0x10"));if(!t[Ir("0x12")][Ir("0xe")](Ir("0x1a")))return;const o=t[Ir("0x12")][Ir("0x1d")](Ir("0x1"));o[Ir("0x14")]("heading",((e,n)=>{const s=n[Ir("0x2")],r=Array[Ir("0x11")](this[Ir("0x0")][Ir("0xf")][Ir("0x19")][Ir("0x21")][Ir("0x1b")]())[Ir("0x8")]((t=>{return e=t,n=s,(o=this[Ir("0x0")].model[Ir("0xd")])[Ir("0x3")](e[Ir("0x6")],n)&&!o[Ir("0x24")](e)&&e[Ir("0x4")]!=n;var e,n,o}));t[Ir("0xf")][Ir("0x9")]((()=>{for(const t of r)o[Ir("0x23")](t,{commandName:Ir("0x1c"),commandParams:[n],formatGroupId:Ir("0x13")},fs(t))}))}));for(const t of n)Ir("0x20")!=t[Ir("0xf")]&&o[Ir("0xb")].registerElementLabel(t[Ir("0xf")],(e=>{const n=Nr(t[Ir("0xf")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,Ir("0x18"),[t,n])}o[Ir("0xb")][Ir("0x1e")]((t=>{const{type:o,data:i}=t;if(Ir("0x25")==o&&i&&Ir("0x1c")==i[Ir("0xa")]){const t=i.commandParams[0][Ir("0x2")],o=Nr(t);if(null!==o)return{type:Ir("0xc"),content:Yo(e,Ir("0x15"),s(1,o))};const x=n[Ir("0x7")]((e=>e[Ir("0xf")]===t))[Ir("0x5")];return{type:Ir("0xc"),content:Yo(e,Ir("0x15"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x17")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["value","commandName","FORMAT_HIGHLIGHT","change","*Set highlight:* %0","highlight","getRanges","backward","document","get","markInlineFormat","afterInit","find","format","model","hasAttribute","HighlightEditing","isCollapsed","_descriptionFactory","getFirstPosition","plugins","title","locale","commandParams","enableCommand","createRange","toLowerCase","item","push","editor","TrackChangesEditing","has","selection"];var wr,Or;wr=Mr,Or=450,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{[Fr("0x17")](){const t=this[Fr("0x8")];if(!t[Fr("0x20")][Fr("0xa")](Fr("0x1c")))return;const e=t[Fr("0x20")][Fr("0x15")](Fr("0x9"));e[Fr("0x3")]("highlight",((n,o={})=>{const s=t[Fr("0x1a")][Fr("0x14")][Fr("0xb")],r=s.getAttribute(Fr("0x11"));let i=o[Fr("0xc")],x=[];if(s[Fr("0x1d")]){const e=s[Fr("0x1f")]();if(!s[Fr("0x1b")](Fr("0x11")))return void n(o);{const n=t=>t[Fr("0x6")].getAttribute(Fr("0x11"))===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x13")}),s=e.getLastMatchingPosition(n);x=[t.model[Fr("0x4")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x12")]())i?x[Fr("0x7")](e):x[Fr("0x7")](...ms(Fr("0x11"),e,t[Fr("0x1a")]));t.model[Fr("0xf")]((()=>{for(const t of x)e[Fr("0x16")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x1")];e[Fr("0x1e")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Fr("0x11")==s[Fr("0xd")]){const e=n.t,o=s[Fr("0x2")][0].value;if(o){const s=t.config[Fr("0x15")]("highlight.options")[Fr("0x18")]((t=>t.model==o)),r=e(s[Fr("0x0")])[Fr("0x5")]();return{type:Fr("0x19"),content:Yo(n,Fr("0x10"),r),color:{value:s.color,title:s[Fr("0x0")]}}}return{type:Fr("0x19"),content:Yo(n,"*Remove highlight*",Yo(n,Fr("0xe")))}}}))}}const Pr=["conversion","get","_descriptionFactory","createEmptyElement","horizontalLine","registerElementLabel","createPositionAt","enableCommand","TrackChangesEditing","dataDowncast","addClass","showSuggestionHighlights","has","editor","ELEMENT_HORIZONTAL_LINE","elementToStructure","plugins","insert","locale","for","ck-horizontal-line","createContainerElement","high"];var Br,jr;Br=Pr,jr=110,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Pr[t-=0]};class Gr extends t.Plugin{afterInit(){const t=this[Ur("0x12")];if(!t.plugins[Ur("0x11")]("HorizontalLineEditing"))return;t[Ur("0x15")][Ur("0x6")](Ur("0xd"))[Ur("0xc")](Ur("0x9"));const e=t[Ur("0x15")].get(Ur("0xd")),n=t[Ur("0x0")];e[Ur("0x7")][Ur("0xa")](Ur("0x9"),(t=>Yo(n,Ur("0x13"),t))),t[Ur("0x5")][Ur("0x1")](Ur("0xe"))[Ur("0x14")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x10")])return null;const o=e[Ur("0x3")]("div"),s=e[Ur("0x8")]("hr");return e[Ur("0xf")](Ur("0x2"),o),e[Ur("0x16")](e[Ur("0xb")](o,0),s),o},converterPriority:Ur("0x4")})}}const Hr=["element","rawHtml","getSelectedElement","document","getAttribute","HtmlEmbed","ELEMENT_HTML_EMBED","registerDescriptionCallback","value","TrackChangesEditing","plugins","afterInit","editing","commandName","view","htmlEmbed","change","_descriptionFactory","format","has","getCustomProperty","*Change %0 content*","get","locale","cancel","selection"];var Wr,zr;Wr=Hr,zr=380,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x15")](){const t=this.editor;if(!t[Vr("0x14")][Vr("0x3")](Vr("0xf")))return;const e=t[Vr("0x14")][Vr("0x6")]("TrackChangesEditing"),n=t[Vr("0x7")],o=t[Vr("0x16")][Vr("0x18")].document.selection;e[Vr("0x1")].registerElementLabel(Vr("0xb"),(t=>Yo(n,Vr("0x10"),t))),t.plugins[Vr("0x6")](Vr("0x13")).enableCommand(Vr("0x19"),((n,s)=>{const r=t.model,i=r[Vr("0xd")][Vr("0x9")];r[Vr("0x0")]((()=>{const t=function(t){const e=t[Vr("0xc")]();return e&&e.is(Vr("0xa"),Vr("0xb"))?t[Vr("0xc")]():null}(i);if(!t)return void n(null);const r=t[Vr("0xe")](Vr("0x12"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x19"),commandParams:[s]}),o[Vr("0xc")]()[Vr("0x4")]("rawHtmlApi")[Vr("0x8")]())}))})),e[Vr("0x1")][Vr("0x11")]((t=>{const{data:e}=t;if(e&&Vr("0x19")==e[Vr("0x17")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x2"),content:Yo(n,Vr("0x5"),t)}}}))}}const qr=["author","commands","nodeBefore","registerDescriptionCallback","discard","chain","imageInline","name","isBefore","toLowerCase","end","_descriptionFactory","nodeAfter","normalizedStyles","caption","head","markInlineFormat","imageCaption","selection","registerElementLabel","getCaptionFromImageModelElement","element","getFirstRange","document","get","TrackChangesEditing","has","FORMAT_SIDE_IMAGE","createRange","toNext","imageBlock","convertInlineImageToBlock","differ","ImageCaptionEditing","isBlockImage","newValue","fromPosition","registerPostFixer","filter","width","getSuggestion","forward","ImageTextAlternativeEditing","ImageStyleEditing","Users","_findSuggestions","imageTextAlternative","ImageInlineEditing","subType","change","imageTypeInline","isIntersecting","_splitMarkerName","side","imageStyle","convertBlockImageToInline","editor","join","refresh","plugins","Inline image to block image","imageStylePreApply","format","from","getChangedMarkers","getNearestSelectionRange","value","newRange","getSuggestions","createRangeOn","ImageBlockEditing","isInContent","accept","*Set image width:* %0","model","schema","forceDefaultExecution","toggleImageCaption","uploadImage","insertion","commandName","ELEMENT_CAPTION","registerCustomCallback","_suggestionFactory","isEqual","ImageCaptionUtils","shouldConvertImageType","getContainedElement","getClosestSelectedImageElement","title","getAttribute","toPrevious","alt","isCollapsed","addObject","commandParams","length","type","detach","enableCommand","resizeImage","next","hasSuggestion","start","getSuggestionCallback","imageStylePostApply","findIndex","formatInline","discardSuggestion","previous","locale","markBlockFormat","ImageUtils","markInsertion","imageTypeBlock","formatBlock"];var Xr,$r;Xr=qr,$r=118,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x36")];if(!t[Jr("0x39")][Jr("0x18")]("ImageEditing"))return;const n=t[Jr("0x39")][Jr("0x16")](Jr("0x17")),o=t.plugins[Jr("0x16")](Jr("0x6e")),s={},r=t[Jr("0x6c")];if(n.enableCommand("insertImage"),n[Jr("0x9")][Jr("0x11")](Jr("0x1c"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n._descriptionFactory[Jr("0x11")](Jr("0x4"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x9")][Jr("0x11")](Jr("0xc"),(()=>Yo(r,Jr("0x4f")))),t.plugins[Jr("0x18")]("ImageUploadEditing")&&n[Jr("0x61")](Jr("0x4c")),t.plugins[Jr("0x18")](Jr("0x44"))&&t[Jr("0x39")][Jr("0x18")](Jr("0x2d"))&&(n[Jr("0x61")]("imageTypeInline",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x48")].document.selection);t.model[Jr("0x2f")]((()=>{n[Jr("0x6d")](r,{commandName:Jr("0x30"),commandParams:[s]},[],Jr("0x35"))}))})),n[Jr("0x61")]("imageTypeBlock",((e,s)=>{t[Jr("0x48")].change((r=>{let x=o[Jr("0x56")](t[Jr("0x48")][Jr("0x15")][Jr("0x10")]),a=r[Jr("0x43")](x);const c=i.LivePosition[Jr("0x22")](a.start,Jr("0x59")),l=i.LivePosition[Jr("0x22")](a[Jr("0x8")],Jr("0x1b"));n[Jr("0x4a")]((()=>e(s))),x=o.getClosestSelectedImageElement(t[Jr("0x48")][Jr("0x15")][Jr("0x10")]),a=r[Jr("0x43")](x);const d=r[Jr("0x1a")](c,l);c[Jr("0x60")](),l[Jr("0x60")](),n[Jr("0x6d")](x,{commandName:Jr("0x30"),commandParams:[]},[],Jr("0x1d")),d[Jr("0x65")][Jr("0x6")](a.start)&&n[Jr("0x6f")](r[Jr("0x1a")](d[Jr("0x65")],a[Jr("0x65")]),Jr("0x1d")),a[Jr("0x8")][Jr("0x6")](d[Jr("0x8")])&&n.markInsertion(r[Jr("0x1a")](a.end,d[Jr("0x8")]),Jr("0x1d"))}))})),n[Jr("0x51")][Jr("0x50")]("formatBlock",Jr("0x1d"),Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x50")](Jr("0x71"),Jr("0x1d"),"accept",(()=>{})),n._suggestionFactory[Jr("0x50")](Jr("0x71"),Jr("0x1d"),"discard",n._suggestionFactory[Jr("0x66")]("formatBlock","",Jr("0x46"))),n[Jr("0x51")][Jr("0x50")](Jr("0x4d"),Jr("0x1d"),Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x50")]("insertion",Jr("0x1d"),"discard",(([e])=>{const o=n._suggestionFactory.getSuggestionCallback(Jr("0x4d"),"",Jr("0x2"));let s=e.start,r=e[Jr("0x8")];const i=t[Jr("0x48")].schema[Jr("0x3f")](s,"backward"),x=t[Jr("0x48")][Jr("0x49")][Jr("0x3f")](r,Jr("0x27"));i[Jr("0x5b")]&&(s=i[Jr("0x65")]),x[Jr("0x5b")]&&(r=x[Jr("0x8")]),o([t[Jr("0x48")][Jr("0x1a")](s,r)])})),n[Jr("0x51")][Jr("0x50")](Jr("0x71"),Jr("0x1d"),"chain",c),n[Jr("0x51")].registerCustomCallback(Jr("0x4d"),Jr("0x1d"),Jr("0x3"),c)),t[Jr("0x39")].has(Jr("0x1f"))&&(n[Jr("0x61")](Jr("0x4b"),((e,s)=>{const r=t.plugins[Jr("0x16")](Jr("0x53"));let i=o.getClosestSelectedImageElement(t[Jr("0x48")].document[Jr("0x10")]),x=r[Jr("0x12")](i);t.model[Jr("0x2f")]((()=>{if(x)return void n.markDeletion(t.model[Jr("0x43")](x));const a=o[Jr("0x20")](i);e(s),i=o.getClosestSelectedImageElement(t[Jr("0x48")][Jr("0x15")][Jr("0x10")]),x=r[Jr("0x12")](i),n[Jr("0x6f")](t[Jr("0x48")].createRangeOn(x),a?null:Jr("0xf"))}))})),n._suggestionFactory[Jr("0x50")](Jr("0x4d"),Jr("0xf"),"chain",c)),t.plugins.has("ImageStyleEditing")){n[Jr("0x61")]("imageStyle",((s,r)=>{const i=t[Jr("0x39")][Jr("0x16")](Jr("0x2a")).me,x=t[Jr("0x73")][Jr("0x16")](Jr("0x34"));let a=o[Jr("0x56")](t[Jr("0x48")][Jr("0x15")][Jr("0x10")]),c=t[Jr("0x48")][Jr("0x43")](a),l=x[Jr("0x40")];if(l==r[Jr("0x40")])return;const d={commandName:Jr("0x34"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x2f")]((()=>{if(n[Jr("0x42")]()[Jr("0x24")]((t=>t.isInContent&&i==t[Jr("0x72")]&&("formatBlock"==t[Jr("0x5f")]||Jr("0x69")==t.type)&&(Jr("0x3b")==t.subType||Jr("0x67")==t[Jr("0x2e")])&&t[Jr("0x14")]().isEqual(c))).forEach((t=>n[Jr("0x6a")](t[Jr("0xd")]))),a=o[Jr("0x56")](t[Jr("0x48")].document[Jr("0x10")]),c=t.model[Jr("0x43")](a),x[Jr("0x38")](),t[Jr("0x73")][Jr("0x16")]("imageTypeInline")[Jr("0x38")](),t.commands[Jr("0x16")](Jr("0x70"))[Jr("0x38")](),l=x.value,l!=r[Jr("0x40")])return o.isInlineImage(a)&&x[Jr("0x54")](r[Jr("0x40")],a)?(s(r),a=o[Jr("0x56")](t[Jr("0x48")].document[Jr("0x10")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x3b"))):void(o[Jr("0x20")](a)?n.markBlockFormat(a,d,[],Jr("0x67")):n[Jr("0xe")](c,d,"imageStylePostApply"))}))}));for(const e of t[Jr("0x39")][Jr("0x16")](Jr("0x29"))[Jr("0xb")])s[e[Jr("0x5")]]=e[Jr("0x57")][Jr("0x7")]();n[Jr("0x51")][Jr("0x50")](Jr("0x71"),Jr("0x3b"),Jr("0x37"),(()=>{})),n[Jr("0x51")][Jr("0x50")](Jr("0x71"),Jr("0x67"),Jr("0x37"),(()=>{})),n[Jr("0x51")][Jr("0x50")](Jr("0x69"),Jr("0x67"),"join",(()=>{})),n[Jr("0x51")][Jr("0x50")]("formatBlock",Jr("0x3b"),"accept",(()=>{})),n._suggestionFactory[Jr("0x50")](Jr("0x71"),Jr("0x3b"),Jr("0x2"),((t,e)=>{n[Jr("0x51")][Jr("0x66")](Jr("0x71"),"",Jr("0x46"))(t,{commandName:e[Jr("0x4e")],commandParams:e.commandReversedParams})})),n[Jr("0x51")][Jr("0x50")](Jr("0x71"),Jr("0x3b"),"chain",c)}const x=[{type:Jr("0x71"),subType:Jr("0x3b")},{type:Jr("0x4d"),subType:Jr("0xf")},{type:Jr("0x71"),subType:"convertInlineImageToBlock"},{type:"insertion",subType:Jr("0x1d")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[Jr("0x5f")]==e&&t[Jr("0x2e")]==n)),r=x[Jr("0x68")]((({type:t,subType:n})=>e[Jr("0x5f")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[Jr("0x14")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Jr("0x31")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x2b")](i,Jr("0x4d")).filter((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x1d")==t[Jr("0x2e")]));if(t[Jr("0x5e")]>1&&a[Jr("0x8")][Jr("0x52")](i[Jr("0x65")]))return!0;if(1==t[Jr("0x5e")]&&(i.start[Jr("0x52")](a[Jr("0x8")])||i[Jr("0x8")][Jr("0x52")](a[Jr("0x65")])))return!0}if(3==s&&3==r&&i.start[Jr("0x6")](a[Jr("0x65")])){const t=i[Jr("0x8")][Jr("0xa")],e=a[Jr("0x65")][Jr("0x0")];return o[Jr("0x20")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x48")][Jr("0x15")][Jr("0x23")]((()=>{let e=!1;const s=Array[Jr("0x3d")](t[Jr("0x48")].document[Jr("0x1e")][Jr("0x3e")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x32")](t);if("suggestion"==s&&n[Jr("0x64")](a)){if(Jr("0x71")==i&&(Jr("0x3b")==x||Jr("0x67")==x)){const t=n[Jr("0x26")](a);if(r[Jr("0x41")]){const s=t[Jr("0x14")]()[Jr("0x55")]();if(o.isBlockImage(s))continue;n[Jr("0x6a")](t),e=!0}}if(Jr("0x4d")==i&&Jr("0xf")==x&&!r[Jr("0x41")]){const t=n[Jr("0x26")](a);t[Jr("0x63")]&&t[Jr("0x63")][Jr("0x45")]&&(n[Jr("0x6a")](t[Jr("0x63")]),e=!0)}}}return e})),t[Jr("0x39")][Jr("0x18")]("ImageResize")&&n[Jr("0x61")](Jr("0x62"),((e,s)=>{const r=o[Jr("0x56")](t[Jr("0x48")][Jr("0x15")][Jr("0x10")]);r[Jr("0x58")](Jr("0x25"))!=s[Jr("0x25")]&&t[Jr("0x48")][Jr("0x2f")]((()=>{n[Jr("0x6d")](r,{commandName:Jr("0x62"),commandParams:[s]})}))})),t[Jr("0x39")][Jr("0x18")](Jr("0x28"))&&n[Jr("0x61")](Jr("0x2c"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x48")][Jr("0x15")].selection);(r.hasAttribute("alt")?r[Jr("0x58")](Jr("0x5a")):"")!=s[Jr("0x21")]&&t[Jr("0x48")][Jr("0x2f")]((()=>{n[Jr("0x6d")](r,{commandName:Jr("0x2c"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x1")]((t=>{if(x.find((({type:e,subType:n})=>t.type==e&&t[Jr("0x2e")]==n)))return t[Jr("0x6b")]?{}:void 0})),n[Jr("0x9")][Jr("0x1")]((t=>{if(Jr("0x4d")==t.type||"deletion"==t[Jr("0x5f")]){const e=t[Jr("0x55")]();if(e&&e.is(Jr("0x13"),Jr("0xc")))return{type:"insertion"==t[Jr("0x5f")]?Jr("0x5c"):"removeObject",element:e,quantity:1}}})),n._descriptionFactory[Jr("0x1")]((t=>"formatBlock"==t[Jr("0x5f")]&&"convertInlineImageToBlock"==t[Jr("0x2e")]?{type:Jr("0x3c"),content:Jr("0x3a")}:Jr("0x71")==t[Jr("0x5f")]&&Jr("0x35")==t[Jr("0x2e")]?{type:Jr("0x3c"),content:"Block image to inline image"}:void 0)),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Jr("0x34")==e[Jr("0x4e")]){const t=e[Jr("0x5d")][0][Jr("0x40")];return n=Jr("0x33")===t?Yo(r,Jr("0x19")):s[t]||t,{type:Jr("0x3c"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x2c")==e[Jr("0x4e")]){const t=e.commandParams[0][Jr("0x21")];return t?{type:Jr("0x3c"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x3c"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x62")==e[Jr("0x4e")]){const t=e[Jr("0x5d")][0].width;return t?{type:Jr("0x3c"),content:Yo(r,Jr("0x47"),t)}:{type:Jr("0x3c"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["locale","getAttribute","handleReplaceImageCommand","document","replaceImageSource","subType","discard","model","_suggestionFactory","markBlockFormat","handleSuggestionDescription","Users","get","ImageEditing","accept","getContainedElement","editor","change","*Format:* replace image URL","selection","has","commandName","getSelectedElement","plugins","_descriptionFactory","registerDescriptionCallback","TrackChangesEditing","registerCustomCallback","formatBlock","format","getSuggestionCallback","enableCommand"];var Yr,ti;Yr=Zr,ti=469,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x1b")][ei("0x2")][ei("0x1f")](ei("0x18")))return;const t=this[ei("0x1b")][ei("0x2")][ei("0x17")](ei("0x5"));t[ei("0xa")]("replaceImageSource",((t,e)=>this[ei("0xd")](t,e))),t._suggestionFactory[ei("0x6")](ei("0x7"),ei("0xf"),ei("0x19"),t[ei("0x13")][ei("0x9")](ei("0x7"),null,ei("0x11"))),t[ei("0x13")][ei("0x6")](ei("0x7"),ei("0xf"),ei("0x11"),t[ei("0x13")][ei("0x9")](ei("0x7"),null,ei("0x19"))),t[ei("0x3")][ei("0x4")]((t=>this[ei("0x15")](t)))}[ei("0xd")](t,e){const n=this[ei("0x1b")][ei("0x2")][ei("0x17")]("TrackChangesEditing"),o=this[ei("0x1b")].model[ei("0xe")][ei("0x1e")][ei("0x1")]();this[ei("0x1b")][ei("0x12")][ei("0x1c")]((()=>{let s=o[ei("0xc")]("src");const r=this[ei("0x1b")][ei("0x2")][ei("0x17")](ei("0x16")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ei("0x1a")]();if(ei("0xf")===t[ei("0x10")]&&e===o){t.author!==r&&t[ei("0x11")](),s=t.data.commandParams[0].source;break}}t(e),n[ei("0x14")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0x15")](t){const{data:e}=t;if(e&&ei("0xf")===e[ei("0x0")]){const t=ei("0x1d");return{type:ei("0x8"),content:Yo(this[ei("0x1b")][ei("0xb")],t)}}}}const oi=["_trackChangesValueDuringImport","enableCommand","dataInsert","plugins","execute","editor","TrackChangesEditing","track_changes","trackChanges","bind","importWord","collaboration_features","Users","value","listenTo","lowest","_trackChangesExecuted","_handleImportedData","get","afterInit","commands"];var si,ri;si=oi,ri=433,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}[ii("0x6")](){const t=this[ii("0xd")],e=t[ii("0x7")][ii("0x5")]("importWord"),n=t.commands.get(ii("0x10"));e&&(e.on(ii("0xc"),((t,[,e])=>{this[ii("0x8")]=n[ii("0x0")],e[ii("0x13")][ii("0xf")]=!this[ii("0x8")]}),{priority:"high"}),this.listenTo(e,ii("0xa"),this[ii("0x4")][ii("0x11")](this)),this[ii("0x1")](e,"dataInsert",(()=>{this[ii("0x3")]&&(n[ii("0xc")](),this._trackChangesExecuted=!1)}),{priority:ii("0x2")}),t[ii("0xb")][ii("0x5")](ii("0xe"))[ii("0x9")](ii("0x12")))}[ii("0x4")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x7")][ii("0x5")](ii("0x10")),s=o[ii("0x0")];this[ii("0x8")]!==s&&(o.execute(),this[ii("0x3")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xd")][ii("0xb")][ii("0x5")](ii("0x14")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x12")}}};this.editor[ii("0xb")].get(ii("0xe"))._setSuggestionData(s)}))}}const ai=["from","format","TrackChangesEditing","afterInit","registerDescriptionCallback","filter","commandName","document","model","indentBlock","plugins","getItemLabel","markBlockFormat","enableCommand","get","locale","getSelectedBlocks","indent","editor","blockIndent","checkAttribute","schema","_descriptionFactory","has","change","outdent","*Outdent:* %0","*Indent:* %0","outdentBlock","IndentBlock"];var ci,li;ci=ai,li=284,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x13")](){const t=this.editor,e=t[di("0x1a")][di("0x0")](di("0x12"));t.plugins[di("0x9")]("IndentEditing")&&(e[di("0x1d")](di("0x3")),e[di("0x1d")](di("0xb")));const n=t[di("0x1")];if(t.plugins.has(di("0xf"))){for(const n of["indentBlock",di("0xe")])e[di("0x1d")](n,(()=>{const o=Array[di("0x10")](this[di("0x4")][di("0x18")][di("0x17")].selection[di("0x2")]())[di("0x15")]((t=>this.editor[di("0x18")][di("0x7")][di("0x6")](t,di("0x5"))));t[di("0x18")][di("0xa")]((()=>{for(const t of o)e[di("0x1c")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e._descriptionFactory[di("0x14")]((t=>{const{data:o}=t;if(!o)return;if(di("0x19")!=o[di("0x16")]&&di("0xe")!=o[di("0x16")])return;const s=t.getItems()[0],r=e[di("0x8")][di("0x1b")](s);return"indentBlock"==o[di("0x16")]?{type:di("0x11"),content:Yo(n,di("0xd"),r)}:"outdentBlock"==o[di("0x16")]?{type:"format",content:Yo(n,di("0xc"),r)}:void 0}))}}}var gi,mi,fi=["TrackChangesEditing","init","editor","enableCommand","input"];gi=fi,mi=469,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get requires(){return[Vs.Input]}[hi("0x2")](){this[hi("0x3")].plugins.get(hi("0x1"))[hi("0x4")](hi("0x0"))}}const bi=["document","link","afterInit","format","TrackChangesEditing","commandParams","isCollapsed","plugins","model","change","registerDescriptionCallback","commandName","getAttribute","getFirstRange","from","has","*Remove link*","editor","_descriptionFactory","locale","unlink","linkHref","markInlineFormat","get","getFirstPosition","LinkEditing"];var Ei,_i;Ei=bi,_i=435,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x9")](){const t=this[Ti("0x18")];if(!t[Ti("0xe")][Ti("0x16")](Ti("0x6")))return;const e=t.plugins[Ti("0x4")](Ti("0xb"));e.enableCommand(Ti("0x8"),((n,o)=>{const s=t[Ti("0xf")][Ti("0x7")].selection;let r=[];if(s[Ti("0xd")]){if(!s.hasAttribute("linkHref"))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x5")](),Ti("0x2"),s[Ti("0x13")]("linkHref"),t.model);r=[e]}}else r=Array[Ti("0x15")](s.getRanges());t.model.change((()=>{for(const t of r)e[Ti("0x3")](t,{commandName:Ti("0x8"),commandParams:[o]})}))})),e.enableCommand(Ti("0x1"),(()=>{const n=this[Ti("0x18")][Ti("0xf")],o=n[Ti("0x7")].selection;n[Ti("0x10")]((()=>{let n=[];n=o[Ti("0xd")]?[(0,Vs.findAttributeRange)(o[Ti("0x5")](),Ti("0x2"),o.getAttribute(Ti("0x2")),t[Ti("0xf")])]:ms("linkHref",o[Ti("0x14")](),t[Ti("0xf")]);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x1"),commandParams:[]})}))})),e[Ti("0x19")][Ti("0x11")]((e=>{const{data:n}=e,o=t[Ti("0x0")];if(n){if(Ti("0x8")==n[Ti("0x12")]){const t=n[Ti("0xc")][0];return{type:Ti("0xa"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x1")==n[Ti("0x12")]?{type:Ti("0xa"),content:Yo(o,Ti("0x17"))}:void 0}}))}}const yi=["findIndex","parent","ELEMENT_NUMBERED_LIST","change","value","slice","element","has","bulletedList","*Change to:* %0","_descriptionFactory","nextSibling","checkTodoList","add","format","plugins","forceValue","from","listType","markBlockFormat","getSelectedBlocks","afterInit","listItem","editor","commandParams","filter","push","listIndent","_selectedElements","outdentList","createPositionAt","ListEditing","document","model","createRange","paragraph","*Indent:* %0","todoList","indentList","previousSibling","*Check item*","registerDescriptionCallback","getAttribute","bulleted","name","numberedList","blockName","get","*Outdent:* %0","execute","todoListChecked","*Uncheck item*","TodoListEditing","todo","checkChild","enableCommand","commands","locale","commandName","schema","selection","length","ELEMENT_TODO_LIST","ELEMENT_LIST_ITEM"];var ki,Ai;ki=yi,Ai=474,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x3b")](){const t=this[vi("0x3d")],e=t[vi("0x1f")];if(!t[vi("0x35")][vi("0x2d")](vi("0x5")))return;const n=t[vi("0x35")][vi("0x15")]("TrackChangesEditing"),o=t.plugins[vi("0x2d")](vi("0x1a"));function s(e){return()=>{const o=t.model[vi("0x6")][vi("0x22")],s=t[vi("0x1e")][vi("0x15")](e);if(s[vi("0x2a")])return void t[vi("0x17")](vi("0x9"),{});const r=e[vi("0x2b")](0,-4),i=function(t,e,n){let o=Array.from(t)[vi("0x3f")]((t=>{return e=t,(o=n)[vi("0x1c")](e[vi("0x27")],"listItem")&&!o.isObject(e);var e,o}));o=o[vi("0x3f")]((t=>!t.is(vi("0x2c"),vi("0x3c"))||t.getAttribute(vi("0x38"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2c"),vi("0x3c"))?s.add(Si(t)):s[vi("0x33")](t);return Array[vi("0x37")](s)}(o[vi("0x3a")](),r,t[vi("0x7")][vi("0x21")]);t[vi("0x7")].change((()=>{for(const t of i)n[vi("0x39")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x2a")]}],formatGroupId:vi("0x14")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x37")](t);const n=e[vi("0x26")]((t=>vi("0x3c")!=t[vi("0x12")]));return n>-1&&(e=e[vi("0x2b")](0,n)),e}(t.model[vi("0x6")][vi("0x22")][vi("0x3a")]()),s=t[vi("0x7")][vi("0x8")](t[vi("0x7")][vi("0x4")](o[0],"before"),t[vi("0x7")][vi("0x4")](o[o[vi("0x23")]-1],"end"));t[vi("0x7")].change((()=>{n[vi("0x39")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x1")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[vi("0x10")](vi("0x1"))>n[vi("0x10")](vi("0x1"));)e[vi("0x33")](t),t=t[vi("0x31")]}return Array[vi("0x37")](e)}(o))}))}}n[vi("0x1d")](vi("0x13"),s(vi("0x13"))),n[vi("0x1d")](vi("0x2e"),s(vi("0x2e"))),o&&n[vi("0x1d")](vi("0xb"),s(vi("0xb"))),n[vi("0x1d")](vi("0xc"),r(vi("0xc"))),n[vi("0x1d")](vi("0x3"),r(vi("0x3"))),o&&n[vi("0x1d")](vi("0x32"),(()=>{const e=t.commands[vi("0x15")](vi("0x32")),o=Array[vi("0x37")](e[vi("0x2")]);o[vi("0x3f")]((t=>t[vi("0x10")](vi("0x18"))!=e.value)),t[vi("0x7")][vi("0x29")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x32"),commandParams:[{forceValue:!e[vi("0x2a")]}]})}))})),n._descriptionFactory.registerElementLabel(vi("0x3c"),(t=>Yo(e,vi("0x25"),t))),n[vi("0x30")][vi("0xf")]((t=>{const{data:n}=t;if(n){if(vi("0x13")==n[vi("0x20")]||"bulletedList"==n[vi("0x20")]||vi("0xb")==n.commandName)switch(n[vi("0x20")].replace("List","")){case vi("0x11"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,vi("0x28")));case vi("0x1b"):return o(Yo(e,vi("0x24")))}if("indentList"==n[vi("0x20")])return{type:vi("0x34"),content:Yo(e,vi("0xa"),Yo(e,vi("0x25")))};if(vi("0x3")==n[vi("0x20")])return{type:"format",content:Yo(e,vi("0x16"),Yo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[vi("0x20")])return n[vi("0x3e")][0][vi("0x36")]?{type:"format",content:Yo(e,vi("0xe"))}:{type:vi("0x34"),content:Yo(e,vi("0x19"))}}function o(t){return{type:vi("0x34"),content:Yo(e,vi("0x2f"),t)}}}))}}function Si(t){const e=t[vi("0x10")](vi("0x1"));if(0==e)return t;let n=t;for(;t[vi("0xd")]&&t[vi("0xd")].is(vi("0x2c"),vi("0x3c"));){const o=t[vi("0xd")][vi("0x10")](vi("0x1"));if(o==e)n=t[vi("0xd")];else if(o<e)break;t=t[vi("0xd")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2c"),vi("0x3c"))&&t[vi("0x10")](vi("0x1"))>0){let n=t[vi("0x31")];for(;n&&vi("0x3c")==n[vi("0x12")]&&n[vi("0x10")](vi("0x1"))==t.getAttribute("listIndent");)e[vi("0x0")](n),n=n.nextSibling}return e}const Li=["push","change","listStyle","parent","handleListStyleCommand","selection","element","getSiblingNodes","createRange","handleListStartCommand","_getSuggestionBlocks","getSelectedBlocks","map","_descriptionFactory","bind","get","ListPropertiesEditing","format","listStart","getFirstPosition","getAttribute","forward","*Format:* set order to reversed","commandName","listItem","flat","type","reversed","backward","model","getListTypeFromListStyleType","document","before","toUpperCase","_LIST_","registerDescriptionCallback","ListUtils","handleDescriptions","commandParams","markMultiRangeBlockFormat","filter","ELEMENT_","from","unshift","editor","length","createPositionAt","TrackChangesEditing","listReversed","plugins","_getSuggestionBlocksForListStyle","list.properties","enableCommand","numbered","getLastPosition","styles","listType","replace","startIndex"];var Ni,Mi;Ni=Li,Mi=160,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[wi("0x2")][wi("0x7")].has(wi("0x21")))return;const t=this.editor.config[wi("0x20")](wi("0x9")),e=this[wi("0x2")][wi("0x7")][wi("0x20")](wi("0x5"));t[wi("0xd")]&&e[wi("0xa")]("listStyle",this[wi("0x15")].bind(this)),t.reversed&&e[wi("0xa")]("listReversed",this.handleListReversedCommand[wi("0x1f")](this)),t.startIndex&&e[wi("0xa")](wi("0x23"),this[wi("0x1a")][wi("0x1f")](this)),e[wi("0x1e")][wi("0x34")](this[wi("0x36")][wi("0x1f")](this))}[wi("0x15")](t,e={}){const n=this[wi("0x2")][wi("0x7")][wi("0x20")]("TrackChangesEditing"),o=this[wi("0x8")]();this[wi("0x2")][wi("0x2e")][wi("0x12")]((()=>{n[wi("0x38")](o,{commandName:wi("0x13"),commandParams:[{type:e[wi("0x2b")]}],formatGroupId:wi("0x13")})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x2")][wi("0x7")].get(wi("0x5")),o=this[wi("0x1b")]((t=>t.is(wi("0x17"),wi("0x29"))&&"numbered"===t[wi("0x25")](wi("0xe"))));if(o[wi("0x3")]<1)return;const s=o[wi("0x1d")]((t=>this[wi("0x2")].model.createRange(this[wi("0x2")][wi("0x2e")].createPositionAt(t,wi("0x31")),this[wi("0x2")][wi("0x2e")][wi("0x4")](t,0))));this[wi("0x2")].model.change((()=>{n[wi("0x38")](s,{commandName:wi("0x6"),commandParams:[{reversed:e[wi("0x2c")]}],formatGroupId:wi("0x6")})}))}[wi("0x1a")](t,e={}){const n=this[wi("0x2")][wi("0x7")][wi("0x20")]("TrackChangesEditing"),o=this._getSuggestionBlocks((t=>t.is("element",wi("0x29"))&&wi("0xb")===t.getAttribute(wi("0xe"))));if(o[wi("0x3")]<1)return;const s=o.map((t=>this[wi("0x2")][wi("0x2e")][wi("0x19")](this.editor[wi("0x2e")][wi("0x4")](t,wi("0x31")),this[wi("0x2")][wi("0x2e")][wi("0x4")](t,0))));this[wi("0x2")][wi("0x2e")][wi("0x12")]((()=>{n[wi("0x38")](s,{commandName:wi("0x23"),commandParams:[{startIndex:e[wi("0x10")]}],formatGroupId:wi("0x23")})}))}handleDescriptions(t){const e=this[wi("0x2")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x28")]){case"listStyle":o="*Change to:* %0",s={type:wi("0x22"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wi("0x37")][0].type)))};break;case"listReversed":o=n.commandParams[0].reversed?wi("0x27"):"*Format:* set order to regular",s={type:wi("0x22"),content:Yo(e,o)};break;case wi("0x23"):o="*Format:* set start index to %0",s={type:wi("0x22"),content:Yo(e,o,n[wi("0x37")][0][wi("0x10")])}}return s}[wi("0x8")](){var t,e,n,o;const s=this[wi("0x2")][wi("0x7")][wi("0x20")](wi("0x35"));let r=Array[wi("0x0")](this[wi("0x2")].model[wi("0x30")][wi("0x16")][wi("0x1c")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element",wi("0x29")))&&r[wi("0x1")](...s[wi("0x18")](this[wi("0x2")][wi("0x2e")][wi("0x30")][wi("0x16")][wi("0x24")](),"backward")),(null===(e=r[r[wi("0x3")]-1])||void 0===e?void 0:e.is("element",wi("0x29")))&&r[wi("0x11")](...s[wi("0x18")](this[wi("0x2")][wi("0x2e")][wi("0x30")][wi("0x16")][wi("0xc")](),wi("0x26"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x2")].model[wi("0x30")].selection[wi("0x24")]())||void 0===n?void 0:n[wi("0x14")])||void 0===o?void 0:o.is(wi("0x17"),"listItem"))&&(r=r[wi("0x39")]((t=>t.is("element","listItem")))),r}[wi("0x1b")](t){const e=this[wi("0x2")].plugins[wi("0x20")](wi("0x35"));let n=Array[wi("0x0")](this[wi("0x2")][wi("0x2e")][wi("0x30")][wi("0x16")][wi("0x1c")]())[wi("0x39")](t).map((t=>{const n=this[wi("0x2")][wi("0x2e")].createPositionAt(t,0);return[...e[wi("0x18")](n,wi("0x2d")),...e[wi("0x18")](n,wi("0x26"))]}))[wi("0x2a")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return wi("0x3a")+this.editor.plugins[wi("0x20")](wi("0x35"))[wi("0x2f")](t)[wi("0x32")]()+wi("0x33")+t[wi("0x32")]()[wi("0xf")](/-/g,"_")}}const Fi=["TrackChangesEditing","conversion","stop","for","attribute:url:media","mediaEmbed","registerElementLabel","enableCommand","plugins","high","data","createEmptyElement","has","elementToElement","locale","showSuggestionHighlights","afterInit","editor","_descriptionFactory","MediaEmbedEditing","media","options","ELEMENT_MEDIA","downcastDispatcher"];var Di,Pi;Di=Fi,Pi=144,function(t){for(;--t;)Di.push(Di.shift())}(++Pi);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x10")](){const t=this[Bi("0x11")];if(!t[Bi("0x8")][Bi("0xc")](Bi("0x13")))return;const e=t.plugins.get(Bi("0x0")),n=t[Bi("0xe")];e[Bi("0x7")](Bi("0x5")),e[Bi("0x12")][Bi("0x6")]("media",(t=>Yo(n,Bi("0x16"),t))),t[Bi("0x1")][Bi("0x3")]("dataDowncast")[Bi("0xd")]({model:Bi("0x14"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xf")])return e[Bi("0xb")]("div")},converterPriority:"high"}),t[Bi("0xa")][Bi("0x17")].on(Bi("0x4"),((t,e,n)=>{n[Bi("0x15")][Bi("0xf")]&&t[Bi("0x2")]()}),{priority:Bi("0x9")})}}const Ui=["get","plugins","editor","MentionEditing","has","mention"];var Gi,Hi;Gi=Ui,Hi=377,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{afterInit(){const t=this[Wi("0x3")];t[Wi("0x2")][Wi("0x5")](Wi("0x4"))&&t.plugins[Wi("0x1")]("TrackChangesEditing").enableCommand(Wi("0x0"))}}const Vi=["ELEMENT_PAGE_BREAK","get","enableCommand","has","plugins","PageBreakEditing","TrackChangesEditing","editor","registerElementLabel"];var Ki,qi;Ki=Vi,qi=377,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x8")];if(!t.plugins[Xi("0x4")](Xi("0x6")))return;t[Xi("0x5")][Xi("0x2")](Xi("0x7"))[Xi("0x3")]("pageBreak");const e=t[Xi("0x5")][Xi("0x2")](Xi("0x7")),n=t.locale;e._descriptionFactory[Xi("0x0")]("pageBreak",(t=>Yo(n,Xi("0x1"),t)))}}const Ji=["writer","isTouching","name","addMarker:suggestion:insertion","toViewPosition","registerElementLabel","TrackChangesEditing","end","ck-suggestion-marker--active","$text","registerDescriptionCallback","isLimit","options","markBlockFormat","addClass","checkChild","bindElementToMarker","model","markerRange","parent","isBlock","paragraph","start","consume","change","filter","insertParagraph","insert","showSuggestionHighlights","schema","afterInit","ELEMENT_PARAGRAPH","markerName","insertion","has","plugins","ck-suggestion-marker-split","enableCommand","data","span","locale","from","*Insert:* %0","consumable","_descriptionFactory","isObject","includes","mapper","getFirstRange","highest","document","type","nodeAfter","editing","editor","get","selection","downcastDispatcher","commandName"];var Qi,Zi;Qi=Ji,Zi=409,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x22")](){const t=this.editor;if(!t[Yi("0x27")][Yi("0x26")]("Paragraph"))return;const e=t[Yi("0x2c")],n=t[Yi("0x27")][Yi("0x0")](Yi("0xa"));n[Yi("0x30")][Yi("0x9")](Yi("0x19"),(t=>Yo(e,Yi("0x23"),t))),n.enableCommand(Yi("0x19"),((e,o={})=>{const s=t.model[Yi("0x36")],r=o.selection||s[Yi("0x1")],i=Array[Yi("0x2d")](r.getSelectedBlocks())[Yi("0x1d")]((t=>{return e=t,(n=this[Yi("0x3a")][Yi("0x15")].schema).checkChild(e[Yi("0x17")],Yi("0x19"))&&!n[Yi("0x31")](e)&&Yi("0x19")!=e[Yi("0x6")];var e,n}));t.model[Yi("0x1c")]((()=>{for(const t of i)n[Yi("0x11")](t,{commandName:"paragraph",commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Yi("0x30")][Yi("0xe")]((t=>{const{data:n}=t;if(n&&Yi("0x19")==n[Yi("0x3")])return{type:"format",content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x23")))}})),n[Yi("0x29")](Yi("0x1e")),t[Yi("0x39")].downcastDispatcher.on("addMarker:suggestion:insertion",ex(t),{priority:Yi("0x35")}),t[Yi("0x2a")][Yi("0x2")].on(Yi("0x7"),((e,n,o)=>{o[Yi("0x10")][Yi("0x20")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x35")});const o=n[Yi("0x30")];o.registerDescriptionCallback((n=>{if(Yi("0x25")!==n[Yi("0x37")])return;const{start:s,end:r}=n[Yi("0x34")]();if(!s[Yi("0x5")](r)||!s[Yi("0x38")])return;const i=t[Yi("0x15")][Yi("0x21")],x=s.nodeAfter;return i.isBlock(x)&&!i.isLimit(x)&&i[Yi("0x13")](x,Yi("0xd"))?{type:"insertion",content:Yo(e,Yi("0x2e"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x27")][Yi("0x0")](Yi("0xa")),i=o[Yi("0x16")][Yi("0x1a")],x=o[Yi("0x16")][Yi("0xb")],a=t[Yi("0x15")][Yi("0x21")];if(!i.isTouching(x)||!i[Yi("0x38")])return;const c=i[Yi("0x38")];if(a[Yi("0x18")](c)&&!a[Yi("0xf")](c)&&a[Yi("0x13")](c,Yi("0xd"))){if(!s[Yi("0x2f")][Yi("0x1b")](o[Yi("0x16")],n[Yi("0x6")]))return;const t=s[Yi("0x4")].createUIElement(Yi("0x2b"),{class:Yi("0x28")}),i=s[Yi("0x33")][Yi("0x8")](x);e&&r.activeMarkers[Yi("0x32")](o[Yi("0x24")])&&s[Yi("0x4")][Yi("0x12")](Yi("0xc"),t),s[Yi("0x4")][Yi("0x1f")](i,t),s[Yi("0x33")][Yi("0x14")](t,o[Yi("0x24")])}}}const nx=["has","from","getAttributes","get","markInlineFormat","getAttributeProperties","*Remove all formatting*","locale","document","isCollapsed","TrackChangesEditing","removeFormat","editor","afterInit","createRangeOn","registerDescriptionCallback","format","RemoveFormatEditing","plugins","schema","selection","model","enableCommand"];var ox,sx;ox=nx,sx=191,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x6")](){const t=this[rx("0x5")];if(!t.plugins[rx("0x10")](rx("0xa")))return;const e=t[rx("0xb")][rx("0x13")](rx("0x3"));e[rx("0xf")]("removeFormat",(n=>{const o=t.model[rx("0x1")][rx("0xd")];o[rx("0x2")]?n():t[rx("0xe")].change((()=>{const n=Array[rx("0x11")](o.getRanges());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0xe")][rx("0xc")])&&e[rx("0x14")](t[rx("0xe")][rx("0x7")](n),{commandName:rx("0x4"),commandParams:[]})}))})),e._descriptionFactory[rx("0x8")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n.commandName)return{type:rx("0x9"),content:Yo(t[rx("0x0")],rx("0x16"))}}))}}function xx(t,e){for(const[n]of t[rx("0x12")]()){const t=e[rx("0x15")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["plugins","discardSuggestion","goToPreviousRestrictedEditingException","get","trackChanges","afterInit","acceptSuggestion","has","TrackChangesEditing","acceptSelectedSuggestions","enableCommand","discardSelectedSuggestions","discardAllSuggestions"];var cx,lx;cx=ax,lx=324,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x6")](){const t=this.editor;if(!t[dx("0x1")][dx("0x8")]("RestrictedEditingModeEditing"))return;const e=t[dx("0x1")][dx("0x4")](dx("0x9"));e[dx("0xb")](dx("0x3")),e[dx("0xb")]("goToNextRestrictedEditingException");const n=t.plugins[dx("0x4")]("RestrictedEditingModeEditing");n[dx("0xb")](dx("0x5")),n.enableCommand(dx("0x7")),n[dx("0xb")](dx("0x2")),n[dx("0xb")]("acceptAllSuggestions"),n[dx("0xb")](dx("0x0")),n.enableCommand(dx("0xa")),n[dx("0xb")](dx("0xc"))}}const gx=["TrackChangesEditing","options","requires","consumable","locale","softBreak","writer","get","showSuggestionHighlights","addMarker:suggestion:insertion","name","markerName","registerElementLabel","deletion","span","ck-suggestion-marker--active","addMarker:suggestion","includes","data","model","createPositionBefore","editor","addMarker:suggestion:deletion","markerRange","bindElementToMarker","init","shiftEnter","editing","high","split","activeMarkers","addClass","ck-suggestion-marker-","toViewPosition","mapper","downcastDispatcher","createUIElement"];var mx,fx;mx=gx,fx=312,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x17")](){return[nr.ShiftEnter]}[hx("0x9")](){const t=this[hx("0x5")],e=t.plugins[hx("0x1c")](hx("0x15"));e.enableCommand(hx("0xa")),t[hx("0xb")][hx("0x13")].on(hx("0x1e"),bx(t),{priority:hx("0xc")}),t[hx("0xb")][hx("0x13")].on(hx("0x6"),bx(t),{priority:"high"}),t[hx("0x2")][hx("0x13")].on(hx("0x0"),((e,n,o)=>{o[hx("0x16")][hx("0x1d")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0x21")](hx("0x1a"),(e=>Yo(t[hx("0x19")],"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins.get("TrackChangesEditing");if(!s[hx("0x18")].test(o[hx("0x7")],n[hx("0x1f")]))return;const i=t[hx("0x3")];for(const t of o[hx("0x7")].getItems()){if(!t.is("element",hx("0x1a")))continue;const n=hx("0x22")==o.markerName[hx("0xd")](":")[1]?"merge":hx("0xd"),x=s.writer[hx("0x14")](hx("0x23"),{class:hx("0x10")+n}),a=s.mapper[hx("0x11")](i[hx("0x4")](t));e&&r[hx("0xe")][hx("0x1")](o[hx("0x20")])&&s.writer[hx("0xf")](hx("0x24"),x),s[hx("0x1b")].insert(a,x),s[hx("0x12")][hx("0x8")](x,o[hx("0x20")])}}}const Ex=["document","value","change","forceValue","commandParams","model","commands","plugins","has","get","from","editor","StandardEditingModeEditing","FORMAT_RESTRICTED_DISABLED","registerDescriptionCallback","restrictedEditingException","locale","isCollapsed","format","TrackChangesEditing"];var _x,Tx;_x=Ex,Tx=361,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{afterInit(){const t=this[Cx("0xa")],e=t[Cx("0x4")],n=t[Cx("0xf")];if(!t[Cx("0x6")][Cx("0x7")](Cx("0xb")))return;const o=t[Cx("0x6")][Cx("0x8")](Cx("0x12")),s=Cx("0xe"),r=t[Cx("0x5")][Cx("0x8")](s);o.enableCommand(s,((t,n={})=>{const i=e[Cx("0x13")].selection;if(i[Cx("0x10")])return void t(n);const x=void 0!==n[Cx("0x2")]?n[Cx("0x2")]:!r[Cx("0x0")];e[Cx("0x1")]((()=>{const t=Array[Cx("0x9")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0xd")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Cx("0x3")][0][Cx("0x2")]?{type:Cx("0x11"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Cx("0x11"),content:Yo(n,Cx("0xc"))}}))}}const kx=["selection","_getStyleDefinition","plugins","push","isCollapsed","getDefinitionsForView","styleName","commandParams","_getRangesWithClasses","forceValue","toLowerCase","find","normalizeConfig","style","StyleUtils","getAncestors","change","editor","Style","includes","inline","from","value","get","enableCommand","locale","every","TrackChangesEditing","config","afterInit","style.definitions","element","markBlockFormat","style:","isBlock","model","getItems","enabledStyles","commandName","getRanges","getSelectedBlocks","classes","markInlineFormat","_descriptionFactory","name","DataSchema","add"];var Ax,vx;Ax=kx,vx=115,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x8")](){const t=this[Rx("0x2b")];if(!t[Rx("0x1c")].has(Rx("0x2c")))return;const e=t.commands[Rx("0x2")](Rx("0x27")),n=t.plugins.get(Rx("0x6")),o=t[Rx("0x4")],s=t.plugins[Rx("0x2")](Rx("0x18")),r=t[Rx("0x1c")].get(Rx("0x28"))[Rx("0x26")](s,t[Rx("0x7")].get(Rx("0x9")));n[Rx("0x3")](Rx("0x27"),((o,{styleName:i})=>{const x=t[Rx("0xe")].document[Rx("0x1a")],a=this[Rx("0x1b")](i,r);if(!a)return;if(!e[Rx("0x10")][Rx("0x2d")](i))return;if(x[Rx("0x1e")]&&!a[Rx("0xd")])return void o({styleName:i});const c=!e[Rx("0x1")][Rx("0x2d")](a.name);if(a[Rx("0xd")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x29")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n[Rx("0x19")](o);break}}return n}(x[Rx("0x13")](),a.modelElements);t[Rx("0xe")][Rx("0x2a")]((()=>{for(const t of e)n[Rx("0xb")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0xc")+i})}))}else{let e=Array[Rx("0x0")](x[Rx("0x12")]());if(!c){const n=Array[Rx("0x0")](s[Rx("0x1f")](a[Rx("0xa")],!1))[0][Rx("0xe")],o=[];for(const s of e){const e=this._getRangesWithClasses(t[Rx("0xe")],s,a[Rx("0x14")],n);o[Rx("0x1d")](...e)}e=o}t[Rx("0xe")][Rx("0x2a")]((()=>{for(const t of e)n[Rx("0x15")](t,{commandName:Rx("0x27"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x16")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Rx("0x27")===e[Rx("0x11")])return e[Rx("0x21")][0][Rx("0x23")]?{type:"format",content:Yo(o,"*Format:* %0",e[Rx("0x21")][0][Rx("0x20")].toLowerCase())}:{type:"format",content:Yo(o,"*Remove format:* %0",e[Rx("0x21")][0][Rx("0x20")][Rx("0x24")]())}}))}_getStyleDefinition(t,e){let n=e.block[Rx("0x25")]((e=>e[Rx("0x17")]===t));return n||(n=e[Rx("0x2e")][Rx("0x25")]((e=>e[Rx("0x17")]===t))),n}[Rx("0x22")](t,e,n,o){const s=[];for(const r of e[Rx("0xf")]()){const e=r.getAttribute(o);e&&n[Rx("0x5")]((t=>e[Rx("0x14")][Rx("0x2d")](t)))&&s[Rx("0x1d")](t.createRangeOn(r))}return s}}const Ix=["map","nodeAfter","*Remove:* %0","subType","getChangedMarkers","MAX_SAFE_INTEGER","_getCoordsForCells","$textProxy","every","selectTableRow","MIN_SAFE_INTEGER","enableCommand","getCellLocation","detach","insertion","registerElementLabel","*Insert:* %0","insertTable","_tablePostFixingSubtypes","fromRange","$graveyard","getItems","editor","differ","isEqual","_suggestionFactory","from","downcastDispatcher","setSelection","ELEMENT_TABLE","getSelectionAffectedTableCells","max","name","getAttribute","ELEMENT_TABLE_WITH_TEXT","getColumnIndexes","commands","isTouching","length","change","push","start","min","tableCell","tableColumn","change:data","has","ELEMENT_TABLE_COLUMN","deletion","markMultiRangeInsertion","classes","low","addClass","order","insertTableRowBelow","end","values","filter","join","root","above","tableRow","ELEMENT_TABLE_COLUMN_WITH_TEXT","createRangeIn","data","createTableWalker","getRowIndexes","refresh","last","removeTableRow","getChanges","createRangeOn","TrackChangesEditing","insert","rowspan","selection","_tableSuggestions","position","_setupColumnsRowsFixing","getContainedElement","colspan","document","discard","isInContent","_acceptFormatSuggestionCallbackFactory","minRow","enqueueChange","left","maxColumn","cell","TableUtils","execute","registerPostFixer","getRanges","ELEMENT_TABLE_ROW","toViewElement","rootName","plugins","isArray","table","registerCustomCallback","model","some","insertTableColumnLeft","toLowerCase","_descriptionFactory","element","registerDescriptionCallback","substr","suggestion","hasAttribute","insertTableRowAbove","markMultiRangeDeletion","_splitMarkerName","get","type","isIntersectingWithRange","addRange","_getSuggestionCoords","first","TableEditing","removeTableColumn","removeClass","startsWith","findAncestor","accept","addMarker:suggestion","showSuggestionHighlights","nodeBefore"];var Lx,Nx;Lx=Ix,Nx=211,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x41")]=[Mx("0x6c"),Mx("0x5b")],this[Mx("0x7b")]=new Set}afterInit(){const t=this[Mx("0x45")],e=t[Mx("0x13")].document[Mx("0x7a")];if(!t[Mx("0xf")][Mx("0x5d")](Mx("0x26")))return;const n=t.locale,o=t[Mx("0xf")][Mx("0x20")]("TrackChangesEditing"),s=t[Mx("0xf")][Mx("0x20")](Mx("0x8"));o[Mx("0x17")][Mx("0x3e")]("table",(t=>Yo(n,Mx("0x4c"),t))),this[Mx("0x7d")](),o[Mx("0x3a")](Mx("0x40")),o.enableCommand(Mx("0x38")),o[Mx("0x3a")]("selectTableColumn");for(const n of[Mx("0x1d"),Mx("0x65")]){const r=t[Mx("0x53")][Mx("0x20")](n);o[Mx("0x3a")](n,(n=>{t[Mx("0x13")].change((t=>{n();const i=Mx("0x6b")===r[Mx("0x64")],x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x71")](x),c=i?a.first-1:a[Mx("0x73")]+1,l=x[0][Mx("0x2a")](Mx("0x11")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Mx("0x49")](d)[Mx("0x2f")]((e=>t.createRangeOn(e[Mx("0x7")])));o.markMultiRangeInsertion(u,Mx("0x6c"))}))}))}for(const n of[Mx("0x15"),"insertTableColumnRight"]){const r=t[Mx("0x53")][Mx("0x20")](n);o.enableCommand(n,(n=>{t[Mx("0x13")][Mx("0x56")]((t=>{n();const i=Mx("0x5")===r[Mx("0x64")],x=s[Mx("0x4d")](e),a=s[Mx("0x52")](x),c=i?a[Mx("0x25")]-1:a.last+1,l=x[0][Mx("0x2a")](Mx("0x11")),d=s[Mx("0x70")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x49")](d)[Mx("0x2f")]((e=>t[Mx("0x76")](e.cell)));o[Mx("0x60")](u,Mx("0x5b"))}))}))}for(const n of[Mx("0x74"),Mx("0x27")]){const r=n[Mx("0x1a")](11),i=r[Mx("0x16")](),x=i[Mx("0x1a")](0,3)+"span",a="table"+r,c=Mx("0x59")+r,l=Mx("0x4e")+r;o[Mx("0x3a")](n,(()=>{t[Mx("0x13")].change((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Mx("0x2a")](Mx("0x11"));let u;if(Mx("0x74")==n){const t=s[Mx("0x71")](r);u={startRow:t[Mx("0x25")],endRow:t[Mx("0x73")],includeAllSlots:!0}}else{const t=s[Mx("0x52")](r);u={startColumn:t[Mx("0x25")],endColumn:t[Mx("0x73")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Mx("0x49")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x68")]((t=>t[Mx("0x1c")](x)))),h=Ox(m[Mx("0x68")]((t=>!t[Mx("0x1c")](x))))[Mx("0x2f")]((e=>t.createRangeOn(e))),p=o[Mx("0x1e")](h,a);if(p&&("tableRow"==p[Mx("0x32")]||Mx("0x5b")==p[Mx("0x32")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s[Mx("0x3b")](n),a=n[Mx("0x50")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array[Mx("0x49")](e[Mx("0xb")]())[Mx("0x2f")]((t=>i.LiveRange[Mx("0x42")](t)));t[Mx("0x13")][Mx("0x56")]((e=>{const s=e.batch;n=n.filter((t=>Mx("0x43")!=t[Mx("0x6a")][Mx("0xe")])),e[Mx("0x4b")](n),t[Mx("0x53")][Mx("0x20")](Mx("0x74"))[Mx("0x72")](),t[Mx("0x9")](Mx("0x74"),{forceDefaultExecution:!0}),t.model[Mx("0x4")]((()=>{t[Mx("0x13")][Mx("0x4")](s,(t=>{const e=o[Mx("0x68")]((t=>Mx("0x43")!=t[Mx("0x6a")][Mx("0xe")]));e[Mx("0x55")]>0&&t.setSelection(e);for(const t of o)t.detach()}))}))}))}function a(n){t[Mx("0x13")][Mx("0x56")]((o=>{const s=Array[Mx("0x49")](e[Mx("0xb")]())[Mx("0x2f")]((t=>i.LiveRange[Mx("0x42")](t))),r=[];for(const t of n)for(const e of t[Mx("0x44")]({shallow:!0}))r[Mx("0x57")](e);for(const e of r)Mx("0x43")!=e.root.rootName&&(o[Mx("0x4b")](o.createPositionAt(e,0)),t[Mx("0x53")][Mx("0x20")](Mx("0x27")).refresh(),t[Mx("0x9")](Mx("0x27"),{forceDefaultExecution:!0}));const x=s.filter((t=>"$graveyard"!=t[Mx("0x6a")][Mx("0xe")]));x[Mx("0x55")]>0&&o[Mx("0x4b")](x);for(const t of s)t[Mx("0x3c")]()}))}function c(t,e){return e[Mx("0x37")]((e=>t[Mx("0x14")]((t=>t[Mx("0x66")][Mx("0x47")](e[Mx("0x58")])||e.end[Mx("0x47")](t.start)))))}function l(t,e){return t[Mx("0x14")]((t=>e[Mx("0x14")]((e=>t[Mx("0x66")][Mx("0x54")](e[Mx("0x58")])))))}t[Mx("0x6f")][Mx("0x4a")].on(Mx("0x2c"),((t,e,n)=>{if(!n.options[Mx("0x2d")])return;const o=e.item;if(!o)return;const s=n.mapper[Mx("0xd")](o);function r(t){return Array[Mx("0x10")](t)?t:[t]}s&&"tableCell"===o.name&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n[Mx("0x63")](r(e[Mx("0x61")]),t)),((t,e,n)=>n[Mx("0x28")](r(e[Mx("0x61")]),t)))}),{priority:"highest"}),o[Mx("0x17")][Mx("0x19")]((t=>{if(Mx("0x3d")!=t[Mx("0x21")]&&Mx("0x5f")!=t.type)return;const e=t[Mx("0x7e")]();if(null!=e&&e.is(Mx("0x18"),Mx("0x11"))){if("insertion"==t[Mx("0x21")]){const e=t[Mx("0x44")]().filter((t=>t.is(Mx("0x36"))))[Mx("0x2f")]((t=>t[Mx("0x6f")]));if(e.length)return{type:Mx("0x3d"),content:Yo(n,Mx("0x3f"),Yo(n,Mx("0x51"),'"'+e[Mx("0x69")](" ")+'"'))}}if(Mx("0x5f")==t[Mx("0x21")]){const e=t[Mx("0x44")]()[Mx("0x68")]((t=>t.is(Mx("0x36"))))[Mx("0x2f")]((t=>t[Mx("0x6f")]));if(e[Mx("0x55")])return{type:Mx("0x5f"),content:Yo(n,Mx("0x31"),Yo(n,Mx("0x51"),'"'+e[Mx("0x69")](" ")+'"'))}}}})),o._descriptionFactory.registerDescriptionCallback((t=>{if(Mx("0x6c")==t[Mx("0x32")]){const e=t[Mx("0x44")]()[Mx("0x68")]((t=>t.is(Mx("0x36"))))[Mx("0x2f")]((t=>t[Mx("0x6f")])),o=this[Mx("0x24")](t),s=o.maxRow-o[Mx("0x3")]+1;if(Mx("0x3d")==t[Mx("0x21")])return e[Mx("0x55")]?{type:Mx("0x3d"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x3d"),content:Yo(n,Mx("0x3f"),Yo(n,Mx("0xc"),s))};if(Mx("0x5f")==t[Mx("0x21")])return e[Mx("0x55")]?{type:"deletion",content:Yo(n,Mx("0x31"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x69")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x31"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Mx("0x5b")==t[Mx("0x32")]){const e=t[Mx("0x44")]().filter((t=>t.is("$textProxy")))[Mx("0x2f")]((t=>t.data)),o=this[Mx("0x24")](t),s=o[Mx("0x6")]-o.minColumn+1;if(Mx("0x3d")==t[Mx("0x21")])return e[Mx("0x55")]?{type:Mx("0x3d"),content:Yo(n,Mx("0x3f"),Yo(n,Mx("0x6d"),[s,'"'+e[Mx("0x69")](" ")+'"']))}:{type:Mx("0x3d"),content:Yo(n,Mx("0x3f"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if("deletion"==t.type)return e[Mx("0x55")]?{type:Mx("0x5f"),content:Yo(n,Mx("0x31"),Yo(n,Mx("0x6d"),[s,'"'+e[Mx("0x69")](" ")+'"']))}:{type:Mx("0x5f"),content:Yo(n,Mx("0x31"),Yo(n,Mx("0x5e"),s))}}})),o[Mx("0x48")][Mx("0x12")](Mx("0x3d"),Mx("0x6c"),"discard",r),o[Mx("0x48")][Mx("0x12")](Mx("0x5f"),Mx("0x6c"),Mx("0x2b"),r),o[Mx("0x48")][Mx("0x12")](Mx("0x3d"),Mx("0x5b"),Mx("0x0"),a),o[Mx("0x48")].registerCustomCallback("deletion",Mx("0x5b"),Mx("0x2b"),a),o[Mx("0x48")][Mx("0x12")](Mx("0x3d"),"tableColumn","join",c),o[Mx("0x48")][Mx("0x12")](Mx("0x5f"),Mx("0x5b"),Mx("0x69"),c),o[Mx("0x48")][Mx("0x12")](Mx("0x3d"),Mx("0x6c"),Mx("0x69"),l),o[Mx("0x48")][Mx("0x12")](Mx("0x5f"),Mx("0x6c"),Mx("0x69"),l)}[Mx("0x2")](){const t=this[Mx("0x45")],e=t[Mx("0x13")][Mx("0x80")][Mx("0x7a")];return(n,o)=>{t[Mx("0x13")][Mx("0x56")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Mx("0x2e")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x58")].nodeAfter);const c=s[Mx("0x6e")](a);if(Mx("0x43")==c[Mx("0x6a")][Mx("0xe")])return;const l=Array[Mx("0x49")](e[Mx("0xb")]())[Mx("0x2f")]((t=>i.LiveRange.fromRange(t)));s[Mx("0x4b")](c),t[Mx("0x53")][Mx("0x20")](r)[Mx("0x72")](),x.push({forceDefaultExecution:!0}),t[Mx("0x9")](r,...x);const d=l[Mx("0x68")]((t=>"$graveyard"!=t[Mx("0x6a")][Mx("0xe")]));d[Mx("0x55")]>0&&s[Mx("0x4b")](d);for(const t of l)t[Mx("0x3c")]()}))}}[Mx("0x35")](t){const e=this.editor.plugins[Mx("0x20")](Mx("0x8"));let n=Number[Mx("0x34")],o=Number[Mx("0x39")],s=Number[Mx("0x34")],r=Number.MIN_SAFE_INTEGER;for(const i of t){if("$graveyard"==i[Mx("0x6a")][Mx("0xe")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i.hasAttribute(Mx("0x79"))?i[Mx("0x50")](Mx("0x79"))-1:0,c=i[Mx("0x1c")]("colspan")?i[Mx("0x50")](Mx("0x7f"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x7d")](){const t=this.editor,e=t[Mx("0xf")][Mx("0x20")](Mx("0x77")),n=t.plugins.get(Mx("0x8"));t[Mx("0x13")][Mx("0x80")].on(Mx("0x5c"),(()=>{const n=Array[Mx("0x49")](t.model[Mx("0x80")][Mx("0x46")][Mx("0x33")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x1f")](t);if(Mx("0x1b")!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x41")].includes(r)&&this[Mx("0x7b")].add(i)}}),{priority:Mx("0x62")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x76")](t),r=t[Mx("0x2a")](Mx("0x11")),i=n[Mx("0x3b")](t);for(const e of this[Mx("0x7b")]){const n=e.subType,x=n[Mx("0x29")]("tablePaste"),a=n.substr(x?10:5),c=a.toLowerCase(),l=c[Mx("0x1a")](0,3)+"span",d=Mx("0x59")+a,u=Mx("0x4e")+a;if(!e[Mx("0x1")])continue;if(r!=e.getFirstRange().start[Mx("0x2a")](Mx("0x11")))continue;if(e[Mx("0x22")](s))continue;const g=t[Mx("0x1c")](l)?t[Mx("0x50")](l)-1:0,m=this[Mx("0x24")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x23")](s),o=!0)}return o};t[Mx("0x13")][Mx("0x80")][Mx("0xa")]((e=>{let n=!1;for(const s of t[Mx("0x13")].document[Mx("0x46")][Mx("0x75")]())if(Mx("0x78")==s[Mx("0x21")])if(Mx("0x6c")==s.name)for(const t of s[Mx("0x7c")][Mx("0x30")].getChildren())n=n||o(t,e);else Mx("0x5a")==s[Mx("0x4f")]&&(n=n||o(s.position[Mx("0x30")],e));return n}))}[Mx("0x24")](t){return this[Mx("0x35")](t[Mx("0xb")]()[Mx("0x2f")]((t=>t.start.nodeAfter)))}}function Ox(t){return Array.from(new Set(t)[Mx("0x67")]())}const Fx=["_suggestionFactory","push","length","createRangeOn","trackChanges","registerDescriptionCallback","setSelection","low","accept","highest","TrackChangesEditing","commandName","element","afterInit","size","execute","*Split cell:* horizontally","selection","mergeTableCellRight","change","_tablePostFixingSubtypes","document","insertion","formatBlock","set:isEnabled","getAncestors","getSelectionAffectedTableCells","registerCustomCallback","mergeTableCellDown","requires","cell","$graveyard","forceDefaultExecution","return","has","mergeTableCells","mergeTableCellUp","refresh","format","enableCommand","fromRange","_areSelectedCellsMergable","createTableWalker","detach","add","_isForcedDefaultExecutionBlock","tableCell","plugins","root","from","getSuggestions","findAncestor","mergeTableCellLeft","stop","splitTableCellHorizontally","get","_areMergableCells","*Split cell:* vertically","containsRange","rootName","getFirstPosition","type","_descriptionFactory","isEnabled","find","deletion","markBlockFormat","TableUtils","commands","splitTableCellVertically","getCellLocation","_acceptFormatSuggestionCallbackFactory","getRanges","direction","horizontally","value","model","author","table","editor","locale","filter","map"];var Dx,Px;Dx=Fx,Px=286,function(t){for(;--t;)Dx.push(Dx.shift())}(++Px);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x4b")](){return[wx]}[Bx("0x3b")](){const t=this[Bx("0x2a")],e=t[Bx("0x27")][Bx("0x43")][Bx("0x3f")],n=t[Bx("0x2b")];if(!t[Bx("0xa")][Bx("0x50")]("TableEditing"))return;const o=t[Bx("0xa")][Bx("0x12")](Bx("0x38")),s=t.plugins[Bx("0x12")]("TableUtils"),r=t[Bx("0xa")][Bx("0x12")](wx);r[Bx("0x42")][Bx("0x2f")]("mergeTableCells"),o[Bx("0x2")](Bx("0x51"),(()=>{const e=s[Bx("0x48")](t[Bx("0x27")].document.selection);t[Bx("0x27")].change((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x51"),commandParams:[]},[],Bx("0x51"))}))})),t[Bx("0x1f")][Bx("0x12")]("mergeTableCells").on(Bx("0x3d"),((e,n)=>{t.commands[Bx("0x12")](Bx("0x32"))[Bx("0x26")]&&(n[Bx("0x30")]>0&&n[n.length-1]&&n[n.length-1][Bx("0x4e")]||o[Bx("0x8")]||this._areSelectedCellsMergable()||e[Bx("0x10")]())}),{priority:Bx("0x37")});for(const e of[Bx("0x52"),Bx("0x40"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t[Bx("0x1f")].get(e);o[Bx("0x2")](e,(()=>{const e=t.model[Bx("0x43")][Bx("0x3f")].getFirstPosition()[Bx("0x47")]()[Bx("0x1b")]((t=>t.is(Bx("0x3a"),Bx("0x9")))),s=n[Bx("0x26")];t.model[Bx("0x41")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:"mergeTableCells",commandParams:[]},[],Bx("0x51"))}))}))}for(const e of[Bx("0x20"),Bx("0x11")]){const n=t[Bx("0x1f")].get(e);o[Bx("0x2")](e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0x27")].document[Bx("0x3f")])[0],i=r[Bx("0xe")](Bx("0x29")),{column:x,row:a}=s[Bx("0x21")](r);let c=[];if(Bx("0x25")==n[Bx("0x24")]){const t=s[Bx("0x5")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0xc")](t)[Bx("0x2d")]((t=>t.cell))}else{const t=s[Bx("0x5")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0xc")](t)[Bx("0x2d")]((t=>t[Bx("0x4c")]))}t.model.change((t=>{o[Bx("0x1d")](t[Bx("0x31")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x33")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x39")]?{type:Bx("0x1"),content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0x19")][Bx("0x33")]((t=>{const{data:e}=t;if(e)return Bx("0x20")==e[Bx("0x39")]?{type:Bx("0x1"),content:Yo(n,Bx("0x14"))}:Bx("0x11")==e[Bx("0x39")]?{type:"format",content:Yo(n,Bx("0x3e"))}:void 0}));const x=r[Bx("0x22")]();for(const t of[Bx("0x52"),Bx("0x40"),Bx("0x4a"),"mergeTableCellLeft"])o[Bx("0x2e")].registerCustomCallback(Bx("0x45"),t,Bx("0x36"),x);for(const t of[Bx("0x20"),Bx("0x11")])o._suggestionFactory[Bx("0x49")](Bx("0x45"),t,Bx("0x36"),x);o[Bx("0x2e")][Bx("0x49")](Bx("0x45"),Bx("0x51"),"accept",(n=>{t[Bx("0x27")][Bx("0x41")]((o=>{const s=Array[Bx("0xc")](e.getRanges())[Bx("0x2d")]((t=>i.LiveRange[Bx("0x3")](t)));o.setSelection(n),t[Bx("0x1f")][Bx("0x12")]("mergeTableCells")[Bx("0x0")](),t[Bx("0x3d")](Bx("0x51"),{forceDefaultExecution:!0});const r=s[Bx("0x2c")]((t=>Bx("0x4d")!=t[Bx("0xb")][Bx("0x16")]));r[Bx("0x30")]>0&&o[Bx("0x34")](r);for(const t of s)t[Bx("0x6")]()}))}));for(const e of["mergeTableCellUp",Bx("0x4a"),Bx("0xf"),Bx("0x40")]){const n=t[Bx("0x1f")][Bx("0x12")](e);n.on(Bx("0x46"),((e,o,s)=>{if(s){const o=t[Bx("0x27")][Bx("0x43")][Bx("0x3f")][Bx("0x17")]()[Bx("0x47")]()[Bx("0x1b")]((t=>t.is(Bx("0x3a"),Bx("0x9"))));this[Bx("0x13")](n[Bx("0x26")],o)||(e[Bx("0x4f")]=!1,e[Bx("0x10")]())}}),{priority:Bx("0x35")})}}[Bx("0x4")](){const t=this.editor[Bx("0x1f")][Bx("0x12")](Bx("0x51")),e=this[Bx("0x2a")][Bx("0xa")][Bx("0x12")](Bx("0x1e"));if(!t[Bx("0x1a")])return!1;const n=e[Bx("0x48")](this[Bx("0x2a")][Bx("0x27")][Bx("0x43")][Bx("0x3f")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x13")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x2a")][Bx("0xa")][Bx("0x12")](Bx("0x38")),o=this.editor[Bx("0x27")][Bx("0x31")](t),s=this[Bx("0x2a")].model.createRangeOn(e),r=new Set,i=new Set;for(const t of n[Bx("0xd")]())if((Bx("0x44")==t.type||Bx("0x1c")==t.type||Bx("0x51")==t.subType)&&t.isInContent)for(const e of t[Bx("0x23")]())e[Bx("0x15")](o,!0)&&r[Bx("0x7")](t[Bx("0x18")]+":"+t.author.id),e[Bx("0x15")](s,!0)&&i[Bx("0x7")](t.type+":"+t[Bx("0x28")].id);if(r[Bx("0x3c")]!=i[Bx("0x3c")])return!1;for(const t of r)if(!i[Bx("0x50")](t))return!1;return!0}}const Ux=["ck-suggestion-marker-","locale","data-suggestion","start","createPositionBefore","consume","has","markerRange","nodeBefore","markerName","TableEditing","FORMAT_REGULAR_ROW","registerDescriptionCallback","data","markerNameToElements","_suggestionFactory","editor","commandName","formatBlock","document","toViewElement","FORMAT_HEADER_COLUMN","getSuggestion","stop","model","nodeAfter","setTableColumnHeader","table","forceValue","getCellLocation","findAncestor","get","index","TableUtils","commandParams","parent","setTableRowHeader","afterInit","childCount","FORMAT_REGULAR_COLUMN","last","editing","activeMarkers","isBefore","TrackChangesEditing","getRowIndexes","change","value","markBlockFormat","selection","getChild","createRange","*Format:* %0","end","headingRows","removeClass","plugins","cell","registerCustomCallback","addClass","getSelectionAffectedTableCells","options","addMarker:suggestion","removeAttribute","accept","highest","showSuggestionHighlights","headingColumns","setAttribute","name","getAttribute","createPositionAfter","createTableWalker","downcastDispatcher","_acceptFormatSuggestionCallbackFactory","mapper","writer","enableCommand","unbindElementFromMarkerName"];var Gx,Hx;Gx=Ux,Hx=181,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get requires(){return[wx]}[Wx("0xe")](){const t=this[Wx("0x48")];if(!t[Wx("0x21")][Wx("0x3e")](Wx("0x42")))return;const e=t[Wx("0x39")],n=t[Wx("0x21")].get(Wx("0x15")),o=t[Wx("0x21")][Wx("0x8")](Wx("0xa")),s=t[Wx("0x21")][Wx("0x8")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[Wx("0x41")]),c=n.getSuggestion(a);if(!c[Wx("0x45")]||"setTableColumnHeader"!=c[Wx("0x45")][Wx("0x49")])return;if(r.item)return void s[Wx("0x0")]();if(!i.consumable[Wx("0x3d")](r[Wx("0x3f")],s[Wx("0x2e")]))return;const l=r[Wx("0x3f")][Wx("0x3b")][Wx("0x2")],d=r[Wx("0x3f")][Wx("0x1e")][Wx("0x40")],u=l[Wx("0xc")][Wx("0xc")],{column:g}=o[Wx("0x6")](l),{column:m}=o[Wx("0x6")](d);for(let s=g;s<=m;s++){const c=o[Wx("0x31")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Wx("0x22")],c=i[Wx("0x34")][Wx("0x4c")](s);i.writer.addClass("ck-suggestion-marker-"+x,c),e&&i[Wx("0x35")][Wx("0x2d")](Wx("0x3a"),a,c),i[Wx("0x34")].bindElementToMarker(c,r.markerName),t&&(n[Wx("0x13")].includes(r[Wx("0x41")])?i[Wx("0x35")][Wx("0x24")]("ck-suggestion-marker--active",c):i[Wx("0x35")][Wx("0x20")]("ck-suggestion-marker--active",c))}}}}n[Wx("0x36")](Wx("0xd"),((e,s)=>{const r=o[Wx("0x25")](t[Wx("0x1")][Wx("0x4b")][Wx("0x1a")]),i=o[Wx("0x16")](r),x=r[0][Wx("0x7")](Wx("0x4")),a=x[Wx("0x2f")](Wx("0x1f"))||0,c=s&&null!==s[Wx("0x5")]?s[Wx("0x5")]:!t.commands[Wx("0x8")]("setTableRowHeader")[Wx("0x18")],l=c?i[Wx("0x11")]:i.first,d=x[Wx("0x1b")](l);let u;if(c){const e=x.getChild(a);if(d[Wx("0x9")]<e.index)return;u=t.model[Wx("0x1c")](t[Wx("0x1")][Wx("0x3c")](e[Wx("0x1b")](0)),t[Wx("0x1")][Wx("0x30")](d.getChild(d[Wx("0xf")]-1)))}else{const e=x[Wx("0x1b")](a-1);if(!e)return;u=t[Wx("0x1")].createRange(t[Wx("0x1")][Wx("0x3c")](d.getChild(0)),t[Wx("0x1")][Wx("0x30")](e[Wx("0x1b")](e[Wx("0xf")]-1)))}t[Wx("0x1")].change((()=>{n[Wx("0x19")](u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],Wx("0xd"))}))})),n[Wx("0x36")](Wx("0x3"),((e,o)=>{const s=t[Wx("0x21")][Wx("0x8")](Wx("0xa")),r=s[Wx("0x25")](t[Wx("0x1")].document[Wx("0x1a")]),i=s.getColumnIndexes(r),x=r[0][Wx("0x7")]("table"),a=x[Wx("0x2f")](Wx("0x2c"))||0,c=o&&null!==o[Wx("0x5")]?o[Wx("0x5")]:!t.commands[Wx("0x8")]("setTableColumnHeader")[Wx("0x18")];let l;const d=x[Wx("0x1b")](0),u=c?i[Wx("0x11")]:i.first,g=s[Wx("0x31")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0].cell;if(c){const e=d[Wx("0x1b")](a);if(m[Wx("0x14")](e))return;l=t[Wx("0x1")][Wx("0x1c")](t[Wx("0x1")][Wx("0x3c")](e),t.model[Wx("0x30")](m))}else{const e=d[Wx("0x1b")](a-1);if(!e)return;l=t[Wx("0x1")][Wx("0x1c")](t.model.createPositionBefore(m),t[Wx("0x1")][Wx("0x30")](e))}t[Wx("0x1")][Wx("0x17")]((()=>{n[Wx("0x19")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[Wx("0x12")][Wx("0x32")].on(Wx("0x27"),r(),{priority:"highest"}),t[Wx("0x45")][Wx("0x32")].on(Wx("0x27"),((t,e,n)=>{n[Wx("0x26")][Wx("0x2b")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[Wx("0x12")].downcastDispatcher.on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[Wx("0x41")]),i=n[Wx("0x4e")](r);if(!i[Wx("0x45")]||Wx("0x3")!=i.data[Wx("0x49")])return;const x=o[Wx("0x34")][Wx("0x46")](e[Wx("0x41")]);if(x)for(const t of x)o[Wx("0x35")][Wx("0x20")](Wx("0x38")+s,t),o[Wx("0x35")][Wx("0x20")]("ck-suggestion-marker--active",t),o[Wx("0x35")][Wx("0x28")](Wx("0x3a"),t),o[Wx("0x34")][Wx("0x37")](t,e[Wx("0x41")])}),{priority:Wx("0x2a")}),n._descriptionFactory[Wx("0x44")]((t=>{const{data:n}=t;if(n){if(Wx("0xd")==n[Wx("0x49")]){const t=n[Wx("0xb")][0][Wx("0x5")];return o(Yo(e,t?"FORMAT_HEADER_ROW":Wx("0x43")))}if("setTableColumnHeader"==n[Wx("0x49")]){const t=n.commandParams[0][Wx("0x5")];return o(Yo(e,Wx(t?"0x4d":"0x10")))}}function o(t){return{type:"format",content:Yo(e,Wx("0x1d"),t)}}}));const i=s[Wx("0x33")]();n[Wx("0x47")][Wx("0x23")](Wx("0x4a"),Wx("0xd"),Wx("0x29"),i),n._suggestionFactory[Wx("0x23")](Wx("0x4a"),Wx("0x3"),Wx("0x29"),i)}}const Vx=["end","setAttribute","getSelectionAffectedTableCells","add","row","discard","entries","createRangeIn","push","includes","fill","documentSelection","getItems","_getCoordsForCells","insertion","get","ck-suggestion-marker","rowInsertionIndexes","return","_splitMarkerName","model","suggestion-td","last","_createdBatches","columns","insertionRanges","newRange","getRows","tableCellBorderColor","plugins","differ","getSuggestions","ck-suggestion-marker-insertion","name","unwrap","getSuggestionCallback","tablePasteColumn","activeMarkers","element","findAncestor","suggestionUnloaded","commands","getColumns","registerDescriptionCallback","filter","tablePasteChainId","next","type","tableCellBorderWidth","tableCellSuggestion","paragraph","getContainedElement","ck-suggestion-marker--active","createElement","view","fromEntries","remove","isEqual","markerAttributes","first","move","endRow","high","subType","deletion","insertContent","_isForcedDefaultExecutionBlock","attributes","insert","getAllAdjacentSuggestions","tablePasteRow","createRangeOn","_replaceTableSlotCell","rootName","trackChanges","accept","isEmpty","registerPostFixer","_suggestionFactory","tablePaste","markMultiRangeInsertion","getMarkers","getSuggestion","start","getTableIfOnlyTableInContent","rowInsertionRanges","tableCell","createTableWalker","containsRange","low","position","redo","schema","author","reduce","table","find","join","afterInit","previousSibling","createPositionBefore","removeColumns","markerName","for","register","getChangedMarkers","some","registerCustomCallback","suggestionLoaded","from","insertColumns","change","getRanges","previous","updateMarker","deletionRanges","listenTo","content","every","options","elementToElement","columnInsertionRanges","tableCellHorizontalAlignment","startsWith","cells","TrackChangesEditing","value","setAttributes","document","has","column","Users","showSuggestionHighlights","markerToHighlight","map","isInContent","formatBlock","removeRows","getChildren","requires","tablePasteCell","getRowIndexes","getChild","stop","columnInsertionIndexes","keys","insertRows","suggestion","getShiftedBy","set","getRange","removeMarker","oldRange","markers","length","_tablePostFixingSubtypes","TableClipboard","endColumn","wrap"];var Kx,qx;Kx=Vx,qx=349,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x11"),Xx("0x9c"),"tableCellBorderStyle",Xx("0x5b"),"tableCellVerticalAlignment","tableCellBackgroundColor","tableCellPadding"],Jx=Object.fromEntries($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x6c")](){return[wx]}[Xx("0x43")](){const t=this.editor;if(!t[Xx("0x9d")][Xx("0x62")](Xx("0x7d")))return;const n=t[Xx("0x9d")][Xx("0x8f")](Xx("0x5e")),o=t[Xx("0x9d")].get("TableUtils"),s=t.plugins[Xx("0x8f")](wx),r=t.plugins[Xx("0x8f")](Xx("0x7d"));s[Xx("0x7c")][Xx("0x88")](Xx("0x27"),Xx("0x5")),t[Xx("0x94")][Xx("0x3d")][Xx("0x49")]("tableCellSuggestion",{allowIn:Xx("0x37"),allowContentOf:Xx("0x37"),isLimit:!0}),t.conversion[Xx("0x59")]({model:Xx("0x12"),view:Xx("0x95")});let i=null;t[Xx("0x94")].on(Xx("0x22"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x7b")]-1];l&&l.forceDefaultExecution||n[Xx("0x23")]||this.editor[Xx("0xa")][Xx("0x8f")](Xx("0x2b"))[Xx("0x5f")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x8b")))return!1;const r=s[Xx("0x35")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x82")](n[Xx("0x61")].selection);if(!i[Xx("0x7b")])return!1;const x=i[0].findAncestor(Xx("0x40")),a=o[Xx("0x6e")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x1c")],endRow:a[Xx("0x96")],startColumn:c[Xx("0x1c")],endColumn:c.last};return 1==i.length&&(l[Xx("0x1e")]+=o[Xx("0x9b")](r)-1,l[Xx("0x7e")]+=o[Xx("0xb")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x94")],o,r)&&(s[Xx("0x70")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x94")][Xx("0x50")]((()=>{t[Xx("0x94")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x7b")]&&n[Xx("0x31")](s,Xx("0x27"),{tablePasteChainId:o}),r[Xx("0x7b")]&&n[Xx("0x31")](r,Xx("0x5"),{tablePasteChainId:o}),a[Xx("0x7b")]&&n[Xx("0x31")](a,Xx("0x30"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x7b")]&&n.markMultiRangeDeletion(c,Xx("0x30"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[Xx("0x67")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x6d"),{tablePasteChainId:o});if(d){const e=d[Xx("0x32")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model.createRangeOn(o),i=e[Xx("0x41")]((t=>t.getRange()[Xx("0x1a")](r)));i&&n[Xx("0x88")]([i[Xx("0x2")],s])}n[Xx("0x7b")]&&d[Xx("0x81")](Xx("0x1b"),Object[Xx("0x18")](n))}i=null})))}),{priority:e.priorities[Xx("0x1f")]+10}),t[Xx("0x9d")][Xx("0x8f")]("TableClipboard").on(Xx("0x29"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x70")]();const r=n.cell,x=o,a=Zx(r),c=Zx(x);t[Xx("0x92")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x6f")](0));for(const t of Array.from(x.getChildren()))s[Xx("0x25")](t,r,"end");const t=i[Xx("0x91")][Xx("0x89")](n[Xx("0x84")]),e=i.columnInsertionIndexes[Xx("0x89")](n[Xx("0x63")]);t||e||(l=s[Xx("0x87")](r))}else c&&!a&&(d=s[Xx("0x87")](r));else{const t=s[Xx("0x16")](Xx("0x12")),e=s[Xx("0x16")](Xx("0x12"));s[Xx("0x7f")](s[Xx("0x87")](r),e),s[Xx("0x25")](t,r,0);for(const e of Array[Xx("0x4e")](x[Xx("0x6b")]()))s[Xx("0x25")](e,t,Xx("0x80"));l=s[Xx("0x28")](t),d=s.createRangeOn(e)}const u=Array[Xx("0x4e")](x.getAttributes())[Xx("0xd")]((([t])=>$x[Xx("0x89")](t)));i.cells[Xx("0x88")]({element:r,attributes:u[Xx("0x7b")]?Object[Xx("0x18")](u):null}),l&&i[Xx("0x99")].push(l),d&&i[Xx("0x54")][Xx("0x88")](d)}),{priority:Xx("0x1f")}),o.on(Xx("0x4f"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x98")]||1;i[Xx("0x71")]=new Array(a)[Xx("0x8a")](x)[Xx("0x67")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x38")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x5a")][Xx("0x88")](t[Xx("0x94")][Xx("0x28")](e))}),{priority:Xx("0x3a")}),o.on(Xx("0x73"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x91")]=new Array(a)[Xx("0x8a")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i[Xx("0x36")].push(t[Xx("0x94")].createRangeOn(e))}),{priority:Xx("0x3a")}),n._descriptionFactory[Xx("0xc")]((e=>{if(e[Xx("0x20")]&&e[Xx("0x20")][Xx("0x5c")]("tablePaste"))return e[Xx("0x52")]?{}:{type:"insertion",content:Yo(t.locale,"*Replace table cells*")}}));const x=()=>{};for(const t of[Xx("0x30"),Xx("0x5"),Xx("0x27"),"tablePasteCell"])n[Xx("0x2f")][Xx("0x4c")]("insertion",t,Xx("0x42"),x),n[Xx("0x2f")][Xx("0x4c")]("deletion",t,Xx("0x42"),x);n[Xx("0x2f")][Xx("0x4c")](Xx("0x69"),Xx("0x6d"),Xx("0x85"),x),n[Xx("0x2f")][Xx("0x4c")](Xx("0x69"),Xx("0x6d"),"accept",((e,n,o)=>{const s=e.map((t=>t[Xx("0x14")]()))[Xx("0xd")]((t=>t)),r=new Map(s[Xx("0x67")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x5d")])e&&r.set(t,e);else if(o&&o[Xx("0x1b")])for(const[e,n]of Object[Xx("0x86")](o.markerAttributes)){const o=t[Xx("0x94")][Xx("0x7a")][Xx("0x8f")](e),s=o?o.getRange()[Xx("0x14")]():null;s&&r[Xx("0x76")](s,n)}t[Xx("0x94")].change((t=>{for(const[e,n]of r)t[Xx("0x60")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x2f")][Xx("0x4c")](e,Xx("0x30"),o,((s,r,i)=>{t[Xx("0x94")].change((t=>{const x=[];for(const t of s){const e=t[Xx("0x34")].nodeAfter;e.is(Xx("0x7"),"tableCellSuggestion")&&x.push(e)}n[Xx("0x2f")][Xx("0x4")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e.root[Xx("0x2a")]&&t[Xx("0x3")](e)}))}))};a(Xx("0x8e"),Xx("0x2c")),a(Xx("0x8e"),"discard"),a(Xx("0x21"),Xx("0x2c")),a("deletion",Xx("0x85")),n[Xx("0x2f")][Xx("0x4c")](Xx("0x8e"),Xx("0x27"),Xx("0x85"),(t=>{const e=t.map((t=>t[Xx("0x14")]())),n=e[0].findAncestor(Xx("0x40")),{minRow:r,maxRow:i}=s[Xx("0x8d")](e);o[Xx("0x6a")](n,{at:r,rows:i-r+1})})),n._suggestionFactory.registerCustomCallback(Xx("0x8e"),Xx("0x5"),Xx("0x85"),(t=>{const e=t[Xx("0x67")]((t=>t[Xx("0x14")]())),n=e[0][Xx("0x8")](Xx("0x40")),{minColumn:r,maxColumn:i}=s[Xx("0x8d")](e);o[Xx("0x46")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x20")]||!e.subType.startsWith(Xx("0x30")))return;const o=e.attributes[Xx("0xe")],s=n[Xx("0x0")]()[Xx("0xd")]((t=>t.isInContent&&t[Xx("0x24")]&&t[Xx("0x24")][Xx("0xe")]==o));s[Xx("0x7b")]&&e[Xx("0x26")]()[Xx("0x7b")]!=s.length&&s[Xx("0x3f")](((t,e)=>(t[Xx("0xf")]=e,e[Xx("0x52")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x93")](t[Xx("0x47")]),s=[Xx("0x90"),Xx("0x1")],r=n[Xx("0x6")].includes(t[Xx("0x47")]);return r&&s[Xx("0x88")](Xx("0x15")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x4d"),c,{priority:Xx("0x1f")}),n.on(Xx("0x9"),c,{priority:Xx("0x1f")}),t[Xx("0x94")][Xx("0x61")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x4e")](t[Xx("0x94")][Xx("0x61")][Xx("0x9e")][Xx("0x4a")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x93")](s);if(Xx("0x74")!=o||"deletion"!=i||r.oldRange)continue;if(!n.hasSuggestion(x))continue;const a=n[Xx("0x33")](x)[Xx("0x51")](),c=t[Xx("0x9d")][Xx("0x8f")]("Users").me;for(const t of n[Xx("0x0")]())if(t[Xx("0x68")]&&t[Xx("0x3e")]==c&&Xx("0x69")==t[Xx("0x10")]&&Xx("0x6d")==t.subType&&t.getRanges()[Xx("0x57")]((t=>a[Xx("0x4b")]((e=>e[Xx("0x39")](t,!0))))))for(const n of t[Xx("0x26")]())n[Xx("0x68")]&&(n.discard(),e=!0)}return e})),t[Xx("0x94")][Xx("0x61")][Xx("0x2e")]((e=>{const o=t[Xx("0xa")][Xx("0x8f")](Xx("0x3c"));if(!o||!o[Xx("0x97")][Xx("0x62")](e.batch))return!1;let s=!1;const r=t.plugins[Xx("0x8f")](Xx("0x64")).me,i=t.model[Xx("0x61")][Xx("0x9e")].getChanges(),x=Array[Xx("0x4e")](t[Xx("0x94")].document[Xx("0x9e")].getChangedMarkers())[Xx("0xd")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x93")](t);return Xx("0x74")==o&&Xx("0x30")==s&&i==r.id&&!e[Xx("0x79")]}));for(const t of i){if(Xx("0x25")!=t[Xx("0x10")]||Xx("0x12")!=t.name||1!=t[Xx("0x7b")])continue;const n=e.createRange(t[Xx("0x3b")],t[Xx("0x3b")][Xx("0x75")](1));if(!x[Xx("0x41")]((({data:t})=>t[Xx("0x9a")][Xx("0x1a")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x39")](o[Xx("0x9a")])){e[Xx("0x53")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x94")].document.registerPostFixer((e=>{let o=!1;const s=t.plugins[Xx("0x8f")](Xx("0x64")).me,r=n[Xx("0x0")]()[Xx("0xd")]((t=>t.isInContent&&t[Xx("0x3e")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0x20")])for(const e of t[Xx("0x32")]()){const n=e[Xx("0x77")]().getContainedElement();if(n)if(n.is(Xx("0x7"),Xx("0x12"))&&Zx(n)){t[Xx("0x78")](e[Xx("0x2")]),i[Xx("0x83")](n),o=!0;const s=n.nextSibling,r=n[Xx("0x44")],a=s&&s.is(Xx("0x7"),"tableCellSuggestion"),c=r&&r.is(Xx("0x7"),"tableCellSuggestion");a&&!i[Xx("0x62")](s)&&x[Xx("0x83")](s),c&&!i[Xx("0x62")](r)&&x.add(r)}else n.is(Xx("0x7"),"paragraph")&&n[Xx("0x2d")]&&(t[Xx("0x78")](e[Xx("0x2")]),o=!0)}else if(Xx("0x6d")==t[Xx("0x20")]){if(!t[Xx("0x24")]||!t[Xx("0x24")][Xx("0xe")])continue;const e=t[Xx("0x24")].markerAttributes;if(e&&Object[Xx("0x72")](e).length)continue;const n=t[Xx("0x24")][Xx("0xe")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0x20")].startsWith(Xx("0x30"))){if(!e[Xx("0x24")][Xx("0xe")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x24")][Xx("0xe")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x19")](t);for(const t of x)e[Xx("0x3")](t);return o})),t.conversion[Xx("0x48")]("editingDowncast").markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Xx("0x1f")}),t.conversion[Xx("0x48")]("dataDowncast")[Xx("0x66")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[Xx("0x58")][Xx("0x65")]?l(t,!1):null,converterPriority:Xx("0x1f")});const d=t.editing[Xx("0x17")];this[Xx("0x55")](d[Xx("0x61")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Xx("0x87")](e[Xx("0x56")])[Xx("0x8c")]())t.is(Xx("0x7"),Xx("0x95"))&&n.push(t);d.change((t=>{for(const e of n)t[Xx("0x1d")](t.createRangeIn(e),t[Xx("0x45")](e)),t[Xx("0x19")](e)}))}))}}function Zx(t){if(t[Xx("0x2d")])return!0;const e=t[Xx("0x6f")](0);return e.is("element",Xx("0x13"))&&e[Xx("0x2d")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x38")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["plugins","columnWidths","resizeTable","get","Users","handleSuggestionDescription","_suggestionFactory","getContainedElement","formatGroupId","subType","getTableColumnsWidths","TrackChangesEditing","locale","TableColumnResizeEditing","getAttribute","registerCustomCallback","selection","*Format:* resize table","formatBlock","bind","_descriptionFactory","data","discard","table","model","change","commandParams","resizeColumnWidths","editor","resizeTableWidth","handleResizeTableWidthCommand","accept","tableWidth","getSelectedElement","enableCommand"];var ea,na;ea=ta,na=194,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x9")][oa("0x10")].has("TableColumnResizeEditing"))return;const t=this[oa("0x9")][oa("0x10")][oa("0x13")](oa("0x1b"));t[oa("0xf")]("resizeTableWidth",this[oa("0xb")].bind(this)),t[oa("0xf")](oa("0x8"),this[oa("0xb")][oa("0x0")](this)),t[oa("0x16")][oa("0x1f")](oa("0x22"),oa("0x12"),oa("0xc"),t[oa("0x16")].getSuggestionCallback(oa("0x22"),null,"discard")),t[oa("0x16")][oa("0x1f")](oa("0x22"),"resizeTable","discard",t[oa("0x16")].getSuggestionCallback(oa("0x22"),null,oa("0xc"))),t[oa("0x1")].registerDescriptionCallback(this[oa("0x15")][oa("0x0")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor[oa("0x10")][oa("0x13")]("TrackChangesEditing"),o=this[oa("0x9")][oa("0x10")][oa("0x13")](oa("0x1d")),s=e[oa("0x4")]||this[oa("0x9")][oa("0x5")].document[oa("0x20")][oa("0xe")]();this[oa("0x9")][oa("0x5")][oa("0x6")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o[oa("0x1a")](r):null,x=s[oa("0x1e")](oa("0xd"))||null;const a=e[oa("0xd")]||x,c=e[oa("0x11")]||i,l=this.editor.plugins[oa("0x13")](oa("0x14")).me;for(const t of n.getSuggestions()){const e=t[oa("0x17")]();if(oa("0x12")===t[oa("0x19")]&&e===s){t.author!==l&&t[oa("0x3")]();const e=t[oa("0x2")][oa("0x7")];x=e[0][oa("0xd")],i=e[0][oa("0x11")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0xa"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x12")},[],oa("0x12"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x12")===e[oa("0x18")]){const t=oa("0x21");return{type:"format",content:Yo(this.editor[oa("0x1c")],t)}}}}const ra=["TrackChangesEditing","insertTemplate","get","editor","plugins","has","afterInit"];var ia,xa;ia=ra,xa=177,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x4")](){const t=this[aa("0x1")];t.plugins[aa("0x3")]("Template")&&t[aa("0x2")][aa("0x0")](aa("0x5")).enableCommand(aa("0x6"))}}const la=["plugins","commands","ELEMENT_TABLE_OF_CONTENTS","afterInit","insertTableOfContents","get","tableOfContents","locale","_descriptionFactory","enableCommand","registerElementLabel"];var da,ua;da=la,ua=150,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x7")](){const t=this.editor;if(!t[ga("0x5")][ga("0x9")](ga("0x8")))return;t.plugins.get("TrackChangesEditing")[ga("0x2")](ga("0x8"));const e=t[ga("0x4")][ga("0x9")]("TrackChangesEditing"),n=t[ga("0x0")];e[ga("0x1")][ga("0x3")](ga("0xa"),(t=>Yo(n,ga("0x6"),t)))}}const fa=["editor","createRange","_splitMarkerName","plugins","getChangedMarkers","updateMarker","TrackChangesEditing","document","suggestion","_descriptionFactory","removeMarker","newRange","start","model","differ","from","registerElementLabel","getNearestSelectionRange","schema","get","locale","isCollapsed","registerPostFixer","end","isEqual","title-content"];var ha,pa;ha=fa,pa=147,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0x9")];if(!t.plugins.has("Title"))return;const e=t[ba("0xc")][ba("0x2")](ba("0xf"));e[ba("0x12")][ba("0x19")]("title-content",(()=>Yo(t[ba("0x3")],"ELEMENT_TITLE"))),t[ba("0x16")][ba("0x10")][ba("0x5")]((n=>{let o=!1;const s=Array[ba("0x18")](t.model[ba("0x10")][ba("0x17")][ba("0xd")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0xb")](r);if(ba("0x11")!==s||!i[ba("0x14")])continue;const x=i[ba("0x14")],a=x[ba("0x6")].nodeBefore;if(!a||!a.is("element",ba("0x8")))continue;if(!x.start.isTouching(x[ba("0x6")]))continue;const c=t[ba("0x16")][ba("0x1")][ba("0x0")](x[ba("0x6")],"forward");if(c&&c[ba("0x4")]){const t=n[ba("0xa")](x[ba("0x15")],c.start);t[ba("0x7")](x)||(n[ba("0xe")](r,{range:t}),o=!0)}o||(n[ba("0x13")](r),o=!0)}return o}))}}const _a=["has","editor","plugins","redo","afterInit","get","enableCommand"];var Ta,Ca;Ta=_a,Ca=453,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x6")](){const t=this[ya("0x3")],e=t[ya("0x4")][ya("0x0")]("TrackChangesEditing");t[ya("0x4")][ya("0x2")]("UndoEditing")&&(e[ya("0x1")]("undo"),e[ya("0x1")](ya("0x5")))}}const Aa=["TableCaptionEditing","requires","toggleTableCaption","TrackChangesEditing","has","afterInit","plugins","editor","get","enableCommand"];var va,Ra;va=Aa,Ra=141,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x0")](){return[wx]}[Sa("0x4")](){const t=this[Sa("0x6")];t.plugins[Sa("0x3")](Sa("0x9"))&&t[Sa("0x5")][Sa("0x7")](Sa("0x2"))[Sa("0x8")](Sa("0x1"))}}const La=["*Change to:* %0","numbered","registerDescriptionCallback","getAttribute","toUpperCase","reversed","handleListStartCommand","startIndex","_getSuggestionBlocksForListStyle","plugins","change","has","list.properties","getSelectedBlocks","DocumentListPropertiesUtils","length","DocumentListUtils","document","model","handleListStyleCommand","_getSuggestionBlocks","commandName","listReversed","afterInit","listStyle","isFirstBlockOfListItem","from","type","_getTranslationKeyForListStyle","enableCommand","selection","commandParams","push","bind","TrackChangesEditing","handleDescriptions","isListItemBlock","markMultiRangeBlockFormat","handleListReversedCommand","_LIST_","format","listType","listStart","editor","get","config","expandListBlocksToCompleteList","getListTypeFromListStyleType"];var Na,Ma;Na=La,Ma=242,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x15")](){if(!this[wa("0x29")][wa("0x7")][wa("0x9")]("DocumentListPropertiesEditing"))return;const t=this[wa("0x29")][wa("0x2b")][wa("0x2a")](wa("0xa")),e=this[wa("0x29")].plugins[wa("0x2a")](wa("0x20"));t.styles&&e.enableCommand("listStyle",this[wa("0x11")][wa("0x1f")](this)),t[wa("0x3")]&&e.enableCommand(wa("0x14"),this[wa("0x24")].bind(this)),t[wa("0x5")]&&e[wa("0x1b")](wa("0x28"),this[wa("0x4")][wa("0x1f")](this)),e._descriptionFactory[wa("0x0")](this[wa("0x21")][wa("0x1f")](this))}[wa("0x11")](t,e={}){const n=this.editor[wa("0x7")][wa("0x2a")](wa("0x20")),o=this[wa("0x6")]();this[wa("0x29")][wa("0x10")][wa("0x8")]((()=>{n[wa("0x23")](o,{commandName:wa("0x16"),commandParams:[{type:e[wa("0x19")]}],formatGroupId:wa("0x16")})}))}handleListReversedCommand(t,e={}){const n=this.editor.plugins[wa("0x2a")](wa("0x20")),o=this[wa("0x29")][wa("0x7")][wa("0x2a")](wa("0xe")),s=this[wa("0x12")]((t=>o.isListItemBlock(t)&&wa("0x2f")===t[wa("0x1")](wa("0x27"))));null!==s&&this[wa("0x29")][wa("0x10")][wa("0x8")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this[wa("0x29")][wa("0x7")][wa("0x2a")]("TrackChangesEditing"),o=this.editor[wa("0x7")][wa("0x2a")](wa("0xe")),s=this[wa("0x12")]((t=>o[wa("0x22")](t)&&wa("0x2f")===t[wa("0x1")](wa("0x27"))));null!==s&&this[wa("0x29")][wa("0x10")][wa("0x8")]((()=>{n[wa("0x23")](s,{commandName:"listStart",commandParams:[{startIndex:e[wa("0x5")]}],formatGroupId:wa("0x28")})}))}[wa("0x21")](t){const e=this[wa("0x29")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x13")]){case wa("0x16"):o=wa("0x2e"),s={type:"format",content:Yo(e,o,Yo(e,this[wa("0x1a")](n[wa("0x1d")][0].type)))};break;case wa("0x14"):o=n[wa("0x1d")][0][wa("0x3")]?"*Format:* set order to reversed":"*Format:* set order to regular",s={type:wa("0x26"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[wa("0x1d")][0][wa("0x5")])}}return s}[wa("0x6")](){const t=this[wa("0x29")][wa("0x7")][wa("0x2a")](wa("0xe"));let e=Array[wa("0x18")](this[wa("0x29")][wa("0x10")][wa("0xf")][wa("0x1c")][wa("0xb")]());return e.push(...t[wa("0x2c")](e)),e=[...new Set(e)],e}[wa("0x12")](t){const e=this[wa("0x29")][wa("0x7")].get(wa("0xe"));let n=Array.from(this[wa("0x29")][wa("0x10")][wa("0xf")][wa("0x1c")][wa("0xb")]()).filter(t);if(!n[wa("0xd")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x17")](t)&&o[wa("0x1e")](t);return o}[wa("0x1a")](t){return"ELEMENT_"+this[wa("0x29")][wa("0x7")][wa("0x2a")](wa("0xc"))[wa("0x2d")](t)[wa("0x2")]()+wa("0x25")+t[wa("0x2")]().replace(/-/g,"_")}}const Fa=["tableBorderWidth","getAttribute","tableCellPadding","tableWidth","format","tableHeight","getSuggestionCallback","tableCellBorderStyle","editor","get","join","enqueueChange","nodeAfter","discard","handleDiscardAction","registerCustomCallback","_suggestionFactory","getSuggestions","removeAttribute","data","commandParams","tableCellProperties","registerDescriptionCallback","selection","tableCellBorderColor","tableCellHeight","TrackChangesTableProperties","enableCommand","TablePropertiesEditing","tableProperties","afterInit","_handlePropertyChange","model","TableCellPropertiesEditing","table","tableCellWidth","tableBackgroundColor","locale","getFirstPosition","tableBorderStyle","*Format:* change table cell properties","start","_getSuggestion","tableCellBorderWidth","has","accept","plugins","markBlockFormat","subType","formatBlock","document","tableCellVerticalAlignment","change","pluginName","tableCellBackgroundColor"];var Da,Pa;Da=Fa,Pa=446,function(t){for(;--t;)Da.push(Da.shift())}(++Pa);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x17")]=["tableBorderColor",Ba("0x21"),Ba("0x31"),"tableAlignment",Ba("0x34"),Ba("0x36"),Ba("0x1e")],this[Ba("0xf")]=[Ba("0x12"),Ba("0x1"),Ba("0x25"),Ba("0x33"),Ba("0x1d"),Ba("0x13"),Ba("0x30"),"tableCellHorizontalAlignment",Ba("0x2d")]}static get[Ba("0x2f")](){return Ba("0x14")}[Ba("0x18")](){const t=this.editor[Ba("0x28")][Ba("0x3")]("TrackChangesEditing");if(this[Ba("0x2")][Ba("0x28")][Ba("0x26")](Ba("0x16"))){for(const e of this[Ba("0x17")])t[Ba("0x15")](e,((t,n)=>{const o=this.editor[Ba("0x1a")].document.selection[Ba("0x20")]().findAncestor(Ba("0x1c"));this[Ba("0x19")](e,[o],this.tableProperties,Ba("0x17"),t,n)}));t[Ba("0xa")][Ba("0x9")](Ba("0x2b"),"tableProperties","accept",t[Ba("0xa")].getSuggestionCallback(Ba("0x2b"),null,"discard")),t[Ba("0xa")].registerCustomCallback(Ba("0x2b"),Ba("0x17"),Ba("0x7"),((t,e)=>this[Ba("0x8")](this[Ba("0x17")],t,e))),t[Ba("0xa")][Ba("0x9")]("formatBlock",Ba("0x17"),Ba("0x4"),(()=>!1))}if(this[Ba("0x2")][Ba("0x28")][Ba("0x26")](Ba("0x1b"))){for(const e of this[Ba("0xf")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x2")][Ba("0x28")].get("TableUtils").getSelectionAffectedTableCells(this[Ba("0x2")][Ba("0x1a")][Ba("0x2c")][Ba("0x11")]);this[Ba("0x19")](e,o,this[Ba("0xf")],Ba("0xf"),t,n)}));t[Ba("0xa")][Ba("0x9")](Ba("0x2b"),"tableCellProperties",Ba("0x27"),t[Ba("0xa")][Ba("0x0")](Ba("0x2b"),null,"discard")),t._suggestionFactory[Ba("0x9")](Ba("0x2b"),"tableCellProperties","discard",((t,e)=>this.handleDiscardAction(this[Ba("0xf")],t,e))),t._suggestionFactory[Ba("0x9")](Ba("0x2b"),Ba("0xf"),Ba("0x4"),(()=>!1))}t._descriptionFactory[Ba("0x10")]((t=>this.handleSuggestionDescription(t)))}[Ba("0x19")](t,e,n,o,s,r){const i=this[Ba("0x2")][Ba("0x28")][Ba("0x3")]("TrackChangesEditing");this[Ba("0x2")].model[Ba("0x5")](r.batch,(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x32")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x29")](t,{commandParams:[e]},[],o)}}))}[Ba("0x8")](t,e,n){const o=e[0][Ba("0x23")][Ba("0x6")],s=n[Ba("0xe")][0];this[Ba("0x2")].model[Ba("0x2e")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0xc")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0xd")])switch(t[Ba("0x2a")]){case Ba("0x17"):return{type:Ba("0x35"),content:Yo(this[Ba("0x2")][Ba("0x1f")],"*Format:* change table properties")};case"tableCellProperties":return{type:Ba("0x35"),content:Yo(this[Ba("0x2")][Ba("0x1f")],Ba("0x22"))}}}[Ba("0x24")](t,e){const n=this[Ba("0x2")][Ba("0x28")][Ba("0x3")]("TrackChangesEditing");for(const o of n[Ba("0xb")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ua=["_setSuggestionRange","insertion:discard","before","forceDefaultExecution","define","setAttribute","_isForcedDefaultExecutionBlock","ck-suggestion-marker-formatBlock","ck-suggestion-marker","collaboration.channelId","_findSuggestions","getUser","value","removeMarkers","_adapter","_customCallbacks","updateMarker","track-changes-adapter-already-set","updateSuggestion","splitPosition","pluginName","_addThreadToSuggestion","has","isBlock","containsRangeInObject","elementEnd","elementToElement","delete","_model","toJSON","commentThread","dataDowncast","parent","markerToHighlight","createPositionAt","elementStart","insertion:accept","$graveyard","formatGroupId","isInContent","editingDowncast","getNearestSelectionRange","clone","_cutOutSuggestionMarker","range","isDocumentOperation","containsPosition","multi","createRange","mapper","rethrowUnexpectedError","formatBlock","rejected","root","isObject","PENDING_ACTION_SUGGESTION","backward","removeClass","adapter","suggestion:","_editor","hasCommentThread","getRanges","high","markerName","suggestion","track-changes-suggestion-not-found","every","formatInline:chain","toViewElement","moveTargetPosition","conversion","isLimit","config","deletion:","open","_descriptionFactory","ck-suggestion-marker-","remove","isMultiRange","insertion","containsRange","execute","formatBlock:discard","selection","commands","_suggestions","createdAt","markMultiRangeBlockFormat","formatInline:discard","isRemovable","isIntersectingWithRange","move","nodeBefore","deleteContent","removeMarker","getFirstMarker","_splitMarkerName","consumable","never","getIntersection","trackChanges.mergeNestedSuggestions","get","ready","formatBlock:chain","addMarkerName","_joinSuggestions","external:","getCommentThread","change:data","isTouching","author","insertion:join","getMarkers","stop","removeMarker:suggestion:formatBlock","_saved","removeComment","plugins","addUser","group","getDifference","getAttribute","_setSuggestionData","track-changes-adapter-missing-getsuggestion","track-changes-suggestion-data-mismatch","normal","_removeSuggestion","markBlockFormat","_checkSuggestionCorrectness","_enabledCommands","isEqual","for","from","isBefore","trackChanges.trackFormatChanges","map","rootName","fire","skipNestingCheck","getSuggestions","some","suggestionChanged","oldRange","buildSuggestion","locale","accepted","after","item","isAtEnd","_createSuggestion","authorName","insertContent","containerElement","newRange","detach","then","getChangedMarkers","deletion","document","differ","includes","notReady","setTo","set","suggestionLoaded","getShiftedBy","editor","getSuggestionCallback","subType","isCollapsed","markMultiRangeDeletion","getMultiRangeId","markMultiRangeInsertion","acceptSuggestion","removed","_handleNewSuggestionMarker","getSuggestion","join","_joinWithAdjacentSuggestions","CommentsRepository","options","getItems","previous","_addSuggestionMarker","lowest","add","getFirstRange","widget","enableCommand","isExternal","originalSuggestionId","formatInline:","name","data","_registerDefaultCallbacks","isUndo","end","markDeletion","markerReady","addHighlight","trackChanges","filter","_mergeNestedSuggestions","markers","_refreshSuggestionsChain","discard","_breakSuggestionMarker","unbindElementFromMarkerName","isInsideObject","_getAuthorFromId","ck-suggestion-marker--active","getCustomProperty","change","upcast","sort","schema","low","_defaultCallbacks","formatInline","insert","isLocal","containsItem","createElement","_suggestionFactory","getAncestors","setSelection","applyOperation","always","formatInline:accept","formatBlock:","targetPosition","start","getAllAdjacentSuggestions","multipleBlocks","data-suggestion","values","position","highest","createPositionAfter","splice","deletion:discard","addComment","acceptAllSuggestions","consume","hasComments","markInsertion","formatInline:join","getWalker","createPositionBefore","authoredAt","trackChangesCommand","_getSuggestionData","@external","insertion:chain","formatBlock:accept","substr","listenTo","track-changes-user-not-found","TrackChangesEditing","_getExternalAuthor","removeAttribute","isAfter","size","accept","writer","dataReady","addSuggestionData","formatBlock:join","registerPostFixer","discardSelectedSuggestions","activeMarkers","acceptSelectedSuggestions","fromRange","length","insertion:","markerNameToElements","_updateSuggestionData","$textProxy","_suggestionState","creator","isOwn","enqueueChange","attributes","_commentsRepository","addRange","addSuggestion","nodeAfter","deletion:accept","batch","marker-count","isAtStart","push","_rangeIsInLocalUserInsertion","Users","stopListening","documentSelection","commandName","showSuggestionHighlights","_trackFormatChanges","addMarker:suggestion:formatBlock","hasSuggestion","getLastMatchingPosition","requires","catch","isNextTo","createSelection","track-changes-command-not-found","forward","discardAllSuggestions","$marker","type","PendingActions","bindElementToMarker","next","createRangeIn","addClass","howMany","split","model","discardSuggestion","markerToData"];var Ga,Ha;Ga=Ua,Ha=203,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{static get[Wa("0x64")](){return[Wa("0x12b"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,zs,Js,er,Oa,xr,ur,br,yr,Lr,Dr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,zi,$i,tx,ix,ux,px,yx,Sx,wx,jx,zx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[Wa("0x8b")](){return Wa("0x38")}constructor(t){function e(t){return t[Wa("0xff")]((t=>String.fromCharCode(t)))[Wa("0x129")]("")}super(t),this[Wa("0x11b")](Wa("0x44"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Wa("0x93")].change((()=>{for(const e of[...s,...o])this._model[Wa("0x1")][Wa("0x8d")](e)&&t.editing.reconvertMarker(e)}))})),this[Wa("0xc3")]=new ss(this.editor[Wa("0x74")][Wa("0xd")],this[Wa("0x11e")][Wa("0x108")]),this[Wa("0x85")]=null,this[Wa("0x15")]=new Va(this[Wa("0x11e")]),this[Wa("0xcd")]=new Map,this[Wa("0x51")]=t[Wa("0xed")].get(Wa("0x12b")),this[Wa("0xf9")]=new Set,this[Wa("0x93")]=this[Wa("0x11e")][Wa("0x74")],this[Wa("0x4c")]=new WeakMap,this[Wa("0x7d")]=!1,t[Wa("0xc0")][Wa("0x7b")](Wa("0xfe"),"default"),this[Wa("0x60")]=t[Wa("0xc0")].get(Wa("0xfe")),t[Wa("0xc0")][Wa("0x7b")]("trackChanges.mergeNestedSuggestions",!0),this[Wa("0x0")]=t.config.get(Wa("0xdc")),this[Wa("0x30")]=new u(t,this[Wa("0xf9")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,54,51,48])}init(){const t=this.editor;t[Wa("0xbe")][Wa("0xfb")](Wa("0x9f"))[Wa("0x98")]({model:Wa("0xb8"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[Wa("0xb7")]),o=[Wa("0x7f"),Wa("0xc4")+n];let s=3e3;return this[Wa("0x44")][Wa("0x118")](t[Wa("0xb7")])&&(o.push(Wa("0x8")),s=3010),Wa("0x115")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Wa("0xbe")][Wa("0xfb")](Wa("0x96"))[Wa("0x131")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[Wa("0x12c")][Wa("0x5f")])return;const s=n.item;if(!s)return;const r=o[Wa("0xa8")][Wa("0xbc")](s);t.model[Wa("0xd")][Wa("0xad")](s)&&r&&!r[Wa("0x9")](Wa("0x133"))&&r.is(Wa("0x110"))&&(0,x.toWidget)(r,o[Wa("0x3e")])}),{priority:Wa("0xb6")})})),t[Wa("0xbe")].for(Wa("0x96")).markerToHighlight({model:Wa("0xb8"),view:(t,e)=>{if(!e.options[Wa("0x5f")])return null;const{type:n}=this[Wa("0xd8")](t[Wa("0xb7")]);return{classes:[Wa("0x7f"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Wa("0x10b")])return;if(o.item.is(Wa("0xcb")))return void s[Wa("0xd9")].consume(o[Wa("0x10b")],n[Wa("0x138")]);const r=s[Wa("0xa8")][Wa("0xbc")](o[Wa("0x10b")]);if(!o[Wa("0x10b")].is("element")||!t.model.schema[Wa("0x8e")](o[Wa("0x10b")])||r[Wa("0x9")](Wa("0x13f")))return;const{id:i}=this._splitMarkerName(o.markerName);s[Wa("0x3e")].addClass([Wa("0x7f"),Wa("0x7e")],r),s[Wa("0x3e")][Wa("0x7c")](Wa("0x20"),i,r),s[Wa("0xa8")][Wa("0x6e")](r,o.markerName),e&&(this.activeMarkers[Wa("0x118")](o.markerName)?s[Wa("0x3e")][Wa("0x71")](Wa("0x8"),r):s[Wa("0x3e")][Wa("0xb0")](Wa("0x8"),r));for(const e of t.model[Wa("0x70")](o.item)[Wa("0x12d")]())s.consumable[Wa("0x29")](e,n[Wa("0x138")]);s[Wa("0xd9")][Wa("0x29")](o[Wa("0x10b")],n.name)};t.conversion[Wa("0xfb")](Wa("0x96"))[Wa("0x131")]((t=>{t.on(Wa("0x61"),((t,e,o)=>{o[Wa("0x12c")][Wa("0x5f")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Wa("0x23")})})),t[Wa("0xbe")][Wa("0xfb")](Wa("0x96"))[Wa("0x76")]({model:Wa("0xb8"),view:(t,e)=>e[Wa("0x12c")][Wa("0x5f")]?null:{group:"suggestion",name:t[Wa("0x35")](11)}}),t[Wa("0xbe")].for(Wa("0xb"))[Wa("0x91")]({view:{name:Wa("0xb8"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[Wa("0xf1")]("suggestion-type")+":"+t[Wa("0xf1")]("id");return t[Wa("0xf1")]("marker-count")&&(n+=":"+t[Wa("0xf1")](Wa("0x57"))),e[Wa("0x14")](Wa("0x6b"),{"data-name":n})}}),t[Wa("0xbe")][Wa("0xfb")](Wa("0xb")).dataToMarker({view:Wa("0xb8")}),t.conversion.for(Wa("0x9f"))[Wa("0x131")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:Wa("0xb6")})})),t[Wa("0xbe")].for("editingDowncast").add((t=>{t.on(Wa("0xea"),((t,e,n)=>{const o=n[Wa("0xa8")][Wa("0x49")](e[Wa("0xb7")]);if(o)for(const t of o)t.getCustomProperty(Wa("0x13f"))||(n[Wa("0x3e")][Wa("0xb0")](["ck-suggestion-marker",Wa("0x7e"),Wa("0x8")],t),n[Wa("0x3e")][Wa("0x3a")](Wa("0x20"),t),n.mapper[Wa("0x5")](t,e.markerName))}),{priority:Wa("0xb6")})})),t[Wa("0x74")].document[Wa("0x42")]((e=>{let n=!1;const o=Array[Wa("0xfc")](t[Wa("0x74")][Wa("0x116")][Wa("0x117")][Wa("0x114")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(Wa("0xb8")!==o)continue;const d=this._suggestions.get(l);if(null!=a[Wa("0x111")])if(Wa("0x10")==c&&(n=n||Xa(a[Wa("0x111")],x,e,t.model[Wa("0xd")])),a[Wa("0x111")][Wa("0x121")]||"$graveyard"==a[Wa("0x111")][Wa("0xac")].rootName||Wa("0xaa")==c&&!Ja(a[Wa("0x111")])||Wa("0x115")==c&&(qa(i=a.newRange)||(r=i)[Wa("0x1d")][Wa("0x97")]==r.end[Wa("0xd4")]&&r.start[Wa("0x10c")]))e.removeMarker(x),n=!0;else{if(!d||!d[Wa("0x9e")])continue;s[Wa("0x131")](d)}}var r,i;return s[Wa("0x3c")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[Wa("0x74")][Wa("0x116")][Wa("0x42")]((e=>{let n=!1;for(const o of t.model[Wa("0x116")][Wa("0x117")].getChanges()){if(Wa("0x11")!=o[Wa("0x6c")])continue;const s=o[Wa("0x22")][Wa("0x11d")](o.length);if(s[Wa("0x10c")])for(const r of this[Wa("0xcd")].values()){if(r[Wa("0xc6")]||!r[Wa("0x9e")])continue;if(Wa("0xaa")!=r[Wa("0x6c")])continue;const i=r[Wa("0x132")]();if(i[Wa("0x1d")].parent!=i[Wa("0x13c")][Wa("0x97")]&&i[Wa("0x13c")].isEqual(o[Wa("0x22")])){const o=t[Wa("0x74")].createRange(i.start,s);e[Wa("0x87")](r[Wa("0xd7")](),{range:o}),n=!0}}}return n})),t[Wa("0x74")][Wa("0x1")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[Wa("0xd8")](e[Wa("0x138")]),n=this[Wa("0xcd")][Wa("0xdd")](t);n&&n[Wa("0xe0")](e[Wa("0x138")])}})),t[Wa("0x74")][Wa("0x116")].on(Wa("0xe4"),(()=>{const e=Array[Wa("0xfc")](t[Wa("0x74")][Wa("0x116")][Wa("0x117")][Wa("0x114")]())[Wa("0x141")]((t=>"suggestion"===this[Wa("0xd8")](t[Wa("0x138")])[Wa("0xef")]));if(0===e.length)return;e.sort(((t,e)=>{const n=t[Wa("0x139")][Wa("0x106")],o=e[Wa("0x139")][Wa("0x106")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Wa("0x1d")][Wa("0xfd")](o[Wa("0x1d")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Wa("0xd8")](t);if(null===s[Wa("0x106")]){const e=this._handleNewSuggestionMarker(t);o.add(e)}else{const t=this._suggestions[Wa("0xdd")](e);null!==s.newRange||t.isInContent?(n[Wa("0x131")](t.head),o[Wa("0x131")](t)):this[Wa("0xf6")](t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this[Wa("0x101")](Wa("0x105"),t)})),t.model.on(Wa("0x18"),((e,n)=>{const o=n[0];if(!this[Wa("0xcd")][Wa("0x3c")])return;if(!o[Wa("0xa4")])return;if(o.batch[Wa("0x13b")]||!o[Wa("0x56")][Wa("0x12")])return;let s,r;switch(o[Wa("0x6c")]){case Wa("0x11"):s=t[Wa("0x74")].createPositionAt(o[Wa("0x22")]),r=s[Wa("0x11d")](o[Wa("0x72")]);break;case"split":s=t[Wa("0x74")][Wa("0x99")](o[Wa("0x8a")]),r=t[Wa("0x74")][Wa("0x99")](o[Wa("0xbd")]);break;case Wa("0xd3"):s=t.model.createPositionAt(o[Wa("0x1c")]),r=s[Wa("0x11d")](o[Wa("0x72")]);break;default:return}const i=t[Wa("0x74")].createRange(s,r);t.model[Wa("0xa")]((()=>{for(const{suggestion:t,meta:e}of this[Wa("0x81")](i)){if(t[Wa("0xc6")])continue;if("formatInline"==t[Wa("0x6c")])continue;const n=t[Wa("0x139")]&&t[Wa("0x139")][Wa("0x1f")];("formatBlock"!=t[Wa("0x6c")]||"split"==o[Wa("0x6c")]&&!n)&&(e.containsRangeInObject||Wa("0xc7")==t.type&&e[Wa("0x4e")]||t[Wa("0x132")]()[Wa("0xc8")](i)&&this[Wa("0x4")](t,s,r))}}))}),{priority:Wa("0x130")}),t[Wa("0x74")].on(Wa("0xd5"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Wa("0x7a")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[Wa("0x30")][Wa("0x83")])return;if(o.isCollapsed)return;const r=t[Wa("0x74")].schema,{start:i,end:x}=o[Wa("0x132")](),a=i.nodeAfter&&r[Wa("0xbf")](i[Wa("0x54")])?null:r[Wa("0xa0")](i,Wa("0x69")),c=x.nodeBefore&&r[Wa("0xbf")](x[Wa("0xd4")])?null:r[Wa("0xa0")](x,Wa("0xaf")),l=t[Wa("0x74")][Wa("0xa7")](a?a.start:i,c?c[Wa("0x13c")]:x);t.model[Wa("0xa")]((e=>{this[Wa("0x13d")](l);const n=t.model[Wa("0xd")].getNearestSelectionRange(l[Wa("0x1d")]);o.is(Wa("0x5d"))?e[Wa("0x17")](n):o[Wa("0x11a")](n)})),e[Wa("0xe9")]()}),{priority:e.priorities[Wa("0xf5")]+10}),t[Wa("0x74")].on(Wa("0x10f"),((e,n)=>{const o=n[n[Wa("0x47")]-1];o&&o[Wa("0x7a")]||this._isForcedDefaultExecutionBlock||this.trackChangesCommand[Wa("0x83")]&&(t.model[Wa("0xa")]((()=>{let o=t[Wa("0x74")][Wa("0x10f")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[Wa("0xa1")]();const s=o.end.nodeBefore,r=t.model.schema;s&&r[Wa("0x8e")](s)&&!r.isObject(s)&&(o=t[Wa("0x74")].createRange(o[Wa("0x1d")],t[Wa("0x74")][Wa("0x99")](s,Wa("0x13c")))),this.markInsertion(o)})),e[Wa("0xe9")]())}),{priority:Wa("0xb6")}),this[Wa("0x11e")].commands[Wa("0x131")](Wa("0x140"),this[Wa("0x30")]),this[Wa("0x134")](Wa("0x140"));const o=new p(t,this[Wa("0xcd")]);t[Wa("0xcc")][Wa("0x131")]("acceptSuggestion",o),this.enableCommand(Wa("0x125"));const s=new C(t,this[Wa("0xcd")]);t[Wa("0xcc")].add(Wa("0x75"),s),this[Wa("0x134")](Wa("0x75")),t[Wa("0xcc")].add(Wa("0x28"),new F(t,o,this[Wa("0xcd")])),this.enableCommand(Wa("0x28")),t[Wa("0xcc")][Wa("0x131")]("discardAllSuggestions",new F(t,s,this[Wa("0xcd")])),this[Wa("0x134")](Wa("0x6a")),t[Wa("0xcc")].add("acceptSelectedSuggestions",new U(t,o,this[Wa("0xcd")])),this.enableCommand(Wa("0x45")),t[Wa("0xcc")].add(Wa("0x43"),new U(t,s,this[Wa("0xcd")])),this[Wa("0x134")](Wa("0x43"));const r=t[Wa("0xed")].get(Wa("0x12b"));this.listenTo(r,Wa("0x27"),((t,{threadId:e})=>{const n=this[Wa("0xcd")][Wa("0xdd")](e);n&&n[Wa("0x95")]&&1===n[Wa("0x95")][Wa("0x47")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[Wa("0x36")](r,Wa("0xec"),((t,{threadId:e})=>{const n=this._suggestions[Wa("0xdd")](e);n&&n.commentThread&&!n[Wa("0x95")][Wa("0x47")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:Wa("0xe")})}set adapter(t){if(this[Wa("0x85")])throw new e.CKEditorError(Wa("0x88"),this);this[Wa("0x85")]=t}get[Wa("0xb1")](){return this[Wa("0x85")]}[Wa("0x103")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Wa("0xcd")][Wa("0x21")]())t&&!e[Wa("0x9e")]||n[Wa("0x59")](e);return e?n[Wa("0xff")]((t=>t[Wa("0x94")]())):n}[Wa("0x128")](t){const n=this._suggestions[Wa("0xdd")](t);if(!n)throw new e.CKEditorError(Wa("0xb9"),this);return n}[Wa("0x62")](t){return this[Wa("0xcd")][Wa("0x8d")](t)}[Wa("0x40")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Wa("0x6c")][Wa("0x73")](":"),i=this[Wa("0xcd")].get(n)||this._createSuggestion(s,r,n,e,o);if(this[Wa("0x8c")](i),this[Wa("0xf8")](i,s,r||null,e),i[Wa("0xce")]=t.createdAt,o&&o[Wa("0x32")]){const t=o[Wa("0x32")],e=this[Wa("0x39")](t[Wa("0x10e")]);i[Wa("0x2f")]=t[Wa("0xce")],i[Wa("0xe6")]=e,i[Wa("0x135")]=!0}else i[Wa("0x2f")]=t.createdAt;switch(t[Wa("0x139")]&&(i[Wa("0x139")]=t.data),t[Wa("0x50")]&&(i[Wa("0x50")]=t[Wa("0x50")]),this[Wa("0x85")]&&this[Wa("0x85")][Wa("0x53")]||(i[Wa("0xeb")]=!0),this._suggestionState[Wa("0xdd")](i)){case Wa("0x119"):this[Wa("0x4c")].set(i,"dataReady");break;case"markerReady":i[Wa("0x9e")]?(this[Wa("0x4c")][Wa("0x11b")](i,"ready"),this[Wa("0x101")](Wa("0x11c"),i)):this[Wa("0x4c")][Wa("0x11b")](i,Wa("0x126"))}return i}[Wa("0x125")](t){this[Wa("0x7a")]((()=>{this[Wa("0x11e")][Wa("0x74")][Wa("0xa")]((()=>{for(const e of t[Wa("0x1e")]())e[Wa("0x3d")]()}))}))}discardSuggestion(t){this[Wa("0x7a")]((()=>{this[Wa("0x11e")][Wa("0x74")][Wa("0xa")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[Wa("0x3")]()}))}))}[Wa("0x134")](t,n){const o=this[Wa("0x11e")][Wa("0xcc")][Wa("0xdd")](t);if(!o)throw new e.CKEditorError(Wa("0x68"),this,{commandName:t});this[Wa("0xf9")][Wa("0x131")](o),n&&o.on(Wa("0xc9"),((t,e)=>{this[Wa("0x30")][Wa("0x83")]&&(this._isForcedDefaultExecutionBlock||e[Wa("0x47")]>0&&e[e.length-1]&&e[e[Wa("0x47")]-1][Wa("0x7a")]||(n(((...t)=>o[Wa("0xc9")](...t,{forceDefaultExecution:!0})),...e),t[Wa("0xe9")]()))}),{priority:Wa("0xb6")})}[Wa("0x7a")](t){let n,o;const s=this[Wa("0x7d")];this[Wa("0x7d")]=!0;try{n=t()}catch(t){o=t}return s||(this[Wa("0x7d")]=!1),o&&e.CKEditorError[Wa("0xa9")](o,this),n}[Wa("0x2b")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[Wa("0x11e")][Wa("0xed")].get(Wa("0x5b")).me;for(const{suggestion:e,meta:o}of this[Wa("0x81")](t,Wa("0xc7")))if(o.isOwn){if(!o[Wa("0x66")]){if(!this[Wa("0x0")]&&o.containsRangeInObject)continue;return e}if(n==e[Wa("0x120")]){const n=e.getFirstRange();return n[Wa("0x1d")][Wa("0xfa")](t[Wa("0x13c")])?this._setSuggestionRange(e,this[Wa("0x93")][Wa("0xa7")](t[Wa("0x1d")],n.end)):this[Wa("0x77")](e,this[Wa("0x93")][Wa("0xa7")](n[Wa("0x1d")],t[Wa("0x13c")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:Wa("0xc7"),a=this[Wa("0xf2")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[Wa("0x124")](t,n=Wa("0xa6"),o={}){const s=this[Wa("0x11e")].plugins[Wa("0xdd")](Wa("0x5b")).me,r=this._suggestionFactory[Wa("0x11f")]("insertion",n,Wa("0x129"));for(const e of this[Wa("0x103")]())if(e[Wa("0xe6")].id==s.id&&Wa("0xc7")==e[Wa("0x6c")]&&e[Wa("0x120")]==n&&(r(e[Wa("0xb5")](),t)||r(t,e.getRanges()))){for(const n of t)e[Wa("0x52")](n);return e}if(this[Wa("0x0")])for(const e of t)for(const{suggestion:n,meta:o}of this[Wa("0x81")](e,Wa("0xc7"))){if(!o[Wa("0x4e")])continue;let e=!0;for(const o of n[Wa("0xb5")]())for(const n of t)if(!o[Wa("0xc8")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=Wa("0x48")+n,c=this[Wa("0xf2")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Wa("0x12f")](a,i,x,e,Zo[Wa("0x123")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[Wa("0x121")])return null;if(Wa("0xda")===this[Wa("0x60")]){const e=this._suggestionFactory[Wa("0x11f")]("formatInline",o,"accept");return this[Wa("0x7a")]((()=>e([t],n,s))),null}const r=this[Wa("0x11e")][Wa("0xed")][Wa("0xdd")](Wa("0x5b")).me,i=[];if(Wa("0x19")!==this[Wa("0x60")])for(const{suggestion:e,meta:n}of this[Wa("0x81")](t,"insertion"))n[Wa("0x4e")]&&!n[Wa("0x6")]&&i[Wa("0x59")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Wa("0x59")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Wa("0x47")];){const o=n[e][Wa("0xf0")](t);n[Wa("0x25")](e,1,...o),e+=o.length}}return n}(t,i);x[Wa("0x47")]&&this[Wa("0x93")].change((()=>{for(const t of x){const e=this._suggestionFactory[Wa("0x11f")](Wa("0x10"),o,"accept");this[Wa("0x7a")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Wa("0x1d")],a=t[Wa("0x13c")];for(const{suggestion:e,meta:n}of this[Wa("0x81")](t,Wa("0x10"))){if(!n.isOwn)continue;if(e[Wa("0x120")]!=o)continue;const s=e.getFirstRange();if(s[Wa("0xc8")](t,!0))return null;x=x[Wa("0xfd")](s.start)?x:s.start,a=a[Wa("0x3b")](s[Wa("0x13c")])?a:s[Wa("0x13c")],i?s.start[Wa("0xfd")](i[Wa("0x132")]()[Wa("0x1d")])?(i[Wa("0x84")](),i=e):e.removeMarkers():i=e}const c=this[Wa("0x93")][Wa("0xa7")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[Wa("0xf2")]({id:t,type:Wa("0x137")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(Wa("0x137")+o,t,i,c)}}return null}[Wa("0xf7")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[Wa("0x9d")]=n[Wa("0x5e")]),n[Wa("0x1f")]=t.is("range"),s=s||$a(n);const i=o[Wa("0xff")]((t=>Qa(t,this[Wa("0x93")]))),x=t.is("range")?t:Qa(t,this[Wa("0x93")]);if(Wa("0xda")===this[Wa("0x60")]){const t=this[Wa("0x15")][Wa("0x11f")](Wa("0xaa"),s,Wa("0x3d"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i[Wa("0x59")](x);let a=!0;for(const t of i)if(!this[Wa("0x5a")](t)){a=!1;break}if(a&&"always"!==this._trackFormatChanges){const t=this[Wa("0x15")][Wa("0x11f")](Wa("0xaa"),s,"accept");return this[Wa("0x7a")]((()=>t([x],n,r))),null}let c=null,l=x.start,d=x[Wa("0x13c")];for(const{suggestion:t,meta:e}of this[Wa("0x81")](x,Wa("0xaa"))){if(!e[Wa("0x4e")]||e[Wa("0x66")]||e[Wa("0x8f")]||e[Wa("0x6")])continue;if(t[Wa("0x139")][Wa("0x9d")]!=n[Wa("0x9d")])continue;const o=t[Wa("0x132")]();if(t[Wa("0x120")]==s){if(o.containsRange(x,!0))return null;l=l[Wa("0xfd")](o[Wa("0x1d")])?l:o[Wa("0x1d")],d=d[Wa("0x3b")](o.end)?d:o[Wa("0x13c")],c?o[Wa("0x1d")].isBefore(c.getFirstRange()[Wa("0x1d")])?(c[Wa("0x84")](),c=t):t.removeMarkers():c=t}else{const e=x[Wa("0xdb")](o);this[Wa("0xa2")](t,e)}}const u=this[Wa("0x11e")].plugins[Wa("0xdd")](Wa("0x5b")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Wa("0x77")](c,this._model.createRange(l,d)),c;{const t=this[Wa("0xf2")]({id:g,type:Wa("0x1b")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Wa("0x12f")](Wa("0x1b")+s,g,m,this[Wa("0x93")][Wa("0xa7")](l,d)),t}}[Wa("0xcf")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[Wa("0x9d")]=n[Wa("0x5e")]);const i=t[0];n.multipleBlocks=i.is(Wa("0xa3")),s=s||$a(n);const x=o.map((t=>Qa(t,this[Wa("0x93")]))),a=i.is(Wa("0xa3"))?t:t[Wa("0xff")]((t=>Qa(t,this[Wa("0x93")])));if(Wa("0xda")===this[Wa("0x60")]){const t=this._suggestionFactory[Wa("0x11f")]("formatBlock",s,Wa("0x3d"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[Wa("0x59")](...a);let c=!0;for(const t of x)if(!this[Wa("0x5a")](t)){c=!1;break}if(c&&Wa("0x19")!==this[Wa("0x60")]){const t=this[Wa("0x15")][Wa("0x11f")]("formatBlock",s,Wa("0x3d"));return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[Wa("0x11e")][Wa("0xed")].get(Wa("0x5b")).me;for(const t of this[Wa("0x103")]()){if(t[Wa("0xe6")].id!=l.id)continue;if(Wa("0xaa")!=t[Wa("0x6c")]||t[Wa("0x139")].formatGroupId!=n[Wa("0x9d")])continue;const e=t[Wa("0x120")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[Wa("0xe8")]()){const r=s.getRange();if(o[Wa("0xfa")](r)){e?(a[Wa("0x25")](n,1),n--):t[Wa("0xd6")](s.name);break}}}}if(0==a[Wa("0x47")])return null;const d=this[Wa("0x15")][Wa("0x11f")](Wa("0xaa"),s,Wa("0x129"));for(const t of this[Wa("0x103")]())if(t[Wa("0xe6")].id==l.id&&Wa("0xaa")==t.type&&t[Wa("0x139")][Wa("0x9d")]==n[Wa("0x9d")]&&t.subType==s&&(d(t.getRanges(),a)||d(a,t[Wa("0xb5")]()))){for(const e of a)t[Wa("0x52")](e);return t}const u=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this[Wa("0xf2")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Wa("0x12f")](m,u,g,t,Zo[Wa("0x123")]());return f}[Wa("0x13d")](t,n=null,o={}){if(t[Wa("0x121")])return null;const s=this[Wa("0x11e")][Wa("0xed")][Wa("0xdd")](Wa("0x5b")).me,r=new i.LiveRange(t[Wa("0x1d")],t.end);for(const{suggestion:t,meta:e}of this[Wa("0x81")](r,Wa("0xc7")))if(e[Wa("0x4e")]&&!e.isNextTo)if(t[Wa("0xc6")]){const e=t[Wa("0xb5")]()[Wa("0x141")]((t=>Wa("0x9c")!=t[Wa("0xac")][Wa("0x100")]));if(e[Wa("0xba")]((t=>r[Wa("0xc8")](t,!0)))&&t[Wa("0x3")](),e[Wa("0x104")]((t=>t[Wa("0xc8")](r,!0)))){const t=this[Wa("0x15")].getSuggestionCallback("deletion",n,Wa("0x3d"));return this[Wa("0x7a")]((()=>t([r],null,o))),null}}else{const e=r[Wa("0xdb")](t[Wa("0x132")]());null!==e&&t._onDiscard([e],null,o)}if(r.detach(),r.isCollapsed||"$graveyard"==r[Wa("0xac")][Wa("0x100")])return null;let x=null,a=r[Wa("0x1d")],c=r.end;for(const{suggestion:t,meta:e}of this[Wa("0x81")](r,"deletion"))if(e.isOwn)if(t.isMultiRange&&this[Wa("0x0")]){let e=!0;for(const n of t.getRanges()){if(n.containsRange(r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[Wa("0x3")]()}else{const n=t[Wa("0x132")]();if(n[Wa("0xc8")](r,!0)){if(!this[Wa("0x0")]&&e.containsRangeInObject)continue;return t}a=a[Wa("0xfd")](n[Wa("0x1d")])?a:n[Wa("0x1d")],c=c.isAfter(n[Wa("0x13c")])?c:n[Wa("0x13c")],x?n[Wa("0x1d")].isBefore(x[Wa("0x132")]()[Wa("0x1d")])?(x[Wa("0x84")](),x=t):t[Wa("0x84")]():x=t}if(x)return this[Wa("0x77")](x,this[Wa("0x93")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this[Wa("0x93")][Wa("0xa7")](a,c),i=s.id,x=n?Wa("0xc1")+n:Wa("0x115"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0x12f")](x,t,i,r),l}}[Wa("0x122")](t,n=Wa("0xa6"),o={}){const s=this.editor.plugins.get(Wa("0x5b")).me,r=t[Wa("0xff")]((t=>new i.LiveRange(t[Wa("0x1d")],t[Wa("0x13c")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[Wa("0x81")](t,Wa("0xc7")))n[Wa("0x4e")]&&!n[Wa("0x66")]&&x.add(e);for(const e of x)if(e[Wa("0xc6")]){const s=e[Wa("0xb5")]();if((!e[Wa("0x50")]||!e[Wa("0x50")][Wa("0x102")])&&s[Wa("0xba")]((t=>r.some((e=>e[Wa("0xc8")](t,!0)))))&&e[Wa("0x3")](),r[Wa("0xba")]((t=>s[Wa("0x104")]((e=>e[Wa("0xc8")](t,!0)))))){const e=this[Wa("0x15")].getSuggestionCallback("deletion",n,Wa("0x3d"));return this[Wa("0x7a")]((()=>e(t,null,o))),null}}else{const t=e[Wa("0x132")]();if(r[Wa("0x104")]((e=>e[Wa("0xc8")](t,!0)))&&e.discard(),r[Wa("0xba")]((e=>t[Wa("0xc8")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(Wa("0x115"),n,"accept");return this[Wa("0x7a")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory[Wa("0x11f")](Wa("0x115"),n,Wa("0x129"));let c=null;for(const t of this[Wa("0x103")]())if(t[Wa("0xe6")].id==s.id&&t[Wa("0x9e")]&&Wa("0x115")==t[Wa("0x6c")]&&t.subType==n&&(a(t[Wa("0xb5")](),r)||a(r,t[Wa("0xb5")]())))if(c){if(t.commentThread&&t[Wa("0x95")][Wa("0x47")])continue;for(const e of t[Wa("0xb5")]())c[Wa("0xd2")](e)||c[Wa("0x52")](e);t[Wa("0x84")]()}else{c=t;for(const e of r)t[Wa("0xd2")](e)||t[Wa("0x52")](e)}if(c)return c;x.clear();for(const t of r)for(const{suggestion:e,meta:n}of this[Wa("0x81")](t,Wa("0x115")))n.isOwn&&x[Wa("0x131")](e);for(const t of x){const e=t.getRanges();if((!o||!o[Wa("0x102")])&&r[Wa("0xba")]((t=>e[Wa("0x104")]((e=>e.containsRange(t,!0))))))return t;(!t[Wa("0x50")]||!t[Wa("0x50")][Wa("0x102")])&&e[Wa("0xba")]((t=>r[Wa("0x104")]((e=>e[Wa("0xc8")](t,!0)))))&&t[Wa("0x3")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t[Wa("0x121")]||Wa("0x9c")==t[Wa("0xac")].rootName||this._addSuggestionMarker(u,l,d,t,Zo[Wa("0x123")]());return g}_setSuggestionRange(t,e){const n=t[Wa("0xd7")]();this._model.change((t=>{t[Wa("0x87")](n,{range:e})}))}[Wa("0x8c")](t){const e=t.id,n=this[Wa("0x11e")][Wa("0xc0")][Wa("0xdd")](Wa("0x80"));this._commentsRepository[Wa("0xb4")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Wa("0x51")][Wa("0xe3")](e);o.unbind(Wa("0xd1")),o[Wa("0xd1")]=!1,t[Wa("0x95")]=o}[Wa("0xf8")](t,n,o,s){if(t.type!=n||t[Wa("0x120")]!=o||t[Wa("0x4d")].id!=s)throw this[Wa("0x11e")].enableReadOnlyMode(Wa("0xf4")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[Wa("0xa2")](t,n){const o=t[Wa("0x132")]();if(n[Wa("0xfa")](o))t[Wa("0x84")]();else if(o.containsRange(n)){const s=this[Wa("0x93")].createPositionAt(n[Wa("0x1d")][Wa("0xd4")],Wa("0x13c"));this[Wa("0x77")](t,this._model[Wa("0xa7")](o[Wa("0x1d")],s));const r=(0,e.uid)(),i=t[Wa("0x4d")].id,x=t[Wa("0x6c")]+":"+t[Wa("0x120")];this[Wa("0xf2")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[Wa("0x50")]});const a=this[Wa("0x93")][Wa("0x99")](n[Wa("0x13c")].parent,Wa("0x10a")),c=this[Wa("0x93")][Wa("0xa7")](a,o[Wa("0x13c")]);this[Wa("0x12f")](x,r,i,c)}else if(o[Wa("0xa5")](n[Wa("0x1d")])){const e=this[Wa("0x93")][Wa("0x99")](n[Wa("0x1d")][Wa("0xd4")],Wa("0x13c"));this._setSuggestionRange(t,this._model[Wa("0xa7")](o.start,e))}else{const e=this[Wa("0x93")].createPositionAt(n.end[Wa("0x97")],Wa("0x10a"));this[Wa("0x77")](t,this._model[Wa("0xa7")](e,o.end))}}[Wa("0x5a")](t){for(const{suggestion:e,meta:n}of this[Wa("0x81")](t,Wa("0xc7"))){if(!n[Wa("0x4e")])continue;const o=e[Wa("0xb5")]();for(const e of o)if(!t.getDifference(e)[Wa("0x47")])return!0}return!1}[Wa("0x7")](t){const n=this.editor[Wa("0xed")][Wa("0xdd")](Wa("0x5b"))[Wa("0x82")](t);if(!n)throw new e.CKEditorError(Wa("0x37"),this);return n}[Wa("0x39")](t){const e=this.editor[Wa("0xed")][Wa("0xdd")](Wa("0x5b")),n=(0,r.hashObject)(Wa("0xe2")+t);return e[Wa("0x82")](n)||e[Wa("0xee")]({id:n,name:t})}[Wa("0x10d")](t,e,n,o,s){const r=this[Wa("0x7")](o),i=this[Wa("0x15")][Wa("0x107")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this[Wa("0x36")](i,"accept",(()=>{this[Wa("0x4a")](n,{state:Wa("0x109")})}),{priority:Wa("0xb6")}),this[Wa("0x36")](i,Wa("0x3"),(()=>{this[Wa("0x4a")](n,{state:Wa("0xab")})}),{priority:"high"}),this._suggestions[Wa("0x11b")](n,i),this._suggestionState[Wa("0x11b")](i,Wa("0x119")),i}[Wa("0xd8")](t){const e=t[Wa("0x73")](":");return{group:e[0],type:e[1],subType:e[Wa("0x47")]>=5?e[2]:null,id:e[Wa("0x47")]<5?e[2]:e[3],authorId:e[Wa("0x47")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[Wa("0x4")](t,n,o){const s=t[Wa("0x132")](),r=s[Wa("0x1d")],i=s.end;this[Wa("0x77")](t,this[Wa("0x93")][Wa("0xa7")](r,n));const x=(0,e.uid)(),a=t[Wa("0x4d")].id,c=t[Wa("0x6c")]+(t[Wa("0x120")]?":"+t[Wa("0x120")]:"");this[Wa("0xf2")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Wa("0x50")],data:t[Wa("0x139")]}),"formatBlock"==t[Wa("0x6c")]&&(o=this[Wa("0x93")][Wa("0x2e")](o[Wa("0x97")])),this[Wa("0x12f")](c,x,a,this[Wa("0x93")][Wa("0xa7")](o,i))}[Wa("0x81")](t,e=null){const n=[],o=this[Wa("0x93")][Wa("0xd")],s=this[Wa("0x11e")][Wa("0xed")][Wa("0xdd")](Wa("0x5b")).me;for(const r of this[Wa("0x103")]())if(r[Wa("0x9e")]&&(!e||r.type==e))for(const e of r.getRanges()){const i=t[Wa("0x1d")][Wa("0xfa")](e.end)||t[Wa("0x13c")].isEqual(e[Wa("0x1d")]);if(i||t[Wa("0xdb")](e)){const x=t[Wa("0xc8")](e)&&Ka(o,e[Wa("0x1d")],t),a=e[Wa("0xc8")](t)&&Ka(o,t[Wa("0x1d")],e);n.push({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,s){this[Wa("0x93")][Wa("0xa")]((r=>{let i=Wa("0xb2")+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[Wa("0xf6")](t){const e=t[Wa("0x12e")],n=t[Wa("0x6f")];t[Wa("0x12e")]=null,null!=e&&(e.next=null),t[Wa("0x6f")]=null,null!=n&&(n[Wa("0x12e")]=null),"ready"==this[Wa("0x4c")].get(t)&&(this[Wa("0x4c")].set(t,"removed"),this.fire("suggestionUnloaded",t,e,n))}[Wa("0xf2")](t){const n=t.id,o=this[Wa("0x40")](t);if(this[Wa("0x85")]&&this[Wa("0x85")][Wa("0x53")]){const s=this[Wa("0x11e")].plugins[Wa("0xdd")]("PendingActions"),r=o[Wa("0x2a")],i=o[Wa("0x120")]?o[Wa("0x6c")]+":"+o[Wa("0x120")]:o.type,x=this[Wa("0x11e")][Wa("0x108")],a=s.add(Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[Wa("0x139")]||null,originalSuggestionId:t[Wa("0x136")]||null,attributes:o[Wa("0x50")]};this[Wa("0x85")].addSuggestion(c)[Wa("0x113")]((t=>{o._saved=!0,s.remove(a),t&&t[Wa("0xce")]&&(this[Wa("0xcd")].get(n)[Wa("0xce")]=t.createdAt)}))[Wa("0x65")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Wa("0x11e")][Wa("0x74")][Wa("0x4f")]({isUndoable:!1},(()=>{o.discard()})),o[Wa("0x5c")](),this[Wa("0xcd")][Wa("0x92")](o.id),this[Wa("0x4c")][Wa("0x92")](o),t}))}return o}[Wa("0x4a")](t,e){const n=this[Wa("0x11e")][Wa("0xed")][Wa("0xdd")](Wa("0x6d")),o=this[Wa("0x128")](t);if(this[Wa("0x85")]&&this[Wa("0x85")].updateSuggestion)if(o[Wa("0xeb")]){const o=n[Wa("0x131")](Yo(this[Wa("0x11e")][Wa("0x108")],Wa("0xae")));this[Wa("0x85")][Wa("0x89")](t,e)[Wa("0x113")]((()=>{n[Wa("0xc5")](o)}))}else o.on("change:_saved",(()=>{this._updateSuggestionData(t,e)}))}[Wa("0x31")](t){if(!this[Wa("0x85")]||!this[Wa("0x85")][Wa("0x128")])throw new e.CKEditorError(Wa("0xf3"),this);return this[Wa("0x85")][Wa("0x128")](t)}[Wa("0x127")](t){const{id:e,type:n,subType:o,authorId:s}=this[Wa("0xd8")](t),r=this[Wa("0xcd")].get(e)||this[Wa("0x10d")](n,o,e,s,{});switch(this[Wa("0xf8")](r,n,o,s),this[Wa("0x4c")][Wa("0xdd")](r)){case"notReady":this[Wa("0x31")](e)[Wa("0x113")]((t=>{let n=Promise.resolve();t[Wa("0x2a")]&&(n=this[Wa("0x51")].fetchCommentThread({channelId:this[Wa("0x11e")][Wa("0xc0")][Wa("0xdd")](Wa("0x80")),threadId:e})),n[Wa("0x113")]((()=>{this.addSuggestionData(t)[Wa("0xeb")]=!0}))})),this[Wa("0x4c")][Wa("0x11b")](r,Wa("0x13e"));break;case Wa("0x126"):this[Wa("0x4a")](e,{state:Wa("0xc2")});case Wa("0x3f"):this[Wa("0x4c")][Wa("0x11b")](r,Wa("0xde")),this[Wa("0x101")]("suggestionLoaded",r);break;case Wa("0xde"):this[Wa("0x101")]("suggestionChanged",r)}return r[Wa("0xe0")](t),r}[Wa("0x2")](t){const e=Array[Wa("0xfc")](t)[Wa("0x141")]((t=>!t[Wa("0xc6")])),n=this[Wa("0x103")]({skipNotAttached:!0}).filter((t=>!t[Wa("0xc6")])),o=n[Wa("0x141")]((e=>!t[Wa("0x8d")](e))),s=new Map(n[Wa("0xff")]((t=>[t,this[Wa("0x15")][Wa("0x11f")](t[Wa("0x6c")],t[Wa("0x120")],"chain")]))),r=new Map(n[Wa("0xff")]((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[Wa("0x47")];t++)a(e[t],e,t+1);for(let t=0;t<e[Wa("0x47")];t++)a(e[t],o,0);for(let t=0;t<e[Wa("0x47")];t++){const n=e[t];!x[Wa("0x8d")](n)&&n[Wa("0x12e")]&&(n[Wa("0x12e")][Wa("0x6f")]===n&&(n[Wa("0x12e")][Wa("0x6f")]=null),n[Wa("0x12e")]=null),!i[Wa("0x8d")](n)&&n[Wa("0x6f")]&&(n[Wa("0x6f")][Wa("0x12e")]===n&&(n.next[Wa("0x12e")]=null),n[Wa("0x6f")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][Wa("0x6f")]=n[1],n[1][Wa("0x12e")]=n[0],i[Wa("0x131")](n[0]),x[Wa("0x131")](n[1]))}}function c(t,e){if(t[Wa("0xe6")].id!==e[Wa("0xe6")].id)return null;const n=s[Wa("0xdd")](t)(t,e,r[Wa("0xdd")](t),r[Wa("0xdd")](e));return n&&s[Wa("0xdd")](e)(t,e,r.get(t),r[Wa("0xdd")](e))?n[1].commentThread&&n[1][Wa("0x95")][Wa("0x47")]?null:n:null}}[Wa("0x12a")](t){const e=Array[Wa("0xfc")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[Wa("0x141")]((e=>!t[Wa("0x8d")](e))),s=new Map(e[Wa("0xff")]((t=>[t,this._suggestionFactory[Wa("0x11f")](t[Wa("0x6c")],t[Wa("0x120")],Wa("0x129"))]))),r=new Map(n[Wa("0xff")]((t=>[t,t.getRanges()])));for(let t=0;t<e[Wa("0x47")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Wa("0x47")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[Wa("0x6c")]!==e[Wa("0x6c")]||o[Wa("0xe6")].id!==e[Wa("0xe6")].id||o.subType!==e[Wa("0x120")])continue;const x=s.get(e),a=r[Wa("0xdd")](e),c=r[Wa("0xdd")](o),l=e[Wa("0x95")]&&e[Wa("0x95")].length,d=o.commentThread&&o[Wa("0x95")].length;if(!l&&x(c,a))return t[Wa("0xe1")](o,e),r[Wa("0x92")](e),!0;if(!d&&x(a,c))return t._joinSuggestions(e,o),r[Wa("0x92")](o),!0}return!1}}[Wa("0xe1")](t,e){if(t[Wa("0xc6")])for(const n of e[Wa("0xb5")]())t[Wa("0x52")](n);else{const n=e[Wa("0x132")]().end;this[Wa("0x77")](t,this[Wa("0x93")][Wa("0xa7")](t[Wa("0x132")]()[Wa("0x1d")],n))}e[Wa("0x84")]()}}class Va{constructor(t){this._editor=t,this[Wa("0x93")]=t[Wa("0x74")],this[Wa("0x86")]=new Map,this[Wa("0xf")]=new Map,this[Wa("0x13a")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[Wa("0x93")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Wa("0x11f")](t,e,Wa("0x3d"))(...n),onDiscard:(...n)=>this[Wa("0x11f")](t,e,"discard")(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[Wa("0x11b")](s,o)}[Wa("0x11f")](t,e,n){const o=t+":"+e+":"+n;return this[Wa("0x86")][Wa("0xdd")](o)||this[Wa("0xf")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[Wa("0xc")](((t,e)=>t.start[Wa("0xfd")](e[Wa("0x1d")])?1:-1)),this[Wa("0x93")].change((e=>{for(const n of t){let t;t=n.end.isAtEnd&&n[Wa("0x13c")][Wa("0x97")]==n.start[Wa("0x54")]?e[Wa("0x67")](n.start[Wa("0x54")],"on"):e[Wa("0x67")](n),this[Wa("0x93")][Wa("0xd5")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Wa("0x93")][Wa("0xa")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Wa("0xff")]((t=>(qa(t)&&(t=this[Wa("0x93")].createRange(t.end)),t)))[Wa("0x141")]((t=>Wa("0x9c")!==t.root[Wa("0x100")]));if(r[Wa("0x47")]<1)return;const x=Array[Wa("0xfc")](this._model[Wa("0x116")][Wa("0xcb")][Wa("0xb5")]()).map((t=>i.LiveRange[Wa("0x46")](t)));n[Wa("0x17")](r);for(const t of this[Wa("0xb3")][Wa("0xcc")][Wa("0xcc")]())t.refresh();s.push({forceDefaultExecution:!0}),this._editor[Wa("0xc9")](o,...s);const a=x[Wa("0x141")]((t=>Wa("0x9c")!=t.root[Wa("0x100")]));a[Wa("0x47")]>0&&n[Wa("0x17")](a);for(const t of x)t[Wa("0x112")]()}))},o=(t,e)=>1==t.length&&1==e[Wa("0x47")]&&t[0][Wa("0x13c")].isEqual(e[0][Wa("0x1d")]),s=(t,e,n,o)=>Za(t,e,n,o,this[Wa("0x93")])?[t,e]:Za(e,t,o,n,this[Wa("0x93")])?[e,t]:null;this[Wa("0xf")][Wa("0x11b")](Wa("0x9b"),t),this[Wa("0xf")][Wa("0x11b")](Wa("0x78"),e),this[Wa("0xf")].set(Wa("0xe7"),o),this[Wa("0xf")].set(Wa("0x33"),s),this[Wa("0xf")][Wa("0x11b")](Wa("0x55"),e),this[Wa("0xf")].set(Wa("0x26"),t),this[Wa("0xf")][Wa("0x11b")]("deletion:join",o),this[Wa("0xf")][Wa("0x11b")]("deletion:chain",s),this._defaultCallbacks[Wa("0x11b")](Wa("0x1a"),n),this[Wa("0xf")][Wa("0x11b")](Wa("0xd0"),t),this[Wa("0xf")][Wa("0x11b")](Wa("0x2c"),o),this[Wa("0xf")][Wa("0x11b")](Wa("0xbb"),t),this._defaultCallbacks[Wa("0x11b")](Wa("0x34"),n),this[Wa("0xf")][Wa("0x11b")](Wa("0xca"),t),this[Wa("0xf")].set(Wa("0x41"),o),this[Wa("0xf")].set(Wa("0xdf"),t)}}function Ka(t,e,n){for(const o of e[Wa("0x97")][Wa("0x16")]({includeSelf:!0,parentFirst:!0})){if(o[Wa("0xac")]==o)return!1;if(!n[Wa("0x13")](o))return!1;if(t[Wa("0xad")](o)||t[Wa("0xbf")](o))return!0}return!1}function qa(t){return t[Wa("0x13c")].parent==t[Wa("0x1d")][Wa("0x54")]&&t.end[Wa("0x58")]}function Xa(t,e,n,o){const s=t=>!t[Wa("0x10b")].is(Wa("0x4b"))&&!o[Wa("0xad")](t[Wa("0x10b")]),r=t[Wa("0x1d")][Wa("0x63")](s),i=t[Wa("0x13c")][Wa("0x63")](s,{direction:Wa("0xaf")});return!(t[Wa("0x1d")][Wa("0xfa")](r)&&t.end[Wa("0xfa")](i)||(r[Wa("0xfd")](i)?n[Wa("0x87")](e,{range:n[Wa("0xa7")](r,i)}):n[Wa("0xd6")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[Wa("0x1d")][Wa("0x54")];return e&&e.is("element")}function Qa(t,e){const n=e[Wa("0xd")][Wa("0xad")](t)||e[Wa("0xd")].isSelectable(t);return e[Wa("0xa7")](e.createPositionAt(t,Wa("0x79")),n?e[Wa("0x24")](t):e.createPositionAt(t,Wa("0x13c")))}function Za(t,e,n,o,s){if(n.end.isEqual(o[Wa("0x1d")]))return!0;if(t[Wa("0x6c")]!=e[Wa("0x6c")])return!1;if(!n[Wa("0x13c")][Wa("0xe5")](o[Wa("0x1d")]))return!1;const r=s.createRange(n[Wa("0x13c")],o[Wa("0x1d")])[Wa("0x2d")]();for(const t of r)if([Wa("0x9a"),Wa("0x90")][Wa("0x118")](t[Wa("0x6c")])&&s.schema[Wa("0xbf")](t.item))return!1;return!0}const Ya=["destroy","locale","getRanges","stopListening","bind","canAccept","_discardCommand","execute","view","commands","_acceptCommand","_editor","canDiscard","unbind","get","model","_removePendingAction","isDirty","isEnabled","discardSuggestion","plugins","commentThreadController","acceptSuggestion","_pendingAction","PendingActions","canEditAt","_setPendingAction","listenTo"];var tc,ec;tc=Ya,ec=215,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x18")]=e,this[nc("0x11")]=n,this.commentThreadController=o,this[nc("0x14")]=t,this[nc("0x13")]=t[nc("0x12")][nc("0x17")](nc("0x3")),this._discardCommand=t[nc("0x12")][nc("0x17")](nc("0x0")),this[nc("0x11")].bind(nc("0x1b")).to(this[nc("0x13")],this[nc("0xf")],((t,e)=>t||e)),this[nc("0x11")][nc("0xd")](nc("0xe")).to(this[nc("0x13")],nc("0x1b"),(t=>t&&this[nc("0x14")][nc("0x18")][nc("0x6")](e[nc("0xb")]()))),this[nc("0x11")][nc("0xd")](nc("0x15")).to(this._discardCommand,"isEnabled",(t=>t&&this[nc("0x14")].model[nc("0x6")](e[nc("0xb")]()))),this._pendingAction=null,n.isDirty&&this[nc("0x7")](),this.listenTo(n,nc("0x3"),(()=>this[nc("0x3")]())),this[nc("0x8")](n,nc("0x0"),(()=>this[nc("0x0")]())),this[nc("0x8")](n,"change:isDirty",(()=>{n[nc("0x1a")]?this[nc("0x7")]():this[nc("0x19")]()}))}[nc("0x3")](){this[nc("0x13")][nc("0x10")](this[nc("0x18")].id)}[nc("0x0")](){this[nc("0xf")][nc("0x10")](this[nc("0x18")].id)}[nc("0x9")](){this[nc("0x11")][nc("0x16")]("isEnabled"),this[nc("0x11")][nc("0x16")](nc("0xe")),this[nc("0x11")].unbind(nc("0x15")),this[nc("0xc")](),this[nc("0x2")][nc("0x9")](),this[nc("0x4")]&&this[nc("0x19")]()}[nc("0x7")](){const t=Yo(this[nc("0x14")][nc("0xa")],"PENDING_ACTION_SUGGESTION");this[nc("0x4")]=this[nc("0x14")][nc("0x1")][nc("0x17")](nc("0x5")).add(t)}_removePendingAction(){null!==this._pendingAction&&this[nc("0x14")][nc("0x1")][nc("0x17")](nc("0x5")).remove(this._pendingAction),this[nc("0x4")]=null}}const sc=["CommentView","commentsListView","canDiscard","updateComment","isActive","disableComments","isDirty","removeComment","element","_model","authoredAt","_localUser","_createCommentViews","commentThreadInputView","destroy","focus","bind","length","isReadOnly","cancel","delegate","_createCommentThreadInputView","fire","commentThread","showInput","_config","value","set","descriptionParts","setData","locale","commentInputView","addComment","editorConfig","hasDirtyComment","editor"];var rc,ic;rc=sc,ic=378,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[xc("0x1f")]=null,this[xc("0x9")](xc("0x16"),!1),this[xc("0x9")](xc("0x1c"),e[xc("0x1c")]),this[xc("0x22")](xc("0x1c")).to(e),this[xc("0x9")](xc("0xa"),[]),this.set(xc("0x18"),!1),this[xc("0x9")]("isEnabled",!1),this[xc("0x9")]("canAccept",!1),this[xc("0x9")](xc("0x14"),!1),this[xc("0x1b")]=e,this[xc("0x1d")]=n,this[xc("0x7")]=o,o[xc("0x17")]?this[xc("0x9")]("length",1):this[xc("0x1e")]()}[xc("0x21")](){this[xc("0x1a")][xc("0x21")]()}[xc("0x20")](){this[xc("0x13")]&&this[xc("0x13")].destroy(),this[xc("0x1f")]&&this[xc("0x1f")].destroy(),super[xc("0x20")]()}[xc("0x1e")](){const{CommentsListView:t}=this._config;this[xc("0x13")]=new t(this.locale,this._model[xc("0x5")],Object.assign({CommentView:this[xc("0x7")][xc("0x12")]},this[xc("0x7")])),this[xc("0x13")][xc("0x2")]("removeComment").to(this),this[xc("0x13")][xc("0x2")](xc("0x15")).to(this),this.commentsListView[xc("0x22")](xc("0x16")).to(this),this[xc("0x9")]("length",this[xc("0x13")][xc("0x23")]+1),this.bind(xc("0x23")).to(this.commentsListView,xc("0x23"),(t=>t+1)),this[xc("0x1f")]=this[xc("0x3")](),this.on(xc("0x19"),(()=>this[xc("0x21")]())),this[xc("0x22")]("isDirty").to(this.commentsListView,xc("0x10"),this[xc("0x1f")][xc("0xd")],xc("0x8"),((t,e)=>t||!!e))}[xc("0x3")](){const{CommentThreadInputView:t}=this[xc("0x7")],e=new t(this[xc("0xc")],this._localUser,this[xc("0x7")][xc("0xf")]),n=e[xc("0xd")];return e[xc("0x22")](xc("0x6")).to(this,xc("0x16"),this[xc("0x1b")][xc("0x5")],xc("0x0"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[xc("0x4")](xc("0xe"),e),n[xc("0x11")][xc("0xb")]("")})),n.on(xc("0x1"),(()=>this[xc("0x21")]())),n[xc("0x22")]("disabledSubmit").to(this[xc("0x1b")][xc("0x5")],"isReadOnly"),e}}const cc=["ck-annotation","locale","Accept suggestion","author","userView","push","fire","description","commentsListView","descriptionParts","discardSuggestion","innerText","setTemplate","canAccept","element","ck-suggestion__info-name","getExternalSuggestionNote","map",'" title="',"ck-suggestion","EXTERNAL_AVATAR","set","span","acceptButton","ck-annotation__info-time","ck-suggestion__info","commentThread","extendTemplate","_createButton","formatDateTime","EXTERNAL_IMPORT_WORD_AVATAR","getTemplate","disableComments","ck-suggestion__main","</span>","name","getUserViewNotificationText","ck-annotation__main","createElement","creator","canDiscard","_descriptionElement","EXTERNAL_IMPORT_WORD_SUGGESTION",'"></span>',"querySelector","importWord","EXTERNAL_SUGGESTION","ck-comment__external","ck-annotation__info","isActive","@external",'<span class="ck-suggestion-type">',"isExternal","ck-suggestion__actions","split",".ck-annotation__content-wrapper","innerHTML","ck-annotation__actions","acceptSuggestion","commentThreadInputView","authoredAt","div","ck-suggestion--accept","join","type","check","Discard suggestion","discardButton","title","bind","ck-suggestion__user","editorDestroyed","_model","_config","ck-annotation__content-wrapper","ck-suggestion--disabled-comments","</p>","attributes","ck-suggestion-wrapper--active",'<span class="ck-suggestion-color" style="background-color: ',"bindTemplate","editorReady","source","ck-suggestion--discard","delegate","children"];var lc,dc;lc=cc,dc=187,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(uc("0x31"),""),this[uc("0x36")](uc("0x31")).to(this,uc("0x50"),(t=>t&&t[0]?t[0].type:"")),this[uc("0x36")](uc("0x4e")).to(this,uc("0x50"),this,uc("0x22"),((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e.content,e.color)+uc("0x3d");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x1a")]=null,this[uc("0x8")]=this[uc("0xd")](Yo(e,uc("0x49")),t.icons[uc("0x32")],uc("0x2f"),uc("0x2b"),"sw"),this[uc("0x8")][uc("0x36")]("isEnabled").to(this,uc("0x54")),this.discardButton=this[uc("0xd")](Yo(e,uc("0x33")),t.icons.cancel,uc("0x44"),uc("0x51"),"sw"),this[uc("0x34")][uc("0x36")]("isEnabled").to(this,uc("0x19")),this[uc("0x4b")]=new r.UserView(e,this[uc("0x39")][uc("0x4a")],this.getUserViewNotificationText()),this[uc("0x4b")].extendTemplate({attributes:{class:[uc("0x37"),"ck-annotation__user"]}}),this[uc("0x53")](this[uc("0x10")]())}[uc("0x10")](){const t=this[uc("0x41")],e=[{tag:uc("0x2e"),attributes:{class:[uc("0xa"),uc("0x21")]},children:[{tag:uc("0x7"),children:[{text:this[uc("0x4b")].name}],attributes:{class:[uc("0x0"),"ck-annotation__info-name"]}},{tag:"time",attributes:{datetime:t.to(uc("0x2d")),class:["ck-comment__info-time",uc("0x9")]},children:[{text:t.to(uc("0x2d"),(t=>this._config[uc("0xe")](t)))}]}]},{tag:uc("0x2e"),attributes:{class:[uc("0x26"),uc("0x2a")]},children:[this[uc("0x8")],this[uc("0x34")]]},{tag:"div",attributes:{class:[uc("0x3b")]}}];this[uc("0x39")][uc("0x25")]&&e[uc("0x4c")]({tag:"div",attributes:{class:[uc("0x20")]},children:[{text:this[uc("0x1")]()}]});const n={tag:uc("0x2e"),attributes:{class:["ck-suggestion-wrapper",t.if(uc("0x22"),uc("0x3f")),t.to("type",(t=>"ck-suggestion-"+t)),this[uc("0x3a")][uc("0x11")]&&uc("0x3c")],"data-suggestion-id":this[uc("0x39")].id,"data-thread-id":this._model[uc("0xb")].id,"data-author-id":this[uc("0x39")][uc("0x4a")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[uc("0x4"),uc("0x47")]},children:[this.userView,{tag:uc("0x2e"),attributes:{class:[uc("0x12"),uc("0x16")]},children:e}]}]};return this[uc("0x4f")]&&this.commentThreadInputView&&(n[uc("0x46")].push(this[uc("0x4f")],this.commentThreadInputView),this[uc("0x4f")][uc("0x45")](uc("0x42")).to(this),this.commentsListView[uc("0x45")](uc("0x38")).to(this),this[uc("0x2c")].delegate("editorReady").to(this),this[uc("0x2c")][uc("0x45")](uc("0x38")).to(this)),n}render(){super.render(),this[uc("0x1a")]=this[uc("0x55")][uc("0x1d")](uc("0x28")),this[uc("0x1a")][uc("0x29")]=this[uc("0x4e")],this.on("change:description",((t,e,n)=>{this[uc("0x1a")][uc("0x29")]=n}))}[uc("0xd")](t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[uc("0x6")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0xc")]({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0x4d")](o,this[uc("0x39")].id)})),i}[uc("0x1")](){return uc("0x1e")===this[uc("0x39")][uc("0x3e")][uc("0x23")][uc("0x43")]?Yo(this[uc("0x48")],uc("0x1b")):Yo(this[uc("0x48")],uc("0x1f"))}[uc("0x15")](){return this[uc("0x39")].isExternal?uc("0x1e")===this._model[uc("0x3e")][uc("0x23")][uc("0x43")]?Yo(this.locale,uc("0xf"),this._model[uc("0x18")].name):Yo(this.locale,uc("0x5"),this[uc("0x39")][uc("0x18")][uc("0x14")]):null}}function mc(t,e){let n="";return n+=t[uc("0x27")]("*")[uc("0x2")](((t,e)=>e%2!=0?uc("0x24")+fc(t)+uc("0x13"):fc(t)))[uc("0x30")](""),e&&(n+=uc("0x40")+e.value+uc("0x3")+e[uc("0x35")]+uc("0x1c")),n}function fc(t){const e=document[uc("0x17")](uc("0x7"));return e[uc("0x52")]=t,e[uc("0x29")]}const hc=["_handleSuggestionControllerDelayed","trackChanges","config","reduce","separator","size","execute","getDescriptions","getSuggestion","init","comments.maxCommentsWhenCollapsed","isInContent","_createUIButton","suggestionUnloaded","actionView","discardButton","_destroyController","acceptAllSuggestions","_handleControllerBuffer","createAnnotation","clear","commands","_initializeController","comments.maxCommentCharsWhenCollapsed","buttonView","isEnabled","bind","locale","arrowView","plugins","change:activeAnnotations","commentThread","isOn","add","acceptButton","getMarkers","comments","_updateController","getAllAdjacentSuggestions","mainView","registerAnnotation","trackChanges.SuggestionThreadView","focus","button","CommentsUI","TrackChangesUI","_descriptionFactory","Track changes","Discard all selected suggestions","hasSuggestion","_annotationViews","trackChanges.disableComments","Annotations","view","getFirstRange","Accept all selected suggestions","_viewToController","CommentsRepository","unbind","listenTo","suggestion-","getJoined","switchbutton","previous","activeMarkers","comments.maxThreadTotalWeight","define","lowest","from","requires","keys","model","head","addSourceCollector","type","_disableComments","discardAllSuggestions","get","TrackChangesEditing","editor","createCommentThreadController","toMany","getRanges","change:previous","filter","values","activeAnnotations","discardSelectedSuggestions","value","EditorAnnotations","source","isMultiRange","destroy","_suggestionToController","comments.editorConfig","isDirty","set","Discard all suggestions","descriptionParts","length","has","editing","CommentView","acceptSelectedSuggestions","createAnnotationView","_refreshActiveMarkers","_bindAnnotationToEditors","innerView","delete","push"];var pc,bc;pc=hc,bc=241,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x30")](){return[za,r.Users,Ec("0x24"),Ec("0x1f"),"EditorAnnotations"]}static get pluginName(){return Ec("0x18")}constructor(t){super(t),this[Ec("0x48")]=new Map,this[Ec("0x23")]=new Map,this[Ec("0x1d")]=new Map,this[Ec("0x6b")]=new Map;const e=this.editor[Ec("0x5b")];e.define(Ec("0x14"),gc),e[Ec("0x2d")](Ec("0x1e"),!1),this[Ec("0x36")]=e[Ec("0x38")]("trackChanges.disableComments")}[Ec("0x59")](t,e){0===this._handleControllerBuffer[Ec("0x5e")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x6b")]){const n=this[Ec("0x48")][Ec("0x4f")](t);n||e?n&&e&&this[Ec("0x69")](t):this[Ec("0x1")](t)}this.editor[Ec("0x8")][Ec("0x38")](Ec("0x44")).refreshSelectedViews(),this[Ec("0x54")](),this[Ec("0x6b")][Ec("0x6d")]()}),10),this[Ec("0x6b")][Ec("0x4b")](t,e)}[Ec("0x62")](){const t=this[Ec("0x3a")],e=t[Ec("0x8")][Ec("0x38")](Ec("0x39")),n=t[Ec("0x8")].get(Ec("0x1f")),o=t[Ec("0x8")].get(Ec("0x44")),s=t[Ec("0x8")].get("CommentsRepository");t.ui.componentFactory[Ec("0xc")](Ec("0x5a"),(t=>this[Ec("0x65")](t))),o[Ec("0x34")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x2f")](this[Ec("0x48")])){const o=e[Ec("0x11")](),s=[];for(const t of o){if(!t[Ec("0x64")])continue;if(t[Ec("0x46")]){s.push(...t[Ec("0x3d")]());continue}const e=t[Ec("0x21")]();if(s[Ec("0x4e")]>0){const t=s[0][Ec("0x28")](e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x58")]([n[Ec("0x20")],s])}return t})),this.listenTo(e,"suggestionLoaded",((t,e)=>{this[Ec("0x26")](e,Ec("0x3e"),((t,n,o,s)=>{e[Ec("0x64")]&&(null==o?(this[Ec("0x10")](s[Ec("0x33")]),this[Ec("0x59")](e,!1)):(this[Ec("0x10")](o[Ec("0x33")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Ec("0x2a")]?this[Ec("0x59")](e,!1):this[Ec("0x10")](e.head)})),this.listenTo(e,Ec("0x66"),((t,e,n)=>{this.stopListening(e,Ec("0x3e")),this._handleControllerBuffer[Ec("0x57")](e);const o=n?n[Ec("0x33")]:e,s=this[Ec("0x48")][Ec("0x38")](o);null!==n&&this[Ec("0x10")](o),null===n&&s&&this[Ec("0x69")](e)})),this[Ec("0x26")](e,"suggestionChanged",((t,e)=>{this[Ec("0x10")](e)})),this[Ec("0x26")](n,Ec("0x9"),(()=>{this[Ec("0x54")]()})),this.listenTo(s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x1c")](n))return;const s=e[Ec("0x61")](n);this._suggestionToController[Ec("0x38")](s)[Ec("0x20")].focus()}),{priority:Ec("0x2e")})}[Ec("0x54")](){const t=this[Ec("0x3a")][Ec("0x8")][Ec("0x38")](Ec("0x1f")),e=this.editor[Ec("0x8")][Ec("0x38")]("TrackChangesEditing"),n=Array[Ec("0x2f")](t[Ec("0x41")],(t=>t[Ec("0x56")])).filter((t=>this._viewToController.has(t))),o=[];for(const t of n){const e=this._viewToController[Ec("0x38")](t)[Ec("0x32")][Ec("0x11")]();o[Ec("0x58")](...e[Ec("0x5c")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0x2b")]=o}[Ec("0x65")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x3a")][Ec("0x0")][Ec("0x38")](Ec("0x5a")),r=Yo(t,Ec("0x1a"));n[Ec("0x3")][Ec("0x4b")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x3")][Ec("0x5")](Ec("0xb")).to(o,Ec("0x43")),n.buttonView.on("execute",(()=>{o.execute(),this[Ec("0x3a")][Ec("0x50")].view[Ec("0x15")]()}));const i=new e.Collection,x=[{type:Ec("0x29"),model:{withText:!0,label:r,commandName:Ec("0x5a")}},{type:Ec("0x5d")},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Ec("0x6a")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x22")),commandName:Ec("0x52")}},{type:Ec("0x16"),model:{withText:!0,label:Yo(t,Ec("0x4c")),commandName:Ec("0x37")}},{type:Ec("0x16"),model:{withText:!0,label:Yo(t,Ec("0x1b")),commandName:Ec("0x42")}}];for(const t of x){let e={type:Ec("0x5d")};if(t[Ec("0x32")]){const n=new s.Model(t[Ec("0x32")]),o=this[Ec("0x3a")][Ec("0x0")][Ec("0x38")](n.commandName);n[Ec("0x5")](Ec("0xb"),Ec("0x4")).to(o,Ec("0x43"),Ec("0x4")),e={type:t[Ec("0x35")],model:n}}i[Ec("0xc")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t.model)).map((t=>this[Ec("0x3a")][Ec("0x0")][Ec("0x38")](t[Ec("0x32")].commandName))),c=n[Ec("0x3")];return c[Ec("0x67")].unbind(Ec("0x4")),c.arrowView[Ec("0x25")](Ec("0x4")),c[Ec("0x67")][Ec("0x5")](Ec("0x4")).to(o,Ec("0x4")),c[Ec("0x7")].bind(Ec("0x4"))[Ec("0x3c")](a,Ec("0x4"),((...t)=>t.some((t=>t)))),n.on(Ec("0x5f"),(t=>{this[Ec("0x3a")][Ec("0x5f")](t[Ec("0x45")].commandName),this[Ec("0x3a")][Ec("0x50")][Ec("0x20")][Ec("0x15")]()})),n}_initializeController(t){const e=this[Ec("0x3a")],n=e[Ec("0x5b")],o=e[Ec("0x8")][Ec("0x38")]("Annotations"),s=e.plugins[Ec("0x38")](Ec("0x24")),i=e[Ec("0x8")][Ec("0x38")](Ec("0x44")),x=e.plugins.get(r.Users).me,a=n[Ec("0x38")]("trackChanges").SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x38")](Ec("0x17"));let d,u;this._annotationViews.has(t.id)?(u=this[Ec("0x1d")][Ec("0x38")](t.id),d=u[Ec("0x12")]):(d=new a(e.locale,t,x,{disableComments:this[Ec("0x36")],editorConfig:n[Ec("0x38")](Ec("0x49")),maxCommentsWhenCollapsed:n[Ec("0x38")](Ec("0x63")),maxThreadTotalWeight:n.get(Ec("0x2c")),maxCommentCharsWhenCollapsed:n[Ec("0x38")](Ec("0x2")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x38")](Ec("0x6"))),CommentView:n[Ec("0x38")](Ec("0xf"))[Ec("0x51")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0xd")].on("execute",(()=>{e[Ec("0x50")][Ec("0x20")][Ec("0x15")]()})),d[Ec("0x68")].on("execute",(()=>{e.editing.view.focus()})),u=o[Ec("0x53")](this[Ec("0x3a")][Ec("0x6")],d),u[Ec("0x5")](Ec("0x4a")).to(d,Ec("0x4a")),u[Ec("0x5")](Ec("0x4e")).to(d),u.bind(Ec("0x35")).to(d,"type",(t=>Ec("0x27")+t)),this._annotationViews[Ec("0x4b")](t.id,u));const g=s[Ec("0x3b")](t[Ec("0xa")],d),m=new oc(e,t,d,g),f=t[Ec("0x11")]()[Ec("0x3f")]((t=>t[Ec("0x64")]));d[Ec("0x4d")]=e[Ec("0x8")].get(Ec("0x39"))[Ec("0x19")][Ec("0x60")](f),this[Ec("0x48")][Ec("0x4b")](t,m),this[Ec("0x23")][Ec("0x4b")](d,m);const h=o[Ec("0x6c")]({view:u,target:()=>{const n=[],o=t[Ec("0x11")]().filter((t=>t[Ec("0x64")]));for(const t of o)n[Ec("0x58")](...t[Ec("0xe")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x27")+m[Ec("0x20")][Ec("0x35")]});s[Ec("0x55")](d,h),o[Ec("0xc")](h),i[Ec("0x13")](h)}[Ec("0x69")](t){const e=this[Ec("0x3a")][Ec("0x8")][Ec("0x38")](Ec("0x1f")),n=this[Ec("0x48")][Ec("0x38")](t),o=n[Ec("0x20")],s=e.getByInnerView(o);s&&e.remove(s),this[Ec("0x48")][Ec("0x57")](t),this[Ec("0x23")][Ec("0x57")](o),n[Ec("0x47")]()}[Ec("0x10")](t){if(!t.isInContent||!this[Ec("0x48")][Ec("0x4f")](t))return;const e=this.editor[Ec("0x8")][Ec("0x38")](Ec("0x39")),n=this[Ec("0x48")][Ec("0x38")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x20")][Ec("0x4d")]=e._descriptionFactory[Ec("0x60")](o)}[Ec("0x47")](){for(const t of this[Ec("0x48")][Ec("0x31")]())this[Ec("0x69")](t);for(const t of this._annotationViews[Ec("0x40")]())t[Ec("0x12")][Ec("0x47")]();super[Ec("0x47")]()}}var Tc,Cc,yc=["plugins","addSuggestion","editor","pluginName","get","adapter","requires","TrackChanges","getSuggestion","getSuggestions"];Tc=yc,Cc=288,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x8")](){return[za,_c,"Comments"]}static get[kc("0x5")](){return kc("0x9")}set[kc("0x7")](t){this.editor[kc("0x2")][kc("0x6")](za)[kc("0x7")]=t}get[kc("0x7")](){return this[kc("0x4")][kc("0x2")][kc("0x6")](za)[kc("0x7")]}[kc("0x3")](t){return this[kc("0x4")][kc("0x2")].get(za).addSuggestionData(t)}[kc("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor.plugins[kc("0x6")](za).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x0")](t){return this[kc("0x4")][kc("0x2")][kc("0x6")](za)[kc("0x0")](t)}}const vc=["getSuggestions","model","TrackChangesEditing","editor","name","end","createDocumentFragment","reduce","execute","editorCreator","track-changes-data-invalid-editor-creator","set","function","useAnonymousUser","init","addSuggestionData","get","getDataWithDiscardedSuggestions","requires","div","plugins","addUser","Users","appendChild","getRootsAttributes","_adapter","trackChangesData.editorCreator","trackChangesData","map","acceptAllSuggestions","config","discardAllSuggestions","pluginName","Pagination","getRootNames","document","CommentsRepository","data","getDataWithAcceptedSuggestions","create","constructor","createElement","define","TrackChangesDataGetter","rootsAttributes"];var Rc,Sc;Rc=vc,Sc=446,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x25")];class Nc extends t.Plugin{static get[Ic("0x16")](){return[za]}static get pluginName(){return"TrackChangesData"}[Ic("0x12")](){const t=this.editor;if(t[Ic("0x22")][Ic("0x1")](Ic("0x1e"),(e=>{const n=t[Ic("0x5")][Ic("0x27")][Ic("0x26")]()[Ic("0xb")](((t,e)=>(t[e]="",t)),{});return t[Ic("0x2c")][Ic("0x2b")](n,e)})),Ic("0x10")!=typeof t.config.get("trackChangesData")[Ic("0xd")])throw new e.CKEditorError(Ic("0xe"))}[Ic("0x2a")](t){return Oc(this[Ic("0x7")],!0,t)}[Ic("0x15")](t){return Oc(this[Ic("0x7")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x24")](){return Ic("0x2")}constructor(t){super(t),this.result=Ic("0x9")}init(){this[Ic("0x7")].plugins.get(Ic("0x28"))[Ic("0x1d")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x7")][Ic("0x18")][Ic("0x14")]("TrackChangesEditing")[Ic("0x1d")]=null}}function wc(t){return void 0!==t[Ic("0x1c")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x18")].push(za,Mc),o[Ic("0x3")]=wc(t)?t[Ic("0x1c")]():void 0;const s=document[Ic("0xa")](),i=t[Ic("0x22")][Ic("0x14")](Ic("0x1f")).editorCreator,x=await i(o,(()=>function(t){const e=document[Ic("0x0")](Ic("0x17"));return t[Ic("0x1b")](e),e}(s)));!function(t,e){const n=t[Ic("0x5")][Ic("0x27")].getRootNames().reduce(((e,n)=>(e[n]=t[Ic("0x29")][Ic("0x14")]({rootName:n}),e)),{}),o=t[Ic("0x18")][Ic("0x14")]("Users").users[Ic("0x20")]((t=>({id:t.id,name:t[Ic("0x8")]}))),s=t[Ic("0x18")][Ic("0x14")](Ic("0x6"))[Ic("0x4")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x18")][Ic("0x14")](Ic("0x1a")),i=e[Ic("0x18")][Ic("0x14")](Ic("0x6"));for(const t of o)r.getUser(t.id)||r[Ic("0x19")](t);r.me||r[Ic("0x11")]();for(const t of s)i[Ic("0x13")](t);e[Ic("0x29")][Ic("0xf")](n)}(t,x),x[Ic("0xc")](Ic(e?"0x21":"0x23"));const a=wc(x)?x.getFullData(n):x[Ic("0x29")].get(n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["_enabledCommands","value","clearForceDisabled","_disableUnsupportedCommands","has","editor","refresh","commands","TrackChangesCommand","affectsData","_isEnabledBasedOnSelection","forceDisabled","execute","_enableCommands"];var c,l;c=a,l=405,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0x1")]=e,this[d("0x2")]=!1,this.refresh(),this[d("0xb")]=!1}[d("0x7")](){this.isEnabled=!0}[d("0xd")](){this[d("0x2")]=!this[d("0x2")],this[d("0x2")]?this[d("0x4")]():this[d("0x0")]()}[d("0x4")](){for(const t of this.editor.commands.commands())t.affectsData&&!this[d("0x1")][d("0x5")](t)&&t[d("0xc")](d("0x9"))}[d("0x0")](){for(const t of this[d("0x6")][d("0x8")][d("0x8")]())t[d("0xa")]&&!this[d("0x1")].has(t)&&t[d("0x3")](d("0x9"))}}const g=["get","plugins","model","TrackChangesEditing","_isEnabledBasedOnSelection","refresh","canEditAt","track-changes-accept-suggestion-not-found","execute","editor","getRanges","acceptSuggestion"];var m,f;m=g,f=106,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this[h("0x6")]=!1}[h("0x7")](){this.isEnabled=!0}[h("0xa")](t){const n=this._suggestions[h("0x2")](t);if(!n)throw new e.CKEditorError(h("0x9"),this);const o=n[h("0x0")]();this[h("0xb")][h("0x4")][h("0x8")](o)&&this.editor[h("0x3")][h("0x2")](h("0x5"))[h("0x1")](n)}}const b=["getRanges","track-changes-discard-suggestion-not-found","_suggestions","execute","discardSuggestion","get","TrackChangesEditing","plugins","editor","_isEnabledBasedOnSelection","canEditAt","isEnabled"];var E,_;E=b,_=365,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this[T("0x4")]=!1}refresh(){this[T("0x6")]=!0}[T("0xa")](t){const n=this[T("0x9")].get(t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n[T("0x7")]();this[T("0x3")].model[T("0x5")](o)&&this[T("0x3")][T("0x2")][T("0x0")](T("0x1"))[T("0xb")](n)}}const y=["execute","createPositionBefore","length","change","push","replace","getMarkers","isIntersecting","content","sort","add","deletion","isObject","type","start","schema","getRanges","color","createPositionAfter","map","createRange","value","isArray","isTouching","isCollapsed"];var k,A;k=y,A=314,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x14")](((t,e)=>"deletion"==t[v("0x18")]&&v("0x16")!=e[v("0x18")]?-1:v("0x16")!=t.type&&v("0x16")==e[v("0x18")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x1")];for(;o<t[v("0xd")];){const i=t[o],x=t[o+1];n||(n=e[v("0xc")](i)),I(e,i,x)||(s[v("0xf")](e[v("0x6")](n,r[v("0x17")](i)?e[v("0x4")](i):e.createPositionAt(i,"end"))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x4")](e),s=t[v("0xc")](n);return o[v("0x9")](s)}function L(t,e,n){for(;n[v("0xd")];){const o=n.splice(0,100);t[v("0xe")]((()=>{for(const t of o)t.isInContent&&e[v("0xb")](t.id)}))}}const N=["_suggestions","execute","refresh","_isEnabledBasedOnSelection","isInContent","editor","model","_command","values","getRanges","from","isEnabled"];var M,w;M=N,w=471,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this[O("0xb")](),this[O("0x0")]=!1}[O("0xb")](){const t=Array[O("0x7")](this._suggestions.values()).some((t=>t[O("0x1")]));this[O("0x8")]=this[O("0x4")].isEnabled&&t}[O("0xa")](){const t=R(Array.from(this[O("0x9")][O("0x5")]()));for(const e of t){const t=e[O("0x6")]();if(!this[O("0x2")].model.canEditAt(t))return}L(this[O("0x2")][O("0x3")],this[O("0x4")],t)}}const P=["model","getRanges","refresh","execute","from","selection","_isEnabledBasedOnSelection","size","isEnabled","editor","canEditAt","_selectedSuggestions","_command","values"];var D,B;D=P,B=249,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this._selectedSuggestions=new Set,this[j("0x5")](),this[j("0x9")]=!1}[j("0x5")](){const t=this[j("0xc")].model.document[j("0x8")],e=Array[j("0x7")](this._suggestions[j("0x2")]());this[j("0x0")]=function(t,e){const n=Array.from(t[v("0x2")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x11")]()){const r=n.getRange();(e[v("0x12")](r)||t[v("0xa")]&&!s.isMultiRange&&s.next&&r.end[v("0x9")](e[v("0x0")]))&&o[v("0x15")](s)}return o}(t,e),this[j("0xb")]=this[j("0x1")][j("0xb")]&&!!this[j("0x0")][j("0xa")]}[j("0x6")](){const t=R(Array[j("0x7")](this[j("0x0")]));for(const e of t){const t=e[j("0x4")]();if(!this[j("0xc")][j("0x3")][j("0xd")](t))return}L(this.editor[j("0x3")],this[j("0x1")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getMarkerNames","accept","push","next","createdAt","hasComments","_model","change","markers","removeMarkers","removeAttribute","@external","toJSON","subType","map","add","end","getAllAdjacentSuggestions","commentThread","nodeAfter","_onDiscard","removeMarker","type","getRange","getMultiRangeId","nodeBefore","author","previous","discard","onDiscard","_saved","authoredAt","getItems","onAttributesChange","suggestion:","addMarkerName","isMultiRange","data","attributes","length","isInContent","getFirstMarker","_markerNames","head","getFirstRange","addMarker","delete","split","_onAccept","isIntersectingWithRange","creator","decorate","from","_onAttributesChange","set","getContainedElement","setAttribute","getMarkers","onAccept","reduce","getRanges"];var $o,Jo;$o=Xo,Jo=137,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this.type=e[Qo("0x7")],this[Qo("0x3b")]=e[Qo("0x3b")]||null,this[Qo("0xb")]=e[Qo("0xb")],this.creator=e.creator||e[Qo("0xb")],this.isExternal=Boolean(e.attributes&&e[Qo("0x17")][Qo("0x39")]),this.data=null,this[Qo("0x34")]=t,this[Qo("0x21")]=e[Qo("0x2b")],this[Qo("0x5")]=e[Qo("0xe")],this[Qo("0x26")]=e[Qo("0x12")],this._markerNames=new Set,this[Qo("0x32")]=null,this[Qo("0x27")](Qo("0x10"),null),this[Qo("0x27")]("attributes",e[Qo("0x17")]||{}),this[Qo("0x27")](Qo("0xc"),null),this.set(Qo("0x31"),null),this.set(Qo("0x3"),null),this[Qo("0x27")](Qo("0xf"),!1),this[Qo("0x24")](Qo("0x2f")),this[Qo("0x24")](Qo("0xd"))}get[Qo("0x1c")](){let t=this;for(;t.previous;)t=t[Qo("0xc")];return t}get[Qo("0x33")](){return!!this.commentThread&&this[Qo("0x3")][Qo("0x18")]>0}get[Qo("0x15")](){return 0!=this[Qo("0x1b")].size&&6==Array[Qo("0x25")](this[Qo("0x1b")])[0][Qo("0x20")](":").length}get[Qo("0x19")](){return null!==this[Qo("0x1a")]()}[Qo("0x14")](t){this[Qo("0x1b")][Qo("0x0")](t)}getMarkerNames(){return Array[Qo("0x25")](this[Qo("0x1b")])}[Qo("0x2a")](){return this[Qo("0x2e")]()[Qo("0x3c")]((t=>this[Qo("0x34")][Qo("0x36")].get(t))).filter((t=>t))}[Qo("0x1a")](){return this.getMarkers()[0]||null}[Qo("0x37")](){this._model.change((t=>{for(const e of this.getMarkers())t[Qo("0x6")](e)})),this[Qo("0x1b")].clear()}[Qo("0x6")](t){this[Qo("0x34")].change((e=>{e[Qo("0x6")](t)})),this._markerNames[Qo("0x1f")](t)}addRange(t){const e=Qo("0x13")+this.type+":"+this[Qo("0x3b")]+":"+this.id+":"+this[Qo("0x23")].id+":"+Zo[Qo("0x9")]();this[Qo("0x14")](e),this[Qo("0x34")][Qo("0x35")]((n=>{n[Qo("0x1e")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x22")](t){for(const e of this[Qo("0x2d")]())if(e.isIntersecting(t))return!0;return!1}[Qo("0x2d")](){return this[Qo("0x2a")]()[Qo("0x3c")]((t=>t[Qo("0x8")]()))}[Qo("0x11")](){return this[Qo("0x2d")]()[Qo("0x2c")](((t,e)=>[...t,...e[Qo("0x11")]()]),[])}[Qo("0x1d")](){var t;return(null===(t=this[Qo("0x1a")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x28")](){const t=this[Qo("0x2d")]();if(1!=t[Qo("0x18")])return null;const e=t[0],n=e.start[Qo("0x4")],o=e[Qo("0x1")][Qo("0xa")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x2f")](){this._onAccept(this[Qo("0x2d")](),this.data,this[Qo("0x17")]),this.removeMarkers()}[Qo("0xd")](){this[Qo("0x5")](this[Qo("0x2d")](),this.data,this[Qo("0x17")]),this[Qo("0x37")]()}[Qo("0x2")](){const t=[];let e=this[Qo("0x1c")];for(;e;)t[Qo("0x30")](e),e=e[Qo("0x31")];return t}[Qo("0x29")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Qo("0x17")])||(this[Qo("0x17")]=n,this[Qo("0x26")](n))}[Qo("0x38")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x17")])||(this.attributes=e,this[Qo("0x26")](this[Qo("0x17")]))}[Qo("0x3a")](){return{id:this.id,type:this.subType?this[Qo("0x7")]+":"+this[Qo("0x3b")]:this[Qo("0x7")],authorId:this[Qo("0x23")].id,createdAt:this[Qo("0x32")],hasComments:this[Qo("0x33")],data:this[Qo("0x16")],attributes:this[Qo("0x17")]}}static[Qo("0x9")](){return(0,e.uid)().substr(1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["length","nextSibling","EmptyContainer","quantity","REPLACE_TEXT","normal","name","_itemLabelsCallbacks","pop","skip","add","indexOf","removeEmptyContainer","checkChild","Object","addEmptyContainer","_customCallbacks","text","*Remove:* %0","getItemLabel","remove","_schema","isEqual","Container","elementEnd","match","*Split:* %0","push","item","ELEMENT_SPACE","type","matchingCallback","elementStart","element","_itemLabels","end","insertion","isEmpty","getDescriptions","softBreak","addObject","isObject","*Insert:* %0","$1 $2","get","$textProxy","removeObject","previousSibling","getFirstRange","addContainer","_resolveDescriptionItems","_addDescriptionItems","start","_locale","set","replace","registerElementLabel","function","data","registerDescriptionCallback","label"];var es,ns;es=ts,ns=232,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x1c")]=[],this._itemLabels=new Map,this[os("0x13")]=[],this[os("0x21")]=t,this[os("0x4")]=e}[os("0x32")](t){const e=[];for(let n=0;n<t[os("0xc")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x2a")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x2")](e,o);const s=t[n+1];if(s&&!o[os("0x3c")]()[os("0x2f")][os("0x22")](s.getFirstRange()[os("0x3")])){const t=e[e.length-1],n=os("0x30")==o[os("0x2a")]?"add":os("0x20");t&&"text"==t[os("0x2a")]&&(t[n]+="\n")}}}return this[os("0x1")](e)}[os("0xa")](t){this._customCallbacks.push(t)}[os("0x7")](t,n,o=e.priorities[os("0x11")]){os("0x8")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x5")](t,n)}getItemLabel(t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x2b")](t)){n=e[os("0xb")];break}return n||(n=this[os("0x2e")][os("0x38")](t[os("0x12")])),n?n(e):1!==e?e+" "+t[os("0x12")]+"s":""+t[os("0x12")]}[os("0x2")](t,e){const n=e[os("0x3c")]().getWalker(),o="insertion"==e.type?os("0x16"):os("0x20");for(const e of n){const s=e[os("0x28")],r=t[t[os("0xc")]-1];if(s.is(os("0x39")))r&&r[os("0x2a")][os("0x17")](os("0x23"))>-1&&t[os("0x14")](),r&&os("0x1d")==r[os("0x2a")]?r[o]+=s[os("0x9")]:t[os("0x27")]({type:os("0x1d"),add:os("0x16")==o?s[os("0x9")]:"",remove:os("0x20")==o?s.data:""});else if(this[os("0x21")].isObject(s)){const i=s;if(r&&r[os("0x2a")][os("0x17")](os("0x23"))>-1&&t[os("0x14")](),os("0x24")==e[os("0x2a")])continue;r&&r[os("0x2a")]==o+os("0x1a")&&r[os("0x2d")].name==i.name?r[os("0xf")]++:t[os("0x27")]({type:o+os("0x1a"),element:i,quantity:1}),n[os("0x15")]((t=>!(os("0x24")==t[os("0x2a")]&&t[os("0x28")]==s)))}else if(this[os("0x21")][os("0x19")](s,"$text")||s.is(os("0x2d"),os("0x33"))){const n=s;if(os("0x16")==o&&os("0x2c")==e[os("0x2a")]||os("0x20")==o&&"elementEnd"==e[os("0x2a")])continue;if(r&&-1==r.type[os("0x17")](os("0x23"))){"text"==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x16")==o?n[os("0xd")]&&!this[os("0x21")][os("0x35")](n[os("0xd")])?n[os("0xd")]:null:n.previousSibling&&!this[os("0x21")][os("0x35")](n[os("0x3b")])?n[os("0x3b")]:null,n[os("0x31")]||i&&i[os("0x31")]){const e=i&&i[os("0x31")]?i:n;r&&r[os("0x2a")]==o+os("0xe")&&r[os("0x2d")].name==e[os("0x12")]?r.quantity++:t.push({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x27")]({type:o+os("0x23"),element:n})}}}_resolveDescriptionItems(t){const e=this[os("0x4")],n=[];for(const o of t){switch(o[os("0x2a")]){case os("0x1d"):if(o.add=o[os("0x16")][os("0x6")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x6")](/\u000A/g,""),o[os("0x20")]=o.remove[os("0x6")](/(\S)\u000A+(\S)/g,os("0x37"))[os("0x6")](/\u000A/g,""),""!=o[os("0x16")]&&""!=o[os("0x20")]){n[os("0x27")]({type:os("0x6"),content:Yo(e,os("0x10"),['"'+o[os("0x20")]+'"','"'+o[os("0x16")]+'"'])});continue}if(null!=o.add[os("0x25")](/^ +$/)){n[os("0x27")]({type:os("0x30"),content:Yo(e,"*Insert:* %0",Yo(e,os("0x29"),o[os("0x16")][os("0xc")]))});continue}if(null!=o.remove[os("0x25")](/^ +$/)){n[os("0x27")]({type:"deletion",content:Yo(e,"*Remove:* %0",Yo(e,os("0x29"),o[os("0x20")][os("0xc")]))});continue}if(""!=o[os("0x16")]){n.push({type:os("0x30"),content:Yo(e,os("0x36"),'"'+o[os("0x16")]+'"')});continue}n.push({type:"deletion",content:Yo(e,os("0x1e"),'"'+o.remove+'"')});continue;case os("0x1b"):case os("0x34"):n.push({type:os("0x30"),content:Yo(e,"*Insert:* %0",this[os("0x1f")](o[os("0x2d")],o.quantity))});continue;case os("0x18"):case os("0x3a"):n.push({type:"deletion",content:Yo(e,os("0x1e"),this[os("0x1f")](o[os("0x2d")],o[os("0xf")]))});continue;case os("0x0"):n.push({type:os("0x30"),content:Yo(e,os("0x26"),this.getItemLabel(o.element,o[os("0xf")]))});continue;case"removeContainer":n[os("0x27")]({type:"deletion",content:Yo(e,"*Merge:* %0",this[os("0x1f")](o[os("0x2d")],o.quantity))});continue}n[os("0x27")](o)}return n}}const rs=["commandName","getSelectedBlocks","FORMAT_ALIGN_TO_RIGHT","filter","get","AlignmentEditing","TrackChangesEditing","plugins","afterInit","value","right","model","alignment","from","left","enableCommand","locale","getAttribute","FORMAT_JUSTIFY_TEXT","selection","_descriptionFactory","*Format:* %0","editor","center","FORMAT_ALIGN_TO_LEFT","change","justify","ltr","markBlockFormat","registerDescriptionCallback","has","checkAttribute"];var is,xs;is=rs,xs=468,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x14")](){const t=this.editor,e=t[as("0x1c")];if(!t[as("0x13")][as("0xa")](as("0x11")))return;const n=t[as("0x13")][as("0x10")](as("0x12"));n[as("0x1b")](as("0x18"),((e,o={})=>{let s=o[as("0x15")];o[as("0x15")]||(s=as("0x7")===t[as("0x1c")].contentLanguageDirection?as("0x1a"):as("0x16"));const r=Array[as("0x19")](this[as("0x2")][as("0x17")].document[as("0x1f")][as("0xd")]())[as("0xf")]((t=>function(t,e,n){const o=t[as("0x1d")](as("0x18"))||null;return e[as("0xb")](t,"alignment")&&n!=o}(t,this[as("0x2")][as("0x17")].schema,s)));t[as("0x17")][as("0x5")]((()=>{for(const t of r)n[as("0x8")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x0")][as("0x9")]((t=>{const{data:n}=t;if(n&&as("0x18")==n[as("0xc")]){const t=n.commandParams[0][as("0x15")];return{type:"format",content:Yo(e,as("0x1"),function(t){switch(t){case as("0x1a"):return Yo(e,as("0x4"));case as("0x16"):return Yo(e,as("0xe"));case as("0x3"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case as("0x6"):return Yo(e,as("0x1e"))}}(t))}}}))}}const ls=["mapper","toViewElement","isAtEnd","writer","previousPosition","includes","elementEnd","getItems","nextSibling","addClass","start","hasAttribute","consumable","insert","model","push","get","activeMarkers","ck-suggestion-marker-","TrackChangesEditing","listItem","listIndent","element","markerRange","name","isContent","test","type","plugins","span","parent","bindElementToMarker","schema","getWalker"];var ds,us;ds=ls,us=406,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x9")]())s[gs("0xd")](t)&&o[gs("0x11")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x18"),gs("0x16"))){let n=t[gs("0xa")];for(;n&&n.is(gs("0x18"),gs("0x16"))&&n.getAttribute(gs("0x17"))>0;)e.push(n),n=n[gs("0xa")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x1e")][gs("0x12")](gs("0x15"));return(s,r,i)=>{if(!i[gs("0xe")][gs("0x1c")](r.markerRange,s[gs("0x1a")]))return;const x=r.markerRange[gs("0x1")](),a=r[gs("0x19")][gs("0xc")],c=t[gs("0x10")][gs("0x0")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c[gs("0x1b")](e);const n=i[gs("0x2")][gs("0x3")](e);if(n&&n.getCustomProperty("addHighlight"))return;gs("0x8")==t[gs("0x1d")]&&c.isBlock(e)&&!c.isLimit(e)&&(e[gs("0xa")]||a[gs("0x4")]?l&&l[gs("0x20")]==e||(l=e,m(t[gs("0x6")]),g=!0):d=d||t.previousPosition)}function m(t){const s=i.writer.createUIElement(gs("0x1f"),{class:gs("0x14")+e}),x=i[gs("0x2")].toViewPosition(t);n&&o[gs("0x13")][gs("0x7")](r.markerName)&&i[gs("0x5")][gs("0xb")]("ck-suggestion-marker--active",s),i[gs("0x5")][gs("0xf")](x,s),i[gs("0x2")][gs("0x21")](s,r.markerName)}u||g||!d||m(d)}}const ps=["get","editor","italic","plugins","format","FORMAT_STRIKETHROUGH","toLowerCase","CodeEditing","afterInit","_descriptionFactory","superscript","UnderlineEditing","change","registerDescriptionCallback","document","bold","enableCommand","commands","FORMAT_CODE","commandName","subscript","from","SuperscriptEditing","strikethrough","FORMAT_SUBSCRIPT","FORMAT_SUPERSCRIPT","FORMAT_UNDERLINE","code","TrackChangesEditing","markInlineFormat","StrikethroughEditing","BoldEditing","forceValue","FORMAT_ITALIC","commandParams","model","value","ItalicEditing"];var bs,Es;bs=ps,Es=435,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xe"),_s("0x14"),_s("0x20"),_s("0x1c"),_s("0xd"),"SubscriptEditing",_s("0x5")];class Cs extends t.Plugin{[_s("0x1d")](){const t=this[_s("0x16")],e=t[_s("0x12")],n=t[_s("0x18")].get(_s("0xb")),o=t.locale;for(const o of Ts){if(!t[_s("0x18")].has(o))continue;const s=o.slice(0,-7)[_s("0x1b")](),r=t[_s("0x0")][_s("0x15")](s);n[_s("0x25")](s,((t,o={})=>{const i=e[_s("0x23")].selection;if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0xf")]?o[_s("0xf")]:!r[_s("0x13")];e[_s("0x21")]((()=>{const t=Array[_s("0x4")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0xc")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x1e")][_s("0x22")]((n=>{const{data:s}=n;if(s&&s[_s("0x2")]===t)return s[_s("0x11")][0][_s("0xf")]?{type:_s("0x19"),content:Yo(o,"*Format:* %0",e)}:{type:"format",content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x24"),Yo(o,"FORMAT_BOLD")),s(_s("0x17"),Yo(o,_s("0x10"))),s("underline",Yo(o,_s("0x9"))),s(_s("0xa"),Yo(o,_s("0x1"))),s(_s("0x6"),Yo(o,_s("0x1a"))),s(_s("0x3"),Yo(o,_s("0x7"))),s(_s("0x1f"),Yo(o,_s("0x8")))}}const ys=["getSelectedBlocks","model","$root","value","markBlockFormat","locale","commandName","registerDescriptionCallback","plugins","filter","parent","change","get","enableCommand","BlockQuoteEditing","from","forceValue","afterInit","blockQuote","editor","document","*Remove format:* %0","schema","commands","name","TrackChangesEditing","ELEMENT_BLOCK_QUOTE","checkChild"];var ks,As;ks=ys,As=113,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x10")](){const t=this.editor,e=t[vs("0x4")];if(!t.plugins.has(vs("0xd")))return;const n=t[vs("0x7")][vs("0xb")](vs("0x18")),o=this.editor[vs("0x16")].get(vs("0x11"));n[vs("0xc")](vs("0x11"),((e,s={})=>{const r=this[vs("0x12")][vs("0x0")][vs("0x13")].selection,i=s&&void 0!==s[vs("0xf")]?s[vs("0xf")]:!o[vs("0x2")];let x=[];if(i){const e=Array[vs("0xe")](r[vs("0x1b")]())[vs("0x8")]((t=>Ss(t)||function(t,e){const n=e.checkChild(t.parent,vs("0x11")),o=e[vs("0x1a")]([vs("0x1"),"blockQuote"],t);return n&&o}(t,this.editor[vs("0x0")][vs("0x15")])));x=S(e,t.model)}else{const e=Array[vs("0xe")](r.getSelectedBlocks()).filter((t=>Ss(t)));x=S(e,t[vs("0x0")])}t[vs("0x0")][vs("0xa")]((()=>{for(const t of x)n[vs("0x3")](t,{commandName:vs("0x11"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vs("0x6")]((t=>{const{data:n}=t;if(n&&vs("0x11")==n[vs("0x5")]){const t=Yo(e,vs("0x19"));return n.commandParams[0][vs("0xf")]?{type:"format",content:Yo(e,"*Format:* %0",t)}:{type:"format",content:Yo(e,vs("0x14"),t)}}}))}}function Ss(t){return vs("0x11")==t[vs("0x9")][vs("0x17")]}const Is=["ckbox","plugins","commands","get","enableCommand"];var Ls,Ns;Ls=Is,Ns=226,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this.editor;t[Ms("0x1")][Ms("0x2")](Ms("0x4"))&&t[Ms("0x0")].get("TrackChangesEditing")[Ms("0x3")]("ckbox")}}const Os=["checkChild","value","change","TrackChangesEditing","document","from","language","schema","forceValue","_descriptionFactory","get","indentCodeBlock","find","selection","enableCommand","markBlockFormat","model","format","registerElementLabel","ELEMENT_CODE_BLOCK","formatBlock","blockName","*Format:* %0","isLimit","getSelectedBlocks","locale","codeBlock","label","filter","commandParams","commandName","rootElement","commands","*Remove format:* %0","afterInit"];var Fs,Ps;Fs=Os,Ps=431,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x17")](){const t=this.editor;if(!t.plugins.has("CodeBlock"))return;const e=t.plugins[Ds("0x22")](Ds("0x1b")),n=t[Ds("0xe")],o=t.config.get(Ds("0xf")).languages,s=t[Ds("0x15")][Ds("0x22")]("codeBlock");e.enableCommand(Ds("0x0")),e[Ds("0x3")]("outdentCodeBlock"),e[Ds("0x3")](Ds("0xf"),((n,r={})=>{const i=t[Ds("0x5")],x=t[Ds("0x5")][Ds("0x1c")][Ds("0x2")],a=r&&void 0!==r[Ds("0x20")]?r[Ds("0x20")]:!s[Ds("0x19")];let c;r[Ds("0x1e")]||(r[Ds("0x1e")]=o[0].language),c=a?Array[Ds("0x1d")](x[Ds("0xd")]())[Ds("0x11")]((t=>{return js(t)||(e=t,n=i[Ds("0x1f")],!e.is(Ds("0x14"))&&!n[Ds("0xc")](e)&&n[Ds("0x18")](e.parent,Ds("0xf")));var e,n})):Array[Ds("0x1d")](x.getSelectedBlocks()).filter((t=>js(t)));const l=S(c,i);i[Ds("0x1a")]((()=>{for(const t of l)e[Ds("0x4")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0xa")})}))})),e._descriptionFactory[Ds("0x7")]("codeBlock",(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e[Ds("0x21")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x9")==s&&r&&Ds("0xf")==r[Ds("0x13")]){const t=r[Ds("0x12")][0][Ds("0x1e")],s=e(o[Ds("0x1")]((e=>e[Ds("0x1e")]===t))[Ds("0x10")]);return r[Ds("0x12")][0][Ds("0x20")]?{type:Ds("0x6"),content:Yo(n,Ds("0xb"),Yo(n,Ds("0x8"),1)+" ("+s+")")}:{type:Ds("0x6"),content:Yo(n,Ds("0x16"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return"codeBlock"==t.name}const Us=["has","plugins","get","addCommentThread","enableCommand","CommentsEditing"];var Gs,Hs;Gs=Us,Hs=157,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{afterInit(){const t=this.editor;t[zs("0x0")][zs("0x5")](zs("0x4"))&&t[zs("0x0")][zs("0x1")]("TrackChangesEditing")[zs("0x3")](zs("0x2"))}}var Vs=n(181);const Ks=["data","enableCommand","unit","options","root","unlock","createRange","get","document","addMarker:suggestion:deletion","uiElement","unbindElementFromMarkerName","enqueueChange","merge","commands","forward","fromRange","delete","createSelection","showSuggestionHighlights","editor","rootName","end","writer","detach","lock","mapper","getFirstRange","buffer","isCollapsed","model","batch","high","remove","markerNameToElements","removeMarker:suggestion:deletion","setSelection","downcastDispatcher","start","bind","init"];var qs,Xs;qs=Ks,Xs=373,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get requires(){return[Vs.Delete]}[$s("0x24")](){const t=this[$s("0x10")],e=t.plugins[$s("0x3")]("TrackChangesEditing");e[$s("0x26")]($s("0xd"));const n=t[$s("0xa")][$s("0x3")]("deleteForward");e[$s("0x26")]("deleteForward",((e,o={})=>{const s=t[$s("0x1a")][$s("0xe")](t[$s("0x1a")][$s("0x4")].selection);s[$s("0x19")]&&t[$s("0x1a")].modifySelection(s,{direction:$s("0xb"),unit:o[$s("0x27")]});const r=s[$s("0x17")](),x=i.LiveRange[$s("0xc")](r);let a;e(o),a="$graveyard"==x[$s("0x0")][$s("0x11")]?t[$s("0x1a")][$s("0x2")](r.start):t[$s("0x1a")][$s("0x2")](x[$s("0x22")],x[$s("0x12")]),x[$s("0x14")](),t.model[$s("0x8")](n.buffer[$s("0x1b")],(t=>{n[$s("0x18")][$s("0x15")](),t[$s("0x20")](t[$s("0x2")](a[$s("0x12")])),n[$s("0x18")][$s("0x1")]()}))})),t.editing.downcastDispatcher.on($s("0x5"),hs(t,"merge"),{priority:$s("0x1c")}),t[$s("0x25")].downcastDispatcher.on($s("0x5"),((e,n,o)=>{o[$s("0x28")][$s("0xf")]&&hs(t,$s("0x9"),{showActiveMarker:!1})[$s("0x23")](this)(e,n,o)}),{priority:$s("0x1c")}),t.editing[$s("0x21")].on($s("0x1f"),((t,e,n)=>{const o=n[$s("0x16")][$s("0x1e")](e.markerName);if(o)for(const t of o)t.is($s("0x6"))&&(n[$s("0x16")][$s("0x7")](t,e.markerName),n[$s("0x13")][$s("0x1d")](t))}),{priority:$s("0x1c")})}}const Qs=["toUpperCase","parent","getRanges","fromRange","isObject","DocumentListEditing","*Outdent:* %0","ELEMENT_","markBlockFormat","commandParams","mergeListItemBackward","_LIST","registerDescriptionCallback","previousSibling","createRange","*Change to:* %0","format","registerElementLabel","selection","enableCommand","*Format:* insert into %0","DocumentListUtils","push","hasAttribute","value","end","before","nodeAfter","map","splitListItemAfter","forceValue","deletion","numberedList","commands","listItemId","getSelectedBlocks","slice","ELEMENT_BULLETED_LIST","TrackChangesEditing","nextSibling","schema","ELEMENT_NUMBERED_LIST","markMultiRangeBlockFormat","next","findIndex","afterInit","ELEMENT_LIST_ITEM","*Format:* remove from %0","accept","commandName","listIndent","_descriptionFactory","refresh","setSelection","listType","indentList","getFirstRange","from","_suggestionFactory","has","createPositionAt","change","documentList","start","formatBlock","add","outdentList","plugins","get","document","getAttribute","registerCustomCallback","multipleBlocks","bulletedList","model","locale"];var Zs,Ys;Zs=Qs,Ys=384,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x29")](){const t=this.editor;if(!t[tr("0x3f")][tr("0x37")](tr("0x1")))return;const e=t[tr("0x47")],n=t.plugins[tr("0x40")](tr("0x22")),o=t.plugins[tr("0x40")](tr("0x11"));function s(e){return()=>{const s=t[tr("0x1d")][tr("0x40")](e);let r=Array[tr("0x35")](t[tr("0x46")][tr("0x41")][tr("0xe")].getSelectedBlocks());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t.model[tr("0x39")]((()=>{n[tr("0x26")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x14")]}],formatGroupId:tr("0x32")},[],tr("0x3a"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x35")](t);const n=e[tr("0x28")]((t=>!t[tr("0x13")](tr("0x1e"))));return n>-1&&(e=e[tr("0x20")](0,n)),e}(t.model[tr("0x41")].selection.getSelectedBlocks()),s=o[o.length-1],r=t[tr("0x46")][tr("0x24")][tr("0x0")](s)?"after":"end",i=t[tr("0x46")][tr("0xa")](t[tr("0x46")].createPositionAt(o[0],tr("0x16")),t[tr("0x46")][tr("0x38")](s,r));t[tr("0x46")][tr("0x39")]((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:tr("0x32")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x23")];for(;t&&t[tr("0x42")](tr("0x2e"))>n.getAttribute(tr("0x2e"));)e[tr("0x3d")](t),t=t[tr("0x23")]}return Array[tr("0x35")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x46")][tr("0x41")][tr("0xe")][tr("0x1f")]()[tr("0x27")]()[tr("0x14")],s=t[tr("0x46")][tr("0x38")](o,"before"),r=t[tr("0x46")].createPositionAt(o,0),i=t[tr("0x46")][tr("0xa")](s,r);t.model.change((()=>{n[tr("0x4")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x32")})}))}}function a(e){const n=t[tr("0x1d")][tr("0x40")]("bulletedList")[tr("0x14")],o=t[tr("0x1d")][tr("0x40")]("numberedList")[tr("0x14")];return tr("0x1c")===e?n:o}n[tr("0xf")](tr("0x1c"),s(tr("0x1c"))),n[tr("0xf")]("bulletedList",s(tr("0x45"))),n[tr("0xf")](tr("0x33"),r("indentList")),n[tr("0xf")]("outdentList",r(tr("0x3e"))),n.enableCommand(tr("0x19"),x("splitListItemAfter")),n[tr("0xf")]("splitListItemBefore",x("splitListItemBefore")),n[tr("0x2f")][tr("0xd")]((function(e){const n=!t[tr("0x46")][tr("0x24")][tr("0x0")](e),o=e[tr("0x9")],s=e[tr("0x23")],r=e.getAttribute(tr("0x1e")),i=!o||o.getAttribute(tr("0x1e"))!==r,x=!s||s.getAttribute(tr("0x1e"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x2a"),t))),n._descriptionFactory[tr("0x8")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x2d")]){case tr("0x45"):r=n[tr("0x5")][0][tr("0x1a")],i=a(n[tr("0x2d")]),o=r?"*Format:* insert into %0":tr("0x2b"),i&&(o=tr("0xb")),s={type:tr("0xc"),content:Yo(e,o,Yo(e,tr("0x21")))};break;case tr("0x1c"):r=n[tr("0x5")][0][tr("0x1a")],i=a(n[tr("0x2d")]),o=tr(r?"0x10":"0x2b"),i&&(o="*Change to:* %0"),s={type:tr("0xc"),content:Yo(e,o,Yo(e,tr("0x25")))};break;case tr("0x33"):o="*Indent:* %0",s={type:tr("0xc"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case tr("0x3e"):o=function(t){const e=t.getFirstRange();let n=e.start[tr("0x17")];for(;n&&e.containsItem(n);){if(n[tr("0x42")]("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x34")]()[tr("0x3b")][tr("0x17")];return tr("0x3")+e[tr("0x42")](tr("0x32"))[tr("0x48")]()+tr("0x7")}(t))):Yo(e,tr("0x2"),Yo(e,tr("0x2a"))),s={type:"format",content:o};break;case tr("0x6"):case"mergeListItemForward":!1===n[tr("0x44")]&&(o="*Merge:* %0",s={type:tr("0x1b"),content:Yo(e,o,Yo(e,tr("0x2a")))})}return s})),n[tr("0x36")][tr("0x43")](tr("0x3c"),tr("0x3a"),tr("0x2c"),(function(e,n){const o=[];for(let n of e)n[tr("0x3b")][tr("0x17")]===n[tr("0x15")][tr("0x49")]&&(n=t.model[tr("0xa")](t[tr("0x46")].createPositionAt(n[tr("0x3b")].nodeAfter,0))),o[tr("0x12")](n);t[tr("0x46")][tr("0x39")]((e=>{const s=t[tr("0x46")][tr("0x41")].selection,r=Array.from(s[tr("0x4a")]())[tr("0x18")]((t=>i.LiveRange[tr("0x4b")](t)));e[tr("0x31")](o),t[tr("0x1d")][tr("0x40")](n.commandName)[tr("0x30")](),n[tr("0x5")].push({forceDefaultExecution:!0}),t.execute(n[tr("0x2d")],...n[tr("0x5")]),e[tr("0x31")](r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["plugins","editing","enter","addMarker:suggestion:insertion","createPositionAt","downcastDispatcher","fire","afterExecute","end","setSelection","high","enableCommand","requires","markerNameToElements","mapper","remove","fromRange","detach","hasClass","nextSibling","selection","enterBlock","getFirstPosition","model","createRange","parent","split","showSuggestionHighlights","markInsertion","markerName","get","TrackChangesEditing","options","change"];var sr,rr;sr=or,rr=400,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x14")](){return[nr.Enter]}init(){const t=this.editor,e=t[ir("0x8")][ir("0x4")](ir("0x5")),n=t.commands[ir("0x4")]("enter");e[ir("0x13")](ir("0xa"),(()=>{t[ir("0x1f")][ir("0x7")]((o=>{const s=t[ir("0x1f")].document[ir("0x1c")],r=s[ir("0x1e")](),x=i.LiveRange[ir("0x18")](s.getFirstRange());if(n[ir("0x1d")](o)){const n=t[ir("0x1f")][ir("0xc")](r[ir("0x21")][ir("0x1b")],0),s=o[ir("0x20")](r,n);e[ir("0x2")](s)}else o[ir("0x11")](o[ir("0x20")](x[ir("0x10")]));x[ir("0x19")](),n[ir("0xe")](ir("0xf"),{writer:o})}))})),t.editing[ir("0xd")].on("addMarker:suggestion:insertion",hs(t,ir("0x0")),{priority:ir("0x12")}),t[ir("0x9")][ir("0xd")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n.mapper[ir("0x15")](e[ir("0x3")]);if(o)for(const t of o)t[ir("0x1a")]("ck-suggestion-marker-split")&&(n[ir("0x16")].unbindElementFromMarkerName(t,e[ir("0x3")]),n.writer[ir("0x17")](t))}),{priority:ir("0x12")}),t.data[ir("0xd")].on(ir("0xb"),((e,n,o)=>{o[ir("0x6")][ir("0x1")]&&hs(t,ir("0x0"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"})}}const ar=["model","createRange","createPositionAt","end","get","getIntersection","afterInit","findByTextCallback","has","item","handleFindCommand","string","findPrevious","bind","editor","markers","replaceAll","enableCommand","suggestion:deletion","TrackChangesEditing","getMarkersGroup","_isInDeletionRange"];var cr,lr;cr=ar,lr=224,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x2")](){if(!this[dr("0xa")].plugins[dr("0x4")]("FindAndReplaceEditing"))return;const t=this[dr("0xa")].plugins[dr("0x0")](dr("0xf"));t[dr("0xd")]("find",this[dr("0x6")][dr("0x9")](this)),t[dr("0xd")]("findNext"),t[dr("0xd")](dr("0x8")),t[dr("0xd")]("replace"),t[dr("0xd")](dr("0xc"))}[dr("0x6")](t,e,n={}){const o=this.editor.plugins.get("FindAndReplaceUtils");void 0!==n&&t((t=>(dr("0x7")==typeof e?o[dr("0x3")](e,n):e)(t).filter((e=>!1===this[dr("0x11")](e,t[dr("0x5")])))),n)}_isInDeletionRange(t,e){const n=this.editor[dr("0x12")][dr("0x13")](this[dr("0xa")][dr("0x12")].createPositionAt(e,t.start),this[dr("0xa")][dr("0x12")][dr("0x14")](e,t[dr("0x15")]));for(const t of this[dr("0xa")].model[dr("0xb")][dr("0x10")](dr("0xe")))if(null!==n[dr("0x1")](t.getRange()))return!0;return!1}}const gr=["value","commandParams","fontColor","*Set font background color:* %0","markInlineFormat","plugins","model","*Reset font family*","toLowerCase","get","title","commandName","FontBackgroundColorEditing","editor","config","enableCommand","*Set font color:* %0","*Set font size:* %0","normalizeSizeOptions","FontSizeEditing","fontBackgroundColor","*Reset font background color*","FontFamilyEditing","fontSize.options","*Reset font size*","trim","TrackChangesEditing","from","fontFamily","*Set font family:* %0","has","fontSize","afterInit","*Reset font color*","_enableCommand","format","FontSize","find"];var mr,fr;mr=gr,fr=434,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x3"),commandName:hr("0xf")},{pluginName:hr("0x6"),commandName:hr("0xc")},{pluginName:"FontColorEditing",commandName:hr("0x18")},{pluginName:hr("0x22"),commandName:hr("0x4")}];class br extends t.Plugin{[hr("0x10")](){const t=this[hr("0x23")].locale;for(const{pluginName:t,commandName:e}of pr)this.editor[hr("0x1b")][hr("0xe")](t)&&this[hr("0x12")](e);this[hr("0x23")][hr("0x1b")][hr("0x1f")](hr("0xa"))._descriptionFactory.registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xf")==o[hr("0x21")]){const e=o.commandParams[0].value;if(e){const o=n(this[hr("0x23")][hr("0x1b")][hr("0x1f")](hr("0x14"))[hr("0x2")](this[hr("0x23")].config[hr("0x1f")](hr("0x7"))).find((t=>t[hr("0x1c")]==e))[hr("0x20")])[hr("0x1e")]();return{type:hr("0x13"),content:Yo(t,hr("0x1"),o)}}return{type:hr("0x13"),content:Yo(t,hr("0x8"))}}if(hr("0xc")==o[hr("0x21")]){const e=o[hr("0x17")][0][hr("0x16")];return e?{type:hr("0x13"),content:Yo(t,hr("0xd"),e)}:{type:hr("0x13"),content:Yo(t,hr("0x1d"))}}if(hr("0x18")==o.commandName){const e=o[hr("0x17")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x23")][hr("0x24")][hr("0x1f")]("fontColor.colors"))[hr("0x15")]((t=>t[hr("0x1c")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x1e")]()),{type:hr("0x13"),content:Yo(t,hr("0x0"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x13"),content:Yo(t,hr("0x11"))}}if("fontBackgroundColor"==o[hr("0x21")]){const e=o[hr("0x17")][0][hr("0x16")];if(e){const o=(0,s.normalizeColorOptions)(this.editor.config[hr("0x1f")]("fontBackgroundColor.colors"))[hr("0x15")]((t=>t[hr("0x1c")]==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:hr("0x13"),content:Yo(t,hr("0x19"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0x13"),content:Yo(t,hr("0x5"))}}}}))}[hr("0x12")](t){const e=this[hr("0x23")];e[hr("0x1b")][hr("0x1f")](hr("0xa"))[hr("0x25")](t,((n,o={})=>{const s=e[hr("0x1c")].document.selection,r=o.value;s.isCollapsed?n(o):e[hr("0x1c")].change((()=>{const n=Array[hr("0xb")](s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x1c")]);for(const o of n)e[hr("0x1b")][hr("0x1f")](hr("0xa"))[hr("0x1a")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["selection","word","markInlineFormat","getAttributeProperties","normalizeSizeOptions","fontColor.colors","getAttributes","copyFormat","toLowerCase","_descriptionFactory","forward","plugins","getLastPosition","label","commands","commandParams","locale","TrackChangesEditing","from","format","modifySelection","enableCommand","split","afterInit","title","getFirstPosition","find","fontSize.options","fontBackgroundColor","schema","fontSize","getSelectedBlocks","slice","getItems","pasteFormat","get","isBlock","document","boolean","createRange","model","getRanges","editor","push","backward","registerDescriptionCallback","createSelection","charAt","length"];var _r,Tr;_r=Er,Tr=353,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0xd")](){const t=this[Cr("0x20")],n=t[Cr("0x1e")],o=n[Cr("0x1b")][Cr("0x27")],s=t[Cr("0x1")][Cr("0x19")](Cr("0x7")),r=t.locale,i=t.commands[Cr("0x19")](Cr("0x2e")),x=t[Cr("0x4")][Cr("0x19")](Cr("0x18"));i&&x&&(s[Cr("0xb")](Cr("0x18"),((t,r={})=>{const i=r;n.change((()=>{const t=Array[Cr("0x8")](o[Cr("0x1f")]()),r=o.isCollapsed?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x2d")]()){const t=e[Cr("0x2a")](n);t&&t.isFormatting&&(yield n)}}(t,n));for(const e of t[Cr("0x1f")]())for(const t of e[Cr("0x17")]())!n[Cr("0x1a")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x15")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x13")]))||0!==Object.keys(i)[Cr("0x26")])for(const t of r)s[Cr("0x29")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Cr("0x30")][Cr("0x23")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Cr("0x5")][0];for(const[n,s]of Object.entries(o))e[Cr("0x21")](Ar(t,n,s));return e[Cr("0x26")]?{type:"format",content:Yo(r,"*Set format to:* %0",e.join(", "))}:{type:Cr("0x9"),content:Yo(r,"*Remove all formatting*")}}})),t[Cr("0x1")][Cr("0x19")](Cr("0x7"))[Cr("0xb")](Cr("0x2e")))}}function kr(t,e){const n=t[Cr("0x24")](e);t[Cr("0xa")](n,{unit:Cr("0x28"),direction:Cr("0x22")});const o=n[Cr("0xf")]();t.modifySelection(n,{unit:Cr("0x28"),direction:Cr("0x0")});const s=n[Cr("0x2")]();return t[Cr("0x1d")](o,s)}function Ar(t,e,n){const o=t[Cr("0x6")].t,r=e[Cr("0xc")](/(?=[A-Z])/).join(" "),i=o(r[Cr("0x25")](0).toUpperCase()+r[Cr("0x16")](1))[Cr("0x2f")]();if(Cr("0x1c")==typeof n)return i;if("fontColor"===e||Cr("0x12")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x19")](Cr("0x2c")))[Cr("0x10")]((t=>t.model==n));return i+" ("+(e?o(e[Cr("0x3")])[Cr("0x2f")]():n)+")"}if(Cr("0x14")===e&&isNaN(parseFloat(n))){const e=t[Cr("0x1")].get("FontSize")[Cr("0x2b")](t.config.get(Cr("0x11")))[Cr("0x10")]((t=>t[Cr("0x1e")]==n));return i+" ("+(e?o(e[Cr("0xe")])[Cr("0x2f")]():n)+")"}return i+" ("+n+")"}const vr=["config","markBlockFormat","isObject","formatBlock","editor","TrackChangesEditing","value","checkChild","name","title","parent","find","filter","change","commandName","_descriptionFactory","format","schema","has","model","heading.options","from","plugins","blockName","enableCommand","*Change to:* %0","locale","match","ELEMENT_HEADING_CUSTOM","document","HeadingEditing","getSelectedBlocks","heading","get","registerDescriptionCallback","afterInit","paragraph","selection"];var Rr,Sr;Rr=vr,Sr=460,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x1f")](){const t=this[Ir("0x0")],e=t[Ir("0x16")],n=t[Ir("0x22")][Ir("0x1d")](Ir("0x10"));if(!t[Ir("0x12")][Ir("0xe")](Ir("0x1a")))return;const o=t[Ir("0x12")][Ir("0x1d")](Ir("0x1"));o[Ir("0x14")]("heading",((e,n)=>{const s=n[Ir("0x2")],r=Array[Ir("0x11")](this[Ir("0x0")][Ir("0xf")][Ir("0x19")][Ir("0x21")][Ir("0x1b")]())[Ir("0x8")]((t=>{return e=t,n=s,(o=this[Ir("0x0")].model[Ir("0xd")])[Ir("0x3")](e[Ir("0x6")],n)&&!o[Ir("0x24")](e)&&e[Ir("0x4")]!=n;var e,n,o}));t[Ir("0xf")][Ir("0x9")]((()=>{for(const t of r)o[Ir("0x23")](t,{commandName:Ir("0x1c"),commandParams:[n],formatGroupId:Ir("0x13")},fs(t))}))}));for(const t of n)Ir("0x20")!=t[Ir("0xf")]&&o[Ir("0xb")].registerElementLabel(t[Ir("0xf")],(e=>{const n=Nr(t[Ir("0xf")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,Ir("0x18"),[t,n])}o[Ir("0xb")][Ir("0x1e")]((t=>{const{type:o,data:i}=t;if(Ir("0x25")==o&&i&&Ir("0x1c")==i[Ir("0xa")]){const t=i.commandParams[0][Ir("0x2")],o=Nr(t);if(null!==o)return{type:Ir("0xc"),content:Yo(e,Ir("0x15"),s(1,o))};const x=n[Ir("0x7")]((e=>e[Ir("0xf")]===t))[Ir("0x5")];return{type:Ir("0xc"),content:Yo(e,Ir("0x15"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x17")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["value","commandName","FORMAT_HIGHLIGHT","change","*Set highlight:* %0","highlight","getRanges","backward","document","get","markInlineFormat","afterInit","find","format","model","hasAttribute","HighlightEditing","isCollapsed","_descriptionFactory","getFirstPosition","plugins","title","locale","commandParams","enableCommand","createRange","toLowerCase","item","push","editor","TrackChangesEditing","has","selection"];var wr,Or;wr=Mr,Or=450,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x17")](){const t=this[Fr("0x8")];if(!t[Fr("0x20")][Fr("0xa")](Fr("0x1c")))return;const e=t[Fr("0x20")][Fr("0x15")](Fr("0x9"));e[Fr("0x3")]("highlight",((n,o={})=>{const s=t[Fr("0x1a")][Fr("0x14")][Fr("0xb")],r=s.getAttribute(Fr("0x11"));let i=o[Fr("0xc")],x=[];if(s[Fr("0x1d")]){const e=s[Fr("0x1f")]();if(!s[Fr("0x1b")](Fr("0x11")))return void n(o);{const n=t=>t[Fr("0x6")].getAttribute(Fr("0x11"))===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x13")}),s=e.getLastMatchingPosition(n);x=[t.model[Fr("0x4")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x12")]())i?x[Fr("0x7")](e):x[Fr("0x7")](...ms(Fr("0x11"),e,t[Fr("0x1a")]));t.model[Fr("0xf")]((()=>{for(const t of x)e[Fr("0x16")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x1")];e[Fr("0x1e")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&Fr("0x11")==s[Fr("0xd")]){const e=n.t,o=s[Fr("0x2")][0].value;if(o){const s=t.config[Fr("0x15")]("highlight.options")[Fr("0x18")]((t=>t.model==o)),r=e(s[Fr("0x0")])[Fr("0x5")]();return{type:Fr("0x19"),content:Yo(n,Fr("0x10"),r),color:{value:s.color,title:s[Fr("0x0")]}}}return{type:Fr("0x19"),content:Yo(n,"*Remove highlight*",Yo(n,Fr("0xe")))}}}))}}const Dr=["conversion","get","_descriptionFactory","createEmptyElement","horizontalLine","registerElementLabel","createPositionAt","enableCommand","TrackChangesEditing","dataDowncast","addClass","showSuggestionHighlights","has","editor","ELEMENT_HORIZONTAL_LINE","elementToStructure","plugins","insert","locale","for","ck-horizontal-line","createContainerElement","high"];var Br,jr;Br=Dr,jr=110,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{afterInit(){const t=this[Ur("0x12")];if(!t.plugins[Ur("0x11")]("HorizontalLineEditing"))return;t[Ur("0x15")][Ur("0x6")](Ur("0xd"))[Ur("0xc")](Ur("0x9"));const e=t[Ur("0x15")].get(Ur("0xd")),n=t[Ur("0x0")];e[Ur("0x7")][Ur("0xa")](Ur("0x9"),(t=>Yo(n,Ur("0x13"),t))),t[Ur("0x5")][Ur("0x1")](Ur("0xe"))[Ur("0x14")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x10")])return null;const o=e[Ur("0x3")]("div"),s=e[Ur("0x8")]("hr");return e[Ur("0xf")](Ur("0x2"),o),e[Ur("0x16")](e[Ur("0xb")](o,0),s),o},converterPriority:Ur("0x4")})}}const Hr=["element","rawHtml","getSelectedElement","document","getAttribute","HtmlEmbed","ELEMENT_HTML_EMBED","registerDescriptionCallback","value","TrackChangesEditing","plugins","afterInit","editing","commandName","view","htmlEmbed","change","_descriptionFactory","format","has","getCustomProperty","*Change %0 content*","get","locale","cancel","selection"];var zr,Wr;zr=Hr,Wr=380,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x15")](){const t=this.editor;if(!t[Vr("0x14")][Vr("0x3")](Vr("0xf")))return;const e=t[Vr("0x14")][Vr("0x6")]("TrackChangesEditing"),n=t[Vr("0x7")],o=t[Vr("0x16")][Vr("0x18")].document.selection;e[Vr("0x1")].registerElementLabel(Vr("0xb"),(t=>Yo(n,Vr("0x10"),t))),t.plugins[Vr("0x6")](Vr("0x13")).enableCommand(Vr("0x19"),((n,s)=>{const r=t.model,i=r[Vr("0xd")][Vr("0x9")];r[Vr("0x0")]((()=>{const t=function(t){const e=t[Vr("0xc")]();return e&&e.is(Vr("0xa"),Vr("0xb"))?t[Vr("0xc")]():null}(i);if(!t)return void n(null);const r=t[Vr("0xe")](Vr("0x12"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x19"),commandParams:[s]}),o[Vr("0xc")]()[Vr("0x4")]("rawHtmlApi")[Vr("0x8")]())}))})),e[Vr("0x1")][Vr("0x11")]((t=>{const{data:e}=t;if(e&&Vr("0x19")==e[Vr("0x17")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x2"),content:Yo(n,Vr("0x5"),t)}}}))}}const qr=["author","commands","nodeBefore","registerDescriptionCallback","discard","chain","imageInline","name","isBefore","toLowerCase","end","_descriptionFactory","nodeAfter","normalizedStyles","caption","head","markInlineFormat","imageCaption","selection","registerElementLabel","getCaptionFromImageModelElement","element","getFirstRange","document","get","TrackChangesEditing","has","FORMAT_SIDE_IMAGE","createRange","toNext","imageBlock","convertInlineImageToBlock","differ","ImageCaptionEditing","isBlockImage","newValue","fromPosition","registerPostFixer","filter","width","getSuggestion","forward","ImageTextAlternativeEditing","ImageStyleEditing","Users","_findSuggestions","imageTextAlternative","ImageInlineEditing","subType","change","imageTypeInline","isIntersecting","_splitMarkerName","side","imageStyle","convertBlockImageToInline","editor","join","refresh","plugins","Inline image to block image","imageStylePreApply","format","from","getChangedMarkers","getNearestSelectionRange","value","newRange","getSuggestions","createRangeOn","ImageBlockEditing","isInContent","accept","*Set image width:* %0","model","schema","forceDefaultExecution","toggleImageCaption","uploadImage","insertion","commandName","ELEMENT_CAPTION","registerCustomCallback","_suggestionFactory","isEqual","ImageCaptionUtils","shouldConvertImageType","getContainedElement","getClosestSelectedImageElement","title","getAttribute","toPrevious","alt","isCollapsed","addObject","commandParams","length","type","detach","enableCommand","resizeImage","next","hasSuggestion","start","getSuggestionCallback","imageStylePostApply","findIndex","formatInline","discardSuggestion","previous","locale","markBlockFormat","ImageUtils","markInsertion","imageTypeBlock","formatBlock"];var Xr,$r;Xr=qr,$r=118,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x36")];if(!t[Jr("0x39")][Jr("0x18")]("ImageEditing"))return;const n=t[Jr("0x39")][Jr("0x16")](Jr("0x17")),o=t.plugins[Jr("0x16")](Jr("0x6e")),s={},r=t[Jr("0x6c")];if(n.enableCommand("insertImage"),n[Jr("0x9")][Jr("0x11")](Jr("0x1c"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n._descriptionFactory[Jr("0x11")](Jr("0x4"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x9")][Jr("0x11")](Jr("0xc"),(()=>Yo(r,Jr("0x4f")))),t.plugins[Jr("0x18")]("ImageUploadEditing")&&n[Jr("0x61")](Jr("0x4c")),t.plugins[Jr("0x18")](Jr("0x44"))&&t[Jr("0x39")][Jr("0x18")](Jr("0x2d"))&&(n[Jr("0x61")]("imageTypeInline",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x48")].document.selection);t.model[Jr("0x2f")]((()=>{n[Jr("0x6d")](r,{commandName:Jr("0x30"),commandParams:[s]},[],Jr("0x35"))}))})),n[Jr("0x61")]("imageTypeBlock",((e,s)=>{t[Jr("0x48")].change((r=>{let x=o[Jr("0x56")](t[Jr("0x48")][Jr("0x15")][Jr("0x10")]),a=r[Jr("0x43")](x);const c=i.LivePosition[Jr("0x22")](a.start,Jr("0x59")),l=i.LivePosition[Jr("0x22")](a[Jr("0x8")],Jr("0x1b"));n[Jr("0x4a")]((()=>e(s))),x=o.getClosestSelectedImageElement(t[Jr("0x48")][Jr("0x15")][Jr("0x10")]),a=r[Jr("0x43")](x);const d=r[Jr("0x1a")](c,l);c[Jr("0x60")](),l[Jr("0x60")](),n[Jr("0x6d")](x,{commandName:Jr("0x30"),commandParams:[]},[],Jr("0x1d")),d[Jr("0x65")][Jr("0x6")](a.start)&&n[Jr("0x6f")](r[Jr("0x1a")](d[Jr("0x65")],a[Jr("0x65")]),Jr("0x1d")),a[Jr("0x8")][Jr("0x6")](d[Jr("0x8")])&&n.markInsertion(r[Jr("0x1a")](a.end,d[Jr("0x8")]),Jr("0x1d"))}))})),n[Jr("0x51")][Jr("0x50")]("formatBlock",Jr("0x1d"),Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x50")](Jr("0x71"),Jr("0x1d"),"accept",(()=>{})),n._suggestionFactory[Jr("0x50")](Jr("0x71"),Jr("0x1d"),"discard",n._suggestionFactory[Jr("0x66")]("formatBlock","",Jr("0x46"))),n[Jr("0x51")][Jr("0x50")](Jr("0x4d"),Jr("0x1d"),Jr("0x37"),(()=>{})),n._suggestionFactory[Jr("0x50")]("insertion",Jr("0x1d"),"discard",(([e])=>{const o=n._suggestionFactory.getSuggestionCallback(Jr("0x4d"),"",Jr("0x2"));let s=e.start,r=e[Jr("0x8")];const i=t[Jr("0x48")].schema[Jr("0x3f")](s,"backward"),x=t[Jr("0x48")][Jr("0x49")][Jr("0x3f")](r,Jr("0x27"));i[Jr("0x5b")]&&(s=i[Jr("0x65")]),x[Jr("0x5b")]&&(r=x[Jr("0x8")]),o([t[Jr("0x48")][Jr("0x1a")](s,r)])})),n[Jr("0x51")][Jr("0x50")](Jr("0x71"),Jr("0x1d"),"chain",c),n[Jr("0x51")].registerCustomCallback(Jr("0x4d"),Jr("0x1d"),Jr("0x3"),c)),t[Jr("0x39")].has(Jr("0x1f"))&&(n[Jr("0x61")](Jr("0x4b"),((e,s)=>{const r=t.plugins[Jr("0x16")](Jr("0x53"));let i=o.getClosestSelectedImageElement(t[Jr("0x48")].document[Jr("0x10")]),x=r[Jr("0x12")](i);t.model[Jr("0x2f")]((()=>{if(x)return void n.markDeletion(t.model[Jr("0x43")](x));const a=o[Jr("0x20")](i);e(s),i=o.getClosestSelectedImageElement(t[Jr("0x48")][Jr("0x15")][Jr("0x10")]),x=r[Jr("0x12")](i),n[Jr("0x6f")](t[Jr("0x48")].createRangeOn(x),a?null:Jr("0xf"))}))})),n._suggestionFactory[Jr("0x50")](Jr("0x4d"),Jr("0xf"),"chain",c)),t.plugins.has("ImageStyleEditing")){n[Jr("0x61")]("imageStyle",((s,r)=>{const i=t[Jr("0x39")][Jr("0x16")](Jr("0x2a")).me,x=t[Jr("0x73")][Jr("0x16")](Jr("0x34"));let a=o[Jr("0x56")](t[Jr("0x48")][Jr("0x15")][Jr("0x10")]),c=t[Jr("0x48")][Jr("0x43")](a),l=x[Jr("0x40")];if(l==r[Jr("0x40")])return;const d={commandName:Jr("0x34"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x2f")]((()=>{if(n[Jr("0x42")]()[Jr("0x24")]((t=>t.isInContent&&i==t[Jr("0x72")]&&("formatBlock"==t[Jr("0x5f")]||Jr("0x69")==t.type)&&(Jr("0x3b")==t.subType||Jr("0x67")==t[Jr("0x2e")])&&t[Jr("0x14")]().isEqual(c))).forEach((t=>n[Jr("0x6a")](t[Jr("0xd")]))),a=o[Jr("0x56")](t[Jr("0x48")].document[Jr("0x10")]),c=t.model[Jr("0x43")](a),x[Jr("0x38")](),t[Jr("0x73")][Jr("0x16")]("imageTypeInline")[Jr("0x38")](),t.commands[Jr("0x16")](Jr("0x70"))[Jr("0x38")](),l=x.value,l!=r[Jr("0x40")])return o.isInlineImage(a)&&x[Jr("0x54")](r[Jr("0x40")],a)?(s(r),a=o[Jr("0x56")](t[Jr("0x48")].document[Jr("0x10")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x3b"))):void(o[Jr("0x20")](a)?n.markBlockFormat(a,d,[],Jr("0x67")):n[Jr("0xe")](c,d,"imageStylePostApply"))}))}));for(const e of t[Jr("0x39")][Jr("0x16")](Jr("0x29"))[Jr("0xb")])s[e[Jr("0x5")]]=e[Jr("0x57")][Jr("0x7")]();n[Jr("0x51")][Jr("0x50")](Jr("0x71"),Jr("0x3b"),Jr("0x37"),(()=>{})),n[Jr("0x51")][Jr("0x50")](Jr("0x71"),Jr("0x67"),Jr("0x37"),(()=>{})),n[Jr("0x51")][Jr("0x50")](Jr("0x69"),Jr("0x67"),"join",(()=>{})),n[Jr("0x51")][Jr("0x50")]("formatBlock",Jr("0x3b"),"accept",(()=>{})),n._suggestionFactory[Jr("0x50")](Jr("0x71"),Jr("0x3b"),Jr("0x2"),((t,e)=>{n[Jr("0x51")][Jr("0x66")](Jr("0x71"),"",Jr("0x46"))(t,{commandName:e[Jr("0x4e")],commandParams:e.commandReversedParams})})),n[Jr("0x51")][Jr("0x50")](Jr("0x71"),Jr("0x3b"),"chain",c)}const x=[{type:Jr("0x71"),subType:Jr("0x3b")},{type:Jr("0x4d"),subType:Jr("0xf")},{type:Jr("0x71"),subType:"convertInlineImageToBlock"},{type:"insertion",subType:Jr("0x1d")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[Jr("0x5f")]==e&&t[Jr("0x2e")]==n)),r=x[Jr("0x68")]((({type:t,subType:n})=>e[Jr("0x5f")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[Jr("0x14")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Jr("0x31")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x2b")](i,Jr("0x4d")).filter((({suggestion:t,meta:e})=>e.isOwn&&Jr("0x1d")==t[Jr("0x2e")]));if(t[Jr("0x5e")]>1&&a[Jr("0x8")][Jr("0x52")](i[Jr("0x65")]))return!0;if(1==t[Jr("0x5e")]&&(i.start[Jr("0x52")](a[Jr("0x8")])||i[Jr("0x8")][Jr("0x52")](a[Jr("0x65")])))return!0}if(3==s&&3==r&&i.start[Jr("0x6")](a[Jr("0x65")])){const t=i[Jr("0x8")][Jr("0xa")],e=a[Jr("0x65")][Jr("0x0")];return o[Jr("0x20")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x48")][Jr("0x15")][Jr("0x23")]((()=>{let e=!1;const s=Array[Jr("0x3d")](t[Jr("0x48")].document[Jr("0x1e")][Jr("0x3e")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x32")](t);if("suggestion"==s&&n[Jr("0x64")](a)){if(Jr("0x71")==i&&(Jr("0x3b")==x||Jr("0x67")==x)){const t=n[Jr("0x26")](a);if(r[Jr("0x41")]){const s=t[Jr("0x14")]()[Jr("0x55")]();if(o.isBlockImage(s))continue;n[Jr("0x6a")](t),e=!0}}if(Jr("0x4d")==i&&Jr("0xf")==x&&!r[Jr("0x41")]){const t=n[Jr("0x26")](a);t[Jr("0x63")]&&t[Jr("0x63")][Jr("0x45")]&&(n[Jr("0x6a")](t[Jr("0x63")]),e=!0)}}}return e})),t[Jr("0x39")][Jr("0x18")]("ImageResize")&&n[Jr("0x61")](Jr("0x62"),((e,s)=>{const r=o[Jr("0x56")](t[Jr("0x48")][Jr("0x15")][Jr("0x10")]);r[Jr("0x58")](Jr("0x25"))!=s[Jr("0x25")]&&t[Jr("0x48")][Jr("0x2f")]((()=>{n[Jr("0x6d")](r,{commandName:Jr("0x62"),commandParams:[s]})}))})),t[Jr("0x39")][Jr("0x18")](Jr("0x28"))&&n[Jr("0x61")](Jr("0x2c"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x48")][Jr("0x15")].selection);(r.hasAttribute("alt")?r[Jr("0x58")](Jr("0x5a")):"")!=s[Jr("0x21")]&&t[Jr("0x48")][Jr("0x2f")]((()=>{n[Jr("0x6d")](r,{commandName:Jr("0x2c"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x1")]((t=>{if(x.find((({type:e,subType:n})=>t.type==e&&t[Jr("0x2e")]==n)))return t[Jr("0x6b")]?{}:void 0})),n[Jr("0x9")][Jr("0x1")]((t=>{if(Jr("0x4d")==t.type||"deletion"==t[Jr("0x5f")]){const e=t[Jr("0x55")]();if(e&&e.is(Jr("0x13"),Jr("0xc")))return{type:"insertion"==t[Jr("0x5f")]?Jr("0x5c"):"removeObject",element:e,quantity:1}}})),n._descriptionFactory[Jr("0x1")]((t=>"formatBlock"==t[Jr("0x5f")]&&"convertInlineImageToBlock"==t[Jr("0x2e")]?{type:Jr("0x3c"),content:Jr("0x3a")}:Jr("0x71")==t[Jr("0x5f")]&&Jr("0x35")==t[Jr("0x2e")]?{type:Jr("0x3c"),content:"Block image to inline image"}:void 0)),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Jr("0x34")==e[Jr("0x4e")]){const t=e[Jr("0x5d")][0][Jr("0x40")];return n=Jr("0x33")===t?Yo(r,Jr("0x19")):s[t]||t,{type:Jr("0x3c"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x2c")==e[Jr("0x4e")]){const t=e.commandParams[0][Jr("0x21")];return t?{type:Jr("0x3c"),content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Jr("0x3c"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x62")==e[Jr("0x4e")]){const t=e[Jr("0x5d")][0].width;return t?{type:Jr("0x3c"),content:Yo(r,Jr("0x47"),t)}:{type:Jr("0x3c"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["locale","getAttribute","handleReplaceImageCommand","document","replaceImageSource","subType","discard","model","_suggestionFactory","markBlockFormat","handleSuggestionDescription","Users","get","ImageEditing","accept","getContainedElement","editor","change","*Format:* replace image URL","selection","has","commandName","getSelectedElement","plugins","_descriptionFactory","registerDescriptionCallback","TrackChangesEditing","registerCustomCallback","formatBlock","format","getSuggestionCallback","enableCommand"];var Yr,ti;Yr=Zr,ti=469,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x1b")][ei("0x2")][ei("0x1f")](ei("0x18")))return;const t=this[ei("0x1b")][ei("0x2")][ei("0x17")](ei("0x5"));t[ei("0xa")]("replaceImageSource",((t,e)=>this[ei("0xd")](t,e))),t._suggestionFactory[ei("0x6")](ei("0x7"),ei("0xf"),ei("0x19"),t[ei("0x13")][ei("0x9")](ei("0x7"),null,ei("0x11"))),t[ei("0x13")][ei("0x6")](ei("0x7"),ei("0xf"),ei("0x11"),t[ei("0x13")][ei("0x9")](ei("0x7"),null,ei("0x19"))),t[ei("0x3")][ei("0x4")]((t=>this[ei("0x15")](t)))}[ei("0xd")](t,e){const n=this[ei("0x1b")][ei("0x2")][ei("0x17")]("TrackChangesEditing"),o=this[ei("0x1b")].model[ei("0xe")][ei("0x1e")][ei("0x1")]();this[ei("0x1b")][ei("0x12")][ei("0x1c")]((()=>{let s=o[ei("0xc")]("src");const r=this[ei("0x1b")][ei("0x2")][ei("0x17")](ei("0x16")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t[ei("0x1a")]();if(ei("0xf")===t[ei("0x10")]&&e===o){t.author!==r&&t[ei("0x11")](),s=t.data.commandParams[0].source;break}}t(e),n[ei("0x14")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],"replaceImageSource")}))}[ei("0x15")](t){const{data:e}=t;if(e&&ei("0xf")===e[ei("0x0")]){const t=ei("0x1d");return{type:ei("0x8"),content:Yo(this[ei("0x1b")][ei("0xb")],t)}}}}const oi=["_trackChangesValueDuringImport","enableCommand","dataInsert","plugins","execute","editor","TrackChangesEditing","track_changes","trackChanges","bind","importWord","collaboration_features","Users","value","listenTo","lowest","_trackChangesExecuted","_handleImportedData","get","afterInit","commands"];var si,ri;si=oi,ri=433,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}[ii("0x6")](){const t=this[ii("0xd")],e=t[ii("0x7")][ii("0x5")]("importWord"),n=t.commands.get(ii("0x10"));e&&(e.on(ii("0xc"),((t,[,e])=>{this[ii("0x8")]=n[ii("0x0")],e[ii("0x13")][ii("0xf")]=!this[ii("0x8")]}),{priority:"high"}),this.listenTo(e,ii("0xa"),this[ii("0x4")][ii("0x11")](this)),this[ii("0x1")](e,"dataInsert",(()=>{this[ii("0x3")]&&(n[ii("0xc")](),this._trackChangesExecuted=!1)}),{priority:ii("0x2")}),t[ii("0xb")][ii("0x5")](ii("0xe"))[ii("0x9")](ii("0x12")))}[ii("0x4")](t,e){const{suggestions:n}=e,o=this.editor[ii("0x7")][ii("0x5")](ii("0x10")),s=o[ii("0x0")];this[ii("0x8")]!==s&&(o.execute(),this[ii("0x3")]=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xd")][ii("0xb")][ii("0x5")](ii("0x14")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x12")}}};this.editor[ii("0xb")].get(ii("0xe"))._setSuggestionData(s)}))}}const ai=["from","format","TrackChangesEditing","afterInit","registerDescriptionCallback","filter","commandName","document","model","indentBlock","plugins","getItemLabel","markBlockFormat","enableCommand","get","locale","getSelectedBlocks","indent","editor","blockIndent","checkAttribute","schema","_descriptionFactory","has","change","outdent","*Outdent:* %0","*Indent:* %0","outdentBlock","IndentBlock"];var ci,li;ci=ai,li=284,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x13")](){const t=this.editor,e=t[di("0x1a")][di("0x0")](di("0x12"));t.plugins[di("0x9")]("IndentEditing")&&(e[di("0x1d")](di("0x3")),e[di("0x1d")](di("0xb")));const n=t[di("0x1")];if(t.plugins.has(di("0xf"))){for(const n of["indentBlock",di("0xe")])e[di("0x1d")](n,(()=>{const o=Array[di("0x10")](this[di("0x4")][di("0x18")][di("0x17")].selection[di("0x2")]())[di("0x15")]((t=>this.editor[di("0x18")][di("0x7")][di("0x6")](t,di("0x5"))));t[di("0x18")][di("0xa")]((()=>{for(const t of o)e[di("0x1c")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e._descriptionFactory[di("0x14")]((t=>{const{data:o}=t;if(!o)return;if(di("0x19")!=o[di("0x16")]&&di("0xe")!=o[di("0x16")])return;const s=t.getItems()[0],r=e[di("0x8")][di("0x1b")](s);return"indentBlock"==o[di("0x16")]?{type:di("0x11"),content:Yo(n,di("0xd"),r)}:"outdentBlock"==o[di("0x16")]?{type:"format",content:Yo(n,di("0xc"),r)}:void 0}))}}}var gi,mi,fi=["TrackChangesEditing","init","editor","enableCommand","input"];gi=fi,mi=469,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get requires(){return[Vs.Input]}[hi("0x2")](){this[hi("0x3")].plugins.get(hi("0x1"))[hi("0x4")](hi("0x0"))}}const bi=["document","link","afterInit","format","TrackChangesEditing","commandParams","isCollapsed","plugins","model","change","registerDescriptionCallback","commandName","getAttribute","getFirstRange","from","has","*Remove link*","editor","_descriptionFactory","locale","unlink","linkHref","markInlineFormat","get","getFirstPosition","LinkEditing"];var Ei,_i;Ei=bi,_i=435,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x9")](){const t=this[Ti("0x18")];if(!t[Ti("0xe")][Ti("0x16")](Ti("0x6")))return;const e=t.plugins[Ti("0x4")](Ti("0xb"));e.enableCommand(Ti("0x8"),((n,o)=>{const s=t[Ti("0xf")][Ti("0x7")].selection;let r=[];if(s[Ti("0xd")]){if(!s.hasAttribute("linkHref"))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x5")](),Ti("0x2"),s[Ti("0x13")]("linkHref"),t.model);r=[e]}}else r=Array[Ti("0x15")](s.getRanges());t.model.change((()=>{for(const t of r)e[Ti("0x3")](t,{commandName:Ti("0x8"),commandParams:[o]})}))})),e.enableCommand(Ti("0x1"),(()=>{const n=this[Ti("0x18")][Ti("0xf")],o=n[Ti("0x7")].selection;n[Ti("0x10")]((()=>{let n=[];n=o[Ti("0xd")]?[(0,Vs.findAttributeRange)(o[Ti("0x5")](),Ti("0x2"),o.getAttribute(Ti("0x2")),t[Ti("0xf")])]:ms("linkHref",o[Ti("0x14")](),t[Ti("0xf")]);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x1"),commandParams:[]})}))})),e[Ti("0x19")][Ti("0x11")]((e=>{const{data:n}=e,o=t[Ti("0x0")];if(n){if(Ti("0x8")==n[Ti("0x12")]){const t=n[Ti("0xc")][0];return{type:Ti("0xa"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x1")==n[Ti("0x12")]?{type:Ti("0xa"),content:Yo(o,Ti("0x17"))}:void 0}}))}}const yi=["findIndex","parent","ELEMENT_NUMBERED_LIST","change","value","slice","element","has","bulletedList","*Change to:* %0","_descriptionFactory","nextSibling","checkTodoList","add","format","plugins","forceValue","from","listType","markBlockFormat","getSelectedBlocks","afterInit","listItem","editor","commandParams","filter","push","listIndent","_selectedElements","outdentList","createPositionAt","ListEditing","document","model","createRange","paragraph","*Indent:* %0","todoList","indentList","previousSibling","*Check item*","registerDescriptionCallback","getAttribute","bulleted","name","numberedList","blockName","get","*Outdent:* %0","execute","todoListChecked","*Uncheck item*","TodoListEditing","todo","checkChild","enableCommand","commands","locale","commandName","schema","selection","length","ELEMENT_TODO_LIST","ELEMENT_LIST_ITEM"];var ki,Ai;ki=yi,Ai=474,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x3b")](){const t=this[vi("0x3d")],e=t[vi("0x1f")];if(!t[vi("0x35")][vi("0x2d")](vi("0x5")))return;const n=t[vi("0x35")][vi("0x15")]("TrackChangesEditing"),o=t.plugins[vi("0x2d")](vi("0x1a"));function s(e){return()=>{const o=t.model[vi("0x6")][vi("0x22")],s=t[vi("0x1e")][vi("0x15")](e);if(s[vi("0x2a")])return void t[vi("0x17")](vi("0x9"),{});const r=e[vi("0x2b")](0,-4),i=function(t,e,n){let o=Array.from(t)[vi("0x3f")]((t=>{return e=t,(o=n)[vi("0x1c")](e[vi("0x27")],"listItem")&&!o.isObject(e);var e,o}));o=o[vi("0x3f")]((t=>!t.is(vi("0x2c"),vi("0x3c"))||t.getAttribute(vi("0x38"))!=e));const s=new Set;for(const t of o)t.is(vi("0x2c"),vi("0x3c"))?s.add(Si(t)):s[vi("0x33")](t);return Array[vi("0x37")](s)}(o[vi("0x3a")](),r,t[vi("0x7")][vi("0x21")]);t[vi("0x7")].change((()=>{for(const t of i)n[vi("0x39")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x2a")]}],formatGroupId:vi("0x14")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x37")](t);const n=e[vi("0x26")]((t=>vi("0x3c")!=t[vi("0x12")]));return n>-1&&(e=e[vi("0x2b")](0,n)),e}(t.model[vi("0x6")][vi("0x22")][vi("0x3a")]()),s=t[vi("0x7")][vi("0x8")](t[vi("0x7")][vi("0x4")](o[0],"before"),t[vi("0x7")][vi("0x4")](o[o[vi("0x23")]-1],"end"));t[vi("0x7")].change((()=>{n[vi("0x39")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x1")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[vi("0x10")](vi("0x1"))>n[vi("0x10")](vi("0x1"));)e[vi("0x33")](t),t=t[vi("0x31")]}return Array[vi("0x37")](e)}(o))}))}}n[vi("0x1d")](vi("0x13"),s(vi("0x13"))),n[vi("0x1d")](vi("0x2e"),s(vi("0x2e"))),o&&n[vi("0x1d")](vi("0xb"),s(vi("0xb"))),n[vi("0x1d")](vi("0xc"),r(vi("0xc"))),n[vi("0x1d")](vi("0x3"),r(vi("0x3"))),o&&n[vi("0x1d")](vi("0x32"),(()=>{const e=t.commands[vi("0x15")](vi("0x32")),o=Array[vi("0x37")](e[vi("0x2")]);o[vi("0x3f")]((t=>t[vi("0x10")](vi("0x18"))!=e.value)),t[vi("0x7")][vi("0x29")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x32"),commandParams:[{forceValue:!e[vi("0x2a")]}]})}))})),n._descriptionFactory.registerElementLabel(vi("0x3c"),(t=>Yo(e,vi("0x25"),t))),n[vi("0x30")][vi("0xf")]((t=>{const{data:n}=t;if(n){if(vi("0x13")==n[vi("0x20")]||"bulletedList"==n[vi("0x20")]||vi("0xb")==n.commandName)switch(n[vi("0x20")].replace("List","")){case vi("0x11"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,vi("0x28")));case vi("0x1b"):return o(Yo(e,vi("0x24")))}if("indentList"==n[vi("0x20")])return{type:vi("0x34"),content:Yo(e,vi("0xa"),Yo(e,vi("0x25")))};if(vi("0x3")==n[vi("0x20")])return{type:"format",content:Yo(e,vi("0x16"),Yo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[vi("0x20")])return n[vi("0x3e")][0][vi("0x36")]?{type:"format",content:Yo(e,vi("0xe"))}:{type:vi("0x34"),content:Yo(e,vi("0x19"))}}function o(t){return{type:vi("0x34"),content:Yo(e,vi("0x2f"),t)}}}))}}function Si(t){const e=t[vi("0x10")](vi("0x1"));if(0==e)return t;let n=t;for(;t[vi("0xd")]&&t[vi("0xd")].is(vi("0x2c"),vi("0x3c"));){const o=t[vi("0xd")][vi("0x10")](vi("0x1"));if(o==e)n=t[vi("0xd")];else if(o<e)break;t=t[vi("0xd")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2c"),vi("0x3c"))&&t[vi("0x10")](vi("0x1"))>0){let n=t[vi("0x31")];for(;n&&vi("0x3c")==n[vi("0x12")]&&n[vi("0x10")](vi("0x1"))==t.getAttribute("listIndent");)e[vi("0x0")](n),n=n.nextSibling}return e}const Li=["push","change","listStyle","parent","handleListStyleCommand","selection","element","getSiblingNodes","createRange","handleListStartCommand","_getSuggestionBlocks","getSelectedBlocks","map","_descriptionFactory","bind","get","ListPropertiesEditing","format","listStart","getFirstPosition","getAttribute","forward","*Format:* set order to reversed","commandName","listItem","flat","type","reversed","backward","model","getListTypeFromListStyleType","document","before","toUpperCase","_LIST_","registerDescriptionCallback","ListUtils","handleDescriptions","commandParams","markMultiRangeBlockFormat","filter","ELEMENT_","from","unshift","editor","length","createPositionAt","TrackChangesEditing","listReversed","plugins","_getSuggestionBlocksForListStyle","list.properties","enableCommand","numbered","getLastPosition","styles","listType","replace","startIndex"];var Ni,Mi;Ni=Li,Mi=160,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[wi("0x2")][wi("0x7")].has(wi("0x21")))return;const t=this.editor.config[wi("0x20")](wi("0x9")),e=this[wi("0x2")][wi("0x7")][wi("0x20")](wi("0x5"));t[wi("0xd")]&&e[wi("0xa")]("listStyle",this[wi("0x15")].bind(this)),t.reversed&&e[wi("0xa")]("listReversed",this.handleListReversedCommand[wi("0x1f")](this)),t.startIndex&&e[wi("0xa")](wi("0x23"),this[wi("0x1a")][wi("0x1f")](this)),e[wi("0x1e")][wi("0x34")](this[wi("0x36")][wi("0x1f")](this))}[wi("0x15")](t,e={}){const n=this[wi("0x2")][wi("0x7")][wi("0x20")]("TrackChangesEditing"),o=this[wi("0x8")]();this[wi("0x2")][wi("0x2e")][wi("0x12")]((()=>{n[wi("0x38")](o,{commandName:wi("0x13"),commandParams:[{type:e[wi("0x2b")]}],formatGroupId:wi("0x13")})}))}handleListReversedCommand(t,e={}){const n=this[wi("0x2")][wi("0x7")].get(wi("0x5")),o=this[wi("0x1b")]((t=>t.is(wi("0x17"),wi("0x29"))&&"numbered"===t[wi("0x25")](wi("0xe"))));if(o[wi("0x3")]<1)return;const s=o[wi("0x1d")]((t=>this[wi("0x2")].model.createRange(this[wi("0x2")][wi("0x2e")].createPositionAt(t,wi("0x31")),this[wi("0x2")][wi("0x2e")][wi("0x4")](t,0))));this[wi("0x2")].model.change((()=>{n[wi("0x38")](s,{commandName:wi("0x6"),commandParams:[{reversed:e[wi("0x2c")]}],formatGroupId:wi("0x6")})}))}[wi("0x1a")](t,e={}){const n=this[wi("0x2")][wi("0x7")][wi("0x20")]("TrackChangesEditing"),o=this._getSuggestionBlocks((t=>t.is("element",wi("0x29"))&&wi("0xb")===t.getAttribute(wi("0xe"))));if(o[wi("0x3")]<1)return;const s=o.map((t=>this[wi("0x2")][wi("0x2e")][wi("0x19")](this.editor[wi("0x2e")][wi("0x4")](t,wi("0x31")),this[wi("0x2")][wi("0x2e")][wi("0x4")](t,0))));this[wi("0x2")][wi("0x2e")][wi("0x12")]((()=>{n[wi("0x38")](s,{commandName:wi("0x23"),commandParams:[{startIndex:e[wi("0x10")]}],formatGroupId:wi("0x23")})}))}handleDescriptions(t){const e=this[wi("0x2")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x28")]){case"listStyle":o="*Change to:* %0",s={type:wi("0x22"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wi("0x37")][0].type)))};break;case"listReversed":o=n.commandParams[0].reversed?wi("0x27"):"*Format:* set order to regular",s={type:wi("0x22"),content:Yo(e,o)};break;case wi("0x23"):o="*Format:* set start index to %0",s={type:wi("0x22"),content:Yo(e,o,n[wi("0x37")][0][wi("0x10")])}}return s}[wi("0x8")](){var t,e,n,o;const s=this[wi("0x2")][wi("0x7")][wi("0x20")](wi("0x35"));let r=Array[wi("0x0")](this[wi("0x2")].model[wi("0x30")][wi("0x16")][wi("0x1c")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element",wi("0x29")))&&r[wi("0x1")](...s[wi("0x18")](this[wi("0x2")][wi("0x2e")][wi("0x30")][wi("0x16")][wi("0x24")](),"backward")),(null===(e=r[r[wi("0x3")]-1])||void 0===e?void 0:e.is("element",wi("0x29")))&&r[wi("0x11")](...s[wi("0x18")](this[wi("0x2")][wi("0x2e")][wi("0x30")][wi("0x16")][wi("0xc")](),wi("0x26"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x2")].model[wi("0x30")].selection[wi("0x24")]())||void 0===n?void 0:n[wi("0x14")])||void 0===o?void 0:o.is(wi("0x17"),"listItem"))&&(r=r[wi("0x39")]((t=>t.is("element","listItem")))),r}[wi("0x1b")](t){const e=this[wi("0x2")].plugins[wi("0x20")](wi("0x35"));let n=Array[wi("0x0")](this[wi("0x2")][wi("0x2e")][wi("0x30")][wi("0x16")][wi("0x1c")]())[wi("0x39")](t).map((t=>{const n=this[wi("0x2")][wi("0x2e")].createPositionAt(t,0);return[...e[wi("0x18")](n,wi("0x2d")),...e[wi("0x18")](n,wi("0x26"))]}))[wi("0x2a")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return wi("0x3a")+this.editor.plugins[wi("0x20")](wi("0x35"))[wi("0x2f")](t)[wi("0x32")]()+wi("0x33")+t[wi("0x32")]()[wi("0xf")](/-/g,"_")}}const Fi=["TrackChangesEditing","conversion","stop","for","attribute:url:media","mediaEmbed","registerElementLabel","enableCommand","plugins","high","data","createEmptyElement","has","elementToElement","locale","showSuggestionHighlights","afterInit","editor","_descriptionFactory","MediaEmbedEditing","media","options","ELEMENT_MEDIA","downcastDispatcher"];var Pi,Di;Pi=Fi,Di=144,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x10")](){const t=this[Bi("0x11")];if(!t[Bi("0x8")][Bi("0xc")](Bi("0x13")))return;const e=t.plugins.get(Bi("0x0")),n=t[Bi("0xe")];e[Bi("0x7")](Bi("0x5")),e[Bi("0x12")][Bi("0x6")]("media",(t=>Yo(n,Bi("0x16"),t))),t[Bi("0x1")][Bi("0x3")]("dataDowncast")[Bi("0xd")]({model:Bi("0x14"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xf")])return e[Bi("0xb")]("div")},converterPriority:"high"}),t[Bi("0xa")][Bi("0x17")].on(Bi("0x4"),((t,e,n)=>{n[Bi("0x15")][Bi("0xf")]&&t[Bi("0x2")]()}),{priority:Bi("0x9")})}}const Ui=["get","plugins","editor","MentionEditing","has","mention"];var Gi,Hi;Gi=Ui,Hi=377,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[zi("0x3")];t[zi("0x2")][zi("0x5")](zi("0x4"))&&t.plugins[zi("0x1")]("TrackChangesEditing").enableCommand(zi("0x0"))}}const Vi=["ELEMENT_PAGE_BREAK","get","enableCommand","has","plugins","PageBreakEditing","TrackChangesEditing","editor","registerElementLabel"];var Ki,qi;Ki=Vi,qi=377,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x8")];if(!t.plugins[Xi("0x4")](Xi("0x6")))return;t[Xi("0x5")][Xi("0x2")](Xi("0x7"))[Xi("0x3")]("pageBreak");const e=t[Xi("0x5")][Xi("0x2")](Xi("0x7")),n=t.locale;e._descriptionFactory[Xi("0x0")]("pageBreak",(t=>Yo(n,Xi("0x1"),t)))}}const Ji=["writer","isTouching","name","addMarker:suggestion:insertion","toViewPosition","registerElementLabel","TrackChangesEditing","end","ck-suggestion-marker--active","$text","registerDescriptionCallback","isLimit","options","markBlockFormat","addClass","checkChild","bindElementToMarker","model","markerRange","parent","isBlock","paragraph","start","consume","change","filter","insertParagraph","insert","showSuggestionHighlights","schema","afterInit","ELEMENT_PARAGRAPH","markerName","insertion","has","plugins","ck-suggestion-marker-split","enableCommand","data","span","locale","from","*Insert:* %0","consumable","_descriptionFactory","isObject","includes","mapper","getFirstRange","highest","document","type","nodeAfter","editing","editor","get","selection","downcastDispatcher","commandName"];var Qi,Zi;Qi=Ji,Zi=409,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x22")](){const t=this.editor;if(!t[Yi("0x27")][Yi("0x26")]("Paragraph"))return;const e=t[Yi("0x2c")],n=t[Yi("0x27")][Yi("0x0")](Yi("0xa"));n[Yi("0x30")][Yi("0x9")](Yi("0x19"),(t=>Yo(e,Yi("0x23"),t))),n.enableCommand(Yi("0x19"),((e,o={})=>{const s=t.model[Yi("0x36")],r=o.selection||s[Yi("0x1")],i=Array[Yi("0x2d")](r.getSelectedBlocks())[Yi("0x1d")]((t=>{return e=t,(n=this[Yi("0x3a")][Yi("0x15")].schema).checkChild(e[Yi("0x17")],Yi("0x19"))&&!n[Yi("0x31")](e)&&Yi("0x19")!=e[Yi("0x6")];var e,n}));t.model[Yi("0x1c")]((()=>{for(const t of i)n[Yi("0x11")](t,{commandName:"paragraph",commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Yi("0x30")][Yi("0xe")]((t=>{const{data:n}=t;if(n&&Yi("0x19")==n[Yi("0x3")])return{type:"format",content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x23")))}})),n[Yi("0x29")](Yi("0x1e")),t[Yi("0x39")].downcastDispatcher.on("addMarker:suggestion:insertion",ex(t),{priority:Yi("0x35")}),t[Yi("0x2a")][Yi("0x2")].on(Yi("0x7"),((e,n,o)=>{o[Yi("0x10")][Yi("0x20")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x35")});const o=n[Yi("0x30")];o.registerDescriptionCallback((n=>{if(Yi("0x25")!==n[Yi("0x37")])return;const{start:s,end:r}=n[Yi("0x34")]();if(!s[Yi("0x5")](r)||!s[Yi("0x38")])return;const i=t[Yi("0x15")][Yi("0x21")],x=s.nodeAfter;return i.isBlock(x)&&!i.isLimit(x)&&i[Yi("0x13")](x,Yi("0xd"))?{type:"insertion",content:Yo(e,Yi("0x2e"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x27")][Yi("0x0")](Yi("0xa")),i=o[Yi("0x16")][Yi("0x1a")],x=o[Yi("0x16")][Yi("0xb")],a=t[Yi("0x15")][Yi("0x21")];if(!i.isTouching(x)||!i[Yi("0x38")])return;const c=i[Yi("0x38")];if(a[Yi("0x18")](c)&&!a[Yi("0xf")](c)&&a[Yi("0x13")](c,Yi("0xd"))){if(!s[Yi("0x2f")][Yi("0x1b")](o[Yi("0x16")],n[Yi("0x6")]))return;const t=s[Yi("0x4")].createUIElement(Yi("0x2b"),{class:Yi("0x28")}),i=s[Yi("0x33")][Yi("0x8")](x);e&&r.activeMarkers[Yi("0x32")](o[Yi("0x24")])&&s[Yi("0x4")][Yi("0x12")](Yi("0xc"),t),s[Yi("0x4")][Yi("0x1f")](i,t),s[Yi("0x33")][Yi("0x14")](t,o[Yi("0x24")])}}}const nx=["has","from","getAttributes","get","markInlineFormat","getAttributeProperties","*Remove all formatting*","locale","document","isCollapsed","TrackChangesEditing","removeFormat","editor","afterInit","createRangeOn","registerDescriptionCallback","format","RemoveFormatEditing","plugins","schema","selection","model","enableCommand"];var ox,sx;ox=nx,sx=191,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x6")](){const t=this[rx("0x5")];if(!t.plugins[rx("0x10")](rx("0xa")))return;const e=t[rx("0xb")][rx("0x13")](rx("0x3"));e[rx("0xf")]("removeFormat",(n=>{const o=t.model[rx("0x1")][rx("0xd")];o[rx("0x2")]?n():t[rx("0xe")].change((()=>{const n=Array[rx("0x11")](o.getRanges());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0xe")][rx("0xc")])&&e[rx("0x14")](t[rx("0xe")][rx("0x7")](n),{commandName:rx("0x4"),commandParams:[]})}))})),e._descriptionFactory[rx("0x8")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n.commandName)return{type:rx("0x9"),content:Yo(t[rx("0x0")],rx("0x16"))}}))}}function xx(t,e){for(const[n]of t[rx("0x12")]()){const t=e[rx("0x15")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["plugins","discardSuggestion","goToPreviousRestrictedEditingException","get","trackChanges","afterInit","acceptSuggestion","has","TrackChangesEditing","acceptSelectedSuggestions","enableCommand","discardSelectedSuggestions","discardAllSuggestions"];var cx,lx;cx=ax,lx=324,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x6")](){const t=this.editor;if(!t[dx("0x1")][dx("0x8")]("RestrictedEditingModeEditing"))return;const e=t[dx("0x1")][dx("0x4")](dx("0x9"));e[dx("0xb")](dx("0x3")),e[dx("0xb")]("goToNextRestrictedEditingException");const n=t.plugins[dx("0x4")]("RestrictedEditingModeEditing");n[dx("0xb")](dx("0x5")),n.enableCommand(dx("0x7")),n[dx("0xb")](dx("0x2")),n[dx("0xb")]("acceptAllSuggestions"),n[dx("0xb")](dx("0x0")),n.enableCommand(dx("0xa")),n[dx("0xb")](dx("0xc"))}}const gx=["TrackChangesEditing","options","requires","consumable","locale","softBreak","writer","get","showSuggestionHighlights","addMarker:suggestion:insertion","name","markerName","registerElementLabel","deletion","span","ck-suggestion-marker--active","addMarker:suggestion","includes","data","model","createPositionBefore","editor","addMarker:suggestion:deletion","markerRange","bindElementToMarker","init","shiftEnter","editing","high","split","activeMarkers","addClass","ck-suggestion-marker-","toViewPosition","mapper","downcastDispatcher","createUIElement"];var mx,fx;mx=gx,fx=312,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x17")](){return[nr.ShiftEnter]}[hx("0x9")](){const t=this[hx("0x5")],e=t.plugins[hx("0x1c")](hx("0x15"));e.enableCommand(hx("0xa")),t[hx("0xb")][hx("0x13")].on(hx("0x1e"),bx(t),{priority:hx("0xc")}),t[hx("0xb")][hx("0x13")].on(hx("0x6"),bx(t),{priority:"high"}),t[hx("0x2")][hx("0x13")].on(hx("0x0"),((e,n,o)=>{o[hx("0x16")][hx("0x1d")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0x21")](hx("0x1a"),(e=>Yo(t[hx("0x19")],"ELEMENT_LINE_BREAK",e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins.get("TrackChangesEditing");if(!s[hx("0x18")].test(o[hx("0x7")],n[hx("0x1f")]))return;const i=t[hx("0x3")];for(const t of o[hx("0x7")].getItems()){if(!t.is("element",hx("0x1a")))continue;const n=hx("0x22")==o.markerName[hx("0xd")](":")[1]?"merge":hx("0xd"),x=s.writer[hx("0x14")](hx("0x23"),{class:hx("0x10")+n}),a=s.mapper[hx("0x11")](i[hx("0x4")](t));e&&r[hx("0xe")][hx("0x1")](o[hx("0x20")])&&s.writer[hx("0xf")](hx("0x24"),x),s[hx("0x1b")].insert(a,x),s[hx("0x12")][hx("0x8")](x,o[hx("0x20")])}}}const Ex=["document","value","change","forceValue","commandParams","model","commands","plugins","has","get","from","editor","StandardEditingModeEditing","FORMAT_RESTRICTED_DISABLED","registerDescriptionCallback","restrictedEditingException","locale","isCollapsed","format","TrackChangesEditing"];var _x,Tx;_x=Ex,Tx=361,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{afterInit(){const t=this[Cx("0xa")],e=t[Cx("0x4")],n=t[Cx("0xf")];if(!t[Cx("0x6")][Cx("0x7")](Cx("0xb")))return;const o=t[Cx("0x6")][Cx("0x8")](Cx("0x12")),s=Cx("0xe"),r=t[Cx("0x5")][Cx("0x8")](s);o.enableCommand(s,((t,n={})=>{const i=e[Cx("0x13")].selection;if(i[Cx("0x10")])return void t(n);const x=void 0!==n[Cx("0x2")]?n[Cx("0x2")]:!r[Cx("0x0")];e[Cx("0x1")]((()=>{const t=Array[Cx("0x9")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0xd")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Cx("0x3")][0][Cx("0x2")]?{type:Cx("0x11"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Cx("0x11"),content:Yo(n,Cx("0xc"))}}))}}const kx=["selection","_getStyleDefinition","plugins","push","isCollapsed","getDefinitionsForView","styleName","commandParams","_getRangesWithClasses","forceValue","toLowerCase","find","normalizeConfig","style","StyleUtils","getAncestors","change","editor","Style","includes","inline","from","value","get","enableCommand","locale","every","TrackChangesEditing","config","afterInit","style.definitions","element","markBlockFormat","style:","isBlock","model","getItems","enabledStyles","commandName","getRanges","getSelectedBlocks","classes","markInlineFormat","_descriptionFactory","name","DataSchema","add"];var Ax,vx;Ax=kx,vx=115,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x8")](){const t=this[Rx("0x2b")];if(!t[Rx("0x1c")].has(Rx("0x2c")))return;const e=t.commands[Rx("0x2")](Rx("0x27")),n=t.plugins.get(Rx("0x6")),o=t[Rx("0x4")],s=t.plugins[Rx("0x2")](Rx("0x18")),r=t[Rx("0x1c")].get(Rx("0x28"))[Rx("0x26")](s,t[Rx("0x7")].get(Rx("0x9")));n[Rx("0x3")](Rx("0x27"),((o,{styleName:i})=>{const x=t[Rx("0xe")].document[Rx("0x1a")],a=this[Rx("0x1b")](i,r);if(!a)return;if(!e[Rx("0x10")][Rx("0x2d")](i))return;if(x[Rx("0x1e")]&&!a[Rx("0xd")])return void o({styleName:i});const c=!e[Rx("0x1")][Rx("0x2d")](a.name);if(a[Rx("0xd")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x29")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n[Rx("0x19")](o);break}}return n}(x[Rx("0x13")](),a.modelElements);t[Rx("0xe")][Rx("0x2a")]((()=>{for(const t of e)n[Rx("0xb")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0xc")+i})}))}else{let e=Array[Rx("0x0")](x[Rx("0x12")]());if(!c){const n=Array[Rx("0x0")](s[Rx("0x1f")](a[Rx("0xa")],!1))[0][Rx("0xe")],o=[];for(const s of e){const e=this._getRangesWithClasses(t[Rx("0xe")],s,a[Rx("0x14")],n);o[Rx("0x1d")](...e)}e=o}t[Rx("0xe")][Rx("0x2a")]((()=>{for(const t of e)n[Rx("0x15")](t,{commandName:Rx("0x27"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x16")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Rx("0x27")===e[Rx("0x11")])return e[Rx("0x21")][0][Rx("0x23")]?{type:"format",content:Yo(o,"*Format:* %0",e[Rx("0x21")][0][Rx("0x20")].toLowerCase())}:{type:"format",content:Yo(o,"*Remove format:* %0",e[Rx("0x21")][0][Rx("0x20")][Rx("0x24")]())}}))}_getStyleDefinition(t,e){let n=e.block[Rx("0x25")]((e=>e[Rx("0x17")]===t));return n||(n=e[Rx("0x2e")][Rx("0x25")]((e=>e[Rx("0x17")]===t))),n}[Rx("0x22")](t,e,n,o){const s=[];for(const r of e[Rx("0xf")]()){const e=r.getAttribute(o);e&&n[Rx("0x5")]((t=>e[Rx("0x14")][Rx("0x2d")](t)))&&s[Rx("0x1d")](t.createRangeOn(r))}return s}}const Ix=["map","nodeAfter","*Remove:* %0","subType","getChangedMarkers","MAX_SAFE_INTEGER","_getCoordsForCells","$textProxy","every","selectTableRow","MIN_SAFE_INTEGER","enableCommand","getCellLocation","detach","insertion","registerElementLabel","*Insert:* %0","insertTable","_tablePostFixingSubtypes","fromRange","$graveyard","getItems","editor","differ","isEqual","_suggestionFactory","from","downcastDispatcher","setSelection","ELEMENT_TABLE","getSelectionAffectedTableCells","max","name","getAttribute","ELEMENT_TABLE_WITH_TEXT","getColumnIndexes","commands","isTouching","length","change","push","start","min","tableCell","tableColumn","change:data","has","ELEMENT_TABLE_COLUMN","deletion","markMultiRangeInsertion","classes","low","addClass","order","insertTableRowBelow","end","values","filter","join","root","above","tableRow","ELEMENT_TABLE_COLUMN_WITH_TEXT","createRangeIn","data","createTableWalker","getRowIndexes","refresh","last","removeTableRow","getChanges","createRangeOn","TrackChangesEditing","insert","rowspan","selection","_tableSuggestions","position","_setupColumnsRowsFixing","getContainedElement","colspan","document","discard","isInContent","_acceptFormatSuggestionCallbackFactory","minRow","enqueueChange","left","maxColumn","cell","TableUtils","execute","registerPostFixer","getRanges","ELEMENT_TABLE_ROW","toViewElement","rootName","plugins","isArray","table","registerCustomCallback","model","some","insertTableColumnLeft","toLowerCase","_descriptionFactory","element","registerDescriptionCallback","substr","suggestion","hasAttribute","insertTableRowAbove","markMultiRangeDeletion","_splitMarkerName","get","type","isIntersectingWithRange","addRange","_getSuggestionCoords","first","TableEditing","removeTableColumn","removeClass","startsWith","findAncestor","accept","addMarker:suggestion","showSuggestionHighlights","nodeBefore"];var Lx,Nx;Lx=Ix,Nx=211,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x41")]=[Mx("0x6c"),Mx("0x5b")],this[Mx("0x7b")]=new Set}afterInit(){const t=this[Mx("0x45")],e=t[Mx("0x13")].document[Mx("0x7a")];if(!t[Mx("0xf")][Mx("0x5d")](Mx("0x26")))return;const n=t.locale,o=t[Mx("0xf")][Mx("0x20")]("TrackChangesEditing"),s=t[Mx("0xf")][Mx("0x20")](Mx("0x8"));o[Mx("0x17")][Mx("0x3e")]("table",(t=>Yo(n,Mx("0x4c"),t))),this[Mx("0x7d")](),o[Mx("0x3a")](Mx("0x40")),o.enableCommand(Mx("0x38")),o[Mx("0x3a")]("selectTableColumn");for(const n of[Mx("0x1d"),Mx("0x65")]){const r=t[Mx("0x53")][Mx("0x20")](n);o[Mx("0x3a")](n,(n=>{t[Mx("0x13")].change((t=>{n();const i=Mx("0x6b")===r[Mx("0x64")],x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x71")](x),c=i?a.first-1:a[Mx("0x73")]+1,l=x[0][Mx("0x2a")](Mx("0x11")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Mx("0x49")](d)[Mx("0x2f")]((e=>t.createRangeOn(e[Mx("0x7")])));o.markMultiRangeInsertion(u,Mx("0x6c"))}))}))}for(const n of[Mx("0x15"),"insertTableColumnRight"]){const r=t[Mx("0x53")][Mx("0x20")](n);o.enableCommand(n,(n=>{t[Mx("0x13")][Mx("0x56")]((t=>{n();const i=Mx("0x5")===r[Mx("0x64")],x=s[Mx("0x4d")](e),a=s[Mx("0x52")](x),c=i?a[Mx("0x25")]-1:a.last+1,l=x[0][Mx("0x2a")](Mx("0x11")),d=s[Mx("0x70")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x49")](d)[Mx("0x2f")]((e=>t[Mx("0x76")](e.cell)));o[Mx("0x60")](u,Mx("0x5b"))}))}))}for(const n of[Mx("0x74"),Mx("0x27")]){const r=n[Mx("0x1a")](11),i=r[Mx("0x16")](),x=i[Mx("0x1a")](0,3)+"span",a="table"+r,c=Mx("0x59")+r,l=Mx("0x4e")+r;o[Mx("0x3a")](n,(()=>{t[Mx("0x13")].change((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Mx("0x2a")](Mx("0x11"));let u;if(Mx("0x74")==n){const t=s[Mx("0x71")](r);u={startRow:t[Mx("0x25")],endRow:t[Mx("0x73")],includeAllSlots:!0}}else{const t=s[Mx("0x52")](r);u={startColumn:t[Mx("0x25")],endColumn:t[Mx("0x73")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[Mx("0x49")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x68")]((t=>t[Mx("0x1c")](x)))),h=Ox(m[Mx("0x68")]((t=>!t[Mx("0x1c")](x))))[Mx("0x2f")]((e=>t.createRangeOn(e))),p=o[Mx("0x1e")](h,a);if(p&&("tableRow"==p[Mx("0x32")]||Mx("0x5b")==p[Mx("0x32")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s[Mx("0x3b")](n),a=n[Mx("0x50")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array[Mx("0x49")](e[Mx("0xb")]())[Mx("0x2f")]((t=>i.LiveRange[Mx("0x42")](t)));t[Mx("0x13")][Mx("0x56")]((e=>{const s=e.batch;n=n.filter((t=>Mx("0x43")!=t[Mx("0x6a")][Mx("0xe")])),e[Mx("0x4b")](n),t[Mx("0x53")][Mx("0x20")](Mx("0x74"))[Mx("0x72")](),t[Mx("0x9")](Mx("0x74"),{forceDefaultExecution:!0}),t.model[Mx("0x4")]((()=>{t[Mx("0x13")][Mx("0x4")](s,(t=>{const e=o[Mx("0x68")]((t=>Mx("0x43")!=t[Mx("0x6a")][Mx("0xe")]));e[Mx("0x55")]>0&&t.setSelection(e);for(const t of o)t.detach()}))}))}))}function a(n){t[Mx("0x13")][Mx("0x56")]((o=>{const s=Array[Mx("0x49")](e[Mx("0xb")]())[Mx("0x2f")]((t=>i.LiveRange[Mx("0x42")](t))),r=[];for(const t of n)for(const e of t[Mx("0x44")]({shallow:!0}))r[Mx("0x57")](e);for(const e of r)Mx("0x43")!=e.root.rootName&&(o[Mx("0x4b")](o.createPositionAt(e,0)),t[Mx("0x53")][Mx("0x20")](Mx("0x27")).refresh(),t[Mx("0x9")](Mx("0x27"),{forceDefaultExecution:!0}));const x=s.filter((t=>"$graveyard"!=t[Mx("0x6a")][Mx("0xe")]));x[Mx("0x55")]>0&&o[Mx("0x4b")](x);for(const t of s)t[Mx("0x3c")]()}))}function c(t,e){return e[Mx("0x37")]((e=>t[Mx("0x14")]((t=>t[Mx("0x66")][Mx("0x47")](e[Mx("0x58")])||e.end[Mx("0x47")](t.start)))))}function l(t,e){return t[Mx("0x14")]((t=>e[Mx("0x14")]((e=>t[Mx("0x66")][Mx("0x54")](e[Mx("0x58")])))))}t[Mx("0x6f")][Mx("0x4a")].on(Mx("0x2c"),((t,e,n)=>{if(!n.options[Mx("0x2d")])return;const o=e.item;if(!o)return;const s=n.mapper[Mx("0xd")](o);function r(t){return Array[Mx("0x10")](t)?t:[t]}s&&"tableCell"===o.name&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n[Mx("0x63")](r(e[Mx("0x61")]),t)),((t,e,n)=>n[Mx("0x28")](r(e[Mx("0x61")]),t)))}),{priority:"highest"}),o[Mx("0x17")][Mx("0x19")]((t=>{if(Mx("0x3d")!=t[Mx("0x21")]&&Mx("0x5f")!=t.type)return;const e=t[Mx("0x7e")]();if(null!=e&&e.is(Mx("0x18"),Mx("0x11"))){if("insertion"==t[Mx("0x21")]){const e=t[Mx("0x44")]().filter((t=>t.is(Mx("0x36"))))[Mx("0x2f")]((t=>t[Mx("0x6f")]));if(e.length)return{type:Mx("0x3d"),content:Yo(n,Mx("0x3f"),Yo(n,Mx("0x51"),'"'+e[Mx("0x69")](" ")+'"'))}}if(Mx("0x5f")==t[Mx("0x21")]){const e=t[Mx("0x44")]()[Mx("0x68")]((t=>t.is(Mx("0x36"))))[Mx("0x2f")]((t=>t[Mx("0x6f")]));if(e[Mx("0x55")])return{type:Mx("0x5f"),content:Yo(n,Mx("0x31"),Yo(n,Mx("0x51"),'"'+e[Mx("0x69")](" ")+'"'))}}}})),o._descriptionFactory.registerDescriptionCallback((t=>{if(Mx("0x6c")==t[Mx("0x32")]){const e=t[Mx("0x44")]()[Mx("0x68")]((t=>t.is(Mx("0x36"))))[Mx("0x2f")]((t=>t[Mx("0x6f")])),o=this[Mx("0x24")](t),s=o.maxRow-o[Mx("0x3")]+1;if(Mx("0x3d")==t[Mx("0x21")])return e[Mx("0x55")]?{type:Mx("0x3d"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x3d"),content:Yo(n,Mx("0x3f"),Yo(n,Mx("0xc"),s))};if(Mx("0x5f")==t[Mx("0x21")])return e[Mx("0x55")]?{type:"deletion",content:Yo(n,Mx("0x31"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Mx("0x69")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x31"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Mx("0x5b")==t[Mx("0x32")]){const e=t[Mx("0x44")]().filter((t=>t.is("$textProxy")))[Mx("0x2f")]((t=>t.data)),o=this[Mx("0x24")](t),s=o[Mx("0x6")]-o.minColumn+1;if(Mx("0x3d")==t[Mx("0x21")])return e[Mx("0x55")]?{type:Mx("0x3d"),content:Yo(n,Mx("0x3f"),Yo(n,Mx("0x6d"),[s,'"'+e[Mx("0x69")](" ")+'"']))}:{type:Mx("0x3d"),content:Yo(n,Mx("0x3f"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if("deletion"==t.type)return e[Mx("0x55")]?{type:Mx("0x5f"),content:Yo(n,Mx("0x31"),Yo(n,Mx("0x6d"),[s,'"'+e[Mx("0x69")](" ")+'"']))}:{type:Mx("0x5f"),content:Yo(n,Mx("0x31"),Yo(n,Mx("0x5e"),s))}}})),o[Mx("0x48")][Mx("0x12")](Mx("0x3d"),Mx("0x6c"),"discard",r),o[Mx("0x48")][Mx("0x12")](Mx("0x5f"),Mx("0x6c"),Mx("0x2b"),r),o[Mx("0x48")][Mx("0x12")](Mx("0x3d"),Mx("0x5b"),Mx("0x0"),a),o[Mx("0x48")].registerCustomCallback("deletion",Mx("0x5b"),Mx("0x2b"),a),o[Mx("0x48")][Mx("0x12")](Mx("0x3d"),"tableColumn","join",c),o[Mx("0x48")][Mx("0x12")](Mx("0x5f"),Mx("0x5b"),Mx("0x69"),c),o[Mx("0x48")][Mx("0x12")](Mx("0x3d"),Mx("0x6c"),Mx("0x69"),l),o[Mx("0x48")][Mx("0x12")](Mx("0x5f"),Mx("0x6c"),Mx("0x69"),l)}[Mx("0x2")](){const t=this[Mx("0x45")],e=t[Mx("0x13")][Mx("0x80")][Mx("0x7a")];return(n,o)=>{t[Mx("0x13")][Mx("0x56")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Mx("0x2e")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x58")].nodeAfter);const c=s[Mx("0x6e")](a);if(Mx("0x43")==c[Mx("0x6a")][Mx("0xe")])return;const l=Array[Mx("0x49")](e[Mx("0xb")]())[Mx("0x2f")]((t=>i.LiveRange.fromRange(t)));s[Mx("0x4b")](c),t[Mx("0x53")][Mx("0x20")](r)[Mx("0x72")](),x.push({forceDefaultExecution:!0}),t[Mx("0x9")](r,...x);const d=l[Mx("0x68")]((t=>"$graveyard"!=t[Mx("0x6a")][Mx("0xe")]));d[Mx("0x55")]>0&&s[Mx("0x4b")](d);for(const t of l)t[Mx("0x3c")]()}))}}[Mx("0x35")](t){const e=this.editor.plugins[Mx("0x20")](Mx("0x8"));let n=Number[Mx("0x34")],o=Number[Mx("0x39")],s=Number[Mx("0x34")],r=Number.MIN_SAFE_INTEGER;for(const i of t){if("$graveyard"==i[Mx("0x6a")][Mx("0xe")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i.hasAttribute(Mx("0x79"))?i[Mx("0x50")](Mx("0x79"))-1:0,c=i[Mx("0x1c")]("colspan")?i[Mx("0x50")](Mx("0x7f"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Mx("0x7d")](){const t=this.editor,e=t[Mx("0xf")][Mx("0x20")](Mx("0x77")),n=t.plugins.get(Mx("0x8"));t[Mx("0x13")][Mx("0x80")].on(Mx("0x5c"),(()=>{const n=Array[Mx("0x49")](t.model[Mx("0x80")][Mx("0x46")][Mx("0x33")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x1f")](t);if(Mx("0x1b")!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x41")].includes(r)&&this[Mx("0x7b")].add(i)}}),{priority:Mx("0x62")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x76")](t),r=t[Mx("0x2a")](Mx("0x11")),i=n[Mx("0x3b")](t);for(const e of this[Mx("0x7b")]){const n=e.subType,x=n[Mx("0x29")]("tablePaste"),a=n.substr(x?10:5),c=a.toLowerCase(),l=c[Mx("0x1a")](0,3)+"span",d=Mx("0x59")+a,u=Mx("0x4e")+a;if(!e[Mx("0x1")])continue;if(r!=e.getFirstRange().start[Mx("0x2a")](Mx("0x11")))continue;if(e[Mx("0x22")](s))continue;const g=t[Mx("0x1c")](l)?t[Mx("0x50")](l)-1:0,m=this[Mx("0x24")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x23")](s),o=!0)}return o};t[Mx("0x13")][Mx("0x80")][Mx("0xa")]((e=>{let n=!1;for(const s of t[Mx("0x13")].document[Mx("0x46")][Mx("0x75")]())if(Mx("0x78")==s[Mx("0x21")])if(Mx("0x6c")==s.name)for(const t of s[Mx("0x7c")][Mx("0x30")].getChildren())n=n||o(t,e);else Mx("0x5a")==s[Mx("0x4f")]&&(n=n||o(s.position[Mx("0x30")],e));return n}))}[Mx("0x24")](t){return this[Mx("0x35")](t[Mx("0xb")]()[Mx("0x2f")]((t=>t.start.nodeAfter)))}}function Ox(t){return Array.from(new Set(t)[Mx("0x67")]())}const Fx=["_suggestionFactory","push","length","createRangeOn","trackChanges","registerDescriptionCallback","setSelection","low","accept","highest","TrackChangesEditing","commandName","element","afterInit","size","execute","*Split cell:* horizontally","selection","mergeTableCellRight","change","_tablePostFixingSubtypes","document","insertion","formatBlock","set:isEnabled","getAncestors","getSelectionAffectedTableCells","registerCustomCallback","mergeTableCellDown","requires","cell","$graveyard","forceDefaultExecution","return","has","mergeTableCells","mergeTableCellUp","refresh","format","enableCommand","fromRange","_areSelectedCellsMergable","createTableWalker","detach","add","_isForcedDefaultExecutionBlock","tableCell","plugins","root","from","getSuggestions","findAncestor","mergeTableCellLeft","stop","splitTableCellHorizontally","get","_areMergableCells","*Split cell:* vertically","containsRange","rootName","getFirstPosition","type","_descriptionFactory","isEnabled","find","deletion","markBlockFormat","TableUtils","commands","splitTableCellVertically","getCellLocation","_acceptFormatSuggestionCallbackFactory","getRanges","direction","horizontally","value","model","author","table","editor","locale","filter","map"];var Px,Dx;Px=Fx,Dx=286,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x4b")](){return[wx]}[Bx("0x3b")](){const t=this[Bx("0x2a")],e=t[Bx("0x27")][Bx("0x43")][Bx("0x3f")],n=t[Bx("0x2b")];if(!t[Bx("0xa")][Bx("0x50")]("TableEditing"))return;const o=t[Bx("0xa")][Bx("0x12")](Bx("0x38")),s=t.plugins[Bx("0x12")]("TableUtils"),r=t[Bx("0xa")][Bx("0x12")](wx);r[Bx("0x42")][Bx("0x2f")]("mergeTableCells"),o[Bx("0x2")](Bx("0x51"),(()=>{const e=s[Bx("0x48")](t[Bx("0x27")].document.selection);t[Bx("0x27")].change((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x51"),commandParams:[]},[],Bx("0x51"))}))})),t[Bx("0x1f")][Bx("0x12")]("mergeTableCells").on(Bx("0x3d"),((e,n)=>{t.commands[Bx("0x12")](Bx("0x32"))[Bx("0x26")]&&(n[Bx("0x30")]>0&&n[n.length-1]&&n[n.length-1][Bx("0x4e")]||o[Bx("0x8")]||this._areSelectedCellsMergable()||e[Bx("0x10")]())}),{priority:Bx("0x37")});for(const e of[Bx("0x52"),Bx("0x40"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t[Bx("0x1f")].get(e);o[Bx("0x2")](e,(()=>{const e=t.model[Bx("0x43")][Bx("0x3f")].getFirstPosition()[Bx("0x47")]()[Bx("0x1b")]((t=>t.is(Bx("0x3a"),Bx("0x9")))),s=n[Bx("0x26")];t.model[Bx("0x41")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:"mergeTableCells",commandParams:[]},[],Bx("0x51"))}))}))}for(const e of[Bx("0x20"),Bx("0x11")]){const n=t[Bx("0x1f")].get(e);o[Bx("0x2")](e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0x27")].document[Bx("0x3f")])[0],i=r[Bx("0xe")](Bx("0x29")),{column:x,row:a}=s[Bx("0x21")](r);let c=[];if(Bx("0x25")==n[Bx("0x24")]){const t=s[Bx("0x5")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0xc")](t)[Bx("0x2d")]((t=>t.cell))}else{const t=s[Bx("0x5")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0xc")](t)[Bx("0x2d")]((t=>t[Bx("0x4c")]))}t.model.change((t=>{o[Bx("0x1d")](t[Bx("0x31")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x33")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[Bx("0x39")]?{type:Bx("0x1"),content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0x19")][Bx("0x33")]((t=>{const{data:e}=t;if(e)return Bx("0x20")==e[Bx("0x39")]?{type:Bx("0x1"),content:Yo(n,Bx("0x14"))}:Bx("0x11")==e[Bx("0x39")]?{type:"format",content:Yo(n,Bx("0x3e"))}:void 0}));const x=r[Bx("0x22")]();for(const t of[Bx("0x52"),Bx("0x40"),Bx("0x4a"),"mergeTableCellLeft"])o[Bx("0x2e")].registerCustomCallback(Bx("0x45"),t,Bx("0x36"),x);for(const t of[Bx("0x20"),Bx("0x11")])o._suggestionFactory[Bx("0x49")](Bx("0x45"),t,Bx("0x36"),x);o[Bx("0x2e")][Bx("0x49")](Bx("0x45"),Bx("0x51"),"accept",(n=>{t[Bx("0x27")][Bx("0x41")]((o=>{const s=Array[Bx("0xc")](e.getRanges())[Bx("0x2d")]((t=>i.LiveRange[Bx("0x3")](t)));o.setSelection(n),t[Bx("0x1f")][Bx("0x12")]("mergeTableCells")[Bx("0x0")](),t[Bx("0x3d")](Bx("0x51"),{forceDefaultExecution:!0});const r=s[Bx("0x2c")]((t=>Bx("0x4d")!=t[Bx("0xb")][Bx("0x16")]));r[Bx("0x30")]>0&&o[Bx("0x34")](r);for(const t of s)t[Bx("0x6")]()}))}));for(const e of["mergeTableCellUp",Bx("0x4a"),Bx("0xf"),Bx("0x40")]){const n=t[Bx("0x1f")][Bx("0x12")](e);n.on(Bx("0x46"),((e,o,s)=>{if(s){const o=t[Bx("0x27")][Bx("0x43")][Bx("0x3f")][Bx("0x17")]()[Bx("0x47")]()[Bx("0x1b")]((t=>t.is(Bx("0x3a"),Bx("0x9"))));this[Bx("0x13")](n[Bx("0x26")],o)||(e[Bx("0x4f")]=!1,e[Bx("0x10")]())}}),{priority:Bx("0x35")})}}[Bx("0x4")](){const t=this.editor[Bx("0x1f")][Bx("0x12")](Bx("0x51")),e=this[Bx("0x2a")][Bx("0xa")][Bx("0x12")](Bx("0x1e"));if(!t[Bx("0x1a")])return!1;const n=e[Bx("0x48")](this[Bx("0x2a")][Bx("0x27")][Bx("0x43")][Bx("0x3f")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x13")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x2a")][Bx("0xa")][Bx("0x12")](Bx("0x38")),o=this.editor[Bx("0x27")][Bx("0x31")](t),s=this[Bx("0x2a")].model.createRangeOn(e),r=new Set,i=new Set;for(const t of n[Bx("0xd")]())if((Bx("0x44")==t.type||Bx("0x1c")==t.type||Bx("0x51")==t.subType)&&t.isInContent)for(const e of t[Bx("0x23")]())e[Bx("0x15")](o,!0)&&r[Bx("0x7")](t[Bx("0x18")]+":"+t.author.id),e[Bx("0x15")](s,!0)&&i[Bx("0x7")](t.type+":"+t[Bx("0x28")].id);if(r[Bx("0x3c")]!=i[Bx("0x3c")])return!1;for(const t of r)if(!i[Bx("0x50")](t))return!1;return!0}}const Ux=["ck-suggestion-marker-","locale","data-suggestion","start","createPositionBefore","consume","has","markerRange","nodeBefore","markerName","TableEditing","FORMAT_REGULAR_ROW","registerDescriptionCallback","data","markerNameToElements","_suggestionFactory","editor","commandName","formatBlock","document","toViewElement","FORMAT_HEADER_COLUMN","getSuggestion","stop","model","nodeAfter","setTableColumnHeader","table","forceValue","getCellLocation","findAncestor","get","index","TableUtils","commandParams","parent","setTableRowHeader","afterInit","childCount","FORMAT_REGULAR_COLUMN","last","editing","activeMarkers","isBefore","TrackChangesEditing","getRowIndexes","change","value","markBlockFormat","selection","getChild","createRange","*Format:* %0","end","headingRows","removeClass","plugins","cell","registerCustomCallback","addClass","getSelectionAffectedTableCells","options","addMarker:suggestion","removeAttribute","accept","highest","showSuggestionHighlights","headingColumns","setAttribute","name","getAttribute","createPositionAfter","createTableWalker","downcastDispatcher","_acceptFormatSuggestionCallbackFactory","mapper","writer","enableCommand","unbindElementFromMarkerName"];var Gx,Hx;Gx=Ux,Hx=181,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get requires(){return[wx]}[zx("0xe")](){const t=this[zx("0x48")];if(!t[zx("0x21")][zx("0x3e")](zx("0x42")))return;const e=t[zx("0x39")],n=t[zx("0x21")].get(zx("0x15")),o=t[zx("0x21")][zx("0x8")](zx("0xa")),s=t[zx("0x21")][zx("0x8")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x41")]),c=n.getSuggestion(a);if(!c[zx("0x45")]||"setTableColumnHeader"!=c[zx("0x45")][zx("0x49")])return;if(r.item)return void s[zx("0x0")]();if(!i.consumable[zx("0x3d")](r[zx("0x3f")],s[zx("0x2e")]))return;const l=r[zx("0x3f")][zx("0x3b")][zx("0x2")],d=r[zx("0x3f")][zx("0x1e")][zx("0x40")],u=l[zx("0xc")][zx("0xc")],{column:g}=o[zx("0x6")](l),{column:m}=o[zx("0x6")](d);for(let s=g;s<=m;s++){const c=o[zx("0x31")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x22")],c=i[zx("0x34")][zx("0x4c")](s);i.writer.addClass("ck-suggestion-marker-"+x,c),e&&i[zx("0x35")][zx("0x2d")](zx("0x3a"),a,c),i[zx("0x34")].bindElementToMarker(c,r.markerName),t&&(n[zx("0x13")].includes(r[zx("0x41")])?i[zx("0x35")][zx("0x24")]("ck-suggestion-marker--active",c):i[zx("0x35")][zx("0x20")]("ck-suggestion-marker--active",c))}}}}n[zx("0x36")](zx("0xd"),((e,s)=>{const r=o[zx("0x25")](t[zx("0x1")][zx("0x4b")][zx("0x1a")]),i=o[zx("0x16")](r),x=r[0][zx("0x7")](zx("0x4")),a=x[zx("0x2f")](zx("0x1f"))||0,c=s&&null!==s[zx("0x5")]?s[zx("0x5")]:!t.commands[zx("0x8")]("setTableRowHeader")[zx("0x18")],l=c?i[zx("0x11")]:i.first,d=x[zx("0x1b")](l);let u;if(c){const e=x.getChild(a);if(d[zx("0x9")]<e.index)return;u=t.model[zx("0x1c")](t[zx("0x1")][zx("0x3c")](e[zx("0x1b")](0)),t[zx("0x1")][zx("0x30")](d.getChild(d[zx("0xf")]-1)))}else{const e=x[zx("0x1b")](a-1);if(!e)return;u=t[zx("0x1")].createRange(t[zx("0x1")][zx("0x3c")](d.getChild(0)),t[zx("0x1")][zx("0x30")](e[zx("0x1b")](e[zx("0xf")]-1)))}t[zx("0x1")].change((()=>{n[zx("0x19")](u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],zx("0xd"))}))})),n[zx("0x36")](zx("0x3"),((e,o)=>{const s=t[zx("0x21")][zx("0x8")](zx("0xa")),r=s[zx("0x25")](t[zx("0x1")].document[zx("0x1a")]),i=s.getColumnIndexes(r),x=r[0][zx("0x7")]("table"),a=x[zx("0x2f")](zx("0x2c"))||0,c=o&&null!==o[zx("0x5")]?o[zx("0x5")]:!t.commands[zx("0x8")]("setTableColumnHeader")[zx("0x18")];let l;const d=x[zx("0x1b")](0),u=c?i[zx("0x11")]:i.first,g=s[zx("0x31")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0].cell;if(c){const e=d[zx("0x1b")](a);if(m[zx("0x14")](e))return;l=t[zx("0x1")][zx("0x1c")](t[zx("0x1")][zx("0x3c")](e),t.model[zx("0x30")](m))}else{const e=d[zx("0x1b")](a-1);if(!e)return;l=t[zx("0x1")][zx("0x1c")](t.model.createPositionBefore(m),t[zx("0x1")][zx("0x30")](e))}t[zx("0x1")][zx("0x17")]((()=>{n[zx("0x19")](l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t[zx("0x12")][zx("0x32")].on(zx("0x27"),r(),{priority:"highest"}),t[zx("0x45")][zx("0x32")].on(zx("0x27"),((t,e,n)=>{n[zx("0x26")][zx("0x2b")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[zx("0x12")].downcastDispatcher.on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x41")]),i=n[zx("0x4e")](r);if(!i[zx("0x45")]||zx("0x3")!=i.data[zx("0x49")])return;const x=o[zx("0x34")][zx("0x46")](e[zx("0x41")]);if(x)for(const t of x)o[zx("0x35")][zx("0x20")](zx("0x38")+s,t),o[zx("0x35")][zx("0x20")]("ck-suggestion-marker--active",t),o[zx("0x35")][zx("0x28")](zx("0x3a"),t),o[zx("0x34")][zx("0x37")](t,e[zx("0x41")])}),{priority:zx("0x2a")}),n._descriptionFactory[zx("0x44")]((t=>{const{data:n}=t;if(n){if(zx("0xd")==n[zx("0x49")]){const t=n[zx("0xb")][0][zx("0x5")];return o(Yo(e,t?"FORMAT_HEADER_ROW":zx("0x43")))}if("setTableColumnHeader"==n[zx("0x49")]){const t=n.commandParams[0][zx("0x5")];return o(Yo(e,zx(t?"0x4d":"0x10")))}}function o(t){return{type:"format",content:Yo(e,zx("0x1d"),t)}}}));const i=s[zx("0x33")]();n[zx("0x47")][zx("0x23")](zx("0x4a"),zx("0xd"),zx("0x29"),i),n._suggestionFactory[zx("0x23")](zx("0x4a"),zx("0x3"),zx("0x29"),i)}}const Vx=["end","setAttribute","getSelectionAffectedTableCells","add","row","discard","entries","createRangeIn","push","includes","fill","documentSelection","getItems","_getCoordsForCells","insertion","get","ck-suggestion-marker","rowInsertionIndexes","return","_splitMarkerName","model","suggestion-td","last","_createdBatches","columns","insertionRanges","newRange","getRows","tableCellBorderColor","plugins","differ","getSuggestions","ck-suggestion-marker-insertion","name","unwrap","getSuggestionCallback","tablePasteColumn","activeMarkers","element","findAncestor","suggestionUnloaded","commands","getColumns","registerDescriptionCallback","filter","tablePasteChainId","next","type","tableCellBorderWidth","tableCellSuggestion","paragraph","getContainedElement","ck-suggestion-marker--active","createElement","view","fromEntries","remove","isEqual","markerAttributes","first","move","endRow","high","subType","deletion","insertContent","_isForcedDefaultExecutionBlock","attributes","insert","getAllAdjacentSuggestions","tablePasteRow","createRangeOn","_replaceTableSlotCell","rootName","trackChanges","accept","isEmpty","registerPostFixer","_suggestionFactory","tablePaste","markMultiRangeInsertion","getMarkers","getSuggestion","start","getTableIfOnlyTableInContent","rowInsertionRanges","tableCell","createTableWalker","containsRange","low","position","redo","schema","author","reduce","table","find","join","afterInit","previousSibling","createPositionBefore","removeColumns","markerName","for","register","getChangedMarkers","some","registerCustomCallback","suggestionLoaded","from","insertColumns","change","getRanges","previous","updateMarker","deletionRanges","listenTo","content","every","options","elementToElement","columnInsertionRanges","tableCellHorizontalAlignment","startsWith","cells","TrackChangesEditing","value","setAttributes","document","has","column","Users","showSuggestionHighlights","markerToHighlight","map","isInContent","formatBlock","removeRows","getChildren","requires","tablePasteCell","getRowIndexes","getChild","stop","columnInsertionIndexes","keys","insertRows","suggestion","getShiftedBy","set","getRange","removeMarker","oldRange","markers","length","_tablePostFixingSubtypes","TableClipboard","endColumn","wrap"];var Kx,qx;Kx=Vx,qx=349,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x11"),Xx("0x9c"),"tableCellBorderStyle",Xx("0x5b"),"tableCellVerticalAlignment","tableCellBackgroundColor","tableCellPadding"],Jx=Object.fromEntries($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x6c")](){return[wx]}[Xx("0x43")](){const t=this.editor;if(!t[Xx("0x9d")][Xx("0x62")](Xx("0x7d")))return;const n=t[Xx("0x9d")][Xx("0x8f")](Xx("0x5e")),o=t[Xx("0x9d")].get("TableUtils"),s=t.plugins[Xx("0x8f")](wx),r=t.plugins[Xx("0x8f")](Xx("0x7d"));s[Xx("0x7c")][Xx("0x88")](Xx("0x27"),Xx("0x5")),t[Xx("0x94")][Xx("0x3d")][Xx("0x49")]("tableCellSuggestion",{allowIn:Xx("0x37"),allowContentOf:Xx("0x37"),isLimit:!0}),t.conversion[Xx("0x59")]({model:Xx("0x12"),view:Xx("0x95")});let i=null;t[Xx("0x94")].on(Xx("0x22"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x7b")]-1];l&&l.forceDefaultExecution||n[Xx("0x23")]||this.editor[Xx("0xa")][Xx("0x8f")](Xx("0x2b"))[Xx("0x5f")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x8b")))return!1;const r=s[Xx("0x35")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x82")](n[Xx("0x61")].selection);if(!i[Xx("0x7b")])return!1;const x=i[0].findAncestor(Xx("0x40")),a=o[Xx("0x6e")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x1c")],endRow:a[Xx("0x96")],startColumn:c[Xx("0x1c")],endColumn:c.last};return 1==i.length&&(l[Xx("0x1e")]+=o[Xx("0x9b")](r)-1,l[Xx("0x7e")]+=o[Xx("0xb")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0x94")],o,r)&&(s[Xx("0x70")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x94")][Xx("0x50")]((()=>{t[Xx("0x94")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Xx("0x7b")]&&n[Xx("0x31")](s,Xx("0x27"),{tablePasteChainId:o}),r[Xx("0x7b")]&&n[Xx("0x31")](r,Xx("0x5"),{tablePasteChainId:o}),a[Xx("0x7b")]&&n[Xx("0x31")](a,Xx("0x30"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x7b")]&&n.markMultiRangeDeletion(c,Xx("0x30"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[Xx("0x67")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x6d"),{tablePasteChainId:o});if(d){const e=d[Xx("0x32")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model.createRangeOn(o),i=e[Xx("0x41")]((t=>t.getRange()[Xx("0x1a")](r)));i&&n[Xx("0x88")]([i[Xx("0x2")],s])}n[Xx("0x7b")]&&d[Xx("0x81")](Xx("0x1b"),Object[Xx("0x18")](n))}i=null})))}),{priority:e.priorities[Xx("0x1f")]+10}),t[Xx("0x9d")][Xx("0x8f")]("TableClipboard").on(Xx("0x29"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x70")]();const r=n.cell,x=o,a=Zx(r),c=Zx(x);t[Xx("0x92")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x6f")](0));for(const t of Array.from(x.getChildren()))s[Xx("0x25")](t,r,"end");const t=i[Xx("0x91")][Xx("0x89")](n[Xx("0x84")]),e=i.columnInsertionIndexes[Xx("0x89")](n[Xx("0x63")]);t||e||(l=s[Xx("0x87")](r))}else c&&!a&&(d=s[Xx("0x87")](r));else{const t=s[Xx("0x16")](Xx("0x12")),e=s[Xx("0x16")](Xx("0x12"));s[Xx("0x7f")](s[Xx("0x87")](r),e),s[Xx("0x25")](t,r,0);for(const e of Array[Xx("0x4e")](x[Xx("0x6b")]()))s[Xx("0x25")](e,t,Xx("0x80"));l=s[Xx("0x28")](t),d=s.createRangeOn(e)}const u=Array[Xx("0x4e")](x.getAttributes())[Xx("0xd")]((([t])=>$x[Xx("0x89")](t)));i.cells[Xx("0x88")]({element:r,attributes:u[Xx("0x7b")]?Object[Xx("0x18")](u):null}),l&&i[Xx("0x99")].push(l),d&&i[Xx("0x54")][Xx("0x88")](d)}),{priority:Xx("0x1f")}),o.on(Xx("0x4f"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x98")]||1;i[Xx("0x71")]=new Array(a)[Xx("0x8a")](x)[Xx("0x67")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x38")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x5a")][Xx("0x88")](t[Xx("0x94")][Xx("0x28")](e))}),{priority:Xx("0x3a")}),o.on(Xx("0x73"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x91")]=new Array(a)[Xx("0x8a")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i[Xx("0x36")].push(t[Xx("0x94")].createRangeOn(e))}),{priority:Xx("0x3a")}),n._descriptionFactory[Xx("0xc")]((e=>{if(e[Xx("0x20")]&&e[Xx("0x20")][Xx("0x5c")]("tablePaste"))return e[Xx("0x52")]?{}:{type:"insertion",content:Yo(t.locale,"*Replace table cells*")}}));const x=()=>{};for(const t of[Xx("0x30"),Xx("0x5"),Xx("0x27"),"tablePasteCell"])n[Xx("0x2f")][Xx("0x4c")]("insertion",t,Xx("0x42"),x),n[Xx("0x2f")][Xx("0x4c")]("deletion",t,Xx("0x42"),x);n[Xx("0x2f")][Xx("0x4c")](Xx("0x69"),Xx("0x6d"),Xx("0x85"),x),n[Xx("0x2f")][Xx("0x4c")](Xx("0x69"),Xx("0x6d"),"accept",((e,n,o)=>{const s=e.map((t=>t[Xx("0x14")]()))[Xx("0xd")]((t=>t)),r=new Map(s[Xx("0x67")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x5d")])e&&r.set(t,e);else if(o&&o[Xx("0x1b")])for(const[e,n]of Object[Xx("0x86")](o.markerAttributes)){const o=t[Xx("0x94")][Xx("0x7a")][Xx("0x8f")](e),s=o?o.getRange()[Xx("0x14")]():null;s&&r[Xx("0x76")](s,n)}t[Xx("0x94")].change((t=>{for(const[e,n]of r)t[Xx("0x60")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x2f")][Xx("0x4c")](e,Xx("0x30"),o,((s,r,i)=>{t[Xx("0x94")].change((t=>{const x=[];for(const t of s){const e=t[Xx("0x34")].nodeAfter;e.is(Xx("0x7"),"tableCellSuggestion")&&x.push(e)}n[Xx("0x2f")][Xx("0x4")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e.root[Xx("0x2a")]&&t[Xx("0x3")](e)}))}))};a(Xx("0x8e"),Xx("0x2c")),a(Xx("0x8e"),"discard"),a(Xx("0x21"),Xx("0x2c")),a("deletion",Xx("0x85")),n[Xx("0x2f")][Xx("0x4c")](Xx("0x8e"),Xx("0x27"),Xx("0x85"),(t=>{const e=t.map((t=>t[Xx("0x14")]())),n=e[0].findAncestor(Xx("0x40")),{minRow:r,maxRow:i}=s[Xx("0x8d")](e);o[Xx("0x6a")](n,{at:r,rows:i-r+1})})),n._suggestionFactory.registerCustomCallback(Xx("0x8e"),Xx("0x5"),Xx("0x85"),(t=>{const e=t[Xx("0x67")]((t=>t[Xx("0x14")]())),n=e[0][Xx("0x8")](Xx("0x40")),{minColumn:r,maxColumn:i}=s[Xx("0x8d")](e);o[Xx("0x46")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x20")]||!e.subType.startsWith(Xx("0x30")))return;const o=e.attributes[Xx("0xe")],s=n[Xx("0x0")]()[Xx("0xd")]((t=>t.isInContent&&t[Xx("0x24")]&&t[Xx("0x24")][Xx("0xe")]==o));s[Xx("0x7b")]&&e[Xx("0x26")]()[Xx("0x7b")]!=s.length&&s[Xx("0x3f")](((t,e)=>(t[Xx("0xf")]=e,e[Xx("0x52")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x93")](t[Xx("0x47")]),s=[Xx("0x90"),Xx("0x1")],r=n[Xx("0x6")].includes(t[Xx("0x47")]);return r&&s[Xx("0x88")](Xx("0x15")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x4d"),c,{priority:Xx("0x1f")}),n.on(Xx("0x9"),c,{priority:Xx("0x1f")}),t[Xx("0x94")][Xx("0x61")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x4e")](t[Xx("0x94")][Xx("0x61")][Xx("0x9e")][Xx("0x4a")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x93")](s);if(Xx("0x74")!=o||"deletion"!=i||r.oldRange)continue;if(!n.hasSuggestion(x))continue;const a=n[Xx("0x33")](x)[Xx("0x51")](),c=t[Xx("0x9d")][Xx("0x8f")]("Users").me;for(const t of n[Xx("0x0")]())if(t[Xx("0x68")]&&t[Xx("0x3e")]==c&&Xx("0x69")==t[Xx("0x10")]&&Xx("0x6d")==t.subType&&t.getRanges()[Xx("0x57")]((t=>a[Xx("0x4b")]((e=>e[Xx("0x39")](t,!0))))))for(const n of t[Xx("0x26")]())n[Xx("0x68")]&&(n.discard(),e=!0)}return e})),t[Xx("0x94")][Xx("0x61")][Xx("0x2e")]((e=>{const o=t[Xx("0xa")][Xx("0x8f")](Xx("0x3c"));if(!o||!o[Xx("0x97")][Xx("0x62")](e.batch))return!1;let s=!1;const r=t.plugins[Xx("0x8f")](Xx("0x64")).me,i=t.model[Xx("0x61")][Xx("0x9e")].getChanges(),x=Array[Xx("0x4e")](t[Xx("0x94")].document[Xx("0x9e")].getChangedMarkers())[Xx("0xd")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x93")](t);return Xx("0x74")==o&&Xx("0x30")==s&&i==r.id&&!e[Xx("0x79")]}));for(const t of i){if(Xx("0x25")!=t[Xx("0x10")]||Xx("0x12")!=t.name||1!=t[Xx("0x7b")])continue;const n=e.createRange(t[Xx("0x3b")],t[Xx("0x3b")][Xx("0x75")](1));if(!x[Xx("0x41")]((({data:t})=>t[Xx("0x9a")][Xx("0x1a")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x39")](o[Xx("0x9a")])){e[Xx("0x53")](t,{range:n}),s=!0;break}}return s})),t[Xx("0x94")].document.registerPostFixer((e=>{let o=!1;const s=t.plugins[Xx("0x8f")](Xx("0x64")).me,r=n[Xx("0x0")]()[Xx("0xd")]((t=>t.isInContent&&t[Xx("0x3e")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0x20")])for(const e of t[Xx("0x32")]()){const n=e[Xx("0x77")]().getContainedElement();if(n)if(n.is(Xx("0x7"),Xx("0x12"))&&Zx(n)){t[Xx("0x78")](e[Xx("0x2")]),i[Xx("0x83")](n),o=!0;const s=n.nextSibling,r=n[Xx("0x44")],a=s&&s.is(Xx("0x7"),"tableCellSuggestion"),c=r&&r.is(Xx("0x7"),"tableCellSuggestion");a&&!i[Xx("0x62")](s)&&x[Xx("0x83")](s),c&&!i[Xx("0x62")](r)&&x.add(r)}else n.is(Xx("0x7"),"paragraph")&&n[Xx("0x2d")]&&(t[Xx("0x78")](e[Xx("0x2")]),o=!0)}else if(Xx("0x6d")==t[Xx("0x20")]){if(!t[Xx("0x24")]||!t[Xx("0x24")][Xx("0xe")])continue;const e=t[Xx("0x24")].markerAttributes;if(e&&Object[Xx("0x72")](e).length)continue;const n=t[Xx("0x24")][Xx("0xe")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0x20")].startsWith(Xx("0x30"))){if(!e[Xx("0x24")][Xx("0xe")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x24")][Xx("0xe")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x19")](t);for(const t of x)e[Xx("0x3")](t);return o})),t.conversion[Xx("0x48")]("editingDowncast").markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:Xx("0x1f")}),t.conversion[Xx("0x48")]("dataDowncast")[Xx("0x66")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[Xx("0x58")][Xx("0x65")]?l(t,!1):null,converterPriority:Xx("0x1f")});const d=t.editing[Xx("0x17")];this[Xx("0x55")](d[Xx("0x61")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Xx("0x87")](e[Xx("0x56")])[Xx("0x8c")]())t.is(Xx("0x7"),Xx("0x95"))&&n.push(t);d.change((t=>{for(const e of n)t[Xx("0x1d")](t.createRangeIn(e),t[Xx("0x45")](e)),t[Xx("0x19")](e)}))}))}}function Zx(t){if(t[Xx("0x2d")])return!0;const e=t[Xx("0x6f")](0);return e.is("element",Xx("0x13"))&&e[Xx("0x2d")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x38")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["plugins","columnWidths","resizeTable","get","Users","handleSuggestionDescription","_suggestionFactory","getContainedElement","formatGroupId","subType","getTableColumnsWidths","TrackChangesEditing","locale","TableColumnResizeEditing","getAttribute","registerCustomCallback","selection","*Format:* resize table","formatBlock","bind","_descriptionFactory","data","discard","table","model","change","commandParams","resizeColumnWidths","editor","resizeTableWidth","handleResizeTableWidthCommand","accept","tableWidth","getSelectedElement","enableCommand"];var ea,na;ea=ta,na=194,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0x9")][oa("0x10")].has("TableColumnResizeEditing"))return;const t=this[oa("0x9")][oa("0x10")][oa("0x13")](oa("0x1b"));t[oa("0xf")]("resizeTableWidth",this[oa("0xb")].bind(this)),t[oa("0xf")](oa("0x8"),this[oa("0xb")][oa("0x0")](this)),t[oa("0x16")][oa("0x1f")](oa("0x22"),oa("0x12"),oa("0xc"),t[oa("0x16")].getSuggestionCallback(oa("0x22"),null,"discard")),t[oa("0x16")][oa("0x1f")](oa("0x22"),"resizeTable","discard",t[oa("0x16")].getSuggestionCallback(oa("0x22"),null,oa("0xc"))),t[oa("0x1")].registerDescriptionCallback(this[oa("0x15")][oa("0x0")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor[oa("0x10")][oa("0x13")]("TrackChangesEditing"),o=this[oa("0x9")][oa("0x10")][oa("0x13")](oa("0x1d")),s=e[oa("0x4")]||this[oa("0x9")][oa("0x5")].document[oa("0x20")][oa("0xe")]();this[oa("0x9")][oa("0x5")][oa("0x6")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o[oa("0x1a")](r):null,x=s[oa("0x1e")](oa("0xd"))||null;const a=e[oa("0xd")]||x,c=e[oa("0x11")]||i,l=this.editor.plugins[oa("0x13")](oa("0x14")).me;for(const t of n.getSuggestions()){const e=t[oa("0x17")]();if(oa("0x12")===t[oa("0x19")]&&e===s){t.author!==l&&t[oa("0x3")]();const e=t[oa("0x2")][oa("0x7")];x=e[0][oa("0xd")],i=e[0][oa("0x11")];break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0xa"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x12")},[],oa("0x12"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x12")===e[oa("0x18")]){const t=oa("0x21");return{type:"format",content:Yo(this.editor[oa("0x1c")],t)}}}}const ra=["TrackChangesEditing","insertTemplate","get","editor","plugins","has","afterInit"];var ia,xa;ia=ra,xa=177,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x4")](){const t=this[aa("0x1")];t.plugins[aa("0x3")]("Template")&&t[aa("0x2")][aa("0x0")](aa("0x5")).enableCommand(aa("0x6"))}}const la=["plugins","commands","ELEMENT_TABLE_OF_CONTENTS","afterInit","insertTableOfContents","get","tableOfContents","locale","_descriptionFactory","enableCommand","registerElementLabel"];var da,ua;da=la,ua=150,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x7")](){const t=this.editor;if(!t[ga("0x5")][ga("0x9")](ga("0x8")))return;t.plugins.get("TrackChangesEditing")[ga("0x2")](ga("0x8"));const e=t[ga("0x4")][ga("0x9")]("TrackChangesEditing"),n=t[ga("0x0")];e[ga("0x1")][ga("0x3")](ga("0xa"),(t=>Yo(n,ga("0x6"),t)))}}const fa=["editor","createRange","_splitMarkerName","plugins","getChangedMarkers","updateMarker","TrackChangesEditing","document","suggestion","_descriptionFactory","removeMarker","newRange","start","model","differ","from","registerElementLabel","getNearestSelectionRange","schema","get","locale","isCollapsed","registerPostFixer","end","isEqual","title-content"];var ha,pa;ha=fa,pa=147,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0x9")];if(!t.plugins.has("Title"))return;const e=t[ba("0xc")][ba("0x2")](ba("0xf"));e[ba("0x12")][ba("0x19")]("title-content",(()=>Yo(t[ba("0x3")],"ELEMENT_TITLE"))),t[ba("0x16")][ba("0x10")][ba("0x5")]((n=>{let o=!1;const s=Array[ba("0x18")](t.model[ba("0x10")][ba("0x17")][ba("0xd")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0xb")](r);if(ba("0x11")!==s||!i[ba("0x14")])continue;const x=i[ba("0x14")],a=x[ba("0x6")].nodeBefore;if(!a||!a.is("element",ba("0x8")))continue;if(!x.start.isTouching(x[ba("0x6")]))continue;const c=t[ba("0x16")][ba("0x1")][ba("0x0")](x[ba("0x6")],"forward");if(c&&c[ba("0x4")]){const t=n[ba("0xa")](x[ba("0x15")],c.start);t[ba("0x7")](x)||(n[ba("0xe")](r,{range:t}),o=!0)}o||(n[ba("0x13")](r),o=!0)}return o}))}}const _a=["has","editor","plugins","redo","afterInit","get","enableCommand"];var Ta,Ca;Ta=_a,Ca=453,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x6")](){const t=this[ya("0x3")],e=t[ya("0x4")][ya("0x0")]("TrackChangesEditing");t[ya("0x4")][ya("0x2")]("UndoEditing")&&(e[ya("0x1")]("undo"),e[ya("0x1")](ya("0x5")))}}const Aa=["TableCaptionEditing","requires","toggleTableCaption","TrackChangesEditing","has","afterInit","plugins","editor","get","enableCommand"];var va,Ra;va=Aa,Ra=141,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x0")](){return[wx]}[Sa("0x4")](){const t=this[Sa("0x6")];t.plugins[Sa("0x3")](Sa("0x9"))&&t[Sa("0x5")][Sa("0x7")](Sa("0x2"))[Sa("0x8")](Sa("0x1"))}}const La=["*Change to:* %0","numbered","registerDescriptionCallback","getAttribute","toUpperCase","reversed","handleListStartCommand","startIndex","_getSuggestionBlocksForListStyle","plugins","change","has","list.properties","getSelectedBlocks","DocumentListPropertiesUtils","length","DocumentListUtils","document","model","handleListStyleCommand","_getSuggestionBlocks","commandName","listReversed","afterInit","listStyle","isFirstBlockOfListItem","from","type","_getTranslationKeyForListStyle","enableCommand","selection","commandParams","push","bind","TrackChangesEditing","handleDescriptions","isListItemBlock","markMultiRangeBlockFormat","handleListReversedCommand","_LIST_","format","listType","listStart","editor","get","config","expandListBlocksToCompleteList","getListTypeFromListStyleType"];var Na,Ma;Na=La,Ma=242,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x15")](){if(!this[wa("0x29")][wa("0x7")][wa("0x9")]("DocumentListPropertiesEditing"))return;const t=this[wa("0x29")][wa("0x2b")][wa("0x2a")](wa("0xa")),e=this[wa("0x29")].plugins[wa("0x2a")](wa("0x20"));t.styles&&e.enableCommand("listStyle",this[wa("0x11")][wa("0x1f")](this)),t[wa("0x3")]&&e.enableCommand(wa("0x14"),this[wa("0x24")].bind(this)),t[wa("0x5")]&&e[wa("0x1b")](wa("0x28"),this[wa("0x4")][wa("0x1f")](this)),e._descriptionFactory[wa("0x0")](this[wa("0x21")][wa("0x1f")](this))}[wa("0x11")](t,e={}){const n=this.editor[wa("0x7")][wa("0x2a")](wa("0x20")),o=this[wa("0x6")]();this[wa("0x29")][wa("0x10")][wa("0x8")]((()=>{n[wa("0x23")](o,{commandName:wa("0x16"),commandParams:[{type:e[wa("0x19")]}],formatGroupId:wa("0x16")})}))}handleListReversedCommand(t,e={}){const n=this.editor.plugins[wa("0x2a")](wa("0x20")),o=this[wa("0x29")][wa("0x7")][wa("0x2a")](wa("0xe")),s=this[wa("0x12")]((t=>o.isListItemBlock(t)&&wa("0x2f")===t[wa("0x1")](wa("0x27"))));null!==s&&this[wa("0x29")][wa("0x10")][wa("0x8")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this[wa("0x29")][wa("0x7")][wa("0x2a")]("TrackChangesEditing"),o=this.editor[wa("0x7")][wa("0x2a")](wa("0xe")),s=this[wa("0x12")]((t=>o[wa("0x22")](t)&&wa("0x2f")===t[wa("0x1")](wa("0x27"))));null!==s&&this[wa("0x29")][wa("0x10")][wa("0x8")]((()=>{n[wa("0x23")](s,{commandName:"listStart",commandParams:[{startIndex:e[wa("0x5")]}],formatGroupId:wa("0x28")})}))}[wa("0x21")](t){const e=this[wa("0x29")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x13")]){case wa("0x16"):o=wa("0x2e"),s={type:"format",content:Yo(e,o,Yo(e,this[wa("0x1a")](n[wa("0x1d")][0].type)))};break;case wa("0x14"):o=n[wa("0x1d")][0][wa("0x3")]?"*Format:* set order to reversed":"*Format:* set order to regular",s={type:wa("0x26"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[wa("0x1d")][0][wa("0x5")])}}return s}[wa("0x6")](){const t=this[wa("0x29")][wa("0x7")][wa("0x2a")](wa("0xe"));let e=Array[wa("0x18")](this[wa("0x29")][wa("0x10")][wa("0xf")][wa("0x1c")][wa("0xb")]());return e.push(...t[wa("0x2c")](e)),e=[...new Set(e)],e}[wa("0x12")](t){const e=this[wa("0x29")][wa("0x7")].get(wa("0xe"));let n=Array.from(this[wa("0x29")][wa("0x10")][wa("0xf")][wa("0x1c")][wa("0xb")]()).filter(t);if(!n[wa("0xd")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[wa("0x17")](t)&&o[wa("0x1e")](t);return o}[wa("0x1a")](t){return"ELEMENT_"+this[wa("0x29")][wa("0x7")][wa("0x2a")](wa("0xc"))[wa("0x2d")](t)[wa("0x2")]()+wa("0x25")+t[wa("0x2")]().replace(/-/g,"_")}}const Fa=["tableBorderWidth","getAttribute","tableCellPadding","tableWidth","format","tableHeight","getSuggestionCallback","tableCellBorderStyle","editor","get","join","enqueueChange","nodeAfter","discard","handleDiscardAction","registerCustomCallback","_suggestionFactory","getSuggestions","removeAttribute","data","commandParams","tableCellProperties","registerDescriptionCallback","selection","tableCellBorderColor","tableCellHeight","TrackChangesTableProperties","enableCommand","TablePropertiesEditing","tableProperties","afterInit","_handlePropertyChange","model","TableCellPropertiesEditing","table","tableCellWidth","tableBackgroundColor","locale","getFirstPosition","tableBorderStyle","*Format:* change table cell properties","start","_getSuggestion","tableCellBorderWidth","has","accept","plugins","markBlockFormat","subType","formatBlock","document","tableCellVerticalAlignment","change","pluginName","tableCellBackgroundColor"];var Pa,Da;Pa=Fa,Da=446,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x17")]=["tableBorderColor",Ba("0x21"),Ba("0x31"),"tableAlignment",Ba("0x34"),Ba("0x36"),Ba("0x1e")],this[Ba("0xf")]=[Ba("0x12"),Ba("0x1"),Ba("0x25"),Ba("0x33"),Ba("0x1d"),Ba("0x13"),Ba("0x30"),"tableCellHorizontalAlignment",Ba("0x2d")]}static get[Ba("0x2f")](){return Ba("0x14")}[Ba("0x18")](){const t=this.editor[Ba("0x28")][Ba("0x3")]("TrackChangesEditing");if(this[Ba("0x2")][Ba("0x28")][Ba("0x26")](Ba("0x16"))){for(const e of this[Ba("0x17")])t[Ba("0x15")](e,((t,n)=>{const o=this.editor[Ba("0x1a")].document.selection[Ba("0x20")]().findAncestor(Ba("0x1c"));this[Ba("0x19")](e,[o],this.tableProperties,Ba("0x17"),t,n)}));t[Ba("0xa")][Ba("0x9")](Ba("0x2b"),"tableProperties","accept",t[Ba("0xa")].getSuggestionCallback(Ba("0x2b"),null,"discard")),t[Ba("0xa")].registerCustomCallback(Ba("0x2b"),Ba("0x17"),Ba("0x7"),((t,e)=>this[Ba("0x8")](this[Ba("0x17")],t,e))),t[Ba("0xa")][Ba("0x9")]("formatBlock",Ba("0x17"),Ba("0x4"),(()=>!1))}if(this[Ba("0x2")][Ba("0x28")][Ba("0x26")](Ba("0x1b"))){for(const e of this[Ba("0xf")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x2")][Ba("0x28")].get("TableUtils").getSelectionAffectedTableCells(this[Ba("0x2")][Ba("0x1a")][Ba("0x2c")][Ba("0x11")]);this[Ba("0x19")](e,o,this[Ba("0xf")],Ba("0xf"),t,n)}));t[Ba("0xa")][Ba("0x9")](Ba("0x2b"),"tableCellProperties",Ba("0x27"),t[Ba("0xa")][Ba("0x0")](Ba("0x2b"),null,"discard")),t._suggestionFactory[Ba("0x9")](Ba("0x2b"),"tableCellProperties","discard",((t,e)=>this.handleDiscardAction(this[Ba("0xf")],t,e))),t._suggestionFactory[Ba("0x9")](Ba("0x2b"),Ba("0xf"),Ba("0x4"),(()=>!1))}t._descriptionFactory[Ba("0x10")]((t=>this.handleSuggestionDescription(t)))}[Ba("0x19")](t,e,n,o,s,r){const i=this[Ba("0x2")][Ba("0x28")][Ba("0x3")]("TrackChangesEditing");this[Ba("0x2")].model[Ba("0x5")](r.batch,(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x32")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x29")](t,{commandParams:[e]},[],o)}}))}[Ba("0x8")](t,e,n){const o=e[0][Ba("0x23")][Ba("0x6")],s=n[Ba("0xe")][0];this[Ba("0x2")].model[Ba("0x2e")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0xc")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0xd")])switch(t[Ba("0x2a")]){case Ba("0x17"):return{type:Ba("0x35"),content:Yo(this[Ba("0x2")][Ba("0x1f")],"*Format:* change table properties")};case"tableCellProperties":return{type:Ba("0x35"),content:Yo(this[Ba("0x2")][Ba("0x1f")],Ba("0x22"))}}}[Ba("0x24")](t,e){const n=this[Ba("0x2")][Ba("0x28")][Ba("0x3")]("TrackChangesEditing");for(const o of n[Ba("0xb")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ua=["isObject","group","creator","position","options","_mergeNestedSuggestions","createdAt","markMultiRangeDeletion","ready","_checkSuggestionCorrectness","ck-suggestion-marker-","multi","_addSuggestionMarker","filter","isMultiRange","markerName","rootName","_registerDefaultCallbacks","editing","formatBlock:","createRange","subType","_descriptionFactory","containsItem","stop","howMany","_suggestionFactory","reconvertMarker","createElement","catch","after","track-changes-user-not-found","getRange","trackChanges.trackFormatChanges","root","originalSuggestionId","setSelection","removeAttribute","markMultiRangeBlockFormat","pluginName","nodeBefore","suggestionLoaded","insertContent","isSelectable","TrackChangesEditing","return","CommentsRepository","createPositionAfter","toJSON","insert","containsRangeInObject","push","buildSuggestion","createRangeIn","widget","conversion","_isForcedDefaultExecutionBlock","addHighlight","config","_defaultCallbacks","PendingActions","never","schema","addMarker:suggestion:formatBlock","selection","addCommentThread","isExternal","bindElementToMarker","includes","_trackFormatChanges","item","formatBlock","backward","track-changes-adapter-missing-getsuggestion","_suggestionState","start","_setSuggestionRange","enqueueChange","data-suggestion","authorName","isAfter","fire","getMultiRangeId","formatInline:accept","model","size","every","getCustomProperty","some","dataDowncast","removeComment","hasCommentThread","formatBlock:discard","always","_handleNewSuggestionMarker","_addThreadToSuggestion","formatInline:discard","getFirstMarker","head","_updateSuggestionData","from","getMarkers","getUser","isEqual","update:suggestion","differ","hasComments","_adapter","next","splitPosition","$graveyard","add","formatInline","then","getNearestSelectionRange","_saved","isRemovable","_commentsRepository","acceptSuggestion","_editor","markerReady","ck-suggestion-marker","isInContent","forceDefaultExecution","name","markerNameToElements","suggestionChanged","change","_rangeIsInLocalUserInsertion","length","suggestion-type","mapper","getLastMatchingPosition","commands","removeMarkers","split","documentSelection","unbindElementFromMarkerName","deletion:accept","trackChanges.mergeNestedSuggestions","addMarkerName","moveTargetPosition","activeMarkers","_model","map","suggestion:","author","ck-suggestion-marker--active","setTo","data","get","highest","getFirstRange","_breakSuggestionMarker","listenTo","_findSuggestions","applyOperation","createPositionAt","track-changes-suggestion-data-mismatch","containsPosition","formatInline:chain","element","has","enableReadOnlyMode","addSuggestionData","ck-suggestion-marker-formatBlock","$marker","getSuggestionCallback","acceptAllSuggestions","_splitMarkerName","values","registerPostFixer","trackChanges","insertion:accept","splice","join","discardSelectedSuggestions","type","unbind","registerCustomCallback","previous","targetPosition","discardSuggestion","accept","isNextTo","authoredAt","value","document","removed","discardAllSuggestions","plugins","getSuggestion","markInsertion","markers","_refreshSuggestionsChain","low","addMarker:suggestion","_enabledCommands","createSelection","elementEnd","high","sort","remove","for","getItems","enableCommand","init","change:_saved","_createSuggestion","clone","getAttribute","@external","_onDiscard","commentThread","removeMarker","resolve","removeClass","containsRange","deletion:join","_joinSuggestions","forward","_setSuggestionData","formatInline:","collaboration.channelId","isIntersectingWithRange","getDifference","showSuggestionHighlights","newRange","execute","isLocal","isUndo","deletion","multipleBlocks","upcast","setAttribute","normal","isTouching","isLimit","insertion:chain","deletion:chain","substr","nodeAfter","updateMarker","trackChangesCommand","updateSuggestion","rejected","addComment","locale","consumable","chain","getIntersection","dataReady","discard","markMultiRangeInsertion","commandName","removeMarker:suggestion:formatBlock","isBlock","track-changes-suggestion-not-found","getChangedMarkers","getAllAdjacentSuggestions","deleteContent","getRanges","getShiftedBy","detach","default","notReady","_joinWithAdjacentSuggestions","acceptSelectedSuggestions","addClass","change:data","writer","editor","getSuggestions","track-changes-command-not-found","Users","elementStart","define","insertion","markDeletion","editingDowncast","dataToMarker","error-saving-suggestion-data-suggestion-discarded","refresh","isAtEnd","skipNestingCheck","getWalker","delete","oldRange","addSuggestion","addRange","insertion:","getCommentThread","deletion:","isCollapsed","_getAuthorFromId","batch","adapter","isBefore","formatGroupId","markInlineFormat","external:","formatBlock:accept","isDocumentOperation","createPositionBefore","markerToHighlight","consume","PENDING_ACTION_SUGGESTION","isOwn","attributes","set","suggestion","_removeSuggestion","end","move","fromRange","parent","suggestionUnloaded","_cutOutSuggestionMarker","getAncestors","_suggestions","range","clear","_getSuggestionData","change:activeMarkers","_customCallbacks","isInsideObject"];var Ga,Ha;Ga=Ua,Ha=265,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return["CommentsRepository",r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,wx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x64")](){return za("0x69")}constructor(t){function e(t){return t[za("0xcd")]((t=>String.fromCharCode(t)))[za("0xec")]("")}super(t),this[za("0x2c")]("activeMarkers",[]),this.on(za("0x3a"),((e,n,o,s)=>{this[za("0xcc")][za("0xbc")]((()=>{for(const e of[...s,...o])this[za("0xcc")][za("0xfe")][za("0xdf")](e)&&t[za("0x4f")][za("0x58")](e)}))})),this[za("0x53")]=new ss(this[za("0x6")][za("0x91")][za("0x7b")],this[za("0x6")][za("0x134")]),this._adapter=null,this[za("0x57")]=new Va(this.editor),this[za("0x36")]=new Map,this._commentsRepository=t[za("0xfb")].get(za("0x6b")),this._enabledCommands=new Set,this[za("0xcc")]=this[za("0x6")][za("0x91")],this[za("0x87")]=new WeakMap,this[za("0x75")]=!1,t[za("0x77")].define("trackChanges.trackFormatChanges",za("0x145")),this[za("0x82")]=t[za("0x77")][za("0xd3")](za("0x5e")),t[za("0x77")][za("0xb")](za("0xc8"),!0),this[za("0x42")]=t[za("0x77")].get("trackChanges.mergeNestedSuggestions"),this[za("0x130")]=new u(t,this._enabledCommands),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,54,51,50])}[za("0x10b")](){const t=this.editor;t[za("0x74")][za("0x108")](za("0xe"))[za("0x27")]({model:"suggestion",view:t=>{const{id:e,type:n}=this._splitMarkerName(t.markerName),o=[za("0xb6"),za("0x47")+n];let s=3e3;return this[za("0xcb")][za("0x81")](t.markerName)&&(o.push(za("0xd0")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[za("0x108")](za("0x96"))[za("0xac")]((e=>{e.on(za("0x101"),((e,n,o)=>{if(!o.options[za("0x11f")])return;const s=n.item;if(!s)return;const r=o[za("0xc0")].toViewElement(s);t[za("0x91")][za("0x7b")][za("0x3d")](s)&&r&&!r[za("0x94")](za("0x73"))&&r.is("containerElement")&&(0,x.toWidget)(r,o.writer)}),{priority:za("0x105")})})),t[za("0x74")].for(za("0x96"))[za("0x27")]({model:za("0x2d"),view:(t,e)=>{if(!e[za("0x41")][za("0x11f")])return null;const{type:n}=this[za("0xe6")](t[za("0x4c")]);return{classes:["ck-suggestion-marker",za("0x47")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x83")])return;if(o[za("0x83")].is(za("0x7d")))return void s[za("0x135")][za("0x28")](o[za("0x83")],n[za("0xb9")]);const r=s[za("0xc0")].toViewElement(o[za("0x83")]);if(!o.item.is(za("0xde"))||!t[za("0x91")].schema[za("0x13d")](o.item)||r[za("0x94")](za("0x76")))return;const{id:i}=this[za("0xe6")](o[za("0x4c")]);s.writer.addClass([za("0xb6"),za("0xe2")],r),s[za("0x5")][za("0x127")](za("0x8b"),i,r),s[za("0xc0")][za("0x80")](r,o[za("0x4c")]),e&&(this[za("0xcb")][za("0x81")](o.markerName)?s.writer[za("0x3")](za("0xd0"),r):s.writer[za("0x115")](za("0xd0"),r));for(const e of t[za("0x91")][za("0x72")](o[za("0x83")])[za("0x109")]())s.consumable[za("0x28")](e,n[za("0xb9")]);s[za("0x135")][za("0x28")](o.item,n.name)};t.conversion[za("0x108")](za("0x96"))[za("0xac")]((t=>{t.on(za("0x7c"),((t,e,o)=>{o.options[za("0x11f")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0xd4")})})),t[za("0x74")][za("0x108")](za("0x96")).markerToData({model:za("0x2d"),view:(t,e)=>e[za("0x41")][za("0x11f")]?null:{group:za("0x2d"),name:t[za("0x12d")](11)}}),t[za("0x74")][za("0x108")](za("0x126")).elementToElement({view:{name:za("0x2d"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[za("0x10f")](za("0xbf"))+":"+t.getAttribute("id");return t.getAttribute("marker-count")&&(n+=":"+t[za("0x10f")]("marker-count")),e[za("0x59")](za("0xe3"),{"data-name":n})}}),t[za("0x74")][za("0x108")](za("0x126"))[za("0xf")]({view:"suggestion"}),t[za("0x74")][za("0x108")](za("0xe"))[za("0xac")]((t=>{t.on(za("0x7c"),n(),{priority:za("0x105")})})),t[za("0x74")].for("editingDowncast")[za("0xac")]((t=>{t.on(za("0x13c"),((t,e,n)=>{const o=n[za("0xc0")][za("0xba")](e[za("0x4c")]);if(o)for(const t of o)t[za("0x94")](za("0x76"))||(n.writer.removeClass([za("0xb6"),"ck-suggestion-marker-formatBlock",za("0xd0")],t),n[za("0x5")][za("0x62")]("data-suggestion",t),n[za("0xc0")][za("0xc6")](t,e[za("0x4c")]))}),{priority:za("0x105")})})),t[za("0x91")][za("0xf8")][za("0xe8")]((e=>{let n=!1;const o=Array.from(t[za("0x91")].document.differ[za("0x13f")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x2d")!==o)continue;const d=this[za("0x36")][za("0xd3")](l);if(null!=a.newRange)if(za("0xad")==c&&(n=n||Xa(a[za("0x120")],x,e,t.model[za("0x7b")])),a[za("0x120")][za("0x1c")]||za("0xab")==a[za("0x120")][za("0x5f")][za("0x4d")]||za("0x84")==c&&!Ja(a[za("0x120")])||"deletion"==c&&(qa(i=a[za("0x120")])||(r=i).start[za("0x32")]==r[za("0x2f")].nodeBefore&&r.start[za("0x12")]))e[za("0x113")](x),n=!0;else{if(!d||!d[za("0xb7")])continue;s[za("0xac")](d)}}var r,i;return s[za("0x92")]>0&&(n=!!this[za("0x1")](s)||n),n})),t.model[za("0xf8")][za("0xe8")]((e=>{let n=!1;for(const o of t[za("0x91")][za("0xf8")][za("0xa6")].getChanges()){if(za("0x6e")!=o[za("0xee")])continue;const s=o.position.getShiftedBy(o[za("0xbe")]);if(s.isAtEnd)for(const r of this[za("0x36")][za("0xe7")]()){if(r.isMultiRange||!r[za("0xb7")])continue;if(za("0x84")!=r[za("0xee")])continue;const i=r[za("0xd5")]();if(i.start[za("0x32")]!=i[za("0x2f")][za("0x32")]&&i.end[za("0xa4")](o[za("0x40")])){const o=t[za("0x91")][za("0x51")](i.start,s);e.updateMarker(r[za("0x9e")](),{range:o}),n=!0}}}return n})),t[za("0x91")][za("0xfe")].on(za("0xa5"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0xb9")]),n=this[za("0x36")][za("0xd3")](t);n&&n[za("0xc9")](e[za("0xb9")])}})),t[za("0x91")][za("0xf8")].on(za("0x4"),(()=>{const e=Array[za("0xa1")](t[za("0x91")][za("0xf8")][za("0xa6")][za("0x13f")]()).filter((t=>za("0x2d")===this[za("0xe6")](t[za("0xb9")])[za("0x3e")]));if(0===e[za("0xbe")])return;e[za("0x106")](((t,e)=>{const n=t.data[za("0x16")],o=e.data[za("0x16")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o[za("0x88")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xe6")](t);if(null===s[za("0x16")]){const e=this[za("0x9b")](t);o[za("0xac")](e)}else{const t=this[za("0x36")][za("0xd3")](e);null!==s.newRange||t[za("0xb7")]?(n[za("0xac")](t[za("0x9f")]),o.add(t)):this[za("0x2e")](t)}}o.size>0&&this[za("0xff")](o);for(const t of n)this[za("0x8e")](za("0xbb"),t)})),t.model.on(za("0xd9"),((e,n)=>{const o=n[0];if(!this[za("0x36")].size)return;if(!o[za("0x25")])return;if(o[za("0x1e")][za("0x123")]||!o[za("0x1e")][za("0x122")])return;let s,r;switch(o[za("0xee")]){case"insert":s=t[za("0x91")][za("0xda")](o[za("0x40")]),r=s.getShiftedBy(o[za("0x56")]);break;case za("0xc4"):s=t[za("0x91")][za("0xda")](o[za("0xaa")]),r=t.model[za("0xda")](o[za("0xca")]);break;case za("0x30"):s=t.model[za("0xda")](o[za("0xf2")]),r=s[za("0x143")](o[za("0x56")]);break;default:return}const i=t[za("0x91")][za("0x51")](s,r);t[za("0x91")][za("0xbc")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t.isMultiRange)continue;if(za("0xad")==t[za("0xee")])continue;const n=t.data&&t[za("0xd2")][za("0x125")];(za("0x84")!=t.type||za("0xc4")==o.type&&!n)&&(e[za("0x6f")]||za("0xc")==t.type&&e[za("0x2a")]||t.getFirstRange()[za("0x116")](i)&&this[za("0xd6")](t,s,r))}}))}),{priority:"lowest"}),t[za("0x91")].on(za("0x141"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0xb8")])return;if(this[za("0x75")])return;if(!this[za("0x130")][za("0xf7")])return;if(o[za("0x1c")])return;const r=t[za("0x91")][za("0x7b")],{start:i,end:x}=o[za("0xd5")](),a=i[za("0x12e")]&&r.isLimit(i[za("0x12e")])?null:r[za("0xaf")](i,za("0x119")),c=x[za("0x65")]&&r[za("0x12a")](x[za("0x65")])?null:r[za("0xaf")](x,za("0x85")),l=t.model[za("0x51")](a?a[za("0x88")]:i,c?c.end:x);t[za("0x91")][za("0xbc")]((e=>{this[za("0xd")](l);const n=t[za("0x91")][za("0x7b")][za("0xaf")](l[za("0x88")]);o.is(za("0xc5"))?e[za("0x61")](n):o[za("0xd1")](n)})),e[za("0x55")]()}),{priority:e.priorities[za("0x128")]+10}),t[za("0x91")].on(za("0x67"),((e,n)=>{const o=n[n[za("0xbe")]-1];o&&o.forceDefaultExecution||this[za("0x75")]||this[za("0x130")][za("0xf7")]&&(t[za("0x91")][za("0xbc")]((()=>{let o=t.model[za("0x67")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x6a")]=o[za("0x10e")]();const s=o[za("0x2f")][za("0x65")],r=t.model.schema;s&&r[za("0x13d")](s)&&!r.isObject(s)&&(o=t[za("0x91")][za("0x51")](o[za("0x88")],t[za("0x91")].createPositionAt(s,za("0x2f")))),this[za("0xfd")](o)})),e.stop())}),{priority:za("0x105")}),this[za("0x6")][za("0xc2")].add(za("0xe9"),this[za("0x130")]),this[za("0x10a")](za("0xe9"));const o=new p(t,this[za("0x36")]);t.commands[za("0xac")]("acceptSuggestion",o),this.enableCommand(za("0xb3"));const s=new C(t,this._suggestions);t[za("0xc2")][za("0xac")](za("0xf3"),s),this[za("0x10a")](za("0xf3")),t[za("0xc2")][za("0xac")](za("0xe5"),new F(t,o,this._suggestions)),this[za("0x10a")](za("0xe5")),t[za("0xc2")][za("0xac")](za("0xfa"),new F(t,s,this[za("0x36")])),this[za("0x10a")](za("0xfa")),t[za("0xc2")][za("0xac")](za("0x2"),new U(t,o,this._suggestions)),this[za("0x10a")](za("0x2")),t[za("0xc2")][za("0xac")](za("0xed"),new U(t,s,this[za("0x36")])),this.enableCommand(za("0xed"));const r=t[za("0xfb")][za("0xd3")](za("0x6b"));this[za("0xd7")](r,za("0x133"),((t,{threadId:e})=>{const n=this[za("0x36")][za("0xd3")](e);n&&n[za("0x112")]&&1===n[za("0x112")][za("0xbe")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:za("0x100")}),this[za("0xd7")](r,za("0x97"),((t,{threadId:e})=>{const n=this[za("0x36")][za("0xd3")](e);n&&n[za("0x112")]&&!n.commentThread[za("0xbe")]&&this[za("0xa0")](e,{hasComments:!1})}),{priority:za("0x100")})}set[za("0x1f")](t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this[za("0xa8")]=t}get[za("0x1f")](){return this[za("0xa8")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x36")][za("0xe7")]())t&&!e[za("0xb7")]||n[za("0x70")](e);return e?n[za("0xcd")]((t=>t[za("0x6d")]())):n}[za("0xfc")](t){const n=this[za("0x36")].get(t);if(!n)throw new e.CKEditorError(za("0x13e"),this);return n}hasSuggestion(t){return this[za("0x36")][za("0xdf")](t)}[za("0xe1")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xee")][za("0xc4")](":"),i=this[za("0x36")].get(n)||this[za("0x10d")](s,r,n,e,o);if(this[za("0x9c")](i),this[za("0x46")](i,s,r||null,e),i[za("0x43")]=t.createdAt,o&&o[za("0x110")]){const t=o["@external"],e=this._getExternalAuthor(t[za("0x8c")]);i[za("0xf6")]=t[za("0x43")],i[za("0xcf")]=e,i[za("0x7f")]=!0}else i[za("0xf6")]=t[za("0x43")];switch(t[za("0xd2")]&&(i[za("0xd2")]=t[za("0xd2")]),t.attributes&&(i.attributes=t[za("0x2b")]),this._adapter&&this[za("0xa8")].addSuggestion||(i[za("0xb0")]=!0),this._suggestionState.get(i)){case za("0x0"):this[za("0x87")][za("0x2c")](i,za("0x138"));break;case za("0xb5"):i[za("0xb7")]?(this._suggestionState[za("0x2c")](i,za("0x45")),this[za("0x8e")](za("0x66"),i)):this[za("0x87")][za("0x2c")](i,za("0xf9"))}return i}[za("0xb3")](t){this[za("0xb8")]((()=>{this[za("0x6")][za("0x91")][za("0xbc")]((()=>{for(const e of t[za("0x140")]())e[za("0xf4")]()}))}))}[za("0xf3")](t){this[za("0xb8")]((()=>{this[za("0x6")][za("0x91")][za("0xbc")]((()=>{for(const e of t[za("0x140")]())e.discard()}))}))}[za("0x10a")](t,n){const o=this[za("0x6")][za("0xc2")][za("0xd3")](t);if(!o)throw new e.CKEditorError(za("0x8"),this,{commandName:t});this[za("0x102")][za("0xac")](o),n&&o.on("execute",((t,e)=>{this[za("0x130")].value&&(this[za("0x75")]||e[za("0xbe")]>0&&e[e[za("0xbe")]-1]&&e[e[za("0xbe")]-1][za("0xb8")]||(n(((...t)=>o[za("0x121")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:"high"})}[za("0xb8")](t){let n,o;const s=this[za("0x75")];this[za("0x75")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x75")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[za("0xfd")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this.editor[za("0xfb")][za("0xd3")](za("0x9")).me;for(const{suggestion:e,meta:o}of this[za("0xd8")](t,za("0xc")))if(o[za("0x2a")]){if(!o.isNextTo){if(!this[za("0x42")]&&o[za("0x6f")])continue;return e}if(n==e[za("0x52")]){const n=e[za("0xd5")]();return n.start.isEqual(t.end)?this[za("0x89")](e,this._model[za("0x51")](t.start,n[za("0x2f")])):this._setSuggestionRange(e,this[za("0xcc")][za("0x51")](n[za("0x88")],t[za("0x2f")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x19")+n:za("0xc"),a=this[za("0x11a")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x49")](x,r,i,t),a}[za("0x13a")](t,n=za("0x48"),o={}){const s=this[za("0x6")][za("0xfb")][za("0xd3")](za("0x9")).me,r=this[za("0x57")][za("0xe4")]("insertion",n,za("0xec"));for(const e of this[za("0x7")]())if(e.author.id==s.id&&za("0xc")==e[za("0xee")]&&e[za("0x52")]==n&&(r(e[za("0x142")](),t)||r(t,e[za("0x142")]()))){for(const n of t)e[za("0x18")](n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this._findSuggestions(e,za("0xc"))){if(!o[za("0x2a")])continue;let e=!0;for(const o of n[za("0x142")]())for(const n of t)if(!o[za("0x116")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x19")+n,c=this[za("0x11a")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[za("0x8f")]());return c}[za("0x22")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x1c")])return null;if(za("0x7a")===this[za("0x82")]){const e=this[za("0x57")][za("0xe4")](za("0xad"),o,za("0xf4"));return this[za("0xb8")]((()=>e([t],n,s))),null}const r=this[za("0x6")][za("0xfb")][za("0xd3")]("Users").me,i=[];if("always"!==this[za("0x82")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0xc")))n.isOwn&&!n.isInsideObject&&i[za("0x70")](...e[za("0x142")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x137")](o);e&&n[za("0x70")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xbe")];){const o=n[e][za("0x11e")](t);n.splice(e,1,...o),e+=o.length}}return n}(t,i);x[za("0xbe")]&&this[za("0xcc")].change((()=>{for(const t of x){const e=this._suggestionFactory[za("0xe4")]("formatInline",o,"accept");this[za("0xb8")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x88")],a=t.end;for(const{suggestion:e,meta:n}of this[za("0xd8")](t,"formatInline")){if(!n[za("0x2a")])continue;if(e[za("0x52")]!=o)continue;const s=e[za("0xd5")]();if(s[za("0x116")](t,!0))return null;x=x[za("0x20")](s[za("0x88")])?x:s.start,a=a[za("0x8d")](s.end)?a:s.end,i?s[za("0x88")][za("0x20")](i.getFirstRange()[za("0x88")])?(i[za("0xc3")](),i=e):e[za("0xc3")]():i=e}const c=this[za("0xcc")].createRange(x,a);if(i)this[za("0x89")](i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:za("0x11b")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0x49")](za("0x11b")+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0x21")]||(n[za("0x21")]=n.commandName),n[za("0x125")]=t.is(za("0x37")),s=s||$a(n);const i=o.map((t=>Qa(t,this._model))),x=t.is(za("0x37"))?t:Qa(t,this[za("0xcc")]);if(za("0x7a")===this[za("0x82")]){const t=this[za("0x57")][za("0xe4")]("formatBlock",s,za("0xf4"));return this[za("0xb8")]((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[za("0xbd")](t)){a=!1;break}if(a&&za("0x9a")!==this[za("0x82")]){const t=this._suggestionFactory[za("0xe4")](za("0x84"),s,za("0xf4"));return this[za("0xb8")]((()=>t([x],n,r))),null}let c=null,l=x.start,d=x[za("0x2f")];for(const{suggestion:t,meta:e}of this[za("0xd8")](x,za("0x84"))){if(!e[za("0x2a")]||e[za("0xf5")]||e[za("0x6f")]||e[za("0x3c")])continue;if(t[za("0xd2")][za("0x21")]!=n[za("0x21")])continue;const o=t[za("0xd5")]();if(t.subType==s){if(o[za("0x116")](x,!0))return null;l=l[za("0x20")](o[za("0x88")])?l:o.start,d=d[za("0x8d")](o[za("0x2f")])?d:o[za("0x2f")],c?o[za("0x88")][za("0x20")](c[za("0xd5")]().start)?(c[za("0xc3")](),c=t):t[za("0xc3")]():c=t}else{const e=x[za("0x137")](o);this[za("0x34")](t,e)}}const u=this[za("0x6")].plugins[za("0xd3")](za("0x9")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x89")](c,this._model[za("0x51")](l,d)),c;{const t=this[za("0x11a")]({id:g,type:za("0x50")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(za("0x50")+s,g,m,this[za("0xcc")].createRange(l,d)),t}}[za("0x63")](t,n,o=[],s=null,r={}){n[za("0x21")]||(n[za("0x21")]=n[za("0x13b")]);const i=t[0];n.multipleBlocks=i.is(za("0x37")),s=s||$a(n);const x=o[za("0xcd")]((t=>Qa(t,this[za("0xcc")]))),a=i.is(za("0x37"))?t:t[za("0xcd")]((t=>Qa(t,this._model)));if(za("0x7a")===this._trackFormatChanges){const t=this[za("0x57")][za("0xe4")]("formatBlock",s,"accept");return this[za("0xb8")]((()=>t(a,n,r))),null}x[za("0x70")](...a);let c=!0;for(const t of x)if(!this[za("0xbd")](t)){c=!1;break}if(c&&za("0x9a")!==this._trackFormatChanges){const t=this[za("0x57")][za("0xe4")]("formatBlock",s,za("0xf4"));return this[za("0xb8")]((()=>t(a,n,r))),null}const l=this.editor[za("0xfb")].get(za("0x9")).me;for(const t of this.getSuggestions()){if(t.author.id!=l.id)continue;if(za("0x84")!=t[za("0xee")]||t[za("0xd2")].formatGroupId!=n[za("0x21")])continue;const e=t[za("0x52")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[za("0xa2")]()){const r=s[za("0x5d")]();if(o[za("0xa4")](r)){e?(a[za("0xeb")](n,1),n--):t[za("0x113")](s.name);break}}}}if(0==a[za("0xbe")])return null;const d=this[za("0x57")][za("0xe4")](za("0x84"),s,za("0xec"));for(const t of this.getSuggestions())if(t[za("0xcf")].id==l.id&&za("0x84")==t[za("0xee")]&&t[za("0xd2")][za("0x21")]==n[za("0x21")]&&t[za("0x52")]==s&&(d(t[za("0x142")](),a)||d(a,t[za("0x142")]()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x50")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,u,g,t,Zo[za("0x8f")]());return f}[za("0xd")](t,n=null,o={}){if(t[za("0x1c")])return null;const s=this[za("0x6")][za("0xfb")][za("0xd3")]("Users").me,r=new i.LiveRange(t[za("0x88")],t[za("0x2f")]);for(const{suggestion:t,meta:e}of this[za("0xd8")](r,za("0xc")))if(e[za("0x2a")]&&!e[za("0xf5")])if(t[za("0x4b")]){const e=t.getRanges()[za("0x4a")]((t=>za("0xab")!=t[za("0x5f")][za("0x4d")]));if(e[za("0x93")]((t=>r[za("0x116")](t,!0)))&&t[za("0x139")](),e.some((t=>t[za("0x116")](r,!0)))){const t=this[za("0x57")][za("0xe4")]("deletion",n,za("0xf4"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[za("0x137")](t.getFirstRange());null!==e&&t[za("0x111")]([e],null,o)}if(r[za("0x144")](),r.isCollapsed||za("0xab")==r[za("0x5f")][za("0x4d")])return null;let x=null,a=r.start,c=r[za("0x2f")];for(const{suggestion:t,meta:e}of this[za("0xd8")](r,"deletion"))if(e[za("0x2a")])if(t[za("0x4b")]&&this[za("0x42")]){let e=!0;for(const n of t[za("0x142")]()){if(n[za("0x116")](r,!0))return t;r[za("0x116")](n)||(e=!1)}e&&t[za("0x139")]()}else{const n=t[za("0xd5")]();if(n[za("0x116")](r,!0)){if(!this[za("0x42")]&&e[za("0x6f")])continue;return t}a=a[za("0x20")](n[za("0x88")])?a:n[za("0x88")],c=c[za("0x8d")](n[za("0x2f")])?c:n[za("0x2f")],x?n[za("0x88")][za("0x20")](x[za("0xd5")]().start)?(x.removeMarkers(),x=t):t[za("0xc3")]():x=t}if(x)return this._setSuggestionRange(x,this[za("0xcc")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this[za("0xcc")][za("0x51")](a,c),i=s.id,x=n?za("0x1b")+n:za("0x124"),l=this[za("0x11a")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x49")](x,t,i,r),l}}[za("0x44")](t,n=za("0x48"),o={}){const s=this[za("0x6")][za("0xfb")].get(za("0x9")).me,r=t[za("0xcd")]((t=>new i.LiveRange(t[za("0x88")],t[za("0x2f")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0xd8")](t,za("0xc")))n[za("0x2a")]&&!n[za("0xf5")]&&x[za("0xac")](e);for(const e of x)if(e[za("0x4b")]){const s=e[za("0x142")]();if((!e.attributes||!e[za("0x2b")][za("0x13")])&&s.every((t=>r[za("0x95")]((e=>e.containsRange(t,!0)))))&&e[za("0x139")](),r[za("0x93")]((t=>s[za("0x95")]((e=>e[za("0x116")](t,!0)))))){const e=this._suggestionFactory.getSuggestionCallback(za("0x124"),n,za("0xf4"));return this[za("0xb8")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[za("0x95")]((e=>e[za("0x116")](t,!0)))&&e[za("0x139")](),r.every((e=>t.containsRange(e,!0)))){const t=this[za("0x57")].getSuggestionCallback("deletion",n,za("0xf4"));return this[za("0xb8")]((()=>t(r,null,o))),null}}const a=this[za("0x57")][za("0xe4")](za("0x124"),n,za("0xec"));let c=null;for(const t of this.getSuggestions())if(t[za("0xcf")].id==s.id&&t[za("0xb7")]&&za("0x124")==t.type&&t[za("0x52")]==n&&(a(t.getRanges(),r)||a(r,t[za("0x142")]())))if(c){if(t.commentThread&&t[za("0x112")][za("0xbe")])continue;for(const e of t.getRanges())c[za("0x11d")](e)||c[za("0x18")](e);t[za("0xc3")]()}else{c=t;for(const e of r)t[za("0x11d")](e)||t[za("0x18")](e)}if(c)return c;x[za("0x38")]();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x124")))n[za("0x2a")]&&x[za("0xac")](e);for(const t of x){const e=t[za("0x142")]();if((!o||!o[za("0x13")])&&r[za("0x93")]((t=>e[za("0x95")]((e=>e.containsRange(t,!0))))))return t;(!t.attributes||!t[za("0x2b")][za("0x13")])&&e[za("0x93")]((t=>r[za("0x95")]((e=>e[za("0x116")](t,!0)))))&&t[za("0x139")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[za("0x11a")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x144")](),t[za("0x1c")]||za("0xab")==t[za("0x5f")].rootName||this[za("0x49")](u,l,d,t,Zo.getMultiRangeId());return g}[za("0x89")](t,e){const n=t[za("0x9e")]();this[za("0xcc")][za("0xbc")]((t=>{t[za("0x12f")](n,{range:e})}))}[za("0x9c")](t){const e=t.id,n=this[za("0x6")].config[za("0xd3")]("collaboration.channelId");this[za("0xb2")][za("0x98")](e)||this[za("0xb2")][za("0x7e")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0xb2")][za("0x1a")](e);o[za("0xef")](za("0xb1")),o.isRemovable=!1,t[za("0x112")]=o}[za("0x46")](t,n,o,s){if(t[za("0xee")]!=n||t.subType!=o||t[za("0x3f")].id!=s)throw this[za("0x6")][za("0xe0")](za("0xdb")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[za("0x34")](t,n){const o=t[za("0xd5")]();if(n[za("0xa4")](o))t[za("0xc3")]();else if(o.containsRange(n)){const s=this[za("0xcc")].createPositionAt(n[za("0x88")][za("0x65")],za("0x2f"));this._setSuggestionRange(t,this._model[za("0x51")](o[za("0x88")],s));const r=(0,e.uid)(),i=t[za("0x3f")].id,x=t[za("0xee")]+":"+t[za("0x52")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0xd2")],attributes:t[za("0x2b")]});const a=this[za("0xcc")][za("0xda")](n[za("0x2f")][za("0x32")],za("0x5b")),c=this[za("0xcc")][za("0x51")](a,o[za("0x2f")]);this._addSuggestionMarker(x,r,i,c)}else if(o[za("0xdc")](n[za("0x88")])){const e=this[za("0xcc")][za("0xda")](n[za("0x88")][za("0x65")],za("0x2f"));this[za("0x89")](t,this._model[za("0x51")](o[za("0x88")],e))}else{const e=this[za("0xcc")].createPositionAt(n.end.parent,za("0x5b"));this[za("0x89")](t,this[za("0xcc")][za("0x51")](e,o.end))}}[za("0xbd")](t){for(const{suggestion:e,meta:n}of this[za("0xd8")](t,za("0xc"))){if(!n.isOwn)continue;const o=e[za("0x142")]();for(const e of o)if(!t[za("0x11e")](e)[za("0xbe")])return!0}return!1}_getAuthorFromId(t){const n=this[za("0x6")][za("0xfb")][za("0xd3")]("Users")[za("0xa3")](t);if(!n)throw new e.CKEditorError(za("0x5c"),this);return n}_getExternalAuthor(t){const e=this.editor[za("0xfb")].get(za("0x9")),n=(0,r.hashObject)(za("0x23")+t);return e.getUser(n)||e.addUser({id:n,name:t})}[za("0x10d")](t,e,n,o,s){const r=this[za("0x1d")](o),i=this[za("0x57")][za("0x71")](t,e,n,r,s,(t=>this[za("0xa0")](n,{attributes:t})));return this.listenTo(i,za("0xf4"),(()=>{this._updateSuggestionData(n,{state:"accepted"})}),{priority:za("0x105")}),this[za("0xd7")](i,za("0x139"),(()=>{this[za("0xa0")](n,{state:za("0x132")})}),{priority:"high"}),this[za("0x36")][za("0x2c")](n,i),this._suggestionState.set(i,za("0x0")),i}[za("0xe6")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[za("0xbe")]>=5?e[2]:null,id:e[za("0xbe")]<5?e[2]:e[3],authorId:e[za("0xbe")]<5?e[3]:e[4],markerCount:6==e[za("0xbe")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[za("0xd5")](),r=s[za("0x88")],i=s[za("0x2f")];this[za("0x89")](t,this[za("0xcc")][za("0x51")](r,n));const x=(0,e.uid)(),a=t[za("0x3f")].id,c=t.type+(t[za("0x52")]?":"+t.subType:"");this[za("0x11a")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x2b")],data:t.data}),za("0x84")==t[za("0xee")]&&(o=this._model[za("0x26")](o[za("0x32")])),this[za("0x49")](c,x,a,this._model[za("0x51")](o,i))}[za("0xd8")](t,e=null){const n=[],o=this._model.schema,s=this[za("0x6")].plugins[za("0xd3")]("Users").me;for(const r of this[za("0x7")]())if(r[za("0xb7")]&&(!e||r[za("0xee")]==e))for(const e of r[za("0x142")]()){const i=t[za("0x88")][za("0xa4")](e[za("0x2f")])||t[za("0x2f")][za("0xa4")](e[za("0x88")]);if(i||t.getIntersection(e)){const x=t.containsRange(e)&&Ka(o,e[za("0x88")],t),a=e[za("0x116")](t)&&Ka(o,t[za("0x88")],e);n[za("0x70")]({suggestion:r,meta:{isOwn:s==r[za("0xcf")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,s){this[za("0xcc")][za("0xbc")]((r=>{let i=za("0xce")+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x2e")](t){const e=t[za("0xf1")],n=t[za("0xa9")];t[za("0xf1")]=null,null!=e&&(e[za("0xa9")]=null),t[za("0xa9")]=null,null!=n&&(n[za("0xf1")]=null),za("0x45")==this[za("0x87")].get(t)&&(this[za("0x87")][za("0x2c")](t,"removed"),this[za("0x8e")](za("0x33"),t,e,n))}[za("0x11a")](t){const n=t.id,o=this[za("0xe1")](t);if(this[za("0xa8")]&&this[za("0xa8")][za("0x17")]){const s=this.editor[za("0xfb")][za("0xd3")]("PendingActions"),r=o.hasComments,i=o.subType?o.type+":"+o[za("0x52")]:o[za("0xee")],x=this[za("0x6")][za("0x134")],a=s[za("0xac")](Yo(x,za("0x29"))),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[za("0x60")]||null,attributes:o.attributes};this[za("0xa8")][za("0x17")](c).then((t=>{o[za("0xb0")]=!0,s[za("0x107")](a),t&&t[za("0x43")]&&(this._suggestions[za("0xd3")](n)[za("0x43")]=t[za("0x43")])}))[za("0x5a")]((t=>{throw(0,e.logWarning)(za("0x10")),this[za("0x6")][za("0x91")][za("0x8a")]({isUndoable:!1},(()=>{o[za("0x139")]()})),o.stopListening(),this[za("0x36")][za("0x15")](o.id),this[za("0x87")][za("0x15")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x6")][za("0xfb")][za("0xd3")](za("0x79")),o=this[za("0xfc")](t);if(this[za("0xa8")]&&this._adapter[za("0x131")])if(o[za("0xb0")]){const o=n.add(Yo(this[za("0x6")].locale,za("0x29")));this[za("0xa8")][za("0x131")](t,e)[za("0xae")]((()=>{n.remove(o)}))}else o.on(za("0x10c"),(()=>{this._updateSuggestionData(t,e)}))}[za("0x39")](t){if(!this[za("0xa8")]||!this[za("0xa8")][za("0xfc")])throw new e.CKEditorError(za("0x86"),this);return this[za("0xa8")].getSuggestion(t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xe6")](t),r=this[za("0x36")][za("0xd3")](e)||this[za("0x10d")](n,o,e,s,{});switch(this[za("0x46")](r,n,o,s),this[za("0x87")][za("0xd3")](r)){case za("0x0"):this[za("0x39")](e)[za("0xae")]((t=>{let n=Promise[za("0x114")]();t[za("0xa7")]&&(n=this[za("0xb2")].fetchCommentThread({channelId:this[za("0x6")][za("0x77")][za("0xd3")](za("0x11c")),threadId:e})),n[za("0xae")]((()=>{this[za("0xe1")](t)._saved=!0}))})),this[za("0x87")][za("0x2c")](r,za("0xb5"));break;case za("0xf9"):this[za("0xa0")](e,{state:"open"});case za("0x138"):this[za("0x87")].set(r,za("0x45")),this[za("0x8e")]("suggestionLoaded",r);break;case za("0x45"):this[za("0x8e")](za("0xbb"),r)}return r[za("0xc9")](t),r}[za("0xff")](t){const e=Array[za("0xa1")](t)[za("0x4a")]((t=>!t[za("0x4b")])),n=this[za("0x7")]({skipNotAttached:!0})[za("0x4a")]((t=>!t[za("0x4b")])),o=n.filter((e=>!t[za("0xdf")](e))),s=new Map(n.map((t=>[t,this[za("0x57")][za("0xe4")](t[za("0xee")],t[za("0x52")],za("0x136"))]))),r=new Map(n.map((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xbe")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xbe")];t++)a(e[t],o,0);for(let t=0;t<e[za("0xbe")];t++){const n=e[t];!x[za("0xdf")](n)&&n[za("0xf1")]&&(n[za("0xf1")].next===n&&(n.previous[za("0xa9")]=null),n[za("0xf1")]=null),!i[za("0xdf")](n)&&n[za("0xa9")]&&(n.next[za("0xf1")]===n&&(n[za("0xa9")].previous=null),n[za("0xa9")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xbe")];o++){const n=c(t,e[o]);n&&(n[0][za("0xa9")]=n[1],n[1][za("0xf1")]=n[0],i[za("0xac")](n[0]),x.add(n[1]))}}function c(t,e){if(t[za("0xcf")].id!==e[za("0xcf")].id)return null;const n=s[za("0xd3")](t)(t,e,r[za("0xd3")](t),r.get(e));return n&&s[za("0xd3")](e)(t,e,r[za("0xd3")](t),r[za("0xd3")](e))?n[1][za("0x112")]&&n[1][za("0x112")].length?null:n:null}}[za("0x1")](t){const e=Array[za("0xa1")](t),n=this[za("0x7")]({skipNotAttached:!0}),o=n[za("0x4a")]((e=>!t.has(e))),s=new Map(e[za("0xcd")]((t=>[t,this[za("0x57")][za("0xe4")](t[za("0xee")],t[za("0x52")],"join")]))),r=new Map(n[za("0xcd")]((t=>[t,t[za("0x142")]()])));for(let t=0;t<e[za("0xbe")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0xbe")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0xbe")];i++){const o=n[i];if(o.type!==e[za("0xee")]||o[za("0xcf")].id!==e[za("0xcf")].id||o[za("0x52")]!==e[za("0x52")])continue;const x=s[za("0xd3")](e),a=r[za("0xd3")](e),c=r.get(o),l=e.commentThread&&e[za("0x112")].length,d=o[za("0x112")]&&o[za("0x112")][za("0xbe")];if(!l&&x(c,a))return t[za("0x118")](o,e),r.delete(e),!0;if(!d&&x(a,c))return t._joinSuggestions(e,o),r[za("0x15")](o),!0}return!1}}[za("0x118")](t,e){if(t[za("0x4b")])for(const n of e.getRanges())t[za("0x18")](n);else{const n=e[za("0xd5")]().end;this[za("0x89")](t,this[za("0xcc")][za("0x51")](t[za("0xd5")]()[za("0x88")],n))}e[za("0xc3")]()}}class Va{constructor(t){this._editor=t,this[za("0xcc")]=t[za("0x91")],this[za("0x3b")]=new Map,this[za("0x78")]=new Map,this[za("0x4e")]()}[za("0x71")](t,e,n,o,s,r){return new Zo(this[za("0xcc")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0xe4")](t,e,za("0xf4"))(...n),onDiscard:(...n)=>this[za("0xe4")](t,e,"discard")(...n)})}[za("0xf0")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x3b")].set(s,o)}[za("0xe4")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x3b")][za("0xd3")](o)||this[za("0x78")][za("0xd3")](t+":"+n)}[za("0x4e")](){const t=()=>{},e=t=>{t[za("0x106")](((t,e)=>t[za("0x88")][za("0x20")](e[za("0x88")])?1:-1)),this[za("0xcc")][za("0xbc")]((e=>{for(const n of t){let t;t=n[za("0x2f")].isAtEnd&&n.end[za("0x32")]==n.start[za("0x12e")]?e.createSelection(n[za("0x88")][za("0x12e")],"on"):e[za("0x103")](n),this[za("0xcc")][za("0x141")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0xbc")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xcd")]((t=>(qa(t)&&(t=this[za("0xcc")][za("0x51")](t[za("0x2f")])),t)))[za("0x4a")]((t=>"$graveyard"!==t[za("0x5f")][za("0x4d")]));if(r[za("0xbe")]<1)return;const x=Array[za("0xa1")](this._model[za("0xf8")][za("0x7d")].getRanges()).map((t=>i.LiveRange[za("0x31")](t)));n[za("0x61")](r);for(const t of this[za("0xb4")][za("0xc2")][za("0xc2")]())t[za("0x11")]();s[za("0x70")]({forceDefaultExecution:!0}),this[za("0xb4")][za("0x121")](o,...s);const a=x[za("0x4a")]((t=>"$graveyard"!=t[za("0x5f")].rootName));a.length>0&&n.setSelection(a);for(const t of x)t[za("0x144")]()}))},o=(t,e)=>1==t[za("0xbe")]&&1==e[za("0xbe")]&&t[0][za("0x2f")].isEqual(e[0][za("0x88")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xcc")])?[t,e]:Za(e,t,o,n,this[za("0xcc")])?[e,t]:null;this[za("0x78")][za("0x2c")](za("0xea"),t),this[za("0x78")][za("0x2c")]("insertion:discard",e),this._defaultCallbacks[za("0x2c")]("insertion:join",o),this._defaultCallbacks[za("0x2c")](za("0x12b"),s),this[za("0x78")][za("0x2c")](za("0xc7"),e),this[za("0x78")][za("0x2c")]("deletion:discard",t),this[za("0x78")][za("0x2c")](za("0x117"),o),this[za("0x78")][za("0x2c")](za("0x12c"),s),this[za("0x78")][za("0x2c")](za("0x90"),n),this._defaultCallbacks.set(za("0x9d"),t),this._defaultCallbacks[za("0x2c")]("formatInline:join",o),this[za("0x78")].set(za("0xdd"),t),this[za("0x78")][za("0x2c")](za("0x24"),n),this[za("0x78")][za("0x2c")](za("0x99"),t),this[za("0x78")][za("0x2c")]("formatBlock:join",o),this._defaultCallbacks[za("0x2c")]("formatBlock:chain",t)}}function Ka(t,e,n){for(const o of e.parent[za("0x35")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[za("0x54")](o))return!1;if(t.isObject(o)||t[za("0x12a")](o))return!0}return!1}function qa(t){return t.end[za("0x32")]==t[za("0x88")].nodeAfter&&t.end.isAtStart}function Xa(t,e,n,o){const s=t=>!t.item.is("$textProxy")&&!o[za("0x3d")](t[za("0x83")]),r=t[za("0x88")][za("0xc1")](s),i=t.end[za("0xc1")](s,{direction:"backward"});return!(t[za("0x88")][za("0xa4")](r)&&t.end.isEqual(i)||(r.isBefore(i)?n[za("0x12f")](e,{range:n[za("0x51")](r,i)}):n[za("0x113")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x88")][za("0x12e")];return e&&e.is(za("0xde"))}function Qa(t,e){const n=e[za("0x7b")][za("0x3d")](t)||e[za("0x7b")][za("0x68")](t);return e.createRange(e[za("0xda")](t,"before"),n?e[za("0x6c")](t):e.createPositionAt(t,"end"))}function Za(t,e,n,o,s){if(n.end[za("0xa4")](o[za("0x88")]))return!0;if(t[za("0xee")]!=e.type)return!1;if(!n[za("0x2f")][za("0x129")](o.start))return!1;const r=s[za("0x51")](n.end,o[za("0x88")])[za("0x14")]();for(const t of r)if([za("0xa"),za("0x104")].includes(t[za("0xee")])&&s[za("0x7b")][za("0x12a")](t[za("0x83")]))return!1;return!0}const Ya=["destroy","locale","getRanges","stopListening","bind","canAccept","_discardCommand","execute","view","commands","_acceptCommand","_editor","canDiscard","unbind","get","model","_removePendingAction","isDirty","isEnabled","discardSuggestion","plugins","commentThreadController","acceptSuggestion","_pendingAction","PendingActions","canEditAt","_setPendingAction","listenTo"];var tc,ec;tc=Ya,ec=215,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x18")]=e,this[nc("0x11")]=n,this.commentThreadController=o,this[nc("0x14")]=t,this[nc("0x13")]=t[nc("0x12")][nc("0x17")](nc("0x3")),this._discardCommand=t[nc("0x12")][nc("0x17")](nc("0x0")),this[nc("0x11")].bind(nc("0x1b")).to(this[nc("0x13")],this[nc("0xf")],((t,e)=>t||e)),this[nc("0x11")][nc("0xd")](nc("0xe")).to(this[nc("0x13")],nc("0x1b"),(t=>t&&this[nc("0x14")][nc("0x18")][nc("0x6")](e[nc("0xb")]()))),this[nc("0x11")][nc("0xd")](nc("0x15")).to(this._discardCommand,"isEnabled",(t=>t&&this[nc("0x14")].model[nc("0x6")](e[nc("0xb")]()))),this._pendingAction=null,n.isDirty&&this[nc("0x7")](),this.listenTo(n,nc("0x3"),(()=>this[nc("0x3")]())),this[nc("0x8")](n,nc("0x0"),(()=>this[nc("0x0")]())),this[nc("0x8")](n,"change:isDirty",(()=>{n[nc("0x1a")]?this[nc("0x7")]():this[nc("0x19")]()}))}[nc("0x3")](){this[nc("0x13")][nc("0x10")](this[nc("0x18")].id)}[nc("0x0")](){this[nc("0xf")][nc("0x10")](this[nc("0x18")].id)}[nc("0x9")](){this[nc("0x11")][nc("0x16")]("isEnabled"),this[nc("0x11")][nc("0x16")](nc("0xe")),this[nc("0x11")].unbind(nc("0x15")),this[nc("0xc")](),this[nc("0x2")][nc("0x9")](),this[nc("0x4")]&&this[nc("0x19")]()}[nc("0x7")](){const t=Yo(this[nc("0x14")][nc("0xa")],"PENDING_ACTION_SUGGESTION");this[nc("0x4")]=this[nc("0x14")][nc("0x1")][nc("0x17")](nc("0x5")).add(t)}_removePendingAction(){null!==this._pendingAction&&this[nc("0x14")][nc("0x1")][nc("0x17")](nc("0x5")).remove(this._pendingAction),this[nc("0x4")]=null}}const sc=["CommentView","commentsListView","canDiscard","updateComment","isActive","disableComments","isDirty","removeComment","element","_model","authoredAt","_localUser","_createCommentViews","commentThreadInputView","destroy","focus","bind","length","isReadOnly","cancel","delegate","_createCommentThreadInputView","fire","commentThread","showInput","_config","value","set","descriptionParts","setData","locale","commentInputView","addComment","editorConfig","hasDirtyComment","editor"];var rc,ic;rc=sc,ic=378,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[xc("0x1f")]=null,this[xc("0x9")](xc("0x16"),!1),this[xc("0x9")](xc("0x1c"),e[xc("0x1c")]),this[xc("0x22")](xc("0x1c")).to(e),this[xc("0x9")](xc("0xa"),[]),this.set(xc("0x18"),!1),this[xc("0x9")]("isEnabled",!1),this[xc("0x9")]("canAccept",!1),this[xc("0x9")](xc("0x14"),!1),this[xc("0x1b")]=e,this[xc("0x1d")]=n,this[xc("0x7")]=o,o[xc("0x17")]?this[xc("0x9")]("length",1):this[xc("0x1e")]()}[xc("0x21")](){this[xc("0x1a")][xc("0x21")]()}[xc("0x20")](){this[xc("0x13")]&&this[xc("0x13")].destroy(),this[xc("0x1f")]&&this[xc("0x1f")].destroy(),super[xc("0x20")]()}[xc("0x1e")](){const{CommentsListView:t}=this._config;this[xc("0x13")]=new t(this.locale,this._model[xc("0x5")],Object.assign({CommentView:this[xc("0x7")][xc("0x12")]},this[xc("0x7")])),this[xc("0x13")][xc("0x2")]("removeComment").to(this),this[xc("0x13")][xc("0x2")](xc("0x15")).to(this),this.commentsListView[xc("0x22")](xc("0x16")).to(this),this[xc("0x9")]("length",this[xc("0x13")][xc("0x23")]+1),this.bind(xc("0x23")).to(this.commentsListView,xc("0x23"),(t=>t+1)),this[xc("0x1f")]=this[xc("0x3")](),this.on(xc("0x19"),(()=>this[xc("0x21")]())),this[xc("0x22")]("isDirty").to(this.commentsListView,xc("0x10"),this[xc("0x1f")][xc("0xd")],xc("0x8"),((t,e)=>t||!!e))}[xc("0x3")](){const{CommentThreadInputView:t}=this[xc("0x7")],e=new t(this[xc("0xc")],this._localUser,this[xc("0x7")][xc("0xf")]),n=e[xc("0xd")];return e[xc("0x22")](xc("0x6")).to(this,xc("0x16"),this[xc("0x1b")][xc("0x5")],xc("0x0"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[xc("0x4")](xc("0xe"),e),n[xc("0x11")][xc("0xb")]("")})),n.on(xc("0x1"),(()=>this[xc("0x21")]())),n[xc("0x22")]("disabledSubmit").to(this[xc("0x1b")][xc("0x5")],"isReadOnly"),e}}const cc=["ck-annotation","locale","Accept suggestion","author","userView","push","fire","description","commentsListView","descriptionParts","discardSuggestion","innerText","setTemplate","canAccept","element","ck-suggestion__info-name","getExternalSuggestionNote","map",'" title="',"ck-suggestion","EXTERNAL_AVATAR","set","span","acceptButton","ck-annotation__info-time","ck-suggestion__info","commentThread","extendTemplate","_createButton","formatDateTime","EXTERNAL_IMPORT_WORD_AVATAR","getTemplate","disableComments","ck-suggestion__main","</span>","name","getUserViewNotificationText","ck-annotation__main","createElement","creator","canDiscard","_descriptionElement","EXTERNAL_IMPORT_WORD_SUGGESTION",'"></span>',"querySelector","importWord","EXTERNAL_SUGGESTION","ck-comment__external","ck-annotation__info","isActive","@external",'<span class="ck-suggestion-type">',"isExternal","ck-suggestion__actions","split",".ck-annotation__content-wrapper","innerHTML","ck-annotation__actions","acceptSuggestion","commentThreadInputView","authoredAt","div","ck-suggestion--accept","join","type","check","Discard suggestion","discardButton","title","bind","ck-suggestion__user","editorDestroyed","_model","_config","ck-annotation__content-wrapper","ck-suggestion--disabled-comments","</p>","attributes","ck-suggestion-wrapper--active",'<span class="ck-suggestion-color" style="background-color: ',"bindTemplate","editorReady","source","ck-suggestion--discard","delegate","children"];var lc,dc;lc=cc,dc=187,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(uc("0x31"),""),this[uc("0x36")](uc("0x31")).to(this,uc("0x50"),(t=>t&&t[0]?t[0].type:"")),this[uc("0x36")](uc("0x4e")).to(this,uc("0x50"),this,uc("0x22"),((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e.content,e.color)+uc("0x3d");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x1a")]=null,this[uc("0x8")]=this[uc("0xd")](Yo(e,uc("0x49")),t.icons[uc("0x32")],uc("0x2f"),uc("0x2b"),"sw"),this[uc("0x8")][uc("0x36")]("isEnabled").to(this,uc("0x54")),this.discardButton=this[uc("0xd")](Yo(e,uc("0x33")),t.icons.cancel,uc("0x44"),uc("0x51"),"sw"),this[uc("0x34")][uc("0x36")]("isEnabled").to(this,uc("0x19")),this[uc("0x4b")]=new r.UserView(e,this[uc("0x39")][uc("0x4a")],this.getUserViewNotificationText()),this[uc("0x4b")].extendTemplate({attributes:{class:[uc("0x37"),"ck-annotation__user"]}}),this[uc("0x53")](this[uc("0x10")]())}[uc("0x10")](){const t=this[uc("0x41")],e=[{tag:uc("0x2e"),attributes:{class:[uc("0xa"),uc("0x21")]},children:[{tag:uc("0x7"),children:[{text:this[uc("0x4b")].name}],attributes:{class:[uc("0x0"),"ck-annotation__info-name"]}},{tag:"time",attributes:{datetime:t.to(uc("0x2d")),class:["ck-comment__info-time",uc("0x9")]},children:[{text:t.to(uc("0x2d"),(t=>this._config[uc("0xe")](t)))}]}]},{tag:uc("0x2e"),attributes:{class:[uc("0x26"),uc("0x2a")]},children:[this[uc("0x8")],this[uc("0x34")]]},{tag:"div",attributes:{class:[uc("0x3b")]}}];this[uc("0x39")][uc("0x25")]&&e[uc("0x4c")]({tag:"div",attributes:{class:[uc("0x20")]},children:[{text:this[uc("0x1")]()}]});const n={tag:uc("0x2e"),attributes:{class:["ck-suggestion-wrapper",t.if(uc("0x22"),uc("0x3f")),t.to("type",(t=>"ck-suggestion-"+t)),this[uc("0x3a")][uc("0x11")]&&uc("0x3c")],"data-suggestion-id":this[uc("0x39")].id,"data-thread-id":this._model[uc("0xb")].id,"data-author-id":this[uc("0x39")][uc("0x4a")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[uc("0x4"),uc("0x47")]},children:[this.userView,{tag:uc("0x2e"),attributes:{class:[uc("0x12"),uc("0x16")]},children:e}]}]};return this[uc("0x4f")]&&this.commentThreadInputView&&(n[uc("0x46")].push(this[uc("0x4f")],this.commentThreadInputView),this[uc("0x4f")][uc("0x45")](uc("0x42")).to(this),this.commentsListView[uc("0x45")](uc("0x38")).to(this),this[uc("0x2c")].delegate("editorReady").to(this),this[uc("0x2c")][uc("0x45")](uc("0x38")).to(this)),n}render(){super.render(),this[uc("0x1a")]=this[uc("0x55")][uc("0x1d")](uc("0x28")),this[uc("0x1a")][uc("0x29")]=this[uc("0x4e")],this.on("change:description",((t,e,n)=>{this[uc("0x1a")][uc("0x29")]=n}))}[uc("0xd")](t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[uc("0x6")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0xc")]({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0x4d")](o,this[uc("0x39")].id)})),i}[uc("0x1")](){return uc("0x1e")===this[uc("0x39")][uc("0x3e")][uc("0x23")][uc("0x43")]?Yo(this[uc("0x48")],uc("0x1b")):Yo(this[uc("0x48")],uc("0x1f"))}[uc("0x15")](){return this[uc("0x39")].isExternal?uc("0x1e")===this._model[uc("0x3e")][uc("0x23")][uc("0x43")]?Yo(this.locale,uc("0xf"),this._model[uc("0x18")].name):Yo(this.locale,uc("0x5"),this[uc("0x39")][uc("0x18")][uc("0x14")]):null}}function mc(t,e){let n="";return n+=t[uc("0x27")]("*")[uc("0x2")](((t,e)=>e%2!=0?uc("0x24")+fc(t)+uc("0x13"):fc(t)))[uc("0x30")](""),e&&(n+=uc("0x40")+e.value+uc("0x3")+e[uc("0x35")]+uc("0x1c")),n}function fc(t){const e=document[uc("0x17")](uc("0x7"));return e[uc("0x52")]=t,e[uc("0x29")]}const hc=["_handleSuggestionControllerDelayed","trackChanges","config","reduce","separator","size","execute","getDescriptions","getSuggestion","init","comments.maxCommentsWhenCollapsed","isInContent","_createUIButton","suggestionUnloaded","actionView","discardButton","_destroyController","acceptAllSuggestions","_handleControllerBuffer","createAnnotation","clear","commands","_initializeController","comments.maxCommentCharsWhenCollapsed","buttonView","isEnabled","bind","locale","arrowView","plugins","change:activeAnnotations","commentThread","isOn","add","acceptButton","getMarkers","comments","_updateController","getAllAdjacentSuggestions","mainView","registerAnnotation","trackChanges.SuggestionThreadView","focus","button","CommentsUI","TrackChangesUI","_descriptionFactory","Track changes","Discard all selected suggestions","hasSuggestion","_annotationViews","trackChanges.disableComments","Annotations","view","getFirstRange","Accept all selected suggestions","_viewToController","CommentsRepository","unbind","listenTo","suggestion-","getJoined","switchbutton","previous","activeMarkers","comments.maxThreadTotalWeight","define","lowest","from","requires","keys","model","head","addSourceCollector","type","_disableComments","discardAllSuggestions","get","TrackChangesEditing","editor","createCommentThreadController","toMany","getRanges","change:previous","filter","values","activeAnnotations","discardSelectedSuggestions","value","EditorAnnotations","source","isMultiRange","destroy","_suggestionToController","comments.editorConfig","isDirty","set","Discard all suggestions","descriptionParts","length","has","editing","CommentView","acceptSelectedSuggestions","createAnnotationView","_refreshActiveMarkers","_bindAnnotationToEditors","innerView","delete","push"];var pc,bc;pc=hc,bc=241,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x30")](){return[Wa,r.Users,Ec("0x24"),Ec("0x1f"),"EditorAnnotations"]}static get pluginName(){return Ec("0x18")}constructor(t){super(t),this[Ec("0x48")]=new Map,this[Ec("0x23")]=new Map,this[Ec("0x1d")]=new Map,this[Ec("0x6b")]=new Map;const e=this.editor[Ec("0x5b")];e.define(Ec("0x14"),gc),e[Ec("0x2d")](Ec("0x1e"),!1),this[Ec("0x36")]=e[Ec("0x38")]("trackChanges.disableComments")}[Ec("0x59")](t,e){0===this._handleControllerBuffer[Ec("0x5e")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x6b")]){const n=this[Ec("0x48")][Ec("0x4f")](t);n||e?n&&e&&this[Ec("0x69")](t):this[Ec("0x1")](t)}this.editor[Ec("0x8")][Ec("0x38")](Ec("0x44")).refreshSelectedViews(),this[Ec("0x54")](),this[Ec("0x6b")][Ec("0x6d")]()}),10),this[Ec("0x6b")][Ec("0x4b")](t,e)}[Ec("0x62")](){const t=this[Ec("0x3a")],e=t[Ec("0x8")][Ec("0x38")](Ec("0x39")),n=t[Ec("0x8")].get(Ec("0x1f")),o=t[Ec("0x8")].get(Ec("0x44")),s=t[Ec("0x8")].get("CommentsRepository");t.ui.componentFactory[Ec("0xc")](Ec("0x5a"),(t=>this[Ec("0x65")](t))),o[Ec("0x34")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x2f")](this[Ec("0x48")])){const o=e[Ec("0x11")](),s=[];for(const t of o){if(!t[Ec("0x64")])continue;if(t[Ec("0x46")]){s.push(...t[Ec("0x3d")]());continue}const e=t[Ec("0x21")]();if(s[Ec("0x4e")]>0){const t=s[0][Ec("0x28")](e);if(t){s[0]=t;continue}}s.push(e)}t[Ec("0x58")]([n[Ec("0x20")],s])}return t})),this.listenTo(e,"suggestionLoaded",((t,e)=>{this[Ec("0x26")](e,Ec("0x3e"),((t,n,o,s)=>{e[Ec("0x64")]&&(null==o?(this[Ec("0x10")](s[Ec("0x33")]),this[Ec("0x59")](e,!1)):(this[Ec("0x10")](o[Ec("0x33")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Ec("0x2a")]?this[Ec("0x59")](e,!1):this[Ec("0x10")](e.head)})),this.listenTo(e,Ec("0x66"),((t,e,n)=>{this.stopListening(e,Ec("0x3e")),this._handleControllerBuffer[Ec("0x57")](e);const o=n?n[Ec("0x33")]:e,s=this[Ec("0x48")][Ec("0x38")](o);null!==n&&this[Ec("0x10")](o),null===n&&s&&this[Ec("0x69")](e)})),this[Ec("0x26")](e,"suggestionChanged",((t,e)=>{this[Ec("0x10")](e)})),this[Ec("0x26")](n,Ec("0x9"),(()=>{this[Ec("0x54")]()})),this.listenTo(s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x1c")](n))return;const s=e[Ec("0x61")](n);this._suggestionToController[Ec("0x38")](s)[Ec("0x20")].focus()}),{priority:Ec("0x2e")})}[Ec("0x54")](){const t=this[Ec("0x3a")][Ec("0x8")][Ec("0x38")](Ec("0x1f")),e=this.editor[Ec("0x8")][Ec("0x38")]("TrackChangesEditing"),n=Array[Ec("0x2f")](t[Ec("0x41")],(t=>t[Ec("0x56")])).filter((t=>this._viewToController.has(t))),o=[];for(const t of n){const e=this._viewToController[Ec("0x38")](t)[Ec("0x32")][Ec("0x11")]();o[Ec("0x58")](...e[Ec("0x5c")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0x2b")]=o}[Ec("0x65")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x3a")][Ec("0x0")][Ec("0x38")](Ec("0x5a")),r=Yo(t,Ec("0x1a"));n[Ec("0x3")][Ec("0x4b")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x3")][Ec("0x5")](Ec("0xb")).to(o,Ec("0x43")),n.buttonView.on("execute",(()=>{o.execute(),this[Ec("0x3a")][Ec("0x50")].view[Ec("0x15")]()}));const i=new e.Collection,x=[{type:Ec("0x29"),model:{withText:!0,label:r,commandName:Ec("0x5a")}},{type:Ec("0x5d")},{type:"button",model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:Ec("0x6a")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x22")),commandName:Ec("0x52")}},{type:Ec("0x16"),model:{withText:!0,label:Yo(t,Ec("0x4c")),commandName:Ec("0x37")}},{type:Ec("0x16"),model:{withText:!0,label:Yo(t,Ec("0x1b")),commandName:Ec("0x42")}}];for(const t of x){let e={type:Ec("0x5d")};if(t[Ec("0x32")]){const n=new s.Model(t[Ec("0x32")]),o=this[Ec("0x3a")][Ec("0x0")][Ec("0x38")](n.commandName);n[Ec("0x5")](Ec("0xb"),Ec("0x4")).to(o,Ec("0x43"),Ec("0x4")),e={type:t[Ec("0x35")],model:n}}i[Ec("0xc")](e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t.model)).map((t=>this[Ec("0x3a")][Ec("0x0")][Ec("0x38")](t[Ec("0x32")].commandName))),c=n[Ec("0x3")];return c[Ec("0x67")].unbind(Ec("0x4")),c.arrowView[Ec("0x25")](Ec("0x4")),c[Ec("0x67")][Ec("0x5")](Ec("0x4")).to(o,Ec("0x4")),c[Ec("0x7")].bind(Ec("0x4"))[Ec("0x3c")](a,Ec("0x4"),((...t)=>t.some((t=>t)))),n.on(Ec("0x5f"),(t=>{this[Ec("0x3a")][Ec("0x5f")](t[Ec("0x45")].commandName),this[Ec("0x3a")][Ec("0x50")][Ec("0x20")][Ec("0x15")]()})),n}_initializeController(t){const e=this[Ec("0x3a")],n=e[Ec("0x5b")],o=e[Ec("0x8")][Ec("0x38")]("Annotations"),s=e.plugins[Ec("0x38")](Ec("0x24")),i=e[Ec("0x8")][Ec("0x38")](Ec("0x44")),x=e.plugins.get(r.Users).me,a=n[Ec("0x38")]("trackChanges").SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x38")](Ec("0x17"));let d,u;this._annotationViews.has(t.id)?(u=this[Ec("0x1d")][Ec("0x38")](t.id),d=u[Ec("0x12")]):(d=new a(e.locale,t,x,{disableComments:this[Ec("0x36")],editorConfig:n[Ec("0x38")](Ec("0x49")),maxCommentsWhenCollapsed:n[Ec("0x38")](Ec("0x63")),maxThreadTotalWeight:n.get(Ec("0x2c")),maxCommentCharsWhenCollapsed:n[Ec("0x38")](Ec("0x2")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x38")](Ec("0x6"))),CommentView:n[Ec("0x38")](Ec("0xf"))[Ec("0x51")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0xd")].on("execute",(()=>{e[Ec("0x50")][Ec("0x20")][Ec("0x15")]()})),d[Ec("0x68")].on("execute",(()=>{e.editing.view.focus()})),u=o[Ec("0x53")](this[Ec("0x3a")][Ec("0x6")],d),u[Ec("0x5")](Ec("0x4a")).to(d,Ec("0x4a")),u[Ec("0x5")](Ec("0x4e")).to(d),u.bind(Ec("0x35")).to(d,"type",(t=>Ec("0x27")+t)),this._annotationViews[Ec("0x4b")](t.id,u));const g=s[Ec("0x3b")](t[Ec("0xa")],d),m=new oc(e,t,d,g),f=t[Ec("0x11")]()[Ec("0x3f")]((t=>t[Ec("0x64")]));d[Ec("0x4d")]=e[Ec("0x8")].get(Ec("0x39"))[Ec("0x19")][Ec("0x60")](f),this[Ec("0x48")][Ec("0x4b")](t,m),this[Ec("0x23")][Ec("0x4b")](d,m);const h=o[Ec("0x6c")]({view:u,target:()=>{const n=[],o=t[Ec("0x11")]().filter((t=>t[Ec("0x64")]));for(const t of o)n[Ec("0x58")](...t[Ec("0xe")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Ec("0x27")+m[Ec("0x20")][Ec("0x35")]});s[Ec("0x55")](d,h),o[Ec("0xc")](h),i[Ec("0x13")](h)}[Ec("0x69")](t){const e=this[Ec("0x3a")][Ec("0x8")][Ec("0x38")](Ec("0x1f")),n=this[Ec("0x48")][Ec("0x38")](t),o=n[Ec("0x20")],s=e.getByInnerView(o);s&&e.remove(s),this[Ec("0x48")][Ec("0x57")](t),this[Ec("0x23")][Ec("0x57")](o),n[Ec("0x47")]()}[Ec("0x10")](t){if(!t.isInContent||!this[Ec("0x48")][Ec("0x4f")](t))return;const e=this.editor[Ec("0x8")][Ec("0x38")](Ec("0x39")),n=this[Ec("0x48")][Ec("0x38")](t),o=t.getAllAdjacentSuggestions();n[Ec("0x20")][Ec("0x4d")]=e._descriptionFactory[Ec("0x60")](o)}[Ec("0x47")](){for(const t of this[Ec("0x48")][Ec("0x31")]())this[Ec("0x69")](t);for(const t of this._annotationViews[Ec("0x40")]())t[Ec("0x12")][Ec("0x47")]();super[Ec("0x47")]()}}var Tc,Cc,yc=["plugins","addSuggestion","editor","pluginName","get","adapter","requires","TrackChanges","getSuggestion","getSuggestions"];Tc=yc,Cc=288,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x8")](){return[Wa,_c,"Comments"]}static get[kc("0x5")](){return kc("0x9")}set[kc("0x7")](t){this.editor[kc("0x2")][kc("0x6")](Wa)[kc("0x7")]=t}get[kc("0x7")](){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa)[kc("0x7")]}[kc("0x3")](t){return this[kc("0x4")][kc("0x2")].get(Wa).addSuggestionData(t)}[kc("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor.plugins[kc("0x6")](Wa).getSuggestions({skipNotAttached:t,toJSON:e})}[kc("0x0")](t){return this[kc("0x4")][kc("0x2")][kc("0x6")](Wa)[kc("0x0")](t)}}const vc=["getSuggestions","model","TrackChangesEditing","editor","name","end","createDocumentFragment","reduce","execute","editorCreator","track-changes-data-invalid-editor-creator","set","function","useAnonymousUser","init","addSuggestionData","get","getDataWithDiscardedSuggestions","requires","div","plugins","addUser","Users","appendChild","getRootsAttributes","_adapter","trackChangesData.editorCreator","trackChangesData","map","acceptAllSuggestions","config","discardAllSuggestions","pluginName","Pagination","getRootNames","document","CommentsRepository","data","getDataWithAcceptedSuggestions","create","constructor","createElement","define","TrackChangesDataGetter","rootsAttributes"];var Rc,Sc;Rc=vc,Sc=446,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x25")];class Nc extends t.Plugin{static get[Ic("0x16")](){return[Wa]}static get pluginName(){return"TrackChangesData"}[Ic("0x12")](){const t=this.editor;if(t[Ic("0x22")][Ic("0x1")](Ic("0x1e"),(e=>{const n=t[Ic("0x5")][Ic("0x27")][Ic("0x26")]()[Ic("0xb")](((t,e)=>(t[e]="",t)),{});return t[Ic("0x2c")][Ic("0x2b")](n,e)})),Ic("0x10")!=typeof t.config.get("trackChangesData")[Ic("0xd")])throw new e.CKEditorError(Ic("0xe"))}[Ic("0x2a")](t){return Oc(this[Ic("0x7")],!0,t)}[Ic("0x15")](t){return Oc(this[Ic("0x7")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0x24")](){return Ic("0x2")}constructor(t){super(t),this.result=Ic("0x9")}init(){this[Ic("0x7")].plugins.get(Ic("0x28"))[Ic("0x1d")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x7")][Ic("0x18")][Ic("0x14")]("TrackChangesEditing")[Ic("0x1d")]=null}}function wc(t){return void 0!==t[Ic("0x1c")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x18")].push(Wa,Mc),o[Ic("0x3")]=wc(t)?t[Ic("0x1c")]():void 0;const s=document[Ic("0xa")](),i=t[Ic("0x22")][Ic("0x14")](Ic("0x1f")).editorCreator,x=await i(o,(()=>function(t){const e=document[Ic("0x0")](Ic("0x17"));return t[Ic("0x1b")](e),e}(s)));!function(t,e){const n=t[Ic("0x5")][Ic("0x27")].getRootNames().reduce(((e,n)=>(e[n]=t[Ic("0x29")][Ic("0x14")]({rootName:n}),e)),{}),o=t[Ic("0x18")][Ic("0x14")]("Users").users[Ic("0x20")]((t=>({id:t.id,name:t[Ic("0x8")]}))),s=t[Ic("0x18")][Ic("0x14")](Ic("0x6"))[Ic("0x4")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x18")][Ic("0x14")](Ic("0x1a")),i=e[Ic("0x18")][Ic("0x14")](Ic("0x6"));for(const t of o)r.getUser(t.id)||r[Ic("0x19")](t);r.me||r[Ic("0x11")]();for(const t of s)i[Ic("0x13")](t);e[Ic("0x29")][Ic("0xf")](n)}(t,x),x[Ic("0xc")](Ic(e?"0x21":"0x23"));const a=wc(x)?x.getFullData(n):x[Ic("0x29")].get(n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();