@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230729.0 → 0.0.0-nightly-20230730.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=["forceDisabled","affectsData","has","TrackChangesCommand","refresh","isEnabled","_disableUnsupportedCommands","_enableCommands","_enabledCommands","editor","_isEnabledBasedOnSelection","value","commands","clearForceDisabled"];var c,l;c=a,l=470,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("0x0")]=e,this[d("0x3")]=!1,this.refresh(),this[d("0x2")]=!1}[d("0xa")](){this[d("0xb")]=!0}execute(){this[d("0x3")]=!this[d("0x3")],this[d("0x3")]?this[d("0xc")]():this[d("0xd")]()}[d("0xc")](){for(const t of this[d("0x1")][d("0x4")][d("0x4")]())t[d("0x7")]&&!this[d("0x0")].has(t)&&t[d("0x6")](d("0x9"))}[d("0xd")](){for(const t of this[d("0x1")][d("0x4")][d("0x4")]())t[d("0x7")]&&!this[d("0x0")][d("0x8")](t)&&t[d("0x5")](d("0x9"))}}const g=["acceptSuggestion","plugins","refresh","_isEnabledBasedOnSelection","model","track-changes-accept-suggestion-not-found","get","editor","execute","_suggestions","isEnabled"];var m,f;m=g,f=292,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[h("0x3")]=e,this[h("0x7")](),this[h("0x8")]=!1}refresh(){this[h("0x4")]=!0}[h("0x2")](t){const n=this._suggestions[h("0x0")](t);if(!n)throw new e.CKEditorError(h("0xa"),this);const o=n.getRanges();this[h("0x1")][h("0x9")].canEditAt(o)&&this[h("0x1")][h("0x6")][h("0x0")]("TrackChangesEditing")[h("0x5")](n)}}const b=["TrackChangesEditing","get","getRanges","editor","_isEnabledBasedOnSelection","plugins","isEnabled","discardSuggestion","refresh","model","execute","track-changes-discard-suggestion-not-found","_suggestions"];var E,_;E=b,_=278,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[T("0x7")]=e,this[T("0x3")](),this[T("0xc")]=!1}[T("0x3")](){this[T("0x1")]=!0}[T("0x5")](t){const n=this[T("0x7")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n[T("0xa")]();this[T("0xb")][T("0x4")].canEditAt(o)&&this[T("0xb")][T("0x0")].get(T("0x8"))[T("0x2")](n)}}const y=["from","end","sort","content","deletion","isIntersecting","color","start","replace","map","createRange","createPositionAfter","isCollapsed","schema","createPositionAt","length","next","createPositionBefore","execute","type","isTouching","getRange","isInContent"," [color ","add"];var k,A;k=y,A=258,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x13")](((t,e)=>"deletion"==t[v("0xb")]&&v("0x15")!=e[v("0xb")]?-1:v("0x15")!=t.type&&v("0x15")==e[v("0xb")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x5")];for(;o<t[v("0x7")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,x)||(s.push(e[v("0x2")](n,r.isObject(i)?e[v("0x3")](i):e[v("0x6")](i,v("0x12")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x9")](n);return o[v("0xc")](s)}function L(t,e,n){for(;n[v("0x7")];){const o=n.splice(0,100);t.change((()=>{for(const t of o)t[v("0xe")]&&e[v("0xa")](t.id)}))}}const N=["canEditAt","model","isEnabled","_command","some","isInContent","editor","_suggestions","from","refresh"];var M,w;M=N,w=139,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[O("0x4")]=e,this._suggestions=n,this.refresh(),this._isEnabledBasedOnSelection=!1}[O("0x0")](){const t=Array[O("0x9")](this[O("0x8")].values())[O("0x5")]((t=>t[O("0x6")]));this[O("0x3")]=this[O("0x4")][O("0x3")]&&t}execute(){const t=R(Array[O("0x9")](this[O("0x8")].values()));for(const e of t){const t=e.getRanges();if(!this[O("0x7")][O("0x2")][O("0x1")](t))return}L(this[O("0x7")][O("0x2")],this[O("0x4")],t)}}const P=["model","canEditAt","isEnabled","_suggestions","_selectedSuggestions","from","_command","getRanges","selection","_isEnabledBasedOnSelection","values","document","execute","refresh","editor"];var D,B;D=P,B=262,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[j("0xe")]=e,this[j("0xb")]=n,this[j("0xc")]=new Set,this[j("0x6")](),this[j("0x2")]=!1}[j("0x6")](){const t=this[j("0x7")][j("0x8")][j("0x4")][j("0x1")],e=Array[j("0xd")](this._suggestions[j("0x3")]());this[j("0xc")]=function(t,e){const n=Array[v("0x11")](t.getRanges()),o=new Set;for(const s of e)if(s[v("0xe")])for(const e of n)for(const n of s.getMarkers()){const r=n[v("0xd")]();(e[v("0x16")](r)||t[v("0x4")]&&!s.isMultiRange&&s[v("0x8")]&&r[v("0x12")][v("0xc")](e[v("0x18")]))&&o[v("0x10")](s)}return o}(t,e),this[j("0xa")]=this[j("0xe")][j("0xa")]&&!!this[j("0xc")].size}[j("0x5")](){const t=R(Array.from(this._selectedSuggestions));for(const e of t){const t=e[j("0x0")]();if(!this[j("0x7")][j("0x8")][j("0x9")](t))return}L(this[j("0x7")][j("0x8")],this[j("0xe")],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 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 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 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 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 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 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]",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 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=["attributes","previous","getAllAdjacentSuggestions","isMultiRange","getMarkers","subType","clear","getFirstMarker","createdAt","author","isIntersecting","_markerNames","markers","data","map","_onDiscard","accept","head","decorate","getFirstRange","hasComments","split","isExternal","length","addRange","onAttributesChange","onAccept","removeAttribute","removeMarkers","add","reduce","getRanges","_onAccept","commentThread","getMarkerNames","isIntersectingWithRange","setAttribute","creator","removeMarker","filter","addMarker","start","end","_onAttributesChange","@external","size","getRange","_model","type","change","getItems","addMarkerName","nodeAfter","set","toJSON","delete","next","get","push","from"];var $o,Jo;$o=Xo,Jo=147,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[Qo("0x15")]=e[Qo("0x15")],this[Qo("0x26")]=e[Qo("0x26")]||null,this[Qo("0x2a")]=e[Qo("0x2a")],this[Qo("0xa")]=e.creator||e.author,this[Qo("0x37")]=Boolean(e[Qo("0x21")]&&e[Qo("0x21")][Qo("0x11")]),this[Qo("0x2e")]=null,this[Qo("0x14")]=t,this._onAccept=e[Qo("0x3b")],this._onDiscard=e.onDiscard,this[Qo("0x10")]=e[Qo("0x3a")],this[Qo("0x2c")]=new Set,this[Qo("0x29")]=null,this[Qo("0x1a")]("authoredAt",null),this[Qo("0x1a")](Qo("0x21"),e[Qo("0x21")]||{}),this[Qo("0x1a")](Qo("0x22"),null),this.set(Qo("0x1d"),null),this[Qo("0x1a")]("commentThread",null),this[Qo("0x1a")]("_saved",!1),this[Qo("0x33")]("accept"),this[Qo("0x33")]("discard")}get[Qo("0x32")](){let t=this;for(;t[Qo("0x22")];)t=t[Qo("0x22")];return t}get[Qo("0x35")](){return!!this[Qo("0x6")]&&this.commentThread[Qo("0x38")]>0}get[Qo("0x24")](){return 0!=this[Qo("0x2c")][Qo("0x12")]&&6==Array[Qo("0x20")](this[Qo("0x2c")])[0][Qo("0x36")](":")[Qo("0x38")]}get isInContent(){return null!==this.getFirstMarker()}[Qo("0x18")](t){this[Qo("0x2c")][Qo("0x2")](t)}[Qo("0x7")](){return Array.from(this._markerNames)}[Qo("0x25")](){return this[Qo("0x7")]()[Qo("0x2f")]((t=>this[Qo("0x14")][Qo("0x2d")][Qo("0x1e")](t)))[Qo("0xc")]((t=>t))}getFirstMarker(){return this[Qo("0x25")]()[0]||null}removeMarkers(){this[Qo("0x14")][Qo("0x16")]((t=>{for(const e of this.getMarkers())t.removeMarker(e)})),this[Qo("0x2c")][Qo("0x27")]()}[Qo("0xb")](t){this[Qo("0x14")][Qo("0x16")]((e=>{e[Qo("0xb")](t)})),this._markerNames[Qo("0x1c")](t)}[Qo("0x39")](t){const e="suggestion:"+this[Qo("0x15")]+":"+this.subType+":"+this.id+":"+this[Qo("0xa")].id+":"+Zo.getMultiRangeId();this[Qo("0x18")](e),this[Qo("0x14")][Qo("0x16")]((n=>{n[Qo("0xd")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x8")](t){for(const e of this.getRanges())if(e[Qo("0x2b")](t))return!0;return!1}getRanges(){return this[Qo("0x25")]()[Qo("0x2f")]((t=>t.getRange()))}[Qo("0x17")](){return this.getRanges()[Qo("0x3")](((t,e)=>[...t,...e[Qo("0x17")]()]),[])}[Qo("0x34")](){var t;return(null===(t=this[Qo("0x28")]())||void 0===t?void 0:t[Qo("0x13")]())||null}getContainedElement(){const t=this[Qo("0x4")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0xe")][Qo("0x19")],o=e[Qo("0xf")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x31")](){this[Qo("0x5")](this[Qo("0x4")](),this[Qo("0x2e")],this[Qo("0x21")]),this[Qo("0x1")]()}discard(){this[Qo("0x30")](this[Qo("0x4")](),this[Qo("0x2e")],this[Qo("0x21")]),this[Qo("0x1")]()}[Qo("0x23")](){const t=[];let e=this[Qo("0x32")];for(;e;)t[Qo("0x1f")](e),e=e[Qo("0x1d")];return t}[Qo("0x9")](t,e){const n=eo(this[Qo("0x21")]);_o(n,t,e),Go(n,this[Qo("0x21")])||(this.attributes=n,this[Qo("0x10")](n))}[Qo("0x0")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x21")])||(this[Qo("0x21")]=e,this[Qo("0x10")](this[Qo("0x21")]))}[Qo("0x1b")](){return{id:this.id,type:this[Qo("0x26")]?this[Qo("0x15")]+":"+this[Qo("0x26")]:this.type,authorId:this[Qo("0xa")].id,createdAt:this[Qo("0x29")],hasComments:this[Qo("0x35")],data:this[Qo("0x2e")],attributes:this[Qo("0x21")]}}static getMultiRangeId(){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=["text","Container","getFirstRange","*Insert:* %0","push","start","length","$1 $2","data","addObject","label","function","replace","_itemLabels","$textProxy","_itemLabelsCallbacks","$text","ELEMENT_SPACE","normal","isInContent","isEqual","quantity","matchingCallback","addEmptyContainer","*Remove:* %0","insertion","getItemLabel","add","_addDescriptionItems","Object","softBreak","name","end","skip","_schema","_customCallbacks","get","_resolveDescriptionItems","_locale","getDescriptions","element","EmptyContainer","deletion","remove","type","removeObject","REPLACE_TEXT","set","removeEmptyContainer","item","*Merge:* %0","isEmpty","nextSibling","isObject","checkChild","indexOf","previousSibling","removeContainer","elementEnd"];var es,ns;es=ts,ns=151,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("0x2")]=[],this._itemLabels=new Map,this[os("0x29")]=[],this[os("0x1")]=t,this[os("0x5")]=e}[os("0x6")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x2d")])continue;let s=!1;for(const t of this[os("0x2")]){const n=t(o);if(n){os("0xb")in n&&e[os("0x1e")](n),s=!0;break}}if(!s){this[os("0x36")](e,o);const s=t[n+1];if(s&&!o[os("0x1c")]()[os("0x3a")][os("0x2e")](s.getFirstRange()[os("0x1f")])){const t=e[e[os("0x20")]-1],n="insertion"==o[os("0xb")]?os("0x35"):os("0xa");t&&"text"==t[os("0xb")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this._customCallbacks.push(t)}registerElementLabel(t,n,o=e.priorities[os("0x2c")]){os("0x25")==typeof t?(0,e.insertToPriorityArray)(this[os("0x29")],{matchingCallback:t,label:n,priority:o}):this[os("0x27")][os("0xe")](t,n)}[os("0x34")](t,e=1){let n;for(const e of this[os("0x29")])if(e[os("0x30")](t)){n=e[os("0x24")];break}return n||(n=this._itemLabels[os("0x3")](t[os("0x39")])),n?n(e):1!==e?e+" "+t.name+"s":""+t.name}[os("0x36")](t,e){const n=e[os("0x1c")]().getWalker(),o=os("0x33")==e[os("0xb")]?os("0x35"):os("0xa");for(const e of n){const s=e[os("0x10")],r=t[t.length-1];if(s.is(os("0x28")))r&&r[os("0xb")][os("0x16")](os("0x1b"))>-1&&t.pop(),r&&"text"==r[os("0xb")]?r[o]+=s[os("0x22")]:t[os("0x1e")]({type:"text",add:"add"==o?s.data:"",remove:"remove"==o?s.data:""});else if(this._schema.isObject(s)){const i=s;if(r&&r[os("0xb")][os("0x16")](os("0x1b"))>-1&&t.pop(),os("0x19")==e[os("0xb")])continue;r&&r[os("0xb")]==o+"Object"&&r[os("0x7")].name==i[os("0x39")]?r[os("0x2f")]++:t[os("0x1e")]({type:o+os("0x37"),element:i,quantity:1}),n[os("0x0")]((t=>!("elementEnd"==t[os("0xb")]&&t[os("0x10")]==s)))}else if(this[os("0x1")][os("0x15")](s,os("0x2a"))||s.is("element",os("0x38"))){const n=s;if(os("0x35")==o&&"elementStart"==e[os("0xb")]||"remove"==o&&os("0x19")==e[os("0xb")])continue;if(r&&-1==r.type[os("0x16")](os("0x1b"))){os("0x1a")==r[os("0xb")]&&(r[o]+="\n");continue}let i;if(i="add"==o?n[os("0x13")]&&!this[os("0x1")].isObject(n.nextSibling)?n[os("0x13")]:null:n[os("0x17")]&&!this[os("0x1")][os("0x14")](n[os("0x17")])?n[os("0x17")]:null,n[os("0x12")]||i&&i[os("0x12")]){const e=i&&i[os("0x12")]?i:n;r&&r.type==o+os("0x8")&&r.element[os("0x39")]==e[os("0x39")]?r[os("0x2f")]++:t[os("0x1e")]({type:o+os("0x8"),element:e,quantity:1})}else t[os("0x1e")]({type:o+os("0x1b"),element:n})}}}[os("0x4")](t){const e=this[os("0x5")],n=[];for(const o of t){switch(o[os("0xb")]){case os("0x1a"):if(o[os("0x35")]=o[os("0x35")][os("0x26")](/(\S)\u000A+(\S)/g,os("0x21"))[os("0x26")](/\u000A/g,""),o[os("0xa")]=o[os("0xa")][os("0x26")](/(\S)\u000A+(\S)/g,os("0x21"))[os("0x26")](/\u000A/g,""),""!=o[os("0x35")]&&""!=o[os("0xa")]){n[os("0x1e")]({type:os("0x26"),content:Yo(e,os("0xd"),['"'+o[os("0xa")]+'"','"'+o[os("0x35")]+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[os("0x1e")]({type:os("0x33"),content:Yo(e,os("0x1d"),Yo(e,os("0x2b"),o[os("0x35")].length))});continue}if(null!=o[os("0xa")].match(/^ +$/)){n[os("0x1e")]({type:os("0x9"),content:Yo(e,os("0x32"),Yo(e,os("0x2b"),o[os("0xa")][os("0x20")]))});continue}if(""!=o[os("0x35")]){n[os("0x1e")]({type:os("0x33"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x35")]+'"')});continue}n.push({type:os("0x9"),content:Yo(e,os("0x32"),'"'+o.remove+'"')});continue;case os("0x31"):case os("0x23"):n[os("0x1e")]({type:"insertion",content:Yo(e,"*Insert:* %0",this[os("0x34")](o[os("0x7")],o.quantity))});continue;case os("0xf"):case os("0xc"):n[os("0x1e")]({type:os("0x9"),content:Yo(e,os("0x32"),this[os("0x34")](o[os("0x7")],o[os("0x2f")]))});continue;case"addContainer":n[os("0x1e")]({type:"insertion",content:Yo(e,"*Split:* %0",this.getItemLabel(o[os("0x7")],o[os("0x2f")]))});continue;case os("0x18"):n[os("0x1e")]({type:"deletion",content:Yo(e,os("0x11"),this[os("0x34")](o[os("0x7")],o.quantity))});continue}n[os("0x1e")](o)}return n}}const rs=["*Format:* %0","registerDescriptionCallback","_descriptionFactory","AlignmentEditing","value","has","model","right","plugins","contentLanguageDirection","document","from","locale","justify","change","getSelectedBlocks","alignment","FORMAT_ALIGN_TO_CENTER","markBlockFormat","left","schema","editor","getAttribute","FORMAT_ALIGN_TO_LEFT","commandParams","filter","get","afterInit","format"];var is,xs;is=rs,xs=314,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x3")](){const t=this.editor,e=t.locale;if(!t[as("0xd")][as("0xa")](as("0x8")))return;const n=t.plugins[as("0x2")]("TrackChangesEditing");n.enableCommand("alignment",((e,o={})=>{let s=o.value;o[as("0x9")]||(s="ltr"===t[as("0x11")][as("0xe")]?as("0x18"):as("0xc"));const r=Array[as("0x10")](this[as("0x1a")][as("0xb")][as("0xf")].selection[as("0x14")]())[as("0x1")]((t=>function(t,e,n){const o=t[as("0x1b")](as("0x15"))||null;return e.checkAttribute(t,as("0x15"))&&n!=o}(t,this[as("0x1a")][as("0xb")][as("0x19")],s)));t[as("0xb")][as("0x13")]((()=>{for(const t of r)n[as("0x17")](t,{commandName:as("0x15"),commandParams:[{value:s}]})}))})),n[as("0x7")][as("0x6")]((t=>{const{data:n}=t;if(n&&as("0x15")==n.commandName){const t=n[as("0x0")][0][as("0x9")];return{type:as("0x4"),content:Yo(e,as("0x5"),function(t){switch(t){case"left":return Yo(e,as("0x1c"));case as("0xc"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case"center":return Yo(e,as("0x16"));case as("0x12"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["createRangeOn","previousPosition","addHighlight","writer","span","isBlock","listIndent","schema","nextSibling","ck-suggestion-marker--active","listItem","getItems","getWalker","insert","getCustomProperty","isLimit","toViewElement","model","createUIElement","consumable","hasAttribute","parent","ck-suggestion-marker-","getAttribute","push","get","TrackChangesEditing","start","activeMarkers","elementEnd","isAtEnd","isContent","markerRange","type","includes","markerName","addClass","bindElementToMarker","toViewPosition","mapper","element"];var ds,us;ds=ls,us=159,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("0x10")]())s[gs("0x19")](t)&&o[gs("0x1d")](n[gs("0x5")](s));return o}function fs(t){const e=[];if(t.is(gs("0x4"),gs("0xf"))){let n=t[gs("0xd")];for(;n&&n.is(gs("0x4"),gs("0xf"))&&n[gs("0x1c")](gs("0xb"))>0;)e[gs("0x1d")](n),n=n[gs("0xd")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x1e")](gs("0x1f"));return(s,r,i)=>{if(!i[gs("0x18")].test(r[gs("0x25")],s.name))return;const x=r[gs("0x25")][gs("0x11")](),a=r[gs("0x25")][gs("0x20")],c=t[gs("0x16")][gs("0xc")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c[gs("0x24")](e);const n=i[gs("0x3")][gs("0x15")](e);if(n&&n[gs("0x13")](gs("0x7")))return;gs("0x22")==t[gs("0x26")]&&c[gs("0xa")](e)&&!c[gs("0x14")](e)&&(e[gs("0xd")]||a[gs("0x23")]?l&&l[gs("0x1a")]==e||(l=e,m(t[gs("0x6")]),g=!0):d=d||t[gs("0x6")])}function m(t){const s=i.writer[gs("0x17")](gs("0x9"),{class:gs("0x1b")+e}),x=i[gs("0x3")][gs("0x2")](t);n&&o[gs("0x21")][gs("0x27")](r[gs("0x28")])&&i[gs("0x8")][gs("0x0")](gs("0xe"),s),i.writer[gs("0x12")](x,s),i[gs("0x3")][gs("0x1")](s,r[gs("0x28")])}u||g||!d||m(d)}}const ps=["editor","subscript","code","*Format:* %0","underline","format","CodeEditing","registerDescriptionCallback","_descriptionFactory","commandParams","enableCommand","BoldEditing","FORMAT_SUBSCRIPT","FORMAT_ITALIC","commands","UnderlineEditing","get","afterInit","FORMAT_CODE","document","forceValue","FORMAT_UNDERLINE","value","has","superscript","locale","model","bold","FORMAT_SUPERSCRIPT","change","isCollapsed","selection"];var bs,Es;bs=ps,Es=394,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x1"),"ItalicEditing",_s("0x5"),_s("0x1c"),"StrikethroughEditing","SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{[_s("0x7")](){const t=this[_s("0x16")],e=t[_s("0x10")],n=t.plugins[_s("0x6")]("TrackChangesEditing"),o=t[_s("0xf")];for(const o of Ts){if(!t.plugins[_s("0xd")](o))continue;const s=o.slice(0,-7).toLowerCase(),r=t[_s("0x4")][_s("0x6")](s);n[_s("0x0")](s,((t,o={})=>{const i=e[_s("0x9")][_s("0x15")];if(i[_s("0x14")])return void t(o);const x=void 0!==o.forceValue?o[_s("0xa")]:!r[_s("0xc")];e[_s("0x13")]((()=>{const t=Array.from(i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x1e")][_s("0x1d")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x1f")][0][_s("0xa")]?{type:"format",content:Yo(o,_s("0x19"),e)}:{type:_s("0x1b"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x11"),Yo(o,"FORMAT_BOLD")),s("italic",Yo(o,_s("0x3"))),s(_s("0x1a"),Yo(o,_s("0xb"))),s(_s("0x18"),Yo(o,_s("0x8"))),s("strikethrough",Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x17"),Yo(o,_s("0x2"))),s(_s("0xe"),Yo(o,_s("0x12")))}}const ys=["value","has","from","commands","document","getSelectedBlocks","filter","selection","afterInit","checkChild","locale","change","forceValue","schema","_descriptionFactory","ELEMENT_BLOCK_QUOTE","editor","plugins","format","commandParams","BlockQuoteEditing","*Remove format:* %0","markBlockFormat","blockQuote","parent","registerDescriptionCallback","model"];var ks,As;ks=ys,As=311,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x15")](){const t=this[vs("0x2")],e=t[vs("0x17")];if(!t[vs("0x3")][vs("0xe")](vs("0x6")))return;const n=t[vs("0x3")].get("TrackChangesEditing"),o=this[vs("0x2")][vs("0x10")].get(vs("0x9"));n.enableCommand(vs("0x9"),((e,s={})=>{const r=this[vs("0x2")].model[vs("0x11")][vs("0x14")],i=s&&void 0!==s[vs("0x19")]?s.forceValue:!o[vs("0xd")];let x=[];if(i){const e=Array[vs("0xf")](r.getSelectedBlocks())[vs("0x13")]((t=>Ss(t)||function(t,e){const n=e[vs("0x16")](t[vs("0xa")],vs("0x9")),o=e.checkChild(["$root",vs("0x9")],t);return n&&o}(t,this[vs("0x2")][vs("0xc")][vs("0x1a")])));x=S(e,t.model)}else{const e=Array[vs("0xf")](r[vs("0x12")]())[vs("0x13")]((t=>Ss(t)));x=S(e,t[vs("0xc")])}t.model[vs("0x18")]((()=>{for(const t of x)n[vs("0x8")](t,{commandName:vs("0x9"),commandParams:[{forceValue:i}]})}))})),n[vs("0x0")][vs("0xb")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n.commandName){const t=Yo(e,vs("0x1"));return n[vs("0x5")][0][vs("0x19")]?{type:vs("0x4"),content:Yo(e,"*Format:* %0",t)}:{type:vs("0x4"),content:Yo(e,vs("0x7"),t)}}}))}}function Ss(t){return"blockQuote"==t.parent.name}const Is=["editor","TrackChangesEditing","ckbox","enableCommand","afterInit","plugins","get"];var Ls,Ns;Ls=Is,Ns=225,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x3")](){const t=this[Ms("0x6")];t.commands[Ms("0x5")](Ms("0x1"))&&t[Ms("0x4")].get(Ms("0x0"))[Ms("0x2")](Ms("0x1"))}}const Os=["name","config","afterInit","commands","editor","indentCodeBlock","change","get","language","enableCommand","registerDescriptionCallback","formatBlock","CodeBlock","format","forceValue","TrackChangesEditing","markBlockFormat","label","locale","_descriptionFactory","rootElement","getSelectedBlocks","model","filter","value","*Format:* %0","blockName","codeBlock","*Remove format:* %0","plugins","isLimit","has","ELEMENT_CODE_BLOCK","find","parent","from","commandName","schema","outdentCodeBlock","commandParams"];var Fs,Ps;Fs=Os,Ps=400,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x2")](){const t=this[Ds("0x4")];if(!t.plugins[Ds("0x1f")](Ds("0xc")))return;const e=t[Ds("0x1d")][Ds("0x7")](Ds("0xf")),n=t[Ds("0x12")],o=t[Ds("0x1")].get("codeBlock").languages,s=t[Ds("0x3")][Ds("0x7")](Ds("0x1b"));e[Ds("0x9")](Ds("0x5")),e[Ds("0x9")](Ds("0x26")),e[Ds("0x9")](Ds("0x1b"),((n,r={})=>{const i=t[Ds("0x16")],x=t[Ds("0x16")].document.selection,a=r&&void 0!==r[Ds("0xe")]?r[Ds("0xe")]:!s[Ds("0x18")];let c;r[Ds("0x8")]||(r[Ds("0x8")]=o[0][Ds("0x8")]),c=a?Array[Ds("0x23")](x[Ds("0x15")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x25")],!e.is(Ds("0x14"))&&!n[Ds("0x1e")](e)&&n.checkChild(e[Ds("0x22")],"codeBlock"));var e,n})):Array[Ds("0x23")](x.getSelectedBlocks())[Ds("0x17")]((t=>js(t)));const l=S(c,i);i[Ds("0x6")]((()=>{for(const t of l)e[Ds("0x10")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x1a")})}))})),e[Ds("0x13")].registerElementLabel(Ds("0x1b"),(t=>Yo(n,Ds("0x20"),t))),e[Ds("0x13")][Ds("0xa")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0xb")==s&&r&&Ds("0x1b")==r[Ds("0x24")]){const t=r[Ds("0x27")][0][Ds("0x8")],s=e(o[Ds("0x21")]((e=>e[Ds("0x8")]===t))[Ds("0x11")]);return r[Ds("0x27")][0][Ds("0xe")]?{type:Ds("0xd"),content:Yo(n,Ds("0x19"),Yo(n,Ds("0x20"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Ds("0x1c"),Yo(n,Ds("0x20"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x0")]}const Us=["plugins","editor","get","afterInit","TrackChangesEditing","enableCommand","CommentsEditing","addCommentThread"];var Gs,Hs;Gs=Us,Hs=318,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Ws=function(t,e){return Us[t-=0]};class zs extends t.Plugin{[Ws("0x5")](){const t=this[Ws("0x3")];t.plugins.has(Ws("0x0"))&&t[Ws("0x2")][Ws("0x4")](Ws("0x6"))[Ws("0x7")](Ws("0x1"))}}var Vs=n(181);const Ks=["root","requires","forward","uiElement","get","editor","high","options","buffer","delete","merge","removeMarker:suggestion:deletion","unit","init","start","enqueueChange","deleteForward","enableCommand","remove","modifySelection","plugins","selection","unbindElementFromMarkerName","document","showSuggestionHighlights","downcastDispatcher","markerNameToElements","createSelection","isCollapsed","detach","commands","markerName","end","rootName","writer","lock","bind","addMarker:suggestion:deletion","setSelection","createRange","model","editing","mapper"];var qs,Xs;qs=Ks,Xs=438,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[$s("0x24")](){return[Vs.Delete]}[$s("0x5")](){const t=this[$s("0x28")],e=t[$s("0xc")][$s("0x27")]("TrackChangesEditing");e[$s("0x9")]($s("0x1"));const n=t[$s("0x16")].get("deleteForward");e.enableCommand($s("0x8"),((e,o={})=>{const s=t[$s("0x20")][$s("0x13")](t[$s("0x20")][$s("0xf")][$s("0xd")]);s[$s("0x14")]&&t[$s("0x20")][$s("0xb")](s,{direction:$s("0x25"),unit:o[$s("0x4")]});const r=s.getFirstRange(),x=i.LiveRange.fromRange(r);let a;e(o),a="$graveyard"==x[$s("0x23")][$s("0x19")]?t.model[$s("0x1f")](r[$s("0x6")]):t[$s("0x20")].createRange(x.start,x[$s("0x18")]),x[$s("0x15")](),t[$s("0x20")][$s("0x7")](n[$s("0x0")].batch,(t=>{n.buffer[$s("0x1b")](),t[$s("0x1e")](t[$s("0x1f")](a[$s("0x18")])),n[$s("0x0")].unlock()}))})),t[$s("0x21")].downcastDispatcher.on("addMarker:suggestion:deletion",hs(t,$s("0x2")),{priority:$s("0x29")}),t.data.downcastDispatcher.on($s("0x1d"),((e,n,o)=>{o[$s("0x2a")][$s("0x10")]&&hs(t,$s("0x2"),{showActiveMarker:!1})[$s("0x1c")](this)(e,n,o)}),{priority:$s("0x29")}),t.editing[$s("0x11")].on($s("0x3"),((t,e,n)=>{const o=n[$s("0x22")][$s("0x12")](e[$s("0x17")]);if(o)for(const t of o)t.is($s("0x26"))&&(n[$s("0x22")][$s("0xe")](t,e.markerName),n[$s("0x1a")][$s("0xa")](t))}),{priority:"high"})}}const Qs=["listItemId","createPositionAt","registerCustomCallback","getFirstRange","format","*Outdent:* %0","accept","documentList","detach","createRange","afterInit","from","length","toUpperCase","end","plugins","expandListBlocksToCompleteList","selection","*Change to:* %0","ELEMENT_BULLETED_LIST","push","isObject","*Format:* remove from %0","bulletedList","*Merge:* %0","after","nodeAfter","deletion","value","isFirstBlockOfListItem","setSelection","commandName","ELEMENT_NUMBERED_LIST","indentList","editor","schema","ELEMENT_","DocumentListEditing","has","formatBlock","before","add","commandParams","findIndex","model","getRanges","TrackChangesEditing","slice","enableCommand","refresh","forceValue","outdentList","splitListItemBefore","getAttribute","ELEMENT_LIST_ITEM","document","_descriptionFactory","listIndent","numberedList","nextSibling","splitListItemAfter","*Format:* insert into %0","markBlockFormat","commands","mergeListItemBackward","listType","mergeListItemForward","markMultiRangeBlockFormat","start","change","previousSibling","getSelectedBlocks","registerDescriptionCallback","get"];var Zs,Ys;Zs=Qs,Ys=348,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x20")](){const t=this[tr("0x38")];if(!t[tr("0x25")][tr("0x3c")](tr("0x3b")))return;const e=t.locale,n=t[tr("0x25")][tr("0x15")](tr("0x44")),o=t.plugins[tr("0x15")]("DocumentListUtils");function s(e){return()=>{const s=t[tr("0xb")][tr("0x15")](e);let r=Array[tr("0x21")](t[tr("0x42")].document[tr("0x27")][tr("0x13")]());if(a(e)){r=o[tr("0x26")](r);const t=[];for(const e of r)o[tr("0x33")](e)&&t.push(e);r=t}t[tr("0x42")][tr("0x11")]((()=>{n[tr("0xf")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x32")]}],formatGroupId:"listType"},[],tr("0x1d"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x21")](t);const n=e[tr("0x41")]((t=>!t.hasAttribute(tr("0x16"))));return n>-1&&(e=e[tr("0x45")](0,n)),e}(t[tr("0x42")][tr("0x3")][tr("0x27")][tr("0x13")]()),s=o[o[tr("0x22")]-1],r=t[tr("0x42")][tr("0x39")].isObject(s)?tr("0x2f"):"end",i=t.model[tr("0x1f")](t[tr("0x42")].createPositionAt(o[0],"before"),t[tr("0x42")][tr("0x17")](s,r));t[tr("0x42")].change((()=>{n[tr("0xa")](i,{commandName:e,commandParams:[],formatGroupId:tr("0xd")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x1")](tr("0x5"))>n.getAttribute(tr("0x5"));)e[tr("0x3f")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x3")].selection.getSelectedBlocks().next()[tr("0x32")],s=t[tr("0x42")][tr("0x17")](o,tr("0x3e")),r=t.model.createPositionAt(o,0),i=t[tr("0x42")].createRange(s,r);t[tr("0x42")][tr("0x11")]((()=>{n[tr("0xa")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0xb")][tr("0x15")](tr("0x2d"))[tr("0x32")],o=t[tr("0xb")][tr("0x15")](tr("0x6"))[tr("0x32")];return tr("0x6")===e?n:o}n[tr("0x46")](tr("0x6"),s(tr("0x6"))),n.enableCommand(tr("0x2d"),s(tr("0x2d"))),n[tr("0x46")](tr("0x37"),r("indentList")),n.enableCommand(tr("0x49"),r("outdentList")),n[tr("0x46")](tr("0x8"),x(tr("0x8"))),n.enableCommand(tr("0x0"),x(tr("0x0"))),n._descriptionFactory.registerElementLabel((function(e){const n=!t[tr("0x42")].schema[tr("0x2b")](e),o=e[tr("0x12")],s=e[tr("0x7")],r=e[tr("0x1")]("listItemId"),i=!o||o[tr("0x1")](tr("0x16"))!==r,x=!s||s.getAttribute(tr("0x16"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x2"),t))),n[tr("0x4")][tr("0x14")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case"bulletedList":r=n[tr("0x40")][0].forceValue,i=a(n[tr("0x35")]),o=tr(r?"0x9":"0x2c"),i&&(o=tr("0x28")),s={type:tr("0x1a"),content:Yo(e,o,Yo(e,tr("0x29")))};break;case tr("0x6"):r=n.commandParams[0][tr("0x48")],i=a(n[tr("0x35")]),o=tr(r?"0x9":"0x2c"),i&&(o=tr("0x28")),s={type:tr("0x1a"),content:Yo(e,o,Yo(e,tr("0x36")))};break;case"indentList":o="*Indent:* %0",s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case tr("0x49"):o=function(t){const e=t[tr("0x19")]();let n=e[tr("0x10")][tr("0x30")];for(;n&&e.containsItem(n);){if(n.getAttribute(tr("0x5"))>0)return!1;n=n[tr("0x7")]}return!0}(t)?Yo(e,tr("0x2c"),Yo(e,function(t){const e=t[tr("0x19")]().start[tr("0x30")];return tr("0x3a")+e[tr("0x1")](tr("0xd"))[tr("0x23")]()+"_LIST"}(t))):Yo(e,tr("0x1b"),Yo(e,tr("0x2"))),s={type:"format",content:o};break;case tr("0xc"):case tr("0xe"):!1===n.multipleBlocks&&(o=tr("0x2e"),s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x2")))})}return s})),n._suggestionFactory[tr("0x18")](tr("0x3d"),"documentList",tr("0x1c"),(function(e,n){const o=[];for(let n of e)n[tr("0x10")][tr("0x30")]===n[tr("0x24")].parent&&(n=t.model[tr("0x1f")](t[tr("0x42")].createPositionAt(n[tr("0x10")][tr("0x30")],0))),o.push(n);t.model[tr("0x11")]((e=>{const s=t[tr("0x42")].document.selection,r=Array.from(s[tr("0x43")]()).map((t=>i.LiveRange.fromRange(t)));e[tr("0x34")](o),t[tr("0xb")][tr("0x15")](n[tr("0x35")])[tr("0x47")](),n[tr("0x40")][tr("0x2a")]({forceDefaultExecution:!0}),t.execute(n[tr("0x35")],...n[tr("0x40")]),e.setSelection(r);for(const t of r)t[tr("0x1e")]()}))}))}}var nr=n(331);const or=["getFirstPosition","enableCommand","model","remove","editing","enter","hasClass","markerName","createRange","removeMarker:suggestion:insertion","get","data","unbindElementFromMarkerName","markerNameToElements","requires","options","change","end","bind","selection","addMarker:suggestion:insertion","afterExecute","fire","nextSibling","high","enterBlock","TrackChangesEditing","downcastDispatcher","split","parent","writer","init","mapper","setSelection","createPositionAt","getFirstRange","commands","plugins"];var sr,rr;sr=or,rr=121,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("0x7")](){return[nr.Enter]}[ir("0x18")](){const t=this.editor,e=t[ir("0x1e")][ir("0x3")](ir("0x13")),n=t[ir("0x1d")][ir("0x3")]("enter");e[ir("0x20")](ir("0x24"),(()=>{t.model[ir("0x9")]((o=>{const s=t[ir("0x21")].document[ir("0xc")],r=s[ir("0x1f")](),x=i.LiveRange.fromRange(s[ir("0x1c")]());if(n[ir("0x12")](o)){const n=t.model[ir("0x1b")](r[ir("0x16")][ir("0x10")],0),s=o[ir("0x1")](r,n);e.markInsertion(s)}else o[ir("0x1a")](o[ir("0x1")](x[ir("0xa")]));x.detach(),n[ir("0xf")](ir("0xe"),{writer:o})}))})),t[ir("0x23")].downcastDispatcher.on(ir("0xd"),hs(t,ir("0x15")),{priority:ir("0x11")}),t[ir("0x23")][ir("0x14")].on(ir("0x2"),((t,e,n)=>{const o=n[ir("0x19")][ir("0x6")](e.markerName);if(o)for(const t of o)t[ir("0x25")]("ck-suggestion-marker-split")&&(n[ir("0x19")][ir("0x5")](t,e[ir("0x0")]),n[ir("0x17")][ir("0x22")](t))}),{priority:"high"}),t[ir("0x4")][ir("0x14")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x8")].showSuggestionHighlights&&hs(t,"split",{showActiveMarker:!1})[ir("0xb")](this)(e,n,o)}),{priority:ir("0x11")})}}const ar=["handleFindCommand","editor","bind","FindAndReplaceEditing","FindAndReplaceUtils","model","TrackChangesEditing","plugins","_isInDeletionRange","replaceAll","getMarkersGroup","replace","findNext","filter","item","string","afterInit","findPrevious","getIntersection","createPositionAt","enableCommand","markers","end","get"];var cr,lr;cr=ar,lr=340,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0xc")](){if(!this.editor[dr("0x3")].has(dr("0x17")))return;const t=this[dr("0x15")][dr("0x3")][dr("0x13")](dr("0x2"));t[dr("0x10")]("find",this[dr("0x14")][dr("0x16")](this)),t[dr("0x10")](dr("0x8")),t[dr("0x10")](dr("0xd")),t[dr("0x10")](dr("0x7")),t[dr("0x10")](dr("0x5"))}[dr("0x14")](t,e,n={}){const o=this[dr("0x15")].plugins[dr("0x13")](dr("0x0"));void 0!==n&&t((t=>(dr("0xb")==typeof e?o.findByTextCallback(e,n):e)(t)[dr("0x9")]((e=>!1===this[dr("0x4")](e,t[dr("0xa")])))),n)}_isInDeletionRange(t,e){const n=this.editor.model.createRange(this.editor[dr("0x1")][dr("0xf")](e,t.start),this[dr("0x15")][dr("0x1")][dr("0xf")](e,t[dr("0x12")]));for(const t of this.editor.model[dr("0x11")][dr("0x6")]("suggestion:deletion"))if(null!==n[dr("0xe")](t.getRange()))return!0;return!1}}const gr=["normalizeSizeOptions","get","toLowerCase","fontSize.options","FontSizeEditing","getRanges","from","FontBackgroundColorEditing","title","afterInit","fontBackgroundColor","_descriptionFactory","fontColor.colors","model","fontSize","editor","*Set font size:* %0","commandParams","*Reset font size*","*Reset font family*","locale","fontColor","*Set font background color:* %0","label","plugins","*Reset font background color*","trim","_enableCommand","find","document","format","FontFamilyEditing","change","value","enableCommand","registerDescriptionCallback","*Set font family:* %0","fontFamily","config","FontSize","commandName","selection","TrackChangesEditing"];var mr,fr;mr=gr,fr=490,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1e"),commandName:hr("0x28")},{pluginName:hr("0xe"),commandName:"fontFamily"},{pluginName:"FontColorEditing",commandName:hr("0x4")},{pluginName:hr("0x21"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x23")](){const t=this.editor[hr("0x3")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x29")].plugins.has(t)&&this[hr("0xa")](e);this[hr("0x29")][hr("0x7")][hr("0x1b")]("TrackChangesEditing")[hr("0x25")][hr("0x12")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x28")==o[hr("0x17")]){const e=o[hr("0x0")][0][hr("0x10")];if(e){const o=n(this[hr("0x29")][hr("0x7")][hr("0x1b")](hr("0x16"))[hr("0x1a")](this[hr("0x29")][hr("0x15")].get(hr("0x1d")))[hr("0xb")]((t=>t.model==e))[hr("0x22")])[hr("0x1c")]();return{type:"format",content:Yo(t,hr("0x2a"),o)}}return{type:hr("0xd"),content:Yo(t,hr("0x1"))}}if(hr("0x14")==o[hr("0x17")]){const e=o[hr("0x0")][0][hr("0x10")];return e?{type:hr("0xd"),content:Yo(t,hr("0x13"),e)}:{type:hr("0xd"),content:Yo(t,hr("0x2"))}}if(hr("0x4")==o[hr("0x17")]){const e=o.commandParams[0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x29")].config[hr("0x1b")](hr("0x26"))).find((t=>t[hr("0x27")]==e));let r=e,i="";return o&&(r=o[hr("0x6")],i=n(r).toLowerCase()),{type:hr("0xd"),content:Yo(t,"*Set font color:* %0",i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0xd"),content:Yo(t,"*Reset font color*")}}if(hr("0x24")==o[hr("0x17")]){const e=o.commandParams[0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x29")][hr("0x15")][hr("0x1b")]("fontBackgroundColor.colors"))[hr("0xb")]((t=>t[hr("0x27")]==e));let r=e,i="";return o&&(r=o[hr("0x6")],i=n(r)[hr("0x1c")]()),{type:hr("0xd"),content:Yo(t,hr("0x5"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0xd"),content:Yo(t,hr("0x8"))}}}}))}[hr("0xa")](t){const e=this.editor;e[hr("0x7")].get("TrackChangesEditing")[hr("0x11")](t,((n,o={})=>{const s=e[hr("0x27")][hr("0xc")][hr("0x18")],r=o[hr("0x10")];s.isCollapsed?n(o):e.model[hr("0xf")]((()=>{const n=Array[hr("0x20")](s[hr("0x1f")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x27")]);for(const o of n)e[hr("0x7")].get(hr("0x19")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["length","selection","_descriptionFactory","copyFormat","boolean","getSelectedBlocks","normalizeSizeOptions","locale","pasteFormat","charAt","config","keys","isFormatting","fontSize.options","markInlineFormat","getRanges","toLowerCase","from","editor","fontColor","*Set format to:* %0","isBlock","modifySelection","model","split","getAttributes","TrackChangesEditing","word","*Remove all formatting*","forward","commands","plugins","registerDescriptionCallback","title","fontBackgroundColor","getFirstPosition","afterInit","schema","createSelection","enableCommand","push","get","entries","toUpperCase","join","format","change"];var _r,Tr;_r=Er,Tr=409,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x3")](){const t=this[Cr("0x20")],n=t[Cr("0x25")],o=n.document[Cr("0xf")],s=t[Cr("0x2d")][Cr("0x8")](Cr("0x28")),r=t[Cr("0x15")],i=t[Cr("0x2c")].get("copyFormat"),x=t[Cr("0x2c")][Cr("0x8")](Cr("0x16"));i&&x&&(s[Cr("0x6")](Cr("0x16"),((t,r={})=>{const i=r;n[Cr("0xd")]((()=>{const t=Array[Cr("0x1f")](o[Cr("0x1d")]()),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("0x27")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0x1a")]&&(yield n)}}(t,n));for(const e of t[Cr("0x1d")]())for(const t of e.getItems())!n[Cr("0x23")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x13")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x4")]))||0!==Object[Cr("0x19")](i)[Cr("0xe")])for(const t of r)s[Cr("0x1c")](t,{commandName:Cr("0x16"),commandParams:[i]})}))})),s[Cr("0x10")][Cr("0x2e")]((e=>{const{data:n}=e;if(n&&Cr("0x16")===n.commandName){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x9")](o))e[Cr("0x7")](Ar(t,n,s));return e.length?{type:Cr("0xc"),content:Yo(r,Cr("0x22"),e.join(", "))}:{type:Cr("0xc"),content:Yo(r,Cr("0x2a"))}}})),t[Cr("0x2d")][Cr("0x8")](Cr("0x28"))[Cr("0x6")](Cr("0x11")))}}function kr(t,e){const n=t[Cr("0x5")](e);t.modifySelection(n,{unit:Cr("0x29"),direction:"backward"});const o=n[Cr("0x2")]();t[Cr("0x24")](n,{unit:Cr("0x29"),direction:Cr("0x2b")});const s=n.getLastPosition();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x15")].t,r=e[Cr("0x26")](/(?=[A-Z])/)[Cr("0xb")](" "),i=o(r[Cr("0x17")](0)[Cr("0xa")]()+r.slice(1))[Cr("0x1e")]();if(Cr("0x12")==typeof n)return i;if(Cr("0x21")===e||Cr("0x1")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x18")][Cr("0x8")]("fontColor.colors")).find((t=>t.model==n));return i+" ("+(e?o(e.label)[Cr("0x1e")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x2d")][Cr("0x8")]("FontSize")[Cr("0x14")](t[Cr("0x18")][Cr("0x8")](Cr("0x1b"))).find((t=>t[Cr("0x25")]==n));return i+" ("+(e?o(e[Cr("0x0")])[Cr("0x1e")]():n)+")"}return i+" ("+n+")"}const vr=["filter","selection","format","value","schema","TrackChangesEditing","registerDescriptionCallback","formatBlock","model","isObject","from","enableCommand","plugins","commandParams","registerElementLabel","document","get","_descriptionFactory","afterInit","blockName","match","name","*Change to:* %0","heading.options","getSelectedBlocks","title","paragraph","checkChild","find","heading","editor","config"];var Rr,Sr;Rr=vr,Sr=382,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x14")](){const t=this.editor,e=t.locale,n=t[Ir("0x1")][Ir("0x12")](Ir("0x19"));if(!t[Ir("0xe")].has("HeadingEditing"))return;const o=t.plugins.get(Ir("0x7"));o[Ir("0xd")](Ir("0x1f"),((e,n)=>{const s=n[Ir("0x5")],r=Array[Ir("0xc")](this[Ir("0x0")].model[Ir("0x11")][Ir("0x3")][Ir("0x1a")]())[Ir("0x2")]((t=>{return e=t,n=s,(o=this[Ir("0x0")][Ir("0xa")][Ir("0x6")])[Ir("0x1d")](e.parent,n)&&!o[Ir("0xb")](e)&&e[Ir("0x17")]!=n;var e,n,o}));t[Ir("0xa")].change((()=>{for(const t of r)o.markBlockFormat(t,{commandName:"heading",commandParams:[n],formatGroupId:Ir("0x15")},fs(t))}))}));for(const t of n)Ir("0x1c")!=t[Ir("0xa")]&&o[Ir("0x13")][Ir("0x10")](t[Ir("0xa")],(e=>{const n=Nr(t[Ir("0xa")]);return null!==n?s(e,n):r(e,t[Ir("0x1b")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x13")][Ir("0x8")]((t=>{const{type:o,data:i}=t;if(Ir("0x9")==o&&i&&"heading"==i.commandName){const t=i[Ir("0xf")][0][Ir("0x5")],o=Nr(t);if(null!==o)return{type:Ir("0x4"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Ir("0x1e")]((e=>e[Ir("0xa")]===t))[Ir("0x1b")];return{type:Ir("0x4"),content:Yo(e,Ir("0x18"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x16")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["*Set highlight:* %0","registerDescriptionCallback","document","change","getFirstPosition","plugins","highlight.options","has","highlight","value","FORMAT_HIGHLIGHT","getAttribute","item","editor","format","backward","afterInit","_descriptionFactory","color","formatInline","get","isCollapsed","getLastMatchingPosition","commandParams","config","selection","push","find","model","commandName","title","*Remove highlight*","locale","createRange","markInlineFormat","hasAttribute"];var wr,Or;wr=Mr,Or=130,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x1e")](){const t=this[Fr("0x1b")];if(!t[Fr("0x13")][Fr("0x15")]("HighlightEditing"))return;const e=t[Fr("0x13")][Fr("0x22")]("TrackChangesEditing");e.enableCommand(Fr("0x16"),((n,o={})=>{const s=t[Fr("0x6")][Fr("0x10")][Fr("0x3")],r=s[Fr("0x19")](Fr("0x16"));let i=o[Fr("0x17")],x=[];if(s[Fr("0x23")]){const e=s[Fr("0x12")]();if(!s[Fr("0xd")](Fr("0x16")))return void n(o);{const n=t=>t[Fr("0x1a")][Fr("0x19")](Fr("0x16"))===r,o=e[Fr("0x0")](n,{direction:Fr("0x1d")}),s=e[Fr("0x0")](n);x=[t[Fr("0x6")][Fr("0xb")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x.push(e):x[Fr("0x4")](...ms(Fr("0x16"),e,t.model));t.model[Fr("0x11")]((()=>{for(const t of x)e[Fr("0xc")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0xa")];e[Fr("0x1f")][Fr("0xf")]((e=>{const{type:o,data:s}=e;if(Fr("0x21")==o&&s&&Fr("0x16")==s[Fr("0x7")]){const e=n.t,o=s[Fr("0x1")][0][Fr("0x17")];if(o){const s=t[Fr("0x2")][Fr("0x22")](Fr("0x14"))[Fr("0x5")]((t=>t[Fr("0x6")]==o)),r=e(s.title).toLowerCase();return{type:Fr("0x1c"),content:Yo(n,Fr("0xe"),r),color:{value:s[Fr("0x20")],title:s[Fr("0x8")]}}}return{type:"format",content:Yo(n,Fr("0x9"),Yo(n,Fr("0x18")))}}}))}}const Dr=["addClass","createEmptyElement","get","for","elementToStructure","showSuggestionHighlights","ck-horizontal-line","locale","insert","conversion","editor","high","horizontalLine","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","createPositionAt","plugins","createContainerElement","HorizontalLineEditing"];var Br,jr;Br=Dr,jr=116,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("0x8")];if(!t[Ur("0xe")].has(Ur("0x10")))return;t[Ur("0xe")].get(Ur("0xc")).enableCommand(Ur("0xa"));const e=t[Ur("0xe")][Ur("0x0")](Ur("0xc")),n=t[Ur("0x5")];e._descriptionFactory.registerElementLabel(Ur("0xa"),(t=>Yo(n,Ur("0xb"),t))),t[Ur("0x7")][Ur("0x1")]("dataDowncast")[Ur("0x2")]({model:Ur("0xa"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x3")])return null;const o=e[Ur("0xf")]("div"),s=e[Ur("0x12")]("hr");return e[Ur("0x11")](Ur("0x4"),o),e[Ur("0x6")](e[Ur("0xd")](o,0),s),o},converterPriority:Ur("0x9")})}}const Hr=["element","format","htmlEmbed","model","commandName","*Change %0 content*","afterInit","locale","enableCommand","getCustomProperty","selection","rawHtml","editing","get","has","getSelectedElement","value","view","TrackChangesEditing","editor","ELEMENT_HTML_EMBED","_descriptionFactory","registerDescriptionCallback","plugins"];var Wr,zr;Wr=Hr,zr=336,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x6")](){const t=this[Vr("0x13")];if(!t[Vr("0x17")][Vr("0xe")]("HtmlEmbed"))return;const e=t[Vr("0x17")][Vr("0xd")](Vr("0x12")),n=t[Vr("0x7")],o=t[Vr("0xc")][Vr("0x11")].document[Vr("0xa")];e._descriptionFactory.registerElementLabel(Vr("0xb"),(t=>Yo(n,Vr("0x14"),t))),t[Vr("0x17")][Vr("0xd")]("TrackChangesEditing")[Vr("0x8")](Vr("0x2"),((n,s)=>{const r=t[Vr("0x3")],i=r.document[Vr("0xa")];r.change((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x0"),Vr("0xb"))?t[Vr("0xf")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0x10"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x2"),commandParams:[s]}),o.getSelectedElement()[Vr("0x9")]("rawHtmlApi").cancel())}))})),e[Vr("0x15")][Vr("0x16")]((t=>{const{data:e}=t;if(e&&Vr("0x2")==e[Vr("0x4")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x1"),content:Yo(n,Vr("0x5"),t)}}}))}}const qr=["commandParams","imageStylePostApply","from","imageStyle","start","accept","value","convertBlockImageToInline","imageInline","ELEMENT_INLINE_IMAGE","editor","commandName","model","ImageBlockEditing","createRange","getSuggestions","getCaptionFromImageModelElement","afterInit","format","nodeBefore","hasSuggestion","resizeImage","get","createRangeOn","getNearestSelectionRange","imageCaption","*Reset image width*","find","chain","commands","width","isInlineImage","getContainedElement","removeObject","ImageEditing","subType","getChangedMarkers","_descriptionFactory","element","imageTextAlternative","registerElementLabel","type","getFirstRange","join","head","filter","*Remove image text alternative*","alt","detach","imageStylePreApply","ImageUtils","isBlockImage","ImageUploadEditing","ImageCaptionEditing","markBlockFormat","discardSuggestion","formatInline","selection","uploadImage","change","registerCustomCallback","*Set image text alternative:* %0","imageTypeBlock","getClosestSelectedImageElement","ImageCaptionUtils","_findSuggestions","markDeletion","fromPosition","forward","length","getAttribute","addObject","document","plugins","_suggestionFactory","insertion","isBefore","newRange","forceDefaultExecution","locale","findIndex","imageBlock","caption","getSuggestion","forEach","insertImage","previous","formatBlock","_splitMarkerName","markInlineFormat","side","imageTypeInline","discard","TrackChangesEditing","isEqual","isInContent","*Format:* %0","refresh","isCollapsed","registerPostFixer","newValue","nodeAfter","next","Users","isOwn","ELEMENT_IMAGE","Inline image to block image","markInsertion","toggleImageCaption","schema","toNext","author","hasAttribute","has","normalizedStyles","registerDescriptionCallback","ImageStyleEditing","ELEMENT_CAPTION","enableCommand","Block image to inline image","name","ImageResize","end","convertInlineImageToBlock","getSuggestionCallback"];var Xr,$r;Xr=qr,$r=358,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x22")](){const t=this[Jr("0x1b")];if(!t[Jr("0x5a")][Jr("0x5")](Jr("0x33")))return;const n=t[Jr("0x5a")].get(Jr("0x6e")),o=t.plugins[Jr("0x27")](Jr("0x43")),s={},r=t[Jr("0x60")];if(n[Jr("0xa")](Jr("0x66")),n._descriptionFactory[Jr("0x39")](Jr("0x62"),(t=>Yo(r,Jr("0x7a"),t))),n[Jr("0x36")][Jr("0x39")](Jr("0x19"),(t=>Yo(r,Jr("0x1a"),t))),n[Jr("0x36")].registerElementLabel(Jr("0x63"),(()=>Yo(r,Jr("0x9")))),t.plugins[Jr("0x5")](Jr("0x45"))&&n[Jr("0xa")](Jr("0x4b")),t[Jr("0x5a")][Jr("0x5")](Jr("0x1e"))&&t[Jr("0x5a")][Jr("0x5")]("ImageInlineEditing")&&(n[Jr("0xa")](Jr("0x6c"),((e,s)=>{const r=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]);t[Jr("0x1d")][Jr("0x4c")]((()=>{n[Jr("0x47")](r,{commandName:Jr("0x6c"),commandParams:[s]},[],Jr("0x18"))}))})),n[Jr("0xa")](Jr("0x4f"),((e,s)=>{t[Jr("0x1d")][Jr("0x4c")]((r=>{let x=o[Jr("0x50")](t.model[Jr("0x59")][Jr("0x4a")]),a=r[Jr("0x28")](x);const c=i.LivePosition.fromPosition(a[Jr("0x15")],"toPrevious"),l=i.LivePosition[Jr("0x54")](a[Jr("0xe")],Jr("0x2"));n[Jr("0x5f")]((()=>e(s))),x=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]),a=r[Jr("0x28")](x);const d=r[Jr("0x1f")](c,l);c[Jr("0x41")](),l[Jr("0x41")](),n[Jr("0x47")](x,{commandName:Jr("0x6c"),commandParams:[]},[],"convertInlineImageToBlock"),d[Jr("0x15")].isBefore(a[Jr("0x15")])&&n[Jr("0x7c")](r[Jr("0x1f")](d[Jr("0x15")],a.start),"convertInlineImageToBlock"),a.end[Jr("0x5d")](d[Jr("0xe")])&&n[Jr("0x7c")](r[Jr("0x1f")](a[Jr("0xe")],d[Jr("0xe")]),Jr("0xf"))}))})),n[Jr("0x5b")][Jr("0x4d")]("formatBlock",Jr("0xf"),Jr("0x3c"),(()=>{})),n[Jr("0x5b")].registerCustomCallback("formatBlock",Jr("0xf"),Jr("0x16"),(()=>{})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x68"),Jr("0xf"),Jr("0x6d"),n[Jr("0x5b")][Jr("0x10")]("formatBlock","",Jr("0x16"))),n._suggestionFactory.registerCustomCallback(Jr("0x5c"),Jr("0xf"),Jr("0x3c"),(()=>{})),n[Jr("0x5b")].registerCustomCallback(Jr("0x5c"),Jr("0xf"),Jr("0x6d"),(([e])=>{const o=n[Jr("0x5b")][Jr("0x10")](Jr("0x5c"),"","discard");let s=e.start,r=e.end;const i=t.model[Jr("0x1")][Jr("0x29")](s,"backward"),x=t[Jr("0x1d")][Jr("0x1")][Jr("0x29")](r,Jr("0x55"));i[Jr("0x73")]&&(s=i[Jr("0x15")]),x[Jr("0x73")]&&(r=x[Jr("0xe")]),o([t.model[Jr("0x1f")](s,r)])})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x68"),Jr("0xf"),"chain",c),n[Jr("0x5b")].registerCustomCallback(Jr("0x5c"),Jr("0xf"),"chain",c)),t.plugins.has(Jr("0x46"))&&(n.enableCommand(Jr("0x0"),((e,s)=>{const r=t.plugins[Jr("0x27")](Jr("0x51"));let i=o.getClosestSelectedImageElement(t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]),x=r[Jr("0x21")](i);t.model[Jr("0x4c")]((()=>{if(x)return void n[Jr("0x53")](t[Jr("0x1d")][Jr("0x28")](x));const a=o[Jr("0x44")](i);e(s),i=o[Jr("0x50")](t.model[Jr("0x59")][Jr("0x4a")]),x=r[Jr("0x21")](i),n.markInsertion(t[Jr("0x1d")][Jr("0x28")](x),a?null:Jr("0x2a"))}))})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x5c"),Jr("0x2a"),Jr("0x2d"),c)),t.plugins[Jr("0x5")](Jr("0x8"))){n[Jr("0xa")]("imageStyle",((s,r)=>{const i=t[Jr("0x5a")][Jr("0x27")](Jr("0x78")).me,x=t[Jr("0x2e")].get(Jr("0x14"));let a=o[Jr("0x50")](t.model[Jr("0x59")][Jr("0x4a")]),c=t[Jr("0x1d")][Jr("0x28")](a),l=x[Jr("0x17")];if(l==r[Jr("0x17")])return;const d={commandName:Jr("0x14"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x1d")][Jr("0x4c")]((()=>{if(n[Jr("0x20")]()[Jr("0x3e")]((t=>t.isInContent&&i==t[Jr("0x3")]&&(Jr("0x68")==t[Jr("0x3a")]||"formatInline"==t.type)&&(Jr("0x42")==t[Jr("0x34")]||Jr("0x12")==t[Jr("0x34")])&&t[Jr("0x3b")]()[Jr("0x6f")](c)))[Jr("0x65")]((t=>n[Jr("0x48")](t[Jr("0x3d")]))),a=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")].selection),c=t[Jr("0x1d")][Jr("0x28")](a),x[Jr("0x72")](),t[Jr("0x2e")][Jr("0x27")](Jr("0x6c"))[Jr("0x72")](),t[Jr("0x2e")].get("imageTypeBlock")[Jr("0x72")](),l=x[Jr("0x17")],l!=r.value)return o[Jr("0x30")](a)&&x.shouldConvertImageType(r[Jr("0x17")],a)?(s(r),a=o[Jr("0x50")](t[Jr("0x1d")].document[Jr("0x4a")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x42"))):void(o[Jr("0x44")](a)?n[Jr("0x47")](a,d,[],"imageStylePostApply"):n[Jr("0x6a")](c,d,"imageStylePostApply"))}))}));for(const e of t[Jr("0x5a")][Jr("0x27")](Jr("0x8"))[Jr("0x6")])s[e[Jr("0xc")]]=e.title.toLowerCase();n[Jr("0x5b")][Jr("0x4d")]("formatBlock",Jr("0x42"),Jr("0x3c"),(()=>{})),n._suggestionFactory[Jr("0x4d")]("formatBlock","imageStylePostApply",Jr("0x3c"),(()=>{})),n._suggestionFactory[Jr("0x4d")](Jr("0x49"),Jr("0x12"),"join",(()=>{})),n[Jr("0x5b")].registerCustomCallback(Jr("0x68"),Jr("0x42"),Jr("0x16"),(()=>{})),n[Jr("0x5b")].registerCustomCallback(Jr("0x68"),Jr("0x42"),Jr("0x6d"),((t,e)=>{n[Jr("0x5b")][Jr("0x10")](Jr("0x68"),"",Jr("0x16"))(t,{commandName:e[Jr("0x1c")],commandParams:e.commandReversedParams})})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x68"),Jr("0x42"),"chain",c)}const x=[{type:Jr("0x68"),subType:"imageStylePreApply"},{type:Jr("0x5c"),subType:"imageCaption"},{type:Jr("0x68"),subType:"convertInlineImageToBlock"},{type:Jr("0x5c"),subType:Jr("0xf")}];function a(t,e){const s=x[Jr("0x61")]((({type:e,subType:n})=>t[Jr("0x3a")]==e&&t.subType==n)),r=x.findIndex((({type:t,subType:n})=>e[Jr("0x3a")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[Jr("0x3b")](),a=e[Jr("0x3b")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x52")](i,"insertion")[Jr("0x3e")]((({suggestion:t,meta:e})=>e[Jr("0x79")]&&Jr("0xf")==t[Jr("0x34")]));if(t[Jr("0x56")]>1&&a[Jr("0xe")][Jr("0x6f")](i.start))return!0;if(1==t[Jr("0x56")]&&(i[Jr("0x15")][Jr("0x6f")](a[Jr("0xe")])||i.end.isEqual(a[Jr("0x15")])))return!0}if(3==s&&3==r&&i[Jr("0x15")][Jr("0x5d")](a[Jr("0x15")])){const t=i[Jr("0xe")][Jr("0x76")],e=a[Jr("0x15")][Jr("0x24")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x1d")][Jr("0x59")][Jr("0x74")]((()=>{let e=!1;const s=Array[Jr("0x13")](t.model.document.differ[Jr("0x35")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x69")](t);if("suggestion"==s&&n[Jr("0x25")](a)){if(Jr("0x68")==i&&(Jr("0x42")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r[Jr("0x5e")]){const s=t[Jr("0x3b")]()[Jr("0x31")]();if(o[Jr("0x44")](s))continue;n[Jr("0x48")](t),e=!0}}if(Jr("0x5c")==i&&Jr("0x2a")==x&&!r[Jr("0x5e")]){const t=n[Jr("0x64")](a);t.next&&t[Jr("0x77")][Jr("0x70")]&&(n[Jr("0x48")](t[Jr("0x77")]),e=!0)}}}return e})),t[Jr("0x5a")][Jr("0x5")](Jr("0xd"))&&n.enableCommand(Jr("0x26"),((e,s)=>{const r=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]);r[Jr("0x57")](Jr("0x2f"))!=s[Jr("0x2f")]&&t[Jr("0x1d")].change((()=>{n[Jr("0x47")](r,{commandName:Jr("0x26"),commandParams:[s]})}))})),t[Jr("0x5a")].has("ImageTextAlternativeEditing")&&n[Jr("0xa")](Jr("0x38"),((e,s)=>{const r=o[Jr("0x50")](t[Jr("0x1d")].document[Jr("0x4a")]);(r[Jr("0x4")](Jr("0x40"))?r[Jr("0x57")](Jr("0x40")):"")!=s[Jr("0x75")]&&t[Jr("0x1d")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x38"),commandParams:[s]})}))})),n[Jr("0x36")].registerDescriptionCallback((t=>{if(x[Jr("0x2c")]((({type:e,subType:n})=>t[Jr("0x3a")]==e&&t[Jr("0x34")]==n)))return t[Jr("0x67")]?{}:void 0})),n[Jr("0x36")][Jr("0x7")]((t=>{if(Jr("0x5c")==t[Jr("0x3a")]||"deletion"==t[Jr("0x3a")]){const e=t.getContainedElement();if(e&&e.is(Jr("0x37"),"caption"))return{type:Jr("0x5c")==t[Jr("0x3a")]?Jr("0x58"):Jr("0x32"),element:e,quantity:1}}})),n[Jr("0x36")][Jr("0x7")]((t=>"formatBlock"==t[Jr("0x3a")]&&"convertInlineImageToBlock"==t[Jr("0x34")]?{type:"format",content:Jr("0x7b")}:Jr("0x68")==t[Jr("0x3a")]&&Jr("0x18")==t[Jr("0x34")]?{type:Jr("0x23"),content:Jr("0xb")}:void 0)),n[Jr("0x36")][Jr("0x7")]((t=>{const{data:e}=t;if(e){if(Jr("0x14")==e[Jr("0x1c")]){const t=e[Jr("0x11")][0].value;return n=Jr("0x6b")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x23"),content:Yo(r,Jr("0x71"),n)}}if(Jr("0x38")==e[Jr("0x1c")]){const t=e[Jr("0x11")][0].newValue;return t?{type:Jr("0x23"),content:Yo(r,Jr("0x4e"),'"'+t+'"')}:{type:Jr("0x23"),content:Yo(r,Jr("0x3f"))}}if(Jr("0x26")==e[Jr("0x1c")]){const t=e[Jr("0x11")][0][Jr("0x2f")];return t?{type:"format",content:Yo(r,"*Set image width:* %0",t)}:{type:Jr("0x23"),content:Yo(r,Jr("0x2b"))}}}var n}))}}const Zr=["model","markBlockFormat","_suggestionFactory","src","selection","discard","ImageEditing","*Format:* replace image URL","handleReplaceImageCommand","_descriptionFactory","has","format","subType","document","change","getSuggestions","handleSuggestionDescription","TrackChangesEditing","data","author","editor","getSelectedElement","registerCustomCallback","commandName","afterInit","getSuggestionCallback","replaceImageSource","formatBlock","plugins","Users","getContainedElement","commandParams","enableCommand","locale","get","accept"];var Yr,ti;Yr=Zr,ti=257,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x13")](){if(!this[ei("0xf")].plugins[ei("0x5")](ei("0x1")))return;const t=this[ei("0xf")].plugins.get(ei("0xc"));t[ei("0x1b")]("replaceImageSource",((t,e)=>this[ei("0x3")](t,e))),t._suggestionFactory[ei("0x11")](ei("0x16"),ei("0x15"),"accept",t[ei("0x21")][ei("0x14")]("formatBlock",null,"discard")),t[ei("0x21")][ei("0x11")]("formatBlock",ei("0x15"),ei("0x0"),t[ei("0x21")][ei("0x14")](ei("0x16"),null,ei("0x1e"))),t[ei("0x4")].registerDescriptionCallback((t=>this[ei("0xb")](t)))}handleReplaceImageCommand(t,e){const n=this.editor[ei("0x17")][ei("0x1d")](ei("0xc")),o=this[ei("0xf")][ei("0x1f")][ei("0x8")][ei("0x23")][ei("0x10")]();this[ei("0xf")][ei("0x1f")][ei("0x9")]((()=>{let s=o.getAttribute(ei("0x22"));const r=this[ei("0xf")].plugins[ei("0x1d")](ei("0x18")).me;for(const t of n[ei("0xa")]({skipNotAttached:!0})){const e=t[ei("0x19")]();if(ei("0x15")===t[ei("0x7")]&&e===o){t[ei("0xe")]!==r&&t[ei("0x0")](),s=t[ei("0xd")][ei("0x1a")][0].source;break}}t(e),n[ei("0x20")](o,{commandName:ei("0x15"),commandParams:[{source:s}]},[],ei("0x15"))}))}[ei("0xb")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x12")]){const t=ei("0x2");return{type:ei("0x6"),content:Yo(this[ei("0xf")][ei("0x1c")],t)}}}}const oi=["bind","execute","collaboration_features","listenTo","commands","forEach","_trackChangesExecuted","get","importWord","trackChanges","Users","lowest","_trackChangesValueDuringImport","TrackChangesEditing","value","editor","plugins","track_changes","high","_handleImportedData","afterInit"];var si,ri;si=oi,ri=177,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[ii("0x3")]=!1,this[ii("0x12")]=!1}[ii("0xb")](){const t=this[ii("0x6")],e=t[ii("0x10")][ii("0x13")](ii("0x14")),n=t[ii("0x10")].get(ii("0x0"));e&&(e.on(ii("0xd"),((t,[,e])=>{this[ii("0x3")]=n.value,e[ii("0xe")][ii("0x8")]=!this[ii("0x3")]}),{priority:ii("0x9")}),this[ii("0xf")](e,"dataInsert",this[ii("0xa")][ii("0xc")](this)),this.listenTo(e,"dataInsert",(()=>{this._trackChangesExecuted&&(n[ii("0xd")](),this._trackChangesExecuted=!1)}),{priority:ii("0x2")}),t.plugins[ii("0x13")](ii("0x4")).enableCommand(ii("0x14")))}[ii("0xa")](t,e){const{suggestions:n}=e,o=this[ii("0x6")][ii("0x10")][ii("0x13")](ii("0x0")),s=o[ii("0x5")];this._trackChangesValueDuringImport!==s&&(o[ii("0xd")](),this[ii("0x12")]=!0),n&&n[ii("0x11")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x6")][ii("0x7")].get(ii("0x1")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x14")}}};this[ii("0x6")][ii("0x7")][ii("0x13")](ii("0x4"))._setSuggestionData(s)}))}}const ai=["afterInit","format","getItemLabel","checkAttribute","indent","getItems","IndentBlock","from","locale","IndentEditing","selection","enableCommand","indentBlock","*Indent:* %0","_descriptionFactory","plugins","getSelectedBlocks","blockIndent","document","TrackChangesEditing","editor","get","has","commandName","model","outdentBlock","schema","*Outdent:* %0"];var ci,li;ci=ai,li=452,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x18")](){const t=this[di("0x10")],e=t[di("0xb")][di("0x11")](di("0xf"));t[di("0xb")][di("0x12")](di("0x5"))&&(e[di("0x7")](di("0x0")),e[di("0x7")]("outdent"));const n=t[di("0x4")];if(t[di("0xb")][di("0x12")](di("0x2"))){for(const n of[di("0x8"),"outdentBlock"])e[di("0x7")](n,(()=>{const o=Array[di("0x3")](this[di("0x10")].model[di("0xe")][di("0x6")][di("0xc")]()).filter((t=>this[di("0x10")][di("0x14")][di("0x16")][di("0x1b")](t,di("0xd"))));t[di("0x14")].change((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x8")})}))}));e[di("0xa")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(di("0x8")!=o[di("0x13")]&&di("0x15")!=o[di("0x13")])return;const s=t[di("0x1")]()[0],r=e[di("0xa")][di("0x1a")](s);return"indentBlock"==o[di("0x13")]?{type:di("0x19"),content:Yo(n,di("0x9"),r)}:di("0x15")==o[di("0x13")]?{type:di("0x19"),content:Yo(n,di("0x17"),r)}:void 0}))}}}var gi,mi,fi=["get","requires","init","editor","TrackChangesEditing"];gi=fi,mi=449,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[hi("0x2")](){return[Vs.Input]}[hi("0x3")](){this[hi("0x4")].plugins[hi("0x1")](hi("0x0")).enableCommand("input")}}const bi=["markInlineFormat","*Remove link*","editor","afterInit","selection","change","LinkEditing","get","getAttribute","commandName","getFirstPosition","hasAttribute","locale","from","link","enableCommand","document","has","model","format","isCollapsed","unlink","linkHref","registerDescriptionCallback","plugins"];var Ei,_i;Ei=bi,_i=420,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x8")](){const t=this[Ti("0x7")];if(!t[Ti("0x4")][Ti("0x16")](Ti("0xb")))return;const e=t[Ti("0x4")][Ti("0xc")]("TrackChangesEditing");e[Ti("0x14")]("link",((n,o)=>{const s=t[Ti("0x17")][Ti("0x15")][Ti("0x9")];let r=[];if(s[Ti("0x0")]){if(!s[Ti("0x10")](Ti("0x2")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xf")](),Ti("0x2"),s.getAttribute(Ti("0x2")),t.model);r=[e]}}else r=Array[Ti("0x12")](s.getRanges());t[Ti("0x17")][Ti("0xa")]((()=>{for(const t of r)e[Ti("0x5")](t,{commandName:Ti("0x13"),commandParams:[o]})}))})),e[Ti("0x14")](Ti("0x1"),(()=>{const n=this[Ti("0x7")][Ti("0x17")],o=n[Ti("0x15")].selection;n[Ti("0xa")]((()=>{let n=[];n=o[Ti("0x0")]?[(0,Vs.findAttributeRange)(o[Ti("0xf")](),Ti("0x2"),o[Ti("0xd")](Ti("0x2")),t.model)]:ms(Ti("0x2"),o.getFirstRange(),t[Ti("0x17")]);for(const t of n)e[Ti("0x5")](t,{commandName:Ti("0x1"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x3")]((e=>{const{data:n}=e,o=t[Ti("0x11")];if(n){if("link"==n[Ti("0xe")]){const t=n.commandParams[0];return{type:Ti("0x18"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x1")==n.commandName?{type:Ti("0x18"),content:Yo(o,Ti("0x6"))}:void 0}}))}}const yi=["from","commandName","nextSibling","TodoListEditing","end","checkTodoList","registerDescriptionCallback","listIndent","locale","markBlockFormat","add","previousSibling","has","bulletedList","commands","outdentList","todoList","indentList","element","model","getAttribute","*Outdent:* %0","*Uncheck item*","get","*Indent:* %0","value","listType","forceValue","numberedList","schema","listItem","blockName","selection","*Check item*","_descriptionFactory","isObject","name","afterInit","enableCommand","todoListChecked","format","createRange","*Change to:* %0","checkChild","filter","createPositionAt","plugins","slice","commandParams","editor","document","change","bulleted","ELEMENT_TODO_LIST","paragraph","push","_selectedElements","TrackChangesEditing","registerElementLabel","getSelectedBlocks"];var ki,Ai;ki=yi,Ai=205,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xc")](){const t=this[vi("0x18")],e=t[vi("0x2b")];if(!t[vi("0x15")][vi("0x2f")]("ListEditing"))return;const n=t[vi("0x15")][vi("0x3a")](vi("0x20")),o=t[vi("0x15")].has(vi("0x26"));function s(e){return()=>{const o=t[vi("0x36")][vi("0x19")][vi("0x7")],s=t[vi("0x31")][vi("0x3a")](e);if(s.value)return void t.execute(vi("0x1d"),{});const r=e[vi("0x16")](0,-4),i=function(t,e,n){let o=Array[vi("0x23")](t)[vi("0x13")]((t=>{return e=t,(o=n)[vi("0x12")](e.parent,vi("0x5"))&&!o[vi("0xa")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x35"),vi("0x5"))||t[vi("0x37")](vi("0x1"))!=e));const s=new Set;for(const t of o)t.is(vi("0x35"),vi("0x5"))?s[vi("0x2d")](Si(t)):s[vi("0x2d")](t);return Array[vi("0x23")](s)}(o[vi("0x22")](),r,t[vi("0x36")][vi("0x4")]);t.model[vi("0x1a")]((()=>{for(const t of i)n[vi("0x2c")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x0")]}],formatGroupId:vi("0x6")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x23")](t);const n=e.findIndex((t=>vi("0x5")!=t[vi("0xb")]));return n>-1&&(e=e[vi("0x16")](0,n)),e}(t[vi("0x36")][vi("0x19")][vi("0x7")].getSelectedBlocks()),s=t.model[vi("0x10")](t[vi("0x36")][vi("0x14")](o[0],"before"),t[vi("0x36")][vi("0x14")](o[o.length-1],vi("0x27")));t[vi("0x36")][vi("0x1a")]((()=>{n[vi("0x2c")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x2a")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x25")];for(;t&&t[vi("0x37")](vi("0x2a"))>n[vi("0x37")](vi("0x2a"));)e[vi("0x2d")](t),t=t[vi("0x25")]}return Array.from(e)}(o))}))}}n.enableCommand(vi("0x3"),s("numberedList")),n[vi("0xd")](vi("0x30"),s("bulletedList")),o&&n[vi("0xd")](vi("0x33"),s("todoList")),n.enableCommand(vi("0x34"),r("indentList")),n[vi("0xd")]("outdentList",r(vi("0x32"))),o&&n[vi("0xd")]("checkTodoList",(()=>{const e=t[vi("0x31")][vi("0x3a")](vi("0x28")),o=Array[vi("0x23")](e[vi("0x1f")]);o.filter((t=>t[vi("0x37")](vi("0xe"))!=e[vi("0x0")])),t[vi("0x36")][vi("0x1a")]((()=>{for(const t of o)n[vi("0x2c")](t,{commandName:vi("0x28"),commandParams:[{forceValue:!e[vi("0x0")]}]})}))})),n[vi("0x9")][vi("0x21")](vi("0x5"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x9")][vi("0x29")]((t=>{const{data:n}=t;if(n){if(vi("0x3")==n[vi("0x24")]||vi("0x30")==n[vi("0x24")]||vi("0x33")==n[vi("0x24")])switch(n[vi("0x24")].replace("List","")){case vi("0x1b"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,vi("0x1c")))}if(vi("0x34")==n[vi("0x24")])return{type:vi("0xf"),content:Yo(e,vi("0x3b"),Yo(e,"ELEMENT_LIST_ITEM"))};if("outdentList"==n[vi("0x24")])return{type:vi("0xf"),content:Yo(e,vi("0x38"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x28")==n.commandName)return n[vi("0x17")][0][vi("0x2")]?{type:vi("0xf"),content:Yo(e,vi("0x8"))}:{type:vi("0xf"),content:Yo(e,vi("0x39"))}}function o(t){return{type:vi("0xf"),content:Yo(e,vi("0x11"),t)}}}))}}function Si(t){const e=t[vi("0x37")](vi("0x2a"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x2e")].is(vi("0x35"),vi("0x5"));){const o=t[vi("0x2e")][vi("0x37")](vi("0x2a"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t.previousSibling}return n}function Ii(t){const e=[];if(t.is(vi("0x35"),"listItem")&&t.getAttribute(vi("0x2a"))>0){let n=t[vi("0x25")];for(;n&&vi("0x5")==n[vi("0xb")]&&n[vi("0x37")](vi("0x2a"))==t[vi("0x37")](vi("0x2a"));)e[vi("0x1e")](n),n=n[vi("0x25")]}return e}const Li=["getSelectedBlocks","bind","selection","enableCommand","TrackChangesEditing","getListTypeFromListStyleType","handleListStyleCommand","model","reversed","registerDescriptionCallback","_descriptionFactory","getFirstPosition","commandParams","createRange","listItem","backward","afterInit","format","editor","styles","toUpperCase","has","get","handleListReversedCommand","getSiblingNodes","startIndex","length","ELEMENT_","*Format:* set start index to %0","_getTranslationKeyForListStyle","listStart","plugins","change","forward","document","from","push","replace","config","list.properties","ListUtils","commandName","createPositionAt","numbered","listStyle","type","_getSuggestionBlocksForListStyle","handleListStartCommand","_LIST_","before","flat","listType","_getSuggestionBlocks","element","*Format:* set order to regular","listReversed","markMultiRangeBlockFormat","handleDescriptions","map","filter","getAttribute"];var Ni,Mi;Ni=Li,Mi=273,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x30")](){if(!this[wi("0x32")][wi("0x2")][wi("0x35")]("ListPropertiesEditing"))return;const t=this.editor[wi("0x9")].get(wi("0xa")),e=this.editor[wi("0x2")][wi("0x36")](wi("0x24"));t[wi("0x33")]&&e.enableCommand(wi("0xf"),this[wi("0x26")][wi("0x21")](this)),t[wi("0x28")]&&e[wi("0x23")](wi("0x1a"),this[wi("0x37")][wi("0x21")](this)),t[wi("0x39")]&&e[wi("0x23")](wi("0x1"),this[wi("0x12")][wi("0x21")](this)),e[wi("0x2a")][wi("0x29")](this[wi("0x1c")][wi("0x21")](this))}handleListStyleCommand(t,e={}){const n=this[wi("0x32")][wi("0x2")][wi("0x36")](wi("0x24")),o=this[wi("0x11")]();this[wi("0x32")].model[wi("0x3")]((()=>{n[wi("0x1b")](o,{commandName:wi("0xf"),commandParams:[{type:e[wi("0x10")]}],formatGroupId:"listStyle"})}))}[wi("0x37")](t,e={}){const n=this[wi("0x32")][wi("0x2")][wi("0x36")]("TrackChangesEditing"),o=this[wi("0x17")]((t=>t.is(wi("0x18"),wi("0x2e"))&&wi("0xe")===t[wi("0x1f")](wi("0x16"))));if(o[wi("0x3a")]<1)return;const s=o[wi("0x1d")]((t=>this[wi("0x32")].model.createRange(this[wi("0x32")].model[wi("0xd")](t,wi("0x14")),this.editor.model.createPositionAt(t,0))));this[wi("0x32")].model.change((()=>{n[wi("0x1b")](s,{commandName:wi("0x1a"),commandParams:[{reversed:e[wi("0x28")]}],formatGroupId:wi("0x1a")})}))}[wi("0x12")](t,e={}){const n=this[wi("0x32")][wi("0x2")][wi("0x36")](wi("0x24")),o=this[wi("0x17")]((t=>t.is(wi("0x18"),wi("0x2e"))&&"numbered"===t[wi("0x1f")](wi("0x16"))));if(o[wi("0x3a")]<1)return;const s=o[wi("0x1d")]((t=>this[wi("0x32")][wi("0x27")][wi("0x2d")](this.editor[wi("0x27")][wi("0xd")](t,wi("0x14")),this[wi("0x32")].model[wi("0xd")](t,0))));this[wi("0x32")].model[wi("0x3")]((()=>{n[wi("0x1b")](s,{commandName:wi("0x1"),commandParams:[{startIndex:e[wi("0x39")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){const e=this[wi("0x32")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0xc")]){case"listStyle":o="*Change to:* %0",s={type:wi("0x31"),content:Yo(e,o,Yo(e,this[wi("0x0")](n[wi("0x2c")][0][wi("0x10")])))};break;case"listReversed":o=n[wi("0x2c")][0][wi("0x28")]?"*Format:* set order to reversed":wi("0x19"),s={type:"format",content:Yo(e,o)};break;case wi("0x1"):o=wi("0x3c"),s={type:"format",content:Yo(e,o,n.commandParams[0][wi("0x39")])}}return s}[wi("0x11")](){var t,e,n,o;const s=this.editor[wi("0x2")][wi("0x36")](wi("0xb"));let r=Array[wi("0x6")](this.editor[wi("0x27")][wi("0x5")][wi("0x22")][wi("0x20")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x18"),wi("0x2e")))&&r.unshift(...s[wi("0x38")](this[wi("0x32")][wi("0x27")][wi("0x5")][wi("0x22")][wi("0x2b")](),wi("0x2f"))),(null===(e=r[r[wi("0x3a")]-1])||void 0===e?void 0:e.is("element",wi("0x2e")))&&r[wi("0x7")](...s[wi("0x38")](this[wi("0x32")][wi("0x27")][wi("0x5")][wi("0x22")].getLastPosition(),wi("0x4"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x32")].model[wi("0x5")].selection[wi("0x2b")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(wi("0x18"),wi("0x2e")))&&(r=r[wi("0x1e")]((t=>t.is(wi("0x18"),wi("0x2e"))))),r}[wi("0x17")](t){const e=this[wi("0x32")].plugins.get(wi("0xb"));let n=Array[wi("0x6")](this[wi("0x32")][wi("0x27")][wi("0x5")][wi("0x22")][wi("0x20")]()).filter(t)[wi("0x1d")]((t=>{const n=this[wi("0x32")].model[wi("0xd")](t,0);return[...e.getSiblingNodes(n,wi("0x2f")),...e[wi("0x38")](n,wi("0x4"))]}))[wi("0x15")]();return n=[...new Set(n)],n}[wi("0x0")](t){return wi("0x3b")+this[wi("0x32")][wi("0x2")].get(wi("0xb"))[wi("0x25")](t)[wi("0x34")]()+wi("0x13")+t[wi("0x34")]()[wi("0x8")](/-/g,"_")}}const Fi=["editor","stop","dataDowncast","elementToElement","MediaEmbedEditing","high","afterInit","TrackChangesEditing","showSuggestionHighlights","has","data","mediaEmbed","locale","plugins","get","attribute:url:media","media","createEmptyElement","registerElementLabel","conversion","enableCommand"];var Pi,Di;Pi=Fi,Di=143,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xa")](){const t=this[Bi("0x4")];if(!t[Bi("0x11")][Bi("0xd")](Bi("0x8")))return;const e=t[Bi("0x11")][Bi("0x12")](Bi("0xb")),n=t[Bi("0x10")];e[Bi("0x3")](Bi("0xf")),e._descriptionFactory[Bi("0x1")](Bi("0x14"),(t=>Yo(n,"ELEMENT_MEDIA",t))),t[Bi("0x2")].for(Bi("0x6"))[Bi("0x7")]({model:Bi("0x14"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xc")])return e[Bi("0x0")]("div")},converterPriority:Bi("0x9")}),t[Bi("0xe")].downcastDispatcher.on(Bi("0x13"),((t,e,n)=>{n.options.showSuggestionHighlights&&t[Bi("0x5")]()}),{priority:Bi("0x9")})}}const Ui=["enableCommand","get","mention","MentionEditing","has","plugins","TrackChangesEditing","afterInit"];var Gi,Hi;Gi=Ui,Hi=133,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{[Wi("0x2")](){const t=this.editor;t[Wi("0x0")][Wi("0x7")](Wi("0x6"))&&t[Wi("0x0")][Wi("0x4")](Wi("0x1"))[Wi("0x3")](Wi("0x5"))}}const Vi=["editor","ELEMENT_PAGE_BREAK","has","locale","plugins","_descriptionFactory","TrackChangesEditing","registerElementLabel","get","PageBreakEditing","pageBreak","enableCommand"];var Ki,qi;Ki=Vi,qi=273,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("0x3")];if(!t[Xi("0x7")][Xi("0x5")](Xi("0x0")))return;t[Xi("0x7")].get(Xi("0x9"))[Xi("0x2")](Xi("0x1"));const e=t[Xi("0x7")][Xi("0xb")](Xi("0x9")),n=t[Xi("0x6")];e[Xi("0x8")][Xi("0xa")](Xi("0x1"),(t=>Yo(n,Xi("0x4"),t)))}}const Ji=["selection","registerDescriptionCallback","locale","isBlock","options","Paragraph","has","*Change to:* %0","_descriptionFactory","paragraph","*Insert:* %0","addMarker:suggestion:insertion","start","showSuggestionHighlights","insertParagraph","enableCommand","mapper","schema","span","nodeAfter","consumable","from","toViewPosition","plugins","ELEMENT_PARAGRAPH","getFirstRange","editor","addClass","writer","highest","includes","getSelectedBlocks","markerName","model","insert","bindElementToMarker","insertion","isObject","name","afterInit","document","consume","checkChild","TrackChangesEditing","markerRange","data","end","isTouching","change","createUIElement","isLimit","$text","ck-suggestion-marker-split","filter"];var Qi,Zi;Qi=Ji,Zi=356,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x7")](){const t=this[Yi("0x30")];if(!t[Yi("0x2d")][Yi("0x1c")](Yi("0x1b")))return;const e=t[Yi("0x18")],n=t[Yi("0x2d")].get(Yi("0xb"));n[Yi("0x1e")].registerElementLabel("paragraph",(t=>Yo(e,Yi("0x2e"),t))),n[Yi("0x25")](Yi("0x1f"),((e,o={})=>{const s=t[Yi("0x1")][Yi("0x8")],r=o[Yi("0x16")]||s.selection,i=Array[Yi("0x2b")](r[Yi("0x35")]())[Yi("0x15")]((t=>{return e=t,(n=this[Yi("0x30")][Yi("0x1")][Yi("0x27")])[Yi("0xa")](e.parent,"paragraph")&&!n[Yi("0x5")](e)&&"paragraph"!=e[Yi("0x6")];var e,n}));t.model[Yi("0x10")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x1f"),commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Yi("0x1e")][Yi("0x17")]((t=>{const{data:n}=t;if(n&&Yi("0x1f")==n.commandName)return{type:"format",content:Yo(e,Yi("0x1d"),Yo(e,Yi("0x2e")))}})),n.enableCommand(Yi("0x24")),t.editing.downcastDispatcher.on(Yi("0x21"),ex(t),{priority:"highest"}),t[Yi("0xd")].downcastDispatcher.on(Yi("0x21"),((e,n,o)=>{o[Yi("0x1a")][Yi("0x23")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x33")});const o=n[Yi("0x1e")];o[Yi("0x17")]((n=>{if(Yi("0x4")!==n.type)return;const{start:s,end:r}=n[Yi("0x2f")]();if(!s[Yi("0xf")](r)||!s[Yi("0x29")])return;const i=t[Yi("0x1")].schema,x=s.nodeAfter;return i[Yi("0x19")](x)&&!i[Yi("0x12")](x)&&i[Yi("0xa")](x,"$text")?{type:"insertion",content:Yo(e,Yi("0x20"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x2d")].get("TrackChangesEditing"),i=o.markerRange[Yi("0x22")],x=o[Yi("0xc")][Yi("0xe")],a=t[Yi("0x1")][Yi("0x27")];if(!i[Yi("0xf")](x)||!i[Yi("0x29")])return;const c=i[Yi("0x29")];if(a[Yi("0x19")](c)&&!a[Yi("0x12")](c)&&a[Yi("0xa")](c,Yi("0x13"))){if(!s[Yi("0x2a")][Yi("0x9")](o[Yi("0xc")],n.name))return;const t=s[Yi("0x32")][Yi("0x11")](Yi("0x28"),{class:Yi("0x14")}),i=s.mapper[Yi("0x2c")](x);e&&r.activeMarkers[Yi("0x34")](o[Yi("0x0")])&&s.writer[Yi("0x31")]("ck-suggestion-marker--active",t),s.writer[Yi("0x2")](i,t),s[Yi("0x26")][Yi("0x3")](t,o[Yi("0x0")])}}}const nx=["isFormatting","registerDescriptionCallback","TrackChangesEditing","plugins","document","getAttributeProperties","enableCommand","getAttributes","commandName","removeFormat","get","afterInit","getRanges","getItems","has","model","markInlineFormat","format","isCollapsed","locale"];var ox,sx;ox=nx,sx=274,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x11")](){const t=this.editor;if(!t[rx("0x9")][rx("0x0")]("RemoveFormatEditing"))return;const e=t[rx("0x9")][rx("0x10")](rx("0x8"));e[rx("0xc")]("removeFormat",(n=>{const o=t[rx("0x1")][rx("0xa")].selection;o[rx("0x4")]?n():t[rx("0x1")].change((()=>{const n=Array.from(o[rx("0x12")]());for(const o of n)for(const n of o[rx("0x13")]())xx(n,t[rx("0x1")].schema)&&e[rx("0x2")](t[rx("0x1")].createRangeOn(n),{commandName:rx("0xf"),commandParams:[]})}))})),e._descriptionFactory[rx("0x7")]((e=>{const{data:n}=e;if(n&&rx("0xf")==n[rx("0xe")])return{type:rx("0x3"),content:Yo(t[rx("0x5")],"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t[rx("0xd")]()){const t=e[rx("0xb")](n);if(t&&t[rx("0x6")])return!0}return!1}const ax=["discardAllSuggestions","enableCommand","editor","discardSelectedSuggestions","acceptSelectedSuggestions","RestrictedEditingModeEditing","afterInit","goToNextRestrictedEditingException","has","plugins","goToPreviousRestrictedEditingException","acceptSuggestion","get","trackChanges","TrackChangesEditing"];var cx,lx;cx=ax,lx=262,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0xe")](){const t=this[dx("0xa")];if(!t[dx("0x2")][dx("0x1")](dx("0xd")))return;const e=t[dx("0x2")].get(dx("0x7"));e[dx("0x9")](dx("0x3")),e[dx("0x9")](dx("0x0"));const n=t.plugins[dx("0x5")]("RestrictedEditingModeEditing");n.enableCommand(dx("0x6")),n[dx("0x9")](dx("0x4")),n.enableCommand("discardSuggestion"),n[dx("0x9")]("acceptAllSuggestions"),n.enableCommand(dx("0x8")),n[dx("0x9")](dx("0xc")),n[dx("0x9")](dx("0xb"))}}const gx=["bindElementToMarker","mapper","test","ck-suggestion-marker--active","createPositionBefore","span","createUIElement","high","model","editing","getItems","plugins","toViewPosition","addMarker:suggestion:insertion","enableCommand","addMarker:suggestion:deletion","merge","name","ELEMENT_LINE_BREAK","downcastDispatcher","TrackChangesEditing","registerElementLabel","writer","element","init","shiftEnter","split","_descriptionFactory","locale","addMarker:suggestion","ck-suggestion-marker-","addClass","insert","requires","editor","softBreak","markerRange","deletion","consumable","markerName","get"];var mx,fx;mx=gx,fx=181,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("0x10")](){return[nr.ShiftEnter]}[hx("0x7")](){const t=this[hx("0x11")],e=t[hx("0x23")][hx("0x17")](hx("0x3"));e[hx("0x26")](hx("0x8")),t[hx("0x21")][hx("0x2")].on(hx("0x25"),bx(t),{priority:hx("0x1f")}),t[hx("0x21")][hx("0x2")].on(hx("0x27"),bx(t),{priority:hx("0x1f")}),t.data[hx("0x2")].on(hx("0xc"),((e,n,o)=>{o.options.showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0xa")][hx("0x4")]("softBreak",(e=>Yo(t[hx("0xb")],hx("0x1"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x23")][hx("0x17")](hx("0x3"));if(!s[hx("0x15")][hx("0x1a")](o[hx("0x13")],n[hx("0x0")]))return;const i=t[hx("0x20")];for(const t of o[hx("0x13")][hx("0x22")]()){if(!t.is(hx("0x6"),hx("0x12")))continue;const n=hx("0x14")==o[hx("0x16")][hx("0x9")](":")[1]?hx("0x28"):"split",x=s[hx("0x5")][hx("0x1e")](hx("0x1d"),{class:hx("0xd")+n}),a=s.mapper[hx("0x24")](i[hx("0x1c")](t));e&&r.activeMarkers.includes(o.markerName)&&s[hx("0x5")][hx("0xe")](hx("0x1b"),x),s[hx("0x5")][hx("0xf")](a,x),s[hx("0x19")][hx("0x18")](x,o[hx("0x16")])}}}const Ex=["plugins","selection","commands","registerDescriptionCallback","getRanges","StandardEditingModeEditing","enableCommand","value","format","from","TrackChangesEditing","FORMAT_RESTRICTED_DISABLED","change","model","get","_descriptionFactory","document","commandName","FORMAT_RESTRICTED_ENABLED","forceValue"];var _x,Tx;_x=Ex,Tx=461,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.editor,e=t[Cx("0xc")],n=t.locale;if(!t[Cx("0x13")].has(Cx("0x4")))return;const o=t.plugins[Cx("0xd")](Cx("0x9")),s="restrictedEditingException",r=t[Cx("0x1")].get(s);o[Cx("0x5")](s,((t,n={})=>{const i=e[Cx("0xf")][Cx("0x0")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x12")]?n[Cx("0x12")]:!r[Cx("0x6")];e[Cx("0xb")]((()=>{const t=Array[Cx("0x8")](i[Cx("0x3")]());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[Cx("0xe")][Cx("0x2")]((t=>{const{data:e}=t;if(e&&e[Cx("0x10")]==s)return e.commandParams[0][Cx("0x12")]?{type:Cx("0x7"),content:Yo(n,Cx("0x11"))}:{type:Cx("0x7"),content:Yo(n,Cx("0xa"))}}))}}const kx=["*Format:* %0","format","modelElements","has","selection","getRanges","get","getDefinitionsForView","TrackChangesEditing","_getStyleDefinition","plugins","style.definitions","locale","commandParams","push","change","normalizeConfig","commandName","block","classes","styleName","createRangeOn","name","style:","find","getItems","markBlockFormat","StyleUtils","DataSchema","toLowerCase","isCollapsed","includes","forceValue","element","model","Style","every","getAncestors","afterInit","enabledStyles","from","config","style","getAttribute","enableCommand"];var Ax,vx;Ax=kx,vx=475,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0xd")](){const t=this.editor;if(!t[Rx("0x1e")][Rx("0x17")](Rx("0xa")))return;const e=t.commands[Rx("0x1a")](Rx("0x11")),n=t[Rx("0x1e")][Rx("0x1a")](Rx("0x1c")),o=t[Rx("0x20")],s=t[Rx("0x1e")][Rx("0x1a")](Rx("0x3")),r=t[Rx("0x1e")][Rx("0x1a")](Rx("0x2"))[Rx("0x24")](s,t[Rx("0x10")][Rx("0x1a")](Rx("0x1f")));n[Rx("0x13")](Rx("0x11"),((o,{styleName:i})=>{const x=t.model.document[Rx("0x18")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0xe")][Rx("0x6")](i))return;if(x[Rx("0x5")]&&!a.isBlock)return void o({styleName:i});const c=!e.value.includes(a[Rx("0x2a")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0xc")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x6")](o[Rx("0x2a")])){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x16")]);t[Rx("0x9")][Rx("0x23")]((()=>{for(const t of e)n[Rx("0x1")](t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x2b")+i})}))}else{let e=Array.from(x[Rx("0x19")]());if(!c){const n=Array[Rx("0xf")](s[Rx("0x1b")](a[Rx("0x8")],!1))[0][Rx("0x9")],o=[];for(const s of e){const e=this._getRangesWithClasses(t[Rx("0x9")],s,a.classes,n);o[Rx("0x22")](...e)}e=o}t[Rx("0x9")][Rx("0x23")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x25")])return e[Rx("0x21")][0][Rx("0x7")]?{type:"format",content:Yo(o,Rx("0x14"),e[Rx("0x21")][0][Rx("0x28")][Rx("0x4")]())}:{type:Rx("0x15"),content:Yo(o,"*Remove format:* %0",e[Rx("0x21")][0].styleName[Rx("0x4")]())}}))}[Rx("0x1d")](t,e){let n=e[Rx("0x26")][Rx("0x2c")]((e=>e[Rx("0x2a")]===t));return n||(n=e.inline[Rx("0x2c")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0x0")]()){const e=r[Rx("0x12")](o);e&&n[Rx("0xb")]((t=>e[Rx("0x27")].includes(t)))&&s.push(t[Rx("0x29")](r))}return s}}const Ix=["accept","insertTableRowBelow","change","min","_getSuggestionCoords","above","name","suggestion","insertTableColumnRight","TableUtils","removeTableRow","insertTableColumnLeft","differ","start","$graveyard","getContainedElement","createPositionAt","first","end","addRange","map","enableCommand","MAX_SAFE_INTEGER","deletion","ELEMENT_TABLE_ROW_WITH_TEXT","maxColumn","element","_setupColumnsRowsFixing","type","$textProxy","max","insertTable","insert","values","getRowIndexes","model","afterInit","selectTableColumn","_tableSuggestions","includes","removeTableColumn","registerElementLabel","position","selection","options","getAttribute","createRangeIn","*Remove:* %0","document","*Insert:* %0","MIN_SAFE_INTEGER","commands","table","TrackChangesEditing","rowspan","getRanges","rootName","_getCoordsForCells","_tablePostFixingSubtypes","isEqual","findAncestor","forceValue","_acceptFormatSuggestionCallbackFactory","minRow","tableCell","plugins","addMarker:suggestion","push","filter","setSelection","low","getColumnIndexes","refresh","item","isTouching","nodeAfter","tableRow","subType","last","has","span","add","createRangeOn","toViewElement","root","isInContent","batch","toLowerCase","highest","length","tableColumn","mapper","selectTableRow","left","registerCustomCallback","substr","getSelectionAffectedTableCells","editor","tablePaste","TableEditing","change:data","hasAttribute","downcastDispatcher","classes","_descriptionFactory","removeClass","data","markMultiRangeDeletion","from","ELEMENT_TABLE_ROW","minColumn","registerDescriptionCallback","cell","detach","getCellLocation","every","startsWith","markMultiRangeInsertion","some","get","createTableWalker","getItems","insertion","join","fromRange","execute","ELEMENT_TABLE_COLUMN","enqueueChange","colspan","isIntersectingWithRange","_suggestionFactory"];var Lx,Nx;Lx=Ix,Nx=347,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._tablePostFixingSubtypes=[Mx("0x7a"),Mx("0x5")],this[Mx("0x54")]=new Set}[Mx("0x52")](){const t=this.editor,e=t[Mx("0x51")].document[Mx("0x59")];if(!t[Mx("0x6f")][Mx("0x7d")](Mx("0xe")))return;const n=t.locale,o=t[Mx("0x6f")][Mx("0x22")]("TrackChangesEditing"),s=t[Mx("0x6f")][Mx("0x22")](Mx("0x37"));o[Mx("0x13")][Mx("0x57")](Mx("0x62"),(t=>Yo(n,"ELEMENT_TABLE",t))),this[Mx("0x49")](),o.enableCommand(Mx("0x4d")),o[Mx("0x43")](Mx("0x7")),o[Mx("0x43")](Mx("0x53"));for(const n of["insertTableRowAbove",Mx("0x2f")]){const r=t[Mx("0x61")][Mx("0x22")](n);o[Mx("0x43")](n,(n=>{t[Mx("0x51")].change((t=>{n();const i=Mx("0x33")===r.order,x=s[Mx("0xb")](e),a=s[Mx("0x50")](x),c=i?a.first-1:a[Mx("0x7c")]+1,l=x[0].findAncestor("table"),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array.from(d)[Mx("0x42")]((e=>t[Mx("0x80")](e[Mx("0x1b")])));o.markMultiRangeInsertion(u,Mx("0x7a"))}))}))}for(const n of[Mx("0x39"),Mx("0x36")]){const r=t[Mx("0x61")].get(n);o[Mx("0x43")](n,(n=>{t[Mx("0x51")][Mx("0x30")]((t=>{n();const i=Mx("0x8")===r.order,x=s[Mx("0xb")](e),a=s[Mx("0x75")](x),c=i?a[Mx("0x3f")]-1:a[Mx("0x7c")]+1,l=x[0][Mx("0x6a")]("table"),d=s[Mx("0x23")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x17")](d)[Mx("0x42")]((e=>t.createRangeOn(e[Mx("0x1b")])));o[Mx("0x20")](u,Mx("0x5"))}))}))}for(const n of[Mx("0x38"),"removeTableColumn"]){const r=n[Mx("0xa")](11),i=r.toLowerCase(),x=i.substr(0,3)+Mx("0x7e"),a="table"+r,c=Mx("0x31")+r,l=Mx("0x4c")+r;o[Mx("0x43")](n,(()=>{t[Mx("0x51")][Mx("0x30")]((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Mx("0x6a")](Mx("0x62"));let u;if(Mx("0x38")==n){const t=s[Mx("0x50")](r);u={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=s[Mx("0x75")](r);u={startColumn:t.first,endColumn:t[Mx("0x7c")],includeAllSlots:!0}}const g=s[Mx("0x23")](d,u),m=Array[Mx("0x17")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x72")]((t=>t[Mx("0x10")](x)))),h=Ox(m[Mx("0x72")]((t=>!t[Mx("0x10")](x)))).map((e=>t.createRangeOn(e))),p=o[Mx("0x16")](h,a);if(p&&(Mx("0x7a")==p[Mx("0x7b")]||Mx("0x5")==p[Mx("0x7b")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t[Mx("0x80")](n),r=s[Mx("0x1d")](n),a=n[Mx("0x5b")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x41")](o)}}}))}))}function r(n){const o=Array[Mx("0x17")](e[Mx("0x65")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0x27")](t)));t[Mx("0x51")][Mx("0x30")]((e=>{const s=e[Mx("0x1")];n=n[Mx("0x72")]((t=>Mx("0x3c")!=t.root.rootName)),e.setSelection(n),t[Mx("0x61")].get(Mx("0x38"))[Mx("0x76")](),t[Mx("0x28")](Mx("0x38"),{forceDefaultExecution:!0}),t[Mx("0x51")][Mx("0x2a")]((()=>{t[Mx("0x51")].enqueueChange(s,(t=>{const e=o[Mx("0x72")]((t=>Mx("0x3c")!=t.root[Mx("0x66")]));e[Mx("0x4")]>0&&t.setSelection(e);for(const t of o)t[Mx("0x1c")]()}))}))}))}function a(n){t[Mx("0x51")][Mx("0x30")]((o=>{const s=Array[Mx("0x17")](e[Mx("0x65")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0x27")](t))),r=[];for(const t of n)for(const e of t[Mx("0x24")]({shallow:!0}))r[Mx("0x71")](e);for(const e of r)"$graveyard"!=e[Mx("0x82")][Mx("0x66")]&&(o[Mx("0x73")](o[Mx("0x3e")](e,0)),t[Mx("0x61")].get(Mx("0x56")).refresh(),t[Mx("0x28")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s[Mx("0x72")]((t=>Mx("0x3c")!=t.root.rootName));x[Mx("0x4")]>0&&o[Mx("0x73")](x);for(const t of s)t[Mx("0x1c")]()}))}function c(t,e){return e[Mx("0x1e")]((e=>t[Mx("0x21")]((t=>t.end[Mx("0x69")](e[Mx("0x3b")])||e.end[Mx("0x69")](t[Mx("0x3b")])))))}function l(t,e){return t[Mx("0x21")]((t=>e[Mx("0x21")]((e=>t[Mx("0x40")][Mx("0x78")](e[Mx("0x3b")])))))}t.data[Mx("0x11")].on(Mx("0x70"),((t,e,n)=>{if(!n[Mx("0x5a")].showSuggestionHighlights)return;const o=e[Mx("0x77")];if(!o)return;const s=n[Mx("0x6")][Mx("0x81")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x6e")===o[Mx("0x34")]&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n.addClass(r(e[Mx("0x12")]),t)),((t,e,n)=>n[Mx("0x14")](r(e.classes),t)))}),{priority:Mx("0x3")}),o[Mx("0x13")][Mx("0x1a")]((t=>{if(Mx("0x25")!=t[Mx("0x4a")]&&"deletion"!=t[Mx("0x4a")])return;const e=t[Mx("0x3d")]();if(null!=e&&e.is(Mx("0x48"),Mx("0x62"))){if(Mx("0x25")==t[Mx("0x4a")]){const e=t[Mx("0x24")]().filter((t=>t.is(Mx("0x4b")))).map((t=>t[Mx("0x15")]));if(e[Mx("0x4")])return{type:"insertion",content:Yo(n,Mx("0x5f"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x26")](" ")+'"'))}}if(Mx("0x45")==t[Mx("0x4a")]){const e=t[Mx("0x24")]().filter((t=>t.is("$textProxy")))[Mx("0x42")]((t=>t[Mx("0x15")]));if(e[Mx("0x4")])return{type:"deletion",content:Yo(n,Mx("0x5d"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x26")](" ")+'"'))}}}})),o[Mx("0x13")].registerDescriptionCallback((t=>{if("tableRow"==t[Mx("0x7b")]){const e=t[Mx("0x24")]().filter((t=>t.is(Mx("0x4b")))).map((t=>t[Mx("0x15")])),o=this[Mx("0x32")](t),s=o.maxRow-o[Mx("0x6d")]+1;if("insertion"==t[Mx("0x4a")])return e[Mx("0x4")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x46"),[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x25"),content:Yo(n,Mx("0x5f"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x45")==t[Mx("0x4a")])return e[Mx("0x4")]?{type:"deletion",content:Yo(n,Mx("0x5d"),Yo(n,Mx("0x46"),[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x45"),content:Yo(n,Mx("0x5d"),Yo(n,Mx("0x18"),s))}}if(Mx("0x5")==t[Mx("0x7b")]){const e=t[Mx("0x24")]()[Mx("0x72")]((t=>t.is("$textProxy"))).map((t=>t[Mx("0x15")])),o=this[Mx("0x32")](t),s=o[Mx("0x47")]-o[Mx("0x19")]+1;if(Mx("0x25")==t[Mx("0x4a")])return e[Mx("0x4")]?{type:Mx("0x25"),content:Yo(n,Mx("0x5f"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x25"),content:Yo(n,Mx("0x5f"),Yo(n,Mx("0x29"),s))};if(Mx("0x45")==t[Mx("0x4a")])return e[Mx("0x4")]?{type:Mx("0x45"),content:Yo(n,Mx("0x5d"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x45"),content:Yo(n,Mx("0x5d"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Mx("0x2d")][Mx("0x9")](Mx("0x25"),Mx("0x7a"),"discard",r),o[Mx("0x2d")][Mx("0x9")](Mx("0x45"),Mx("0x7a"),Mx("0x2e"),r),o[Mx("0x2d")][Mx("0x9")](Mx("0x25"),Mx("0x5"),"discard",a),o[Mx("0x2d")][Mx("0x9")](Mx("0x45"),Mx("0x5"),Mx("0x2e"),a),o._suggestionFactory.registerCustomCallback(Mx("0x25"),Mx("0x5"),Mx("0x26"),c),o[Mx("0x2d")][Mx("0x9")](Mx("0x45"),"tableColumn",Mx("0x26"),c),o._suggestionFactory.registerCustomCallback(Mx("0x25"),Mx("0x7a"),Mx("0x26"),l),o._suggestionFactory[Mx("0x9")]("deletion","tableRow","join",l)}[Mx("0x6c")](){const t=this[Mx("0xc")],e=t.model.document[Mx("0x59")];return(n,o)=>{t.model[Mx("0x30")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x40")].nodeBefore;x&&x[0]&&!1===x[0][Mx("0x6b")]&&(a=n[0][Mx("0x3b")].nodeAfter);const c=s[Mx("0x5c")](a);if(Mx("0x3c")==c[Mx("0x82")].rootName)return;const l=Array[Mx("0x17")](e[Mx("0x65")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0x27")](t)));s[Mx("0x73")](c),t[Mx("0x61")][Mx("0x22")](r)[Mx("0x76")](),x[Mx("0x71")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Mx("0x72")]((t=>"$graveyard"!=t.root[Mx("0x66")]));d.length>0&&s[Mx("0x73")](d);for(const t of l)t[Mx("0x1c")]()}))}}[Mx("0x67")](t){const e=this[Mx("0xc")][Mx("0x6f")][Mx("0x22")]("TableUtils");let n=Number[Mx("0x44")],o=Number[Mx("0x60")],s=Number[Mx("0x44")],r=Number[Mx("0x60")];for(const i of t){if(Mx("0x3c")==i[Mx("0x82")][Mx("0x66")])continue;const{row:t,column:x}=e[Mx("0x1d")](i),a=i[Mx("0x10")](Mx("0x64"))?i.getAttribute(Mx("0x64"))-1:0,c=i[Mx("0x10")]("colspan")?i[Mx("0x5b")](Mx("0x2b"))-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}}_setupColumnsRowsFixing(){const t=this.editor,e=t.plugins[Mx("0x22")](Mx("0x63")),n=t.plugins.get(Mx("0x37"));t[Mx("0x51")][Mx("0x5e")].on(Mx("0xf"),(()=>{const n=Array[Mx("0x17")](t[Mx("0x51")][Mx("0x5e")][Mx("0x3a")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if(Mx("0x35")!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x68")][Mx("0x55")](r)&&this[Mx("0x54")][Mx("0x7f")](i)}}),{priority:Mx("0x74")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x80")](t),r=t[Mx("0x6a")](Mx("0x62")),i=n[Mx("0x1d")](t);for(const e of this[Mx("0x54")]){const n=e[Mx("0x7b")],x=n[Mx("0x1f")](Mx("0xd")),a=n.substr(x?10:5),c=a[Mx("0x2")](),l=c[Mx("0xa")](0,3)+Mx("0x7e"),d="min"+a,u=Mx("0x4c")+a;if(!e[Mx("0x0")])continue;if(r!=e.getFirstRange()[Mx("0x3b")][Mx("0x6a")](Mx("0x62")))continue;if(e[Mx("0x2c")](s))continue;const g=t[Mx("0x10")](l)?t.getAttribute(l)-1:0,m=this[Mx("0x32")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Mx("0x51")][Mx("0x5e")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x51")].document[Mx("0x3a")].getChanges())if(Mx("0x4e")==s[Mx("0x4a")])if(Mx("0x7a")==s[Mx("0x34")])for(const t of s.position[Mx("0x79")].getChildren())n=n||o(t,e);else Mx("0x6e")==s[Mx("0x34")]&&(n=n||o(s[Mx("0x58")].nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Mx("0x67")](t[Mx("0x65")]()[Mx("0x42")]((t=>t[Mx("0x3b")][Mx("0x79")])))}}function Ox(t){return Array[Mx("0x17")](new Set(t)[Mx("0x4f")]())}const Fx=["createRangeOn","getRanges","locale","_areSelectedCellsMergable","isInContent","selection","stop","find","execute","return","low","model","tableCell","isEnabled","add","requires","direction","has","enableCommand","_areMergableCells","commands","_isForcedDefaultExecutionBlock","accept","registerCustomCallback","TableUtils","subType","*Merge cells*","change","findAncestor","splitTableCellHorizontally","createTableWalker","highest","_suggestionFactory","filter","root","markMultiRangeBlockFormat","commandName","*Split cell:* vertically","*Split cell:* horizontally","registerDescriptionCallback","push","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","editor","cell","getAncestors","length","element","getSuggestions","value","mergeTableCellDown","format","document","_descriptionFactory","TableEditing","map","formatBlock","get","size","rootName","getFirstPosition","TrackChangesEditing","setSelection","plugins","type","mergeTableCellUp","forceDefaultExecution","horizontally","mergeTableCellLeft","from","mergeTableCellRight","trackChanges","splitTableCellVertically","author","afterInit","mergeTableCells","detach","containsRange","$graveyard"];var Px,Dx;Px=Fx,Dx=383,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("0x1b")](){return[wx]}[Bx("0x7")](){const t=this[Bx("0x37")],e=t[Bx("0x17")][Bx("0x40")].selection,n=t[Bx("0xe")];if(!t[Bx("0x4b")][Bx("0x1d")](Bx("0x42")))return;const o=t.plugins[Bx("0x45")]("TrackChangesEditing"),s=t[Bx("0x4b")][Bx("0x45")](Bx("0x24")),r=t[Bx("0x4b")][Bx("0x45")](wx);r._tablePostFixingSubtypes[Bx("0x34")](Bx("0x8")),o[Bx("0x1e")](Bx("0x8"),(()=>{const e=s[Bx("0x35")](t[Bx("0x17")][Bx("0x40")][Bx("0x11")]);t[Bx("0x17")][Bx("0x27")]((()=>{o[Bx("0x2f")](e,{commandName:Bx("0x8"),commandParams:[]},[],Bx("0x8"))}))})),t[Bx("0x20")][Bx("0x45")]("mergeTableCells").on(Bx("0x14"),((e,n)=>{t[Bx("0x20")][Bx("0x45")](Bx("0x4")).value&&(n[Bx("0x3a")]>0&&n[n[Bx("0x3a")]-1]&&n[n[Bx("0x3a")]-1][Bx("0x4e")]||o[Bx("0x21")]||this[Bx("0xf")]()||e[Bx("0x12")]())}),{priority:Bx("0x2b")});for(const e of[Bx("0x4d"),Bx("0x3"),Bx("0x3e"),"mergeTableCellLeft"]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const e=t.model.document.selection.getFirstPosition()[Bx("0x39")]()[Bx("0x13")]((t=>t.is(Bx("0x3b"),Bx("0x18")))),s=n.value;t.model.change((()=>{o[Bx("0x2f")]([e,s],{commandName:Bx("0x8"),commandParams:[]},[],Bx("0x8"))}))}))}for(const e of[Bx("0x5"),Bx("0x29")]){const n=t[Bx("0x20")].get(e);o[Bx("0x1e")](e,(()=>{const r=s[Bx("0x35")](t.model.document.selection)[0],i=r[Bx("0x28")]("table"),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x0")==n[Bx("0x1c")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x2")](t)[Bx("0x43")]((t=>t[Bx("0x38")]))}else{const t=s[Bx("0x2a")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x2")](t)[Bx("0x43")]((t=>t[Bx("0x38")]))}t[Bx("0x17")][Bx("0x27")]((t=>{o.markBlockFormat(t[Bx("0xc")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x33")]((t=>{const{data:e}=t;if(e)return Bx("0x8")==e[Bx("0x30")]?{type:Bx("0x3f"),content:Yo(n,Bx("0x26"))}:void 0})),o[Bx("0x41")][Bx("0x33")]((t=>{const{data:e}=t;if(e)return Bx("0x5")==e[Bx("0x30")]?{type:Bx("0x3f"),content:Yo(n,Bx("0x31"))}:Bx("0x29")==e.commandName?{type:Bx("0x3f"),content:Yo(n,Bx("0x32"))}:void 0}));const x=r[Bx("0x36")]();for(const t of["mergeTableCellUp",Bx("0x3"),Bx("0x3e"),Bx("0x1")])o[Bx("0x2c")][Bx("0x23")](Bx("0x44"),t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x29")])o[Bx("0x2c")][Bx("0x23")](Bx("0x44"),t,Bx("0x22"),x);o[Bx("0x2c")][Bx("0x23")]("formatBlock",Bx("0x8"),Bx("0x22"),(n=>{t[Bx("0x17")][Bx("0x27")]((o=>{const s=Array.from(e[Bx("0xd")]())[Bx("0x43")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x4a")](n),t.commands.get("mergeTableCells").refresh(),t[Bx("0x14")](Bx("0x8"),{forceDefaultExecution:!0});const r=s[Bx("0x2d")]((t=>Bx("0xb")!=t[Bx("0x2e")][Bx("0x47")]));r[Bx("0x3a")]>0&&o[Bx("0x4a")](r);for(const t of s)t[Bx("0x9")]()}))}));for(const e of[Bx("0x4d"),Bx("0x3e"),Bx("0x1"),Bx("0x3")]){const n=t.commands[Bx("0x45")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t.model[Bx("0x40")][Bx("0x11")][Bx("0x48")]()[Bx("0x39")]().find((t=>t.is(Bx("0x3b"),"tableCell")));this._areMergableCells(n[Bx("0x3d")],o)||(e[Bx("0x15")]=!1,e[Bx("0x12")]())}}),{priority:Bx("0x16")})}}_areSelectedCellsMergable(){const t=this[Bx("0x37")][Bx("0x20")][Bx("0x45")]("mergeTableCells"),e=this[Bx("0x37")][Bx("0x4b")][Bx("0x45")](Bx("0x24"));if(!t[Bx("0x19")])return!1;const n=e[Bx("0x35")](this.editor[Bx("0x17")][Bx("0x40")][Bx("0x11")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x1f")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x37")][Bx("0x4b")].get(Bx("0x49")),o=this[Bx("0x37")][Bx("0x17")][Bx("0xc")](t),s=this[Bx("0x37")][Bx("0x17")][Bx("0xc")](e),r=new Set,i=new Set;for(const t of n[Bx("0x3c")]())if(("insertion"==t[Bx("0x4c")]||"deletion"==t[Bx("0x4c")]||"mergeTableCells"==t[Bx("0x25")])&&t[Bx("0x10")])for(const e of t[Bx("0xd")]())e[Bx("0xa")](o,!0)&&r.add(t.type+":"+t[Bx("0x6")].id),e.containsRange(s,!0)&&i[Bx("0x1a")](t.type+":"+t[Bx("0x6")].id);if(r[Bx("0x46")]!=i[Bx("0x46")])return!1;for(const t of r)if(!i[Bx("0x1d")](t))return!1;return!0}}const Ux=["unbindElementFromMarkerName","FORMAT_REGULAR_COLUMN","TrackChangesEditing","showSuggestionHighlights","toViewElement","change","_descriptionFactory","FORMAT_REGULAR_ROW","nodeAfter","requires","last","accept","commands","locale","commandParams","markerNameToElements","parent","registerCustomCallback","createPositionAfter","afterInit","TableUtils","removeClass","highest","FORMAT_HEADER_ROW","_splitMarkerName","first","markBlockFormat","downcastDispatcher","setAttribute","_suggestionFactory","enableCommand","registerDescriptionCallback","markerName","getChild","formatBlock","getSelectionAffectedTableCells","end","has","activeMarkers","data","removeMarker:suggestion","markerRange","ck-suggestion-marker--active","_acceptFormatSuggestionCallbackFactory","createRange","getRowIndexes","childCount","writer","commandName","consume","forceValue","table","from","mapper","item","getSuggestion","start","findAncestor","addClass","cell","index","model","document","includes","data-suggestion","TableEditing","getCellLocation","value","setTableRowHeader","createPositionBefore","addMarker:suggestion","createTableWalker","getAttribute","name","headingRows","plugins","editing","get","getColumnIndexes","setTableColumnHeader","format"];var Gx,Hx;Gx=Ux,Hx=391,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[Wx("0x17")](){return[wx]}[Wx("0x21")](){const t=this.editor;if(!t[Wx("0x8")][Wx("0x33")](Wx("0x4f")))return;const e=t[Wx("0x1b")],n=t[Wx("0x8")].get(Wx("0x10")),o=t[Wx("0x8")][Wx("0xa")](Wx("0x22")),s=t.plugins[Wx("0xa")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Wx("0x26")](r[Wx("0x2e")]),c=n[Wx("0x45")](a);if(!c[Wx("0x35")]||Wx("0xc")!=c.data[Wx("0x3e")])return;if(r[Wx("0x44")])return void s.stop();if(!i.consumable[Wx("0x3f")](r[Wx("0x37")],s[Wx("0x6")]))return;const l=r[Wx("0x37")][Wx("0x46")][Wx("0x16")],d=r[Wx("0x37")][Wx("0x32")].nodeBefore,u=l[Wx("0x1e")][Wx("0x1e")],{column:g}=o[Wx("0x50")](l),{column:m}=o[Wx("0x50")](d);for(let s=g;s<=m;s++){const c=o[Wx("0x4")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Wx("0x49")],c=i[Wx("0x43")][Wx("0x12")](s);i[Wx("0x3d")][Wx("0x48")]("ck-suggestion-marker-"+x,c),e&&i.writer[Wx("0x2a")](Wx("0x4e"),a,c),i[Wx("0x43")].bindElementToMarker(c,r[Wx("0x2e")]),t&&(n[Wx("0x34")][Wx("0x4d")](r[Wx("0x2e")])?i.writer[Wx("0x48")]("ck-suggestion-marker--active",c):i.writer[Wx("0x23")](Wx("0x38"),c))}}}}n[Wx("0x2c")](Wx("0x1"),((e,s)=>{const r=o[Wx("0x31")](t[Wx("0x4b")][Wx("0x4c")].selection),i=o[Wx("0x3b")](r),x=r[0].findAncestor(Wx("0x41")),a=x[Wx("0x5")](Wx("0x7"))||0,c=s&&null!==s[Wx("0x40")]?s[Wx("0x40")]:!t[Wx("0x1a")].get(Wx("0x1"))[Wx("0x0")],l=c?i[Wx("0x18")]:i[Wx("0x27")],d=x[Wx("0x2f")](l);let u;if(c){const e=x[Wx("0x2f")](a);if(d.index<e[Wx("0x4a")])return;u=t[Wx("0x4b")][Wx("0x3a")](t[Wx("0x4b")][Wx("0x2")](e[Wx("0x2f")](0)),t[Wx("0x4b")][Wx("0x20")](d[Wx("0x2f")](d[Wx("0x3c")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[Wx("0x4b")][Wx("0x3a")](t[Wx("0x4b")].createPositionBefore(d[Wx("0x2f")](0)),t[Wx("0x4b")].createPositionAfter(e.getChild(e[Wx("0x3c")]-1)))}t[Wx("0x4b")][Wx("0x13")]((()=>{n[Wx("0x28")](u,{commandName:Wx("0x1"),commandParams:[{forceValue:c}]},[],Wx("0x1"))}))})),n[Wx("0x2c")](Wx("0xc"),((e,o)=>{const s=t.plugins[Wx("0xa")]("TableUtils"),r=s[Wx("0x31")](t[Wx("0x4b")].document.selection),i=s[Wx("0xb")](r),x=r[0][Wx("0x47")](Wx("0x41")),a=x.getAttribute("headingColumns")||0,c=o&&null!==o[Wx("0x40")]?o[Wx("0x40")]:!t[Wx("0x1a")][Wx("0xa")]("setTableColumnHeader")[Wx("0x0")];let l;const d=x.getChild(0),u=c?i[Wx("0x18")]:i[Wx("0x27")],g=s[Wx("0x4")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Wx("0x42")](g)[0][Wx("0x49")];if(c){const e=d[Wx("0x2f")](a);if(m.isBefore(e))return;l=t[Wx("0x4b")][Wx("0x3a")](t[Wx("0x4b")][Wx("0x2")](e),t.model[Wx("0x20")](m))}else{const e=d[Wx("0x2f")](a-1);if(!e)return;l=t[Wx("0x4b")][Wx("0x3a")](t[Wx("0x4b")].createPositionBefore(m),t.model[Wx("0x20")](e))}t.model.change((()=>{n[Wx("0x28")](l,{commandName:Wx("0xc"),commandParams:[{forceValue:c}]},[],Wx("0xc"))}))})),t[Wx("0x9")][Wx("0x29")].on(Wx("0x3"),r(),{priority:Wx("0x24")}),t[Wx("0x35")][Wx("0x29")].on("addMarker:suggestion",((t,e,n)=>{n.options[Wx("0x11")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Wx("0x24")}),t[Wx("0x9")][Wx("0x29")].on(Wx("0x36"),((t,e,o)=>{const{type:s,id:r}=n[Wx("0x26")](e.markerName),i=n.getSuggestion(r);if(!i[Wx("0x35")]||Wx("0xc")!=i[Wx("0x35")].commandName)return;const x=o[Wx("0x43")][Wx("0x1d")](e[Wx("0x2e")]);if(x)for(const t of x)o[Wx("0x3d")][Wx("0x23")]("ck-suggestion-marker-"+s,t),o[Wx("0x3d")][Wx("0x23")](Wx("0x38"),t),o.writer.removeAttribute(Wx("0x4e"),t),o.mapper[Wx("0xe")](t,e[Wx("0x2e")])}),{priority:"highest"}),n[Wx("0x14")][Wx("0x2d")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[Wx("0x3e")]){const t=n[Wx("0x1c")][0][Wx("0x40")];return o(Yo(e,Wx(t?"0x25":"0x15")))}if(Wx("0xc")==n[Wx("0x3e")]){const t=n[Wx("0x1c")][0][Wx("0x40")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":Wx("0xf")))}}function o(t){return{type:Wx("0xd"),content:Yo(e,"*Format:* %0",t)}}}));const i=s[Wx("0x39")]();n[Wx("0x2b")][Wx("0x1f")](Wx("0x30"),Wx("0x1"),Wx("0x19"),i),n[Wx("0x2b")][Wx("0x1f")](Wx("0x30"),Wx("0xc"),Wx("0x19"),i)}}const Vx=["_tablePostFixingSubtypes","redo","markMultiRangeDeletion","registerPostFixer","getSuggestion","getRowIndexes","discard","ck-suggestion-marker","getChangedMarkers","dataDowncast","getRanges","*Replace table cells*","Users","commands","removeMarkers","name","findAncestor","createRangeIn","fromEntries","push","return","accept","next","createElement","register","high","createTableWalker","has","suggestionLoaded","deletionRanges","TrackChangesEditing","suggestion-td","rows","suggestion:formatBlock:tablePasteCell","tableCellBorderColor","_suggestionFactory","previous","getColumns","setAttribute","stop","model","tableCellBorderWidth","editor","tableCellHorizontalAlignment","cells","getItems","registerDescriptionCallback","_descriptionFactory","low","createPositionBefore","schema","locale","set","markMultiRangeInsertion","paragraph","attributes","insertionRanges","updateMarker","tablePasteChainId","suggestion","listenTo","getRange","selection","every","tablePasteRow","remove","getAllAdjacentSuggestions","removeMarker","registerCustomCallback","insertRows","getMarkers","map","nextSibling","element","removeColumns","filter","markMultiRangeBlockFormat","tableCell","_getCoordsForCells","document","editingDowncast","from","wrap","createRange","oldRange","rowInsertionRanges","getAttributes","author","find","hasSuggestion","showSuggestionHighlights","join","first","createRangeOn","value","tableCellPadding","isEqual","columnInsertionIndexes","$graveyard","getShiftedBy","TableClipboard","nodeAfter","differ","change","rowInsertionIndexes","conversion","end","columns","plugins","editing","content","cell","entries","tableCellSuggestion","insertion","view","getSuggestions","getChildren","some","columnInsertionRanges","deletion","isEmpty","tablePasteColumn","start","getSelectionAffectedTableCells","tablePaste","insertColumns","markerName","ck-suggestion-marker--active","suggestionUnloaded","reduce","insertContent","unwrap","includes","isInContent","getChanges","newRange","endRow","forceDefaultExecution","markerToHighlight","getChild","table","last","fill","trackChanges","for","_splitMarkerName","column","tablePasteCell","subType","options","startsWith","length","formatBlock","get","add","type","previousSibling","position","insert","markerAttributes","elementToElement","getContainedElement"];var Kx,qx;Kx=Vx,qx=439,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x5b"),Xx("0x54"),"tableCellBorderStyle",Xx("0x5d"),"tableCellVerticalAlignment","tableCellBackgroundColor",Xx("0x91")],Jx=Object[Xx("0x44")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}afterInit(){const t=this[Xx("0x5c")];if(!t[Xx("0x9e")][Xx("0x4d")]("TableClipboard"))return;const n=t[Xx("0x9e")].get(Xx("0x50")),o=t[Xx("0x9e")][Xx("0x29")]("TableUtils"),s=t[Xx("0x9e")][Xx("0x29")](wx),r=t[Xx("0x9e")][Xx("0x29")]("TableClipboard");s[Xx("0x32")][Xx("0x45")](Xx("0x72"),Xx("0x9")),t.model[Xx("0x64")][Xx("0x4a")]("tableCellSuggestion",{allowIn:Xx("0x7f"),allowContentOf:Xx("0x7f"),isLimit:!0}),t[Xx("0x9b")][Xx("0x30")]({model:Xx("0x0"),view:Xx("0x51")});let i=null;t[Xx("0x5a")].on(Xx("0x12"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x27")]-1];l&&l[Xx("0x19")]||n._isForcedDefaultExecutionBlock||this[Xx("0x5c")][Xx("0x3f")][Xx("0x29")](Xx("0x1f"))[Xx("0x90")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0xb")](n[Xx("0x81")][Xx("0x70")]);if(!i.length)return!1;const x=i[0].findAncestor("table"),a=o[Xx("0x37")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x8e")],endRow:a[Xx("0x1d")],startColumn:c[Xx("0x8e")],endColumn:c.last};return 1==i.length&&(l[Xx("0x18")]+=o.getRows(r)-1,l.endColumn+=o[Xx("0x57")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[Xx("0x59")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x5a")][Xx("0x99")]((()=>{t.model[Xx("0x12")](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("0x27")]&&n[Xx("0x67")](s,Xx("0x72"),{tablePasteChainId:o}),r.length&&n[Xx("0x67")](r,Xx("0x9"),{tablePasteChainId:o}),a.length&&n[Xx("0x67")](a,Xx("0xc"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x27")]&&n[Xx("0x34")](c,Xx("0xc"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x7e")](l[Xx("0x79")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x23"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Xx("0x8f")](o),i=e.find((t=>t[Xx("0x6f")]()[Xx("0x92")](r)));i&&n[Xx("0x45")]([i[Xx("0x41")],s])}n[Xx("0x27")]&&d[Xx("0x58")](Xx("0x2f"),Object[Xx("0x44")](n))}i=null})))}),{priority:e.priorities[Xx("0x4b")]+10}),t[Xx("0x9e")][Xx("0x29")](Xx("0x96")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x59")]();const r=n[Xx("0xa1")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x46")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x1b")](0));for(const t of Array[Xx("0x83")](x.getChildren()))s[Xx("0x2e")](t,r,Xx("0x9c"));const t=i[Xx("0x9a")].includes(n.row),e=i.columnInsertionIndexes[Xx("0x14")](n[Xx("0x22")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s.createRangeIn(r));else{const t=s.createElement(Xx("0x0")),e=s[Xx("0x49")](Xx("0x0"));s[Xx("0x84")](s[Xx("0x43")](r),e),s[Xx("0x2e")](t,r,0);for(const e of Array[Xx("0x83")](x[Xx("0x4")]()))s[Xx("0x2e")](e,t,"end");l=s.createRangeOn(t),d=s[Xx("0x8f")](e)}const u=Array[Xx("0x83")](x[Xx("0x88")]())[Xx("0x7d")]((([t])=>$x[Xx("0x14")](t)));i[Xx("0x5e")][Xx("0x45")]({element:r,attributes:u[Xx("0x27")]?Object[Xx("0x44")](u):null}),l&&i[Xx("0x6a")][Xx("0x45")](l),d&&i[Xx("0x4f")][Xx("0x45")](d)}),{priority:Xx("0x4b")}),o.on(Xx("0xd"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x9d")]||1;i[Xx("0x93")]=new Array(a)[Xx("0x1e")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x4c")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x6")][Xx("0x45")](t[Xx("0x5a")][Xx("0x8f")](e))}),{priority:Xx("0x62")}),o.on(Xx("0x77"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x52")]||1;i[Xx("0x9a")]=new Array(a)[Xx("0x1e")](x)[Xx("0x79")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x4c")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x87")][Xx("0x45")](t[Xx("0x5a")][Xx("0x8f")](e))}),{priority:Xx("0x62")}),n[Xx("0x61")][Xx("0x60")]((e=>{if(e.subType&&e[Xx("0x24")][Xx("0x26")](Xx("0xc")))return e[Xx("0x56")]?{}:{type:Xx("0x1"),content:Yo(t[Xx("0x65")],Xx("0x3d"))}}));const x=()=>{};for(const t of["tablePaste",Xx("0x9"),"tablePasteRow",Xx("0x23")])n[Xx("0x55")][Xx("0x76")]("insertion",t,Xx("0x8d"),x),n[Xx("0x55")][Xx("0x76")]("deletion",t,"join",x);n[Xx("0x55")].registerCustomCallback(Xx("0x28"),Xx("0x23"),"discard",x),n._suggestionFactory.registerCustomCallback(Xx("0x28"),"tablePasteCell",Xx("0x47"),((e,n,o)=>{const s=e[Xx("0x79")]((t=>t[Xx("0x31")]())).filter((t=>t)),r=new Map(s[Xx("0x79")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x5e")])e&&r[Xx("0x66")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xx("0xa2")](o[Xx("0x2f")])){const o=t[Xx("0x5a")].markers[Xx("0x29")](e),s=o?o[Xx("0x6f")]()[Xx("0x31")]():null;s&&r[Xx("0x66")](s,n)}t[Xx("0x5a")][Xx("0x99")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Xx("0x76")](e,"tablePaste",o,((s,r,i)=>{t.model[Xx("0x99")]((t=>{const x=[];for(const t of s){const e=t[Xx("0xa")][Xx("0x97")];e.is(Xx("0x7b"),Xx("0x0"))&&x[Xx("0x45")](e)}n[Xx("0x55")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x94")!=e.root.rootName&&t.unwrap(e)}))}))};a("insertion",Xx("0x47")),a(Xx("0x1"),"discard"),a(Xx("0x7"),Xx("0x47")),a("deletion",Xx("0x38")),n[Xx("0x55")].registerCustomCallback("insertion",Xx("0x72"),Xx("0x38"),(t=>{const e=t.map((t=>t[Xx("0x31")]())),n=e[0][Xx("0x42")]("table"),{minRow:r,maxRow:i}=s[Xx("0x80")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xx("0x55")][Xx("0x76")]("insertion",Xx("0x9"),"discard",(t=>{const e=t[Xx("0x79")]((t=>t.getContainedElement())),n=e[0][Xx("0x42")](Xx("0x1c")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xx("0x7c")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x24")]||!e.subType[Xx("0x26")]("tablePaste"))return;const o=e[Xx("0x69")][Xx("0x6c")],s=n[Xx("0x3")]().filter((t=>t[Xx("0x15")]&&t[Xx("0x69")]&&t[Xx("0x69")].tablePasteChainId==o));s[Xx("0x27")]&&e.getAllAdjacentSuggestions()[Xx("0x27")]!=s[Xx("0x27")]&&s[Xx("0x11")](((t,e)=>(t[Xx("0x48")]=e,e[Xx("0x56")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x21")](t[Xx("0xe")]),s=[Xx("0x39"),"ck-suggestion-marker-insertion"],r=n.activeMarkers.includes(t[Xx("0xe")]);return r&&s.push(Xx("0xf")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x4e"),c,{priority:Xx("0x4b")}),n.on(Xx("0x10"),c,{priority:Xx("0x4b")}),t[Xx("0x5a")][Xx("0x81")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x83")](t[Xx("0x5a")][Xx("0x81")][Xx("0x98")][Xx("0x3a")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x21")](s);if(Xx("0x6d")!=o||Xx("0x7")!=i||r[Xx("0x86")])continue;if(!n[Xx("0x8b")](x))continue;const a=n[Xx("0x36")](x)[Xx("0x3c")](),c=t.plugins.get(Xx("0x3e")).me;for(const t of n.getSuggestions())if(t[Xx("0x15")]&&t.author==c&&Xx("0x28")==t[Xx("0x2b")]&&Xx("0x23")==t.subType&&t[Xx("0x3c")]()[Xx("0x71")]((t=>a[Xx("0x5")]((e=>e.containsRange(t,!0))))))for(const n of t[Xx("0x74")]())n[Xx("0x15")]&&(n[Xx("0x38")](),e=!0)}return e})),t.model[Xx("0x81")].registerPostFixer((e=>{const o=t.commands[Xx("0x29")](Xx("0x33"));if(!o||!o._createdBatches.has(e.batch))return!1;let s=!1;const r=t.plugins[Xx("0x29")](Xx("0x3e")).me,i=t.model[Xx("0x81")].differ[Xx("0x16")](),x=Array[Xx("0x83")](t[Xx("0x5a")][Xx("0x81")][Xx("0x98")].getChangedMarkers())[Xx("0x7d")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x21")](t);return Xx("0x6d")==o&&Xx("0xc")==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Xx("0x2e")!=t[Xx("0x2b")]||Xx("0x0")!=t[Xx("0x41")]||1!=t[Xx("0x27")])continue;const n=e[Xx("0x85")](t[Xx("0x2d")],t[Xx("0x2d")][Xx("0x95")](1));if(!x[Xx("0x8a")]((({data:t})=>t[Xx("0x17")][Xx("0x92")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x17")])){e[Xx("0x6b")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x81")][Xx("0x35")]((e=>{let o=!1;const s=t.plugins.get(Xx("0x3e")).me,r=n[Xx("0x3")]()[Xx("0x7d")]((t=>t[Xx("0x15")]&&t[Xx("0x89")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0xc")==t.subType)for(const e of t[Xx("0x78")]()){const n=e[Xx("0x6f")]()[Xx("0x31")]();if(n)if(n.is(Xx("0x7b"),Xx("0x0"))&&Zx(n)){t[Xx("0x75")](e.name),i.add(n),o=!0;const s=n[Xx("0x7a")],r=n[Xx("0x2c")],a=s&&s.is(Xx("0x7b"),Xx("0x0")),c=r&&r.is(Xx("0x7b"),Xx("0x0"));a&&!i[Xx("0x4d")](s)&&x[Xx("0x2a")](s),c&&!i[Xx("0x4d")](r)&&x[Xx("0x2a")](r)}else n.is(Xx("0x7b"),Xx("0x68"))&&n[Xx("0x8")]&&(t.removeMarker(e[Xx("0x41")]),o=!0)}else if(Xx("0x23")==t[Xx("0x24")]){if(!t[Xx("0x69")]||!t.attributes.tablePasteChainId)continue;const e=t[Xx("0x69")][Xx("0x2f")];if(e&&Object.keys(e)[Xx("0x27")])continue;const n=t[Xx("0x69")][Xx("0x6c")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x24")]&&e.subType[Xx("0x26")]("tablePaste")){if(!e[Xx("0x69")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Xx("0x69")][Xx("0x6c")]==n){s=!1;break}}i&&s&&(t[Xx("0x40")](),o=!0)}for(const t of i)e[Xx("0x73")](t);for(const t of x)e[Xx("0x13")](t);return o})),t[Xx("0x9b")][Xx("0x20")](Xx("0x82"))[Xx("0x1a")]({model:Xx("0x53"),view:(t,e)=>l(t),converterPriority:"high"}),t[Xx("0x9b")][Xx("0x20")](Xx("0x3b"))[Xx("0x1a")]({model:Xx("0x53"),view:(t,e)=>e[Xx("0x25")][Xx("0x8c")]?l(t,!1):null,converterPriority:Xx("0x4b")});const d=t[Xx("0x9f")][Xx("0x2")];this[Xx("0x6e")](d[Xx("0x81")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Xx("0x43")](e[Xx("0xa0")])[Xx("0x5f")]())t.is(Xx("0x7b"),Xx("0x51"))&&n[Xx("0x45")](t);d[Xx("0x99")]((t=>{for(const e of n)t.move(t[Xx("0x43")](e),t[Xx("0x63")](e)),t[Xx("0x73")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x1b")](0);return e.is(Xx("0x7b"),Xx("0x68"))&&e[Xx("0x8")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x4c")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["get","document","_suggestionFactory","model","enableCommand","getContainedElement","resizeTable","getSuggestions","columnWidths","markBlockFormat","editor","getTableColumnsWidths","TableColumnResizeEditing","formatGroupId","plugins","accept","afterInit","bind","TrackChangesEditing","registerCustomCallback","has","getSelectedElement","data","commandParams","getSuggestionCallback","formatBlock","getColumnGroupElement","registerDescriptionCallback","tableWidth","discard","*Format:* resize table","handleResizeTableWidthCommand"];var ea,na;ea=ta,na=329,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x7")](){if(!this[oa("0x1")][oa("0x5")][oa("0xb")](oa("0x3")))return;const t=this.editor[oa("0x5")][oa("0x17")](oa("0x9"));t[oa("0x1b")]("resizeTableWidth",this[oa("0x16")][oa("0x8")](this)),t.enableCommand("resizeColumnWidths",this[oa("0x16")][oa("0x8")](this)),t[oa("0x19")][oa("0xa")](oa("0x10"),oa("0x1d"),oa("0x6"),t[oa("0x19")][oa("0xf")](oa("0x10"),null,"discard")),t._suggestionFactory[oa("0xa")]("formatBlock",oa("0x1d"),oa("0x14"),t._suggestionFactory.getSuggestionCallback(oa("0x10"),null,"accept")),t._descriptionFactory[oa("0x12")](this.handleSuggestionDescription[oa("0x8")](this))}handleResizeTableWidthCommand(t,e){const n=this[oa("0x1")][oa("0x5")][oa("0x17")]("TrackChangesEditing"),o=this[oa("0x1")][oa("0x5")][oa("0x17")]("TableColumnResizeEditing"),s=e.table||this[oa("0x1")][oa("0x1a")][oa("0x18")].selection[oa("0xc")]();this.editor[oa("0x1a")].change((()=>{const r=o[oa("0x11")](s);let i=r?o[oa("0x2")](r):null,x=s.getAttribute(oa("0x13"))||null;const a=e[oa("0x13")]||x,c=e[oa("0x1f")]||i,l=this[oa("0x1")][oa("0x5")][oa("0x17")]("Users").me;for(const t of n[oa("0x1e")]()){const e=t[oa("0x1c")]();if("resizeTable"===t.subType&&e===s){t.author!==l&&t[oa("0x14")]();const e=t[oa("0xd")][oa("0xe")];x=e[0][oa("0x13")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x0")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1d")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x1d")===e[oa("0x4")]){const t=oa("0x15");return{type:"format",content:Yo(this[oa("0x1")].locale,t)}}}}const ra=["TrackChangesEditing","enableCommand","Template","insertTemplate","get","has","afterInit","plugins"];var ia,xa;ia=ra,xa=192,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x6")](){const t=this.editor;t.plugins[aa("0x5")](aa("0x2"))&&t[aa("0x7")][aa("0x4")](aa("0x0"))[aa("0x1")](aa("0x3"))}}const la=["tableOfContents","ELEMENT_TABLE_OF_CONTENTS","TrackChangesEditing","commands","plugins","enableCommand","editor","locale","_descriptionFactory","afterInit","insertTableOfContents","get"];var da,ua;da=la,ua=218,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[ga("0x4")];if(!t[ga("0x1")][ga("0x9")]("insertTableOfContents"))return;t[ga("0x2")][ga("0x9")](ga("0x0"))[ga("0x3")](ga("0x8"));const e=t[ga("0x2")][ga("0x9")](ga("0x0")),n=t[ga("0x5")];e[ga("0x6")].registerElementLabel(ga("0xa"),(t=>Yo(n,ga("0xb"),t)))}}const fa=["newRange","title-content","registerElementLabel","element","_descriptionFactory","removeMarker","TrackChangesEditing","differ","isTouching","registerPostFixer","getChangedMarkers","ELEMENT_TITLE","forward","schema","afterInit","isCollapsed","createRange","document","get","plugins","start","updateMarker","locale","model","from","Title","end","suggestion","getNearestSelectionRange","isEqual"];var ha,pa;ha=fa,pa=336,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x8")](){const t=this.editor;if(!t[ba("0xd")].has(ba("0x13")))return;const e=t[ba("0xd")][ba("0xc")](ba("0x0"));e[ba("0x1c")][ba("0x1a")](ba("0x19"),(()=>Yo(t[ba("0x10")],ba("0x5")))),t[ba("0x11")].document[ba("0x3")]((n=>{let o=!1;const s=Array[ba("0x12")](t.model[ba("0xb")][ba("0x1")][ba("0x4")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x15")!==s||!i[ba("0x18")])continue;const x=i[ba("0x18")],a=x[ba("0x14")].nodeBefore;if(!a||!a.is(ba("0x1b"),ba("0x19")))continue;if(!x.start[ba("0x2")](x[ba("0x14")]))continue;const c=t.model[ba("0x7")][ba("0x16")](x.end,ba("0x6"));if(c&&c[ba("0x9")]){const t=n[ba("0xa")](x[ba("0xe")],c[ba("0xe")]);t[ba("0x17")](x)||(n[ba("0xf")](r,{range:t}),o=!0)}o||(n[ba("0x1d")](r),o=!0)}return o}))}}const _a=["plugins","undo","get","TrackChangesEditing","editor","UndoEditing","has","enableCommand"];var Ta,Ca;Ta=_a,Ca=487,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x5")],e=t.plugins[ya("0x3")](ya("0x4"));t[ya("0x1")][ya("0x7")](ya("0x6"))&&(e[ya("0x0")](ya("0x2")),e.enableCommand("redo"))}}const Aa=["requires","get","afterInit","enableCommand","has","plugins","TableCaptionEditing","TrackChangesEditing"];var va,Ra;va=Aa,Ra=169,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("0x7")](){return[wx]}[Sa("0x1")](){const t=this.editor;t[Sa("0x4")][Sa("0x3")](Sa("0x5"))&&t[Sa("0x4")][Sa("0x0")](Sa("0x6"))[Sa("0x2")]("toggleTableCaption")}}const La=["get","*Format:* set order to reversed","selection","isFirstBlockOfListItem","reversed","_getSuggestionBlocks","getListTypeFromListStyleType","has","listReversed","document","type","model","length","format","ELEMENT_","bind","numbered","startIndex","toUpperCase","commandName","getSelectedBlocks","registerDescriptionCallback","*Format:* set order to regular","markMultiRangeBlockFormat","handleListStartCommand","TrackChangesEditing","editor","_getSuggestionBlocksForListStyle","DocumentListUtils","plugins","handleListStyleCommand","listStart","commandParams","expandListBlocksToCompleteList","_LIST_","DocumentListPropertiesEditing","replace","_getTranslationKeyForListStyle","*Format:* set start index to %0","listStyle","handleListReversedCommand","styles","push","DocumentListPropertiesUtils","listType","change","filter","getAttribute","enableCommand"];var Na,Ma;Na=La,Ma=164,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[wa("0x9")].plugins[wa("0x27")](wa("0x12")))return;const t=this[wa("0x9")].config.get("list.properties"),e=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0x8"));t[wa("0x18")]&&e[wa("0x1f")](wa("0x16"),this[wa("0xd")][wa("0x2f")](this)),t[wa("0x24")]&&e.enableCommand("listReversed",this.handleListReversedCommand.bind(this)),t[wa("0x0")]&&e[wa("0x1f")](wa("0xe"),this[wa("0x7")].bind(this)),e._descriptionFactory[wa("0x4")](this.handleDescriptions[wa("0x2f")](this))}[wa("0xd")](t,e={}){const n=this.editor.plugins[wa("0x20")](wa("0x8")),o=this[wa("0xa")]();this[wa("0x9")].model[wa("0x1c")]((()=>{n[wa("0x6")](o,{commandName:wa("0x16"),commandParams:[{type:e[wa("0x2a")]}],formatGroupId:wa("0x16")})}))}[wa("0x17")](t,e={}){const n=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0x8")),o=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0xb")),s=this[wa("0x25")]((t=>o.isListItemBlock(t)&&wa("0x30")===t[wa("0x1e")](wa("0x1b"))));null!==s&&this.editor.model[wa("0x1c")]((()=>{n[wa("0x6")](s,{commandName:wa("0x28"),commandParams:[{reversed:e.reversed}],formatGroupId:wa("0x28")})}))}[wa("0x7")](t,e={}){const n=this.editor[wa("0xc")][wa("0x20")](wa("0x8")),o=this.editor[wa("0xc")].get(wa("0xb")),s=this[wa("0x25")]((t=>o.isListItemBlock(t)&&wa("0x30")===t[wa("0x1e")]("listType")));null!==s&&this[wa("0x9")][wa("0x2b")][wa("0x1c")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0xe"),commandParams:[{startIndex:e[wa("0x0")]}],formatGroupId:wa("0xe")})}))}handleDescriptions(t){const e=this[wa("0x9")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x2")]){case"listStyle":o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0].type)))};break;case"listReversed":o=n[wa("0xf")][0][wa("0x24")]?wa("0x21"):wa("0x5"),s={type:"format",content:Yo(e,o)};break;case wa("0xe"):o=wa("0x15"),s={type:wa("0x2d"),content:Yo(e,o,n[wa("0xf")][0].startIndex)}}return s}_getSuggestionBlocksForListStyle(){const t=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0xb"));let e=Array.from(this.editor.model[wa("0x29")][wa("0x22")][wa("0x3")]());return e[wa("0x19")](...t[wa("0x10")](e)),e=[...new Set(e)],e}[wa("0x25")](t){const e=this.editor.plugins[wa("0x20")](wa("0xb"));let n=Array.from(this[wa("0x9")][wa("0x2b")].document.selection.getSelectedBlocks())[wa("0x1d")](t);if(!n[wa("0x2c")])return null;n=e[wa("0x10")](n);const o=[];for(const t of n)e[wa("0x23")](t)&&o.push(t);return o}[wa("0x14")](t){return wa("0x2e")+this[wa("0x9")].plugins[wa("0x20")](wa("0x1a"))[wa("0x26")](t)[wa("0x1")]()+wa("0x11")+t.toUpperCase()[wa("0x13")](/-/g,"_")}}const Fa=["getAttribute","findAncestor","tableCellBorderWidth","_suggestionFactory","nodeAfter","tableCellHeight","selection","editor","getSuggestions","registerCustomCallback","tableCellWidth","tableHeight","subType","tableCellProperties","start","getSelectionAffectedTableCells","pluginName","table","handleDiscardAction","tableBackgroundColor","removeAttribute","has","*Format:* change table cell properties","tableCellBorderColor","format","tableProperties","get","tableCellBackgroundColor","handleSuggestionDescription","document","enableCommand","tableBorderColor","tableCellPadding","locale","_handlePropertyChange","commandParams","getFirstPosition","change","_descriptionFactory","discard","tableCellHorizontalAlignment","tableAlignment","registerDescriptionCallback","batch","_getSuggestion","formatBlock","tableWidth","data","setAttribute","plugins","accept","TablePropertiesEditing","getSuggestionCallback","tableCellVerticalAlignment","tableCellBorderStyle","TableCellPropertiesEditing","TrackChangesEditing","model","*Format:* change table properties"];var Pa,Da;Pa=Fa,Da=325,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("0x36")]=[Ba("0x1"),"tableBorderStyle","tableBorderWidth",Ba("0xb"),Ba("0x10"),Ba("0x28"),Ba("0x30")],this.tableCellProperties=[Ba("0x34"),Ba("0x18"),Ba("0x1f"),Ba("0x2"),Ba("0x27"),Ba("0x22"),Ba("0x38"),Ba("0xa"),Ba("0x17")]}static get[Ba("0x2d")](){return"TrackChangesTableProperties"}afterInit(){const t=this[Ba("0x24")].plugins[Ba("0x37")](Ba("0x1a"));if(this[Ba("0x24")].plugins.has(Ba("0x15"))){for(const e of this[Ba("0x36")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x24")][Ba("0x1b")].document.selection[Ba("0x6")]()[Ba("0x1e")](Ba("0x2e"));this[Ba("0x4")](e,[o],this.tableProperties,"tableProperties",t,n)}));t._suggestionFactory[Ba("0x26")](Ba("0xf"),Ba("0x36"),Ba("0x14"),t[Ba("0x20")].getSuggestionCallback(Ba("0xf"),null,Ba("0x9"))),t[Ba("0x20")][Ba("0x26")](Ba("0xf"),Ba("0x36"),Ba("0x9"),((t,e)=>this[Ba("0x2f")](this.tableProperties,t,e))),t._suggestionFactory[Ba("0x26")](Ba("0xf"),Ba("0x36"),"join",(()=>!1))}if(this.editor[Ba("0x13")][Ba("0x32")](Ba("0x19"))){for(const e of this[Ba("0x2a")])t[Ba("0x0")](e,((t,n)=>{const o=this[Ba("0x24")].plugins[Ba("0x37")]("TableUtils")[Ba("0x2c")](this[Ba("0x24")].model[Ba("0x3a")][Ba("0x23")]);this[Ba("0x4")](e,o,this[Ba("0x2a")],Ba("0x2a"),t,n)}));t[Ba("0x20")].registerCustomCallback(Ba("0xf"),"tableCellProperties",Ba("0x14"),t._suggestionFactory[Ba("0x16")](Ba("0xf"),null,Ba("0x9"))),t._suggestionFactory[Ba("0x26")](Ba("0xf"),"tableCellProperties",Ba("0x9"),((t,e)=>this[Ba("0x2f")](this[Ba("0x2a")],t,e))),t[Ba("0x20")][Ba("0x26")]("formatBlock",Ba("0x2a"),"join",(()=>!1))}t[Ba("0x8")][Ba("0xc")]((t=>this[Ba("0x39")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Ba("0x24")][Ba("0x13")][Ba("0x37")]("TrackChangesEditing");this.editor.model.enqueueChange(r[Ba("0xd")],(()=>{for(const t of e)if(this[Ba("0xe")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1d")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Ba("0x2f")](t,e,n){const o=e[0][Ba("0x2b")][Ba("0x21")],s=n[Ba("0x5")][0];this[Ba("0x24")][Ba("0x1b")][Ba("0x7")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x12")](n,s[n],o):e[Ba("0x31")](n,o)}))}[Ba("0x39")](t){if(t[Ba("0x11")])switch(t[Ba("0x29")]){case Ba("0x36"):return{type:Ba("0x35"),content:Yo(this[Ba("0x24")][Ba("0x3")],Ba("0x1c"))};case Ba("0x2a"):return{type:Ba("0x35"),content:Yo(this[Ba("0x24")].locale,Ba("0x33"))}}}[Ba("0xe")](t,e){const n=this.editor[Ba("0x13")][Ba("0x37")](Ba("0x1a"));for(const o of n[Ba("0x25")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ua=["createRange","suggestion:","markerToData","containsRange","catch","then","resolve","document","has","track-changes-adapter-already-set","isCollapsed","split","low","trackChangesCommand","widget","_registerDefaultCallbacks","parent","plugins","Users","containerElement","discardSelectedSuggestions","getCommentThread","forceDefaultExecution","next","range","_createSuggestion","addHighlight","formatBlock:discard","filter","_handleNewSuggestionMarker","differ","creator","clone","ck-suggestion-marker-","createRangeIn","insertContent","collaboration.channelId","data-suggestion","end","markInsertion","enqueueChange","bindElementToMarker","root","previous","addMarker","always","_setSuggestionRange","name","delete","return","_adapter","conversion","$graveyard","getChanges","group","formatBlock:join","trackChanges","size","removeClass","authorName","suggestion","insertion:chain","nodeAfter","updateMarker","addUser","isAtEnd","discard","change:data","getShiftedBy","containsPosition","listenTo","ready","createPositionAt","multi","splice","markBlockFormat","_updateSuggestionData","author","deletion:","rethrowUnexpectedError","getDifference","values","isInsideObject","_addSuggestionMarker","isUndo","markMultiRangeInsertion","markers","getAncestors","toViewElement","formatBlock","multipleBlocks","_enabledCommands","insertion","position","markDeletion","item","start","open","hasSuggestion","commentThread","markerName","_cutOutSuggestionMarker","change:_saved","marker-count","discardAllSuggestions","oldRange","addMarkerName","_suggestions","_checkSuggestionCorrectness","formatInline:join","_removeSuggestion","suggestionUnloaded","notReady","fire","getAttribute","map","ck-suggestion-marker","_setSuggestionData","_getAuthorFromId","_findSuggestions","formatBlock:","deletion:discard","dataDowncast","markMultiRangeDeletion","markerNameToElements","deletion","change","writer","config","getLastMatchingPosition","never","editingDowncast","getCustomProperty","formatInline:chain","skipNestingCheck","getNearestSelectionRange","_joinSuggestions","discardSuggestion","getRanges","after","updateSuggestion","unbindElementFromMarkerName","_editor","fetchCommentThread","stop","markerToHighlight","getUser","_commentsRepository","backward","isAfter","ck-suggestion-marker-formatBlock","commandName","formatBlock:accept","isBefore","nodeBefore","trackChanges.mergeNestedSuggestions","getRange","insert","@external","fromCharCode","CommentsRepository","getFirstMarker","for","isOwn","suggestionChanged","_saved","stopListening","mapper","consume","addRange","reconvertMarker","getMarkers","removeMarker","createdAt","value","acceptAllSuggestions","isRemovable","ck-suggestion-marker--active","getItems","registerPostFixer","isTouching","normal","authoredAt","_splitMarkerName","accepted","_rangeIsInLocalUserInsertion","add","schema","track-changes-adapter-missing-getsuggestion","unbind","clear","elementEnd","hasComments","attributes","_refreshSuggestionsChain","_breakSuggestionMarker","formatBlock:chain","setSelection","elementToElement","buildSuggestion","_defaultCallbacks","markInlineFormat","enableCommand","join","some","upcast","head","model","define","from","_suggestionState","createSelection","isInContent","formatInline:","getFirstRange","subType","track-changes-user-not-found","markMultiRangeBlockFormat","chain","every","pluginName","addClass","_model","registerCustomCallback","acceptSuggestion","addSuggestionData","external:","_addThreadToSuggestion","getSuggestion","_trackFormatChanges","enableReadOnlyMode","deletion:accept","rootName","set","getChangedMarkers","acceptSelectedSuggestions","data","addMarker:suggestion:formatBlock","getAllAdjacentSuggestions","_joinWithAdjacentSuggestions","update:suggestion","containsRangeInObject","isObject","elementStart","getSuggestions","getIntersection","getSuggestionCallback","deleteContent","trackChanges.trackFormatChanges","consumable","removed","setAttribute","length","getMultiRangeId","suggestion-type","remove","formatInline:accept","_getExternalAuthor","createPositionBefore","isIntersectingWithRange","splitPosition","element","createPositionAfter","isEqual","addSuggestion","locale","before","type","formatInline","push","_customCallbacks","dataToMarker","commands","newRange","error-saving-suggestion-data-suggestion-discarded","selection","get","adapter","requires","formatGroupId","includes","_descriptionFactory","TrackChangesEditing","options","rejected","removeComment","containsItem","removeMarkers","showSuggestionHighlights","batch","editing","addMarker:suggestion","editor","isBlock","init","removeMarker:suggestion:formatBlock","isLimit","high","isExternal","howMany","PENDING_ACTION_SUGGESTION","insertion:","_suggestionFactory","suggestionLoaded","isNextTo","markerReady","_mergeNestedSuggestions","_isForcedDefaultExecutionBlock","track-changes-suggestion-data-mismatch","removeAttribute","$marker","isMultiRange","detach","execute","activeMarkers","accept","fromRange"];var Ga,Ha;Ga=Ua,Ha=195,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("0x53")](){return[Wa("0x11a"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,zs,Js,er,Oa,xr,ur,br,yr,Lr,Pr,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("0x19")](){return Wa("0x57")}constructor(t){function e(t){return t[Wa("0xed")]((t=>String[Wa("0x119")](t))).join("")}super(t),this[Wa("0x26")](Wa("0x77"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Wa("0x1b")][Wa("0xf8")]((()=>{for(const e of[...s,...o])this._model.markers[Wa("0x82")](e)&&t[Wa("0x5f")][Wa("0x124")](e)}))})),this[Wa("0x56")]=new ss(this[Wa("0x61")].model[Wa("0x135")],this[Wa("0x61")].locale),this[Wa("0xac")]=null,this[Wa("0x6b")]=new Va(this.editor),this[Wa("0xe5")]=new Map,this[Wa("0x10d")]=t[Wa("0x8b")][Wa("0x51")](Wa("0x11a")),this[Wa("0xd5")]=new Set,this[Wa("0x1b")]=this.editor[Wa("0xc")],this[Wa("0xf")]=new WeakMap,this[Wa("0x70")]=!1,t[Wa("0xfa")][Wa("0xd")]("trackChanges.trackFormatChanges","default"),this[Wa("0x22")]=t[Wa("0xfa")][Wa("0x51")](Wa("0x35")),t.config[Wa("0xd")](Wa("0x115"),!0),this[Wa("0x6f")]=t[Wa("0xfa")][Wa("0x51")](Wa("0x115")),this[Wa("0x87")]=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,52,53,56])}[Wa("0x63")](){const t=this[Wa("0x61")];t[Wa("0xad")].for("editingDowncast")[Wa("0x10b")]({model:Wa("0xb6"),view:t=>{const{id:e,type:n}=this[Wa("0x131")](t[Wa("0xde")]),o=["ck-suggestion-marker",Wa("0x9b")+n];let s=3e3;return this[Wa("0x77")].includes(t.markerName)&&(o[Wa("0x4a")](Wa("0x12b")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Wa("0xad")][Wa("0x11c")](Wa("0xf4"))[Wa("0x134")]((e=>{e.on(Wa("0x60"),((e,n,o)=>{if(!o.options[Wa("0x5d")])return;const s=n[Wa("0xd9")];if(!s)return;const r=o[Wa("0x121")].toViewElement(s);t[Wa("0xc")][Wa("0x135")][Wa("0x2f")](s)&&r&&!r[Wa("0xfe")](Wa("0x88"))&&r.is(Wa("0x8d"))&&(0,x.toWidget)(r,o.writer)}),{priority:"high"})})),t[Wa("0xad")][Wa("0x11c")](Wa("0xf4"))[Wa("0x10b")]({model:"suggestion",view:(t,e)=>{if(!e.options[Wa("0x5d")])return null;const{type:n}=this[Wa("0x131")](t.markerName);return{classes:[Wa("0xee"),Wa("0x9b")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[Wa("0xd9")].is("selection"))return void s[Wa("0x36")][Wa("0x122")](o[Wa("0xd9")],n.name);const r=s[Wa("0x121")][Wa("0xd2")](o[Wa("0xd9")]);if(!o[Wa("0xd9")].is(Wa("0x42"))||!t[Wa("0xc")][Wa("0x135")][Wa("0x62")](o[Wa("0xd9")])||r.getCustomProperty(Wa("0x94")))return;const{id:i}=this[Wa("0x131")](o[Wa("0xde")]);s[Wa("0xf9")].addClass([Wa("0xee"),Wa("0x110")],r),s[Wa("0xf9")][Wa("0x38")](Wa("0x9f"),i,r),s[Wa("0x121")][Wa("0xa3")](r,o[Wa("0xde")]),e&&(this[Wa("0x77")].includes(o[Wa("0xde")])?s[Wa("0xf9")][Wa("0x1a")](Wa("0x12b"),r):s[Wa("0xf9")][Wa("0xb4")](Wa("0x12b"),r));for(const e of t[Wa("0xc")][Wa("0x9c")](o[Wa("0xd9")])[Wa("0x12c")]())s[Wa("0x36")][Wa("0x122")](e,n[Wa("0xa9")]);s[Wa("0x36")][Wa("0x122")](o.item,n[Wa("0xa9")])};t[Wa("0xad")].for(Wa("0xf4"))[Wa("0x134")]((t=>{t.on(Wa("0x2a"),((t,e,o)=>{o[Wa("0x58")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[Wa("0xad")][Wa("0x11c")](Wa("0xf4"))[Wa("0x7c")]({model:Wa("0xb6"),view:(t,e)=>e[Wa("0x58")][Wa("0x5d")]?null:{group:Wa("0xb6"),name:t.substr(11)}}),t[Wa("0xad")][Wa("0x11c")](Wa("0xa"))[Wa("0x3")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Wa("0x7b")+t[Wa("0xec")](Wa("0x3b"))+":"+t.getAttribute("id");return t[Wa("0xec")](Wa("0xe1"))&&(n+=":"+t[Wa("0xec")]("marker-count")),e.createElement(Wa("0x73"),{"data-name":n})}}),t[Wa("0xad")].for(Wa("0xa"))[Wa("0x4c")]({view:Wa("0xb6")}),t[Wa("0xad")][Wa("0x11c")](Wa("0xfd"))[Wa("0x134")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:"high"})})),t[Wa("0xad")][Wa("0x11c")](Wa("0xfd"))[Wa("0x134")]((t=>{t.on(Wa("0x64"),((t,e,n)=>{const o=n[Wa("0x121")][Wa("0xf6")](e[Wa("0xde")]);if(o)for(const t of o)t[Wa("0xfe")](Wa("0x94"))||(n.writer[Wa("0xb4")](["ck-suggestion-marker",Wa("0x110"),"ck-suggestion-marker--active"],t),n[Wa("0xf9")][Wa("0x72")]("data-suggestion",t),n[Wa("0x121")][Wa("0x107")](t,e.markerName))}),{priority:"high"})})),t[Wa("0xc")][Wa("0x81")][Wa("0x12d")]((e=>{let n=!1;const o=Array[Wa("0xe")](t[Wa("0xc")][Wa("0x81")][Wa("0x98")].getChangedMarkers()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(Wa("0xb6")!==o)continue;const d=this._suggestions[Wa("0x51")](l);if(null!=a[Wa("0x4e")])if(Wa("0x49")==c&&(n=n||Xa(a.newRange,x,e,t.model[Wa("0x135")])),a[Wa("0x4e")][Wa("0x84")]||Wa("0xae")==a[Wa("0x4e")][Wa("0xa4")].rootName||Wa("0xd3")==c&&!Ja(a.newRange)||Wa("0xf7")==c&&(qa(i=a[Wa("0x4e")])||(r=i)[Wa("0xda")].parent==r.end[Wa("0x114")]&&r.start.isAtEnd))e[Wa("0x126")](x),n=!0;else{if(!d||!d[Wa("0x11")])continue;s[Wa("0x134")](d)}}var r,i;return s[Wa("0xb3")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[Wa("0xc")].document[Wa("0x12d")]((e=>{let n=!1;for(const o of t[Wa("0xc")][Wa("0x81")][Wa("0x98")][Wa("0xaf")]()){if(Wa("0x117")!=o[Wa("0x48")])continue;const s=o[Wa("0xd7")][Wa("0xbe")](o[Wa("0x39")]);if(s[Wa("0xbb")])for(const r of this._suggestions[Wa("0xcb")]()){if(r.isMultiRange||!r[Wa("0x11")])continue;if("formatBlock"!=r[Wa("0x48")])continue;const i=r.getFirstRange();if(i[Wa("0xda")][Wa("0x8a")]!=i[Wa("0xa0")][Wa("0x8a")]&&i[Wa("0xa0")].isEqual(o[Wa("0xd7")])){const o=t[Wa("0xc")][Wa("0x7a")](i[Wa("0xda")],s);e.updateMarker(r[Wa("0x11b")](),{range:o}),n=!0}}}return n})),t.model[Wa("0xd0")].on(Wa("0x2d"),((t,e,n)=>{if(null==n){const{id:t}=this[Wa("0x131")](e[Wa("0xa9")]),n=this._suggestions[Wa("0x51")](t);n&&n[Wa("0xe4")](e[Wa("0xa9")])}})),t[Wa("0xc")][Wa("0x81")].on(Wa("0xbd"),(()=>{const e=Array[Wa("0xe")](t[Wa("0xc")].document[Wa("0x98")][Wa("0x27")]()).filter((t=>"suggestion"===this._splitMarkerName(t[Wa("0xa9")])[Wa("0xb0")]));if(0===e[Wa("0x39")])return;e.sort(((t,e)=>{const n=t[Wa("0x29")][Wa("0xe3")],o=e.data[Wa("0xe3")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start[Wa("0x113")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Wa("0x131")](t);if(null===s[Wa("0xe3")]){const e=this[Wa("0x97")](t);o[Wa("0x134")](e)}else{const t=this[Wa("0xe5")][Wa("0x51")](e);null!==s[Wa("0x4e")]||t[Wa("0x11")]?(n[Wa("0x134")](t[Wa("0xb")]),o[Wa("0x134")](t)):this[Wa("0xe8")](t)}}o[Wa("0xb3")]>0&&this[Wa("0x13c")](o);for(const t of n)this[Wa("0xeb")](Wa("0x11e"),t)})),t[Wa("0xc")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[Wa("0xe5")][Wa("0xb3")])return;if(!o.isDocumentOperation)return;if(o[Wa("0x5e")][Wa("0xce")]||!o[Wa("0x5e")].isLocal)return;let s,r;switch(o[Wa("0x48")]){case Wa("0x117"):s=t[Wa("0xc")][Wa("0xc2")](o[Wa("0xd7")]),r=s[Wa("0xbe")](o[Wa("0x68")]);break;case Wa("0x85"):s=t[Wa("0xc")][Wa("0xc2")](o[Wa("0x41")]),r=t[Wa("0xc")][Wa("0xc2")](o.moveTargetPosition);break;case"move":s=t[Wa("0xc")][Wa("0xc2")](o.targetPosition),r=s[Wa("0xbe")](o[Wa("0x68")]);break;default:return}const i=t.model[Wa("0x7a")](s,r);t[Wa("0xc")][Wa("0xf8")]((()=>{for(const{suggestion:t,meta:e}of this[Wa("0xf1")](i)){if(t.isMultiRange)continue;if(Wa("0x49")==t[Wa("0x48")])continue;const n=t[Wa("0x29")]&&t[Wa("0x29")][Wa("0xd4")];(Wa("0xd3")!=t.type||Wa("0x85")==o.type&&!n)&&(e[Wa("0x2e")]||Wa("0xd6")==t.type&&e[Wa("0x11d")]||t[Wa("0x13")]()[Wa("0x7d")](i)&&this[Wa("0x0")](t,s,r))}}))}),{priority:"lowest"}),t[Wa("0xc")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[Wa("0x90")])return;if(this[Wa("0x70")])return;if(!this[Wa("0x87")][Wa("0x128")])return;if(o[Wa("0x84")])return;const r=t[Wa("0xc")][Wa("0x135")],{start:i,end:x}=o[Wa("0x13")](),a=i.nodeAfter&&r[Wa("0x65")](i.nodeAfter)?null:r[Wa("0x101")](i,"forward"),c=x[Wa("0x114")]&&r.isLimit(x[Wa("0x114")])?null:r[Wa("0x101")](x,Wa("0x10e")),l=t[Wa("0xc")][Wa("0x7a")](a?a[Wa("0xda")]:i,c?c[Wa("0xa0")]:x);t.model.change((e=>{this[Wa("0xd8")](l);const n=t.model[Wa("0x135")][Wa("0x101")](l.start);o.is("documentSelection")?e[Wa("0x2")](n):o.setTo(n)})),e[Wa("0x10a")]()}),{priority:e.priorities[Wa("0x12f")]+10}),t[Wa("0xc")].on(Wa("0x9d"),((e,n)=>{const o=n[n[Wa("0x39")]-1];o&&o.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this.trackChangesCommand.value&&(t.model[Wa("0xf8")]((()=>{let o=t[Wa("0xc")][Wa("0x9d")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Wa("0xab")]=o[Wa("0x9a")]();const s=o[Wa("0xa0")][Wa("0x114")],r=t.model[Wa("0x135")];s&&r.isBlock(s)&&!r[Wa("0x2f")](s)&&(o=t[Wa("0xc")][Wa("0x7a")](o[Wa("0xda")],t[Wa("0xc")][Wa("0xc2")](s,Wa("0xa0")))),this[Wa("0xa1")](o)})),e[Wa("0x10a")]())}),{priority:Wa("0x66")}),this[Wa("0x61")][Wa("0x4d")][Wa("0x134")](Wa("0xb2"),this[Wa("0x87")]),this.enableCommand(Wa("0xb2"));const o=new p(t,this._suggestions);t[Wa("0x4d")][Wa("0x134")](Wa("0x1d"),o),this[Wa("0x7")](Wa("0x1d"));const s=new C(t,this[Wa("0xe5")]);t[Wa("0x4d")][Wa("0x134")](Wa("0x103"),s),this[Wa("0x7")]("discardSuggestion"),t[Wa("0x4d")].add(Wa("0x129"),new F(t,o,this[Wa("0xe5")])),this[Wa("0x7")](Wa("0x129")),t.commands[Wa("0x134")](Wa("0xe2"),new F(t,s,this[Wa("0xe5")])),this.enableCommand(Wa("0xe2")),t[Wa("0x4d")][Wa("0x134")]("acceptSelectedSuggestions",new U(t,o,this[Wa("0xe5")])),this[Wa("0x7")](Wa("0x28")),t[Wa("0x4d")][Wa("0x134")]("discardSelectedSuggestions",new U(t,s,this[Wa("0xe5")])),this[Wa("0x7")](Wa("0x8e"));const r=t[Wa("0x8b")][Wa("0x51")](Wa("0x11a"));this.listenTo(r,"addComment",((t,{threadId:e})=>{const n=this[Wa("0xe5")][Wa("0x51")](e);n&&n[Wa("0xdd")]&&1===n[Wa("0xdd")][Wa("0x39")]&&this[Wa("0xc6")](e,{hasComments:!0})}),{priority:Wa("0x86")}),this.listenTo(r,Wa("0x5a"),((t,{threadId:e})=>{const n=this[Wa("0xe5")][Wa("0x51")](e);n&&n[Wa("0xdd")]&&!n.commentThread[Wa("0x39")]&&this[Wa("0xc6")](e,{hasComments:!1})}),{priority:Wa("0x86")})}set[Wa("0x52")](t){if(this[Wa("0xac")])throw new e.CKEditorError(Wa("0x83"),this);this[Wa("0xac")]=t}get[Wa("0x52")](){return this[Wa("0xac")]}[Wa("0x31")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Wa("0xe5")][Wa("0xcb")]())t&&!e[Wa("0x11")]||n[Wa("0x4a")](e);return e?n[Wa("0xed")]((t=>t.toJSON())):n}[Wa("0x21")](t){const n=this[Wa("0xe5")][Wa("0x51")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[Wa("0xdc")](t){return this[Wa("0xe5")][Wa("0x82")](t)}[Wa("0x1e")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type.split(":"),i=this[Wa("0xe5")][Wa("0x51")](n)||this._createSuggestion(s,r,n,e,o);if(this[Wa("0x20")](i),this[Wa("0xe6")](i,s,r||null,e),i[Wa("0x127")]=t[Wa("0x127")],o&&o[Wa("0x118")]){const t=o[Wa("0x118")],e=this[Wa("0x3e")](t[Wa("0xb5")]);i.authoredAt=t[Wa("0x127")],i[Wa("0xc7")]=e,i[Wa("0x67")]=!0}else i[Wa("0x130")]=t[Wa("0x127")];switch(t[Wa("0x29")]&&(i[Wa("0x29")]=t.data),t.attributes&&(i[Wa("0x13b")]=t[Wa("0x13b")]),this[Wa("0xac")]&&this[Wa("0xac")][Wa("0x45")]||(i[Wa("0x11f")]=!0),this[Wa("0xf")][Wa("0x51")](i)){case Wa("0xea"):this[Wa("0xf")][Wa("0x26")](i,"dataReady");break;case Wa("0x6e"):i[Wa("0x11")]?(this[Wa("0xf")][Wa("0x26")](i,Wa("0xc1")),this[Wa("0xeb")](Wa("0x6c"),i)):this._suggestionState.set(i,Wa("0x37"))}return i}[Wa("0x1d")](t){this[Wa("0x90")]((()=>{this[Wa("0x61")][Wa("0xc")][Wa("0xf8")]((()=>{for(const e of t[Wa("0x2b")]())e.accept()}))}))}[Wa("0x103")](t){this[Wa("0x90")]((()=>{this.editor[Wa("0xc")][Wa("0xf8")]((()=>{for(const e of t[Wa("0x2b")]())e[Wa("0xbc")]()}))}))}[Wa("0x7")](t,n){const o=this[Wa("0x61")][Wa("0x4d")][Wa("0x51")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[Wa("0xd5")][Wa("0x134")](o),n&&o.on("execute",((t,e)=>{this[Wa("0x87")][Wa("0x128")]&&(this._isForcedDefaultExecutionBlock||e[Wa("0x39")]>0&&e[e[Wa("0x39")]-1]&&e[e[Wa("0x39")]-1].forceDefaultExecution||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[Wa("0x10a")]()))}),{priority:Wa("0x66")})}[Wa("0x90")](t){let n,o;const s=this[Wa("0x70")];this[Wa("0x70")]=!0;try{n=t()}catch(t){o=t}return s||(this[Wa("0x70")]=!1),o&&e.CKEditorError[Wa("0xc9")](o,this),n}markInsertion(t,n=null,o={}){if(t[Wa("0x84")])return null;const s=this[Wa("0x61")][Wa("0x8b")][Wa("0x51")]("Users").me;for(const{suggestion:e,meta:o}of this[Wa("0xf1")](t,Wa("0xd6")))if(o.isOwn){if(!o.isNextTo){if(!this[Wa("0x6f")]&&o.containsRangeInObject)continue;return e}if(n==e[Wa("0x14")]){const n=e[Wa("0x13")]();return n[Wa("0xda")][Wa("0x44")](t[Wa("0xa0")])?this[Wa("0xa8")](e,this._model.createRange(t[Wa("0xda")],n[Wa("0xa0")])):this[Wa("0xa8")](e,this[Wa("0x1b")].createRange(n.start,t[Wa("0xa0")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Wa("0x6a")+n:Wa("0xd6"),a=this[Wa("0xef")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[Wa("0xcf")](t,n=Wa("0xc3"),o={}){const s=this[Wa("0x61")][Wa("0x8b")].get("Users").me,r=this[Wa("0x6b")][Wa("0x33")](Wa("0xd6"),n,"join");for(const e of this[Wa("0x31")]())if(e[Wa("0xc7")].id==s.id&&Wa("0xd6")==e[Wa("0x48")]&&e.subType==n&&(r(e.getRanges(),t)||r(t,e[Wa("0x104")]()))){for(const n of t)e[Wa("0x123")](n);return e}if(this._mergeNestedSuggestions)for(const e of t)for(const{suggestion:n,meta:o}of this[Wa("0xf1")](e,Wa("0xd6"))){if(!o[Wa("0x11d")])continue;let e=!0;for(const o of n[Wa("0x104")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=Wa("0x6a")+n,c=this[Wa("0xef")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Wa("0xcd")](a,i,x,e,Zo[Wa("0x3a")]());return c}[Wa("0x6")](t,n,o=null,s={}){if(o=o||$a(n),t[Wa("0x84")])return null;if("never"===this[Wa("0x22")]){const e=this._suggestionFactory.getSuggestionCallback("formatInline",o,"accept");return this[Wa("0x90")]((()=>e([t],n,s))),null}const r=this[Wa("0x61")][Wa("0x8b")].get(Wa("0x8c")).me,i=[];if(Wa("0xa7")!==this[Wa("0x22")])for(const{suggestion:e,meta:n}of this[Wa("0xf1")](t,Wa("0xd6")))n[Wa("0x11d")]&&!n[Wa("0xcc")]&&i[Wa("0x4a")](...e[Wa("0x104")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Wa("0x4a")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Wa("0x39")];){const o=n[e].getDifference(t);n[Wa("0xc4")](e,1,...o),e+=o[Wa("0x39")]}}return n}(t,i);x.length&&this[Wa("0x1b")][Wa("0xf8")]((()=>{for(const t of x){const e=this._suggestionFactory.getSuggestionCallback(Wa("0x49"),o,Wa("0x78"));this[Wa("0x90")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Wa("0xda")],a=t.end;for(const{suggestion:e,meta:n}of this[Wa("0xf1")](t,Wa("0x49"))){if(!n[Wa("0x11d")])continue;if(e[Wa("0x14")]!=o)continue;const s=e[Wa("0x13")]();if(s.containsRange(t,!0))return null;x=x[Wa("0x113")](s.start)?x:s[Wa("0xda")],a=a[Wa("0x10f")](s[Wa("0xa0")])?a:s.end,i?s[Wa("0xda")].isBefore(i[Wa("0x13")]()[Wa("0xda")])?(i.removeMarkers(),i=e):e[Wa("0x5c")]():i=e}const c=this[Wa("0x1b")][Wa("0x7a")](x,a);if(i)this[Wa("0xa8")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Wa("0xef")]({id:t,type:Wa("0x12")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Wa("0xcd")](Wa("0x12")+o,t,i,c)}}return null}[Wa("0xc5")](t,n,o=[],s=null,r={}){n[Wa("0x54")]||(n[Wa("0x54")]=n[Wa("0x111")]),n[Wa("0xd4")]=t.is("range"),s=s||$a(n);const i=o[Wa("0xed")]((t=>Qa(t,this[Wa("0x1b")]))),x=t.is(Wa("0x92"))?t:Qa(t,this._model);if(Wa("0xfc")===this[Wa("0x22")]){const t=this[Wa("0x6b")][Wa("0x33")](Wa("0xd3"),s,Wa("0x78"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[Wa("0x133")](t)){a=!1;break}if(a&&Wa("0xa7")!==this[Wa("0x22")]){const t=this[Wa("0x6b")][Wa("0x33")]("formatBlock",s,Wa("0x78"));return this[Wa("0x90")]((()=>t([x],n,r))),null}let c=null,l=x.start,d=x.end;for(const{suggestion:t,meta:e}of this._findSuggestions(x,Wa("0xd3"))){if(!e[Wa("0x11d")]||e[Wa("0x6d")]||e.containsRangeInObject||e[Wa("0xcc")])continue;if(t[Wa("0x29")][Wa("0x54")]!=n[Wa("0x54")])continue;const o=t[Wa("0x13")]();if(t[Wa("0x14")]==s){if(o[Wa("0x7d")](x,!0))return null;l=l[Wa("0x113")](o[Wa("0xda")])?l:o.start,d=d[Wa("0x10f")](o[Wa("0xa0")])?d:o.end,c?o[Wa("0xda")][Wa("0x113")](c[Wa("0x13")]()[Wa("0xda")])?(c[Wa("0x5c")](),c=t):t[Wa("0x5c")]():c=t}else{const e=x[Wa("0x32")](o);this[Wa("0xdf")](t,e)}}const u=this[Wa("0x61")][Wa("0x8b")][Wa("0x51")]("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this[Wa("0xa8")](c,this[Wa("0x1b")][Wa("0x7a")](l,d)),c;{const t=this[Wa("0xef")]({id:g,type:Wa("0xf2")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(Wa("0xf2")+s,g,m,this._model[Wa("0x7a")](l,d)),t}}[Wa("0x16")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[Wa("0x54")]=n[Wa("0x111")]);const i=t[0];n[Wa("0xd4")]=i.is(Wa("0x92")),s=s||$a(n);const x=o.map((t=>Qa(t,this[Wa("0x1b")]))),a=i.is("range")?t:t[Wa("0xed")]((t=>Qa(t,this[Wa("0x1b")])));if(Wa("0xfc")===this[Wa("0x22")]){const t=this[Wa("0x6b")][Wa("0x33")](Wa("0xd3"),s,Wa("0x78"));return this[Wa("0x90")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[Wa("0x133")](t)){c=!1;break}if(c&&Wa("0xa7")!==this[Wa("0x22")]){const t=this[Wa("0x6b")][Wa("0x33")](Wa("0xd3"),s,Wa("0x78"));return this[Wa("0x90")]((()=>t(a,n,r))),null}const l=this.editor.plugins.get(Wa("0x8c")).me;for(const t of this[Wa("0x31")]()){if(t[Wa("0xc7")].id!=l.id)continue;if("formatBlock"!=t[Wa("0x48")]||t[Wa("0x29")][Wa("0x54")]!=n[Wa("0x54")])continue;const e=t[Wa("0x14")]==s;for(let n=0;n<a[Wa("0x39")];n++){const o=a[n];for(const s of t[Wa("0x125")]()){const r=s[Wa("0x116")]();if(o[Wa("0x44")](r)){e?(a[Wa("0xc4")](n,1),n--):t[Wa("0x126")](s.name);break}}}}if(0==a.length)return null;const d=this[Wa("0x6b")][Wa("0x33")](Wa("0xd3"),s,Wa("0x8"));for(const t of this.getSuggestions())if(t[Wa("0xc7")].id==l.id&&Wa("0xd3")==t[Wa("0x48")]&&t[Wa("0x29")].formatGroupId==n[Wa("0x54")]&&t[Wa("0x14")]==s&&(d(t.getRanges(),a)||d(a,t[Wa("0x104")]()))){for(const e of a)t[Wa("0x123")](e);return t}const u=(0,e.uid)(),g=l.id,m=Wa("0xf2")+s,f=this[Wa("0xef")]({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[Wa("0x3a")]());return f}[Wa("0xd8")](t,n=null,o={}){if(t[Wa("0x84")])return null;const s=this[Wa("0x61")][Wa("0x8b")][Wa("0x51")]("Users").me,r=new i.LiveRange(t.start,t[Wa("0xa0")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,"insertion"))if(e.isOwn&&!e[Wa("0x6d")])if(t[Wa("0x74")]){const e=t.getRanges()[Wa("0x96")]((t=>"$graveyard"!=t[Wa("0xa4")][Wa("0x25")]));if(e.every((t=>r[Wa("0x7d")](t,!0)))&&t[Wa("0xbc")](),e[Wa("0x9")]((t=>t[Wa("0x7d")](r,!0)))){const t=this[Wa("0x6b")].getSuggestionCallback(Wa("0xf7"),n,Wa("0x78"));return this[Wa("0x90")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t.getFirstRange());null!==e&&t._onDiscard([e],null,o)}if(r.detach(),r[Wa("0x84")]||Wa("0xae")==r[Wa("0xa4")][Wa("0x25")])return null;let x=null,a=r[Wa("0xda")],c=r[Wa("0xa0")];for(const{suggestion:t,meta:e}of this[Wa("0xf1")](r,"deletion"))if(e[Wa("0x11d")])if(t[Wa("0x74")]&&this[Wa("0x6f")]){let e=!0;for(const n of t[Wa("0x104")]()){if(n[Wa("0x7d")](r,!0))return t;r[Wa("0x7d")](n)||(e=!1)}e&&t[Wa("0xbc")]()}else{const n=t[Wa("0x13")]();if(n[Wa("0x7d")](r,!0)){if(!this[Wa("0x6f")]&&e[Wa("0x2e")])continue;return t}a=a[Wa("0x113")](n[Wa("0xda")])?a:n[Wa("0xda")],c=c[Wa("0x10f")](n[Wa("0xa0")])?c:n.end,x?n[Wa("0xda")][Wa("0x113")](x.getFirstRange()[Wa("0xda")])?(x[Wa("0x5c")](),x=t):t.removeMarkers():x=t}if(x)return this._setSuggestionRange(x,this[Wa("0x1b")][Wa("0x7a")](a,c)),x;{const t=(0,e.uid)(),r=this[Wa("0x1b")][Wa("0x7a")](a,c),i=s.id,x=n?Wa("0xc8")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Wa("0xcd")](x,t,i,r),l}}[Wa("0xf5")](t,n=Wa("0xc3"),o={}){const s=this[Wa("0x61")].plugins[Wa("0x51")](Wa("0x8c")).me,r=t.map((t=>new i.LiveRange(t.start,t[Wa("0xa0")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[Wa("0xf1")](t,"insertion"))n[Wa("0x11d")]&&!n[Wa("0x6d")]&&x[Wa("0x134")](e);for(const e of x)if(e[Wa("0x74")]){const s=e.getRanges();if((!e.attributes||!e[Wa("0x13b")][Wa("0x100")])&&s.every((t=>r.some((e=>e[Wa("0x7d")](t,!0)))))&&e[Wa("0xbc")](),r[Wa("0x18")]((t=>s[Wa("0x9")]((e=>e[Wa("0x7d")](t,!0)))))){const e=this[Wa("0x6b")][Wa("0x33")](Wa("0xf7"),n,Wa("0x78"));return this[Wa("0x90")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[Wa("0x9")]((e=>e[Wa("0x7d")](t,!0)))&&e.discard(),r[Wa("0x18")]((e=>t.containsRange(e,!0)))){const t=this[Wa("0x6b")].getSuggestionCallback(Wa("0xf7"),n,Wa("0x78"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[Wa("0x6b")][Wa("0x33")](Wa("0xf7"),n,Wa("0x8"));let c=null;for(const t of this[Wa("0x31")]())if(t[Wa("0xc7")].id==s.id&&t[Wa("0x11")]&&Wa("0xf7")==t.type&&t[Wa("0x14")]==n&&(a(t[Wa("0x104")](),r)||a(r,t[Wa("0x104")]())))if(c){if(t.commentThread&&t.commentThread.length)continue;for(const e of t[Wa("0x104")]())c.isIntersectingWithRange(e)||c[Wa("0x123")](e);t[Wa("0x5c")]()}else{c=t;for(const e of r)t[Wa("0x40")](e)||t[Wa("0x123")](e)}if(c)return c;x[Wa("0x138")]();for(const t of r)for(const{suggestion:e,meta:n}of this[Wa("0xf1")](t,Wa("0xf7")))n[Wa("0x11d")]&&x[Wa("0x134")](e);for(const t of x){const e=t[Wa("0x104")]();if((!o||!o[Wa("0x100")])&&r[Wa("0x18")]((t=>e[Wa("0x9")]((e=>e.containsRange(t,!0))))))return t;(!t[Wa("0x13b")]||!t.attributes[Wa("0x100")])&&e[Wa("0x18")]((t=>r[Wa("0x9")]((e=>e.containsRange(t,!0)))))&&t[Wa("0xbc")]()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[Wa("0xef")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[Wa("0x75")](),t[Wa("0x84")]||Wa("0xae")==t[Wa("0xa4")][Wa("0x25")]||this[Wa("0xcd")](u,l,d,t,Zo[Wa("0x3a")]());return g}[Wa("0xa8")](t,e){const n=t.getFirstMarker();this[Wa("0x1b")].change((t=>{t.updateMarker(n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[Wa("0x61")][Wa("0xfa")][Wa("0x51")](Wa("0x9e"));this._commentsRepository.hasCommentThread(e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[Wa("0x8f")](e);o[Wa("0x137")](Wa("0x12a")),o.isRemovable=!1,t.commentThread=o}[Wa("0xe6")](t,n,o,s){if(t.type!=n||t[Wa("0x14")]!=o||t[Wa("0x99")].id!=s)throw this[Wa("0x61")][Wa("0x23")](Wa("0x71")),new e.CKEditorError(Wa("0x71"),this)}[Wa("0xdf")](t,n){const o=t.getFirstRange();if(n[Wa("0x44")](o))t.removeMarkers();else if(o[Wa("0x7d")](n)){const s=this._model[Wa("0xc2")](n.start.nodeBefore,Wa("0xa0"));this[Wa("0xa8")](t,this[Wa("0x1b")][Wa("0x7a")](o[Wa("0xda")],s));const r=(0,e.uid)(),i=t[Wa("0x99")].id,x=t[Wa("0x48")]+":"+t[Wa("0x14")];this[Wa("0xef")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Wa("0x29")],attributes:t[Wa("0x13b")]});const a=this[Wa("0x1b")][Wa("0xc2")](n[Wa("0xa0")][Wa("0x8a")],"after"),c=this[Wa("0x1b")][Wa("0x7a")](a,o[Wa("0xa0")]);this[Wa("0xcd")](x,r,i,c)}else if(o[Wa("0xbf")](n[Wa("0xda")])){const e=this[Wa("0x1b")][Wa("0xc2")](n[Wa("0xda")][Wa("0x114")],Wa("0xa0"));this._setSuggestionRange(t,this[Wa("0x1b")][Wa("0x7a")](o[Wa("0xda")],e))}else{const e=this[Wa("0x1b")][Wa("0xc2")](n[Wa("0xa0")][Wa("0x8a")],Wa("0x105"));this[Wa("0xa8")](t,this[Wa("0x1b")].createRange(e,o[Wa("0xa0")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[Wa("0xf1")](t,Wa("0xd6"))){if(!n[Wa("0x11d")])continue;const o=e.getRanges();for(const e of o)if(!t[Wa("0xca")](e)[Wa("0x39")])return!0}return!1}[Wa("0xf0")](t){const n=this[Wa("0x61")].plugins[Wa("0x51")](Wa("0x8c"))[Wa("0x10c")](t);if(!n)throw new e.CKEditorError(Wa("0x15"),this);return n}_getExternalAuthor(t){const e=this.editor.plugins[Wa("0x51")](Wa("0x8c")),n=(0,r.hashObject)(Wa("0x1f")+t);return e[Wa("0x10c")](n)||e[Wa("0xba")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[Wa("0xf0")](o),i=this[Wa("0x6b")][Wa("0x4")](t,e,n,r,s,(t=>this[Wa("0xc6")](n,{attributes:t})));return this[Wa("0xc0")](i,Wa("0x78"),(()=>{this._updateSuggestionData(n,{state:Wa("0x132")})}),{priority:"high"}),this[Wa("0xc0")](i,"discard",(()=>{this[Wa("0xc6")](n,{state:Wa("0x59")})}),{priority:Wa("0x66")}),this[Wa("0xe5")][Wa("0x26")](n,i),this._suggestionState[Wa("0x26")](i,"notReady"),i}_splitMarkerName(t){const e=t[Wa("0x85")](":");return{group:e[0],type:e[1],subType:e[Wa("0x39")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[Wa("0x39")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t.getFirstRange(),r=s[Wa("0xda")],i=s[Wa("0xa0")];this[Wa("0xa8")](t,this[Wa("0x1b")].createRange(r,n));const x=(0,e.uid)(),a=t[Wa("0x99")].id,c=t[Wa("0x48")]+(t[Wa("0x14")]?":"+t[Wa("0x14")]:"");this[Wa("0xef")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Wa("0x13b")],data:t[Wa("0x29")]}),"formatBlock"==t[Wa("0x48")]&&(o=this._model[Wa("0x3f")](o.parent)),this[Wa("0xcd")](c,x,a,this[Wa("0x1b")][Wa("0x7a")](o,i))}_findSuggestions(t,e=null){const n=[],o=this._model[Wa("0x135")],s=this[Wa("0x61")][Wa("0x8b")][Wa("0x51")](Wa("0x8c")).me;for(const r of this.getSuggestions())if(r[Wa("0x11")]&&(!e||r[Wa("0x48")]==e))for(const e of r[Wa("0x104")]()){const i=t[Wa("0xda")][Wa("0x44")](e.end)||t.end[Wa("0x44")](e[Wa("0xda")]);if(i||t[Wa("0x32")](e)){const x=t[Wa("0x7d")](e)&&Ka(o,e.start,t),a=e[Wa("0x7d")](t)&&Ka(o,t[Wa("0xda")],e);n[Wa("0x4a")]({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[Wa("0xcd")](t,e,n,o,s){this._model[Wa("0xf8")]((r=>{let i=Wa("0x7b")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Wa("0xa6")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Wa("0xe8")](t){const e=t[Wa("0xa5")],n=t[Wa("0x91")];t[Wa("0xa5")]=null,null!=e&&(e[Wa("0x91")]=null),t[Wa("0x91")]=null,null!=n&&(n[Wa("0xa5")]=null),Wa("0xc1")==this._suggestionState[Wa("0x51")](t)&&(this[Wa("0xf")].set(t,Wa("0x37")),this[Wa("0xeb")](Wa("0xe9"),t,e,n))}[Wa("0xef")](t){const n=t.id,o=this[Wa("0x1e")](t);if(this[Wa("0xac")]&&this[Wa("0xac")][Wa("0x45")]){const s=this[Wa("0x61")][Wa("0x8b")][Wa("0x51")]("PendingActions"),r=o[Wa("0x13a")],i=o.subType?o[Wa("0x48")]+":"+o[Wa("0x14")]:o[Wa("0x48")],x=this[Wa("0x61")][Wa("0x46")],a=s.add(Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[Wa("0x13b")]};this._adapter.addSuggestion(c)[Wa("0x7f")]((t=>{o[Wa("0x11f")]=!0,s[Wa("0x3c")](a),t&&t[Wa("0x127")]&&(this[Wa("0xe5")][Wa("0x51")](n).createdAt=t[Wa("0x127")])}))[Wa("0x7e")]((t=>{throw(0,e.logWarning)(Wa("0x4f")),this[Wa("0x61")][Wa("0xc")][Wa("0xa2")]({isUndoable:!1},(()=>{o[Wa("0xbc")]()})),o[Wa("0x120")](),this[Wa("0xe5")][Wa("0xaa")](o.id),this[Wa("0xf")][Wa("0xaa")](o),t}))}return o}[Wa("0xc6")](t,e){const n=this[Wa("0x61")][Wa("0x8b")].get("PendingActions"),o=this.getSuggestion(t);if(this._adapter&&this[Wa("0xac")][Wa("0x106")])if(o[Wa("0x11f")]){const o=n[Wa("0x134")](Yo(this[Wa("0x61")].locale,Wa("0x69")));this[Wa("0xac")][Wa("0x106")](t,e)[Wa("0x7f")]((()=>{n[Wa("0x3c")](o)}))}else o.on(Wa("0xe0"),(()=>{this[Wa("0xc6")](t,e)}))}_getSuggestionData(t){if(!this[Wa("0xac")]||!this[Wa("0xac")][Wa("0x21")])throw new e.CKEditorError(Wa("0x136"),this);return this[Wa("0xac")][Wa("0x21")](t)}[Wa("0x97")](t){const{id:e,type:n,subType:o,authorId:s}=this[Wa("0x131")](t),r=this[Wa("0xe5")][Wa("0x51")](e)||this[Wa("0x93")](n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this[Wa("0xf")][Wa("0x51")](r)){case Wa("0xea"):this._getSuggestionData(e)[Wa("0x7f")]((t=>{let n=Promise[Wa("0x80")]();t.hasComments&&(n=this[Wa("0x10d")][Wa("0x109")]({channelId:this.editor.config[Wa("0x51")](Wa("0x9e")),threadId:e})),n[Wa("0x7f")]((()=>{this[Wa("0x1e")](t)[Wa("0x11f")]=!0}))})),this[Wa("0xf")][Wa("0x26")](r,"markerReady");break;case"removed":this[Wa("0xc6")](e,{state:Wa("0xdb")});case"dataReady":this[Wa("0xf")][Wa("0x26")](r,Wa("0xc1")),this[Wa("0xeb")](Wa("0x6c"),r);break;case Wa("0xc1"):this.fire(Wa("0x11e"),r)}return r[Wa("0xe4")](t),r}_refreshSuggestionsChain(t){const e=Array[Wa("0xe")](t)[Wa("0x96")]((t=>!t.isMultiRange)),n=this[Wa("0x31")]({skipNotAttached:!0}).filter((t=>!t.isMultiRange)),o=n[Wa("0x96")]((e=>!t[Wa("0x82")](e))),s=new Map(n[Wa("0xed")]((t=>[t,this[Wa("0x6b")][Wa("0x33")](t.type,t[Wa("0x14")],Wa("0x17"))]))),r=new Map(n[Wa("0xed")]((t=>[t,t[Wa("0x13")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Wa("0x39")];t++)a(e[t],e,t+1);for(let t=0;t<e[Wa("0x39")];t++)a(e[t],o,0);for(let t=0;t<e[Wa("0x39")];t++){const n=e[t];!x[Wa("0x82")](n)&&n[Wa("0xa5")]&&(n[Wa("0xa5")][Wa("0x91")]===n&&(n.previous[Wa("0x91")]=null),n[Wa("0xa5")]=null),!i[Wa("0x82")](n)&&n[Wa("0x91")]&&(n[Wa("0x91")].previous===n&&(n.next[Wa("0xa5")]=null),n[Wa("0x91")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][Wa("0xa5")]=n[0],i[Wa("0x134")](n[0]),x.add(n[1]))}}function c(t,e){if(t.author.id!==e[Wa("0xc7")].id)return null;const n=s[Wa("0x51")](t)(t,e,r[Wa("0x51")](t),r[Wa("0x51")](e));return n&&s[Wa("0x51")](e)(t,e,r[Wa("0x51")](t),r[Wa("0x51")](e))?n[1][Wa("0xdd")]&&n[1].commentThread[Wa("0x39")]?null:n:null}}[Wa("0x2c")](t){const e=Array[Wa("0xe")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[Wa("0x96")]((e=>!t[Wa("0x82")](e))),s=new Map(e.map((t=>[t,this[Wa("0x6b")].getSuggestionCallback(t[Wa("0x48")],t[Wa("0x14")],"join")]))),r=new Map(n[Wa("0xed")]((t=>[t,t[Wa("0x104")]()])));for(let t=0;t<e[Wa("0x39")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Wa("0x39")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Wa("0x39")];i++){const o=n[i];if(o[Wa("0x48")]!==e[Wa("0x48")]||o[Wa("0xc7")].id!==e.author.id||o[Wa("0x14")]!==e[Wa("0x14")])continue;const x=s.get(e),a=r[Wa("0x51")](e),c=r.get(o),l=e[Wa("0xdd")]&&e[Wa("0xdd")].length,d=o[Wa("0xdd")]&&o[Wa("0xdd")][Wa("0x39")];if(!l&&x(c,a))return t[Wa("0x102")](o,e),r.delete(e),!0;if(!d&&x(a,c))return t[Wa("0x102")](e,o),r.delete(o),!0}return!1}}[Wa("0x102")](t,e){if(t[Wa("0x74")])for(const n of e[Wa("0x104")]())t.addRange(n);else{const n=e[Wa("0x13")]()[Wa("0xa0")];this[Wa("0xa8")](t,this[Wa("0x1b")].createRange(t[Wa("0x13")]()[Wa("0xda")],n))}e.removeMarkers()}}class Va{constructor(t){this[Wa("0x108")]=t,this[Wa("0x1b")]=t[Wa("0xc")],this[Wa("0x4b")]=new Map,this[Wa("0x5")]=new Map,this._registerDefaultCallbacks()}[Wa("0x4")](t,e,n,o,s,r){return new Zo(this[Wa("0x1b")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Wa("0x33")](t,e,Wa("0x78"))(...n),onDiscard:(...n)=>this[Wa("0x33")](t,e,Wa("0xbc"))(...n)})}[Wa("0x1c")](t,e,n,o){const s=t+":"+e+":"+n;this[Wa("0x4b")].set(s,o)}[Wa("0x33")](t,e,n){const o=t+":"+e+":"+n;return this[Wa("0x4b")][Wa("0x51")](o)||this[Wa("0x5")][Wa("0x51")](t+":"+n)}[Wa("0x89")](){const t=()=>{},e=t=>{t.sort(((t,e)=>t[Wa("0xda")].isBefore(e[Wa("0xda")])?1:-1)),this._model[Wa("0xf8")]((e=>{for(const n of t){let t;t=n[Wa("0xa0")].isAtEnd&&n[Wa("0xa0")][Wa("0x8a")]==n[Wa("0xda")][Wa("0xb8")]?e[Wa("0x10")](n[Wa("0xda")].nodeAfter,"on"):e[Wa("0x10")](n),this[Wa("0x1b")][Wa("0x34")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Wa("0x1b")][Wa("0xf8")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Wa("0xed")]((t=>(qa(t)&&(t=this._model[Wa("0x7a")](t[Wa("0xa0")])),t)))[Wa("0x96")]((t=>Wa("0xae")!==t[Wa("0xa4")].rootName));if(r[Wa("0x39")]<1)return;const x=Array[Wa("0xe")](this[Wa("0x1b")][Wa("0x81")][Wa("0x50")].getRanges())[Wa("0xed")]((t=>i.LiveRange[Wa("0x79")](t)));n[Wa("0x2")](r);for(const t of this._editor[Wa("0x4d")][Wa("0x4d")]())t.refresh();s[Wa("0x4a")]({forceDefaultExecution:!0}),this[Wa("0x108")][Wa("0x76")](o,...s);const a=x[Wa("0x96")]((t=>"$graveyard"!=t[Wa("0xa4")].rootName));a[Wa("0x39")]>0&&n[Wa("0x2")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[Wa("0x39")]&&1==e[Wa("0x39")]&&t[0][Wa("0xa0")].isEqual(e[0][Wa("0xda")]),s=(t,e,n,o)=>Za(t,e,n,o,this[Wa("0x1b")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this._defaultCallbacks[Wa("0x26")]("insertion:accept",t),this[Wa("0x5")][Wa("0x26")]("insertion:discard",e),this[Wa("0x5")][Wa("0x26")]("insertion:join",o),this[Wa("0x5")][Wa("0x26")](Wa("0xb7"),s),this[Wa("0x5")][Wa("0x26")](Wa("0x24"),e),this[Wa("0x5")][Wa("0x26")](Wa("0xf3"),t),this[Wa("0x5")][Wa("0x26")]("deletion:join",o),this._defaultCallbacks[Wa("0x26")]("deletion:chain",s),this._defaultCallbacks[Wa("0x26")](Wa("0x3d"),n),this[Wa("0x5")][Wa("0x26")]("formatInline:discard",t),this._defaultCallbacks[Wa("0x26")](Wa("0xe7"),o),this._defaultCallbacks.set(Wa("0xff"),t),this[Wa("0x5")][Wa("0x26")](Wa("0x112"),n),this[Wa("0x5")][Wa("0x26")](Wa("0x95"),t),this._defaultCallbacks[Wa("0x26")](Wa("0xb1"),o),this[Wa("0x5")][Wa("0x26")](Wa("0x1"),t)}}function Ka(t,e,n){for(const o of e.parent[Wa("0xd1")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[Wa("0x5b")](o))return!1;if(t.isObject(o)||t[Wa("0x65")](o))return!0}return!1}function qa(t){return t[Wa("0xa0")][Wa("0x8a")]==t[Wa("0xda")][Wa("0xb8")]&&t[Wa("0xa0")].isAtStart}function Xa(t,e,n,o){const s=t=>!t[Wa("0xd9")].is("$textProxy")&&!o.isObject(t[Wa("0xd9")]),r=t[Wa("0xda")][Wa("0xfb")](s),i=t[Wa("0xa0")][Wa("0xfb")](s,{direction:"backward"});return!(t[Wa("0xda")][Wa("0x44")](r)&&t[Wa("0xa0")][Wa("0x44")](i)||(r[Wa("0x113")](i)?n[Wa("0xb9")](e,{range:n[Wa("0x7a")](r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t.start[Wa("0xb8")];return e&&e.is(Wa("0x42"))}function Qa(t,e){const n=e.schema.isObject(t)||e[Wa("0x135")].isSelectable(t);return e[Wa("0x7a")](e[Wa("0xc2")](t,Wa("0x47")),n?e[Wa("0x43")](t):e[Wa("0xc2")](t,Wa("0xa0")))}function Za(t,e,n,o,s){if(n[Wa("0xa0")][Wa("0x44")](o[Wa("0xda")]))return!0;if(t.type!=e[Wa("0x48")])return!1;if(!n.end[Wa("0x12e")](o[Wa("0xda")]))return!1;const r=s[Wa("0x7a")](n[Wa("0xa0")],o[Wa("0xda")]).getWalker();for(const t of r)if([Wa("0x30"),Wa("0x139")][Wa("0x55")](t[Wa("0x48")])&&s[Wa("0x135")][Wa("0x65")](t.item))return!1;return!0}const Ya=["bind","unbind","_setPendingAction","add","discardSuggestion","stopListening","get","isEnabled","listenTo","_acceptCommand","getRanges","canDiscard","remove","canAccept","_pendingAction","commentThreadController","commands","execute","plugins","_removePendingAction","canEditAt","_editor","acceptSuggestion","destroy","locale","model","view","isDirty"];var tc,ec;tc=Ya,ec=459,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.model=e,this[nc("0xf")]=n,this[nc("0x4")]=o,this[nc("0xa")]=t,this[nc("0x1a")]=t.commands.get(nc("0xb")),this._discardCommand=t[nc("0x5")][nc("0x17")](nc("0x15")),this[nc("0xf")].bind(nc("0x18")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[nc("0xf")][nc("0x11")]("canAccept").to(this._acceptCommand,nc("0x18"),(t=>t&&this[nc("0xa")][nc("0xe")].canEditAt(e.getRanges()))),this[nc("0xf")][nc("0x11")](nc("0x0")).to(this._discardCommand,"isEnabled",(t=>t&&this[nc("0xa")][nc("0xe")][nc("0x9")](e[nc("0x1b")]()))),this[nc("0x3")]=null,n[nc("0x10")]&&this[nc("0x13")](),this[nc("0x19")](n,nc("0xb"),(()=>this[nc("0xb")]())),this[nc("0x19")](n,nc("0x15"),(()=>this[nc("0x15")]())),this[nc("0x19")](n,"change:isDirty",(()=>{n[nc("0x10")]?this[nc("0x13")]():this._removePendingAction()}))}[nc("0xb")](){this[nc("0x1a")][nc("0x6")](this[nc("0xe")].id)}[nc("0x15")](){this._discardCommand[nc("0x6")](this[nc("0xe")].id)}destroy(){this.view[nc("0x12")](nc("0x18")),this[nc("0xf")][nc("0x12")](nc("0x2")),this[nc("0xf")].unbind(nc("0x0")),this[nc("0x16")](),this[nc("0x4")][nc("0xc")](),this[nc("0x3")]&&this[nc("0x8")]()}[nc("0x13")](){const t=Yo(this[nc("0xa")][nc("0xd")],"PENDING_ACTION_SUGGESTION");this[nc("0x3")]=this[nc("0xa")].plugins.get("PendingActions")[nc("0x14")](t)}[nc("0x8")](){null!==this[nc("0x3")]&&this._editor[nc("0x7")].get("PendingActions")[nc("0x1")](this._pendingAction),this[nc("0x3")]=null}}const sc=["setData","_model","updateComment","editor","isActive","addComment","_createCommentViews","canAccept","cancel","editorConfig","focus","_config","element","commentsListView","length","hasDirtyComment","bind","authoredAt","delegate","commentThread","_createCommentThreadInputView","descriptionParts","set","removeComment","commentInputView","locale","_localUser","value","disableComments","submit","destroy","isEnabled","commentThreadInputView","canDiscard","isReadOnly","fire","isDirty"];var rc,ic;rc=sc,ic=445,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[xc("0xc")]=null,this[xc("0x1f")]=null,this[xc("0x15")]("isActive",!1),this[xc("0x15")](xc("0x10"),e[xc("0x10")]),this[xc("0xf")](xc("0x10")).to(e),this.set(xc("0x14"),[]),this[xc("0x15")](xc("0x23"),!1),this[xc("0x15")](xc("0x1e"),!1),this[xc("0x15")](xc("0x6"),!1),this[xc("0x15")](xc("0x20"),!1),this[xc("0x0")]=e,this[xc("0x19")]=n,this[xc("0xa")]=o,o[xc("0x1b")]?this[xc("0x15")](xc("0xd"),1):this._createCommentViews()}focus(){this[xc("0xb")][xc("0x9")]()}[xc("0x1d")](){this[xc("0xc")]&&this[xc("0xc")][xc("0x1d")](),this[xc("0x1f")]&&this[xc("0x1f")][xc("0x1d")](),super.destroy()}[xc("0x5")](){const{CommentsListView:t}=this._config;this[xc("0xc")]=new t(this[xc("0x18")],this[xc("0x0")][xc("0x12")],Object.assign({CommentView:this[xc("0xa")].CommentView},this[xc("0xa")])),this.commentsListView[xc("0x11")](xc("0x16")).to(this),this[xc("0xc")][xc("0x11")](xc("0x1")).to(this),this[xc("0xc")].bind(xc("0x3")).to(this),this.set(xc("0xd"),this[xc("0xc")].length+1),this[xc("0xf")](xc("0xd")).to(this[xc("0xc")],"length",(t=>t+1)),this[xc("0x1f")]=this[xc("0x13")](),this.on(xc("0x16"),(()=>this[xc("0x9")]())),this[xc("0xf")]("isDirty").to(this[xc("0xc")],xc("0xe"),this[xc("0x1f")][xc("0x17")],xc("0x1a"),((t,e)=>t||!!e))}[xc("0x13")](){const{CommentThreadInputView:t}=this[xc("0xa")],e=new t(this[xc("0x18")],this._localUser,this[xc("0xa")][xc("0x8")]),n=e[xc("0x17")];return e[xc("0xf")]("showInput").to(this,"isActive",this[xc("0x0")][xc("0x12")],xc("0x21"),n,xc("0x1a"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x1c"),((t,e)=>{this[xc("0x22")](xc("0x4"),e),n[xc("0x2")][xc("0x24")]("")})),n.on(xc("0x7"),(()=>this[xc("0x9")]())),n.bind("disabledSubmit").to(this[xc("0x0")][xc("0x12")],xc("0x21")),e}}const cc=["bind","formatDateTime","ck-annotation__actions","EXTERNAL_IMPORT_WORD_SUGGESTION","color","extendTemplate","div","isActive","title","ck-suggestion__user","_config","innerHTML","createElement",'<span class="ck-suggestion-color" style="background-color: ',"split","getTemplate","commentsListView","EXTERNAL_AVATAR","ck-annotation__info-time","querySelector","commentThreadInputView","check","ck-suggestion--accept","EXTERNAL_IMPORT_WORD_AVATAR","ck-suggestion-","isEnabled","getExternalSuggestionNote","Accept suggestion","</span>","ck-annotation__content-wrapper","author","time",".ck-annotation__content-wrapper","isExternal","description","span","importWord",'<span class="ck-suggestion-type">',"ck-suggestion__info","acceptSuggestion","ck-annotation__info","type","source","name","locale","ck-annotation__main","canDiscard","map",'"></span>',"children","push","ck-suggestion--disabled-comments","ck-annotation","setTemplate","descriptionParts","render","</p>","ck-suggestion","ck-suggestion__actions","commentThread","element","@external","disableComments","innerText","userView","discardButton","ck-suggestion__main","value","canAccept","ck-suggestion__info-name","ck-suggestion-wrapper--active","_createButton","authoredAt","_descriptionElement","<p>","ck-suggestion-wrapper","ck-suggestion--discard","ck-comment__info-time","getUserViewNotificationText","_model",'" title="',"discardSuggestion","acceptButton","attributes","ck-annotation__user","join"];var lc,dc;lc=cc,dc=486,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("0x47"),""),this.bind(uc("0x47")).to(this,uc("0x54"),(t=>t&&t[0]?t[0][uc("0x47")]:"")),this[uc("0x1e")](uc("0x40")).to(this,"descriptionParts",this,"isActive",((t,e)=>{let n="";for(const e of t)n+=uc("0x12")+mc(e.content,e[uc("0x22")])+uc("0x0");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x11")]=null,this[uc("0x1a")]=this._createButton(Yo(e,uc("0x39")),t.icons[uc("0x33")],uc("0x34"),uc("0x45"),"sw"),this.acceptButton[uc("0x1e")](uc("0x37")).to(this,uc("0xc")),this.discardButton=this[uc("0xf")](Yo(e,"Discard suggestion"),t.icons.cancel,uc("0x14"),uc("0x19"),"sw"),this[uc("0x9")][uc("0x1e")](uc("0x37")).to(this,uc("0x4c")),this[uc("0x8")]=new r.UserView(e,this[uc("0x17")][uc("0x3c")],this[uc("0x16")]()),this[uc("0x8")][uc("0x23")]({attributes:{class:[uc("0x27"),uc("0x1c")]}}),this[uc("0x53")](this.getTemplate())}[uc("0x2d")](){const t=this.bindTemplate,e=[{tag:uc("0x24"),attributes:{class:[uc("0x44"),uc("0x46")]},children:[{tag:"span",children:[{text:this[uc("0x8")][uc("0x49")]}],attributes:{class:[uc("0xd"),"ck-annotation__info-name"]}},{tag:uc("0x3d"),attributes:{datetime:t.to("authoredAt"),class:[uc("0x15"),uc("0x30")]},children:[{text:t.to(uc("0x10"),(t=>this[uc("0x28")][uc("0x1f")](t)))}]}]},{tag:uc("0x24"),attributes:{class:[uc("0x2"),uc("0x20")]},children:[this[uc("0x1a")],this[uc("0x9")]]},{tag:uc("0x24"),attributes:{class:[uc("0x3b")]}}];this[uc("0x17")][uc("0x3f")]&&e[uc("0x50")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this[uc("0x38")]()}]});const n={tag:uc("0x24"),attributes:{class:[uc("0x13"),t.if(uc("0x25"),uc("0xe")),t.to(uc("0x47"),(t=>uc("0x36")+t)),this._config[uc("0x6")]&&uc("0x51")],"data-suggestion-id":this[uc("0x17")].id,"data-thread-id":this[uc("0x17")][uc("0x3")].id,"data-author-id":this._model[uc("0x3c")].id,tabindex:-1},children:[{tag:uc("0x24"),attributes:{class:[uc("0x1"),uc("0x52")]},children:[this.userView,{tag:"div",attributes:{class:[uc("0xa"),uc("0x4b")]},children:e}]}]};return this[uc("0x2e")]&&this[uc("0x32")]&&n[uc("0x4f")].push(this[uc("0x2e")],this[uc("0x32")]),n}[uc("0x55")](){super[uc("0x55")](),this._descriptionElement=this[uc("0x4")][uc("0x31")](uc("0x3e")),this._descriptionElement[uc("0x29")]=this[uc("0x40")],this.on("change:description",((t,e,n)=>{this[uc("0x11")][uc("0x29")]=n}))}[uc("0xf")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x4a")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x23")]({attributes:{class:n}}),i.on("execute",(()=>{this.fire(o,this[uc("0x17")].id)})),i}[uc("0x38")](){return uc("0x42")===this[uc("0x17")][uc("0x1b")][uc("0x5")][uc("0x48")]?Yo(this.locale,uc("0x21")):Yo(this[uc("0x4a")],"EXTERNAL_SUGGESTION")}[uc("0x16")](){return this[uc("0x17")].isExternal?uc("0x42")===this[uc("0x17")].attributes[uc("0x5")][uc("0x48")]?Yo(this[uc("0x4a")],uc("0x35"),this._model.creator.name):Yo(this[uc("0x4a")],uc("0x2f"),this[uc("0x17")].creator[uc("0x49")]):null}}function mc(t,e){let n="";return n+=t[uc("0x2c")]("*")[uc("0x4d")](((t,e)=>e%2!=0?uc("0x43")+fc(t)+uc("0x3a"):fc(t)))[uc("0x1d")](""),e&&(n+=uc("0x2b")+e[uc("0xb")]+uc("0x18")+e[uc("0x26")]+uc("0x4e")),n}function fc(t){const e=document[uc("0x2a")](uc("0x41"));return e[uc("0x7")]=t,e[uc("0x29")]}const hc=["_updateController","addComment","plugins","head","get","getSuggestion","suggestionLoaded","_destroyController","has","keys","isMultiRange","Accept all suggestions","hasSuggestion","buttonView","config","remove","commands","getJoined","comments.editorConfig","switchbutton","editor","TrackChangesEditing","_refreshActiveMarkers","_disableComments","registerAnnotation","Discard all selected suggestions","map","commandName","Annotations","delete","change:activeAnnotations","Accept all selected suggestions","comments.maxCommentsWhenCollapsed","requires","getMarkerNames","_handleControllerBuffer","comments.maxThreadTotalWeight","length","createAnnotationView","locale","mainView","bind","editing","filter","add","getFirstRange","type","listenTo","CommentsUI","activeAnnotations","refreshSelectedViews","size","focus","value","Discard all suggestions","init","some","lowest","CommentsRepository","comments","model","set","destroy","suggestion-","addSourceCollector","isOn","_annotationViews","EditorAnnotations","innerView","trackChanges.SuggestionThreadView","source","actionView","Track changes","pluginName","CommentView","suggestionChanged","previous","_handleSuggestionControllerDelayed","discardAllSuggestions","unbind","trackChanges.disableComments","arrowView","getRanges","SuggestionThreadView","_initializeController","push","TrackChangesUI","componentFactory","acceptSelectedSuggestions","getMarkers","suggestionUnloaded","acceptAllSuggestions","execute","getDescriptions","descriptionParts","reduce","isEnabled","activeMarkers","_viewToController","stopListening","acceptButton","define","button","separator","isInContent","comments.maxCommentCharsWhenCollapsed","_descriptionFactory","_suggestionToController","getAllAdjacentSuggestions","clear","trackChanges","_createUIButton","from","change:previous","isDirty","view","discardSelectedSuggestions","toMany"];var pc,bc;pc=hc,bc=357,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("0x1e")](){return[za,r.Users,Ec("0x37"),Ec("0x19"),Ec("0x40")]}static get[Ec("0x46")](){return Ec("0x53")}constructor(t){super(t),this[Ec("0x68")]=new Map,this._viewToController=new Map,this[Ec("0x3f")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x11")][Ec("0xb")];e[Ec("0x62")](Ec("0x42"),gc),e[Ec("0x62")]("trackChanges.disableComments",!1),this[Ec("0x14")]=e[Ec("0x1")](Ec("0x4d"))}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0x20")][Ec("0x30")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x20")]){const n=this[Ec("0x68")][Ec("0x5")](t);n||e?n&&e&&this._destroyController(t):this[Ec("0x51")](t)}this[Ec("0x11")][Ec("0x75")][Ec("0x1")](Ec("0x40"))[Ec("0x2f")](),this[Ec("0x13")](),this[Ec("0x20")][Ec("0x6a")]()}),10),this[Ec("0x20")][Ec("0x3a")](t,e)}[Ec("0x34")](){const t=this[Ec("0x11")],e=t[Ec("0x75")].get(Ec("0x12")),n=t[Ec("0x75")][Ec("0x1")](Ec("0x19")),o=t[Ec("0x75")][Ec("0x1")]("EditorAnnotations"),s=t[Ec("0x75")][Ec("0x1")](Ec("0x37"));t.ui[Ec("0x54")][Ec("0x29")](Ec("0x6b"),(t=>this[Ec("0x6c")](t))),o[Ec("0x3d")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x6d")](this._suggestionToController)){const o=e[Ec("0x69")](),s=[];for(const t of o){if(!t[Ec("0x65")])continue;if(t[Ec("0x7")]){s[Ec("0x52")](...t[Ec("0x4f")]());continue}const e=t[Ec("0x2a")]();if(s[Ec("0x22")]>0){const t=s[0][Ec("0xe")](e);if(t){s[0]=t;continue}}s[Ec("0x52")](e)}t[Ec("0x52")]([n[Ec("0x70")],s])}return t})),this.listenTo(e,Ec("0x3"),((t,e)=>{this[Ec("0x2c")](e,Ec("0x6e"),((t,n,o,s)=>{e[Ec("0x65")]&&(null==o?(this[Ec("0x73")](s[Ec("0x0")]),this[Ec("0x4a")](e,!1)):(this[Ec("0x73")](o[Ec("0x0")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Ec("0x49")]?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x73")](e[Ec("0x0")])})),this[Ec("0x2c")](e,Ec("0x57"),((t,e,n)=>{this[Ec("0x60")](e,Ec("0x6e")),this[Ec("0x20")][Ec("0x1a")](e);const o=n?n[Ec("0x0")]:e,s=this[Ec("0x68")][Ec("0x1")](o);null!==n&&this[Ec("0x73")](o),null===n&&s&&this[Ec("0x4")](e)})),this[Ec("0x2c")](e,Ec("0x48"),((t,e)=>{this[Ec("0x73")](e)})),this[Ec("0x2c")](n,Ec("0x1b"),(()=>{this[Ec("0x13")]()})),this[Ec("0x2c")](s,Ec("0x74"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x9")](n))return;const s=e[Ec("0x2")](n);this[Ec("0x68")][Ec("0x1")](s)[Ec("0x70")].focus()}),{priority:Ec("0x36")})}[Ec("0x13")](){const t=this[Ec("0x11")].plugins[Ec("0x1")](Ec("0x19")),e=this[Ec("0x11")][Ec("0x75")][Ec("0x1")]("TrackChangesEditing"),n=Array[Ec("0x6d")](t[Ec("0x2e")],(t=>t[Ec("0x41")]))[Ec("0x28")]((t=>this._viewToController[Ec("0x5")](t))),o=[];for(const t of n){const e=this._viewToController.get(t)[Ec("0x39")][Ec("0x69")]();o.push(...e[Ec("0x5c")](((t,e)=>[...t,...e[Ec("0x1f")]()]),[]))}e[Ec("0x5e")]=o}[Ec("0x6c")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x11")][Ec("0xd")][Ec("0x1")](Ec("0x6b")),r=Yo(t,Ec("0x45"));n.buttonView[Ec("0x3a")]({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("0xa")].bind("isOn").to(o,Ec("0x32")),n[Ec("0xa")].on(Ec("0x59"),(()=>{o[Ec("0x59")](),this[Ec("0x11")][Ec("0x27")][Ec("0x70")][Ec("0x31")]()}));const i=new e.Collection,x=[{type:Ec("0x10"),model:{withText:!0,label:r,commandName:Ec("0x6b")}},{type:Ec("0x64")},{type:Ec("0x63"),model:{withText:!0,label:Yo(t,Ec("0x8")),commandName:Ec("0x58")}},{type:Ec("0x63"),model:{withText:!0,label:Yo(t,Ec("0x1c")),commandName:Ec("0x55")}},{type:Ec("0x63"),model:{withText:!0,label:Yo(t,Ec("0x33")),commandName:Ec("0x4b")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x16")),commandName:Ec("0x71")}}];for(const t of x){let e={type:Ec("0x64")};if(t[Ec("0x39")]){const n=new s.Model(t[Ec("0x39")]),o=this[Ec("0x11")].commands.get(n.commandName);n[Ec("0x26")](Ec("0x3e"),"isEnabled").to(o,Ec("0x32"),Ec("0x5d")),e={type:t[Ec("0x2b")],model:n}}i[Ec("0x29")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x28")]((t=>null!=t[Ec("0x39")]))[Ec("0x17")]((t=>this[Ec("0x11")][Ec("0xd")][Ec("0x1")](t[Ec("0x39")][Ec("0x18")]))),c=n[Ec("0xa")];return c[Ec("0x44")].unbind(Ec("0x5d")),c[Ec("0x4e")][Ec("0x4c")](Ec("0x5d")),c[Ec("0x44")].bind(Ec("0x5d")).to(o,Ec("0x5d")),c[Ec("0x4e")][Ec("0x26")](Ec("0x5d"))[Ec("0x72")](a,Ec("0x5d"),((...t)=>t[Ec("0x35")]((t=>t)))),n.on("execute",(t=>{this[Ec("0x11")][Ec("0x59")](t[Ec("0x43")][Ec("0x18")]),this[Ec("0x11")][Ec("0x27")][Ec("0x70")][Ec("0x31")]()})),n}[Ec("0x51")](t){const e=this[Ec("0x11")],n=e[Ec("0xb")],o=e.plugins.get("Annotations"),s=e[Ec("0x75")][Ec("0x1")](Ec("0x37")),i=e[Ec("0x75")][Ec("0x1")]("EditorAnnotations"),x=e.plugins.get(r.Users).me,a=n.get(Ec("0x6b"))[Ec("0x50")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x1")](Ec("0x2d"));let d,u;this[Ec("0x3f")].has(t.id)?(u=this[Ec("0x3f")][Ec("0x1")](t.id),d=u[Ec("0x25")]):(d=new a(e[Ec("0x24")],t,x,{disableComments:this[Ec("0x14")],editorConfig:n[Ec("0x1")](Ec("0xf")),maxCommentsWhenCollapsed:n[Ec("0x1")](Ec("0x1d")),maxThreadTotalWeight:n[Ec("0x1")](Ec("0x21")),maxCommentCharsWhenCollapsed:n[Ec("0x1")](Ec("0x66")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Ec("0x24"))),CommentView:n.get(Ec("0x38"))[Ec("0x47")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x61")].on("execute",(()=>{e[Ec("0x27")][Ec("0x70")][Ec("0x31")]()})),d.discardButton.on("execute",(()=>{e[Ec("0x27")].view[Ec("0x31")]()})),u=o[Ec("0x23")](this[Ec("0x11")].locale,d),u[Ec("0x26")](Ec("0x6f")).to(d,Ec("0x6f")),u.bind(Ec("0x22")).to(d),u.bind(Ec("0x2b")).to(d,Ec("0x2b"),(t=>Ec("0x3c")+t)),this[Ec("0x3f")][Ec("0x3a")](t.id,u));const g=s.createCommentThreadController(t.commentThread,d),m=new oc(e,t,d,g),f=t[Ec("0x69")]()[Ec("0x28")]((t=>t[Ec("0x65")]));d[Ec("0x5b")]=e[Ec("0x75")][Ec("0x1")](Ec("0x12"))[Ec("0x67")][Ec("0x5a")](f),this[Ec("0x68")][Ec("0x3a")](t,m),this[Ec("0x5f")][Ec("0x3a")](d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x69")]()[Ec("0x28")]((t=>t[Ec("0x65")]));for(const t of o)n[Ec("0x52")](...t[Ec("0x56")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x27")],n)},type:()=>Ec("0x3c")+m[Ec("0x70")][Ec("0x2b")]});o[Ec("0x29")](h),i[Ec("0x15")](h)}[Ec("0x4")](t){const e=this[Ec("0x11")].plugins[Ec("0x1")]("Annotations"),n=this._suggestionToController.get(t),o=n[Ec("0x70")],s=e.getByInnerView(o);s&&e[Ec("0xc")](s),this[Ec("0x68")][Ec("0x1a")](t),this[Ec("0x5f")][Ec("0x1a")](o),n[Ec("0x3b")]()}[Ec("0x73")](t){if(!t.isInContent||!this[Ec("0x68")][Ec("0x5")](t))return;const e=this.editor[Ec("0x75")].get("TrackChangesEditing"),n=this._suggestionToController.get(t),o=t[Ec("0x69")]();n[Ec("0x70")][Ec("0x5b")]=e._descriptionFactory[Ec("0x5a")](o)}[Ec("0x3b")](){for(const t of this._suggestionToController[Ec("0x6")]())this[Ec("0x4")](t);for(const t of this[Ec("0x3f")].values())t[Ec("0x25")][Ec("0x3b")]();super[Ec("0x3b")]()}}var Tc,Cc,yc=["adapter","plugins","editor","requires","getSuggestions","getSuggestion","Comments","addSuggestion","pluginName","TrackChanges","get"];Tc=yc,Cc=180,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("0xa")](){return[za,_c,kc("0x2")]}static get[kc("0x4")](){return kc("0x5")}set[kc("0x7")](t){this[kc("0x9")][kc("0x8")].get(za).adapter=t}get[kc("0x7")](){return this[kc("0x9")][kc("0x8")][kc("0x6")](za)[kc("0x7")]}[kc("0x3")](t){return this[kc("0x9")][kc("0x8")][kc("0x6")](za).addSuggestionData(t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x9")][kc("0x8")][kc("0x6")](za)[kc("0x0")]({skipNotAttached:t,toJSON:e})}[kc("0x1")](t){return this.editor[kc("0x8")][kc("0x6")](za)[kc("0x1")](t)}}const vc=["data","editor","getUser","users","editorCreator","execute","_adapter","createDocumentFragment","destroy","plugins","acceptAllSuggestions","end","config","result","trackChangesData","TrackChangesEditing","push","CommentsRepository","get","getFullData","Pagination","document","useAnonymousUser","model","create","init","discardAllSuggestions","pluginName","rootsAttributes","function","getDataWithAcceptedSuggestions","appendChild","track-changes-data-invalid-editor-creator","TrackChangesData","Users","createElement","addUser","name","div","getRootNames","reduce","getRootsAttributes"];var Rc,Sc;Rc=vc,Sc=306,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x8")];class Nc extends t.Plugin{static get requires(){return[za]}static get[Ic("0xf")](){return Ic("0x15")}[Ic("0xd")](){const t=this[Ic("0x1f")];if(t[Ic("0x0")].define("trackChangesData.editorCreator",(e=>{const n=t.model.document[Ic("0x1b")]()[Ic("0x1c")](((t,e)=>(t[e]="",t)),{});return t.constructor[Ic("0xc")](n,e)})),Ic("0x11")!=typeof t.config[Ic("0x6")](Ic("0x2")).editorCreator)throw new e.CKEditorError(Ic("0x14"))}[Ic("0x12")](t){return Oc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Ic("0x1f")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0xf")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[Ic("0x1")]=Ic("0x29")}[Ic("0xd")](){this.editor[Ic("0x27")][Ic("0x6")](Ic("0x5"))[Ic("0x24")]={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("0x1f")][Ic("0x27")].get(Ic("0x3"))._adapter=null}}function wc(t){return void 0!==t[Ic("0x1d")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x27")][Ic("0x4")](za,Mc),o[Ic("0x10")]=wc(t)?t.getRootsAttributes():void 0;const s=document[Ic("0x25")](),i=t[Ic("0x0")][Ic("0x6")]("trackChangesData")[Ic("0x22")],x=await i(o,(()=>function(t){const e=document[Ic("0x17")](Ic("0x1a"));return t[Ic("0x13")](e),e}(s)));!function(t,e){const n=t[Ic("0xb")][Ic("0x9")][Ic("0x1b")]().reduce(((e,n)=>(e[n]=t[Ic("0x1e")][Ic("0x6")]({rootName:n}),e)),{}),o=t[Ic("0x27")][Ic("0x6")](Ic("0x16"))[Ic("0x21")].map((t=>({id:t.id,name:t[Ic("0x19")]}))),s=t[Ic("0x27")].get(Ic("0x3")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x27")].get(Ic("0x16")),i=e[Ic("0x27")][Ic("0x6")](Ic("0x3"));for(const t of o)r[Ic("0x20")](t.id)||r[Ic("0x18")](t);r.me||r[Ic("0xa")]();for(const t of s)i.addSuggestionData(t);e[Ic("0x1e")].set(n)}(t,x),x[Ic("0x23")](Ic(e?"0x28":"0xe"));const a=wc(x)?x[Ic("0x7")](n):x[Ic("0x1e")][Ic("0x6")](n);return await x[Ic("0x26")](),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=["forceDisabled","affectsData","has","TrackChangesCommand","refresh","isEnabled","_disableUnsupportedCommands","_enableCommands","_enabledCommands","editor","_isEnabledBasedOnSelection","value","commands","clearForceDisabled"];var c,l;c=a,l=470,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("0x0")]=e,this[d("0x3")]=!1,this.refresh(),this[d("0x2")]=!1}[d("0xa")](){this[d("0xb")]=!0}execute(){this[d("0x3")]=!this[d("0x3")],this[d("0x3")]?this[d("0xc")]():this[d("0xd")]()}[d("0xc")](){for(const t of this[d("0x1")][d("0x4")][d("0x4")]())t[d("0x7")]&&!this[d("0x0")].has(t)&&t[d("0x6")](d("0x9"))}[d("0xd")](){for(const t of this[d("0x1")][d("0x4")][d("0x4")]())t[d("0x7")]&&!this[d("0x0")][d("0x8")](t)&&t[d("0x5")](d("0x9"))}}const g=["acceptSuggestion","plugins","refresh","_isEnabledBasedOnSelection","model","track-changes-accept-suggestion-not-found","get","editor","execute","_suggestions","isEnabled"];var m,f;m=g,f=292,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[h("0x3")]=e,this[h("0x7")](),this[h("0x8")]=!1}refresh(){this[h("0x4")]=!0}[h("0x2")](t){const n=this._suggestions[h("0x0")](t);if(!n)throw new e.CKEditorError(h("0xa"),this);const o=n.getRanges();this[h("0x1")][h("0x9")].canEditAt(o)&&this[h("0x1")][h("0x6")][h("0x0")]("TrackChangesEditing")[h("0x5")](n)}}const b=["TrackChangesEditing","get","getRanges","editor","_isEnabledBasedOnSelection","plugins","isEnabled","discardSuggestion","refresh","model","execute","track-changes-discard-suggestion-not-found","_suggestions"];var E,_;E=b,_=278,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[T("0x7")]=e,this[T("0x3")](),this[T("0xc")]=!1}[T("0x3")](){this[T("0x1")]=!0}[T("0x5")](t){const n=this[T("0x7")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n[T("0xa")]();this[T("0xb")][T("0x4")].canEditAt(o)&&this[T("0xb")][T("0x0")].get(T("0x8"))[T("0x2")](n)}}const y=["from","end","sort","content","deletion","isIntersecting","color","start","replace","map","createRange","createPositionAfter","isCollapsed","schema","createPositionAt","length","next","createPositionBefore","execute","type","isTouching","getRange","isInContent"," [color ","add"];var k,A;k=y,A=258,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x13")](((t,e)=>"deletion"==t[v("0xb")]&&v("0x15")!=e[v("0xb")]?-1:v("0x15")!=t.type&&v("0x15")==e[v("0xb")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0x5")];for(;o<t[v("0x7")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),I(e,i,x)||(s.push(e[v("0x2")](n,r.isObject(i)?e[v("0x3")](i):e[v("0x6")](i,v("0x12")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x9")](n);return o[v("0xc")](s)}function L(t,e,n){for(;n[v("0x7")];){const o=n.splice(0,100);t.change((()=>{for(const t of o)t[v("0xe")]&&e[v("0xa")](t.id)}))}}const N=["canEditAt","model","isEnabled","_command","some","isInContent","editor","_suggestions","from","refresh"];var M,w;M=N,w=139,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[O("0x4")]=e,this._suggestions=n,this.refresh(),this._isEnabledBasedOnSelection=!1}[O("0x0")](){const t=Array[O("0x9")](this[O("0x8")].values())[O("0x5")]((t=>t[O("0x6")]));this[O("0x3")]=this[O("0x4")][O("0x3")]&&t}execute(){const t=R(Array[O("0x9")](this[O("0x8")].values()));for(const e of t){const t=e.getRanges();if(!this[O("0x7")][O("0x2")][O("0x1")](t))return}L(this[O("0x7")][O("0x2")],this[O("0x4")],t)}}const P=["model","canEditAt","isEnabled","_suggestions","_selectedSuggestions","from","_command","getRanges","selection","_isEnabledBasedOnSelection","values","document","execute","refresh","editor"];var D,B;D=P,B=262,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[j("0xe")]=e,this[j("0xb")]=n,this[j("0xc")]=new Set,this[j("0x6")](),this[j("0x2")]=!1}[j("0x6")](){const t=this[j("0x7")][j("0x8")][j("0x4")][j("0x1")],e=Array[j("0xd")](this._suggestions[j("0x3")]());this[j("0xc")]=function(t,e){const n=Array[v("0x11")](t.getRanges()),o=new Set;for(const s of e)if(s[v("0xe")])for(const e of n)for(const n of s.getMarkers()){const r=n[v("0xd")]();(e[v("0x16")](r)||t[v("0x4")]&&!s.isMultiRange&&s[v("0x8")]&&r[v("0x12")][v("0xc")](e[v("0x18")]))&&o[v("0x10")](s)}return o}(t,e),this[j("0xa")]=this[j("0xe")][j("0xa")]&&!!this[j("0xc")].size}[j("0x5")](){const t=R(Array.from(this._selectedSuggestions));for(const e of t){const t=e[j("0x0")]();if(!this[j("0x7")][j("0x8")][j("0x9")](t))return}L(this[j("0x7")][j("0x8")],this[j("0xe")],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=["attributes","previous","getAllAdjacentSuggestions","isMultiRange","getMarkers","subType","clear","getFirstMarker","createdAt","author","isIntersecting","_markerNames","markers","data","map","_onDiscard","accept","head","decorate","getFirstRange","hasComments","split","isExternal","length","addRange","onAttributesChange","onAccept","removeAttribute","removeMarkers","add","reduce","getRanges","_onAccept","commentThread","getMarkerNames","isIntersectingWithRange","setAttribute","creator","removeMarker","filter","addMarker","start","end","_onAttributesChange","@external","size","getRange","_model","type","change","getItems","addMarkerName","nodeAfter","set","toJSON","delete","next","get","push","from"];var $o,Jo;$o=Xo,Jo=147,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[Qo("0x15")]=e[Qo("0x15")],this[Qo("0x26")]=e[Qo("0x26")]||null,this[Qo("0x2a")]=e[Qo("0x2a")],this[Qo("0xa")]=e.creator||e.author,this[Qo("0x37")]=Boolean(e[Qo("0x21")]&&e[Qo("0x21")][Qo("0x11")]),this[Qo("0x2e")]=null,this[Qo("0x14")]=t,this._onAccept=e[Qo("0x3b")],this._onDiscard=e.onDiscard,this[Qo("0x10")]=e[Qo("0x3a")],this[Qo("0x2c")]=new Set,this[Qo("0x29")]=null,this[Qo("0x1a")]("authoredAt",null),this[Qo("0x1a")](Qo("0x21"),e[Qo("0x21")]||{}),this[Qo("0x1a")](Qo("0x22"),null),this.set(Qo("0x1d"),null),this[Qo("0x1a")]("commentThread",null),this[Qo("0x1a")]("_saved",!1),this[Qo("0x33")]("accept"),this[Qo("0x33")]("discard")}get[Qo("0x32")](){let t=this;for(;t[Qo("0x22")];)t=t[Qo("0x22")];return t}get[Qo("0x35")](){return!!this[Qo("0x6")]&&this.commentThread[Qo("0x38")]>0}get[Qo("0x24")](){return 0!=this[Qo("0x2c")][Qo("0x12")]&&6==Array[Qo("0x20")](this[Qo("0x2c")])[0][Qo("0x36")](":")[Qo("0x38")]}get isInContent(){return null!==this.getFirstMarker()}[Qo("0x18")](t){this[Qo("0x2c")][Qo("0x2")](t)}[Qo("0x7")](){return Array.from(this._markerNames)}[Qo("0x25")](){return this[Qo("0x7")]()[Qo("0x2f")]((t=>this[Qo("0x14")][Qo("0x2d")][Qo("0x1e")](t)))[Qo("0xc")]((t=>t))}getFirstMarker(){return this[Qo("0x25")]()[0]||null}removeMarkers(){this[Qo("0x14")][Qo("0x16")]((t=>{for(const e of this.getMarkers())t.removeMarker(e)})),this[Qo("0x2c")][Qo("0x27")]()}[Qo("0xb")](t){this[Qo("0x14")][Qo("0x16")]((e=>{e[Qo("0xb")](t)})),this._markerNames[Qo("0x1c")](t)}[Qo("0x39")](t){const e="suggestion:"+this[Qo("0x15")]+":"+this.subType+":"+this.id+":"+this[Qo("0xa")].id+":"+Zo.getMultiRangeId();this[Qo("0x18")](e),this[Qo("0x14")][Qo("0x16")]((n=>{n[Qo("0xd")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x8")](t){for(const e of this.getRanges())if(e[Qo("0x2b")](t))return!0;return!1}getRanges(){return this[Qo("0x25")]()[Qo("0x2f")]((t=>t.getRange()))}[Qo("0x17")](){return this.getRanges()[Qo("0x3")](((t,e)=>[...t,...e[Qo("0x17")]()]),[])}[Qo("0x34")](){var t;return(null===(t=this[Qo("0x28")]())||void 0===t?void 0:t[Qo("0x13")]())||null}getContainedElement(){const t=this[Qo("0x4")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0xe")][Qo("0x19")],o=e[Qo("0xf")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x31")](){this[Qo("0x5")](this[Qo("0x4")](),this[Qo("0x2e")],this[Qo("0x21")]),this[Qo("0x1")]()}discard(){this[Qo("0x30")](this[Qo("0x4")](),this[Qo("0x2e")],this[Qo("0x21")]),this[Qo("0x1")]()}[Qo("0x23")](){const t=[];let e=this[Qo("0x32")];for(;e;)t[Qo("0x1f")](e),e=e[Qo("0x1d")];return t}[Qo("0x9")](t,e){const n=eo(this[Qo("0x21")]);_o(n,t,e),Go(n,this[Qo("0x21")])||(this.attributes=n,this[Qo("0x10")](n))}[Qo("0x0")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x21")])||(this[Qo("0x21")]=e,this[Qo("0x10")](this[Qo("0x21")]))}[Qo("0x1b")](){return{id:this.id,type:this[Qo("0x26")]?this[Qo("0x15")]+":"+this[Qo("0x26")]:this.type,authorId:this[Qo("0xa")].id,createdAt:this[Qo("0x29")],hasComments:this[Qo("0x35")],data:this[Qo("0x2e")],attributes:this[Qo("0x21")]}}static getMultiRangeId(){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=["text","Container","getFirstRange","*Insert:* %0","push","start","length","$1 $2","data","addObject","label","function","replace","_itemLabels","$textProxy","_itemLabelsCallbacks","$text","ELEMENT_SPACE","normal","isInContent","isEqual","quantity","matchingCallback","addEmptyContainer","*Remove:* %0","insertion","getItemLabel","add","_addDescriptionItems","Object","softBreak","name","end","skip","_schema","_customCallbacks","get","_resolveDescriptionItems","_locale","getDescriptions","element","EmptyContainer","deletion","remove","type","removeObject","REPLACE_TEXT","set","removeEmptyContainer","item","*Merge:* %0","isEmpty","nextSibling","isObject","checkChild","indexOf","previousSibling","removeContainer","elementEnd"];var es,ns;es=ts,ns=151,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("0x2")]=[],this._itemLabels=new Map,this[os("0x29")]=[],this[os("0x1")]=t,this[os("0x5")]=e}[os("0x6")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[os("0x2d")])continue;let s=!1;for(const t of this[os("0x2")]){const n=t(o);if(n){os("0xb")in n&&e[os("0x1e")](n),s=!0;break}}if(!s){this[os("0x36")](e,o);const s=t[n+1];if(s&&!o[os("0x1c")]()[os("0x3a")][os("0x2e")](s.getFirstRange()[os("0x1f")])){const t=e[e[os("0x20")]-1],n="insertion"==o[os("0xb")]?os("0x35"):os("0xa");t&&"text"==t[os("0xb")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this._customCallbacks.push(t)}registerElementLabel(t,n,o=e.priorities[os("0x2c")]){os("0x25")==typeof t?(0,e.insertToPriorityArray)(this[os("0x29")],{matchingCallback:t,label:n,priority:o}):this[os("0x27")][os("0xe")](t,n)}[os("0x34")](t,e=1){let n;for(const e of this[os("0x29")])if(e[os("0x30")](t)){n=e[os("0x24")];break}return n||(n=this._itemLabels[os("0x3")](t[os("0x39")])),n?n(e):1!==e?e+" "+t.name+"s":""+t.name}[os("0x36")](t,e){const n=e[os("0x1c")]().getWalker(),o=os("0x33")==e[os("0xb")]?os("0x35"):os("0xa");for(const e of n){const s=e[os("0x10")],r=t[t.length-1];if(s.is(os("0x28")))r&&r[os("0xb")][os("0x16")](os("0x1b"))>-1&&t.pop(),r&&"text"==r[os("0xb")]?r[o]+=s[os("0x22")]:t[os("0x1e")]({type:"text",add:"add"==o?s.data:"",remove:"remove"==o?s.data:""});else if(this._schema.isObject(s)){const i=s;if(r&&r[os("0xb")][os("0x16")](os("0x1b"))>-1&&t.pop(),os("0x19")==e[os("0xb")])continue;r&&r[os("0xb")]==o+"Object"&&r[os("0x7")].name==i[os("0x39")]?r[os("0x2f")]++:t[os("0x1e")]({type:o+os("0x37"),element:i,quantity:1}),n[os("0x0")]((t=>!("elementEnd"==t[os("0xb")]&&t[os("0x10")]==s)))}else if(this[os("0x1")][os("0x15")](s,os("0x2a"))||s.is("element",os("0x38"))){const n=s;if(os("0x35")==o&&"elementStart"==e[os("0xb")]||"remove"==o&&os("0x19")==e[os("0xb")])continue;if(r&&-1==r.type[os("0x16")](os("0x1b"))){os("0x1a")==r[os("0xb")]&&(r[o]+="\n");continue}let i;if(i="add"==o?n[os("0x13")]&&!this[os("0x1")].isObject(n.nextSibling)?n[os("0x13")]:null:n[os("0x17")]&&!this[os("0x1")][os("0x14")](n[os("0x17")])?n[os("0x17")]:null,n[os("0x12")]||i&&i[os("0x12")]){const e=i&&i[os("0x12")]?i:n;r&&r.type==o+os("0x8")&&r.element[os("0x39")]==e[os("0x39")]?r[os("0x2f")]++:t[os("0x1e")]({type:o+os("0x8"),element:e,quantity:1})}else t[os("0x1e")]({type:o+os("0x1b"),element:n})}}}[os("0x4")](t){const e=this[os("0x5")],n=[];for(const o of t){switch(o[os("0xb")]){case os("0x1a"):if(o[os("0x35")]=o[os("0x35")][os("0x26")](/(\S)\u000A+(\S)/g,os("0x21"))[os("0x26")](/\u000A/g,""),o[os("0xa")]=o[os("0xa")][os("0x26")](/(\S)\u000A+(\S)/g,os("0x21"))[os("0x26")](/\u000A/g,""),""!=o[os("0x35")]&&""!=o[os("0xa")]){n[os("0x1e")]({type:os("0x26"),content:Yo(e,os("0xd"),['"'+o[os("0xa")]+'"','"'+o[os("0x35")]+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[os("0x1e")]({type:os("0x33"),content:Yo(e,os("0x1d"),Yo(e,os("0x2b"),o[os("0x35")].length))});continue}if(null!=o[os("0xa")].match(/^ +$/)){n[os("0x1e")]({type:os("0x9"),content:Yo(e,os("0x32"),Yo(e,os("0x2b"),o[os("0xa")][os("0x20")]))});continue}if(""!=o[os("0x35")]){n[os("0x1e")]({type:os("0x33"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x35")]+'"')});continue}n.push({type:os("0x9"),content:Yo(e,os("0x32"),'"'+o.remove+'"')});continue;case os("0x31"):case os("0x23"):n[os("0x1e")]({type:"insertion",content:Yo(e,"*Insert:* %0",this[os("0x34")](o[os("0x7")],o.quantity))});continue;case os("0xf"):case os("0xc"):n[os("0x1e")]({type:os("0x9"),content:Yo(e,os("0x32"),this[os("0x34")](o[os("0x7")],o[os("0x2f")]))});continue;case"addContainer":n[os("0x1e")]({type:"insertion",content:Yo(e,"*Split:* %0",this.getItemLabel(o[os("0x7")],o[os("0x2f")]))});continue;case os("0x18"):n[os("0x1e")]({type:"deletion",content:Yo(e,os("0x11"),this[os("0x34")](o[os("0x7")],o.quantity))});continue}n[os("0x1e")](o)}return n}}const rs=["*Format:* %0","registerDescriptionCallback","_descriptionFactory","AlignmentEditing","value","has","model","right","plugins","contentLanguageDirection","document","from","locale","justify","change","getSelectedBlocks","alignment","FORMAT_ALIGN_TO_CENTER","markBlockFormat","left","schema","editor","getAttribute","FORMAT_ALIGN_TO_LEFT","commandParams","filter","get","afterInit","format"];var is,xs;is=rs,xs=314,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x3")](){const t=this.editor,e=t.locale;if(!t[as("0xd")][as("0xa")](as("0x8")))return;const n=t.plugins[as("0x2")]("TrackChangesEditing");n.enableCommand("alignment",((e,o={})=>{let s=o.value;o[as("0x9")]||(s="ltr"===t[as("0x11")][as("0xe")]?as("0x18"):as("0xc"));const r=Array[as("0x10")](this[as("0x1a")][as("0xb")][as("0xf")].selection[as("0x14")]())[as("0x1")]((t=>function(t,e,n){const o=t[as("0x1b")](as("0x15"))||null;return e.checkAttribute(t,as("0x15"))&&n!=o}(t,this[as("0x1a")][as("0xb")][as("0x19")],s)));t[as("0xb")][as("0x13")]((()=>{for(const t of r)n[as("0x17")](t,{commandName:as("0x15"),commandParams:[{value:s}]})}))})),n[as("0x7")][as("0x6")]((t=>{const{data:n}=t;if(n&&as("0x15")==n.commandName){const t=n[as("0x0")][0][as("0x9")];return{type:as("0x4"),content:Yo(e,as("0x5"),function(t){switch(t){case"left":return Yo(e,as("0x1c"));case as("0xc"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case"center":return Yo(e,as("0x16"));case as("0x12"):return Yo(e,"FORMAT_JUSTIFY_TEXT")}}(t))}}}))}}const ls=["createRangeOn","previousPosition","addHighlight","writer","span","isBlock","listIndent","schema","nextSibling","ck-suggestion-marker--active","listItem","getItems","getWalker","insert","getCustomProperty","isLimit","toViewElement","model","createUIElement","consumable","hasAttribute","parent","ck-suggestion-marker-","getAttribute","push","get","TrackChangesEditing","start","activeMarkers","elementEnd","isAtEnd","isContent","markerRange","type","includes","markerName","addClass","bindElementToMarker","toViewPosition","mapper","element"];var ds,us;ds=ls,us=159,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("0x10")]())s[gs("0x19")](t)&&o[gs("0x1d")](n[gs("0x5")](s));return o}function fs(t){const e=[];if(t.is(gs("0x4"),gs("0xf"))){let n=t[gs("0xd")];for(;n&&n.is(gs("0x4"),gs("0xf"))&&n[gs("0x1c")](gs("0xb"))>0;)e[gs("0x1d")](n),n=n[gs("0xd")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x1e")](gs("0x1f"));return(s,r,i)=>{if(!i[gs("0x18")].test(r[gs("0x25")],s.name))return;const x=r[gs("0x25")][gs("0x11")](),a=r[gs("0x25")][gs("0x20")],c=t[gs("0x16")][gs("0xc")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c[gs("0x24")](e);const n=i[gs("0x3")][gs("0x15")](e);if(n&&n[gs("0x13")](gs("0x7")))return;gs("0x22")==t[gs("0x26")]&&c[gs("0xa")](e)&&!c[gs("0x14")](e)&&(e[gs("0xd")]||a[gs("0x23")]?l&&l[gs("0x1a")]==e||(l=e,m(t[gs("0x6")]),g=!0):d=d||t[gs("0x6")])}function m(t){const s=i.writer[gs("0x17")](gs("0x9"),{class:gs("0x1b")+e}),x=i[gs("0x3")][gs("0x2")](t);n&&o[gs("0x21")][gs("0x27")](r[gs("0x28")])&&i[gs("0x8")][gs("0x0")](gs("0xe"),s),i.writer[gs("0x12")](x,s),i[gs("0x3")][gs("0x1")](s,r[gs("0x28")])}u||g||!d||m(d)}}const ps=["editor","subscript","code","*Format:* %0","underline","format","CodeEditing","registerDescriptionCallback","_descriptionFactory","commandParams","enableCommand","BoldEditing","FORMAT_SUBSCRIPT","FORMAT_ITALIC","commands","UnderlineEditing","get","afterInit","FORMAT_CODE","document","forceValue","FORMAT_UNDERLINE","value","has","superscript","locale","model","bold","FORMAT_SUPERSCRIPT","change","isCollapsed","selection"];var bs,Es;bs=ps,Es=394,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x1"),"ItalicEditing",_s("0x5"),_s("0x1c"),"StrikethroughEditing","SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{[_s("0x7")](){const t=this[_s("0x16")],e=t[_s("0x10")],n=t.plugins[_s("0x6")]("TrackChangesEditing"),o=t[_s("0xf")];for(const o of Ts){if(!t.plugins[_s("0xd")](o))continue;const s=o.slice(0,-7).toLowerCase(),r=t[_s("0x4")][_s("0x6")](s);n[_s("0x0")](s,((t,o={})=>{const i=e[_s("0x9")][_s("0x15")];if(i[_s("0x14")])return void t(o);const x=void 0!==o.forceValue?o[_s("0xa")]:!r[_s("0xc")];e[_s("0x13")]((()=>{const t=Array.from(i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x1e")][_s("0x1d")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s[_s("0x1f")][0][_s("0xa")]?{type:"format",content:Yo(o,_s("0x19"),e)}:{type:_s("0x1b"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0x11"),Yo(o,"FORMAT_BOLD")),s("italic",Yo(o,_s("0x3"))),s(_s("0x1a"),Yo(o,_s("0xb"))),s(_s("0x18"),Yo(o,_s("0x8"))),s("strikethrough",Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x17"),Yo(o,_s("0x2"))),s(_s("0xe"),Yo(o,_s("0x12")))}}const ys=["value","has","from","commands","document","getSelectedBlocks","filter","selection","afterInit","checkChild","locale","change","forceValue","schema","_descriptionFactory","ELEMENT_BLOCK_QUOTE","editor","plugins","format","commandParams","BlockQuoteEditing","*Remove format:* %0","markBlockFormat","blockQuote","parent","registerDescriptionCallback","model"];var ks,As;ks=ys,As=311,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x15")](){const t=this[vs("0x2")],e=t[vs("0x17")];if(!t[vs("0x3")][vs("0xe")](vs("0x6")))return;const n=t[vs("0x3")].get("TrackChangesEditing"),o=this[vs("0x2")][vs("0x10")].get(vs("0x9"));n.enableCommand(vs("0x9"),((e,s={})=>{const r=this[vs("0x2")].model[vs("0x11")][vs("0x14")],i=s&&void 0!==s[vs("0x19")]?s.forceValue:!o[vs("0xd")];let x=[];if(i){const e=Array[vs("0xf")](r.getSelectedBlocks())[vs("0x13")]((t=>Ss(t)||function(t,e){const n=e[vs("0x16")](t[vs("0xa")],vs("0x9")),o=e.checkChild(["$root",vs("0x9")],t);return n&&o}(t,this[vs("0x2")][vs("0xc")][vs("0x1a")])));x=S(e,t.model)}else{const e=Array[vs("0xf")](r[vs("0x12")]())[vs("0x13")]((t=>Ss(t)));x=S(e,t[vs("0xc")])}t.model[vs("0x18")]((()=>{for(const t of x)n[vs("0x8")](t,{commandName:vs("0x9"),commandParams:[{forceValue:i}]})}))})),n[vs("0x0")][vs("0xb")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n.commandName){const t=Yo(e,vs("0x1"));return n[vs("0x5")][0][vs("0x19")]?{type:vs("0x4"),content:Yo(e,"*Format:* %0",t)}:{type:vs("0x4"),content:Yo(e,vs("0x7"),t)}}}))}}function Ss(t){return"blockQuote"==t.parent.name}const Is=["editor","TrackChangesEditing","ckbox","enableCommand","afterInit","plugins","get"];var Ls,Ns;Ls=Is,Ns=225,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x3")](){const t=this[Ms("0x6")];t.commands[Ms("0x5")](Ms("0x1"))&&t[Ms("0x4")].get(Ms("0x0"))[Ms("0x2")](Ms("0x1"))}}const Os=["name","config","afterInit","commands","editor","indentCodeBlock","change","get","language","enableCommand","registerDescriptionCallback","formatBlock","CodeBlock","format","forceValue","TrackChangesEditing","markBlockFormat","label","locale","_descriptionFactory","rootElement","getSelectedBlocks","model","filter","value","*Format:* %0","blockName","codeBlock","*Remove format:* %0","plugins","isLimit","has","ELEMENT_CODE_BLOCK","find","parent","from","commandName","schema","outdentCodeBlock","commandParams"];var Fs,Ps;Fs=Os,Ps=400,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x2")](){const t=this[Ds("0x4")];if(!t.plugins[Ds("0x1f")](Ds("0xc")))return;const e=t[Ds("0x1d")][Ds("0x7")](Ds("0xf")),n=t[Ds("0x12")],o=t[Ds("0x1")].get("codeBlock").languages,s=t[Ds("0x3")][Ds("0x7")](Ds("0x1b"));e[Ds("0x9")](Ds("0x5")),e[Ds("0x9")](Ds("0x26")),e[Ds("0x9")](Ds("0x1b"),((n,r={})=>{const i=t[Ds("0x16")],x=t[Ds("0x16")].document.selection,a=r&&void 0!==r[Ds("0xe")]?r[Ds("0xe")]:!s[Ds("0x18")];let c;r[Ds("0x8")]||(r[Ds("0x8")]=o[0][Ds("0x8")]),c=a?Array[Ds("0x23")](x[Ds("0x15")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x25")],!e.is(Ds("0x14"))&&!n[Ds("0x1e")](e)&&n.checkChild(e[Ds("0x22")],"codeBlock"));var e,n})):Array[Ds("0x23")](x.getSelectedBlocks())[Ds("0x17")]((t=>js(t)));const l=S(c,i);i[Ds("0x6")]((()=>{for(const t of l)e[Ds("0x10")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x1a")})}))})),e[Ds("0x13")].registerElementLabel(Ds("0x1b"),(t=>Yo(n,Ds("0x20"),t))),e[Ds("0x13")][Ds("0xa")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0xb")==s&&r&&Ds("0x1b")==r[Ds("0x24")]){const t=r[Ds("0x27")][0][Ds("0x8")],s=e(o[Ds("0x21")]((e=>e[Ds("0x8")]===t))[Ds("0x11")]);return r[Ds("0x27")][0][Ds("0xe")]?{type:Ds("0xd"),content:Yo(n,Ds("0x19"),Yo(n,Ds("0x20"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Ds("0x1c"),Yo(n,Ds("0x20"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x0")]}const Us=["plugins","editor","get","afterInit","TrackChangesEditing","enableCommand","CommentsEditing","addCommentThread"];var Gs,Hs;Gs=Us,Hs=318,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x5")](){const t=this[zs("0x3")];t.plugins.has(zs("0x0"))&&t[zs("0x2")][zs("0x4")](zs("0x6"))[zs("0x7")](zs("0x1"))}}var Vs=n(181);const Ks=["root","requires","forward","uiElement","get","editor","high","options","buffer","delete","merge","removeMarker:suggestion:deletion","unit","init","start","enqueueChange","deleteForward","enableCommand","remove","modifySelection","plugins","selection","unbindElementFromMarkerName","document","showSuggestionHighlights","downcastDispatcher","markerNameToElements","createSelection","isCollapsed","detach","commands","markerName","end","rootName","writer","lock","bind","addMarker:suggestion:deletion","setSelection","createRange","model","editing","mapper"];var qs,Xs;qs=Ks,Xs=438,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[$s("0x24")](){return[Vs.Delete]}[$s("0x5")](){const t=this[$s("0x28")],e=t[$s("0xc")][$s("0x27")]("TrackChangesEditing");e[$s("0x9")]($s("0x1"));const n=t[$s("0x16")].get("deleteForward");e.enableCommand($s("0x8"),((e,o={})=>{const s=t[$s("0x20")][$s("0x13")](t[$s("0x20")][$s("0xf")][$s("0xd")]);s[$s("0x14")]&&t[$s("0x20")][$s("0xb")](s,{direction:$s("0x25"),unit:o[$s("0x4")]});const r=s.getFirstRange(),x=i.LiveRange.fromRange(r);let a;e(o),a="$graveyard"==x[$s("0x23")][$s("0x19")]?t.model[$s("0x1f")](r[$s("0x6")]):t[$s("0x20")].createRange(x.start,x[$s("0x18")]),x[$s("0x15")](),t[$s("0x20")][$s("0x7")](n[$s("0x0")].batch,(t=>{n.buffer[$s("0x1b")](),t[$s("0x1e")](t[$s("0x1f")](a[$s("0x18")])),n[$s("0x0")].unlock()}))})),t[$s("0x21")].downcastDispatcher.on("addMarker:suggestion:deletion",hs(t,$s("0x2")),{priority:$s("0x29")}),t.data.downcastDispatcher.on($s("0x1d"),((e,n,o)=>{o[$s("0x2a")][$s("0x10")]&&hs(t,$s("0x2"),{showActiveMarker:!1})[$s("0x1c")](this)(e,n,o)}),{priority:$s("0x29")}),t.editing[$s("0x11")].on($s("0x3"),((t,e,n)=>{const o=n[$s("0x22")][$s("0x12")](e[$s("0x17")]);if(o)for(const t of o)t.is($s("0x26"))&&(n[$s("0x22")][$s("0xe")](t,e.markerName),n[$s("0x1a")][$s("0xa")](t))}),{priority:"high"})}}const Qs=["listItemId","createPositionAt","registerCustomCallback","getFirstRange","format","*Outdent:* %0","accept","documentList","detach","createRange","afterInit","from","length","toUpperCase","end","plugins","expandListBlocksToCompleteList","selection","*Change to:* %0","ELEMENT_BULLETED_LIST","push","isObject","*Format:* remove from %0","bulletedList","*Merge:* %0","after","nodeAfter","deletion","value","isFirstBlockOfListItem","setSelection","commandName","ELEMENT_NUMBERED_LIST","indentList","editor","schema","ELEMENT_","DocumentListEditing","has","formatBlock","before","add","commandParams","findIndex","model","getRanges","TrackChangesEditing","slice","enableCommand","refresh","forceValue","outdentList","splitListItemBefore","getAttribute","ELEMENT_LIST_ITEM","document","_descriptionFactory","listIndent","numberedList","nextSibling","splitListItemAfter","*Format:* insert into %0","markBlockFormat","commands","mergeListItemBackward","listType","mergeListItemForward","markMultiRangeBlockFormat","start","change","previousSibling","getSelectedBlocks","registerDescriptionCallback","get"];var Zs,Ys;Zs=Qs,Ys=348,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x20")](){const t=this[tr("0x38")];if(!t[tr("0x25")][tr("0x3c")](tr("0x3b")))return;const e=t.locale,n=t[tr("0x25")][tr("0x15")](tr("0x44")),o=t.plugins[tr("0x15")]("DocumentListUtils");function s(e){return()=>{const s=t[tr("0xb")][tr("0x15")](e);let r=Array[tr("0x21")](t[tr("0x42")].document[tr("0x27")][tr("0x13")]());if(a(e)){r=o[tr("0x26")](r);const t=[];for(const e of r)o[tr("0x33")](e)&&t.push(e);r=t}t[tr("0x42")][tr("0x11")]((()=>{n[tr("0xf")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x32")]}],formatGroupId:"listType"},[],tr("0x1d"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x21")](t);const n=e[tr("0x41")]((t=>!t.hasAttribute(tr("0x16"))));return n>-1&&(e=e[tr("0x45")](0,n)),e}(t[tr("0x42")][tr("0x3")][tr("0x27")][tr("0x13")]()),s=o[o[tr("0x22")]-1],r=t[tr("0x42")][tr("0x39")].isObject(s)?tr("0x2f"):"end",i=t.model[tr("0x1f")](t[tr("0x42")].createPositionAt(o[0],"before"),t[tr("0x42")][tr("0x17")](s,r));t[tr("0x42")].change((()=>{n[tr("0xa")](i,{commandName:e,commandParams:[],formatGroupId:tr("0xd")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x1")](tr("0x5"))>n.getAttribute(tr("0x5"));)e[tr("0x3f")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t.model[tr("0x3")].selection.getSelectedBlocks().next()[tr("0x32")],s=t[tr("0x42")][tr("0x17")](o,tr("0x3e")),r=t.model.createPositionAt(o,0),i=t[tr("0x42")].createRange(s,r);t[tr("0x42")][tr("0x11")]((()=>{n[tr("0xa")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[tr("0xb")][tr("0x15")](tr("0x2d"))[tr("0x32")],o=t[tr("0xb")][tr("0x15")](tr("0x6"))[tr("0x32")];return tr("0x6")===e?n:o}n[tr("0x46")](tr("0x6"),s(tr("0x6"))),n.enableCommand(tr("0x2d"),s(tr("0x2d"))),n[tr("0x46")](tr("0x37"),r("indentList")),n.enableCommand(tr("0x49"),r("outdentList")),n[tr("0x46")](tr("0x8"),x(tr("0x8"))),n.enableCommand(tr("0x0"),x(tr("0x0"))),n._descriptionFactory.registerElementLabel((function(e){const n=!t[tr("0x42")].schema[tr("0x2b")](e),o=e[tr("0x12")],s=e[tr("0x7")],r=e[tr("0x1")]("listItemId"),i=!o||o[tr("0x1")](tr("0x16"))!==r,x=!s||s.getAttribute(tr("0x16"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x2"),t))),n[tr("0x4")][tr("0x14")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n.commandName){case"bulletedList":r=n[tr("0x40")][0].forceValue,i=a(n[tr("0x35")]),o=tr(r?"0x9":"0x2c"),i&&(o=tr("0x28")),s={type:tr("0x1a"),content:Yo(e,o,Yo(e,tr("0x29")))};break;case tr("0x6"):r=n.commandParams[0][tr("0x48")],i=a(n[tr("0x35")]),o=tr(r?"0x9":"0x2c"),i&&(o=tr("0x28")),s={type:tr("0x1a"),content:Yo(e,o,Yo(e,tr("0x36")))};break;case"indentList":o="*Indent:* %0",s={type:"format",content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))};break;case tr("0x49"):o=function(t){const e=t[tr("0x19")]();let n=e[tr("0x10")][tr("0x30")];for(;n&&e.containsItem(n);){if(n.getAttribute(tr("0x5"))>0)return!1;n=n[tr("0x7")]}return!0}(t)?Yo(e,tr("0x2c"),Yo(e,function(t){const e=t[tr("0x19")]().start[tr("0x30")];return tr("0x3a")+e[tr("0x1")](tr("0xd"))[tr("0x23")]()+"_LIST"}(t))):Yo(e,tr("0x1b"),Yo(e,tr("0x2"))),s={type:"format",content:o};break;case tr("0xc"):case tr("0xe"):!1===n.multipleBlocks&&(o=tr("0x2e"),s={type:tr("0x31"),content:Yo(e,o,Yo(e,tr("0x2")))})}return s})),n._suggestionFactory[tr("0x18")](tr("0x3d"),"documentList",tr("0x1c"),(function(e,n){const o=[];for(let n of e)n[tr("0x10")][tr("0x30")]===n[tr("0x24")].parent&&(n=t.model[tr("0x1f")](t[tr("0x42")].createPositionAt(n[tr("0x10")][tr("0x30")],0))),o.push(n);t.model[tr("0x11")]((e=>{const s=t[tr("0x42")].document.selection,r=Array.from(s[tr("0x43")]()).map((t=>i.LiveRange.fromRange(t)));e[tr("0x34")](o),t[tr("0xb")][tr("0x15")](n[tr("0x35")])[tr("0x47")](),n[tr("0x40")][tr("0x2a")]({forceDefaultExecution:!0}),t.execute(n[tr("0x35")],...n[tr("0x40")]),e.setSelection(r);for(const t of r)t[tr("0x1e")]()}))}))}}var nr=n(331);const or=["getFirstPosition","enableCommand","model","remove","editing","enter","hasClass","markerName","createRange","removeMarker:suggestion:insertion","get","data","unbindElementFromMarkerName","markerNameToElements","requires","options","change","end","bind","selection","addMarker:suggestion:insertion","afterExecute","fire","nextSibling","high","enterBlock","TrackChangesEditing","downcastDispatcher","split","parent","writer","init","mapper","setSelection","createPositionAt","getFirstRange","commands","plugins"];var sr,rr;sr=or,rr=121,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("0x7")](){return[nr.Enter]}[ir("0x18")](){const t=this.editor,e=t[ir("0x1e")][ir("0x3")](ir("0x13")),n=t[ir("0x1d")][ir("0x3")]("enter");e[ir("0x20")](ir("0x24"),(()=>{t.model[ir("0x9")]((o=>{const s=t[ir("0x21")].document[ir("0xc")],r=s[ir("0x1f")](),x=i.LiveRange.fromRange(s[ir("0x1c")]());if(n[ir("0x12")](o)){const n=t.model[ir("0x1b")](r[ir("0x16")][ir("0x10")],0),s=o[ir("0x1")](r,n);e.markInsertion(s)}else o[ir("0x1a")](o[ir("0x1")](x[ir("0xa")]));x.detach(),n[ir("0xf")](ir("0xe"),{writer:o})}))})),t[ir("0x23")].downcastDispatcher.on(ir("0xd"),hs(t,ir("0x15")),{priority:ir("0x11")}),t[ir("0x23")][ir("0x14")].on(ir("0x2"),((t,e,n)=>{const o=n[ir("0x19")][ir("0x6")](e.markerName);if(o)for(const t of o)t[ir("0x25")]("ck-suggestion-marker-split")&&(n[ir("0x19")][ir("0x5")](t,e[ir("0x0")]),n[ir("0x17")][ir("0x22")](t))}),{priority:"high"}),t[ir("0x4")][ir("0x14")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ir("0x8")].showSuggestionHighlights&&hs(t,"split",{showActiveMarker:!1})[ir("0xb")](this)(e,n,o)}),{priority:ir("0x11")})}}const ar=["handleFindCommand","editor","bind","FindAndReplaceEditing","FindAndReplaceUtils","model","TrackChangesEditing","plugins","_isInDeletionRange","replaceAll","getMarkersGroup","replace","findNext","filter","item","string","afterInit","findPrevious","getIntersection","createPositionAt","enableCommand","markers","end","get"];var cr,lr;cr=ar,lr=340,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0xc")](){if(!this.editor[dr("0x3")].has(dr("0x17")))return;const t=this[dr("0x15")][dr("0x3")][dr("0x13")](dr("0x2"));t[dr("0x10")]("find",this[dr("0x14")][dr("0x16")](this)),t[dr("0x10")](dr("0x8")),t[dr("0x10")](dr("0xd")),t[dr("0x10")](dr("0x7")),t[dr("0x10")](dr("0x5"))}[dr("0x14")](t,e,n={}){const o=this[dr("0x15")].plugins[dr("0x13")](dr("0x0"));void 0!==n&&t((t=>(dr("0xb")==typeof e?o.findByTextCallback(e,n):e)(t)[dr("0x9")]((e=>!1===this[dr("0x4")](e,t[dr("0xa")])))),n)}_isInDeletionRange(t,e){const n=this.editor.model.createRange(this.editor[dr("0x1")][dr("0xf")](e,t.start),this[dr("0x15")][dr("0x1")][dr("0xf")](e,t[dr("0x12")]));for(const t of this.editor.model[dr("0x11")][dr("0x6")]("suggestion:deletion"))if(null!==n[dr("0xe")](t.getRange()))return!0;return!1}}const gr=["normalizeSizeOptions","get","toLowerCase","fontSize.options","FontSizeEditing","getRanges","from","FontBackgroundColorEditing","title","afterInit","fontBackgroundColor","_descriptionFactory","fontColor.colors","model","fontSize","editor","*Set font size:* %0","commandParams","*Reset font size*","*Reset font family*","locale","fontColor","*Set font background color:* %0","label","plugins","*Reset font background color*","trim","_enableCommand","find","document","format","FontFamilyEditing","change","value","enableCommand","registerDescriptionCallback","*Set font family:* %0","fontFamily","config","FontSize","commandName","selection","TrackChangesEditing"];var mr,fr;mr=gr,fr=490,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1e"),commandName:hr("0x28")},{pluginName:hr("0xe"),commandName:"fontFamily"},{pluginName:"FontColorEditing",commandName:hr("0x4")},{pluginName:hr("0x21"),commandName:"fontBackgroundColor"}];class br extends t.Plugin{[hr("0x23")](){const t=this.editor[hr("0x3")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x29")].plugins.has(t)&&this[hr("0xa")](e);this[hr("0x29")][hr("0x7")][hr("0x1b")]("TrackChangesEditing")[hr("0x25")][hr("0x12")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x28")==o[hr("0x17")]){const e=o[hr("0x0")][0][hr("0x10")];if(e){const o=n(this[hr("0x29")][hr("0x7")][hr("0x1b")](hr("0x16"))[hr("0x1a")](this[hr("0x29")][hr("0x15")].get(hr("0x1d")))[hr("0xb")]((t=>t.model==e))[hr("0x22")])[hr("0x1c")]();return{type:"format",content:Yo(t,hr("0x2a"),o)}}return{type:hr("0xd"),content:Yo(t,hr("0x1"))}}if(hr("0x14")==o[hr("0x17")]){const e=o[hr("0x0")][0][hr("0x10")];return e?{type:hr("0xd"),content:Yo(t,hr("0x13"),e)}:{type:hr("0xd"),content:Yo(t,hr("0x2"))}}if(hr("0x4")==o[hr("0x17")]){const e=o.commandParams[0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x29")].config[hr("0x1b")](hr("0x26"))).find((t=>t[hr("0x27")]==e));let r=e,i="";return o&&(r=o[hr("0x6")],i=n(r).toLowerCase()),{type:hr("0xd"),content:Yo(t,"*Set font color:* %0",i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0xd"),content:Yo(t,"*Reset font color*")}}if(hr("0x24")==o[hr("0x17")]){const e=o.commandParams[0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x29")][hr("0x15")][hr("0x1b")]("fontBackgroundColor.colors"))[hr("0xb")]((t=>t[hr("0x27")]==e));let r=e,i="";return o&&(r=o[hr("0x6")],i=n(r)[hr("0x1c")]()),{type:hr("0xd"),content:Yo(t,hr("0x5"),i)[hr("0x9")](),color:{value:e,title:i||r}}}return{type:hr("0xd"),content:Yo(t,hr("0x8"))}}}}))}[hr("0xa")](t){const e=this.editor;e[hr("0x7")].get("TrackChangesEditing")[hr("0x11")](t,((n,o={})=>{const s=e[hr("0x27")][hr("0xc")][hr("0x18")],r=o[hr("0x10")];s.isCollapsed?n(o):e.model[hr("0xf")]((()=>{const n=Array[hr("0x20")](s[hr("0x1f")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x27")]);for(const o of n)e[hr("0x7")].get(hr("0x19")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["length","selection","_descriptionFactory","copyFormat","boolean","getSelectedBlocks","normalizeSizeOptions","locale","pasteFormat","charAt","config","keys","isFormatting","fontSize.options","markInlineFormat","getRanges","toLowerCase","from","editor","fontColor","*Set format to:* %0","isBlock","modifySelection","model","split","getAttributes","TrackChangesEditing","word","*Remove all formatting*","forward","commands","plugins","registerDescriptionCallback","title","fontBackgroundColor","getFirstPosition","afterInit","schema","createSelection","enableCommand","push","get","entries","toUpperCase","join","format","change"];var _r,Tr;_r=Er,Tr=409,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x3")](){const t=this[Cr("0x20")],n=t[Cr("0x25")],o=n.document[Cr("0xf")],s=t[Cr("0x2d")][Cr("0x8")](Cr("0x28")),r=t[Cr("0x15")],i=t[Cr("0x2c")].get("copyFormat"),x=t[Cr("0x2c")][Cr("0x8")](Cr("0x16"));i&&x&&(s[Cr("0x6")](Cr("0x16"),((t,r={})=>{const i=r;n[Cr("0xd")]((()=>{const t=Array[Cr("0x1f")](o[Cr("0x1d")]()),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("0x27")]()){const t=e.getAttributeProperties(n);t&&t[Cr("0x1a")]&&(yield n)}}(t,n));for(const e of t[Cr("0x1d")]())for(const t of e.getItems())!n[Cr("0x23")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x13")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x4")]))||0!==Object[Cr("0x19")](i)[Cr("0xe")])for(const t of r)s[Cr("0x1c")](t,{commandName:Cr("0x16"),commandParams:[i]})}))})),s[Cr("0x10")][Cr("0x2e")]((e=>{const{data:n}=e;if(n&&Cr("0x16")===n.commandName){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Cr("0x9")](o))e[Cr("0x7")](Ar(t,n,s));return e.length?{type:Cr("0xc"),content:Yo(r,Cr("0x22"),e.join(", "))}:{type:Cr("0xc"),content:Yo(r,Cr("0x2a"))}}})),t[Cr("0x2d")][Cr("0x8")](Cr("0x28"))[Cr("0x6")](Cr("0x11")))}}function kr(t,e){const n=t[Cr("0x5")](e);t.modifySelection(n,{unit:Cr("0x29"),direction:"backward"});const o=n[Cr("0x2")]();t[Cr("0x24")](n,{unit:Cr("0x29"),direction:Cr("0x2b")});const s=n.getLastPosition();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x15")].t,r=e[Cr("0x26")](/(?=[A-Z])/)[Cr("0xb")](" "),i=o(r[Cr("0x17")](0)[Cr("0xa")]()+r.slice(1))[Cr("0x1e")]();if(Cr("0x12")==typeof n)return i;if(Cr("0x21")===e||Cr("0x1")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x18")][Cr("0x8")]("fontColor.colors")).find((t=>t.model==n));return i+" ("+(e?o(e.label)[Cr("0x1e")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x2d")][Cr("0x8")]("FontSize")[Cr("0x14")](t[Cr("0x18")][Cr("0x8")](Cr("0x1b"))).find((t=>t[Cr("0x25")]==n));return i+" ("+(e?o(e[Cr("0x0")])[Cr("0x1e")]():n)+")"}return i+" ("+n+")"}const vr=["filter","selection","format","value","schema","TrackChangesEditing","registerDescriptionCallback","formatBlock","model","isObject","from","enableCommand","plugins","commandParams","registerElementLabel","document","get","_descriptionFactory","afterInit","blockName","match","name","*Change to:* %0","heading.options","getSelectedBlocks","title","paragraph","checkChild","find","heading","editor","config"];var Rr,Sr;Rr=vr,Sr=382,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x14")](){const t=this.editor,e=t.locale,n=t[Ir("0x1")][Ir("0x12")](Ir("0x19"));if(!t[Ir("0xe")].has("HeadingEditing"))return;const o=t.plugins.get(Ir("0x7"));o[Ir("0xd")](Ir("0x1f"),((e,n)=>{const s=n[Ir("0x5")],r=Array[Ir("0xc")](this[Ir("0x0")].model[Ir("0x11")][Ir("0x3")][Ir("0x1a")]())[Ir("0x2")]((t=>{return e=t,n=s,(o=this[Ir("0x0")][Ir("0xa")][Ir("0x6")])[Ir("0x1d")](e.parent,n)&&!o[Ir("0xb")](e)&&e[Ir("0x17")]!=n;var e,n,o}));t[Ir("0xa")].change((()=>{for(const t of r)o.markBlockFormat(t,{commandName:"heading",commandParams:[n],formatGroupId:Ir("0x15")},fs(t))}))}));for(const t of n)Ir("0x1c")!=t[Ir("0xa")]&&o[Ir("0x13")][Ir("0x10")](t[Ir("0xa")],(e=>{const n=Nr(t[Ir("0xa")]);return null!==n?s(e,n):r(e,t[Ir("0x1b")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Ir("0x13")][Ir("0x8")]((t=>{const{type:o,data:i}=t;if(Ir("0x9")==o&&i&&"heading"==i.commandName){const t=i[Ir("0xf")][0][Ir("0x5")],o=Nr(t);if(null!==o)return{type:Ir("0x4"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n[Ir("0x1e")]((e=>e[Ir("0xa")]===t))[Ir("0x1b")];return{type:Ir("0x4"),content:Yo(e,Ir("0x18"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x16")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["*Set highlight:* %0","registerDescriptionCallback","document","change","getFirstPosition","plugins","highlight.options","has","highlight","value","FORMAT_HIGHLIGHT","getAttribute","item","editor","format","backward","afterInit","_descriptionFactory","color","formatInline","get","isCollapsed","getLastMatchingPosition","commandParams","config","selection","push","find","model","commandName","title","*Remove highlight*","locale","createRange","markInlineFormat","hasAttribute"];var wr,Or;wr=Mr,Or=130,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x1e")](){const t=this[Fr("0x1b")];if(!t[Fr("0x13")][Fr("0x15")]("HighlightEditing"))return;const e=t[Fr("0x13")][Fr("0x22")]("TrackChangesEditing");e.enableCommand(Fr("0x16"),((n,o={})=>{const s=t[Fr("0x6")][Fr("0x10")][Fr("0x3")],r=s[Fr("0x19")](Fr("0x16"));let i=o[Fr("0x17")],x=[];if(s[Fr("0x23")]){const e=s[Fr("0x12")]();if(!s[Fr("0xd")](Fr("0x16")))return void n(o);{const n=t=>t[Fr("0x1a")][Fr("0x19")](Fr("0x16"))===r,o=e[Fr("0x0")](n,{direction:Fr("0x1d")}),s=e[Fr("0x0")](n);x=[t[Fr("0x6")][Fr("0xb")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x.push(e):x[Fr("0x4")](...ms(Fr("0x16"),e,t.model));t.model[Fr("0x11")]((()=>{for(const t of x)e[Fr("0xc")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0xa")];e[Fr("0x1f")][Fr("0xf")]((e=>{const{type:o,data:s}=e;if(Fr("0x21")==o&&s&&Fr("0x16")==s[Fr("0x7")]){const e=n.t,o=s[Fr("0x1")][0][Fr("0x17")];if(o){const s=t[Fr("0x2")][Fr("0x22")](Fr("0x14"))[Fr("0x5")]((t=>t[Fr("0x6")]==o)),r=e(s.title).toLowerCase();return{type:Fr("0x1c"),content:Yo(n,Fr("0xe"),r),color:{value:s[Fr("0x20")],title:s[Fr("0x8")]}}}return{type:"format",content:Yo(n,Fr("0x9"),Yo(n,Fr("0x18")))}}}))}}const Dr=["addClass","createEmptyElement","get","for","elementToStructure","showSuggestionHighlights","ck-horizontal-line","locale","insert","conversion","editor","high","horizontalLine","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","createPositionAt","plugins","createContainerElement","HorizontalLineEditing"];var Br,jr;Br=Dr,jr=116,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("0x8")];if(!t[Ur("0xe")].has(Ur("0x10")))return;t[Ur("0xe")].get(Ur("0xc")).enableCommand(Ur("0xa"));const e=t[Ur("0xe")][Ur("0x0")](Ur("0xc")),n=t[Ur("0x5")];e._descriptionFactory.registerElementLabel(Ur("0xa"),(t=>Yo(n,Ur("0xb"),t))),t[Ur("0x7")][Ur("0x1")]("dataDowncast")[Ur("0x2")]({model:Ur("0xa"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x3")])return null;const o=e[Ur("0xf")]("div"),s=e[Ur("0x12")]("hr");return e[Ur("0x11")](Ur("0x4"),o),e[Ur("0x6")](e[Ur("0xd")](o,0),s),o},converterPriority:Ur("0x9")})}}const Hr=["element","format","htmlEmbed","model","commandName","*Change %0 content*","afterInit","locale","enableCommand","getCustomProperty","selection","rawHtml","editing","get","has","getSelectedElement","value","view","TrackChangesEditing","editor","ELEMENT_HTML_EMBED","_descriptionFactory","registerDescriptionCallback","plugins"];var zr,Wr;zr=Hr,Wr=336,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x6")](){const t=this[Vr("0x13")];if(!t[Vr("0x17")][Vr("0xe")]("HtmlEmbed"))return;const e=t[Vr("0x17")][Vr("0xd")](Vr("0x12")),n=t[Vr("0x7")],o=t[Vr("0xc")][Vr("0x11")].document[Vr("0xa")];e._descriptionFactory.registerElementLabel(Vr("0xb"),(t=>Yo(n,Vr("0x14"),t))),t[Vr("0x17")][Vr("0xd")]("TrackChangesEditing")[Vr("0x8")](Vr("0x2"),((n,s)=>{const r=t[Vr("0x3")],i=r.document[Vr("0xa")];r.change((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vr("0x0"),Vr("0xb"))?t[Vr("0xf")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Vr("0x10"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Vr("0x2"),commandParams:[s]}),o.getSelectedElement()[Vr("0x9")]("rawHtmlApi").cancel())}))})),e[Vr("0x15")][Vr("0x16")]((t=>{const{data:e}=t;if(e&&Vr("0x2")==e[Vr("0x4")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Vr("0x1"),content:Yo(n,Vr("0x5"),t)}}}))}}const qr=["commandParams","imageStylePostApply","from","imageStyle","start","accept","value","convertBlockImageToInline","imageInline","ELEMENT_INLINE_IMAGE","editor","commandName","model","ImageBlockEditing","createRange","getSuggestions","getCaptionFromImageModelElement","afterInit","format","nodeBefore","hasSuggestion","resizeImage","get","createRangeOn","getNearestSelectionRange","imageCaption","*Reset image width*","find","chain","commands","width","isInlineImage","getContainedElement","removeObject","ImageEditing","subType","getChangedMarkers","_descriptionFactory","element","imageTextAlternative","registerElementLabel","type","getFirstRange","join","head","filter","*Remove image text alternative*","alt","detach","imageStylePreApply","ImageUtils","isBlockImage","ImageUploadEditing","ImageCaptionEditing","markBlockFormat","discardSuggestion","formatInline","selection","uploadImage","change","registerCustomCallback","*Set image text alternative:* %0","imageTypeBlock","getClosestSelectedImageElement","ImageCaptionUtils","_findSuggestions","markDeletion","fromPosition","forward","length","getAttribute","addObject","document","plugins","_suggestionFactory","insertion","isBefore","newRange","forceDefaultExecution","locale","findIndex","imageBlock","caption","getSuggestion","forEach","insertImage","previous","formatBlock","_splitMarkerName","markInlineFormat","side","imageTypeInline","discard","TrackChangesEditing","isEqual","isInContent","*Format:* %0","refresh","isCollapsed","registerPostFixer","newValue","nodeAfter","next","Users","isOwn","ELEMENT_IMAGE","Inline image to block image","markInsertion","toggleImageCaption","schema","toNext","author","hasAttribute","has","normalizedStyles","registerDescriptionCallback","ImageStyleEditing","ELEMENT_CAPTION","enableCommand","Block image to inline image","name","ImageResize","end","convertInlineImageToBlock","getSuggestionCallback"];var Xr,$r;Xr=qr,$r=358,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x22")](){const t=this[Jr("0x1b")];if(!t[Jr("0x5a")][Jr("0x5")](Jr("0x33")))return;const n=t[Jr("0x5a")].get(Jr("0x6e")),o=t.plugins[Jr("0x27")](Jr("0x43")),s={},r=t[Jr("0x60")];if(n[Jr("0xa")](Jr("0x66")),n._descriptionFactory[Jr("0x39")](Jr("0x62"),(t=>Yo(r,Jr("0x7a"),t))),n[Jr("0x36")][Jr("0x39")](Jr("0x19"),(t=>Yo(r,Jr("0x1a"),t))),n[Jr("0x36")].registerElementLabel(Jr("0x63"),(()=>Yo(r,Jr("0x9")))),t.plugins[Jr("0x5")](Jr("0x45"))&&n[Jr("0xa")](Jr("0x4b")),t[Jr("0x5a")][Jr("0x5")](Jr("0x1e"))&&t[Jr("0x5a")][Jr("0x5")]("ImageInlineEditing")&&(n[Jr("0xa")](Jr("0x6c"),((e,s)=>{const r=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]);t[Jr("0x1d")][Jr("0x4c")]((()=>{n[Jr("0x47")](r,{commandName:Jr("0x6c"),commandParams:[s]},[],Jr("0x18"))}))})),n[Jr("0xa")](Jr("0x4f"),((e,s)=>{t[Jr("0x1d")][Jr("0x4c")]((r=>{let x=o[Jr("0x50")](t.model[Jr("0x59")][Jr("0x4a")]),a=r[Jr("0x28")](x);const c=i.LivePosition.fromPosition(a[Jr("0x15")],"toPrevious"),l=i.LivePosition[Jr("0x54")](a[Jr("0xe")],Jr("0x2"));n[Jr("0x5f")]((()=>e(s))),x=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]),a=r[Jr("0x28")](x);const d=r[Jr("0x1f")](c,l);c[Jr("0x41")](),l[Jr("0x41")](),n[Jr("0x47")](x,{commandName:Jr("0x6c"),commandParams:[]},[],"convertInlineImageToBlock"),d[Jr("0x15")].isBefore(a[Jr("0x15")])&&n[Jr("0x7c")](r[Jr("0x1f")](d[Jr("0x15")],a.start),"convertInlineImageToBlock"),a.end[Jr("0x5d")](d[Jr("0xe")])&&n[Jr("0x7c")](r[Jr("0x1f")](a[Jr("0xe")],d[Jr("0xe")]),Jr("0xf"))}))})),n[Jr("0x5b")][Jr("0x4d")]("formatBlock",Jr("0xf"),Jr("0x3c"),(()=>{})),n[Jr("0x5b")].registerCustomCallback("formatBlock",Jr("0xf"),Jr("0x16"),(()=>{})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x68"),Jr("0xf"),Jr("0x6d"),n[Jr("0x5b")][Jr("0x10")]("formatBlock","",Jr("0x16"))),n._suggestionFactory.registerCustomCallback(Jr("0x5c"),Jr("0xf"),Jr("0x3c"),(()=>{})),n[Jr("0x5b")].registerCustomCallback(Jr("0x5c"),Jr("0xf"),Jr("0x6d"),(([e])=>{const o=n[Jr("0x5b")][Jr("0x10")](Jr("0x5c"),"","discard");let s=e.start,r=e.end;const i=t.model[Jr("0x1")][Jr("0x29")](s,"backward"),x=t[Jr("0x1d")][Jr("0x1")][Jr("0x29")](r,Jr("0x55"));i[Jr("0x73")]&&(s=i[Jr("0x15")]),x[Jr("0x73")]&&(r=x[Jr("0xe")]),o([t.model[Jr("0x1f")](s,r)])})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x68"),Jr("0xf"),"chain",c),n[Jr("0x5b")].registerCustomCallback(Jr("0x5c"),Jr("0xf"),"chain",c)),t.plugins.has(Jr("0x46"))&&(n.enableCommand(Jr("0x0"),((e,s)=>{const r=t.plugins[Jr("0x27")](Jr("0x51"));let i=o.getClosestSelectedImageElement(t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]),x=r[Jr("0x21")](i);t.model[Jr("0x4c")]((()=>{if(x)return void n[Jr("0x53")](t[Jr("0x1d")][Jr("0x28")](x));const a=o[Jr("0x44")](i);e(s),i=o[Jr("0x50")](t.model[Jr("0x59")][Jr("0x4a")]),x=r[Jr("0x21")](i),n.markInsertion(t[Jr("0x1d")][Jr("0x28")](x),a?null:Jr("0x2a"))}))})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x5c"),Jr("0x2a"),Jr("0x2d"),c)),t.plugins[Jr("0x5")](Jr("0x8"))){n[Jr("0xa")]("imageStyle",((s,r)=>{const i=t[Jr("0x5a")][Jr("0x27")](Jr("0x78")).me,x=t[Jr("0x2e")].get(Jr("0x14"));let a=o[Jr("0x50")](t.model[Jr("0x59")][Jr("0x4a")]),c=t[Jr("0x1d")][Jr("0x28")](a),l=x[Jr("0x17")];if(l==r[Jr("0x17")])return;const d={commandName:Jr("0x14"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x1d")][Jr("0x4c")]((()=>{if(n[Jr("0x20")]()[Jr("0x3e")]((t=>t.isInContent&&i==t[Jr("0x3")]&&(Jr("0x68")==t[Jr("0x3a")]||"formatInline"==t.type)&&(Jr("0x42")==t[Jr("0x34")]||Jr("0x12")==t[Jr("0x34")])&&t[Jr("0x3b")]()[Jr("0x6f")](c)))[Jr("0x65")]((t=>n[Jr("0x48")](t[Jr("0x3d")]))),a=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")].selection),c=t[Jr("0x1d")][Jr("0x28")](a),x[Jr("0x72")](),t[Jr("0x2e")][Jr("0x27")](Jr("0x6c"))[Jr("0x72")](),t[Jr("0x2e")].get("imageTypeBlock")[Jr("0x72")](),l=x[Jr("0x17")],l!=r.value)return o[Jr("0x30")](a)&&x.shouldConvertImageType(r[Jr("0x17")],a)?(s(r),a=o[Jr("0x50")](t[Jr("0x1d")].document[Jr("0x4a")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x42"))):void(o[Jr("0x44")](a)?n[Jr("0x47")](a,d,[],"imageStylePostApply"):n[Jr("0x6a")](c,d,"imageStylePostApply"))}))}));for(const e of t[Jr("0x5a")][Jr("0x27")](Jr("0x8"))[Jr("0x6")])s[e[Jr("0xc")]]=e.title.toLowerCase();n[Jr("0x5b")][Jr("0x4d")]("formatBlock",Jr("0x42"),Jr("0x3c"),(()=>{})),n._suggestionFactory[Jr("0x4d")]("formatBlock","imageStylePostApply",Jr("0x3c"),(()=>{})),n._suggestionFactory[Jr("0x4d")](Jr("0x49"),Jr("0x12"),"join",(()=>{})),n[Jr("0x5b")].registerCustomCallback(Jr("0x68"),Jr("0x42"),Jr("0x16"),(()=>{})),n[Jr("0x5b")].registerCustomCallback(Jr("0x68"),Jr("0x42"),Jr("0x6d"),((t,e)=>{n[Jr("0x5b")][Jr("0x10")](Jr("0x68"),"",Jr("0x16"))(t,{commandName:e[Jr("0x1c")],commandParams:e.commandReversedParams})})),n[Jr("0x5b")][Jr("0x4d")](Jr("0x68"),Jr("0x42"),"chain",c)}const x=[{type:Jr("0x68"),subType:"imageStylePreApply"},{type:Jr("0x5c"),subType:"imageCaption"},{type:Jr("0x68"),subType:"convertInlineImageToBlock"},{type:Jr("0x5c"),subType:Jr("0xf")}];function a(t,e){const s=x[Jr("0x61")]((({type:e,subType:n})=>t[Jr("0x3a")]==e&&t.subType==n)),r=x.findIndex((({type:t,subType:n})=>e[Jr("0x3a")]==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[Jr("0x3b")](),a=e[Jr("0x3b")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x52")](i,"insertion")[Jr("0x3e")]((({suggestion:t,meta:e})=>e[Jr("0x79")]&&Jr("0xf")==t[Jr("0x34")]));if(t[Jr("0x56")]>1&&a[Jr("0xe")][Jr("0x6f")](i.start))return!0;if(1==t[Jr("0x56")]&&(i[Jr("0x15")][Jr("0x6f")](a[Jr("0xe")])||i.end.isEqual(a[Jr("0x15")])))return!0}if(3==s&&3==r&&i[Jr("0x15")][Jr("0x5d")](a[Jr("0x15")])){const t=i[Jr("0xe")][Jr("0x76")],e=a[Jr("0x15")][Jr("0x24")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x1d")][Jr("0x59")][Jr("0x74")]((()=>{let e=!1;const s=Array[Jr("0x13")](t.model.document.differ[Jr("0x35")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x69")](t);if("suggestion"==s&&n[Jr("0x25")](a)){if(Jr("0x68")==i&&(Jr("0x42")==x||"imageStylePostApply"==x)){const t=n.getSuggestion(a);if(r[Jr("0x5e")]){const s=t[Jr("0x3b")]()[Jr("0x31")]();if(o[Jr("0x44")](s))continue;n[Jr("0x48")](t),e=!0}}if(Jr("0x5c")==i&&Jr("0x2a")==x&&!r[Jr("0x5e")]){const t=n[Jr("0x64")](a);t.next&&t[Jr("0x77")][Jr("0x70")]&&(n[Jr("0x48")](t[Jr("0x77")]),e=!0)}}}return e})),t[Jr("0x5a")][Jr("0x5")](Jr("0xd"))&&n.enableCommand(Jr("0x26"),((e,s)=>{const r=o[Jr("0x50")](t[Jr("0x1d")][Jr("0x59")][Jr("0x4a")]);r[Jr("0x57")](Jr("0x2f"))!=s[Jr("0x2f")]&&t[Jr("0x1d")].change((()=>{n[Jr("0x47")](r,{commandName:Jr("0x26"),commandParams:[s]})}))})),t[Jr("0x5a")].has("ImageTextAlternativeEditing")&&n[Jr("0xa")](Jr("0x38"),((e,s)=>{const r=o[Jr("0x50")](t[Jr("0x1d")].document[Jr("0x4a")]);(r[Jr("0x4")](Jr("0x40"))?r[Jr("0x57")](Jr("0x40")):"")!=s[Jr("0x75")]&&t[Jr("0x1d")].change((()=>{n.markBlockFormat(r,{commandName:Jr("0x38"),commandParams:[s]})}))})),n[Jr("0x36")].registerDescriptionCallback((t=>{if(x[Jr("0x2c")]((({type:e,subType:n})=>t[Jr("0x3a")]==e&&t[Jr("0x34")]==n)))return t[Jr("0x67")]?{}:void 0})),n[Jr("0x36")][Jr("0x7")]((t=>{if(Jr("0x5c")==t[Jr("0x3a")]||"deletion"==t[Jr("0x3a")]){const e=t.getContainedElement();if(e&&e.is(Jr("0x37"),"caption"))return{type:Jr("0x5c")==t[Jr("0x3a")]?Jr("0x58"):Jr("0x32"),element:e,quantity:1}}})),n[Jr("0x36")][Jr("0x7")]((t=>"formatBlock"==t[Jr("0x3a")]&&"convertInlineImageToBlock"==t[Jr("0x34")]?{type:"format",content:Jr("0x7b")}:Jr("0x68")==t[Jr("0x3a")]&&Jr("0x18")==t[Jr("0x34")]?{type:Jr("0x23"),content:Jr("0xb")}:void 0)),n[Jr("0x36")][Jr("0x7")]((t=>{const{data:e}=t;if(e){if(Jr("0x14")==e[Jr("0x1c")]){const t=e[Jr("0x11")][0].value;return n=Jr("0x6b")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x23"),content:Yo(r,Jr("0x71"),n)}}if(Jr("0x38")==e[Jr("0x1c")]){const t=e[Jr("0x11")][0].newValue;return t?{type:Jr("0x23"),content:Yo(r,Jr("0x4e"),'"'+t+'"')}:{type:Jr("0x23"),content:Yo(r,Jr("0x3f"))}}if(Jr("0x26")==e[Jr("0x1c")]){const t=e[Jr("0x11")][0][Jr("0x2f")];return t?{type:"format",content:Yo(r,"*Set image width:* %0",t)}:{type:Jr("0x23"),content:Yo(r,Jr("0x2b"))}}}var n}))}}const Zr=["model","markBlockFormat","_suggestionFactory","src","selection","discard","ImageEditing","*Format:* replace image URL","handleReplaceImageCommand","_descriptionFactory","has","format","subType","document","change","getSuggestions","handleSuggestionDescription","TrackChangesEditing","data","author","editor","getSelectedElement","registerCustomCallback","commandName","afterInit","getSuggestionCallback","replaceImageSource","formatBlock","plugins","Users","getContainedElement","commandParams","enableCommand","locale","get","accept"];var Yr,ti;Yr=Zr,ti=257,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x13")](){if(!this[ei("0xf")].plugins[ei("0x5")](ei("0x1")))return;const t=this[ei("0xf")].plugins.get(ei("0xc"));t[ei("0x1b")]("replaceImageSource",((t,e)=>this[ei("0x3")](t,e))),t._suggestionFactory[ei("0x11")](ei("0x16"),ei("0x15"),"accept",t[ei("0x21")][ei("0x14")]("formatBlock",null,"discard")),t[ei("0x21")][ei("0x11")]("formatBlock",ei("0x15"),ei("0x0"),t[ei("0x21")][ei("0x14")](ei("0x16"),null,ei("0x1e"))),t[ei("0x4")].registerDescriptionCallback((t=>this[ei("0xb")](t)))}handleReplaceImageCommand(t,e){const n=this.editor[ei("0x17")][ei("0x1d")](ei("0xc")),o=this[ei("0xf")][ei("0x1f")][ei("0x8")][ei("0x23")][ei("0x10")]();this[ei("0xf")][ei("0x1f")][ei("0x9")]((()=>{let s=o.getAttribute(ei("0x22"));const r=this[ei("0xf")].plugins[ei("0x1d")](ei("0x18")).me;for(const t of n[ei("0xa")]({skipNotAttached:!0})){const e=t[ei("0x19")]();if(ei("0x15")===t[ei("0x7")]&&e===o){t[ei("0xe")]!==r&&t[ei("0x0")](),s=t[ei("0xd")][ei("0x1a")][0].source;break}}t(e),n[ei("0x20")](o,{commandName:ei("0x15"),commandParams:[{source:s}]},[],ei("0x15"))}))}[ei("0xb")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x12")]){const t=ei("0x2");return{type:ei("0x6"),content:Yo(this[ei("0xf")][ei("0x1c")],t)}}}}const oi=["bind","execute","collaboration_features","listenTo","commands","forEach","_trackChangesExecuted","get","importWord","trackChanges","Users","lowest","_trackChangesValueDuringImport","TrackChangesEditing","value","editor","plugins","track_changes","high","_handleImportedData","afterInit"];var si,ri;si=oi,ri=177,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[ii("0x3")]=!1,this[ii("0x12")]=!1}[ii("0xb")](){const t=this[ii("0x6")],e=t[ii("0x10")][ii("0x13")](ii("0x14")),n=t[ii("0x10")].get(ii("0x0"));e&&(e.on(ii("0xd"),((t,[,e])=>{this[ii("0x3")]=n.value,e[ii("0xe")][ii("0x8")]=!this[ii("0x3")]}),{priority:ii("0x9")}),this[ii("0xf")](e,"dataInsert",this[ii("0xa")][ii("0xc")](this)),this.listenTo(e,"dataInsert",(()=>{this._trackChangesExecuted&&(n[ii("0xd")](),this._trackChangesExecuted=!1)}),{priority:ii("0x2")}),t.plugins[ii("0x13")](ii("0x4")).enableCommand(ii("0x14")))}[ii("0xa")](t,e){const{suggestions:n}=e,o=this[ii("0x6")][ii("0x10")][ii("0x13")](ii("0x0")),s=o[ii("0x5")];this._trackChangesValueDuringImport!==s&&(o[ii("0xd")](),this[ii("0x12")]=!0),n&&n[ii("0x11")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x6")][ii("0x7")].get(ii("0x1")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x14")}}};this[ii("0x6")][ii("0x7")][ii("0x13")](ii("0x4"))._setSuggestionData(s)}))}}const ai=["afterInit","format","getItemLabel","checkAttribute","indent","getItems","IndentBlock","from","locale","IndentEditing","selection","enableCommand","indentBlock","*Indent:* %0","_descriptionFactory","plugins","getSelectedBlocks","blockIndent","document","TrackChangesEditing","editor","get","has","commandName","model","outdentBlock","schema","*Outdent:* %0"];var ci,li;ci=ai,li=452,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x18")](){const t=this[di("0x10")],e=t[di("0xb")][di("0x11")](di("0xf"));t[di("0xb")][di("0x12")](di("0x5"))&&(e[di("0x7")](di("0x0")),e[di("0x7")]("outdent"));const n=t[di("0x4")];if(t[di("0xb")][di("0x12")](di("0x2"))){for(const n of[di("0x8"),"outdentBlock"])e[di("0x7")](n,(()=>{const o=Array[di("0x3")](this[di("0x10")].model[di("0xe")][di("0x6")][di("0xc")]()).filter((t=>this[di("0x10")][di("0x14")][di("0x16")][di("0x1b")](t,di("0xd"))));t[di("0x14")].change((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x8")})}))}));e[di("0xa")].registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(di("0x8")!=o[di("0x13")]&&di("0x15")!=o[di("0x13")])return;const s=t[di("0x1")]()[0],r=e[di("0xa")][di("0x1a")](s);return"indentBlock"==o[di("0x13")]?{type:di("0x19"),content:Yo(n,di("0x9"),r)}:di("0x15")==o[di("0x13")]?{type:di("0x19"),content:Yo(n,di("0x17"),r)}:void 0}))}}}var gi,mi,fi=["get","requires","init","editor","TrackChangesEditing"];gi=fi,mi=449,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[hi("0x2")](){return[Vs.Input]}[hi("0x3")](){this[hi("0x4")].plugins[hi("0x1")](hi("0x0")).enableCommand("input")}}const bi=["markInlineFormat","*Remove link*","editor","afterInit","selection","change","LinkEditing","get","getAttribute","commandName","getFirstPosition","hasAttribute","locale","from","link","enableCommand","document","has","model","format","isCollapsed","unlink","linkHref","registerDescriptionCallback","plugins"];var Ei,_i;Ei=bi,_i=420,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x8")](){const t=this[Ti("0x7")];if(!t[Ti("0x4")][Ti("0x16")](Ti("0xb")))return;const e=t[Ti("0x4")][Ti("0xc")]("TrackChangesEditing");e[Ti("0x14")]("link",((n,o)=>{const s=t[Ti("0x17")][Ti("0x15")][Ti("0x9")];let r=[];if(s[Ti("0x0")]){if(!s[Ti("0x10")](Ti("0x2")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xf")](),Ti("0x2"),s.getAttribute(Ti("0x2")),t.model);r=[e]}}else r=Array[Ti("0x12")](s.getRanges());t[Ti("0x17")][Ti("0xa")]((()=>{for(const t of r)e[Ti("0x5")](t,{commandName:Ti("0x13"),commandParams:[o]})}))})),e[Ti("0x14")](Ti("0x1"),(()=>{const n=this[Ti("0x7")][Ti("0x17")],o=n[Ti("0x15")].selection;n[Ti("0xa")]((()=>{let n=[];n=o[Ti("0x0")]?[(0,Vs.findAttributeRange)(o[Ti("0xf")](),Ti("0x2"),o[Ti("0xd")](Ti("0x2")),t.model)]:ms(Ti("0x2"),o.getFirstRange(),t[Ti("0x17")]);for(const t of n)e[Ti("0x5")](t,{commandName:Ti("0x1"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x3")]((e=>{const{data:n}=e,o=t[Ti("0x11")];if(n){if("link"==n[Ti("0xe")]){const t=n.commandParams[0];return{type:Ti("0x18"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x1")==n.commandName?{type:Ti("0x18"),content:Yo(o,Ti("0x6"))}:void 0}}))}}const yi=["from","commandName","nextSibling","TodoListEditing","end","checkTodoList","registerDescriptionCallback","listIndent","locale","markBlockFormat","add","previousSibling","has","bulletedList","commands","outdentList","todoList","indentList","element","model","getAttribute","*Outdent:* %0","*Uncheck item*","get","*Indent:* %0","value","listType","forceValue","numberedList","schema","listItem","blockName","selection","*Check item*","_descriptionFactory","isObject","name","afterInit","enableCommand","todoListChecked","format","createRange","*Change to:* %0","checkChild","filter","createPositionAt","plugins","slice","commandParams","editor","document","change","bulleted","ELEMENT_TODO_LIST","paragraph","push","_selectedElements","TrackChangesEditing","registerElementLabel","getSelectedBlocks"];var ki,Ai;ki=yi,Ai=205,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xc")](){const t=this[vi("0x18")],e=t[vi("0x2b")];if(!t[vi("0x15")][vi("0x2f")]("ListEditing"))return;const n=t[vi("0x15")][vi("0x3a")](vi("0x20")),o=t[vi("0x15")].has(vi("0x26"));function s(e){return()=>{const o=t[vi("0x36")][vi("0x19")][vi("0x7")],s=t[vi("0x31")][vi("0x3a")](e);if(s.value)return void t.execute(vi("0x1d"),{});const r=e[vi("0x16")](0,-4),i=function(t,e,n){let o=Array[vi("0x23")](t)[vi("0x13")]((t=>{return e=t,(o=n)[vi("0x12")](e.parent,vi("0x5"))&&!o[vi("0xa")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x35"),vi("0x5"))||t[vi("0x37")](vi("0x1"))!=e));const s=new Set;for(const t of o)t.is(vi("0x35"),vi("0x5"))?s[vi("0x2d")](Si(t)):s[vi("0x2d")](t);return Array[vi("0x23")](s)}(o[vi("0x22")](),r,t[vi("0x36")][vi("0x4")]);t.model[vi("0x1a")]((()=>{for(const t of i)n[vi("0x2c")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x0")]}],formatGroupId:vi("0x6")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x23")](t);const n=e.findIndex((t=>vi("0x5")!=t[vi("0xb")]));return n>-1&&(e=e[vi("0x16")](0,n)),e}(t[vi("0x36")][vi("0x19")][vi("0x7")].getSelectedBlocks()),s=t.model[vi("0x10")](t[vi("0x36")][vi("0x14")](o[0],"before"),t[vi("0x36")][vi("0x14")](o[o.length-1],vi("0x27")));t[vi("0x36")][vi("0x1a")]((()=>{n[vi("0x2c")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x2a")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x25")];for(;t&&t[vi("0x37")](vi("0x2a"))>n[vi("0x37")](vi("0x2a"));)e[vi("0x2d")](t),t=t[vi("0x25")]}return Array.from(e)}(o))}))}}n.enableCommand(vi("0x3"),s("numberedList")),n[vi("0xd")](vi("0x30"),s("bulletedList")),o&&n[vi("0xd")](vi("0x33"),s("todoList")),n.enableCommand(vi("0x34"),r("indentList")),n[vi("0xd")]("outdentList",r(vi("0x32"))),o&&n[vi("0xd")]("checkTodoList",(()=>{const e=t[vi("0x31")][vi("0x3a")](vi("0x28")),o=Array[vi("0x23")](e[vi("0x1f")]);o.filter((t=>t[vi("0x37")](vi("0xe"))!=e[vi("0x0")])),t[vi("0x36")][vi("0x1a")]((()=>{for(const t of o)n[vi("0x2c")](t,{commandName:vi("0x28"),commandParams:[{forceValue:!e[vi("0x0")]}]})}))})),n[vi("0x9")][vi("0x21")](vi("0x5"),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[vi("0x9")][vi("0x29")]((t=>{const{data:n}=t;if(n){if(vi("0x3")==n[vi("0x24")]||vi("0x30")==n[vi("0x24")]||vi("0x33")==n[vi("0x24")])switch(n[vi("0x24")].replace("List","")){case vi("0x1b"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Yo(e,vi("0x1c")))}if(vi("0x34")==n[vi("0x24")])return{type:vi("0xf"),content:Yo(e,vi("0x3b"),Yo(e,"ELEMENT_LIST_ITEM"))};if("outdentList"==n[vi("0x24")])return{type:vi("0xf"),content:Yo(e,vi("0x38"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x28")==n.commandName)return n[vi("0x17")][0][vi("0x2")]?{type:vi("0xf"),content:Yo(e,vi("0x8"))}:{type:vi("0xf"),content:Yo(e,vi("0x39"))}}function o(t){return{type:vi("0xf"),content:Yo(e,vi("0x11"),t)}}}))}}function Si(t){const e=t[vi("0x37")](vi("0x2a"));if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0x2e")].is(vi("0x35"),vi("0x5"));){const o=t[vi("0x2e")][vi("0x37")](vi("0x2a"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t.previousSibling}return n}function Ii(t){const e=[];if(t.is(vi("0x35"),"listItem")&&t.getAttribute(vi("0x2a"))>0){let n=t[vi("0x25")];for(;n&&vi("0x5")==n[vi("0xb")]&&n[vi("0x37")](vi("0x2a"))==t[vi("0x37")](vi("0x2a"));)e[vi("0x1e")](n),n=n[vi("0x25")]}return e}const Li=["getSelectedBlocks","bind","selection","enableCommand","TrackChangesEditing","getListTypeFromListStyleType","handleListStyleCommand","model","reversed","registerDescriptionCallback","_descriptionFactory","getFirstPosition","commandParams","createRange","listItem","backward","afterInit","format","editor","styles","toUpperCase","has","get","handleListReversedCommand","getSiblingNodes","startIndex","length","ELEMENT_","*Format:* set start index to %0","_getTranslationKeyForListStyle","listStart","plugins","change","forward","document","from","push","replace","config","list.properties","ListUtils","commandName","createPositionAt","numbered","listStyle","type","_getSuggestionBlocksForListStyle","handleListStartCommand","_LIST_","before","flat","listType","_getSuggestionBlocks","element","*Format:* set order to regular","listReversed","markMultiRangeBlockFormat","handleDescriptions","map","filter","getAttribute"];var Ni,Mi;Ni=Li,Mi=273,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x30")](){if(!this[wi("0x32")][wi("0x2")][wi("0x35")]("ListPropertiesEditing"))return;const t=this.editor[wi("0x9")].get(wi("0xa")),e=this.editor[wi("0x2")][wi("0x36")](wi("0x24"));t[wi("0x33")]&&e.enableCommand(wi("0xf"),this[wi("0x26")][wi("0x21")](this)),t[wi("0x28")]&&e[wi("0x23")](wi("0x1a"),this[wi("0x37")][wi("0x21")](this)),t[wi("0x39")]&&e[wi("0x23")](wi("0x1"),this[wi("0x12")][wi("0x21")](this)),e[wi("0x2a")][wi("0x29")](this[wi("0x1c")][wi("0x21")](this))}handleListStyleCommand(t,e={}){const n=this[wi("0x32")][wi("0x2")][wi("0x36")](wi("0x24")),o=this[wi("0x11")]();this[wi("0x32")].model[wi("0x3")]((()=>{n[wi("0x1b")](o,{commandName:wi("0xf"),commandParams:[{type:e[wi("0x10")]}],formatGroupId:"listStyle"})}))}[wi("0x37")](t,e={}){const n=this[wi("0x32")][wi("0x2")][wi("0x36")]("TrackChangesEditing"),o=this[wi("0x17")]((t=>t.is(wi("0x18"),wi("0x2e"))&&wi("0xe")===t[wi("0x1f")](wi("0x16"))));if(o[wi("0x3a")]<1)return;const s=o[wi("0x1d")]((t=>this[wi("0x32")].model.createRange(this[wi("0x32")].model[wi("0xd")](t,wi("0x14")),this.editor.model.createPositionAt(t,0))));this[wi("0x32")].model.change((()=>{n[wi("0x1b")](s,{commandName:wi("0x1a"),commandParams:[{reversed:e[wi("0x28")]}],formatGroupId:wi("0x1a")})}))}[wi("0x12")](t,e={}){const n=this[wi("0x32")][wi("0x2")][wi("0x36")](wi("0x24")),o=this[wi("0x17")]((t=>t.is(wi("0x18"),wi("0x2e"))&&"numbered"===t[wi("0x1f")](wi("0x16"))));if(o[wi("0x3a")]<1)return;const s=o[wi("0x1d")]((t=>this[wi("0x32")][wi("0x27")][wi("0x2d")](this.editor[wi("0x27")][wi("0xd")](t,wi("0x14")),this[wi("0x32")].model[wi("0xd")](t,0))));this[wi("0x32")].model[wi("0x3")]((()=>{n[wi("0x1b")](s,{commandName:wi("0x1"),commandParams:[{startIndex:e[wi("0x39")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){const e=this[wi("0x32")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wi("0xc")]){case"listStyle":o="*Change to:* %0",s={type:wi("0x31"),content:Yo(e,o,Yo(e,this[wi("0x0")](n[wi("0x2c")][0][wi("0x10")])))};break;case"listReversed":o=n[wi("0x2c")][0][wi("0x28")]?"*Format:* set order to reversed":wi("0x19"),s={type:"format",content:Yo(e,o)};break;case wi("0x1"):o=wi("0x3c"),s={type:"format",content:Yo(e,o,n.commandParams[0][wi("0x39")])}}return s}[wi("0x11")](){var t,e,n,o;const s=this.editor[wi("0x2")][wi("0x36")](wi("0xb"));let r=Array[wi("0x6")](this.editor[wi("0x27")][wi("0x5")][wi("0x22")][wi("0x20")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x18"),wi("0x2e")))&&r.unshift(...s[wi("0x38")](this[wi("0x32")][wi("0x27")][wi("0x5")][wi("0x22")][wi("0x2b")](),wi("0x2f"))),(null===(e=r[r[wi("0x3a")]-1])||void 0===e?void 0:e.is("element",wi("0x2e")))&&r[wi("0x7")](...s[wi("0x38")](this[wi("0x32")][wi("0x27")][wi("0x5")][wi("0x22")].getLastPosition(),wi("0x4"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x32")].model[wi("0x5")].selection[wi("0x2b")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(wi("0x18"),wi("0x2e")))&&(r=r[wi("0x1e")]((t=>t.is(wi("0x18"),wi("0x2e"))))),r}[wi("0x17")](t){const e=this[wi("0x32")].plugins.get(wi("0xb"));let n=Array[wi("0x6")](this[wi("0x32")][wi("0x27")][wi("0x5")][wi("0x22")][wi("0x20")]()).filter(t)[wi("0x1d")]((t=>{const n=this[wi("0x32")].model[wi("0xd")](t,0);return[...e.getSiblingNodes(n,wi("0x2f")),...e[wi("0x38")](n,wi("0x4"))]}))[wi("0x15")]();return n=[...new Set(n)],n}[wi("0x0")](t){return wi("0x3b")+this[wi("0x32")][wi("0x2")].get(wi("0xb"))[wi("0x25")](t)[wi("0x34")]()+wi("0x13")+t[wi("0x34")]()[wi("0x8")](/-/g,"_")}}const Fi=["editor","stop","dataDowncast","elementToElement","MediaEmbedEditing","high","afterInit","TrackChangesEditing","showSuggestionHighlights","has","data","mediaEmbed","locale","plugins","get","attribute:url:media","media","createEmptyElement","registerElementLabel","conversion","enableCommand"];var Pi,Di;Pi=Fi,Di=143,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0xa")](){const t=this[Bi("0x4")];if(!t[Bi("0x11")][Bi("0xd")](Bi("0x8")))return;const e=t[Bi("0x11")][Bi("0x12")](Bi("0xb")),n=t[Bi("0x10")];e[Bi("0x3")](Bi("0xf")),e._descriptionFactory[Bi("0x1")](Bi("0x14"),(t=>Yo(n,"ELEMENT_MEDIA",t))),t[Bi("0x2")].for(Bi("0x6"))[Bi("0x7")]({model:Bi("0x14"),view:(t,{writer:e,options:n})=>{if(n[Bi("0xc")])return e[Bi("0x0")]("div")},converterPriority:Bi("0x9")}),t[Bi("0xe")].downcastDispatcher.on(Bi("0x13"),((t,e,n)=>{n.options.showSuggestionHighlights&&t[Bi("0x5")]()}),{priority:Bi("0x9")})}}const Ui=["enableCommand","get","mention","MentionEditing","has","plugins","TrackChangesEditing","afterInit"];var Gi,Hi;Gi=Ui,Hi=133,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x2")](){const t=this.editor;t[zi("0x0")][zi("0x7")](zi("0x6"))&&t[zi("0x0")][zi("0x4")](zi("0x1"))[zi("0x3")](zi("0x5"))}}const Vi=["editor","ELEMENT_PAGE_BREAK","has","locale","plugins","_descriptionFactory","TrackChangesEditing","registerElementLabel","get","PageBreakEditing","pageBreak","enableCommand"];var Ki,qi;Ki=Vi,qi=273,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("0x3")];if(!t[Xi("0x7")][Xi("0x5")](Xi("0x0")))return;t[Xi("0x7")].get(Xi("0x9"))[Xi("0x2")](Xi("0x1"));const e=t[Xi("0x7")][Xi("0xb")](Xi("0x9")),n=t[Xi("0x6")];e[Xi("0x8")][Xi("0xa")](Xi("0x1"),(t=>Yo(n,Xi("0x4"),t)))}}const Ji=["selection","registerDescriptionCallback","locale","isBlock","options","Paragraph","has","*Change to:* %0","_descriptionFactory","paragraph","*Insert:* %0","addMarker:suggestion:insertion","start","showSuggestionHighlights","insertParagraph","enableCommand","mapper","schema","span","nodeAfter","consumable","from","toViewPosition","plugins","ELEMENT_PARAGRAPH","getFirstRange","editor","addClass","writer","highest","includes","getSelectedBlocks","markerName","model","insert","bindElementToMarker","insertion","isObject","name","afterInit","document","consume","checkChild","TrackChangesEditing","markerRange","data","end","isTouching","change","createUIElement","isLimit","$text","ck-suggestion-marker-split","filter"];var Qi,Zi;Qi=Ji,Zi=356,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x7")](){const t=this[Yi("0x30")];if(!t[Yi("0x2d")][Yi("0x1c")](Yi("0x1b")))return;const e=t[Yi("0x18")],n=t[Yi("0x2d")].get(Yi("0xb"));n[Yi("0x1e")].registerElementLabel("paragraph",(t=>Yo(e,Yi("0x2e"),t))),n[Yi("0x25")](Yi("0x1f"),((e,o={})=>{const s=t[Yi("0x1")][Yi("0x8")],r=o[Yi("0x16")]||s.selection,i=Array[Yi("0x2b")](r[Yi("0x35")]())[Yi("0x15")]((t=>{return e=t,(n=this[Yi("0x30")][Yi("0x1")][Yi("0x27")])[Yi("0xa")](e.parent,"paragraph")&&!n[Yi("0x5")](e)&&"paragraph"!=e[Yi("0x6")];var e,n}));t.model[Yi("0x10")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:Yi("0x1f"),commandParams:[],formatGroupId:"blockName"},fs(t))}))})),n[Yi("0x1e")][Yi("0x17")]((t=>{const{data:n}=t;if(n&&Yi("0x1f")==n.commandName)return{type:"format",content:Yo(e,Yi("0x1d"),Yo(e,Yi("0x2e")))}})),n.enableCommand(Yi("0x24")),t.editing.downcastDispatcher.on(Yi("0x21"),ex(t),{priority:"highest"}),t[Yi("0xd")].downcastDispatcher.on(Yi("0x21"),((e,n,o)=>{o[Yi("0x1a")][Yi("0x23")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x33")});const o=n[Yi("0x1e")];o[Yi("0x17")]((n=>{if(Yi("0x4")!==n.type)return;const{start:s,end:r}=n[Yi("0x2f")]();if(!s[Yi("0xf")](r)||!s[Yi("0x29")])return;const i=t[Yi("0x1")].schema,x=s.nodeAfter;return i[Yi("0x19")](x)&&!i[Yi("0x12")](x)&&i[Yi("0xa")](x,"$text")?{type:"insertion",content:Yo(e,Yi("0x20"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x2d")].get("TrackChangesEditing"),i=o.markerRange[Yi("0x22")],x=o[Yi("0xc")][Yi("0xe")],a=t[Yi("0x1")][Yi("0x27")];if(!i[Yi("0xf")](x)||!i[Yi("0x29")])return;const c=i[Yi("0x29")];if(a[Yi("0x19")](c)&&!a[Yi("0x12")](c)&&a[Yi("0xa")](c,Yi("0x13"))){if(!s[Yi("0x2a")][Yi("0x9")](o[Yi("0xc")],n.name))return;const t=s[Yi("0x32")][Yi("0x11")](Yi("0x28"),{class:Yi("0x14")}),i=s.mapper[Yi("0x2c")](x);e&&r.activeMarkers[Yi("0x34")](o[Yi("0x0")])&&s.writer[Yi("0x31")]("ck-suggestion-marker--active",t),s.writer[Yi("0x2")](i,t),s[Yi("0x26")][Yi("0x3")](t,o[Yi("0x0")])}}}const nx=["isFormatting","registerDescriptionCallback","TrackChangesEditing","plugins","document","getAttributeProperties","enableCommand","getAttributes","commandName","removeFormat","get","afterInit","getRanges","getItems","has","model","markInlineFormat","format","isCollapsed","locale"];var ox,sx;ox=nx,sx=274,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x11")](){const t=this.editor;if(!t[rx("0x9")][rx("0x0")]("RemoveFormatEditing"))return;const e=t[rx("0x9")][rx("0x10")](rx("0x8"));e[rx("0xc")]("removeFormat",(n=>{const o=t[rx("0x1")][rx("0xa")].selection;o[rx("0x4")]?n():t[rx("0x1")].change((()=>{const n=Array.from(o[rx("0x12")]());for(const o of n)for(const n of o[rx("0x13")]())xx(n,t[rx("0x1")].schema)&&e[rx("0x2")](t[rx("0x1")].createRangeOn(n),{commandName:rx("0xf"),commandParams:[]})}))})),e._descriptionFactory[rx("0x7")]((e=>{const{data:n}=e;if(n&&rx("0xf")==n[rx("0xe")])return{type:rx("0x3"),content:Yo(t[rx("0x5")],"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t[rx("0xd")]()){const t=e[rx("0xb")](n);if(t&&t[rx("0x6")])return!0}return!1}const ax=["discardAllSuggestions","enableCommand","editor","discardSelectedSuggestions","acceptSelectedSuggestions","RestrictedEditingModeEditing","afterInit","goToNextRestrictedEditingException","has","plugins","goToPreviousRestrictedEditingException","acceptSuggestion","get","trackChanges","TrackChangesEditing"];var cx,lx;cx=ax,lx=262,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0xe")](){const t=this[dx("0xa")];if(!t[dx("0x2")][dx("0x1")](dx("0xd")))return;const e=t[dx("0x2")].get(dx("0x7"));e[dx("0x9")](dx("0x3")),e[dx("0x9")](dx("0x0"));const n=t.plugins[dx("0x5")]("RestrictedEditingModeEditing");n.enableCommand(dx("0x6")),n[dx("0x9")](dx("0x4")),n.enableCommand("discardSuggestion"),n[dx("0x9")]("acceptAllSuggestions"),n.enableCommand(dx("0x8")),n[dx("0x9")](dx("0xc")),n[dx("0x9")](dx("0xb"))}}const gx=["bindElementToMarker","mapper","test","ck-suggestion-marker--active","createPositionBefore","span","createUIElement","high","model","editing","getItems","plugins","toViewPosition","addMarker:suggestion:insertion","enableCommand","addMarker:suggestion:deletion","merge","name","ELEMENT_LINE_BREAK","downcastDispatcher","TrackChangesEditing","registerElementLabel","writer","element","init","shiftEnter","split","_descriptionFactory","locale","addMarker:suggestion","ck-suggestion-marker-","addClass","insert","requires","editor","softBreak","markerRange","deletion","consumable","markerName","get"];var mx,fx;mx=gx,fx=181,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("0x10")](){return[nr.ShiftEnter]}[hx("0x7")](){const t=this[hx("0x11")],e=t[hx("0x23")][hx("0x17")](hx("0x3"));e[hx("0x26")](hx("0x8")),t[hx("0x21")][hx("0x2")].on(hx("0x25"),bx(t),{priority:hx("0x1f")}),t[hx("0x21")][hx("0x2")].on(hx("0x27"),bx(t),{priority:hx("0x1f")}),t.data[hx("0x2")].on(hx("0xc"),((e,n,o)=>{o.options.showSuggestionHighlights&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0xa")][hx("0x4")]("softBreak",(e=>Yo(t[hx("0xb")],hx("0x1"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x23")][hx("0x17")](hx("0x3"));if(!s[hx("0x15")][hx("0x1a")](o[hx("0x13")],n[hx("0x0")]))return;const i=t[hx("0x20")];for(const t of o[hx("0x13")][hx("0x22")]()){if(!t.is(hx("0x6"),hx("0x12")))continue;const n=hx("0x14")==o[hx("0x16")][hx("0x9")](":")[1]?hx("0x28"):"split",x=s[hx("0x5")][hx("0x1e")](hx("0x1d"),{class:hx("0xd")+n}),a=s.mapper[hx("0x24")](i[hx("0x1c")](t));e&&r.activeMarkers.includes(o.markerName)&&s[hx("0x5")][hx("0xe")](hx("0x1b"),x),s[hx("0x5")][hx("0xf")](a,x),s[hx("0x19")][hx("0x18")](x,o[hx("0x16")])}}}const Ex=["plugins","selection","commands","registerDescriptionCallback","getRanges","StandardEditingModeEditing","enableCommand","value","format","from","TrackChangesEditing","FORMAT_RESTRICTED_DISABLED","change","model","get","_descriptionFactory","document","commandName","FORMAT_RESTRICTED_ENABLED","forceValue"];var _x,Tx;_x=Ex,Tx=461,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.editor,e=t[Cx("0xc")],n=t.locale;if(!t[Cx("0x13")].has(Cx("0x4")))return;const o=t.plugins[Cx("0xd")](Cx("0x9")),s="restrictedEditingException",r=t[Cx("0x1")].get(s);o[Cx("0x5")](s,((t,n={})=>{const i=e[Cx("0xf")][Cx("0x0")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x12")]?n[Cx("0x12")]:!r[Cx("0x6")];e[Cx("0xb")]((()=>{const t=Array[Cx("0x8")](i[Cx("0x3")]());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[Cx("0xe")][Cx("0x2")]((t=>{const{data:e}=t;if(e&&e[Cx("0x10")]==s)return e.commandParams[0][Cx("0x12")]?{type:Cx("0x7"),content:Yo(n,Cx("0x11"))}:{type:Cx("0x7"),content:Yo(n,Cx("0xa"))}}))}}const kx=["*Format:* %0","format","modelElements","has","selection","getRanges","get","getDefinitionsForView","TrackChangesEditing","_getStyleDefinition","plugins","style.definitions","locale","commandParams","push","change","normalizeConfig","commandName","block","classes","styleName","createRangeOn","name","style:","find","getItems","markBlockFormat","StyleUtils","DataSchema","toLowerCase","isCollapsed","includes","forceValue","element","model","Style","every","getAncestors","afterInit","enabledStyles","from","config","style","getAttribute","enableCommand"];var Ax,vx;Ax=kx,vx=475,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0xd")](){const t=this.editor;if(!t[Rx("0x1e")][Rx("0x17")](Rx("0xa")))return;const e=t.commands[Rx("0x1a")](Rx("0x11")),n=t[Rx("0x1e")][Rx("0x1a")](Rx("0x1c")),o=t[Rx("0x20")],s=t[Rx("0x1e")][Rx("0x1a")](Rx("0x3")),r=t[Rx("0x1e")][Rx("0x1a")](Rx("0x2"))[Rx("0x24")](s,t[Rx("0x10")][Rx("0x1a")](Rx("0x1f")));n[Rx("0x13")](Rx("0x11"),((o,{styleName:i})=>{const x=t.model.document[Rx("0x18")],a=this._getStyleDefinition(i,r);if(!a)return;if(!e[Rx("0xe")][Rx("0x6")](i))return;if(x[Rx("0x5")]&&!a.isBlock)return void o({styleName:i});const c=!e.value.includes(a[Rx("0x2a")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0xc")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x6")](o[Rx("0x2a")])){n.add(o);break}}return n}(x.getSelectedBlocks(),a[Rx("0x16")]);t[Rx("0x9")][Rx("0x23")]((()=>{for(const t of e)n[Rx("0x1")](t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x2b")+i})}))}else{let e=Array.from(x[Rx("0x19")]());if(!c){const n=Array[Rx("0xf")](s[Rx("0x1b")](a[Rx("0x8")],!1))[0][Rx("0x9")],o=[];for(const s of e){const e=this._getRangesWithClasses(t[Rx("0x9")],s,a.classes,n);o[Rx("0x22")](...e)}e=o}t[Rx("0x9")][Rx("0x23")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x11"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x25")])return e[Rx("0x21")][0][Rx("0x7")]?{type:"format",content:Yo(o,Rx("0x14"),e[Rx("0x21")][0][Rx("0x28")][Rx("0x4")]())}:{type:Rx("0x15"),content:Yo(o,"*Remove format:* %0",e[Rx("0x21")][0].styleName[Rx("0x4")]())}}))}[Rx("0x1d")](t,e){let n=e[Rx("0x26")][Rx("0x2c")]((e=>e[Rx("0x2a")]===t));return n||(n=e.inline[Rx("0x2c")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e[Rx("0x0")]()){const e=r[Rx("0x12")](o);e&&n[Rx("0xb")]((t=>e[Rx("0x27")].includes(t)))&&s.push(t[Rx("0x29")](r))}return s}}const Ix=["accept","insertTableRowBelow","change","min","_getSuggestionCoords","above","name","suggestion","insertTableColumnRight","TableUtils","removeTableRow","insertTableColumnLeft","differ","start","$graveyard","getContainedElement","createPositionAt","first","end","addRange","map","enableCommand","MAX_SAFE_INTEGER","deletion","ELEMENT_TABLE_ROW_WITH_TEXT","maxColumn","element","_setupColumnsRowsFixing","type","$textProxy","max","insertTable","insert","values","getRowIndexes","model","afterInit","selectTableColumn","_tableSuggestions","includes","removeTableColumn","registerElementLabel","position","selection","options","getAttribute","createRangeIn","*Remove:* %0","document","*Insert:* %0","MIN_SAFE_INTEGER","commands","table","TrackChangesEditing","rowspan","getRanges","rootName","_getCoordsForCells","_tablePostFixingSubtypes","isEqual","findAncestor","forceValue","_acceptFormatSuggestionCallbackFactory","minRow","tableCell","plugins","addMarker:suggestion","push","filter","setSelection","low","getColumnIndexes","refresh","item","isTouching","nodeAfter","tableRow","subType","last","has","span","add","createRangeOn","toViewElement","root","isInContent","batch","toLowerCase","highest","length","tableColumn","mapper","selectTableRow","left","registerCustomCallback","substr","getSelectionAffectedTableCells","editor","tablePaste","TableEditing","change:data","hasAttribute","downcastDispatcher","classes","_descriptionFactory","removeClass","data","markMultiRangeDeletion","from","ELEMENT_TABLE_ROW","minColumn","registerDescriptionCallback","cell","detach","getCellLocation","every","startsWith","markMultiRangeInsertion","some","get","createTableWalker","getItems","insertion","join","fromRange","execute","ELEMENT_TABLE_COLUMN","enqueueChange","colspan","isIntersectingWithRange","_suggestionFactory"];var Lx,Nx;Lx=Ix,Nx=347,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._tablePostFixingSubtypes=[Mx("0x7a"),Mx("0x5")],this[Mx("0x54")]=new Set}[Mx("0x52")](){const t=this.editor,e=t[Mx("0x51")].document[Mx("0x59")];if(!t[Mx("0x6f")][Mx("0x7d")](Mx("0xe")))return;const n=t.locale,o=t[Mx("0x6f")][Mx("0x22")]("TrackChangesEditing"),s=t[Mx("0x6f")][Mx("0x22")](Mx("0x37"));o[Mx("0x13")][Mx("0x57")](Mx("0x62"),(t=>Yo(n,"ELEMENT_TABLE",t))),this[Mx("0x49")](),o.enableCommand(Mx("0x4d")),o[Mx("0x43")](Mx("0x7")),o[Mx("0x43")](Mx("0x53"));for(const n of["insertTableRowAbove",Mx("0x2f")]){const r=t[Mx("0x61")][Mx("0x22")](n);o[Mx("0x43")](n,(n=>{t[Mx("0x51")].change((t=>{n();const i=Mx("0x33")===r.order,x=s[Mx("0xb")](e),a=s[Mx("0x50")](x),c=i?a.first-1:a[Mx("0x7c")]+1,l=x[0].findAncestor("table"),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array.from(d)[Mx("0x42")]((e=>t[Mx("0x80")](e[Mx("0x1b")])));o.markMultiRangeInsertion(u,Mx("0x7a"))}))}))}for(const n of[Mx("0x39"),Mx("0x36")]){const r=t[Mx("0x61")].get(n);o[Mx("0x43")](n,(n=>{t[Mx("0x51")][Mx("0x30")]((t=>{n();const i=Mx("0x8")===r.order,x=s[Mx("0xb")](e),a=s[Mx("0x75")](x),c=i?a[Mx("0x3f")]-1:a[Mx("0x7c")]+1,l=x[0][Mx("0x6a")]("table"),d=s[Mx("0x23")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x17")](d)[Mx("0x42")]((e=>t.createRangeOn(e[Mx("0x1b")])));o[Mx("0x20")](u,Mx("0x5"))}))}))}for(const n of[Mx("0x38"),"removeTableColumn"]){const r=n[Mx("0xa")](11),i=r.toLowerCase(),x=i.substr(0,3)+Mx("0x7e"),a="table"+r,c=Mx("0x31")+r,l=Mx("0x4c")+r;o[Mx("0x43")](n,(()=>{t[Mx("0x51")][Mx("0x30")]((t=>{const r=s.getSelectionAffectedTableCells(e),d=r[0][Mx("0x6a")](Mx("0x62"));let u;if(Mx("0x38")==n){const t=s[Mx("0x50")](r);u={startRow:t.first,endRow:t.last,includeAllSlots:!0}}else{const t=s[Mx("0x75")](r);u={startColumn:t.first,endColumn:t[Mx("0x7c")],includeAllSlots:!0}}const g=s[Mx("0x23")](d,u),m=Array[Mx("0x17")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x72")]((t=>t[Mx("0x10")](x)))),h=Ox(m[Mx("0x72")]((t=>!t[Mx("0x10")](x)))).map((e=>t.createRangeOn(e))),p=o[Mx("0x16")](h,a);if(p&&(Mx("0x7a")==p[Mx("0x7b")]||Mx("0x5")==p[Mx("0x7b")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t[Mx("0x80")](n),r=s[Mx("0x1d")](n),a=n[Mx("0x5b")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x41")](o)}}}))}))}function r(n){const o=Array[Mx("0x17")](e[Mx("0x65")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0x27")](t)));t[Mx("0x51")][Mx("0x30")]((e=>{const s=e[Mx("0x1")];n=n[Mx("0x72")]((t=>Mx("0x3c")!=t.root.rootName)),e.setSelection(n),t[Mx("0x61")].get(Mx("0x38"))[Mx("0x76")](),t[Mx("0x28")](Mx("0x38"),{forceDefaultExecution:!0}),t[Mx("0x51")][Mx("0x2a")]((()=>{t[Mx("0x51")].enqueueChange(s,(t=>{const e=o[Mx("0x72")]((t=>Mx("0x3c")!=t.root[Mx("0x66")]));e[Mx("0x4")]>0&&t.setSelection(e);for(const t of o)t[Mx("0x1c")]()}))}))}))}function a(n){t[Mx("0x51")][Mx("0x30")]((o=>{const s=Array[Mx("0x17")](e[Mx("0x65")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0x27")](t))),r=[];for(const t of n)for(const e of t[Mx("0x24")]({shallow:!0}))r[Mx("0x71")](e);for(const e of r)"$graveyard"!=e[Mx("0x82")][Mx("0x66")]&&(o[Mx("0x73")](o[Mx("0x3e")](e,0)),t[Mx("0x61")].get(Mx("0x56")).refresh(),t[Mx("0x28")]("removeTableColumn",{forceDefaultExecution:!0}));const x=s[Mx("0x72")]((t=>Mx("0x3c")!=t.root.rootName));x[Mx("0x4")]>0&&o[Mx("0x73")](x);for(const t of s)t[Mx("0x1c")]()}))}function c(t,e){return e[Mx("0x1e")]((e=>t[Mx("0x21")]((t=>t.end[Mx("0x69")](e[Mx("0x3b")])||e.end[Mx("0x69")](t[Mx("0x3b")])))))}function l(t,e){return t[Mx("0x21")]((t=>e[Mx("0x21")]((e=>t[Mx("0x40")][Mx("0x78")](e[Mx("0x3b")])))))}t.data[Mx("0x11")].on(Mx("0x70"),((t,e,n)=>{if(!n[Mx("0x5a")].showSuggestionHighlights)return;const o=e[Mx("0x77")];if(!o)return;const s=n[Mx("0x6")][Mx("0x81")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x6e")===o[Mx("0x34")]&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n.addClass(r(e[Mx("0x12")]),t)),((t,e,n)=>n[Mx("0x14")](r(e.classes),t)))}),{priority:Mx("0x3")}),o[Mx("0x13")][Mx("0x1a")]((t=>{if(Mx("0x25")!=t[Mx("0x4a")]&&"deletion"!=t[Mx("0x4a")])return;const e=t[Mx("0x3d")]();if(null!=e&&e.is(Mx("0x48"),Mx("0x62"))){if(Mx("0x25")==t[Mx("0x4a")]){const e=t[Mx("0x24")]().filter((t=>t.is(Mx("0x4b")))).map((t=>t[Mx("0x15")]));if(e[Mx("0x4")])return{type:"insertion",content:Yo(n,Mx("0x5f"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x26")](" ")+'"'))}}if(Mx("0x45")==t[Mx("0x4a")]){const e=t[Mx("0x24")]().filter((t=>t.is("$textProxy")))[Mx("0x42")]((t=>t[Mx("0x15")]));if(e[Mx("0x4")])return{type:"deletion",content:Yo(n,Mx("0x5d"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x26")](" ")+'"'))}}}})),o[Mx("0x13")].registerDescriptionCallback((t=>{if("tableRow"==t[Mx("0x7b")]){const e=t[Mx("0x24")]().filter((t=>t.is(Mx("0x4b")))).map((t=>t[Mx("0x15")])),o=this[Mx("0x32")](t),s=o.maxRow-o[Mx("0x6d")]+1;if("insertion"==t[Mx("0x4a")])return e[Mx("0x4")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x46"),[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x25"),content:Yo(n,Mx("0x5f"),Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x45")==t[Mx("0x4a")])return e[Mx("0x4")]?{type:"deletion",content:Yo(n,Mx("0x5d"),Yo(n,Mx("0x46"),[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x45"),content:Yo(n,Mx("0x5d"),Yo(n,Mx("0x18"),s))}}if(Mx("0x5")==t[Mx("0x7b")]){const e=t[Mx("0x24")]()[Mx("0x72")]((t=>t.is("$textProxy"))).map((t=>t[Mx("0x15")])),o=this[Mx("0x32")](t),s=o[Mx("0x47")]-o[Mx("0x19")]+1;if(Mx("0x25")==t[Mx("0x4a")])return e[Mx("0x4")]?{type:Mx("0x25"),content:Yo(n,Mx("0x5f"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x25"),content:Yo(n,Mx("0x5f"),Yo(n,Mx("0x29"),s))};if(Mx("0x45")==t[Mx("0x4a")])return e[Mx("0x4")]?{type:Mx("0x45"),content:Yo(n,Mx("0x5d"),Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x26")](" ")+'"']))}:{type:Mx("0x45"),content:Yo(n,Mx("0x5d"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Mx("0x2d")][Mx("0x9")](Mx("0x25"),Mx("0x7a"),"discard",r),o[Mx("0x2d")][Mx("0x9")](Mx("0x45"),Mx("0x7a"),Mx("0x2e"),r),o[Mx("0x2d")][Mx("0x9")](Mx("0x25"),Mx("0x5"),"discard",a),o[Mx("0x2d")][Mx("0x9")](Mx("0x45"),Mx("0x5"),Mx("0x2e"),a),o._suggestionFactory.registerCustomCallback(Mx("0x25"),Mx("0x5"),Mx("0x26"),c),o[Mx("0x2d")][Mx("0x9")](Mx("0x45"),"tableColumn",Mx("0x26"),c),o._suggestionFactory.registerCustomCallback(Mx("0x25"),Mx("0x7a"),Mx("0x26"),l),o._suggestionFactory[Mx("0x9")]("deletion","tableRow","join",l)}[Mx("0x6c")](){const t=this[Mx("0xc")],e=t.model.document[Mx("0x59")];return(n,o)=>{t.model[Mx("0x30")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x40")].nodeBefore;x&&x[0]&&!1===x[0][Mx("0x6b")]&&(a=n[0][Mx("0x3b")].nodeAfter);const c=s[Mx("0x5c")](a);if(Mx("0x3c")==c[Mx("0x82")].rootName)return;const l=Array[Mx("0x17")](e[Mx("0x65")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0x27")](t)));s[Mx("0x73")](c),t[Mx("0x61")][Mx("0x22")](r)[Mx("0x76")](),x[Mx("0x71")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l[Mx("0x72")]((t=>"$graveyard"!=t.root[Mx("0x66")]));d.length>0&&s[Mx("0x73")](d);for(const t of l)t[Mx("0x1c")]()}))}}[Mx("0x67")](t){const e=this[Mx("0xc")][Mx("0x6f")][Mx("0x22")]("TableUtils");let n=Number[Mx("0x44")],o=Number[Mx("0x60")],s=Number[Mx("0x44")],r=Number[Mx("0x60")];for(const i of t){if(Mx("0x3c")==i[Mx("0x82")][Mx("0x66")])continue;const{row:t,column:x}=e[Mx("0x1d")](i),a=i[Mx("0x10")](Mx("0x64"))?i.getAttribute(Mx("0x64"))-1:0,c=i[Mx("0x10")]("colspan")?i[Mx("0x5b")](Mx("0x2b"))-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}}_setupColumnsRowsFixing(){const t=this.editor,e=t.plugins[Mx("0x22")](Mx("0x63")),n=t.plugins.get(Mx("0x37"));t[Mx("0x51")][Mx("0x5e")].on(Mx("0xf"),(()=>{const n=Array[Mx("0x17")](t[Mx("0x51")][Mx("0x5e")][Mx("0x3a")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if(Mx("0x35")!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x68")][Mx("0x55")](r)&&this[Mx("0x54")][Mx("0x7f")](i)}}),{priority:Mx("0x74")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x80")](t),r=t[Mx("0x6a")](Mx("0x62")),i=n[Mx("0x1d")](t);for(const e of this[Mx("0x54")]){const n=e[Mx("0x7b")],x=n[Mx("0x1f")](Mx("0xd")),a=n.substr(x?10:5),c=a[Mx("0x2")](),l=c[Mx("0xa")](0,3)+Mx("0x7e"),d="min"+a,u=Mx("0x4c")+a;if(!e[Mx("0x0")])continue;if(r!=e.getFirstRange()[Mx("0x3b")][Mx("0x6a")](Mx("0x62")))continue;if(e[Mx("0x2c")](s))continue;const g=t[Mx("0x10")](l)?t.getAttribute(l)-1:0,m=this[Mx("0x32")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Mx("0x51")][Mx("0x5e")].registerPostFixer((e=>{let n=!1;for(const s of t[Mx("0x51")].document[Mx("0x3a")].getChanges())if(Mx("0x4e")==s[Mx("0x4a")])if(Mx("0x7a")==s[Mx("0x34")])for(const t of s.position[Mx("0x79")].getChildren())n=n||o(t,e);else Mx("0x6e")==s[Mx("0x34")]&&(n=n||o(s[Mx("0x58")].nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Mx("0x67")](t[Mx("0x65")]()[Mx("0x42")]((t=>t[Mx("0x3b")][Mx("0x79")])))}}function Ox(t){return Array[Mx("0x17")](new Set(t)[Mx("0x4f")]())}const Fx=["createRangeOn","getRanges","locale","_areSelectedCellsMergable","isInContent","selection","stop","find","execute","return","low","model","tableCell","isEnabled","add","requires","direction","has","enableCommand","_areMergableCells","commands","_isForcedDefaultExecutionBlock","accept","registerCustomCallback","TableUtils","subType","*Merge cells*","change","findAncestor","splitTableCellHorizontally","createTableWalker","highest","_suggestionFactory","filter","root","markMultiRangeBlockFormat","commandName","*Split cell:* vertically","*Split cell:* horizontally","registerDescriptionCallback","push","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","editor","cell","getAncestors","length","element","getSuggestions","value","mergeTableCellDown","format","document","_descriptionFactory","TableEditing","map","formatBlock","get","size","rootName","getFirstPosition","TrackChangesEditing","setSelection","plugins","type","mergeTableCellUp","forceDefaultExecution","horizontally","mergeTableCellLeft","from","mergeTableCellRight","trackChanges","splitTableCellVertically","author","afterInit","mergeTableCells","detach","containsRange","$graveyard"];var Px,Dx;Px=Fx,Dx=383,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("0x1b")](){return[wx]}[Bx("0x7")](){const t=this[Bx("0x37")],e=t[Bx("0x17")][Bx("0x40")].selection,n=t[Bx("0xe")];if(!t[Bx("0x4b")][Bx("0x1d")](Bx("0x42")))return;const o=t.plugins[Bx("0x45")]("TrackChangesEditing"),s=t[Bx("0x4b")][Bx("0x45")](Bx("0x24")),r=t[Bx("0x4b")][Bx("0x45")](wx);r._tablePostFixingSubtypes[Bx("0x34")](Bx("0x8")),o[Bx("0x1e")](Bx("0x8"),(()=>{const e=s[Bx("0x35")](t[Bx("0x17")][Bx("0x40")][Bx("0x11")]);t[Bx("0x17")][Bx("0x27")]((()=>{o[Bx("0x2f")](e,{commandName:Bx("0x8"),commandParams:[]},[],Bx("0x8"))}))})),t[Bx("0x20")][Bx("0x45")]("mergeTableCells").on(Bx("0x14"),((e,n)=>{t[Bx("0x20")][Bx("0x45")](Bx("0x4")).value&&(n[Bx("0x3a")]>0&&n[n[Bx("0x3a")]-1]&&n[n[Bx("0x3a")]-1][Bx("0x4e")]||o[Bx("0x21")]||this[Bx("0xf")]()||e[Bx("0x12")]())}),{priority:Bx("0x2b")});for(const e of[Bx("0x4d"),Bx("0x3"),Bx("0x3e"),"mergeTableCellLeft"]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const e=t.model.document.selection.getFirstPosition()[Bx("0x39")]()[Bx("0x13")]((t=>t.is(Bx("0x3b"),Bx("0x18")))),s=n.value;t.model.change((()=>{o[Bx("0x2f")]([e,s],{commandName:Bx("0x8"),commandParams:[]},[],Bx("0x8"))}))}))}for(const e of[Bx("0x5"),Bx("0x29")]){const n=t[Bx("0x20")].get(e);o[Bx("0x1e")](e,(()=>{const r=s[Bx("0x35")](t.model.document.selection)[0],i=r[Bx("0x28")]("table"),{column:x,row:a}=s.getCellLocation(r);let c=[];if(Bx("0x0")==n[Bx("0x1c")]){const t=s.createTableWalker(i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x2")](t)[Bx("0x43")]((t=>t[Bx("0x38")]))}else{const t=s[Bx("0x2a")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x2")](t)[Bx("0x43")]((t=>t[Bx("0x38")]))}t[Bx("0x17")][Bx("0x27")]((t=>{o.markBlockFormat(t[Bx("0xc")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Bx("0x33")]((t=>{const{data:e}=t;if(e)return Bx("0x8")==e[Bx("0x30")]?{type:Bx("0x3f"),content:Yo(n,Bx("0x26"))}:void 0})),o[Bx("0x41")][Bx("0x33")]((t=>{const{data:e}=t;if(e)return Bx("0x5")==e[Bx("0x30")]?{type:Bx("0x3f"),content:Yo(n,Bx("0x31"))}:Bx("0x29")==e.commandName?{type:Bx("0x3f"),content:Yo(n,Bx("0x32"))}:void 0}));const x=r[Bx("0x36")]();for(const t of["mergeTableCellUp",Bx("0x3"),Bx("0x3e"),Bx("0x1")])o[Bx("0x2c")][Bx("0x23")](Bx("0x44"),t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x29")])o[Bx("0x2c")][Bx("0x23")](Bx("0x44"),t,Bx("0x22"),x);o[Bx("0x2c")][Bx("0x23")]("formatBlock",Bx("0x8"),Bx("0x22"),(n=>{t[Bx("0x17")][Bx("0x27")]((o=>{const s=Array.from(e[Bx("0xd")]())[Bx("0x43")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x4a")](n),t.commands.get("mergeTableCells").refresh(),t[Bx("0x14")](Bx("0x8"),{forceDefaultExecution:!0});const r=s[Bx("0x2d")]((t=>Bx("0xb")!=t[Bx("0x2e")][Bx("0x47")]));r[Bx("0x3a")]>0&&o[Bx("0x4a")](r);for(const t of s)t[Bx("0x9")]()}))}));for(const e of[Bx("0x4d"),Bx("0x3e"),Bx("0x1"),Bx("0x3")]){const n=t.commands[Bx("0x45")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t.model[Bx("0x40")][Bx("0x11")][Bx("0x48")]()[Bx("0x39")]().find((t=>t.is(Bx("0x3b"),"tableCell")));this._areMergableCells(n[Bx("0x3d")],o)||(e[Bx("0x15")]=!1,e[Bx("0x12")]())}}),{priority:Bx("0x16")})}}_areSelectedCellsMergable(){const t=this[Bx("0x37")][Bx("0x20")][Bx("0x45")]("mergeTableCells"),e=this[Bx("0x37")][Bx("0x4b")][Bx("0x45")](Bx("0x24"));if(!t[Bx("0x19")])return!1;const n=e[Bx("0x35")](this.editor[Bx("0x17")][Bx("0x40")][Bx("0x11")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x1f")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x37")][Bx("0x4b")].get(Bx("0x49")),o=this[Bx("0x37")][Bx("0x17")][Bx("0xc")](t),s=this[Bx("0x37")][Bx("0x17")][Bx("0xc")](e),r=new Set,i=new Set;for(const t of n[Bx("0x3c")]())if(("insertion"==t[Bx("0x4c")]||"deletion"==t[Bx("0x4c")]||"mergeTableCells"==t[Bx("0x25")])&&t[Bx("0x10")])for(const e of t[Bx("0xd")]())e[Bx("0xa")](o,!0)&&r.add(t.type+":"+t[Bx("0x6")].id),e.containsRange(s,!0)&&i[Bx("0x1a")](t.type+":"+t[Bx("0x6")].id);if(r[Bx("0x46")]!=i[Bx("0x46")])return!1;for(const t of r)if(!i[Bx("0x1d")](t))return!1;return!0}}const Ux=["unbindElementFromMarkerName","FORMAT_REGULAR_COLUMN","TrackChangesEditing","showSuggestionHighlights","toViewElement","change","_descriptionFactory","FORMAT_REGULAR_ROW","nodeAfter","requires","last","accept","commands","locale","commandParams","markerNameToElements","parent","registerCustomCallback","createPositionAfter","afterInit","TableUtils","removeClass","highest","FORMAT_HEADER_ROW","_splitMarkerName","first","markBlockFormat","downcastDispatcher","setAttribute","_suggestionFactory","enableCommand","registerDescriptionCallback","markerName","getChild","formatBlock","getSelectionAffectedTableCells","end","has","activeMarkers","data","removeMarker:suggestion","markerRange","ck-suggestion-marker--active","_acceptFormatSuggestionCallbackFactory","createRange","getRowIndexes","childCount","writer","commandName","consume","forceValue","table","from","mapper","item","getSuggestion","start","findAncestor","addClass","cell","index","model","document","includes","data-suggestion","TableEditing","getCellLocation","value","setTableRowHeader","createPositionBefore","addMarker:suggestion","createTableWalker","getAttribute","name","headingRows","plugins","editing","get","getColumnIndexes","setTableColumnHeader","format"];var Gx,Hx;Gx=Ux,Hx=391,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[zx("0x17")](){return[wx]}[zx("0x21")](){const t=this.editor;if(!t[zx("0x8")][zx("0x33")](zx("0x4f")))return;const e=t[zx("0x1b")],n=t[zx("0x8")].get(zx("0x10")),o=t[zx("0x8")][zx("0xa")](zx("0x22")),s=t.plugins[zx("0xa")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x26")](r[zx("0x2e")]),c=n[zx("0x45")](a);if(!c[zx("0x35")]||zx("0xc")!=c.data[zx("0x3e")])return;if(r[zx("0x44")])return void s.stop();if(!i.consumable[zx("0x3f")](r[zx("0x37")],s[zx("0x6")]))return;const l=r[zx("0x37")][zx("0x46")][zx("0x16")],d=r[zx("0x37")][zx("0x32")].nodeBefore,u=l[zx("0x1e")][zx("0x1e")],{column:g}=o[zx("0x50")](l),{column:m}=o[zx("0x50")](d);for(let s=g;s<=m;s++){const c=o[zx("0x4")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x49")],c=i[zx("0x43")][zx("0x12")](s);i[zx("0x3d")][zx("0x48")]("ck-suggestion-marker-"+x,c),e&&i.writer[zx("0x2a")](zx("0x4e"),a,c),i[zx("0x43")].bindElementToMarker(c,r[zx("0x2e")]),t&&(n[zx("0x34")][zx("0x4d")](r[zx("0x2e")])?i.writer[zx("0x48")]("ck-suggestion-marker--active",c):i.writer[zx("0x23")](zx("0x38"),c))}}}}n[zx("0x2c")](zx("0x1"),((e,s)=>{const r=o[zx("0x31")](t[zx("0x4b")][zx("0x4c")].selection),i=o[zx("0x3b")](r),x=r[0].findAncestor(zx("0x41")),a=x[zx("0x5")](zx("0x7"))||0,c=s&&null!==s[zx("0x40")]?s[zx("0x40")]:!t[zx("0x1a")].get(zx("0x1"))[zx("0x0")],l=c?i[zx("0x18")]:i[zx("0x27")],d=x[zx("0x2f")](l);let u;if(c){const e=x[zx("0x2f")](a);if(d.index<e[zx("0x4a")])return;u=t[zx("0x4b")][zx("0x3a")](t[zx("0x4b")][zx("0x2")](e[zx("0x2f")](0)),t[zx("0x4b")][zx("0x20")](d[zx("0x2f")](d[zx("0x3c")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[zx("0x4b")][zx("0x3a")](t[zx("0x4b")].createPositionBefore(d[zx("0x2f")](0)),t[zx("0x4b")].createPositionAfter(e.getChild(e[zx("0x3c")]-1)))}t[zx("0x4b")][zx("0x13")]((()=>{n[zx("0x28")](u,{commandName:zx("0x1"),commandParams:[{forceValue:c}]},[],zx("0x1"))}))})),n[zx("0x2c")](zx("0xc"),((e,o)=>{const s=t.plugins[zx("0xa")]("TableUtils"),r=s[zx("0x31")](t[zx("0x4b")].document.selection),i=s[zx("0xb")](r),x=r[0][zx("0x47")](zx("0x41")),a=x.getAttribute("headingColumns")||0,c=o&&null!==o[zx("0x40")]?o[zx("0x40")]:!t[zx("0x1a")][zx("0xa")]("setTableColumnHeader")[zx("0x0")];let l;const d=x.getChild(0),u=c?i[zx("0x18")]:i[zx("0x27")],g=s[zx("0x4")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x42")](g)[0][zx("0x49")];if(c){const e=d[zx("0x2f")](a);if(m.isBefore(e))return;l=t[zx("0x4b")][zx("0x3a")](t[zx("0x4b")][zx("0x2")](e),t.model[zx("0x20")](m))}else{const e=d[zx("0x2f")](a-1);if(!e)return;l=t[zx("0x4b")][zx("0x3a")](t[zx("0x4b")].createPositionBefore(m),t.model[zx("0x20")](e))}t.model.change((()=>{n[zx("0x28")](l,{commandName:zx("0xc"),commandParams:[{forceValue:c}]},[],zx("0xc"))}))})),t[zx("0x9")][zx("0x29")].on(zx("0x3"),r(),{priority:zx("0x24")}),t[zx("0x35")][zx("0x29")].on("addMarker:suggestion",((t,e,n)=>{n.options[zx("0x11")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x24")}),t[zx("0x9")][zx("0x29")].on(zx("0x36"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x26")](e.markerName),i=n.getSuggestion(r);if(!i[zx("0x35")]||zx("0xc")!=i[zx("0x35")].commandName)return;const x=o[zx("0x43")][zx("0x1d")](e[zx("0x2e")]);if(x)for(const t of x)o[zx("0x3d")][zx("0x23")]("ck-suggestion-marker-"+s,t),o[zx("0x3d")][zx("0x23")](zx("0x38"),t),o.writer.removeAttribute(zx("0x4e"),t),o.mapper[zx("0xe")](t,e[zx("0x2e")])}),{priority:"highest"}),n[zx("0x14")][zx("0x2d")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n[zx("0x3e")]){const t=n[zx("0x1c")][0][zx("0x40")];return o(Yo(e,zx(t?"0x25":"0x15")))}if(zx("0xc")==n[zx("0x3e")]){const t=n[zx("0x1c")][0][zx("0x40")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0xf")))}}function o(t){return{type:zx("0xd"),content:Yo(e,"*Format:* %0",t)}}}));const i=s[zx("0x39")]();n[zx("0x2b")][zx("0x1f")](zx("0x30"),zx("0x1"),zx("0x19"),i),n[zx("0x2b")][zx("0x1f")](zx("0x30"),zx("0xc"),zx("0x19"),i)}}const Vx=["_tablePostFixingSubtypes","redo","markMultiRangeDeletion","registerPostFixer","getSuggestion","getRowIndexes","discard","ck-suggestion-marker","getChangedMarkers","dataDowncast","getRanges","*Replace table cells*","Users","commands","removeMarkers","name","findAncestor","createRangeIn","fromEntries","push","return","accept","next","createElement","register","high","createTableWalker","has","suggestionLoaded","deletionRanges","TrackChangesEditing","suggestion-td","rows","suggestion:formatBlock:tablePasteCell","tableCellBorderColor","_suggestionFactory","previous","getColumns","setAttribute","stop","model","tableCellBorderWidth","editor","tableCellHorizontalAlignment","cells","getItems","registerDescriptionCallback","_descriptionFactory","low","createPositionBefore","schema","locale","set","markMultiRangeInsertion","paragraph","attributes","insertionRanges","updateMarker","tablePasteChainId","suggestion","listenTo","getRange","selection","every","tablePasteRow","remove","getAllAdjacentSuggestions","removeMarker","registerCustomCallback","insertRows","getMarkers","map","nextSibling","element","removeColumns","filter","markMultiRangeBlockFormat","tableCell","_getCoordsForCells","document","editingDowncast","from","wrap","createRange","oldRange","rowInsertionRanges","getAttributes","author","find","hasSuggestion","showSuggestionHighlights","join","first","createRangeOn","value","tableCellPadding","isEqual","columnInsertionIndexes","$graveyard","getShiftedBy","TableClipboard","nodeAfter","differ","change","rowInsertionIndexes","conversion","end","columns","plugins","editing","content","cell","entries","tableCellSuggestion","insertion","view","getSuggestions","getChildren","some","columnInsertionRanges","deletion","isEmpty","tablePasteColumn","start","getSelectionAffectedTableCells","tablePaste","insertColumns","markerName","ck-suggestion-marker--active","suggestionUnloaded","reduce","insertContent","unwrap","includes","isInContent","getChanges","newRange","endRow","forceDefaultExecution","markerToHighlight","getChild","table","last","fill","trackChanges","for","_splitMarkerName","column","tablePasteCell","subType","options","startsWith","length","formatBlock","get","add","type","previousSibling","position","insert","markerAttributes","elementToElement","getContainedElement"];var Kx,qx;Kx=Vx,qx=439,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x5b"),Xx("0x54"),"tableCellBorderStyle",Xx("0x5d"),"tableCellVerticalAlignment","tableCellBackgroundColor",Xx("0x91")],Jx=Object[Xx("0x44")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}afterInit(){const t=this[Xx("0x5c")];if(!t[Xx("0x9e")][Xx("0x4d")]("TableClipboard"))return;const n=t[Xx("0x9e")].get(Xx("0x50")),o=t[Xx("0x9e")][Xx("0x29")]("TableUtils"),s=t[Xx("0x9e")][Xx("0x29")](wx),r=t[Xx("0x9e")][Xx("0x29")]("TableClipboard");s[Xx("0x32")][Xx("0x45")](Xx("0x72"),Xx("0x9")),t.model[Xx("0x64")][Xx("0x4a")]("tableCellSuggestion",{allowIn:Xx("0x7f"),allowContentOf:Xx("0x7f"),isLimit:!0}),t[Xx("0x9b")][Xx("0x30")]({model:Xx("0x0"),view:Xx("0x51")});let i=null;t[Xx("0x5a")].on(Xx("0x12"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x27")]-1];l&&l[Xx("0x19")]||n._isForcedDefaultExecutionBlock||this[Xx("0x5c")][Xx("0x3f")][Xx("0x29")](Xx("0x1f"))[Xx("0x90")]&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0xb")](n[Xx("0x81")][Xx("0x70")]);if(!i.length)return!1;const x=i[0].findAncestor("table"),a=o[Xx("0x37")](i),c=o.getColumnIndexes(i),l={startRow:a[Xx("0x8e")],endRow:a[Xx("0x1d")],startColumn:c[Xx("0x8e")],endColumn:c.last};return 1==i.length&&(l[Xx("0x18")]+=o.getRows(r)-1,l.endColumn+=o[Xx("0x57")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[Xx("0x59")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x5a")][Xx("0x99")]((()=>{t.model[Xx("0x12")](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("0x27")]&&n[Xx("0x67")](s,Xx("0x72"),{tablePasteChainId:o}),r.length&&n[Xx("0x67")](r,Xx("0x9"),{tablePasteChainId:o}),a.length&&n[Xx("0x67")](a,Xx("0xc"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x27")]&&n[Xx("0x34")](c,Xx("0xc"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x7e")](l[Xx("0x79")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x23"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Xx("0x8f")](o),i=e.find((t=>t[Xx("0x6f")]()[Xx("0x92")](r)));i&&n[Xx("0x45")]([i[Xx("0x41")],s])}n[Xx("0x27")]&&d[Xx("0x58")](Xx("0x2f"),Object[Xx("0x44")](n))}i=null})))}),{priority:e.priorities[Xx("0x4b")]+10}),t[Xx("0x9e")][Xx("0x29")](Xx("0x96")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x59")]();const r=n[Xx("0xa1")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x46")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x1b")](0));for(const t of Array[Xx("0x83")](x.getChildren()))s[Xx("0x2e")](t,r,Xx("0x9c"));const t=i[Xx("0x9a")].includes(n.row),e=i.columnInsertionIndexes[Xx("0x14")](n[Xx("0x22")]);t||e||(l=s.createRangeIn(r))}else c&&!a&&(d=s.createRangeIn(r));else{const t=s.createElement(Xx("0x0")),e=s[Xx("0x49")](Xx("0x0"));s[Xx("0x84")](s[Xx("0x43")](r),e),s[Xx("0x2e")](t,r,0);for(const e of Array[Xx("0x83")](x[Xx("0x4")]()))s[Xx("0x2e")](e,t,"end");l=s.createRangeOn(t),d=s[Xx("0x8f")](e)}const u=Array[Xx("0x83")](x[Xx("0x88")]())[Xx("0x7d")]((([t])=>$x[Xx("0x14")](t)));i[Xx("0x5e")][Xx("0x45")]({element:r,attributes:u[Xx("0x27")]?Object[Xx("0x44")](u):null}),l&&i[Xx("0x6a")][Xx("0x45")](l),d&&i[Xx("0x4f")][Xx("0x45")](d)}),{priority:Xx("0x4b")}),o.on(Xx("0xd"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x9d")]||1;i[Xx("0x93")]=new Array(a)[Xx("0x1e")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x4c")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x6")][Xx("0x45")](t[Xx("0x5a")][Xx("0x8f")](e))}),{priority:Xx("0x62")}),o.on(Xx("0x77"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x52")]||1;i[Xx("0x9a")]=new Array(a)[Xx("0x1e")](x)[Xx("0x79")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x4c")](s,{startRow:x,endRow:x+a-1}))i[Xx("0x87")][Xx("0x45")](t[Xx("0x5a")][Xx("0x8f")](e))}),{priority:Xx("0x62")}),n[Xx("0x61")][Xx("0x60")]((e=>{if(e.subType&&e[Xx("0x24")][Xx("0x26")](Xx("0xc")))return e[Xx("0x56")]?{}:{type:Xx("0x1"),content:Yo(t[Xx("0x65")],Xx("0x3d"))}}));const x=()=>{};for(const t of["tablePaste",Xx("0x9"),"tablePasteRow",Xx("0x23")])n[Xx("0x55")][Xx("0x76")]("insertion",t,Xx("0x8d"),x),n[Xx("0x55")][Xx("0x76")]("deletion",t,"join",x);n[Xx("0x55")].registerCustomCallback(Xx("0x28"),Xx("0x23"),"discard",x),n._suggestionFactory.registerCustomCallback(Xx("0x28"),"tablePasteCell",Xx("0x47"),((e,n,o)=>{const s=e[Xx("0x79")]((t=>t[Xx("0x31")]())).filter((t=>t)),r=new Map(s[Xx("0x79")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x5e")])e&&r[Xx("0x66")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xx("0xa2")](o[Xx("0x2f")])){const o=t[Xx("0x5a")].markers[Xx("0x29")](e),s=o?o[Xx("0x6f")]()[Xx("0x31")]():null;s&&r[Xx("0x66")](s,n)}t[Xx("0x5a")][Xx("0x99")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Xx("0x76")](e,"tablePaste",o,((s,r,i)=>{t.model[Xx("0x99")]((t=>{const x=[];for(const t of s){const e=t[Xx("0xa")][Xx("0x97")];e.is(Xx("0x7b"),Xx("0x0"))&&x[Xx("0x45")](e)}n[Xx("0x55")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0x94")!=e.root.rootName&&t.unwrap(e)}))}))};a("insertion",Xx("0x47")),a(Xx("0x1"),"discard"),a(Xx("0x7"),Xx("0x47")),a("deletion",Xx("0x38")),n[Xx("0x55")].registerCustomCallback("insertion",Xx("0x72"),Xx("0x38"),(t=>{const e=t.map((t=>t[Xx("0x31")]())),n=e[0][Xx("0x42")]("table"),{minRow:r,maxRow:i}=s[Xx("0x80")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[Xx("0x55")][Xx("0x76")]("insertion",Xx("0x9"),"discard",(t=>{const e=t[Xx("0x79")]((t=>t.getContainedElement())),n=e[0][Xx("0x42")](Xx("0x1c")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xx("0x7c")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x24")]||!e.subType[Xx("0x26")]("tablePaste"))return;const o=e[Xx("0x69")][Xx("0x6c")],s=n[Xx("0x3")]().filter((t=>t[Xx("0x15")]&&t[Xx("0x69")]&&t[Xx("0x69")].tablePasteChainId==o));s[Xx("0x27")]&&e.getAllAdjacentSuggestions()[Xx("0x27")]!=s[Xx("0x27")]&&s[Xx("0x11")](((t,e)=>(t[Xx("0x48")]=e,e[Xx("0x56")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x21")](t[Xx("0xe")]),s=[Xx("0x39"),"ck-suggestion-marker-insertion"],r=n.activeMarkers.includes(t[Xx("0xe")]);return r&&s.push(Xx("0xf")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x4e"),c,{priority:Xx("0x4b")}),n.on(Xx("0x10"),c,{priority:Xx("0x4b")}),t[Xx("0x5a")][Xx("0x81")].registerPostFixer((()=>{let e=!1;const o=Array[Xx("0x83")](t[Xx("0x5a")][Xx("0x81")][Xx("0x98")][Xx("0x3a")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x21")](s);if(Xx("0x6d")!=o||Xx("0x7")!=i||r[Xx("0x86")])continue;if(!n[Xx("0x8b")](x))continue;const a=n[Xx("0x36")](x)[Xx("0x3c")](),c=t.plugins.get(Xx("0x3e")).me;for(const t of n.getSuggestions())if(t[Xx("0x15")]&&t.author==c&&Xx("0x28")==t[Xx("0x2b")]&&Xx("0x23")==t.subType&&t[Xx("0x3c")]()[Xx("0x71")]((t=>a[Xx("0x5")]((e=>e.containsRange(t,!0))))))for(const n of t[Xx("0x74")]())n[Xx("0x15")]&&(n[Xx("0x38")](),e=!0)}return e})),t.model[Xx("0x81")].registerPostFixer((e=>{const o=t.commands[Xx("0x29")](Xx("0x33"));if(!o||!o._createdBatches.has(e.batch))return!1;let s=!1;const r=t.plugins[Xx("0x29")](Xx("0x3e")).me,i=t.model[Xx("0x81")].differ[Xx("0x16")](),x=Array[Xx("0x83")](t[Xx("0x5a")][Xx("0x81")][Xx("0x98")].getChangedMarkers())[Xx("0x7d")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x21")](t);return Xx("0x6d")==o&&Xx("0xc")==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Xx("0x2e")!=t[Xx("0x2b")]||Xx("0x0")!=t[Xx("0x41")]||1!=t[Xx("0x27")])continue;const n=e[Xx("0x85")](t[Xx("0x2d")],t[Xx("0x2d")][Xx("0x95")](1));if(!x[Xx("0x8a")]((({data:t})=>t[Xx("0x17")][Xx("0x92")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[Xx("0x17")])){e[Xx("0x6b")](t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x81")][Xx("0x35")]((e=>{let o=!1;const s=t.plugins.get(Xx("0x3e")).me,r=n[Xx("0x3")]()[Xx("0x7d")]((t=>t[Xx("0x15")]&&t[Xx("0x89")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0xc")==t.subType)for(const e of t[Xx("0x78")]()){const n=e[Xx("0x6f")]()[Xx("0x31")]();if(n)if(n.is(Xx("0x7b"),Xx("0x0"))&&Zx(n)){t[Xx("0x75")](e.name),i.add(n),o=!0;const s=n[Xx("0x7a")],r=n[Xx("0x2c")],a=s&&s.is(Xx("0x7b"),Xx("0x0")),c=r&&r.is(Xx("0x7b"),Xx("0x0"));a&&!i[Xx("0x4d")](s)&&x[Xx("0x2a")](s),c&&!i[Xx("0x4d")](r)&&x[Xx("0x2a")](r)}else n.is(Xx("0x7b"),Xx("0x68"))&&n[Xx("0x8")]&&(t.removeMarker(e[Xx("0x41")]),o=!0)}else if(Xx("0x23")==t[Xx("0x24")]){if(!t[Xx("0x69")]||!t.attributes.tablePasteChainId)continue;const e=t[Xx("0x69")][Xx("0x2f")];if(e&&Object.keys(e)[Xx("0x27")])continue;const n=t[Xx("0x69")][Xx("0x6c")];let s=!0,i=!0;for(const e of r)if(e[Xx("0x24")]&&e.subType[Xx("0x26")]("tablePaste")){if(!e[Xx("0x69")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Xx("0x69")][Xx("0x6c")]==n){s=!1;break}}i&&s&&(t[Xx("0x40")](),o=!0)}for(const t of i)e[Xx("0x73")](t);for(const t of x)e[Xx("0x13")](t);return o})),t[Xx("0x9b")][Xx("0x20")](Xx("0x82"))[Xx("0x1a")]({model:Xx("0x53"),view:(t,e)=>l(t),converterPriority:"high"}),t[Xx("0x9b")][Xx("0x20")](Xx("0x3b"))[Xx("0x1a")]({model:Xx("0x53"),view:(t,e)=>e[Xx("0x25")][Xx("0x8c")]?l(t,!1):null,converterPriority:Xx("0x4b")});const d=t[Xx("0x9f")][Xx("0x2")];this[Xx("0x6e")](d[Xx("0x81")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Xx("0x43")](e[Xx("0xa0")])[Xx("0x5f")]())t.is(Xx("0x7b"),Xx("0x51"))&&n[Xx("0x45")](t);d[Xx("0x99")]((t=>{for(const e of n)t.move(t[Xx("0x43")](e),t[Xx("0x63")](e)),t[Xx("0x73")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x1b")](0);return e.is(Xx("0x7b"),Xx("0x68"))&&e[Xx("0x8")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x4c")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["get","document","_suggestionFactory","model","enableCommand","getContainedElement","resizeTable","getSuggestions","columnWidths","markBlockFormat","editor","getTableColumnsWidths","TableColumnResizeEditing","formatGroupId","plugins","accept","afterInit","bind","TrackChangesEditing","registerCustomCallback","has","getSelectedElement","data","commandParams","getSuggestionCallback","formatBlock","getColumnGroupElement","registerDescriptionCallback","tableWidth","discard","*Format:* resize table","handleResizeTableWidthCommand"];var ea,na;ea=ta,na=329,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x7")](){if(!this[oa("0x1")][oa("0x5")][oa("0xb")](oa("0x3")))return;const t=this.editor[oa("0x5")][oa("0x17")](oa("0x9"));t[oa("0x1b")]("resizeTableWidth",this[oa("0x16")][oa("0x8")](this)),t.enableCommand("resizeColumnWidths",this[oa("0x16")][oa("0x8")](this)),t[oa("0x19")][oa("0xa")](oa("0x10"),oa("0x1d"),oa("0x6"),t[oa("0x19")][oa("0xf")](oa("0x10"),null,"discard")),t._suggestionFactory[oa("0xa")]("formatBlock",oa("0x1d"),oa("0x14"),t._suggestionFactory.getSuggestionCallback(oa("0x10"),null,"accept")),t._descriptionFactory[oa("0x12")](this.handleSuggestionDescription[oa("0x8")](this))}handleResizeTableWidthCommand(t,e){const n=this[oa("0x1")][oa("0x5")][oa("0x17")]("TrackChangesEditing"),o=this[oa("0x1")][oa("0x5")][oa("0x17")]("TableColumnResizeEditing"),s=e.table||this[oa("0x1")][oa("0x1a")][oa("0x18")].selection[oa("0xc")]();this.editor[oa("0x1a")].change((()=>{const r=o[oa("0x11")](s);let i=r?o[oa("0x2")](r):null,x=s.getAttribute(oa("0x13"))||null;const a=e[oa("0x13")]||x,c=e[oa("0x1f")]||i,l=this[oa("0x1")][oa("0x5")][oa("0x17")]("Users").me;for(const t of n[oa("0x1e")]()){const e=t[oa("0x1c")]();if("resizeTable"===t.subType&&e===s){t.author!==l&&t[oa("0x14")]();const e=t[oa("0xd")][oa("0xe")];x=e[0][oa("0x13")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x0")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1d")},[],"resizeTable")}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x1d")===e[oa("0x4")]){const t=oa("0x15");return{type:"format",content:Yo(this[oa("0x1")].locale,t)}}}}const ra=["TrackChangesEditing","enableCommand","Template","insertTemplate","get","has","afterInit","plugins"];var ia,xa;ia=ra,xa=192,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x6")](){const t=this.editor;t.plugins[aa("0x5")](aa("0x2"))&&t[aa("0x7")][aa("0x4")](aa("0x0"))[aa("0x1")](aa("0x3"))}}const la=["tableOfContents","ELEMENT_TABLE_OF_CONTENTS","TrackChangesEditing","commands","plugins","enableCommand","editor","locale","_descriptionFactory","afterInit","insertTableOfContents","get"];var da,ua;da=la,ua=218,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[ga("0x4")];if(!t[ga("0x1")][ga("0x9")]("insertTableOfContents"))return;t[ga("0x2")][ga("0x9")](ga("0x0"))[ga("0x3")](ga("0x8"));const e=t[ga("0x2")][ga("0x9")](ga("0x0")),n=t[ga("0x5")];e[ga("0x6")].registerElementLabel(ga("0xa"),(t=>Yo(n,ga("0xb"),t)))}}const fa=["newRange","title-content","registerElementLabel","element","_descriptionFactory","removeMarker","TrackChangesEditing","differ","isTouching","registerPostFixer","getChangedMarkers","ELEMENT_TITLE","forward","schema","afterInit","isCollapsed","createRange","document","get","plugins","start","updateMarker","locale","model","from","Title","end","suggestion","getNearestSelectionRange","isEqual"];var ha,pa;ha=fa,pa=336,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x8")](){const t=this.editor;if(!t[ba("0xd")].has(ba("0x13")))return;const e=t[ba("0xd")][ba("0xc")](ba("0x0"));e[ba("0x1c")][ba("0x1a")](ba("0x19"),(()=>Yo(t[ba("0x10")],ba("0x5")))),t[ba("0x11")].document[ba("0x3")]((n=>{let o=!1;const s=Array[ba("0x12")](t.model[ba("0xb")][ba("0x1")][ba("0x4")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x15")!==s||!i[ba("0x18")])continue;const x=i[ba("0x18")],a=x[ba("0x14")].nodeBefore;if(!a||!a.is(ba("0x1b"),ba("0x19")))continue;if(!x.start[ba("0x2")](x[ba("0x14")]))continue;const c=t.model[ba("0x7")][ba("0x16")](x.end,ba("0x6"));if(c&&c[ba("0x9")]){const t=n[ba("0xa")](x[ba("0xe")],c[ba("0xe")]);t[ba("0x17")](x)||(n[ba("0xf")](r,{range:t}),o=!0)}o||(n[ba("0x1d")](r),o=!0)}return o}))}}const _a=["plugins","undo","get","TrackChangesEditing","editor","UndoEditing","has","enableCommand"];var Ta,Ca;Ta=_a,Ca=487,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{afterInit(){const t=this[ya("0x5")],e=t.plugins[ya("0x3")](ya("0x4"));t[ya("0x1")][ya("0x7")](ya("0x6"))&&(e[ya("0x0")](ya("0x2")),e.enableCommand("redo"))}}const Aa=["requires","get","afterInit","enableCommand","has","plugins","TableCaptionEditing","TrackChangesEditing"];var va,Ra;va=Aa,Ra=169,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("0x7")](){return[wx]}[Sa("0x1")](){const t=this.editor;t[Sa("0x4")][Sa("0x3")](Sa("0x5"))&&t[Sa("0x4")][Sa("0x0")](Sa("0x6"))[Sa("0x2")]("toggleTableCaption")}}const La=["get","*Format:* set order to reversed","selection","isFirstBlockOfListItem","reversed","_getSuggestionBlocks","getListTypeFromListStyleType","has","listReversed","document","type","model","length","format","ELEMENT_","bind","numbered","startIndex","toUpperCase","commandName","getSelectedBlocks","registerDescriptionCallback","*Format:* set order to regular","markMultiRangeBlockFormat","handleListStartCommand","TrackChangesEditing","editor","_getSuggestionBlocksForListStyle","DocumentListUtils","plugins","handleListStyleCommand","listStart","commandParams","expandListBlocksToCompleteList","_LIST_","DocumentListPropertiesEditing","replace","_getTranslationKeyForListStyle","*Format:* set start index to %0","listStyle","handleListReversedCommand","styles","push","DocumentListPropertiesUtils","listType","change","filter","getAttribute","enableCommand"];var Na,Ma;Na=La,Ma=164,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[wa("0x9")].plugins[wa("0x27")](wa("0x12")))return;const t=this[wa("0x9")].config.get("list.properties"),e=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0x8"));t[wa("0x18")]&&e[wa("0x1f")](wa("0x16"),this[wa("0xd")][wa("0x2f")](this)),t[wa("0x24")]&&e.enableCommand("listReversed",this.handleListReversedCommand.bind(this)),t[wa("0x0")]&&e[wa("0x1f")](wa("0xe"),this[wa("0x7")].bind(this)),e._descriptionFactory[wa("0x4")](this.handleDescriptions[wa("0x2f")](this))}[wa("0xd")](t,e={}){const n=this.editor.plugins[wa("0x20")](wa("0x8")),o=this[wa("0xa")]();this[wa("0x9")].model[wa("0x1c")]((()=>{n[wa("0x6")](o,{commandName:wa("0x16"),commandParams:[{type:e[wa("0x2a")]}],formatGroupId:wa("0x16")})}))}[wa("0x17")](t,e={}){const n=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0x8")),o=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0xb")),s=this[wa("0x25")]((t=>o.isListItemBlock(t)&&wa("0x30")===t[wa("0x1e")](wa("0x1b"))));null!==s&&this.editor.model[wa("0x1c")]((()=>{n[wa("0x6")](s,{commandName:wa("0x28"),commandParams:[{reversed:e.reversed}],formatGroupId:wa("0x28")})}))}[wa("0x7")](t,e={}){const n=this.editor[wa("0xc")][wa("0x20")](wa("0x8")),o=this.editor[wa("0xc")].get(wa("0xb")),s=this[wa("0x25")]((t=>o.isListItemBlock(t)&&wa("0x30")===t[wa("0x1e")]("listType")));null!==s&&this[wa("0x9")][wa("0x2b")][wa("0x1c")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0xe"),commandParams:[{startIndex:e[wa("0x0")]}],formatGroupId:wa("0xe")})}))}handleDescriptions(t){const e=this[wa("0x9")].locale,{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x2")]){case"listStyle":o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n.commandParams[0].type)))};break;case"listReversed":o=n[wa("0xf")][0][wa("0x24")]?wa("0x21"):wa("0x5"),s={type:"format",content:Yo(e,o)};break;case wa("0xe"):o=wa("0x15"),s={type:wa("0x2d"),content:Yo(e,o,n[wa("0xf")][0].startIndex)}}return s}_getSuggestionBlocksForListStyle(){const t=this[wa("0x9")][wa("0xc")][wa("0x20")](wa("0xb"));let e=Array.from(this.editor.model[wa("0x29")][wa("0x22")][wa("0x3")]());return e[wa("0x19")](...t[wa("0x10")](e)),e=[...new Set(e)],e}[wa("0x25")](t){const e=this.editor.plugins[wa("0x20")](wa("0xb"));let n=Array.from(this[wa("0x9")][wa("0x2b")].document.selection.getSelectedBlocks())[wa("0x1d")](t);if(!n[wa("0x2c")])return null;n=e[wa("0x10")](n);const o=[];for(const t of n)e[wa("0x23")](t)&&o.push(t);return o}[wa("0x14")](t){return wa("0x2e")+this[wa("0x9")].plugins[wa("0x20")](wa("0x1a"))[wa("0x26")](t)[wa("0x1")]()+wa("0x11")+t.toUpperCase()[wa("0x13")](/-/g,"_")}}const Fa=["getAttribute","findAncestor","tableCellBorderWidth","_suggestionFactory","nodeAfter","tableCellHeight","selection","editor","getSuggestions","registerCustomCallback","tableCellWidth","tableHeight","subType","tableCellProperties","start","getSelectionAffectedTableCells","pluginName","table","handleDiscardAction","tableBackgroundColor","removeAttribute","has","*Format:* change table cell properties","tableCellBorderColor","format","tableProperties","get","tableCellBackgroundColor","handleSuggestionDescription","document","enableCommand","tableBorderColor","tableCellPadding","locale","_handlePropertyChange","commandParams","getFirstPosition","change","_descriptionFactory","discard","tableCellHorizontalAlignment","tableAlignment","registerDescriptionCallback","batch","_getSuggestion","formatBlock","tableWidth","data","setAttribute","plugins","accept","TablePropertiesEditing","getSuggestionCallback","tableCellVerticalAlignment","tableCellBorderStyle","TableCellPropertiesEditing","TrackChangesEditing","model","*Format:* change table properties"];var Pa,Da;Pa=Fa,Da=325,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("0x36")]=[Ba("0x1"),"tableBorderStyle","tableBorderWidth",Ba("0xb"),Ba("0x10"),Ba("0x28"),Ba("0x30")],this.tableCellProperties=[Ba("0x34"),Ba("0x18"),Ba("0x1f"),Ba("0x2"),Ba("0x27"),Ba("0x22"),Ba("0x38"),Ba("0xa"),Ba("0x17")]}static get[Ba("0x2d")](){return"TrackChangesTableProperties"}afterInit(){const t=this[Ba("0x24")].plugins[Ba("0x37")](Ba("0x1a"));if(this[Ba("0x24")].plugins.has(Ba("0x15"))){for(const e of this[Ba("0x36")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x24")][Ba("0x1b")].document.selection[Ba("0x6")]()[Ba("0x1e")](Ba("0x2e"));this[Ba("0x4")](e,[o],this.tableProperties,"tableProperties",t,n)}));t._suggestionFactory[Ba("0x26")](Ba("0xf"),Ba("0x36"),Ba("0x14"),t[Ba("0x20")].getSuggestionCallback(Ba("0xf"),null,Ba("0x9"))),t[Ba("0x20")][Ba("0x26")](Ba("0xf"),Ba("0x36"),Ba("0x9"),((t,e)=>this[Ba("0x2f")](this.tableProperties,t,e))),t._suggestionFactory[Ba("0x26")](Ba("0xf"),Ba("0x36"),"join",(()=>!1))}if(this.editor[Ba("0x13")][Ba("0x32")](Ba("0x19"))){for(const e of this[Ba("0x2a")])t[Ba("0x0")](e,((t,n)=>{const o=this[Ba("0x24")].plugins[Ba("0x37")]("TableUtils")[Ba("0x2c")](this[Ba("0x24")].model[Ba("0x3a")][Ba("0x23")]);this[Ba("0x4")](e,o,this[Ba("0x2a")],Ba("0x2a"),t,n)}));t[Ba("0x20")].registerCustomCallback(Ba("0xf"),"tableCellProperties",Ba("0x14"),t._suggestionFactory[Ba("0x16")](Ba("0xf"),null,Ba("0x9"))),t._suggestionFactory[Ba("0x26")](Ba("0xf"),"tableCellProperties",Ba("0x9"),((t,e)=>this[Ba("0x2f")](this[Ba("0x2a")],t,e))),t[Ba("0x20")][Ba("0x26")]("formatBlock",Ba("0x2a"),"join",(()=>!1))}t[Ba("0x8")][Ba("0xc")]((t=>this[Ba("0x39")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Ba("0x24")][Ba("0x13")][Ba("0x37")]("TrackChangesEditing");this.editor.model.enqueueChange(r[Ba("0xd")],(()=>{for(const t of e)if(this[Ba("0xe")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1d")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[Ba("0x2f")](t,e,n){const o=e[0][Ba("0x2b")][Ba("0x21")],s=n[Ba("0x5")][0];this[Ba("0x24")][Ba("0x1b")][Ba("0x7")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x12")](n,s[n],o):e[Ba("0x31")](n,o)}))}[Ba("0x39")](t){if(t[Ba("0x11")])switch(t[Ba("0x29")]){case Ba("0x36"):return{type:Ba("0x35"),content:Yo(this[Ba("0x24")][Ba("0x3")],Ba("0x1c"))};case Ba("0x2a"):return{type:Ba("0x35"),content:Yo(this[Ba("0x24")].locale,Ba("0x33"))}}}[Ba("0xe")](t,e){const n=this.editor[Ba("0x13")][Ba("0x37")](Ba("0x1a"));for(const o of n[Ba("0x25")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===e&&n===t)return o}return null}}const Ua=["data","markerToHighlight","value","_isForcedDefaultExecutionBlock","listenTo","removeAttribute","getFirstRange","_setSuggestionRange","_checkSuggestionCorrectness","_handleNewSuggestionMarker","enableReadOnlyMode","createPositionBefore","marker-count","writer","acceptSuggestion","deleteContent","_createSuggestion","getAllAdjacentSuggestions","markDeletion","error-saving-suggestion-data-suggestion-discarded","isLimit","map","addMarker","getRange","discardSelectedSuggestions","markMultiRangeBlockFormat","_customCallbacks","selection","low","change:activeMarkers","createPositionAt","_setSuggestionData","_editor","discardAllSuggestions","splitPosition","insertion","name","split","_breakSuggestionMarker","editingDowncast","get","refresh","getCustomProperty","addRange","PENDING_ACTION_SUGGESTION","isAtEnd","adapter","author","fire","track-changes-user-not-found","differ","getAttribute","change","registerCustomCallback","containerElement","skipNestingCheck","formatGroupId","_enabledCommands","element","backward","addSuggestionData","filter","activeMarkers","editing","newRange","multi","pluginName","subType","_trackFormatChanges","isObject","getIntersection","ck-suggestion-marker--active","ck-suggestion-marker-formatBlock","createSelection","$graveyard","authoredAt","formatInline:discard","deletion:","upcast","push","markBlockFormat","batch","enqueueChange","toViewElement","enableCommand","track-changes-adapter-already-set","removeMarker:suggestion:formatBlock","markerReady","_updateSuggestionData","getNearestSelectionRange","addSuggestion","insertion:","addMarker:suggestion","never","delete","position","for","updateMarker","addComment","document","every","setAttribute","_model","formatBlock:join","trackChanges","_suggestionState","editor","size","createdAt","some","PendingActions","consumable","CommentsRepository","insertContent","insertion:chain","mapper","insertion:accept","length","getShiftedBy","ck-suggestion-marker-","after","isInContent","_descriptionFactory","removeMarkers","formatBlock:chain","isCollapsed","isInsideObject","ck-suggestion-marker","_onDiscard","Users","root","model","_addThreadToSuggestion","suggestionUnloaded","end","suggestionLoaded","showSuggestionHighlights","_rangeIsInLocalUserInsertion","values","from","isBefore","isBlock","getSuggestionCallback","_suggestions","always","track-changes-adapter-missing-getsuggestion","getFirstMarker","stopListening","addHighlight","requires","multipleBlocks","init","splice","isIntersectingWithRange","item","setTo","markInsertion","oldRange","nodeBefore","discardSuggestion","markerName","has","authorName","moveTargetPosition","getMarkers","getDifference","getSuggestions","consume","suggestion:","notReady","reconvertMarker","markers","addMarker:suggestion:formatBlock","$textProxy","getRanges","attributes","fromCharCode","_defaultCallbacks","type","add","markMultiRangeInsertion","hasComments","schema","options","updateSuggestion","containsRange","formatBlock:discard","plugins","join","move","isMultiRange","_saved","toJSON","ready","suggestionChanged","_getExternalAuthor","catch","detach","isNextTo","commentThread","update:suggestion","clear","insert","external:","isAfter","removeClass","before","group","registerPostFixer","dataDowncast","originalSuggestionId","addMarkerName","data-suggestion","formatBlock:","_joinWithAdjacentSuggestions","fetchCommentThread","_refreshSuggestionsChain","isSelectable","widget","sort","chain","accept","containsRangeInObject","substr","isRemovable","isAtStart","markerToData","forward","rootName","forceDefaultExecution","trackChangesCommand","dataReady","removeMarker","getUser","isEqual","createRange","@external","_suggestionFactory","elementToElement","getChanges","createPositionAfter","config","_joinSuggestions","default","commands","stop","suggestion","_mergeNestedSuggestions","getLastMatchingPosition","addClass","change:data","_findSuggestions","deletion:join","suggestion-type","deletion:discard","trackChanges.trackFormatChanges","discard","track-changes-command-not-found","removeComment","addCommentThread","conversion","formatInline:","isOwn","bindElementToMarker","previous","_getSuggestionData","formatInline:accept","getMultiRangeId","set","formatInline:chain","isTouching","start","_commentsRepository","_adapter","_registerDefaultCallbacks","high","removed","getAncestors","createElement","formatBlock","acceptSelectedSuggestions","open","locale","collaboration.channelId","commandName","change:_saved","unbindElementFromMarkerName","isUndo","deletion","acceptAllSuggestions","includes","define","track-changes-suggestion-data-mismatch","clone","formatInline","_getAuthorFromId","creator","next","howMany","execute","getWalker","lowest","getChangedMarkers","setSelection","_addSuggestionMarker","markMultiRangeDeletion","nodeAfter","parent","insertion:discard","remove","_removeSuggestion","getSuggestion","_splitMarkerName","trackChanges.mergeNestedSuggestions","rejected","formatInline:join","then","range","containsItem"];var Ga,Ha;Ga=Ua,Ha=127,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[za("0x16")](){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("0x102")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[za("0xd5")]((t=>String[za("0x31")](t))).join("")}super(t),this[za("0x8d")](za("0xfe"),[]),this.on(za("0xdd"),((e,n,o,s)=>{this[za("0x126")].change((()=>{for(const e of[...s,...o])this._model[za("0x2c")].has(e)&&t[za("0xff")][za("0x2b")](e)}))})),this[za("0x13a")]=new ss(this[za("0x12a")][za("0x4")].schema,this[za("0x12a")].locale),this[za("0x92")]=null,this._suggestionFactory=new Va(this.editor),this._suggestions=new Map,this[za("0x91")]=t[za("0x3c")][za("0xe8")](za("0x130")),this[za("0xf9")]=new Set,this[za("0x126")]=this[za("0x12a")][za("0x4")],this[za("0x129")]=new WeakMap,this[za("0xc3")]=!1,t[za("0x72")][za("0xa4")](za("0x80"),za("0x74")),this[za("0x104")]=t[za("0x72")][za("0xe8")](za("0x80")),t[za("0x72")][za("0xa4")](za("0xba"),!0),this._mergeNestedSuggestions=t[za("0x72")][za("0xe8")](za("0xba")),this[za("0x67")]=new u(t,this[za("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,52,54,48])}[za("0x18")](){const t=this[za("0x12a")];t[za("0x85")][za("0x120")](za("0xe7"))[za("0xc1")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[za("0xb9")](t[za("0x21")]),o=["ck-suggestion-marker","ck-suggestion-marker-"+n];let s=3e3;return this[za("0xfe")][za("0xa3")](t[za("0x21")])&&(o[za("0x10f")](za("0x107")),s=3010),za("0xa1")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x85")][za("0x120")](za("0x52"))[za("0x34")]((e=>{e.on(za("0x11c"),((e,n,o)=>{if(!o[za("0x38")].showSuggestionHighlights)return;const s=n[za("0x1b")];if(!s)return;const r=o.mapper[za("0x113")](s);t[za("0x4")][za("0x37")].isObject(s)&&r&&!r.getCustomProperty(za("0x5b"))&&r.is(za("0xf6"))&&(0,x.toWidget)(r,o[za("0xcd")])}),{priority:za("0x94")})})),t.conversion.for(za("0x52"))[za("0xc1")]({model:za("0x77"),view:(t,e)=>{if(!e.options[za("0x9")])return null;const{type:n}=this._splitMarkerName(t[za("0x21")]);return{classes:["ck-suggestion-marker",za("0x137")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x1b")])return;if(o[za("0x1b")].is(za("0xdb")))return void s[za("0x12f")][za("0x28")](o.item,n[za("0xe4")]);const r=s[za("0x133")][za("0x113")](o[za("0x1b")]);if(!o[za("0x1b")].is(za("0xfa"))||!t[za("0x4")].schema.isBlock(o.item)||r[za("0xea")](za("0x15")))return;const{id:i}=this[za("0xb9")](o[za("0x21")]);s.writer[za("0x7a")]([za("0x0"),"ck-suggestion-marker-formatBlock"],r),s[za("0xcd")][za("0x125")](za("0x55"),i,r),s[za("0x133")][za("0x88")](r,o.markerName),e&&(this[za("0xfe")][za("0xa3")](o[za("0x21")])?s.writer.addClass(za("0x107"),r):s[za("0xcd")][za("0x4e")]("ck-suggestion-marker--active",r));for(const e of t[za("0x4")].createRangeIn(o[za("0x1b")]).getItems())s[za("0x12f")][za("0x28")](e,n.name);s[za("0x12f")][za("0x28")](o[za("0x1b")],n[za("0xe4")])};t.conversion[za("0x120")]("dataDowncast").add((t=>{t.on(za("0x2d"),((t,e,o)=>{o[za("0x38")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[za("0x85")].for("dataDowncast")[za("0x63")]({model:za("0x77"),view:(t,e)=>e.options.showSuggestionHighlights?null:{group:za("0x77"),name:t[za("0x60")](11)}}),t[za("0x85")][za("0x120")](za("0x10e"))[za("0x6f")]({view:{name:za("0x77"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[za("0xf3")](za("0x7e"))+":"+t[za("0xf3")]("id");return t[za("0xf3")](za("0xcc"))&&(n+=":"+t[za("0xf3")](za("0xcc"))),e[za("0x97")]("$marker",{"data-name":n})}}),t[za("0x85")][za("0x120")](za("0x10e")).dataToMarker({view:za("0x77")}),t[za("0x85")][za("0x120")](za("0xe7"))[za("0x34")]((t=>{t.on(za("0x2d"),n(),{priority:za("0x94")})})),t[za("0x85")][za("0x120")](za("0xe7"))[za("0x34")]((t=>{t.on(za("0x116"),((t,e,n)=>{const o=n[za("0x133")].markerNameToElements(e[za("0x21")]);if(o)for(const t of o)t[za("0xea")](za("0x15"))||(n[za("0xcd")][za("0x4e")]([za("0x0"),za("0x108"),"ck-suggestion-marker--active"],t),n[za("0xcd")][za("0xc5")](za("0x55"),t),n[za("0x133")][za("0x9f")](t,e[za("0x21")]))}),{priority:"high"})})),t[za("0x4")][za("0x123")][za("0x51")]((e=>{let n=!1;const o=Array[za("0xc")](t[za("0x4")][za("0x123")][za("0xf2")][za("0xaf")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0xb9")](x);if(za("0x77")!==o)continue;const d=this[za("0x10")][za("0xe8")](l);if(null!=a[za("0x100")])if(za("0xa7")==c&&(n=n||Xa(a[za("0x100")],x,e,t[za("0x4")][za("0x37")])),a[za("0x100")][za("0x13d")]||za("0x10a")==a[za("0x100")].root[za("0x65")]||"formatBlock"==c&&!Ja(a[za("0x100")])||za("0xa1")==c&&(qa(i=a.newRange)||(r=i).start[za("0xb4")]==r[za("0x7")][za("0x1f")]&&r.start[za("0xed")]))e[za("0x69")](x),n=!0;else{if(!d||!d[za("0x139")])continue;s.add(d)}}var r,i;return s.size>0&&(n=!!this[za("0x57")](s)||n),n})),t[za("0x4")][za("0x123")][za("0x51")]((e=>{let n=!1;for(const o of t[za("0x4")][za("0x123")][za("0xf2")][za("0x70")]()){if("insert"!=o.type)continue;const s=o[za("0x11f")].getShiftedBy(o[za("0x135")]);if(s[za("0xed")])for(const r of this._suggestions.values()){if(r[za("0x3f")]||!r[za("0x139")])continue;if(za("0x98")!=r[za("0x33")])continue;const i=r[za("0xc6")]();if(i[za("0x90")][za("0xb4")]!=i[za("0x7")][za("0xb4")]&&i.end[za("0x6b")](o[za("0x11f")])){const o=t.model.createRange(i.start,s);e[za("0x121")](r[za("0x13")](),{range:o}),n=!0}}}return n})),t[za("0x4")].markers.on(za("0x49"),((t,e,n)=>{if(null==n){const{id:t}=this[za("0xb9")](e[za("0xe4")]),n=this._suggestions[za("0xe8")](t);n&&n[za("0x54")](e[za("0xe4")])}})),t[za("0x4")][za("0x123")].on(za("0x7b"),(()=>{const e=Array[za("0xc")](t.model[za("0x123")][za("0xf2")][za("0xaf")]())[za("0xfd")]((t=>"suggestion"===this[za("0xb9")](t[za("0xe4")])[za("0x50")]));if(0===e.length)return;e[za("0x5c")](((t,e)=>{const n=t.data[za("0x1e")],o=e.data[za("0x1e")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x90")][za("0xd")](o[za("0x90")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xb9")](t);if(null===s[za("0x1e")]){const e=this._handleNewSuggestionMarker(t);o[za("0x34")](e)}else{const t=this[za("0x10")][za("0xe8")](e);null!==s[za("0x100")]||t[za("0x139")]?(n[za("0x34")](t.head),o.add(t)):this[za("0xb7")](t)}}o[za("0x12b")]>0&&this[za("0x59")](o);for(const t of n)this[za("0xf0")](za("0x43"),t)})),t[za("0x4")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x10")].size)return;if(!o.isDocumentOperation)return;if(o[za("0x111")][za("0xa0")]||!o[za("0x111")].isLocal)return;let s,r;switch(o.type){case za("0x4b"):s=t[za("0x4")].createPositionAt(o[za("0x11f")]),r=s[za("0x136")](o[za("0xab")]);break;case za("0xe5"):s=t[za("0x4")][za("0xde")](o[za("0xe2")]),r=t[za("0x4")].createPositionAt(o[za("0x24")]);break;case za("0x3e"):s=t[za("0x4")][za("0xde")](o.targetPosition),r=s[za("0x136")](o[za("0xab")]);break;default:return}const i=t[za("0x4")][za("0x6c")](s,r);t.model[za("0xf4")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[za("0x3f")])continue;if("formatInline"==t[za("0x33")])continue;const n=t[za("0xc0")]&&t[za("0xc0")][za("0x17")];("formatBlock"!=t[za("0x33")]||"split"==o[za("0x33")]&&!n)&&(e[za("0x5f")]||za("0xe3")==t[za("0x33")]&&e[za("0x87")]||t[za("0xc6")]().containsRange(i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:za("0xae")}),t[za("0x4")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x66")])return;if(this[za("0xc3")])return;if(!this[za("0x67")].value)return;if(o[za("0x13d")])return;const r=t[za("0x4")][za("0x37")],{start:i,end:x}=o[za("0xc6")](),a=i[za("0xb3")]&&r[za("0xd4")](i.nodeAfter)?null:r[za("0x119")](i,za("0x64")),c=x[za("0x1f")]&&r.isLimit(x[za("0x1f")])?null:r[za("0x119")](x,za("0xfb")),l=t.model[za("0x6c")](a?a[za("0x90")]:i,c?c[za("0x7")]:x);t[za("0x4")][za("0xf4")]((e=>{this[za("0xd2")](l);const n=t[za("0x4")][za("0x37")][za("0x119")](l[za("0x90")]);o.is("documentSelection")?e[za("0xb0")](n):o[za("0x1c")](n)})),e[za("0x76")]()}),{priority:e.priorities.normal+10}),t[za("0x4")].on(za("0x131"),((e,n)=>{const o=n[n[za("0x135")]-1];o&&o[za("0x66")]||this[za("0xc3")]||this[za("0x67")][za("0xc2")]&&(t[za("0x4")][za("0xf4")]((()=>{let o=t[za("0x4")][za("0x131")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[za("0xa6")]();const s=o[za("0x7")].nodeBefore,r=t.model[za("0x37")];s&&r[za("0xe")](s)&&!r.isObject(s)&&(o=t[za("0x4")][za("0x6c")](o[za("0x90")],t[za("0x4")][za("0xde")](s,za("0x7")))),this[za("0x1d")](o)})),e[za("0x76")]())}),{priority:za("0x94")}),this[za("0x12a")][za("0x75")][za("0x34")](za("0x128"),this[za("0x67")]),this.enableCommand("trackChanges");const o=new p(t,this._suggestions);t[za("0x75")].add(za("0xce"),o),this[za("0x114")](za("0xce"));const s=new C(t,this._suggestions);t[za("0x75")][za("0x34")](za("0x20"),s),this[za("0x114")](za("0x20")),t.commands[za("0x34")](za("0xa2"),new F(t,o,this[za("0x10")])),this[za("0x114")](za("0xa2")),t[za("0x75")][za("0x34")](za("0xe1"),new F(t,s,this[za("0x10")])),this[za("0x114")](za("0xe1")),t[za("0x75")][za("0x34")](za("0x99"),new U(t,o,this[za("0x10")])),this[za("0x114")](za("0x99")),t[za("0x75")].add(za("0xd8"),new U(t,s,this[za("0x10")])),this.enableCommand("discardSelectedSuggestions");const r=t[za("0x3c")][za("0xe8")](za("0x130"));this.listenTo(r,za("0x122"),((t,{threadId:e})=>{const n=this[za("0x10")][za("0xe8")](e);n&&n[za("0x48")]&&1===n[za("0x48")][za("0x135")]&&this[za("0x118")](e,{hasComments:!0})}),{priority:"low"}),this[za("0xc4")](r,za("0x83"),((t,{threadId:e})=>{const n=this[za("0x10")].get(e);n&&n.commentThread&&!n[za("0x48")][za("0x135")]&&this[za("0x118")](e,{hasComments:!1})}),{priority:za("0xdc")})}set adapter(t){if(this[za("0x92")])throw new e.CKEditorError(za("0x115"),this);this[za("0x92")]=t}get[za("0xee")](){return this[za("0x92")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0xb")]())t&&!e[za("0x139")]||n.push(e);return e?n.map((t=>t[za("0x41")]())):n}[za("0xb8")](t){const n=this._suggestions[za("0xe8")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this._suggestions.has(t)}[za("0xfc")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x33")][za("0xe5")](":"),i=this[za("0x10")].get(n)||this[za("0xd0")](s,r,n,e,o);if(this[za("0x5")](i),this._checkSuggestionCorrectness(i,s,r||null,e),i[za("0x12c")]=t[za("0x12c")],o&&o[za("0x6d")]){const t=o[za("0x6d")],e=this[za("0x44")](t[za("0x23")]);i[za("0x10b")]=t.createdAt,i[za("0xef")]=e,i.isExternal=!0}else i.authoredAt=t[za("0x12c")];switch(t[za("0xc0")]&&(i[za("0xc0")]=t[za("0xc0")]),t[za("0x30")]&&(i.attributes=t[za("0x30")]),this[za("0x92")]&&this[za("0x92")][za("0x11a")]||(i[za("0x40")]=!0),this[za("0x129")][za("0xe8")](i)){case"notReady":this[za("0x129")][za("0x8d")](i,za("0x68"));break;case za("0x117"):i[za("0x139")]?(this[za("0x129")][za("0x8d")](i,"ready"),this[za("0xf0")](za("0x8"),i)):this[za("0x129")][za("0x8d")](i,za("0x95"))}return i}[za("0xce")](t){this[za("0x66")]((()=>{this[za("0x12a")][za("0x4")][za("0xf4")]((()=>{for(const e of t[za("0xd1")]())e.accept()}))}))}[za("0x20")](t){this.forceDefaultExecution((()=>{this[za("0x12a")][za("0x4")][za("0xf4")]((()=>{for(const e of t[za("0xd1")]())e[za("0x81")]()}))}))}[za("0x114")](t,n){const o=this.editor.commands[za("0xe8")](t);if(!o)throw new e.CKEditorError(za("0x82"),this,{commandName:t});this[za("0xf9")][za("0x34")](o),n&&o.on(za("0xac"),((t,e)=>{this[za("0x67")].value&&(this._isForcedDefaultExecutionBlock||e.length>0&&e[e[za("0x135")]-1]&&e[e[za("0x135")]-1].forceDefaultExecution||(n(((...t)=>o[za("0xac")](...t,{forceDefaultExecution:!0})),...e),t[za("0x76")]()))}),{priority:za("0x94")})}[za("0x66")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[za("0xc3")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0xc3")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}markInsertion(t,n=null,o={}){if(t[za("0x13d")])return null;const s=this[za("0x12a")].plugins[za("0xe8")](za("0x2")).me;for(const{suggestion:e,meta:o}of this[za("0x7c")](t,za("0xe3")))if(o[za("0x87")]){if(!o[za("0x47")]){if(!this[za("0x78")]&&o[za("0x5f")])continue;return e}if(n==e.subType){const n=e[za("0xc6")]();return n.start[za("0x6b")](t[za("0x7")])?this._setSuggestionRange(e,this[za("0x126")][za("0x6c")](t[za("0x90")],n.end)):this[za("0xc7")](e,this[za("0x126")][za("0x6c")](n[za("0x90")],t[za("0x7")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x11b")+n:za("0xe3"),a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xb1")](x,r,i,t),a}[za("0x35")](t,n=za("0x101"),o={}){const s=this[za("0x12a")][za("0x3c")][za("0xe8")]("Users").me,r=this[za("0x6e")].getSuggestionCallback(za("0xe3"),n,za("0x3d"));for(const e of this[za("0x27")]())if(e[za("0xef")].id==s.id&&za("0xe3")==e[za("0x33")]&&e[za("0x103")]==n&&(r(e[za("0x2f")](),t)||r(t,e[za("0x2f")]()))){for(const n of t)e[za("0xeb")](n);return e}if(this[za("0x78")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x7c")](e,"insertion")){if(!o.isOwn)continue;let e=!0;for(const o of n[za("0x2f")]())for(const n of t)if(!o[za("0x3a")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x11b")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0xb1")](a,i,x,e,Zo.getMultiRangeId());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||$a(n),t[za("0x13d")])return null;if(za("0x11d")===this._trackFormatChanges){const e=this[za("0x6e")][za("0xf")](za("0xa7"),o,za("0x5e"));return this[za("0x66")]((()=>e([t],n,s))),null}const r=this[za("0x12a")][za("0x3c")].get(za("0x2")).me,i=[];if("always"!==this[za("0x104")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0xe3")))n[za("0x87")]&&!n[za("0x13e")]&&i[za("0x10f")](...e[za("0x2f")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x106")](o);e&&n[za("0x10f")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x135")];){const o=n[e][za("0x26")](t);n.splice(e,1,...o),e+=o[za("0x135")]}}return n}(t,i);x.length&&this[za("0x126")][za("0xf4")]((()=>{for(const t of x){const e=this[za("0x6e")][za("0xf")]("formatInline",o,za("0x5e"));this[za("0x66")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x90")],a=t[za("0x7")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,"formatInline")){if(!n[za("0x87")])continue;if(e[za("0x103")]!=o)continue;const s=e[za("0xc6")]();if(s.containsRange(t,!0))return null;x=x[za("0xd")](s.start)?x:s.start,a=a[za("0x4d")](s[za("0x7")])?a:s[za("0x7")],i?s[za("0x90")][za("0xd")](i.getFirstRange()[za("0x90")])?(i[za("0x13b")](),i=e):e[za("0x13b")]():i=e}const c=this[za("0x126")].createRange(x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xdf")]({id:t,type:za("0x86")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(za("0x86")+o,t,i,c)}}return null}[za("0x110")](t,n,o=[],s=null,r={}){n[za("0xf8")]||(n[za("0xf8")]=n[za("0x9d")]),n[za("0x17")]=t.is(za("0xbe")),s=s||$a(n);const i=o[za("0xd5")]((t=>Qa(t,this._model))),x=t.is(za("0xbe"))?t:Qa(t,this[za("0x126")]);if(za("0x11d")===this[za("0x104")]){const t=this[za("0x6e")][za("0xf")](za("0x98"),s,za("0x5e"));return this[za("0x66")]((()=>t([x],n,r))),null}i[za("0x10f")](x);let a=!0;for(const t of i)if(!this[za("0xa")](t)){a=!1;break}if(a&&"always"!==this._trackFormatChanges){const t=this[za("0x6e")][za("0xf")](za("0x98"),s,za("0x5e"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x.start,d=x[za("0x7")];for(const{suggestion:t,meta:e}of this[za("0x7c")](x,za("0x98"))){if(!e.isOwn||e[za("0x47")]||e[za("0x5f")]||e[za("0x13e")])continue;if(t.data[za("0xf8")]!=n[za("0xf8")])continue;const o=t[za("0xc6")]();if(t.subType==s){if(o[za("0x3a")](x,!0))return null;l=l[za("0xd")](o[za("0x90")])?l:o[za("0x90")],d=d[za("0x4d")](o[za("0x7")])?d:o.end,c?o[za("0x90")][za("0xd")](c[za("0xc6")]().start)?(c[za("0x13b")](),c=t):t[za("0x13b")]():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const u=this[za("0x12a")][za("0x3c")].get("Users").me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[za("0x126")][za("0x6c")](l,d)),c;{const t=this[za("0xdf")]({id:g,type:za("0x56")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(za("0x56")+s,g,m,this[za("0x126")][za("0x6c")](l,d)),t}}[za("0xd9")](t,n,o=[],s=null,r={}){n.formatGroupId||(n.formatGroupId=n[za("0x9d")]);const i=t[0];n[za("0x17")]=i.is(za("0xbe")),s=s||$a(n);const x=o[za("0xd5")]((t=>Qa(t,this[za("0x126")]))),a=i.is(za("0xbe"))?t:t.map((t=>Qa(t,this._model)));if(za("0x11d")===this[za("0x104")]){const t=this[za("0x6e")][za("0xf")]("formatBlock",s,za("0x5e"));return this[za("0x66")]((()=>t(a,n,r))),null}x[za("0x10f")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&za("0x11")!==this[za("0x104")]){const t=this[za("0x6e")][za("0xf")](za("0x98"),s,za("0x5e"));return this[za("0x66")]((()=>t(a,n,r))),null}const l=this[za("0x12a")].plugins.get(za("0x2")).me;for(const t of this[za("0x27")]()){if(t[za("0xef")].id!=l.id)continue;if(za("0x98")!=t[za("0x33")]||t[za("0xc0")][za("0xf8")]!=n[za("0xf8")])continue;const e=t[za("0x103")]==s;for(let n=0;n<a[za("0x135")];n++){const o=a[n];for(const s of t[za("0x25")]()){const r=s[za("0xd7")]();if(o[za("0x6b")](r)){e?(a[za("0x19")](n,1),n--):t[za("0x69")](s[za("0xe4")]);break}}}}if(0==a[za("0x135")])return null;const d=this[za("0x6e")][za("0xf")](za("0x98"),s,"join");for(const t of this.getSuggestions())if(t[za("0xef")].id==l.id&&"formatBlock"==t[za("0x33")]&&t.data[za("0xf8")]==n[za("0xf8")]&&t[za("0x103")]==s&&(d(t.getRanges(),a)||d(a,t.getRanges()))){for(const e of a)t[za("0xeb")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x56")+s,f=this[za("0xdf")]({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("0x8c")]());return f}[za("0xd2")](t,n=null,o={}){if(t[za("0x13d")])return null;const s=this[za("0x12a")][za("0x3c")].get(za("0x2")).me,r=new i.LiveRange(t.start,t[za("0x7")]);for(const{suggestion:t,meta:e}of this[za("0x7c")](r,"insertion"))if(e[za("0x87")]&&!e[za("0x47")])if(t[za("0x3f")]){const e=t[za("0x2f")]().filter((t=>"$graveyard"!=t.root[za("0x65")]));if(e[za("0x124")]((t=>r[za("0x3a")](t,!0)))&&t[za("0x81")](),e[za("0x12d")]((t=>t[za("0x3a")](r,!0)))){const t=this[za("0x6e")][za("0xf")](za("0xa1"),n,za("0x5e"));return this[za("0x66")]((()=>t([r],null,o))),null}}else{const e=r[za("0x106")](t.getFirstRange());null!==e&&t[za("0x1")]([e],null,o)}if(r[za("0x46")](),r[za("0x13d")]||"$graveyard"==r[za("0x3")][za("0x65")])return null;let x=null,a=r[za("0x90")],c=r.end;for(const{suggestion:t,meta:e}of this[za("0x7c")](r,za("0xa1")))if(e[za("0x87")])if(t[za("0x3f")]&&this[za("0x78")]){let e=!0;for(const n of t[za("0x2f")]()){if(n.containsRange(r,!0))return t;r[za("0x3a")](n)||(e=!1)}e&&t[za("0x81")]()}else{const n=t[za("0xc6")]();if(n[za("0x3a")](r,!0)){if(!this[za("0x78")]&&e[za("0x5f")])continue;return t}a=a.isBefore(n[za("0x90")])?a:n.start,c=c[za("0x4d")](n[za("0x7")])?c:n[za("0x7")],x?n[za("0x90")].isBefore(x[za("0xc6")]()[za("0x90")])?(x[za("0x13b")](),x=t):t[za("0x13b")]():x=t}if(x)return this[za("0xc7")](x,this[za("0x126")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this[za("0x126")][za("0x6c")](a,c),i=s.id,x=n?za("0x10d")+n:"deletion",l=this[za("0xdf")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xb1")](x,t,i,r),l}}[za("0xb2")](t,n=za("0x101"),o={}){const s=this[za("0x12a")][za("0x3c")].get(za("0x2")).me,r=t.map((t=>new i.LiveRange(t[za("0x90")],t[za("0x7")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x7c")](t,"insertion"))n[za("0x87")]&&!n[za("0x47")]&&x[za("0x34")](e);for(const e of x)if(e.isMultiRange){const s=e[za("0x2f")]();if((!e[za("0x30")]||!e[za("0x30")][za("0xf7")])&&s.every((t=>r[za("0x12d")]((e=>e[za("0x3a")](t,!0)))))&&e[za("0x81")](),r[za("0x124")]((t=>s[za("0x12d")]((e=>e[za("0x3a")](t,!0)))))){const e=this[za("0x6e")][za("0xf")](za("0xa1"),n,"accept");return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0xc6")]();if(r[za("0x12d")]((e=>e[za("0x3a")](t,!0)))&&e.discard(),r[za("0x124")]((e=>t[za("0x3a")](e,!0)))){const t=this[za("0x6e")][za("0xf")](za("0xa1"),n,za("0x5e"));return this[za("0x66")]((()=>t(r,null,o))),null}}const a=this[za("0x6e")][za("0xf")]("deletion",n,za("0x3d"));let c=null;for(const t of this.getSuggestions())if(t[za("0xef")].id==s.id&&t[za("0x139")]&&"deletion"==t[za("0x33")]&&t[za("0x103")]==n&&(a(t.getRanges(),r)||a(r,t[za("0x2f")]())))if(c){if(t[za("0x48")]&&t.commentThread.length)continue;for(const e of t.getRanges())c[za("0x1a")](e)||c[za("0xeb")](e);t[za("0x13b")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[za("0xeb")](e)}if(c)return c;x[za("0x4a")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x7c")](t,"deletion"))n[za("0x87")]&&x[za("0x34")](e);for(const t of x){const e=t.getRanges();if((!o||!o[za("0xf7")])&&r[za("0x124")]((t=>e[za("0x12d")]((e=>e.containsRange(t,!0))))))return t;(!t[za("0x30")]||!t.attributes[za("0xf7")])&&e[za("0x124")]((t=>r[za("0x12d")]((e=>e.containsRange(t,!0)))))&&t[za("0x81")]()}const l=(0,e.uid)(),d=s.id,u=za("0x10d")+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0x46")](),t[za("0x13d")]||za("0x10a")==t[za("0x3")][za("0x65")]||this._addSuggestionMarker(u,l,d,t,Zo[za("0x8c")]());return g}_setSuggestionRange(t,e){const n=t.getFirstMarker();this[za("0x126")][za("0xf4")]((t=>{t[za("0x121")](n,{range:e})}))}[za("0x5")](t){const e=t.id,n=this[za("0x12a")].config.get(za("0x9c"));this[za("0x91")].hasCommentThread(e)||this[za("0x91")][za("0x84")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x91")].getCommentThread(e);o.unbind(za("0x61")),o[za("0x61")]=!1,t[za("0x48")]=o}[za("0xc8")](t,n,o,s){if(t[za("0x33")]!=n||t[za("0x103")]!=o||t[za("0xa9")].id!=s)throw this.editor[za("0xca")](za("0xa5")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}_cutOutSuggestionMarker(t,n){const o=t[za("0xc6")]();if(n[za("0x6b")](o))t.removeMarkers();else if(o[za("0x3a")](n)){const s=this[za("0x126")][za("0xde")](n[za("0x90")][za("0x1f")],"end");this[za("0xc7")](t,this._model.createRange(o[za("0x90")],s));const r=(0,e.uid)(),i=t[za("0xa9")].id,x=t[za("0x33")]+":"+t[za("0x103")];this[za("0xdf")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x30")]});const a=this[za("0x126")][za("0xde")](n[za("0x7")][za("0xb4")],za("0x138")),c=this[za("0x126")][za("0x6c")](a,o[za("0x7")]);this[za("0xb1")](x,r,i,c)}else if(o.containsPosition(n[za("0x90")])){const e=this[za("0x126")][za("0xde")](n[za("0x90")][za("0x1f")],za("0x7"));this[za("0xc7")](t,this[za("0x126")][za("0x6c")](o[za("0x90")],e))}else{const e=this._model.createPositionAt(n[za("0x7")][za("0xb4")],za("0x138"));this[za("0xc7")](t,this._model.createRange(e,o.end))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0x7c")](t,za("0xe3"))){if(!n[za("0x87")])continue;const o=e.getRanges();for(const e of o)if(!t[za("0x26")](e)[za("0x135")])return!0}return!1}[za("0xa8")](t){const n=this[za("0x12a")][za("0x3c")][za("0xe8")](za("0x2"))[za("0x6a")](t);if(!n)throw new e.CKEditorError(za("0xf1"),this);return n}[za("0x44")](t){const e=this[za("0x12a")][za("0x3c")][za("0xe8")](za("0x2")),n=(0,r.hashObject)(za("0x4c")+t);return e[za("0x6a")](n)||e.addUser({id:n,name:t})}[za("0xd0")](t,e,n,o,s){const r=this[za("0xa8")](o),i=this[za("0x6e")].buildSuggestion(t,e,n,r,s,(t=>this[za("0x118")](n,{attributes:t})));return this[za("0xc4")](i,za("0x5e"),(()=>{this[za("0x118")](n,{state:"accepted"})}),{priority:za("0x94")}),this[za("0xc4")](i,za("0x81"),(()=>{this[za("0x118")](n,{state:za("0xbb")})}),{priority:za("0x94")}),this[za("0x10")].set(n,i),this[za("0x129")].set(i,za("0x2a")),i}[za("0xb9")](t){const e=t[za("0xe5")](":");return{group:e[0],type:e[1],subType:e[za("0x135")]>=5?e[2]:null,id:e[za("0x135")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0x135")]?e[5]:null}}[za("0xe6")](t,n,o){const s=t[za("0xc6")](),r=s[za("0x90")],i=s[za("0x7")];this._setSuggestionRange(t,this[za("0x126")].createRange(r,n));const x=(0,e.uid)(),a=t[za("0xa9")].id,c=t.type+(t.subType?":"+t[za("0x103")]:"");this[za("0xdf")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x30")],data:t[za("0xc0")]}),"formatBlock"==t[za("0x33")]&&(o=this[za("0x126")][za("0xcb")](o[za("0xb4")])),this[za("0xb1")](c,x,a,this._model[za("0x6c")](o,i))}_findSuggestions(t,e=null){const n=[],o=this[za("0x126")][za("0x37")],s=this[za("0x12a")].plugins[za("0xe8")](za("0x2")).me;for(const r of this[za("0x27")]())if(r[za("0x139")]&&(!e||r[za("0x33")]==e))for(const e of r.getRanges()){const i=t[za("0x90")][za("0x6b")](e[za("0x7")])||t.end[za("0x6b")](e.start);if(i||t[za("0x106")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0x90")],t),a=e.containsRange(t)&&Ka(o,t[za("0x90")],e);n.push({suggestion:r,meta:{isOwn:s==r[za("0xef")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}_addSuggestionMarker(t,e,n,o,s){this[za("0x126")][za("0xf4")]((r=>{let i=za("0x29")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xd6")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0xb7")](t){const e=t[za("0x89")],n=t[za("0xaa")];t[za("0x89")]=null,null!=e&&(e[za("0xaa")]=null),t.next=null,null!=n&&(n[za("0x89")]=null),za("0x42")==this[za("0x129")].get(t)&&(this[za("0x129")][za("0x8d")](t,za("0x95")),this[za("0xf0")](za("0x6"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[za("0xfc")](t);if(this[za("0x92")]&&this[za("0x92")][za("0x11a")]){const s=this[za("0x12a")][za("0x3c")][za("0xe8")](za("0x12e")),r=o[za("0x36")],i=o[za("0x103")]?o.type+":"+o.subType:o[za("0x33")],x=this[za("0x12a")][za("0x9b")],a=s.add(Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t[za("0xc0")]||null,originalSuggestionId:t[za("0x53")]||null,attributes:o[za("0x30")]};this[za("0x92")][za("0x11a")](c).then((t=>{o[za("0x40")]=!0,s[za("0xb6")](a),t&&t[za("0x12c")]&&(this[za("0x10")][za("0xe8")](n).createdAt=t.createdAt)}))[za("0x45")]((t=>{throw(0,e.logWarning)(za("0xd3")),this.editor.model[za("0x112")]({isUndoable:!1},(()=>{o[za("0x81")]()})),o[za("0x14")](),this[za("0x10")][za("0x11e")](o.id),this._suggestionState[za("0x11e")](o),t}))}return o}[za("0x118")](t,e){const n=this[za("0x12a")].plugins[za("0xe8")](za("0x12e")),o=this[za("0xb8")](t);if(this._adapter&&this._adapter[za("0x39")])if(o[za("0x40")]){const o=n.add(Yo(this[za("0x12a")].locale,za("0xec")));this[za("0x92")][za("0x39")](t,e)[za("0xbd")]((()=>{n.remove(o)}))}else o.on(za("0x9e"),(()=>{this._updateSuggestionData(t,e)}))}[za("0x8a")](t){if(!this[za("0x92")]||!this._adapter[za("0xb8")])throw new e.CKEditorError(za("0x12"),this);return this._adapter[za("0xb8")](t)}[za("0xc9")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xb9")](t),r=this[za("0x10")][za("0xe8")](e)||this[za("0xd0")](n,o,e,s,{});switch(this[za("0xc8")](r,n,o,s),this[za("0x129")][za("0xe8")](r)){case"notReady":this[za("0x8a")](e).then((t=>{let n=Promise.resolve();t.hasComments&&(n=this[za("0x91")][za("0x58")]({channelId:this[za("0x12a")][za("0x72")][za("0xe8")](za("0x9c")),threadId:e})),n.then((()=>{this.addSuggestionData(t)[za("0x40")]=!0}))})),this[za("0x129")][za("0x8d")](r,"markerReady");break;case"removed":this[za("0x118")](e,{state:za("0x9a")});case za("0x68"):this[za("0x129")][za("0x8d")](r,za("0x42")),this.fire(za("0x8"),r);break;case za("0x42"):this.fire("suggestionChanged",r)}return r[za("0x54")](t),r}[za("0x59")](t){const e=Array[za("0xc")](t)[za("0xfd")]((t=>!t[za("0x3f")])),n=this[za("0x27")]({skipNotAttached:!0})[za("0xfd")]((t=>!t[za("0x3f")])),o=n[za("0xfd")]((e=>!t[za("0x22")](e))),s=new Map(n.map((t=>[t,this[za("0x6e")][za("0xf")](t.type,t[za("0x103")],za("0x5d"))]))),r=new Map(n.map((t=>[t,t[za("0xc6")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x135")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x135")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x135")];t++){const n=e[t];!x[za("0x22")](n)&&n.previous&&(n[za("0x89")][za("0xaa")]===n&&(n[za("0x89")][za("0xaa")]=null),n[za("0x89")]=null),!i.has(n)&&n.next&&(n[za("0xaa")].previous===n&&(n[za("0xaa")][za("0x89")]=null),n[za("0xaa")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0xaa")]=n[1],n[1][za("0x89")]=n[0],i[za("0x34")](n[0]),x[za("0x34")](n[1]))}}function c(t,e){if(t[za("0xef")].id!==e[za("0xef")].id)return null;const n=s.get(t)(t,e,r[za("0xe8")](t),r[za("0xe8")](e));return n&&s[za("0xe8")](e)(t,e,r[za("0xe8")](t),r.get(e))?n[1][za("0x48")]&&n[1][za("0x48")][za("0x135")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[za("0xc")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0xfd")]((e=>!t[za("0x22")](e))),s=new Map(e[za("0xd5")]((t=>[t,this._suggestionFactory[za("0xf")](t[za("0x33")],t[za("0x103")],za("0x3d"))]))),r=new Map(n[za("0xd5")]((t=>[t,t.getRanges()])));for(let t=0;t<e[za("0x135")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x135")];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[za("0x33")]!==e[za("0x33")]||o[za("0xef")].id!==e[za("0xef")].id||o[za("0x103")]!==e.subType)continue;const x=s[za("0xe8")](e),a=r.get(e),c=r[za("0xe8")](o),l=e[za("0x48")]&&e.commentThread[za("0x135")],d=o.commentThread&&o.commentThread[za("0x135")];if(!l&&x(c,a))return t[za("0x73")](o,e),r[za("0x11e")](e),!0;if(!d&&x(a,c))return t._joinSuggestions(e,o),r[za("0x11e")](o),!0}return!1}}[za("0x73")](t,e){if(t[za("0x3f")])for(const n of e[za("0x2f")]())t[za("0xeb")](n);else{const n=e[za("0xc6")]()[za("0x7")];this[za("0xc7")](t,this[za("0x126")][za("0x6c")](t[za("0xc6")]()[za("0x90")],n))}e.removeMarkers()}}class Va{constructor(t){this[za("0xe0")]=t,this[za("0x126")]=t[za("0x4")],this[za("0xda")]=new Map,this._defaultCallbacks=new Map,this[za("0x93")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0xf")](t,e,za("0x5e"))(...n),onDiscard:(...n)=>this[za("0xf")](t,e,"discard")(...n)})}[za("0xf5")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0xda")][za("0x8d")](s,o)}[za("0xf")](t,e,n){const o=t+":"+e+":"+n;return this[za("0xda")][za("0xe8")](o)||this[za("0x32")][za("0xe8")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>{},e=t=>{t[za("0x5c")](((t,e)=>t[za("0x90")].isBefore(e[za("0x90")])?1:-1)),this._model[za("0xf4")]((e=>{for(const n of t){let t;t=n[za("0x7")][za("0xed")]&&n[za("0x7")][za("0xb4")]==n[za("0x90")][za("0xb3")]?e[za("0x109")](n.start[za("0xb3")],"on"):e.createSelection(n),this[za("0x126")][za("0xcf")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x126")][za("0xf4")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xd5")]((t=>(qa(t)&&(t=this[za("0x126")][za("0x6c")](t[za("0x7")])),t)))[za("0xfd")]((t=>"$graveyard"!==t.root.rootName));if(r[za("0x135")]<1)return;const x=Array[za("0xc")](this[za("0x126")][za("0x123")].selection[za("0x2f")]())[za("0xd5")]((t=>i.LiveRange.fromRange(t)));n[za("0xb0")](r);for(const t of this[za("0xe0")].commands[za("0x75")]())t[za("0xe9")]();s[za("0x10f")]({forceDefaultExecution:!0}),this._editor[za("0xac")](o,...s);const a=x[za("0xfd")]((t=>za("0x10a")!=t.root[za("0x65")]));a[za("0x135")]>0&&n.setSelection(a);for(const t of x)t[za("0x46")]()}))},o=(t,e)=>1==t[za("0x135")]&&1==e[za("0x135")]&&t[0][za("0x7")][za("0x6b")](e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this._model)?[t,e]:Za(e,t,o,n,this[za("0x126")])?[e,t]:null;this[za("0x32")][za("0x8d")](za("0x134"),t),this[za("0x32")].set(za("0xb5"),e),this[za("0x32")][za("0x8d")]("insertion:join",o),this[za("0x32")][za("0x8d")](za("0x132"),s),this[za("0x32")].set("deletion:accept",e),this[za("0x32")][za("0x8d")](za("0x7f"),t),this[za("0x32")][za("0x8d")](za("0x7d"),o),this[za("0x32")][za("0x8d")]("deletion:chain",s),this[za("0x32")][za("0x8d")](za("0x8b"),n),this[za("0x32")].set(za("0x10c"),t),this[za("0x32")][za("0x8d")](za("0xbc"),o),this[za("0x32")][za("0x8d")](za("0x8e"),t),this._defaultCallbacks[za("0x8d")]("formatBlock:accept",n),this[za("0x32")][za("0x8d")](za("0x3b"),t),this[za("0x32")][za("0x8d")](za("0x127"),o),this[za("0x32")][za("0x8d")](za("0x13c"),t)}}function Ka(t,e,n){for(const o of e[za("0xb4")][za("0x96")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x3")]==o)return!1;if(!n[za("0xbf")](o))return!1;if(t[za("0x105")](o)||t[za("0xd4")](o))return!0}return!1}function qa(t){return t[za("0x7")][za("0xb4")]==t[za("0x90")][za("0xb3")]&&t.end[za("0x62")]}function Xa(t,e,n,o){const s=t=>!t[za("0x1b")].is(za("0x2e"))&&!o.isObject(t[za("0x1b")]),r=t.start[za("0x79")](s),i=t[za("0x7")].getLastMatchingPosition(s,{direction:za("0xfb")});return!(t[za("0x90")][za("0x6b")](r)&&t[za("0x7")][za("0x6b")](i)||(r[za("0xd")](i)?n[za("0x121")](e,{range:n[za("0x6c")](r,i)}):n[za("0x69")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x90")][za("0xb3")];return e&&e.is(za("0xfa"))}function Qa(t,e){const n=e[za("0x37")][za("0x105")](t)||e[za("0x37")][za("0x5a")](t);return e.createRange(e[za("0xde")](t,za("0x4f")),n?e[za("0x71")](t):e.createPositionAt(t,za("0x7")))}function Za(t,e,n,o,s){if(n.end[za("0x6b")](o[za("0x90")]))return!0;if(t[za("0x33")]!=e.type)return!1;if(!n[za("0x7")][za("0x8f")](o[za("0x90")]))return!1;const r=s[za("0x6c")](n[za("0x7")],o.start)[za("0xad")]();for(const t of r)if(["elementStart","elementEnd"][za("0xa3")](t[za("0x33")])&&s[za("0x37")][za("0xd4")](t[za("0x1b")]))return!1;return!0}const Ya=["bind","unbind","_setPendingAction","add","discardSuggestion","stopListening","get","isEnabled","listenTo","_acceptCommand","getRanges","canDiscard","remove","canAccept","_pendingAction","commentThreadController","commands","execute","plugins","_removePendingAction","canEditAt","_editor","acceptSuggestion","destroy","locale","model","view","isDirty"];var tc,ec;tc=Ya,ec=459,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.model=e,this[nc("0xf")]=n,this[nc("0x4")]=o,this[nc("0xa")]=t,this[nc("0x1a")]=t.commands.get(nc("0xb")),this._discardCommand=t[nc("0x5")][nc("0x17")](nc("0x15")),this[nc("0xf")].bind(nc("0x18")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[nc("0xf")][nc("0x11")]("canAccept").to(this._acceptCommand,nc("0x18"),(t=>t&&this[nc("0xa")][nc("0xe")].canEditAt(e.getRanges()))),this[nc("0xf")][nc("0x11")](nc("0x0")).to(this._discardCommand,"isEnabled",(t=>t&&this[nc("0xa")][nc("0xe")][nc("0x9")](e[nc("0x1b")]()))),this[nc("0x3")]=null,n[nc("0x10")]&&this[nc("0x13")](),this[nc("0x19")](n,nc("0xb"),(()=>this[nc("0xb")]())),this[nc("0x19")](n,nc("0x15"),(()=>this[nc("0x15")]())),this[nc("0x19")](n,"change:isDirty",(()=>{n[nc("0x10")]?this[nc("0x13")]():this._removePendingAction()}))}[nc("0xb")](){this[nc("0x1a")][nc("0x6")](this[nc("0xe")].id)}[nc("0x15")](){this._discardCommand[nc("0x6")](this[nc("0xe")].id)}destroy(){this.view[nc("0x12")](nc("0x18")),this[nc("0xf")][nc("0x12")](nc("0x2")),this[nc("0xf")].unbind(nc("0x0")),this[nc("0x16")](),this[nc("0x4")][nc("0xc")](),this[nc("0x3")]&&this[nc("0x8")]()}[nc("0x13")](){const t=Yo(this[nc("0xa")][nc("0xd")],"PENDING_ACTION_SUGGESTION");this[nc("0x3")]=this[nc("0xa")].plugins.get("PendingActions")[nc("0x14")](t)}[nc("0x8")](){null!==this[nc("0x3")]&&this._editor[nc("0x7")].get("PendingActions")[nc("0x1")](this._pendingAction),this[nc("0x3")]=null}}const sc=["setData","_model","updateComment","editor","isActive","addComment","_createCommentViews","canAccept","cancel","editorConfig","focus","_config","element","commentsListView","length","hasDirtyComment","bind","authoredAt","delegate","commentThread","_createCommentThreadInputView","descriptionParts","set","removeComment","commentInputView","locale","_localUser","value","disableComments","submit","destroy","isEnabled","commentThreadInputView","canDiscard","isReadOnly","fire","isDirty"];var rc,ic;rc=sc,ic=445,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[xc("0xc")]=null,this[xc("0x1f")]=null,this[xc("0x15")]("isActive",!1),this[xc("0x15")](xc("0x10"),e[xc("0x10")]),this[xc("0xf")](xc("0x10")).to(e),this.set(xc("0x14"),[]),this[xc("0x15")](xc("0x23"),!1),this[xc("0x15")](xc("0x1e"),!1),this[xc("0x15")](xc("0x6"),!1),this[xc("0x15")](xc("0x20"),!1),this[xc("0x0")]=e,this[xc("0x19")]=n,this[xc("0xa")]=o,o[xc("0x1b")]?this[xc("0x15")](xc("0xd"),1):this._createCommentViews()}focus(){this[xc("0xb")][xc("0x9")]()}[xc("0x1d")](){this[xc("0xc")]&&this[xc("0xc")][xc("0x1d")](),this[xc("0x1f")]&&this[xc("0x1f")][xc("0x1d")](),super.destroy()}[xc("0x5")](){const{CommentsListView:t}=this._config;this[xc("0xc")]=new t(this[xc("0x18")],this[xc("0x0")][xc("0x12")],Object.assign({CommentView:this[xc("0xa")].CommentView},this[xc("0xa")])),this.commentsListView[xc("0x11")](xc("0x16")).to(this),this[xc("0xc")][xc("0x11")](xc("0x1")).to(this),this[xc("0xc")].bind(xc("0x3")).to(this),this.set(xc("0xd"),this[xc("0xc")].length+1),this[xc("0xf")](xc("0xd")).to(this[xc("0xc")],"length",(t=>t+1)),this[xc("0x1f")]=this[xc("0x13")](),this.on(xc("0x16"),(()=>this[xc("0x9")]())),this[xc("0xf")]("isDirty").to(this[xc("0xc")],xc("0xe"),this[xc("0x1f")][xc("0x17")],xc("0x1a"),((t,e)=>t||!!e))}[xc("0x13")](){const{CommentThreadInputView:t}=this[xc("0xa")],e=new t(this[xc("0x18")],this._localUser,this[xc("0xa")][xc("0x8")]),n=e[xc("0x17")];return e[xc("0xf")]("showInput").to(this,"isActive",this[xc("0x0")][xc("0x12")],xc("0x21"),n,xc("0x1a"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x1c"),((t,e)=>{this[xc("0x22")](xc("0x4"),e),n[xc("0x2")][xc("0x24")]("")})),n.on(xc("0x7"),(()=>this[xc("0x9")]())),n.bind("disabledSubmit").to(this[xc("0x0")][xc("0x12")],xc("0x21")),e}}const cc=["bind","formatDateTime","ck-annotation__actions","EXTERNAL_IMPORT_WORD_SUGGESTION","color","extendTemplate","div","isActive","title","ck-suggestion__user","_config","innerHTML","createElement",'<span class="ck-suggestion-color" style="background-color: ',"split","getTemplate","commentsListView","EXTERNAL_AVATAR","ck-annotation__info-time","querySelector","commentThreadInputView","check","ck-suggestion--accept","EXTERNAL_IMPORT_WORD_AVATAR","ck-suggestion-","isEnabled","getExternalSuggestionNote","Accept suggestion","</span>","ck-annotation__content-wrapper","author","time",".ck-annotation__content-wrapper","isExternal","description","span","importWord",'<span class="ck-suggestion-type">',"ck-suggestion__info","acceptSuggestion","ck-annotation__info","type","source","name","locale","ck-annotation__main","canDiscard","map",'"></span>',"children","push","ck-suggestion--disabled-comments","ck-annotation","setTemplate","descriptionParts","render","</p>","ck-suggestion","ck-suggestion__actions","commentThread","element","@external","disableComments","innerText","userView","discardButton","ck-suggestion__main","value","canAccept","ck-suggestion__info-name","ck-suggestion-wrapper--active","_createButton","authoredAt","_descriptionElement","<p>","ck-suggestion-wrapper","ck-suggestion--discard","ck-comment__info-time","getUserViewNotificationText","_model",'" title="',"discardSuggestion","acceptButton","attributes","ck-annotation__user","join"];var lc,dc;lc=cc,dc=486,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("0x47"),""),this.bind(uc("0x47")).to(this,uc("0x54"),(t=>t&&t[0]?t[0][uc("0x47")]:"")),this[uc("0x1e")](uc("0x40")).to(this,"descriptionParts",this,"isActive",((t,e)=>{let n="";for(const e of t)n+=uc("0x12")+mc(e.content,e[uc("0x22")])+uc("0x0");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x11")]=null,this[uc("0x1a")]=this._createButton(Yo(e,uc("0x39")),t.icons[uc("0x33")],uc("0x34"),uc("0x45"),"sw"),this.acceptButton[uc("0x1e")](uc("0x37")).to(this,uc("0xc")),this.discardButton=this[uc("0xf")](Yo(e,"Discard suggestion"),t.icons.cancel,uc("0x14"),uc("0x19"),"sw"),this[uc("0x9")][uc("0x1e")](uc("0x37")).to(this,uc("0x4c")),this[uc("0x8")]=new r.UserView(e,this[uc("0x17")][uc("0x3c")],this[uc("0x16")]()),this[uc("0x8")][uc("0x23")]({attributes:{class:[uc("0x27"),uc("0x1c")]}}),this[uc("0x53")](this.getTemplate())}[uc("0x2d")](){const t=this.bindTemplate,e=[{tag:uc("0x24"),attributes:{class:[uc("0x44"),uc("0x46")]},children:[{tag:"span",children:[{text:this[uc("0x8")][uc("0x49")]}],attributes:{class:[uc("0xd"),"ck-annotation__info-name"]}},{tag:uc("0x3d"),attributes:{datetime:t.to("authoredAt"),class:[uc("0x15"),uc("0x30")]},children:[{text:t.to(uc("0x10"),(t=>this[uc("0x28")][uc("0x1f")](t)))}]}]},{tag:uc("0x24"),attributes:{class:[uc("0x2"),uc("0x20")]},children:[this[uc("0x1a")],this[uc("0x9")]]},{tag:uc("0x24"),attributes:{class:[uc("0x3b")]}}];this[uc("0x17")][uc("0x3f")]&&e[uc("0x50")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this[uc("0x38")]()}]});const n={tag:uc("0x24"),attributes:{class:[uc("0x13"),t.if(uc("0x25"),uc("0xe")),t.to(uc("0x47"),(t=>uc("0x36")+t)),this._config[uc("0x6")]&&uc("0x51")],"data-suggestion-id":this[uc("0x17")].id,"data-thread-id":this[uc("0x17")][uc("0x3")].id,"data-author-id":this._model[uc("0x3c")].id,tabindex:-1},children:[{tag:uc("0x24"),attributes:{class:[uc("0x1"),uc("0x52")]},children:[this.userView,{tag:"div",attributes:{class:[uc("0xa"),uc("0x4b")]},children:e}]}]};return this[uc("0x2e")]&&this[uc("0x32")]&&n[uc("0x4f")].push(this[uc("0x2e")],this[uc("0x32")]),n}[uc("0x55")](){super[uc("0x55")](),this._descriptionElement=this[uc("0x4")][uc("0x31")](uc("0x3e")),this._descriptionElement[uc("0x29")]=this[uc("0x40")],this.on("change:description",((t,e,n)=>{this[uc("0x11")][uc("0x29")]=n}))}[uc("0xf")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x4a")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x23")]({attributes:{class:n}}),i.on("execute",(()=>{this.fire(o,this[uc("0x17")].id)})),i}[uc("0x38")](){return uc("0x42")===this[uc("0x17")][uc("0x1b")][uc("0x5")][uc("0x48")]?Yo(this.locale,uc("0x21")):Yo(this[uc("0x4a")],"EXTERNAL_SUGGESTION")}[uc("0x16")](){return this[uc("0x17")].isExternal?uc("0x42")===this[uc("0x17")].attributes[uc("0x5")][uc("0x48")]?Yo(this[uc("0x4a")],uc("0x35"),this._model.creator.name):Yo(this[uc("0x4a")],uc("0x2f"),this[uc("0x17")].creator[uc("0x49")]):null}}function mc(t,e){let n="";return n+=t[uc("0x2c")]("*")[uc("0x4d")](((t,e)=>e%2!=0?uc("0x43")+fc(t)+uc("0x3a"):fc(t)))[uc("0x1d")](""),e&&(n+=uc("0x2b")+e[uc("0xb")]+uc("0x18")+e[uc("0x26")]+uc("0x4e")),n}function fc(t){const e=document[uc("0x2a")](uc("0x41"));return e[uc("0x7")]=t,e[uc("0x29")]}const hc=["_updateController","addComment","plugins","head","get","getSuggestion","suggestionLoaded","_destroyController","has","keys","isMultiRange","Accept all suggestions","hasSuggestion","buttonView","config","remove","commands","getJoined","comments.editorConfig","switchbutton","editor","TrackChangesEditing","_refreshActiveMarkers","_disableComments","registerAnnotation","Discard all selected suggestions","map","commandName","Annotations","delete","change:activeAnnotations","Accept all selected suggestions","comments.maxCommentsWhenCollapsed","requires","getMarkerNames","_handleControllerBuffer","comments.maxThreadTotalWeight","length","createAnnotationView","locale","mainView","bind","editing","filter","add","getFirstRange","type","listenTo","CommentsUI","activeAnnotations","refreshSelectedViews","size","focus","value","Discard all suggestions","init","some","lowest","CommentsRepository","comments","model","set","destroy","suggestion-","addSourceCollector","isOn","_annotationViews","EditorAnnotations","innerView","trackChanges.SuggestionThreadView","source","actionView","Track changes","pluginName","CommentView","suggestionChanged","previous","_handleSuggestionControllerDelayed","discardAllSuggestions","unbind","trackChanges.disableComments","arrowView","getRanges","SuggestionThreadView","_initializeController","push","TrackChangesUI","componentFactory","acceptSelectedSuggestions","getMarkers","suggestionUnloaded","acceptAllSuggestions","execute","getDescriptions","descriptionParts","reduce","isEnabled","activeMarkers","_viewToController","stopListening","acceptButton","define","button","separator","isInContent","comments.maxCommentCharsWhenCollapsed","_descriptionFactory","_suggestionToController","getAllAdjacentSuggestions","clear","trackChanges","_createUIButton","from","change:previous","isDirty","view","discardSelectedSuggestions","toMany"];var pc,bc;pc=hc,bc=357,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("0x1e")](){return[Wa,r.Users,Ec("0x37"),Ec("0x19"),Ec("0x40")]}static get[Ec("0x46")](){return Ec("0x53")}constructor(t){super(t),this[Ec("0x68")]=new Map,this._viewToController=new Map,this[Ec("0x3f")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x11")][Ec("0xb")];e[Ec("0x62")](Ec("0x42"),gc),e[Ec("0x62")]("trackChanges.disableComments",!1),this[Ec("0x14")]=e[Ec("0x1")](Ec("0x4d"))}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0x20")][Ec("0x30")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x20")]){const n=this[Ec("0x68")][Ec("0x5")](t);n||e?n&&e&&this._destroyController(t):this[Ec("0x51")](t)}this[Ec("0x11")][Ec("0x75")][Ec("0x1")](Ec("0x40"))[Ec("0x2f")](),this[Ec("0x13")](),this[Ec("0x20")][Ec("0x6a")]()}),10),this[Ec("0x20")][Ec("0x3a")](t,e)}[Ec("0x34")](){const t=this[Ec("0x11")],e=t[Ec("0x75")].get(Ec("0x12")),n=t[Ec("0x75")][Ec("0x1")](Ec("0x19")),o=t[Ec("0x75")][Ec("0x1")]("EditorAnnotations"),s=t[Ec("0x75")][Ec("0x1")](Ec("0x37"));t.ui[Ec("0x54")][Ec("0x29")](Ec("0x6b"),(t=>this[Ec("0x6c")](t))),o[Ec("0x3d")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x6d")](this._suggestionToController)){const o=e[Ec("0x69")](),s=[];for(const t of o){if(!t[Ec("0x65")])continue;if(t[Ec("0x7")]){s[Ec("0x52")](...t[Ec("0x4f")]());continue}const e=t[Ec("0x2a")]();if(s[Ec("0x22")]>0){const t=s[0][Ec("0xe")](e);if(t){s[0]=t;continue}}s[Ec("0x52")](e)}t[Ec("0x52")]([n[Ec("0x70")],s])}return t})),this.listenTo(e,Ec("0x3"),((t,e)=>{this[Ec("0x2c")](e,Ec("0x6e"),((t,n,o,s)=>{e[Ec("0x65")]&&(null==o?(this[Ec("0x73")](s[Ec("0x0")]),this[Ec("0x4a")](e,!1)):(this[Ec("0x73")](o[Ec("0x0")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Ec("0x49")]?this._handleSuggestionControllerDelayed(e,!1):this[Ec("0x73")](e[Ec("0x0")])})),this[Ec("0x2c")](e,Ec("0x57"),((t,e,n)=>{this[Ec("0x60")](e,Ec("0x6e")),this[Ec("0x20")][Ec("0x1a")](e);const o=n?n[Ec("0x0")]:e,s=this[Ec("0x68")][Ec("0x1")](o);null!==n&&this[Ec("0x73")](o),null===n&&s&&this[Ec("0x4")](e)})),this[Ec("0x2c")](e,Ec("0x48"),((t,e)=>{this[Ec("0x73")](e)})),this[Ec("0x2c")](n,Ec("0x1b"),(()=>{this[Ec("0x13")]()})),this[Ec("0x2c")](s,Ec("0x74"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x9")](n))return;const s=e[Ec("0x2")](n);this[Ec("0x68")][Ec("0x1")](s)[Ec("0x70")].focus()}),{priority:Ec("0x36")})}[Ec("0x13")](){const t=this[Ec("0x11")].plugins[Ec("0x1")](Ec("0x19")),e=this[Ec("0x11")][Ec("0x75")][Ec("0x1")]("TrackChangesEditing"),n=Array[Ec("0x6d")](t[Ec("0x2e")],(t=>t[Ec("0x41")]))[Ec("0x28")]((t=>this._viewToController[Ec("0x5")](t))),o=[];for(const t of n){const e=this._viewToController.get(t)[Ec("0x39")][Ec("0x69")]();o.push(...e[Ec("0x5c")](((t,e)=>[...t,...e[Ec("0x1f")]()]),[]))}e[Ec("0x5e")]=o}[Ec("0x6c")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x11")][Ec("0xd")][Ec("0x1")](Ec("0x6b")),r=Yo(t,Ec("0x45"));n.buttonView[Ec("0x3a")]({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("0xa")].bind("isOn").to(o,Ec("0x32")),n[Ec("0xa")].on(Ec("0x59"),(()=>{o[Ec("0x59")](),this[Ec("0x11")][Ec("0x27")][Ec("0x70")][Ec("0x31")]()}));const i=new e.Collection,x=[{type:Ec("0x10"),model:{withText:!0,label:r,commandName:Ec("0x6b")}},{type:Ec("0x64")},{type:Ec("0x63"),model:{withText:!0,label:Yo(t,Ec("0x8")),commandName:Ec("0x58")}},{type:Ec("0x63"),model:{withText:!0,label:Yo(t,Ec("0x1c")),commandName:Ec("0x55")}},{type:Ec("0x63"),model:{withText:!0,label:Yo(t,Ec("0x33")),commandName:Ec("0x4b")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x16")),commandName:Ec("0x71")}}];for(const t of x){let e={type:Ec("0x64")};if(t[Ec("0x39")]){const n=new s.Model(t[Ec("0x39")]),o=this[Ec("0x11")].commands.get(n.commandName);n[Ec("0x26")](Ec("0x3e"),"isEnabled").to(o,Ec("0x32"),Ec("0x5d")),e={type:t[Ec("0x2b")],model:n}}i[Ec("0x29")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x28")]((t=>null!=t[Ec("0x39")]))[Ec("0x17")]((t=>this[Ec("0x11")][Ec("0xd")][Ec("0x1")](t[Ec("0x39")][Ec("0x18")]))),c=n[Ec("0xa")];return c[Ec("0x44")].unbind(Ec("0x5d")),c[Ec("0x4e")][Ec("0x4c")](Ec("0x5d")),c[Ec("0x44")].bind(Ec("0x5d")).to(o,Ec("0x5d")),c[Ec("0x4e")][Ec("0x26")](Ec("0x5d"))[Ec("0x72")](a,Ec("0x5d"),((...t)=>t[Ec("0x35")]((t=>t)))),n.on("execute",(t=>{this[Ec("0x11")][Ec("0x59")](t[Ec("0x43")][Ec("0x18")]),this[Ec("0x11")][Ec("0x27")][Ec("0x70")][Ec("0x31")]()})),n}[Ec("0x51")](t){const e=this[Ec("0x11")],n=e[Ec("0xb")],o=e.plugins.get("Annotations"),s=e[Ec("0x75")][Ec("0x1")](Ec("0x37")),i=e[Ec("0x75")][Ec("0x1")]("EditorAnnotations"),x=e.plugins.get(r.Users).me,a=n.get(Ec("0x6b"))[Ec("0x50")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Ec("0x1")](Ec("0x2d"));let d,u;this[Ec("0x3f")].has(t.id)?(u=this[Ec("0x3f")][Ec("0x1")](t.id),d=u[Ec("0x25")]):(d=new a(e[Ec("0x24")],t,x,{disableComments:this[Ec("0x14")],editorConfig:n[Ec("0x1")](Ec("0xf")),maxCommentsWhenCollapsed:n[Ec("0x1")](Ec("0x1d")),maxThreadTotalWeight:n[Ec("0x1")](Ec("0x21")),maxCommentCharsWhenCollapsed:n[Ec("0x1")](Ec("0x66")),formatDateTime:(0,r.getDateTimeFormatter)(n.get(Ec("0x24"))),CommentView:n.get(Ec("0x38"))[Ec("0x47")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x61")].on("execute",(()=>{e[Ec("0x27")][Ec("0x70")][Ec("0x31")]()})),d.discardButton.on("execute",(()=>{e[Ec("0x27")].view[Ec("0x31")]()})),u=o[Ec("0x23")](this[Ec("0x11")].locale,d),u[Ec("0x26")](Ec("0x6f")).to(d,Ec("0x6f")),u.bind(Ec("0x22")).to(d),u.bind(Ec("0x2b")).to(d,Ec("0x2b"),(t=>Ec("0x3c")+t)),this[Ec("0x3f")][Ec("0x3a")](t.id,u));const g=s.createCommentThreadController(t.commentThread,d),m=new oc(e,t,d,g),f=t[Ec("0x69")]()[Ec("0x28")]((t=>t[Ec("0x65")]));d[Ec("0x5b")]=e[Ec("0x75")][Ec("0x1")](Ec("0x12"))[Ec("0x67")][Ec("0x5a")](f),this[Ec("0x68")][Ec("0x3a")](t,m),this[Ec("0x5f")][Ec("0x3a")](d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x69")]()[Ec("0x28")]((t=>t[Ec("0x65")]));for(const t of o)n[Ec("0x52")](...t[Ec("0x56")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x27")],n)},type:()=>Ec("0x3c")+m[Ec("0x70")][Ec("0x2b")]});o[Ec("0x29")](h),i[Ec("0x15")](h)}[Ec("0x4")](t){const e=this[Ec("0x11")].plugins[Ec("0x1")]("Annotations"),n=this._suggestionToController.get(t),o=n[Ec("0x70")],s=e.getByInnerView(o);s&&e[Ec("0xc")](s),this[Ec("0x68")][Ec("0x1a")](t),this[Ec("0x5f")][Ec("0x1a")](o),n[Ec("0x3b")]()}[Ec("0x73")](t){if(!t.isInContent||!this[Ec("0x68")][Ec("0x5")](t))return;const e=this.editor[Ec("0x75")].get("TrackChangesEditing"),n=this._suggestionToController.get(t),o=t[Ec("0x69")]();n[Ec("0x70")][Ec("0x5b")]=e._descriptionFactory[Ec("0x5a")](o)}[Ec("0x3b")](){for(const t of this._suggestionToController[Ec("0x6")]())this[Ec("0x4")](t);for(const t of this[Ec("0x3f")].values())t[Ec("0x25")][Ec("0x3b")]();super[Ec("0x3b")]()}}var Tc,Cc,yc=["adapter","plugins","editor","requires","getSuggestions","getSuggestion","Comments","addSuggestion","pluginName","TrackChanges","get"];Tc=yc,Cc=180,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("0xa")](){return[Wa,_c,kc("0x2")]}static get[kc("0x4")](){return kc("0x5")}set[kc("0x7")](t){this[kc("0x9")][kc("0x8")].get(Wa).adapter=t}get[kc("0x7")](){return this[kc("0x9")][kc("0x8")][kc("0x6")](Wa)[kc("0x7")]}[kc("0x3")](t){return this[kc("0x9")][kc("0x8")][kc("0x6")](Wa).addSuggestionData(t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x9")][kc("0x8")][kc("0x6")](Wa)[kc("0x0")]({skipNotAttached:t,toJSON:e})}[kc("0x1")](t){return this.editor[kc("0x8")][kc("0x6")](Wa)[kc("0x1")](t)}}const vc=["data","editor","getUser","users","editorCreator","execute","_adapter","createDocumentFragment","destroy","plugins","acceptAllSuggestions","end","config","result","trackChangesData","TrackChangesEditing","push","CommentsRepository","get","getFullData","Pagination","document","useAnonymousUser","model","create","init","discardAllSuggestions","pluginName","rootsAttributes","function","getDataWithAcceptedSuggestions","appendChild","track-changes-data-invalid-editor-creator","TrackChangesData","Users","createElement","addUser","name","div","getRootNames","reduce","getRootsAttributes"];var Rc,Sc;Rc=vc,Sc=306,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x8")];class Nc extends t.Plugin{static get requires(){return[Wa]}static get[Ic("0xf")](){return Ic("0x15")}[Ic("0xd")](){const t=this[Ic("0x1f")];if(t[Ic("0x0")].define("trackChangesData.editorCreator",(e=>{const n=t.model.document[Ic("0x1b")]()[Ic("0x1c")](((t,e)=>(t[e]="",t)),{});return t.constructor[Ic("0xc")](n,e)})),Ic("0x11")!=typeof t.config[Ic("0x6")](Ic("0x2")).editorCreator)throw new e.CKEditorError(Ic("0x14"))}[Ic("0x12")](t){return Oc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Ic("0x1f")],!1,t)}}class Mc extends t.Plugin{static get[Ic("0xf")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[Ic("0x1")]=Ic("0x29")}[Ic("0xd")](){this.editor[Ic("0x27")][Ic("0x6")](Ic("0x5"))[Ic("0x24")]={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("0x1f")][Ic("0x27")].get(Ic("0x3"))._adapter=null}}function wc(t){return void 0!==t[Ic("0x1d")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x27")][Ic("0x4")](Wa,Mc),o[Ic("0x10")]=wc(t)?t.getRootsAttributes():void 0;const s=document[Ic("0x25")](),i=t[Ic("0x0")][Ic("0x6")]("trackChangesData")[Ic("0x22")],x=await i(o,(()=>function(t){const e=document[Ic("0x17")](Ic("0x1a"));return t[Ic("0x13")](e),e}(s)));!function(t,e){const n=t[Ic("0xb")][Ic("0x9")][Ic("0x1b")]().reduce(((e,n)=>(e[n]=t[Ic("0x1e")][Ic("0x6")]({rootName:n}),e)),{}),o=t[Ic("0x27")][Ic("0x6")](Ic("0x16"))[Ic("0x21")].map((t=>({id:t.id,name:t[Ic("0x19")]}))),s=t[Ic("0x27")].get(Ic("0x3")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0x27")].get(Ic("0x16")),i=e[Ic("0x27")][Ic("0x6")](Ic("0x3"));for(const t of o)r[Ic("0x20")](t.id)||r[Ic("0x18")](t);r.me||r[Ic("0xa")]();for(const t of s)i.addSuggestionData(t);e[Ic("0x1e")].set(n)}(t,x),x[Ic("0x23")](Ic(e?"0x28":"0xe"));const a=wc(x)?x[Ic("0x7")](n):x[Ic("0x1e")][Ic("0x6")](n);return await x[Ic("0x26")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();